Skip to content

Fixes 35006: ActivityFeed: the Inbox's Activity and Tasks on every entity page - #34820

Merged
harsh-vador merged 106 commits into
mainfrom
feat/entity-activity-feed
Nov 25, 2026
Merged

harsh-vador merged 106 commits into
mainfrom
feat/entity-activity-feed

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #35006
Fixes #35054

Describe your changes:

Brings the new Inbox's Activity and Tasks to entity pages, as one component:

<ActivityFeed entityLink="<#E::table::red.dev.dbt_jaffle.customers>" />
<ActivityFeed entityLink="<#E::user::harsh.vador>" />

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. ActivityFeedTab itself 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)

  • An Activity · N | Tasks · N switch, with the view's filters on the same row.
  • Activity: the Inbox's cards, replies, reactions and change panels, scoped to the entity. Conversations on its columns are included (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).
  • Tasks: the Inbox's Triage list and task detail, scoped to the entity. Status (All / Open / Closed, reading "Open · 5"; the Tasks badge and the page's tab count follow the chosen Status, which is kept in the URL as ?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.
  • The Activity date window is kept in the URL as its preset (?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.
  • Resolving or reassigning a task refreshes the entity page, its tab count and the Activity lists (an approved change shows without a reload).
  • In AI mode, once the Activity Feeds & Tasks tab has been opened, the page's count is the feed's own: its Activity cards (a removed + added change counts once, column conversations included) plus the tasks of the chosen Status (read from ?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.
  • The view is the route's sub-tab, as for today's tab: …/activity_feed/tasks opens on Tasks, and switching updates the URL.
  • The tab is a card, framed like the Inbox's content (a 1px border-secondary edge, 12px radius).
  • Scrolling reads as one page scroll: scrolling down over the feed scrolls the page until the entity's tab bar pins to its top, then the feed under it (activity cards, task list, task detail); scrolling up hands back to the page once the feed is at its top. usePageScrollPane sizes 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: an ActivityScope (inbox | entity | user) drives the Activity fetch. An entity reads /activity/about plus 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 of TasksTab into a hook scoped to the viewer's visible tasks, an entity's tasks, an assignee's tasks or a user's tasks. TasksTab now 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 }).
  • ActivityToolbar takes a leading slot: beside a host's control its feeds move into a Show menu, and it drops grouping when the host offers none.
  • New: components/activity-feed/ActivityFeed/ — ActivityFeed, ActivityFeedTasks (the entity Tasks view), ActivityFeedEntityTab (the AI-mode tab ActivityFeedTab renders on every entity page), ActivityFeedTabLabel + useActivityFeedCounts + useTaskStatusParam (the page tab's count and the Status it follows).
  • One new i18n key, label.value-with-count ({{value}} · {{count}}), in all locales.
  • EntityUtilClassBase: [EntityType.WORKSHEET]: 2 is removed from FQN_PARENT_LEVEL_BY_TYPE. A worksheet's FQN depth varies (service.spreadsheet.worksheet or service.directory.spreadsheet.worksheet), so a fixed parent level split some worksheet FQNs wrongly. This changes getFqnParts and useFqn for every worksheet page, not only this feature: a worksheet column deep link now treats the whole FQN as the entity.
ai-dark-tasks ai-light-tasks classic-light-tasks classic-light-activity ai-dark-activity ai-light-activity playwright-report-inbox-specs playwright-report-landing-my-tasks playwright-report-pr-34820

Not in this PR

  • Design parts with no data yet: unread markers ("1 new", blue dots), the card's ⋯ menu, the failing-test card's stats, "Show N unchanged".
  • Conversations for a user link: conversations can be filtered by asset, not by who started them.
  • Exact task scoping. The task list's aboutEntity filter (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.
  • usePageScrollPane hands scrolling to the page for mouse-wheel input only; keyboard and touch scrolling inside the feed scroll the feed alone.

Type of change:

  • New feature

Tests:

Unit tests

  • New: 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.
  • Full Jest run after merging main: 403 suites, 3,735 tests pass. tsc clean on the changed files; yarn ui-checkstyle:changed 0 errors.

Playwright

  • Against a production build of the head commit (1ae2512ea7e, main merged) 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

  1. Local stack, seeded: a table with activity, conversations and mentions; a table with access, tag and ownership tasks.
  2. Table page in AI mode: Activity (Show menu, date, type, cards, replies), Tasks (status, type, group, search, task detail, approve), …/activity_feed/tasks deep link.
  3. Same pages in classic mode: today's tab. Inbox Activity and Triage: measured unchanged.
  4. Scrolling (1440×900, Activity and Tasks): the first 218px of wheel scroll the page and pin the tab bar at the top of the scroll area, the feed then ends at its bottom and scrolls itself; scrolling back up returns the page to the top.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence 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.

  • Entity pages now have an Inbox-style Activity and Tasks feed.

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 --> Queries
Loading

Reviews (10) · Last reviewed commit: "fix(ui): show a failed entity task load ..." · Reviewed by Greptile

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.
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added the UI UI specific issues label Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

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.
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Oct 7, 2026
@harsh-vador harsh-vador self-assigned this Oct 7, 2026
…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").
@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 79%
79.7% (130926/164262) 66.26% (46119/69602) 69.14% (26186/37870)

…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.
harsh-vador and others added 8 commits October 23, 2026 06:01
- 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).
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

UI browser tests

Ran: 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%)

File Changed lines Executed %
src/components/activity-feed/ActivityFeed/useActivityFeedCounts.ts 6 1 17%
src/components/activity-feed/ActivityFeed/useActivityDatePresetParam.ts 15 3 20%
src/components/discovery/personal-space/InboxPage/useInboxActivity.ts 34 8 24%
src/components/discovery/personal-space/InboxPage/useTaskStatusCounts.ts 8 2 25%
src/components/activity-feed/ActivityFeed/useTaskStatusParam.ts 14 4 29%
src/components/discovery/personal-space/InboxPage/taskScope.utils.ts 20 6 30%
src/components/discovery/personal-space/InboxPage/activityScope.ts 11 5 45%
src/components/activity-feed/ActivityFeed/ActivityFeed.utils.ts 4 2 50%
src/rest/activityAPI.ts 2 1 50%
src/utils/DataProductUtils.tsx 2 1 50%
src/utils/DomainUtils.tsx 2 1 50%
src/components/activity-feed/ActivityFeed/ActivityFeedTabLabel.tsx 13 8 62%
src/components/discovery/personal-space/InboxPage/inbox.utils.ts 3 2 67%
src/components/ActivityFeed/ActivityFeedTab/ActivityFeedTab.component.tsx 7 6 86%
src/components/discovery/personal-space/inbox.constants.ts 1 1 100%
src/hooks/useEntityFeedLink.ts 4 4 100%
src/utils/APICollection/APICollectionUtils.tsx 2 2 100%
src/utils/APIEndpoints/APIEndpointUtils.tsx 2 2 100%
src/utils/ChartDetailsUtils.tsx 2 2 100%
src/utils/ContainerDetailUtils.tsx 2 2 100%
src/utils/DashboardDataModelUtils.tsx 2 2 100%
src/utils/DashboardDetailsUtils.tsx 2 2 100%
src/utils/Database/DatabaseTabsUtils.tsx 2 2 100%
src/utils/DatabaseSchemaTabsUtils.tsx 2 2 100%
src/utils/DirectoryDetailsUtils.tsx 2 2 100%
src/utils/FileDetailsUtils.tsx 2 2 100%
src/utils/MetricEntityUtils/MetricUtils.tsx 2 2 100%
src/utils/MlModelDetailsUtils.tsx 2 2 100%
src/utils/PipelineDetailsUtils.tsx 2 2 100%
src/utils/SearchIndexUtils.tsx 2 2 100%
src/utils/SpreadsheetDetailsUtils.tsx 2 2 100%
src/utils/StoredProceduresUtils.tsx 2 2 100%
src/utils/TableTabsUtils.tsx 2 2 100%
src/utils/TopicDetailsUtils.tsx 2 2 100%
src/utils/WorksheetDetailsUtils.tsx 2 2 100%
Changed files no browser test loads
  • src/components/Glossary/GlossaryDetails/GlossaryDetails.component.tsx
  • src/components/KnowledgeCenter/KnowledgePageDetailComponent/KnowledgePageDetailComponent.tsx
  • src/components/activity-feed/ActivityFeed/ActivityFeed.tsx
  • src/components/activity-feed/ActivityFeed/ActivityFeedEntityTab.tsx
  • src/components/activity-feed/ActivityFeed/ActivityFeedTasks.tsx
  • src/components/common/TabsLabel/TabsLabel.interface.ts
  • src/components/discovery/personal-space/InboxPage/components/ActivityToolbar.tsx
  • src/components/discovery/personal-space/InboxPage/components/InboxTaskListToolbar.tsx
  • src/components/discovery/personal-space/InboxPage/components/TaskQueueBody.tsx
  • src/components/discovery/personal-space/InboxPage/tabs/ActivityTab.tsx
  • src/components/discovery/personal-space/InboxPage/tabs/TasksTab.tsx
  • src/components/discovery/personal-space/InboxPage/useTaskQueue.ts
  • src/hooks/usePageScrollPane.ts
  • src/pages/TagPage/TagPage.tsx
  • src/utils/Glossary/GlossaryTermUtils.tsx

@ShaileshParmar11 ShaileshParmar11 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/tasks links build for every entity type, including glossaries, terms, tags, domains and data products.
  • The backend accepts entityLink on /activity/mentions and includeFields on the conversations endpoint.
  • The TasksTab → useTaskQueue + TaskQueueBody refactor 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:

  • cd06d9be0b makes ChartDetailsUtils.test await the lazy tab label, and ui-coverage-tests now 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.
  • getEntityTabBar matches the core Tabs markup that every page uses.
  • usePageScrollPane undoes 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.
@gitar-bot

gitar-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk 3 closed / 3 findings

The 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

📄 openmetadata-ui/src/main/resources/ui/src/components/activity-feed/ActivityFeed/ActivityFeedTabLabel.tsx:40
useInboxActivityCounts returns { total, isCapped }. Inside the feed, getInboxTabBadge/formatInboxCount shows a capped count as 30+. The page tab label instead passes activityCount.total + taskCounts.open as a plain number and ignores isCapped. So when the activity fetch hits its cap, the tab shows a number that looks exact but is really a lower bound, and it disagrees with the feed's own Activity · 30+ badge. This contradicts the PR's claim that the tab count matches the feed. One fix is to keep the cap when building the label: drop the count or mark it as a floor when activityCount.isCapped is true. Another is to pass the formatted string, if TabsLabel accepts one.

✅ Bug: Feed link uses raw route FQN, so column deep links target the wrong entity

📄 openmetadata-ui/src/main/resources/ui/src/components/activity-feed/ActivityFeed/useEntityFeedLink.ts:27-32 📄 openmetadata-ui/src/main/resources/ui/src/components/activity-feed/ActivityFeed/ActivityFeedTabLabel.tsx:71 📄 openmetadata-ui/src/main/resources/ui/src/utils/TableTabsUtils.tsx:309
useEntityFeedLink builds the link from useFqn().fqn, which is the raw :fqn route param. On column deep links like /table/svc.db.schema.tbl.col, entity pages call useFqn({ type }) and take entityFqn, because getFqnParts removes the column part (see TableDetailsPageV1 and SchemaTable). Before this commit, the table page built the link from tableDetails.fullyQualifiedName. Now, in AI mode on a column URL, the tab label and entity tab use <#E::table::svc.db.schema.tbl.col>, so the count and the Activity/Tasks queries look up an entity that doesn't exist and show 0 or empty results. This also applies to topics, containers, search indexes, data models, API endpoints and ML models, which have nested field routes. The fix is to pass the type to useFqn and use entityFqn.

✅ Edge Case: Wheel hijack cancels horizontal scrolling over the feed

📄 openmetadata-ui/src/main/resources/ui/src/hooks/usePageScrollPane.ts:98-107
handleWheel checks only deltaY. Until the page reaches its end, it calls preventDefault() on every wheel event over the feed whose deltaY > 0. A trackpad swipe that is mostly sideways usually carries a small positive deltaY, and preventDefault() cancels the whole event, horizontal part included. So a sideways swipe over a horizontally scrolling child (a wide change panel, a table in the task detail) gets turned into a small page scroll and the child never moves. Shift+wheel in browsers that report it as deltaY hits the same problem. Fix: return early when the gesture is mainly horizontal or Shift is held.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@ShaileshParmar11 ShaileshParmar11 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving the UI changes at a962751c22. All six comments from the previous review are addressed:

  • A failed load is no longer counted as 0. useActivityFeedCounts returns no activity count when the read fails. The label hides its count unless the chosen Status also has a task count. useActivityFeedCounts.test.ts covers 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/about request, and that the count matches the feed once the tab is open. Keying the opened state on entityLink also resets it when the page moves to another entity.
  • The aboutEntity test is back. A second case checks that the entity scope wins when a user is 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

2 participants