Skip to content

Tasks dock tabs: keep the 13.5px size while the tab strip fits; shrink only when it would not - #9683

Merged
orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-25032-193c084d
Nov 15, 2026
Merged

orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-25032-193c084d

Conversation

@orbit-agent-01

Copy link
Copy Markdown
Contributor

Task

ORB-25032 — Tasks dock tabs: keep the 13.5px size while the tab strip fits; shrink only when it would not

Description

Daniel's correction (session f09993e5): "these got smaller than before. can you revert it back to its original size. make them smaller only when there is no more space. and update ux rule"

What's wrong: the Tasks dock tab strip (Drain, Notices, Residents, Log) now renders at 12px at the dock's normal width. Before, it rendered at 13.5px.

Cause: ORB-24810 (#9608) added @container (max-width: 440px) { .dock-seg { font-size: 12px; } … } to crates/orbit-web/assets/dashboard/css/dock.css. The dock's usual width is below 440px, so the query fires even when the full-size tabs fit with room to spare. It also reduces the count badges to 11px, ellipsizes .dock-log-state and hides .dock-drain-state at the same widths.

Fix: the tabs, badges and states keep their normal size and content wherever the full-size strip fits. They shrink, and then drop secondary state, only at widths where the full-size strip would otherwise overflow. That includes the case where the Fleet tab and count badges appear. The trigger may be measured (for example a ResizeObserver comparing the strip's scroll width with its client width) or a breakpoint derived from the strip's real full-size width. A fixed width that also catches fitting layouts is the defect.

The governing rule is STD-07 R39 as of v7: members keep their full size wherever the row fits, and shrink only where it would not. The umbrella standard is updated separately.

Acceptance Criteria

  • At the dock's normal width, with the Drain, Notices, Residents and Log tabs and their usual counts and states, the tab labels render at 13.5px and the count badges and drain or log states at their full-size styles.
  • When the dock is narrowed until the full-size strip would overflow (with and without the Fleet tab and counts), the tabs shrink and then drop secondary state, and the strip stays on one line with no horizontal overflow, as before.
  • The full-size styles return when the dock widens again, without a reload.

Screenshots

Before After
dock-tabs, 900 — dock-tabs-dark-900.png

Execution Summary

Click to expand

Fix: removed the fixed @‍container (max-width: 440px) shrink in crates/orbit-web/assets/dashboard/css/dock.css (it fired at the dock normal 320-440px width even when the full-size strip fits) and replaced it with measured stages: log-tail.js fitDockTabs() removes dock-tabs-compact/dock-tabs-tight, measures visible tabs natural width (scrollWidth sum + gaps) against the strip width, adds compact (12px labels, 11px badges) only on overflow, then tight (6px gap, hidden .dock-drain-state, ellipsized .dock-log-state, clipped tabs) only if still overflowing. ResizeObserver on .dock-head, MutationObserver on #dock-mode-toggle (badge/state text, Fleet add/remove, hidden), document.fonts.ready, and applyDockMode() all refit, so widening restores 13.5px without reload. Criteria: (1) PASS headless Chromium harness with real dock.css + extracted real fitDockTabs at 400px, Drain/Notices(3 open)/Residents(2)/Log usual states: font=13.5px, class=full, overflowPx=0. (2) PASS 400px+Fleet+2 errors: compact only, drain state still visible, overflow 0; 300/320px+Fleet+Winding down+12 errors: tight, drain=none, overflow 0, one line. (3) PASS same harness shrank case a at 250px (tight) then widened to 400px: classes removed, back to full 13.5px without reload. Validation: node --check log-tail.js PASS; make ci-guards PASS; git diff --check PASS. task.final_validation_commands: not_run (pipeline final validation). Screenshot: screenshots/dock-tabs-dark-900.png (dark only; dashboard supports dark only; harness view at 900px window showing 400/300/320px docks). No UI tests added per workspace guide. STD-07 standard files untouched (umbrella updated separately, per task).

Validation

  • Not reported

Branch Freshness

  • Base ref: refs/remotes/origin/agent-main
  • Head ref: orbit/ORB-25032-193c084d
  • Behind base: 0
  • Ahead of base: 1

…sh… [ORB-25032]

Tasks dock tabs: keep the 13.5px size while the tab strip fits; shrink only when it would not

Fixes: f5a8f33 ("refactor: Dashboard: move Residents from Automation into a tab of the T… [ORB-24810] (#9608)")
Regression-From: ORB-24810
Regression: broke_existing; escape=spec_ambiguous; severity=low
@orbit-agent-01 orbit-agent-01 added the orbit orbit related label Nov 15, 2026
@orbit-agent-01
orbit-agent-01 merged commit 3bbed76 into agent-main Nov 15, 2026
19 checks passed
@orbit-agent-01
orbit-agent-01 deleted the orbit/ORB-25032-193c084d branch November 15, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

orbit orbit related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant