Repository navigation
Inbox Activity redesign: sub-tabs, inline replies, change panels and searchable reply mentions - #34122
Conversation
The Triage task detail hid half of itself behind an Overview/Activity tab split, described every task type with the same assignees/description rows, and said nothing about the asset a request was actually about. It now reads top to bottom: a header carrying the task type, its id and what the task is waiting on, then the asset it concerns with the few numbers that tell a reviewer whether the change matters, then the type's own summary and rationale, then events and comments interleaved in the order they happened, with the composer pinned at the bottom. What a task type looks like is now data, not markup. `getTaskDetailDescriptor` returns rows, a callout and a type chip per type, and one renderer draws them, so a new type is a case in a pure function with a test, not another panel. The `inbox.task-panels` extension point grows `describe` and `stats` alongside the existing `component`, letting a plugin refine a type it owns without taking over the layout; the previous contribution shape keeps working. Actions fold into two buttons and an overflow menu rather than spreading across the header. Approve and reject take the slots when a task has them; an incident or a granted access request promotes its own transitions instead, so its real action is never buried. Server-side: the scoped task lists (`/assigned`, `/visible`, `/owned`, `/created`) accept `q`, reusing the free-text condition the data-access-request list already had. It was never DAR-specific, so it is now named for what it is. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The list was a flat, undifferentiated stack: every card repeated the entity type it belonged to, and the only way to find a task was to scroll. It now groups by task type, most urgent type first — a live test failure, then a request blocking someone, then metadata hygiene — with a count per group. A toolbar above it searches, switches the grouping off, and narrows to the types the queue actually contains, rather than offering the whole enum. Search is served: the text reaches `/tasks/visible` as `q` once typing settles, so it matches tasks that were never loaded. The type filter is not — the scoped list endpoints have no `type` param — so it narrows the loaded pages, and says so at the call site. Grouping likewise covers what is loaded: the server pages by cursor, not by type. Each card drops the type badge, now carried by its group header, and gains the asset it concerns, which is what distinguishes two otherwise identical rows. `taskDetail.utils` no longer reads the tier through the table utils. That module reaches the customization and permission layers at import time, which pulled a React Query client into the list bundle and broke its tests; the tier prefix is read from the shared constants instead. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Review follow-ups on the inbox triage work. The timeline claimed an assignment happened when the task was created, because the task records who holds it but never when they were given it. On a task reassigned after a discussion, that placed the assignment before comments that really came first. The event is gone; the current assignee is already in the summary rows, and its now-unused message key goes with it. Two comments were wrong about the code beneath them. The status label's said the workflow stage name outranks everything, when "unassigned" and "pending your approval" deliberately come first — they tell the viewer whether the task is theirs to move, which a stage label does not. The about-entity fetch's claimed tags come back for every entity type; several handlers hardcode owners and drop the rest, so those assets render no tier. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Three warnings the UI quality gate attributed to this PR's files. The task detail panel imported a page module to name one tab. The routing it needed now lives in TaskNavigationUtils as `getTaskAboutPath`, where the rest of the task routing already is, so a component no longer reaches into a route-level module to build a URL. `TestCasePageTabs` moves down to `enums/TestCase.enum` for the same reason — the utilities that build these URLs should not import the page they point at — and the page re-exports it, so its existing consumers are untouched. The transition sync read one task twice inside a loop, which read as per-item fetching. Two attempts, written out, with the polling intent stated. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Both sides changed the inbox task comment row. Main made its actions keyboard reachable — real buttons kept mounted and revealed with opacity rather than mounted on hover — and lifted `resolveCommentPermissions` into `utils/TaskCommentUtils` so the task tab and the inbox cannot drift from each other or from the server's rules. This branch had meanwhile moved that row into its own file. Took main's accessible pattern and its shared permission rule into `TaskCommentRow`, and kept this branch's single-pane panel, which no longer renders comments itself.
Design feedback on the triage work: the inbox should carry Activity and Triage and nothing else, with My Data as a separate surface. The shell had wrapped the inbox in its own Triage / My Data tab strip, so the page showed two rows of tabs and buried the actual queue one level down. It now renders the body alone, and the body's Activity / Triage switcher — which already owns their live counts and the shared date filter — is the only tab bar. The tasks tab takes the name the design gives it, Triage. My Data keeps its route and renders standalone behind the same permission gate, so nothing that links to it breaks while it becomes the modal the design asks for. Callers pass `content` instead of `triageContent` plus `myDataContent`.
Karthick's answers on the gaps between the triage mock and what the data supports. Timeline keeps "assigned", as the simple timeline he specified includes it. The task records who holds it but never when they were given it, so the event now carries no time of its own: it sorts right after creation and shows untimed, rather than being dated to a moment that did not happen. An event can therefore sort by a key distinct from the time it displays. The asset tiles take the agreed wording. Usage reads "Queries this week", since the figure is a calendar week, not the last seven days. An unowned asset says "No owner" instead of showing zero, and there is no duration because nothing records when the owner left. The timestamp reads "Metadata updated" with a relative time, since it is the last metadata change and not data freshness. The source row shows words rather than the payload's enum, and on a tag request the agent is named as auto-classification. The payload holds one source, so a change an agent proposed and a person filed reads as its origin alone. Tiles with no number stay hidden, and the grid now takes exactly as many columns as there are tiles: with a fixed four, a hidden tile left an empty cell the separator background painted grey. That grid is exported so a plugin's tiles render identically.
The updated triage design, applied across the list, header and asset card. List rows lead with a tinted icon for their type, and group headers carry the same colour as a dot beside a plain count. The type filter reads "Filter". The header shows its status as a coloured dot and word rather than a second pill, so the type chip is its only badge. Legacy actions take their design names: "Approve Tag" on a tag request, "Assign Owner" and "Dismiss" on an ownership request. The subtitle names what happened — requested, asked, opened — and adds "waiting on you" exactly when the status reads "pending your approval"; one rule now decides both, so they cannot disagree. Each task type gets its own tiles instead of one generic set. An incident shows the failing test: its type, the table it runs against, severity and incident stage. When an incident names no asset, its test case is fetched from the description and stands in, and no lineage call is made for it. A tag request shows usage and current tags; an ownership request shows current owners, reach and who holds it. Everything else shows reach, columns with the PII share called out, usage and the last metadata change. Tiles are typed data that can carry a tone, a link or a badge, and the per-type choice is a pure function. Rows follow suit: the date reads "Opened on", "Requested on" or "Raised on" by type, ownership rows are simply the current owner and when it was raised, tag values show their full FQN, and the agent source reads "Auto-classifier". A plugin's description slices now merge through getTaskDetailDescriptor, which keeps the closed-task outcome rows appended even when the plugin supplies its own rows.
… type - The detail body is a scrolling flex column; the asset card's overflow-hidden let it shrink to nothing instead of the body scrolling, hiding the stat tiles. Sections no longer shrink. - Metadata tasks now arrive with generic Approve/Reject workflow transitions, which skipped the type's own wording. A type's approve and reject labels now override those; other actions keep the server label. - The ownership approve action names the proposed owner. - Incidents fetch the test case with its test definition, so the Test type tile renders.
- The Activity / Triage tabs move into the page header as underline tabs, and the header and body sit flush in the page card. The subtitle drops "owned data" now that My Data is its own surface. - The list column owns its controls: an All / Open / Closed segmented control with a "Group: Type" menu, then "Search this queue…" and a Filter button. The detail pane gets the full height, with its header pinned above a scrolling body and the composer below. - Triage has no date window. It is a work queue, so an open task must not age out of it; its tab count follows, matching the sidebar bubble. Activity keeps its date filter. - Rows: a short "#357" id, regular-weight titles, the comment count only when there is one, and a white selected card. - Detail: type badge ("Tag request", "Access request"), a 12px id and status, plain Reject / Approve buttons, the requester's avatar in the byline, inline key/value rows, a quieter callout, 12px timeline events, and a one-line composer without the format bar. - "· waiting on you" is dropped from the byline; the status already says "Pending your approval".
- Header tab counts are soft pills with no outline: brand-tinted on the selected tab, gray on the other. - All / Open / Closed sits on a gray track; the selected option is a raised white chip with no outline and near-black text, the rest gray. - The "Group: Type" trigger stays neutral. A grouping always has a value, so FilterSelect's active-filter brand tint was permanent and only reached the icons, leaving the label dark.
The server names incident tasks "Test Case Incident - <test case display name>", and most test cases have no display name, so the inbox showed "Test Case Incident - null". Nobody authored that title, so incidents now compose one the way the entity-page task card does: "Request TestCase Failure Resolution for <test case> (testCase)". An incident with no about reference takes the test case from its description. Composed titles carry the entity type, as that card shows.
- Task ids, asset chips and the asset card name use the body font. - The detail header centres its badge row against the actions, and the detail body gets a little more padding.
Long titles in the inbox list and the task detail header were clamped to two lines with no way to read the rest. ClampedText keeps the clamp and wraps it in the core Tooltip, enabled only when the text is actually cut off (useIsTextClamped measures the element and re-measures on resize). The trigger is a react-aria Focusable rather than Typography's ellipsis tooltip: that one wraps its content in a button, which the detail title cannot sit in because it holds the asset link. Focusable takes the tooltip's hover context without a press handler or a tab stop, so the link and the row click keep working.
The incident card left out the Severity tile and the tier badge. The task payload rarely carries a severity (it lives on the incident's status records), and a test case has no tier of its own. For an incident, the about-entity fetch now also reads the incident's latest status record, keyed by the task id, and the tier of the table the test runs against. The status read runs alongside the test case; the table read follows it, since it needs the test case's link. Either failing only drops its own tile. The cache key includes the task id for test cases, since two incidents can share one. The tier badge reads "Tier 2" rather than the raw "Tier.Tier2" FQN.
- Events sit in a ringed 24px circle; an alert's circle is tinted red so it reads at a glance instead of a bare icon. - Comments share the same 24px rail with a 12px gap, and the card is rounded, lightly raised and padded like the design, with a 24px body line height. - Timeline and date rows read month first: "Aug 06, 2025, 03:17 PM".
- The send button is the design's blue arrow button, placed in the editor's editAction slot instead of its antd paper-plane button. It posts through the editor ref and clears the draft; Enter still sends. - The placeholder reads "Leave a comment…" (new message key, translated in every locale). - A soft shade above the footer, so the activity reads as scrolling under the composer.
- Comment cards use even 12px padding. - Stat tile links (the incident's table) use the body font.
The circled icons (PlusCircle, CheckCircle, XCircle) drew a second circle inside the event's ring. Use the plain Plus, Check and XClose glyphs so each event shows a single ring, as the design does.
Composed titles carried the asset type in brackets ("… (testCase)").
getTaskTitleParts now returns the title and the asset type apart, and
the list row and detail header draw the type as a badge after the title
("… orders_rows [Test Case]"), as the design does. Titles someone
wrote carry no type and get no badge; getTaskTitle keeps returning just
the text for other callers.
The task timeline was guessed from the task's own fields: one untimed "assigned" row for the current holder, and nothing for acknowledgements or reassignments. An incident's status records hold its real history, and the about-entity fetch already reads them for the severity tile. For an incident, the timeline now draws one event per record, each with who made the change and when: - opened, with the test's failure reason when the task carries one - acknowledged - assigned to someone, for every reassignment - resolved, credited to whoever resolved it A record's assignee stored as a bare id is named from the task's own assignees; one nobody can name reads "reassigned the incident" rather than ending the sentence on nothing. Tasks with no status history keep the existing events. Five new message keys, translated in every locale.
The stat strip split the card into equal columns, so a long label such as "Active Access Requests" wrapped while its neighbours had room to spare. The strip is now a wrapping row: each tile grows from its content's width and labels never wrap, so a long label takes the room it needs and a narrow pane wraps whole tiles rather than words.
- A closed task's byline reads as its outcome, led by whoever decided it: "Rejected by harsh.soni on Jul 21, 2026". The Resolved By row it duplicated is dropped; Resolved On and the comment stay. - People rows name the viewer as themselves: "harsh.soni (You)". - A task type can word its timeline "created" event itself (TaskDetailDescriptor.createdEvent); buildTaskTimeline takes an options object for that and the incident status history. - The PII count matches PII.Sensitive only. A prefix match also counted PII.NonSensitive and PII.None, which classify a column as safe. One new message key, translated in every locale.
- The detail grid sizes its two columns to their content, so a short left
value ("Full Access") lends its spare width to a long right one
("14 Days · expires Oct 8, 2026") instead of wrapping it.
- Inbox dates drop the padded day: "Oct 8, 2026", not "Oct 08, 2026".
- The Metadata updated tile reads the elapsed time in its largest unit
and narrow form ("23h", "3d"), through a new getElapsedTime helper
that formats with Intl, so every locale gets its own unit.
Load more on a capped no-match raised the cap for the rest of the mount, so every later filter auto-paged past the bound. The raise is now keyed to the tab, search and filters it was made under; any change falls back to the base cap.
…e test enums - The task list popover header and the comment actions group render through the core Box instead of hand-rolled flex divs. - TestCasePageTabs moves into the existing enums/TestSuite.enum beside TestCaseType instead of a new enums file; IncidentManager.interface still re-exports it.
Sharing one predicate between the status label and the Status filter dropped the approve-action check, so an access request awaiting its grant or a manual revoke read "Pending approval" to its holder instead of its workflow stage. Open statuses past approval (Approved, ManualRevoke) no longer count as awaiting the viewer's approval; the label shows the stage and the filter files them under In review, so the two still agree.
# Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/inbox.utils.ts
# Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/InboxContent.test.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/InboxContent.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/components/ActivityDetailDrawer.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/components/ActivityFeedItem.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/components/InboxCommentComposer.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/inbox.utils.test.ts # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/inbox.utils.ts # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/useInboxCounts.test.tsx # openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/useInboxCounts.ts # openmetadata-ui/src/main/resources/ui/src/utils/date-time/DateTimeUtils.test.ts
- The Activity and Triage counts use the same outlined badge as the Activity sub-tabs instead of a borderless pill. - Every inbox count caps its display at 99+, so a capped activity list no longer reads as an odd figure like 202+.
…d on hover - The Before column sits on the subtle surface with the design's padding, After's label reads a step darker, and the divider arrow carries its shadow. - Card and reply author avatars are plain filled circles: ProfilePicture gains an opt-in borderless mode with neither the contrast outline nor a ring. - Hovering an author's avatar or name opens the user card, as elsewhere in the app; an event with no actor shows no card.
A full activity page can pair and clip down to a few cards, so reading every capped count as 99+ claimed more than the list showed. Only a count past 99 reads 99+; a smaller capped count keeps its trailing plus.
- Reactions show at once, build on the latest list so two quick ones both land, ignore a repeat (no double like), roll back on refusal, and write back to every cached sub-tab feed. - A refused reply or task comment rejects, so the composer puts the draft back instead of losing it. - A thread reads its replies page by page to the newest, so a reply past the first hundred shows. - A conversation started on an earlier day than its day group shows its date, not a bare time. - Switching sub-tab reads the first batch in the same render and starts at the top. - A full page the window clipped is not marked capped; duplicate change chips get unique keys; the author name is a focusable link whose focus opens the user card; the like count and day header separators go through i18n.
Every card read its replies as it scrolled into view, one request per card, just to label its collapsed toggle. Replies now load when a thread is opened. A closed conversation counts its replies from its replyCount; a closed activity card, whose event carries no count, shows only Reply until opened; a thread read once keeps its count and faces.
A composed task title opens with its task type ("Request TestCase Failure
Resolution for orders"), which the server never stores, so searching
those words found nothing. A search that opens with at least two words of
a type's title, in the viewer's language, now narrows the list to that
type, and only the rest goes to the server.
Reading a search's leading type words as a type filter dropped tasks of other types whose own title starts with those words, and tasks matched only on a stored field. Those words now match the title shown on the card, whatever its type, and a task whose stored fields hold the whole search still matches, as the server would have; a plain search is unchanged.
- Pass the timestamp straight to Tooltip with triggerClassName; TooltipTrigger is deprecated and Tooltip renders the same AriaButton wrapper. - Size avatars with the core Avatar size instead of the deprecated width. - Name the reactions state pair symmetrically; the ref-syncing wrapper is updateReactions. - Mark the replies refetch as deliberately not awaited. - Dedupe the activity type keys with a Set; they are compacted first.
UserPopOverCard moved to the core HoverCard on main, which opens on hover and on keyboard focus by itself, so the trigger prop this branch added is dropped. The decorative avatar link stays out of the tab order, so its card remains hover-only.
Code Review ✅ Approved 4 closed / 4 findings🟡 Medium risk · Adds a scoped mentions endpoint and substantial, user-facing Inbox feed behavior. Inbox Activity redesign adds sub-tabs, inline replies, change panels, and searchable reply mentions. Group header counts, thread collapse after final reply deletion, capped count display, and title-prefix search have all been addressed. ✅ 4 closed✅ Bug: Group header counts only the rendered batch, not the group
✅ Edge Case: Thread can't be collapsed after its last reply is deleted
✅ Edge Case: Capped count under 99 now shows "99+" though the list has fewer items
✅ Edge Case: Title-prefix search hides tasks whose own title or text uses those words
OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
|
🚦 Removed from the merge queue —
|



Describe your changes:
Redesigns the Inbox Activity tab to the new design and makes mentions in activity replies searchable. Targets
main; the Triage redesign it builds on (#33578) has merged. The companion Collate PR (open-metadata/openmetadata-collate#6914) moves the Inbox E2E onto this feed.Tabs and toolbar
99+once it passes 99, and<n>+when the list is a floor (the page came back full)./v1/activity). My assets and Following use/activity/my-feedand/activity/following.Cards
Searchable mentions (backend)
Mentions in activity replies were already saved in
conversation_mention, but the conversation list only returns user conversations (c.source = 'User'), so the Mentions tab never saw them. New endpointGET /v1/activity/mentions(days≤ 30,limit≤ 200, optionaldomain) returns the events whose replies mention the viewer or their teams. It reads those rows directly, because an activity's reply container shares the activity id. No schema change and no migration. Editing a mention out of a reply, or deleting the reply, removes the event from the feed. The window counts from when the mention was made, so a new mention on an older event still shows.Shared components touched (both changes are opt-in; existing callers are unchanged)
ProfilePicture: newborderlessprop, which drops the contrast outline and ring.UserPopOverCard: newtriggerprop, defaulthover.Not in this PR (agreed with design): read/unread state (needs backend), test/schema/metric cards, impact notes and CTAs.
Type of change:
High-level design:
useInboxActivitymaps each sub-tab to one events request plus one conversations request. The list and every count share react-query keys, so no request is duplicated. "Mentioned you" reuses the Mentions query already read for its count.ActivityResource#getMentionsFeed→ActivityStreamRepository#getMentionsFeed→ActivityStreamDAO.listByMentions[AndDomains], built the same way as the my-feed and following feeds (MySQL + Postgres). The lookup is served by the(mentionedEntityType, mentionedEntityId, createdAt, conversationId)index. Like the my-feed and following feeds, results are user- and domain-scoped; they are a subset of the domain-filteredGET /v1/activity.Tests:
Use cases covered
99+and<n>+; grouping, type and date filters narrow the list.Unit tests
activityAPI,ProfilePictureandPopOverCardsuites: 49 suites, 621 tests pass.tscclean on the changed files;yarn ui-checkstyle:changed0 errors.Backend integration tests
ActivityResourceIT:test_mentionsFeedFollowsMentionsInActivityReplies,test_mentionsFeedSupportsDomainFilter,test_mentionsFeedIncludesTeamMentions, against Postgres and MySQL.Playwright (UI) tests
AskCollateInbox.spec.ts,AskCollateInboxTaskMatrix.spec.ts); open-metadata/openmetadata-collate#6914 moves it from the drawer to the inline thread.Manual testing performed
Checklist:
Fixes <issue-number>: <short explanation>🤖 Generated with Claude Code