Repository navigation
fix(ui): Operations lists scroll inside the window, never the page (#3451) - #3928
Conversation
…3451) On /operations every list rendered into the page, so a populated queue grew it to 14,350 / 7,430 / 5,305 / 21,855 px (Needs Response / Notifications / Executions / Resolved, measured on a seeded queue). On those four tabs the page is now the window: the list takes the height the header, tabs and panel chrome leave and scrolls inside its own region; stated totals, stats and filters stay in view; Load more is the last thing in the scroll. The list keeps a 20rem floor, so a window too short for chrome + 20rem scrolls the page by the shortfall only. Health and Reports keep the plain page. - components/BoundedRegion.vue: the design-system p28 viewport as a primitive (named, focusable region, one-axis scroll, reserved gutter; `fill` takes the rest of a flex column from a 0px basis with the 20rem floor; scrollToTop()). Every link from the min-h-dvh root down to it is `grow basis-0` — Tailwind's `flex-1` is a 0% basis that an auto-height column resolves as content height (measured: 30,306 px for 300 rows, in Chromium, Firefox and WebKit). - The region wraps each tab's whole state chain, so a poll, a WebSocket refresh or Load more keeps the node and the reader's row; a filter change starts the list at its first row, a poll never does. - Nothing that toggles on its own stacks above the list any more (p30): the Notifications bulk actions live in the list's header row (the blue bar is gone, -4 raw non-gray classes), "N running now" sits in the Executions "N shown" row, and the Needs Response stale banner is held until a read succeeds instead of blinking on every poll of an outage. - stores/executions.js: a refresh while the panel is mounted re-reads every row Load more added (pages of <=200, de-duplicated, reading on past repeats) instead of replacing the list with page one; each read asks one row past its window so hasMore is read, not guessed; one read at a time — a refresh asked for during a read runs once after it, a filter change outranks it; list reads are bounded (boundedHttp, 30 s); the WebSocket refresh only runs while the panel is mounted. Tests: e2e/operations-bounded-lists.spec.js (@smoke, hermetic — page = window on all four tabs at 1440x900 and 768x1024 in both themes, fill, short-window floor, Load more rows survive the poll, the reader's row stays put through a held poll / Load more / a WebSocket notification, keyboard, filter reset, no-shove), plus three mount/store specs. Against the pre-fix tree with only the three neutral test hooks, all 13 e2e cases fail ("needs-response: page 14350px in a 900px window"); reverting `basis-0` to `flex-1`, the scroll reset, the listLive gate, the de-dupe, the generation check, the probe row, the trailing refresh or the stale latch each turns its case red. Follow-up: #3927 (Health, Reports, Notifications paging). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s-bounded-lists # Conflicts: # tests/registry.json
|
@dolho — requesting your review: this is #3451 from the UI-sweep epic (#3471). The four Operations list tabs now scroll inside the window instead of growing the page. It's built on a new |
|
Resolve by running |
|
Resolve by merging |
…s-bounded-lists # Conflicts: # tests/registry.json
dolho
left a comment
There was a problem hiding this comment.
Thanks for this. It is a careful fix and the evidence is strong.
Verified:
- The 4 changed unit specs plus the raw-colour, loading-gate and source-text ratchets pass locally (65/65).
- Reverting
stores/executions.jsto dev fails all 12 store-window tests, and changingbasis-0toflex-1inBoundedRegionfails the primitive and flex-chain tests, so the tests prove what they claim. - The new e2e spec ran in CI: the smoke pass count rose by exactly 13.
- Design-system contract: semantic tokens only,
NotificationsPanelraw-colour entry lowered, the primitive registered in the contract, and the elements that used to pop in and out above the list moved into fixed rows.
Non-blocking suggestions:
MonitoringPanel.vuestill has its ownrole="region"alerts list. Moving it ontoBoundedRegionwould fit naturally into #3927.BoundedRegionalways setstabindex="0", so it is a Tab stop even when nothing overflows. That is fine as is; mentioning it in case you prefer to make it conditional.- In
NotificationsPanel, the list<h2>text changes to "N selected" while rows are selected. Keeping the heading fixed and showing the count in a separate element would keep the section's accessible name stable.
Approving. Note that dev is currently red on frontend-e2e for an unrelated reason, so the merge should wait until it is green again and pytest (head) has finished.
…s-bounded-lists # Conflicts: # tests/registry.json
Summary
On
/operationsthe four list tabs (Needs Response, Notifications, Executions, Resolved) now fill the window. The list scrolls inside its own region and never grows the page. The header, tabs, stats, filters and stated totals stay in view, and Load more is the last thing in the list's scroll. The list keeps a 20rem floor: on a window too short for that, the page scrolls by the shortfall only, never by how many items there are. Health and Reports are unchanged.Measured page height on a seeded queue (120 pending, 260 resolved, 50 notifications, 400 executions):
¹ The Notifications filters and stat cards plus the 20rem floor come to 901 px: the agreed shortfall. The issue's sweep measured 5,955 / 5,277 / 5,329 / 16,811 px on its own data.
Changes
components/BoundedRegion.vue(new primitive, design-system principle 28). A named, focusablerole="region"that scrolls on one axis with a reserved gutter.filltakes the rest of a flex column from a 0px basis with the 20rem floor;scrollToTop()is for a new query. Every element from themin-h-dvhpage root down to it isgrow basis-0. Tailwind'sflex-1is a 0% basis, and an auto-height column resolves that as the content's height, so the list would grow the page again (measured: 30,306 px for 300 rows, the same in Chromium, Firefox and WebKit).views/Operations.vueBOUNDED_TABS, after AgentDetail'sFULLSCREEN_TABS).components/operator/NotificationsPanel.vuecomponents/ExecutionsPanel.vuestores/executions.jshasMoreis known rather than guessed.boundedHttp(30 s timeout).design-system.md, and the primitive added to the contract's list.architecture/frontend.mdpointer.operating-room.md,executions-dashboard.md,events-page.md.Known limits
Follow-up
#3927: Health and Reports still grow the page, and Notifications "Load more" can never render (the route takes no offset and its
countis the page length).Test plan
e2e/operations-bounded-lists.spec.js: 13@smokecases, hermetic (synthetic payloads viapage.routeandpage.routeWebSocket,page.clock).needs-response: page 14350px in a 900px window).boundedRegion3451.mount.spec.jsoperationsBoundedLists3451.mount.spec.js, mounted: one region per tab, the unbroken flex chain, totals outside, Load more last, scroll kept on a poll and reset on a filter change, nothing toggling above the list, the stale banner held.executionsStoreWindow3451.spec.js, the real store against an in-memory route.operationsQueueSubtitle3302.mount.spec.jsnow renders the region's slot.@vue/compiler-sfcon the dev host and don't touch this diff.basis-0→flex-1;w-fullremoved; the Notifications card taken out of the flex chain;NotificationsPanel.vueentry lowered 21 → 17), loading-gate and source-text all green.check:tokenspasses and the production build compiles./cso --diffskipped. This is frontend-only, with no new endpoint, auth path, input or credential path.Eyeball (local stack, before push)
Checked at a normal window, at 768×1024 and at 390×844, in light and dark:
Fixes #3451
🤖 Generated with Claude Code