Skip to content

Fixes 37885: Inbox task groups, capped activity feed and closed-task links (backport 2.1 #37886) - #37887

Merged
harsh-vador merged 7 commits into
2.1from
backport/37886-to-2.1
Nov 17, 2026
Merged

harsh-vador merged 7 commits into
2.1from
backport/37886-to-2.1

Conversation

@harsh-vador

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

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #37885

Backport of #37886 to 2.1. The diff is the same as #37886's; it applied cleanly to 2.1. Not backported to 2.0, which has no AI-mode Inbox. The defects were found 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 GIFs are on #37886; they were recorded against 2.1.

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.


Summary by Gitar

  • Task list retry:
    • Added a LoadMoreRetry action under the task list when a later page fails, since a filtered empty list cannot scroll to retry
  • Activity feed:
    • Mentions feed stays uncut when capped, because mention events carry their own timestamps

This will update automatically on new commits.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no new blocking issues were found.

Summary

This backport fixes Inbox task grouping, closed-task links, and capped activity feeds.

  • Grouped task queues read ahead to show more complete groups.
  • Closed-task links select the Closed tab after the task loads.
  • No-match messages appear under the task list controls.
  • Capped activity feeds mark their limit and use viewer-local date ranges.
  • The Activity feed keeps its edge clear beside the scrollbar.
  • Task timelines credit the proposing AI agent as the creator.
  • The Inbox label reads “Resolved on” with sentence-style casing.

Reviews (5) · 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:29
@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
@harsh-vador
harsh-vador requested review from ShaileshParmar11 and removed request for a team November 16, 2026 10:29
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

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

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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.
- 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 3 closed / 3 findings

Inbox read-ahead, closed-task link routing, and feed truncation alter task discovery and activity visibility, so older updates may be omitted at the cap.

Inbox task list now auto-scans grouped results up to the 200-task cap, stops on a failed page, and offers a retry, with closed-task links opening the Closed tab and the activity feed cut at its oldest item when capped. Two resolved findings cover the unbounded refetch on a failing page and the missing ADR records for the new list rules. No issues found.

✅ 3 closed
✅ Bug: Grouped auto-scan keeps refetching a failing next page with no limit

📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/tabs/TasksTab.tsx:779-784 📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/useInboxInfiniteList.ts:54-55 📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/useInboxInfiniteList.ts:207
The new effect calls loadMore() whenever grouping === 'type' && !isGroupScanDone, and grouping by type is the default (useState('type')). loadMore in useInboxInfiniteList is a useCallback over isFetchingNextPage and items. When fetchNextPage fails, isFetchingNextPage goes true→false, hasNextPage stays true and tasks.length stays below 200. That gives loadMore a new identity, so the effect runs again and requests the same page again. A page that keeps failing (5xx, permission or timeout) therefore produces an endless request loop. Each round adds React Query's retries, and the error && hasData effect raises a new error toast whenever the error object changes. The sentinel only loops like this when it is on screen; this effect loops on every Triage open. Fix: stop auto-reading after a failed page, e.g. by also requiring !error / !isFetchNextPageError, or by tracking a failed cursor in a ref.

✅ Quality: New Inbox list rules (grouped auto-scan, feed cut, closed-link tab) unrecorded

📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/tabs/TasksTab.tsx:632-646 📄 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/useInboxActivity.ts:151-165 📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/inbox.utils.ts:430-444
This PR decides several rules that no record in docs/decisions/ states. 2026-10-28-inbox-task-list-sorts-only-by-creation-time covers only sort order and group order. The rules are:

  1. Under Group: Type, which is the default, the Triage list pages itself with no scrolling, up to MAX_NARROWED_SCAN (200 tasks, about 8 requests of 25). Group counts read "N+" and the Type menu hides its counts while more pages remain. The description says: "Group counts read 'N+' and the Type menu hides its counts while more pages remain." Choosing 200 here is a judgment call.
  2. The activity feed is capped at 200 events and 100 conversations. When either list comes back full, both lists are cut at that list's oldest item. The description says: "The activity feed is capped at 200 events because /v1/activity takes no cursor or end time."
  3. Every activity date window runs to now, so the one-day preset is "Today" (days: 0) and not "Yesterday".
  4. A ?taskId= link to a closed task moves the list to the Closed tab, and only the task's first load decides this.

A record could say: "Grouped by type, the Inbox task list reads on to 200 tasks without scrolling, and its counts read as floors while pages remain. The activity feed shows at most 200 events and 100 conversations, cut to the span both lists cover, until /v1/activity takes a cursor."

Closed: Bug: Failed page still refetches via the sentinel observer, isLoadMoreError aside

📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/useInboxInfiniteList.ts:210 📄 openmetadata-ui/src/main/resources/ui/src/components/discovery/personal-space/InboxPage/tabs/TasksTab.tsx:797-801
isGroupScanDone now checks isLoadMoreError, but that only gates the read-ahead effect. In useInboxInfiniteList, loadMore depends on isFetchingNextPage. When a next-page fetch fails, that flag goes from true to false, loadMore gets a new identity, and the effect creates a new IntersectionObserver. observe() always fires an initial callback. If the sentinel (TasksTab.tsx:559, always rendered) is within the 240px root margin, which is common for a grouped list only a few pages long, that callback runs loadMore() → fetchNextPage() again. So the failing page is still requested in a loop, and the ADR rule 'a page that fails stops the read-ahead; scrolling to the end retries' doesn't hold. The new test mocks the hook, so it never exercises the observer. Fix: have loadMore (or the observer callback) skip automatic calls while isFetchNextPageError is set, and retry only on a real new intersection or an explicit retry. For example, pass a force flag from the user-triggered path.

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 751cc67 into 2.1 Nov 17, 2026
62 of 68 checks passed
@harsh-vador
harsh-vador deleted the backport/37886-to-2.1 branch November 17, 2026 04:22
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.

1 participant