Repository navigation
feat(ui): Agent Detail tabs overflow into a "More" dropdown (#1114) - #1127
Merged
Merged
Conversation
Replace the Agent Detail tab bar's horizontal scroll with a reusable
OverflowTabs.vue "priority+" component: render as many tabs as fit and
collapse the trailing remainder into a right-aligned "More ▾" disclosure.
- Hidden zero-layout mirror row measures every {id,label,badge?} tab width
(+ a worst-case More button); visible row renders the computed split.
- Re-measures on container resize (ResizeObserver on the outer wrapper,
width-diff-guarded + rAF-debounced) and after document.fonts.ready;
re-measures on tab/label/badge change via a derived-signature watch.
- Defaults to all-inline before first measure (no first-paint snap; no
"More" when everything fits — no regression).
- Active-in-overflow reflected on the trigger (underline + dot), tab order
unchanged. Plain <button> disclosure (not role=menu): Tab-traversable,
Escape closes + returns focus, outside-pointerdown closes; dark-mode aware.
- v-model over AgentDetail's activeTab string ref — ?tab= deep-linking
unaffected. Pure frontend; no backend/store changes.
Tests: src/frontend/e2e/agent-detail-tabs-overflow.spec.js (6 Playwright
behaviors, 7/7 pass). Docs: architecture.md + feature-flows index + new
agent-detail-tab-overflow.md flow.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
overflow-x-autohorizontal scroll with a reusableOverflowTabs.vue"priority+" component: render as many tabs as fit, collapse the trailing remainder into a right-aligned "More ▾" disclosure menu.ResizeObserver) and after web-font load; the active tab is reflected whether it lands inline or in overflow.v-modeloverAgentDetail'sactiveTabstring ref, so?tab=deep-linking is unaffected.Changes
src/frontend/src/components/OverflowTabs.vue— new reusable component (hidden zero-layout mirror row measures{id,label,badge?}widths; deterministic inline/overflow split; rAF-debounced + width-diff-guarded RO;document.fonts.readyre-measure; derived-signaturewatchfor badge/label changes).src/frontend/src/views/AgentDetail.vue— swap theoverflow-x-auto<nav>for<OverflowTabs :tabs="visibleTabs" v-model="activeTab" />+ import.src/frontend/e2e/agent-detail-tabs-overflow.spec.js— new Playwright e2e (6 behaviors).docs/memory/architecture.md,docs/memory/feature-flows.md,docs/memory/feature-flows/agent-detail-tab-overflow.md— docs.Acceptance criteria (all verified)
ResizeObserverpointerdown) + keyboard (focus-first, Escape closes + returns focus)?tab=deep-linking unaffected (component reflects whateveractiveTabis, inline or overflow)Design notes
<button>disclosure (NOTrole="menu"), consistent with the page's existing plain-button tabs — advertising menu semantics without arrow-key roving would be worse than an honest disclosure.{tabs, modelValue}API so theOperations.vue?tab=strip can adopt it next (deferred follow-up).AgentDetail's fresh-load?tab=deep-link doesn't reliably apply the requested tab on a hard page load — confirmed present on the original code too (stash-tested), so not a regression from this PR. Worth a separate issue.Test Plan
cd src/frontend && ADMIN_PASSWORD=… npx playwright test agent-detail-tabs-overflow→ 7/7frontend-e2e(label-gated)Fixes #1114
🤖 Generated with Claude Code