Skip to content

Fixes 37885: Inbox task groups, capped activity feed and closed-task links - #37886

Merged
harsh-vador merged 7 commits into
mainfrom
fix/inbox-qa-fixes
Nov 16, 2026
Merged

harsh-vador merged 7 commits into
mainfrom
fix/inbox-qa-fixes

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #37885

I fixed eight Inbox (/inbox, AI mode) defects found while testing both tabs end to end on 2.1.

Triage

  1. Groups and Type counts. A list grouped by type (the default) now reads on by itself, up to the same 200-task scan cap a narrowed list uses. The groups and the Type menu's counts cover the queue, and an older incident shows at the top on open instead of after scrolling to the end. While pages remain, group counts read "N+" and the Type menu hides its counts. useInboxInfiniteList now exposes loadMore for this.
  2. Closed-task link. ?taskId= for a closed task now opens the Closed tab with the task selected. Only the first load decides, so the viewer can then move to any tab. TaskDetailPanel gains an onLoaded callback for it.
  3. Creator in the timeline. The created event credits the proposing AI agent, matching "Created by".
  4. No match. A search or filter that matches nothing shows its message in the list, under the controls, instead of in the detail pane.
  5. "Resolved on". The label was "Resolved On" next to "Opened on". The key is used only by the Inbox.

Activity
6. Capped feed. /v1/activity returns at most 200 events and takes no cursor or end time, so the UI can't page past them. When a list comes back full, the merged feed is cut at its oldest item, so older days no longer show conversations alone. The cut day reads "200+ Updates", and the end of the feed says only the newest updates are shown (new message inbox-activity-capped, translated into every locale). Paging past the cap needs a cursor or endTs on /v1/activity; I've left that as a follow-up.
7. "Today" replaces "Yesterday". "Yesterday" ran from the start of yesterday to now, so it listed today. A yesterday-only window needs an end time the activity API doesn't take; with a page cap, a busy today would also leave it empty. Every preset runs to now, so the one-day preset is "Today".
8. 1024px. The feed's right edge was clipped. scrollbar-gutter: stable both-edges clips a full-width feed in Chromium under a classic, non-overlay scrollbar, as on Windows. The scroller now reserves the end edge only, and the Inbox gives the Activity tab the side gutter its toolbar's negative margin already assumes.

Not changed, found in the same pass:

  • An incident you hold reads "Pending approval". That matches the Status filter option it is filed under, an existing rule with a test. Changing it needs a new name for that option across task types.
  • "Requested On" stays: Collate overrides requested-on to Title Case for its Data Access Requests table, and the Inbox shares the key.

Before / after

1. Task groups and Type counts:

task-groups

2 · 3 · 5. Closed-task link, agent in timeline, "Resolved on":

closed-task-link

4. No-match message:

search-no-match

6. Capped Activity feed:

activity-cap

7. Date preset:

date-preset

8. Activity at 1024px:

activity-1024

Type of change:

  • Bug fix

High-level design:

UI fixes confined to InboxPage/, plus one new locale message and the resolved-on English label. Three choices are recorded:

  • ADR:2026-11-16-a-grouped-inbox-task-list-reads-ahead-to-the-scan-cap: a list grouped by type reads ahead to the 200-task scan cap, stops on a failed page, and shows "N+" counts while pages remain.
  • ADR:2026-11-16-a-capped-inbox-feed-is-cut-at-its-oldest-item: a capped feed is cut at its oldest item, date windows use the viewer's local days, and the one-day preset is Today.
  • ADR:2026-11-16-a-link-to-a-closed-inbox-task-opens-the-closed-tab: a link to a closed task opens the Closed tab on that link's first load.

Tests:

Use cases covered

  • A grouped list with pages left calls loadMore; it stops at the scan cap and when grouping is off; group counts read "N+" while pages remain.
  • A link to a closed task moves the list to Closed once; a link to an open task keeps Open.
  • TaskDetailPanel reports the server's task, not the list row it falls back on.
  • No-match renders inside the list column.
  • A capped activity list cuts the conversations at its oldest event, and the reverse; the cut day reads "N+" and the capped note shows only when capped.
  • The date presets offer Today and no one-day "Yesterday"; Today starts at the start of the current day.
  • The timeline credits the proposing agent.
  • loadMore fetches the next page without the sentinel.

Unit tests

  • I added unit tests for the new/changed logic.

jest src/components/discovery/personal-space: every InboxPage suite passes, along with the TasksTab and ActivityTab consumers in Profile. 6 Profile suites (ProfilePage, ProfileSideNav, profileNavConfig, AccessControl*) fail to load in my local setup on @tiptap/react/menus (a tiptap version mismatch in my installed packages); none of them touch these files. eslint and prettier on the changed files: clean. tsc: no errors in InboxPage.

Backend integration tests

NOT NEEDED: UI-only change.

Ingestion integration tests

N/A: no ingestion changes.

Playwright (UI) tests

Verified by hand against a local 2.1 server (UI served by Vite); the before/after GIFs above come from that run. The Inbox Playwright specs were not rerun for this change.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no new actionable issues remain.

Summary

The PR fixes Inbox task grouping, closed-task links, activity limits, date presets, and layout.

  • Grouped task lists read ahead to the 200-task scan cap.
  • Capped Activity feeds stop at a clear shared cutoff.
  • Links to closed tasks open the Closed tab with the task selected.
  • Task search and filter messages appear beside the task list.
  • Activity date choices use local days and offer Today.
  • Created task events name the proposing AI agent.
  • The Activity feed keeps its right edge visible at narrow widths.
  • The task detail label now reads “Resolved on.”

Reviews (6) · Last reviewed commit: "docs: rewrap the grouped read-ahead reco..." · Reviewed by Greptile

Fixes #37885

- Triage: a list grouped by type reads on to the scan cap, so groups and
  the Type counts cover the queue; counts read "N+" while pages remain.
- Triage: a link to a closed task opens the Closed tab; the no-match
  message shows in the list; the timeline credits the proposing agent;
  "Resolved on".
- Activity: a capped list cuts the merged feed at its oldest item, marks
  the cut day "N+" and says only the newest updates are shown.
- Activity: "Today" replaces "Yesterday", since every window runs to now;
  the feed keeps its gutter at 1024px.
@harsh-vador
harsh-vador requested a review from a team as a code owner November 16, 2026 10:28
@harsh-vador
harsh-vador requested a review from karanh37 November 16, 2026 10:28
@harsh-vador harsh-vador added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs labels Nov 16, 2026
@github-actions

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.

…k links

- A page that fails stops the grouped task list reading ahead, instead
  of being requested again on every settle; scrolling retries it.
- Each task link settles its own tab, and a link followed while the tab
  stays mounted opens its task.
- The capped feed's cut day comes from the whole feed, so a type filter
  no longer moves "N+" onto a complete day.
- Records ADR:2026-11-16-a-grouped-inbox-task-list-reads-ahead-to-the-scan-cap
  and ADR:2026-11-16-a-capped-inbox-feed-is-cut-at-its-oldest-item.
The presets started and ended on UTC days while the feed heads its days
in the viewer's zone, so outside UTC "Today" began hours late, or showed
yesterday just after midnight.
@harsh-vador
harsh-vador enabled auto-merge (squash) November 16, 2026 10:48
- The list's observer retries a failed page only when the sentinel comes
  back into view; a new observer no longer refires it at once.
- Mentions is not cut to the conversations' span: its events carry their
  own time, not the mention's.
- Closed-link tests assert the selected tab and the open task.
- Records ADR:2026-11-16-a-link-to-a-closed-inbox-task-opens-the-closed-tab.
… was cut

- The task list shows a Retry below its rows when a later page fails. A
  filter that hides every loaded row leaves nothing to scroll, so the
  sentinel alone could never ask again.
- The fetch reports where the feed was cut (`cutAt`), and the "N+" floor
  goes on that day rather than on the last card's. In Mentions an old
  event mentioned today can sit past the cut.
@gitar-bot

gitar-bot Bot commented Nov 16, 2026 •

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

The Inbox now reads task queues ahead and truncates capped activity feeds, which could burden large queues or hide older updates from users.

Reworks the Inbox task list and activity feed: grouped lists read ahead to the 200-task scan cap, closed-task links open the Closed tab, the Activity feed is capped and cut at its oldest item, and "Yesterday" becomes "Today". Resolved the stale linked-tab ref on ?taskId changes, documented the grouped-list auto-paging and capped-feed rules, and reconciled the Mentions exemption with the capped-feed ADR. No open issues remain.

✅ 4 closed
✅ Edge Case: Linked-tab ref never resets when ?taskId changes while mounted

📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/tabs/TasksTab.tsx:634-647
isLinkedTabSettledRef is a single boolean that is set the first time any linked task loads and is never cleared. If the viewer is already on /inbox/tasks and opens a second link (for example from the notification bell) to a closed task, linkedTaskId changes but the ref is still true. The list then stays on the Open tab while the closed task shows in the detail pane, which is the bug this PR fixes. A fix is to key the ref by the task id it settled, so each new link gets its own first load.

✅ Quality: Undocumented rule: grouped task list auto-pages to 200 tasks

📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/tabs/TasksTab.tsx:776-784 📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/tabs/TasksTab.tsx:978 📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/components/InboxTaskListToolbar.tsx:184
Grouping defaults to 'type' (useState<InboxTaskGrouping>('type')). With the new effect, every visit to the Triage tab, and every change of status, search or sort, now pages /tasks on its own, one request after another, until it holds MAX_NARROWED_SCAN (200) tasks. With 25 tasks per page that is up to 8 requests. Reusing the narrowed-scan cap as the read-ahead budget for grouping is a judgment call. It also changes the list from reading one page and loading more on scroll, and nothing under docs/decisions/ records it. The record would say: "A list grouped by type reads ahead by itself, without scrolling, up to MAX_NARROWED_SCAN = 200 tasks, and while pages remain its group counts read 'N+' and the Type menu hides its counts." This is the code comment "A grouped list reads on by itself, as far as a narrowed scan would" together with the description's "While pages remain, group counts read 'N+' and the Type menu hides its counts." Please add that record, or give grouping its own named cap.

✅ Quality: Undocumented rule: capped activity feed is cut; Today replaces Yesterday

📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/useInboxActivity.ts:151-165 📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/useInboxActivity.ts:230-237 📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/inbox.utils.ts:431-444 📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/tabs/ActivityTab.tsx:416-430
The PR sets a new contract for the merged Inbox feed, and no record covers it. When /activity returns a full page (200) or /conversations returns a full page (100), both lists are cut at the oldest item of the capped list. The cut day's count then reads 'N+' and the feed ends with a notice. Separately, the profiler's 'Yesterday' preset is replaced by a 'Today' preset (days: 0). No record in docs/decisions/ mentions ACTIVITY_LIMIT, CONVERSATION_LIMIT or the date presets. The record would say: "When either Inbox feed source returns a full page, the merged feed is cut at that list's oldest item, the cut day's count reads as a floor and the feed says only the newest updates are shown. Because /v1/activity takes no end time, the Inbox offers 'Today' rather than 'Yesterday'." This comes from the description: "the merged feed is cut at its oldest item when the list comes back full" and "'Yesterday' is replaced by 'Today' because the activity API takes no end time and a page cap would leave a busy day empty."

✅ Quality: Mentions exemption from the feed cut contradicts the capped-feed ADR

📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/useInboxActivity.ts:151-165 📄 docs/decisions/2026-11-16-a-capped-inbox-feed-is-cut-at-its-oldest-item.md:23-31
This commit makes cutToCompleteSpan skip the cut for ActivityFilter.Mentions (completeFrom = 0). The Accepted record docs/decisions/2026-11-16-a-capped-inbox-feed-is-cut-at-its-oldest-item.md, which this code cites, says "When either list comes back a full page, the merged feed is cut at that list's oldest item" and "The feed never shows a stretch of one kind standing in for both." It lists no exceptions. Now, when the Mentions conversation list is capped, the feed can show mention events older than the oldest conversation with no conversations next to them. The ADR says this never happens, and its guard tests don't cover the new case.

The fix is to amend the record (add a v2 revision) with the rule the code now follows: "The Mentions feed is not cut, because a mention event carries the event's own time rather than the mention's, so an old event mentioned today would fall before the cut." Also add the new test "leaves Mentions whole when its conversations are capped" to the record's Guard list.

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

@harsh-vador
harsh-vador merged commit 188b0a1 into main Nov 16, 2026
56 of 58 checks passed
@harsh-vador
harsh-vador deleted the fix/inbox-qa-fixes branch November 16, 2026 11:35
harsh-vador added a commit that referenced this pull request Nov 17, 2026
…links (backport 2.1 #37886) (#37887)

* fix(ui): inbox task groups, capped activity feed and closed-task links

Fixes #37885

- Triage: a list grouped by type reads on to the scan cap, so groups and
  the Type counts cover the queue; counts read "N+" while pages remain.
- Triage: a link to a closed task opens the Closed tab; the no-match
  message shows in the list; the timeline credits the proposing agent;
  "Resolved on".
- Activity: a capped list cuts the merged feed at its oldest item, marks
  the cut day "N+" and says only the newest updates are shown.
- Activity: "Today" replaces "Yesterday", since every window runs to now;
  the feed keeps its gutter at 1024px.

* fix(ui): stop the grouped read-ahead on a failed page, follow new task links

- A page that fails stops the grouped task list reading ahead, instead
  of being requested again on every settle; scrolling retries it.
- Each task link settles its own tab, and a link followed while the tab
  stays mounted opens its task.
- The capped feed's cut day comes from the whole feed, so a type filter
  no longer moves "N+" onto a complete day.
- Records ADR:2026-11-16-a-grouped-inbox-task-list-reads-ahead-to-the-scan-cap
  and ADR:2026-11-16-a-capped-inbox-feed-is-cut-at-its-oldest-item.

* fix(ui): bound inbox date windows by the viewer's local days

The presets started and ended on UTC days while the feed heads its days
in the viewer's zone, so outside UTC "Today" began hours late, or showed
yesterday just after midnight.

* fix(ui): keep a failed inbox page from refetching, leave Mentions uncut

- The list's observer retries a failed page only when the sentinel comes
  back into view; a new observer no longer refires it at once.
- Mentions is not cut to the conversations' span: its events carry their
  own time, not the mention's.
- Closed-link tests assert the selected tab and the open task.
- Records ADR:2026-11-16-a-link-to-a-closed-inbox-task-opens-the-closed-tab.

* docs: record that the Inbox Mentions feed is not cut

* fix(ui): offer a retry for a failed inbox page, mark the day the feed was cut

- The task list shows a Retry below its rows when a later page fails. A
  filter that hides every loaded row leaves nothing to scroll, so the
  sentinel alone could never ask again.
- The fetch reports where the feed was cut (`cutAt`), and the "N+" floor
  goes on that day rather than on the last card's. In Mentions an old
  event mentioned today can sit past the cut.

* docs: rewrap the grouped read-ahead record
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

Development

Successfully merging this pull request may close these issues.

Inbox: task groups count only the first page, activity feed silently capped, and other QA findings

2 participants