Repository navigation
Fixes 35006: ActivityFeed: the Inbox's Activity and Tasks on every entity page - #34820
Conversation
Review: the inbox restyled core components instead of using them. - Tab counts (Activity/Triage, the Activity sub-tabs, All/Open/Closed) go through Tabs.Item badge; the hand-built badges and the list/item padding, track and outline overrides are gone. - Like and the replies toggle read brand while on through the Button's own link-color (boxed), not recoloured tertiary buttons. - The date and group menus drop their trigger class and size like the Type filter beside them; menu rows show their selection the core way. - Open asset, summary links and the table tile are core link buttons; the title's asset link takes Typography's link style; the forced weights, underlines, badge fonts and the assignee popover height are dropped.
The Triage tab badge counts every visible Open task, but the sidebar bubble still applied the inbox date window, so it undercounted whenever an Open task was older than 30 days (or the selected range). Fixes #34755
<ActivityFeed entityLink="<#E::table::fqn>" /> shows what happened to an
entity and the tasks about it, with the Inbox's cards, filters and task
detail; <ActivityFeed entityLink="<#E::user::name>" /> shows what a user did
and the tasks assigned to them. The table page uses it in AI mode, where the
new Inbox lives; classic mode keeps the existing tab.
- An activity scope (inbox / entity / user) drives the Activity fetch: an
entity reads /activity/about and its conversations, its Mentions read
/activity/mentions?entityLink; a user reads /activity/user/{id}. The Inbox
is the default scope and is unchanged.
- The Inbox's task queue logic moved into useTaskQueue (scoped to the
viewer's visible tasks, an entity's tasks, or a user's assigned tasks) and
TaskQueueBody; Triage renders it as before.
- Beside a host's Activity / Tasks switch, the Activity toolbar offers its
feeds in a Show menu and drops grouping; the entity Tasks view puts status,
type and grouping in the top bar and search over the list.
- A resolved task refreshes the entity page and its tab count.
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
… filter A grouping always has a value, so as a FilterSelect its "active filter" tint never cleared and was overridden with tw:**:text-* classes. It is now the single-choice ActivityToolbarMenu (core Dropdown), read "Group: Type", with a quiet tertiary sm trigger through the menu's new color / size props. The Collate E2E's menuitemradio pick and trigger text still match.
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
…the route
- The feed fills what is left of the page below it (useFillAvailableHeight:
the nearest scroll container's bottom less the feed's top, following
window and header resizes) and clips its content, so its panes scroll
instead of the whole entity page.
- On the entity tab the Activity / Tasks view is the route's sub-tab, as it
is for today's tab: …/activity_feed/tasks opens on Tasks and a switch
updates the URL. ActivityFeed takes `view` / `onViewChange` for that.
- An entity's empty task queue shows its title only; the descriptions speak
to the viewer about their own Inbox ("assigned to you").
…feed # Conflicts: # .github/playwright/impact-map.generated.json # .github/playwright/timing-baseline.json
…ay, refresh after a task Review feedback: - The page tab counted the default window while the feed counted the one chosen in it. The Activity window now lives in the URL as its preset (`?activityDate=last7days`, default none), like the Tasks Status: the feed and the page tab read it, so both count the same cards, and a reload keeps it. The window is day-aligned, so both read one query. - `/activity/about` and `/activity/user` take only a `days` look-back from now. A 30-day window starts at midnight 30 days ago, which a 30-day look-back from mid-afternoon stops short of, so that first day lost its morning. They now look back to the window's start (up to their 90-day cap); clipToWindow trims the rest. - A task action can write activity (an approved description is a change), but only the entity and the classic count refreshed. The feed now marks every cached Activity list stale on a task change, so the list and the page tab re-read. - The page-scroll handoff took over any wheel event with a downward `deltaY`, which cancelled a sideways swipe or Shift+wheel over a wide child. It now takes only a mainly vertical, non-Shift scroll down.
…feed Main's changes to TasksTab land where this branch moved that code: - useTaskQueue reads TASK_LIST_QUERY_KEY / TASK_STATUS_COUNTS_QUERY_KEY from inbox.constants (they moved there), opens on a linked task (useLinkedTaskId, ?taskId=) and keeps it selected past the loaded page, and refreshes the home page's My Tasks card with the open-task count (syncOpenTaskReaders). - TaskQueueBody takes the core EmptyPlaceholder family (NoDataPlaceholder / NoFilteredResultsPlaceholder) and the minmax(0, fr) Triage grid from #35612. - TopicDetailsUtils keeps the lazy ActivityFeedTabLabel; the lazy ErrorPlaceHolder main dropped stays dropped. Sonar S9383: the fire-and-forget invalidateQueries calls in useTaskQueue and ActivityFeed are marked void.
- Move the feed's helpers into ActivityFeed.utils.ts and share the task grouping labels through inbox.constants.ts. - Frame the feed with a core Card and draw its rules with core Divider instead of border classes on Box. - Test the post-task-action refresh through the real query hooks with the HTTP boundary mocked.
It depends only on the route and EntityPureUtils, so it sits with the shared hooks. The task list's column rule stays inside the list's column, so the detail pane keeps its width.
…feed # Conflicts: # openmetadata-ui/src/main/resources/ui/src/locale/languages/ar-sa.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/de-de.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/en-us.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/es-es.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/fr-fr.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/gl-es.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/he-he.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/it-it.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/ja-jp.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/ko-kr.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/mr-in.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/nl-nl.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/pr-pr.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/pt-br.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/pt-pt.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/ru-ru.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/sv-se.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/th-th.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/tr-tr.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/zh-cn.json # openmetadata-ui/src/main/resources/ui/src/locale/languages/zh-tw.json
The entity tab label only needs the task counts, but importing them loaded the whole task queue, and with it useLinkedTaskId's routing constants. A test that mocks the shared constants without ROUTES (PipelineDetails) then crashed at import.
…feed # Conflicts: # .github/playwright/impact-map.generated.json # openmetadata-ui/src/main/resources/ui/src/components/ActivityFeed/ActivityFeedTab/ActivityFeedTab.component.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/tabs/ActivityTab.test.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/tabs/ActivityTab.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/tabs/TasksTab.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/useInboxActivity.test.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/useInboxActivity.ts # openmetadata-ui/src/main/resources/ui/src/rest/activityAPI.ts # openmetadata-ui/src/main/resources/ui/src/rest/tasksAPI.ts
The entity Tasks view left the queue's error out of its empty state, so a failed first request read as an empty queue with no way to retry. Pass the error, retry and whole-tab failure through as the Inbox Tasks tab does. Also drop a redundant fragment around the glossary Assets tab (Sonar S6749).
|
UI browser testsRan: all test files (no impact map from main yet) Result: ❌ 1 failed · 1070 passed · 154 skipped Changed code executed by these browser tests: 93 / 184 lines (51%)
Changed files no browser test loads
|
ShaileshParmar11
left a comment
There was a problem hiding this comment.
Reviewed the UI changes at cd06d9be0b.
Spec compliance: pass.
- In AI mode, every entity page's Activity Feeds & Tasks tab shows the new feed. Classic mode and user profiles keep the existing tab.
…/activity_feed/taskslinks build for every entity type, including glossaries, terms, tags, domains and data products.- The backend accepts
entityLinkon/activity/mentionsandincludeFieldson the conversations endpoint. - The TasksTab →
useTaskQueue+TaskQueueBodyrefactor keeps the Inbox Triage,<TasksTab user>and<TasksTab aboutEntity>behaviour: request params, cache keys, status counts, the #35054 scan cap, task actions, error states and the props of Collate's access-request panel.
Since the last head:
cd06d9be0bmakesChartDetailsUtils.testawait the lazy tab label, andui-coverage-testsnow passes.- Browser shard 2 passes on the rerun. Its earlier failure, an unhandled
GET /api/v1/services/driveServices, was not caused by this PR.
Blocking merge: Validate PR Metadata.
- Issues #35006 and #35054 each need Shipping → Status, Source, Priority and Domain.
- The title should read
Fixes #35006: ….
Inline comments: all are 🟡 — one counts a failed load as 0, one adds network cost, three are test gaps, one is a description nit. None breaks behaviour.
Checked and clean:
- The tab label and the feed compute the same day-aligned window, so they share one query.
getEntityTabBarmatches the coreTabsmarkup that every page uses.usePageScrollPaneundoes its height, the pinned bar and the wheel listener on unmount.- The Playwright spec deletes its worker-scoped seed data and checks the absences only after the expected items are visible.
- The new key is in all 18 locale files.
- No Collate code calls the hooks whose signatures changed.
… show a failed count as 0 - The tab label keeps the page's count until the Activity Feeds & Tasks tab is opened, so a page view that never opens it no longer reads the feed. - A failed activity or task-count read hides the count instead of adding 0. - Restore the entity-scoped TasksTab tests, assert the whole request for the entity and assignee scopes, and drop the scan-cap test that could not tell the #35054 fix from the old formula.
…and check a page view reads no feed
Code Review ✅ Approved 🟡 Medium risk 3 closed / 3 findingsThe shared task queue and activity fetch now serve AI-mode feeds across entity types; scope or cache regressions could show unrelated tasks or stale counts. Adds an AI-mode Activity and Tasks feed to entity pages, scoped to the entity with shared counts and URL-persisted filters. Resolved this session: the page tab count now shows lower bounds correctly instead of as exact numbers, column deep links target the correct entity, and the wheel handler no longer cancels horizontal scrolling over the feed. No open issues remain. ✅ 3 closed✅ Edge Case: Tab count drops isCapped, so a lower bound shows as an exact number
✅ Bug: Feed link uses raw route FQN, so column deep links target the wrong entity
✅ Edge Case: Wheel hijack cancels horizontal scrolling over the feed
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
ShaileshParmar11
left a comment
There was a problem hiding this comment.
Approving the UI changes at a962751c22. All six comments from the previous review are addressed:
- A failed load is no longer counted as 0.
useActivityFeedCountsreturns no activity count when the read fails. The label hides its count unless the chosen Status also has a task count.useActivityFeedCounts.test.tscovers the loading, error and loaded cases. - No feed requests until the tab is opened. The label shows the page's existing count until the tab has been opened for that entity. The new Playwright case checks that a plain page view sends no
/activity/aboutrequest, and that the count matches the feed once the tab is open. Keying the opened state onentityLinkalso resets it when the page moves to another entity. - The
aboutEntitytest is back. A second case checks that the entity scope wins when auseris passed too. - The entity and assignee requests are checked in full, including Status, cursor and fields.
- The scan-cap test that could not fail is removed.
- The worksheet FQN change is in the description.
On this head, browser shard 4 fails in AdvancedSearch.ContainerColumn.browser.test.tsx with "Matcher did not succeed in time". This PR does not touch advanced search, and the shard passed on the previous head.
Validate PR Metadata still blocks the merge: issues #35006 and #35054 need their Shipping fields.



Fixes #35006
Fixes #35054
Describe your changes:
Brings the new Inbox's Activity and Tasks to entity pages, as one component:
A table link shows what happened to the table and the tasks about it (column-level tasks included). A user link shows what the user did and the tasks assigned to them. Every entity page's Activity Feeds & Tasks tab uses it in AI mode only, where the new Inbox lives: tables, databases and schemas, topics, dashboards, charts, data models, pipelines, ML models, containers, search indexes, API collections and endpoints, metrics, stored procedures, drive assets, glossaries and terms, tags, domains and data products.
ActivityFeedTabitself makes the switch, so each page's existing wiring is unchanged. Classic mode keeps today's tab, and a user's profile always does.What the tab shows (per the "Customers – Activity and Tasks" design)
includeFields, Fixes 35005: Search tasks about an entity and filter mentions by entity #34819), as its activity already includes their changes. A Show menu (All activity / Mentions, with counts), the date window and the Type filter. No grouping (one entity).?taskStatus=closed|all— Open, the default, leaves no parameter — and survives a view switch and a reload), Type and Group in the top bar; search over the list. Collate's access-request panel shows here too, through the same extension point.?activityDate=last7days; the default leaves none), like the Tasks Status, so the page tab counts the window the feed shows and a reload keeps it.?taskStatus), from the same React Query queries the feed uses. Until the tab is opened, the label keeps the page's existing count, so a page view that never opens the tab makes no feed requests. A failed activity or task-count read hides the count rather than showing 0. Classic mode keeps today's count.…/activity_feed/tasksopens on Tasks, and switching updates the URL.border-secondaryedge, 12px radius).usePageScrollPanesizes the feed to the page's scroll area below the pinned bar, follows window and header resizes, and hands the wheel to the page until it ends. The feed's own scrollers (shared with the Inbox page) are unchanged.How
activityScope.ts: anActivityScope(inbox|entity|user) drives the Activity fetch. An entity reads/activity/aboutplus the conversations on its link; its Mentions read/activity/mentions?entityLink. A user reads/activity/user/{id}. The Inbox is the default scope, so the Inbox is unchanged.useTaskQueue.ts+TaskQueueBody.tsx: the Triage logic (status counts, paging, search, filters, grouping, selection, task-action handlers, load errors and retry) moved out ofTasksTabinto a hook scoped to the viewer's visible tasks, an entity's tasks, an assignee's tasks or a user's tasks.TasksTabnow renders the Inbox layout over it, unchanged, and keeps its props: a user's Members page (<TasksTab user>) and a glossary's Review tab (<TasksTab aboutEntity>) run on the same scopes. A user's Activity tab reads the Inbox scope for that user ({ type: 'inbox', userId }).ActivityToolbartakes aleadingslot: beside a host's control its feeds move into a Show menu, and it drops grouping when the host offers none.components/activity-feed/ActivityFeed/—ActivityFeed,ActivityFeedTasks(the entity Tasks view),ActivityFeedEntityTab(the AI-mode tabActivityFeedTabrenders on every entity page),ActivityFeedTabLabel+useActivityFeedCounts+useTaskStatusParam(the page tab's count and the Status it follows).label.value-with-count({{value}} · {{count}}), in all locales.EntityUtilClassBase:[EntityType.WORKSHEET]: 2is removed fromFQN_PARENT_LEVEL_BY_TYPE. A worksheet's FQN depth varies (service.spreadsheet.worksheetorservice.directory.spreadsheet.worksheet), so a fixed parent level split some worksheet FQNs wrongly. This changesgetFqnPartsanduseFqnfor every worksheet page, not only this feature: a worksheet column deep link now treats the whole FQN as the entity.Not in this PR
aboutEntityfilter (ListFilter.buildFqnPrefixOrCondition) matches by FQN prefix and ignores entity type, so a database or schema page also lists tasks on the assets under it, and same-named entities of different types share tasks. Today's classic tab has the same behaviour. Fixing it needs a backend filter on entity type or an exact match: a follow-up.usePageScrollPanehands scrolling to the page for mouse-wheel input only; keyboard and touch scrolling inside the feed scroll the feed alone.Type of change:
Tests:
Unit tests
ActivityFeed,ActivityFeedTasks,ActivityFeedTabLabel(AI-mode count, hidden while loading, classic count kept),ActivityFeedEntityTab(AI-mode gate, empty link, tasks route, page refresh),activityScope,useTaskQueue(visible / entity / assignee requests, per-scope cache keys, status counts, "Load more" scan cap raised past tasks loaded before a narrowing — [Detail Bug] Inbox Tasks: "Load more" does nothing after scrolling then applying Type/Status filter #35054, ported from fix(inbox): raise "Load more" scan cap past loaded backlog in one click #35117), per-scope Activity fetches (entity All, entity Mentions, user), the toolbar's Show menu.usePageScrollPane: fills the scroll area below the pinned bar and pins it; fills it all without a bar; scrolls the page, not the pane, until the page ends; leaves scrolling up to the browser; lets go of its height, the bar and the wheel on unmount.main: 403 suites, 3,735 tests pass.tscclean on the changed files;yarn ui-checkstyle:changed0 errors.Playwright
1ae2512ea7e,mainmerged) on a local server: 45 passed, 0 failed, 0 flaky.Features/AIMode/EntityActivityFeed.spec.ts: 32 passed. This includes every entity type above, plus the classic-mode table.Pages/AIProfile/ProfileUserDetail.spec.ts: 13 passed. These cover a user's Activity and Tasks tabs on the Members page.Manual testing performed
…/activity_feed/tasksdeep link.Checklist:
Fixes <issue-number>: <short explanation>🤖 Generated with Claude Code


Confidence Score: 5/5
The changes appear safe to merge; the previous failed-request finding is fixed.Summary
Brings the Inbox's Activity and Tasks views to entity pages in AI mode, with shared counts, URL filters, and task-action refreshes.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart LR Page[Entity page in AI mode] --> Feed[ActivityFeed] Feed --> Activity[Scoped Activity] Feed --> Tasks[Scoped Tasks] Counts[Page tab count] --> Queries[Shared React Query data] Activity --> Queries Tasks --> Queries Tasks --> Action[Task action] Action --> Refresh[Refresh entity and cached counts] Refresh --> QueriesReviews (10) · Last reviewed commit: "fix(ui): show a failed entity task load ..." · Reviewed by Greptile