Repository navigation
feat(header): a phone's title lists the workspace's tabs in place of the tab row - #3099
Conversation
…the tab row On a phone (640px or less) no tab row is drawn: the header's title opens a sheet of the workspace's tabs, each with its state, agent and a Close, the open tab's moves, New terminal and New tab with agent. The header drops from 96px to 52px. Tabs everywhere show their agent's mark, and a working tab's dot turns.
|
Caution Review failedThe pull request is closed. Summary
Merge Risk:
|
… for The list closes when the selection moves to another PC or workspace, and the title offers none while the setup guide stands in the pane's place. A tab closed elsewhere under the sheet's focus gives it to the first item left. Dots and Symbols indicators keep their glyph still.
# Conflicts: # scripts/new-session-skills-browser-qa.ts
Review round (omo + Codex Terra, xhigh)
After the fixes and a merge of origin/main (one conflict in |
|
Local merge gate (owner-approved): origin/main merged (no conflict), |
…in the failed-requests script (#3111) ## What `scripts/chat-request-details-demo-regression.ts` fails on main (Browser regression, other scripts) at line 116 on every phone run: ``` 116 | if (phone) await page.locator(".tab-strip-menu").first().click(); TimeoutError: click: Timeout 30000ms exceeded. - waiting for locator('.tab-strip-menu').first() ``` #3106 added a phone step that opens Search conversation from the tab row's menu button. #3099, merged after it, drops the tab row on phones (the header title lists the tabs) and moves the pane's actions to the header's More. #3099 had already moved `conversation-search-demo-regression.ts` to `.header-more-button`, but it never saw this new step. This PR moves the step the same way. The step still opens the pane's menu, picks Search conversation, and asserts the folded row opens on the pick. No assertion changed. ## Validation - In `herdr-ci-runner:local` (own `HERDR_TEST_SESSION`): main's version of the script fails at line 116 as in CI (`TimeoutError ... waiting for locator('.tab-strip-menu')`); with this change it passes all 8 runs (390 and 1280, light and dark, details on and off). - `bun run check fast`: pass. - Skipped: the rest of the browser suite (only this script changed).
…ets (#3119) ## Why On a phone, a few open surfaces reached into the screen's safe-area insets (measured on `origin/main` with the insets emulated through CDP, `Emulation.setSafeAreaInsetsOverride`): - **Upright, Dynamic Island (59px top inset):** the search sheet (`Search panes and actions`) is `100% - 32px` tall, so its search field (top 54px) and close button (top 49px) sat under the island. - **Short screen (keyboard up, 390x500):** the More sheet, Settings and the search sheet started at 32-40px, under the status bar; Settings' close button sat under the island. - **Landscape (844x390, 59px notch on either side, 21px home indicator):** Settings fills the scrim, whose padding was a flat 16px. Its left menu (Search settings, Appearance ... About) went under the left notch, the close button and the right-hand controls under the right one, and About into the home indicator. - **Landscape, a tab's menu:** `RowMenu` clamps its popover to the window, so a tall menu ran 13px into the home indicator. The header, the title's tab sheet (#3099), the More sheet, confirmations and the drawer already kept clear. The composer and the key bar sit part way into the home-indicator inset by design (#335, KeyBar.css: the indicator is a thin bar near the edge and stays clear), so they are left alone. ## Change - `.modal-scrim` pads each side to `max(--space-4, env(safe-area-inset-*))`: a centred card (Settings sideways) keeps clear of the notch on either side and of the home indicator. With no insets (desktop) the padding is the 16px it was. - A phone's bottom sheet (`.modal` at `<=640px`, the machine dialog) is capped at `min(92%, 100% - top inset - --space-2)`, and the search sheet's height takes `max(--space-8, top inset + --space-2)` off instead of `--space-8`: a sheet's top never reaches under the status bar or island, the keyboard up included. - `RowMenu`'s popover placement clamps to the safe area (`lib/safeArea.ts` reads the insets from `--safe-area-*` on the root, which styles.css sets to `env(safe-area-inset-*)`: a script cannot read `env()` itself, a custom property computes it). With no insets the arithmetic is the same as before. Design follows iOS's own sheets and popovers (UIKit's `UISheetPresentationController`, Apple HIG Layout: keep controls inside the safe area), which never put content under the status bar, the Dynamic Island or the home indicator. ## Validation - New `scripts/phone-safe-area-demo-regression.ts` (in the CI browser lane): upright 390x844, short 390x500, an iPhone keyboard (visual viewport 500px, `data-keyboard`) and landscape 844x390 with emulated insets; every visible control of the open surface must lie inside the safe area, and its close or answer must be drawn whole there. On `origin/main` it fails with 24 findings (each listed above); with this change it passes. - Screenshots: before/after at 390x844 upright and 844x390 landscape with the insets drawn in red, light and dark, and 1280 light and dark (unchanged: no insets). - `bun run check fast`: passed on 58971f1 (typecheck, build, 12591 unit tests, 0 fail). - Browser regressions covering the touched shared pieces (RowMenu in the sidebar and tab strip, the palette, dialogs, Settings, the machine dialog): the 44 scripts of the CI browser lane that name them, run with `ci-browser-parallel.ts` in the CI runner image (`herdr-ci-runner:local`): 43/44 passed. `scripts/ui-regression.ts` times out waiting for the `Suggestion chip` switch; it fails the same way on plain `origin/main` (0101784) in the same image, so it is not from this change. - Not run: native iOS/Android devices (the insets are emulated in Chromium), the integration suite (no server change).
…device's (#3776) ## Summary Closes #3375. Since 0.5.0 (#3099) a phone drew no tab row: switching to another tab of the workspace took the title, then the tab in a sheet. This brings one-tap switching back, as a choice of the device's (Settings -> Appearance -> **Tabs on a phone**): - **Under the header** (the default): the tab row under a one-row header, the same row a tablet draws: two or three tabs in view at 360px, the open tab and the `+` always in view, each tab a 44px target, its `⋯` the tab's and pane's menu. It costs the pane the row's 44px. - **In the header**: the 52px header of #3099 keeps its height and draws the tabs in the title's place, one row that scrolls sideways (`touch-action: pan-x`, `overscroll-behavior-x: contain`, so the edge swipe still opens the drawer). The open tab is a pill capped so the next tab's mark shows beside it, the row fades under its end, a split tab shows its open pane (`1/2`), and a chevron led by the tab count opens today's tab sheet (close, move, New terminal, New tab with agent…). A tap opens a tab; a long press (450ms) opens its menu. A watching device shows an eye before the chevron. Today's title-and-sheet header is not a third choice: In the header replaces it at the same height, and its chevron still opens the sheet. Design reference: herdr's own TUI keeps its tab bar on screen (DESIGN.md already cites it for the strip), and Ovis did up to 0.4.x; the Codex and Claude phone apps title one thread and list the others from it, which suits one thread, not three or four agents at work in one workspace. Outside draft #3632 was read for reference only; no code is taken from it. The setting is a device setting (`phoneTabs`, `"row" | "header"`, default `"row"`), kept in a key of its own (`ovis:phone-tabs`) like the other newer device settings, so an older tab's whole-record save does not drop it; it is not collected by telemetry. Its label, choices and explanation are translated to Korean, Japanese and Chinese. ## Screenshots (demo fixtures, 360px unless noted) | | Light | Dark | |---|---|---| | Before, on `main`: the title, the tabs one tap away in a sheet | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/01-before-360-light.png" width="300" alt="main, light"> | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/02-before-360-dark.png" width="300" alt="main, dark"> | | After, Under the header (default): the row under a one-row header | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/03-row-360-light.png" width="300" alt="row under the header, light"> | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/04-row-360-dark.png" width="300" alt="row under the header, dark"> | | After, In the header: the tabs in the title's place, the next tab's mark beside the open one, the count before the chevron | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/05-header-360-light.png" width="300" alt="tabs in the header, light"> | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/06-header-360-dark.png" width="300" alt="tabs in the header, dark"> | | Under the header, 390 light | In the header, 390 dark | In the header with the agent inbox on: a thread (Back, then the tabs) | the inbox list (no tab row) | |---|---|---|---| | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/07-row-390-light-full.png" width="200" alt="row under the header, full screen"> | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/08-header-390-dark-full.png" width="200" alt="tabs in the header, full screen"> | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/09-header-inbox-thread-360.png" width="200" alt="inbox thread with the tab row"> | <img src="https://raw.githubusercontent.com/devswha/ovis/07574297daed2270ca237ef35fc947e808a2311b/10-header-inbox-list-360.png" width="200" alt="inbox list"> | ## Validation Run on this head (5b3987a), rebased on main 95d3cc8 (#3756 merged), heavy runs through the load queue: - `bun run check fast`: pass (workflow syntax, generated types and themes, typecheck, build, unit tests). - The whole browser lane in the CI runner image (`herdr-ci-runner:local`, `scripts/ci-browser-parallel.ts`, 8 workers): **208/208 passed**, none flaky. - Scripts that drive a phone's header sheet or its More menu's pane actions now set In the header (`ovis:phone-tabs`), the choice they test; `mobile-tabs-regression` (in `ui-contexts-regression`) checks both choices: the row at 360 and 390 (every tab, its `⋯` and the `+` 44px, the open tab and `+` in view, a tap switching tabs, no chevron) and the header row with its sheet. `phone-glass-header`, `tab-menu` and `conversation-search` wait on the header's tab count instead of the title's `1/2`. - Manual QA on the demo build at 320, 360 and 390: both densities, a watching device (an eye before the chevron), one tab and five with long names (one Korean), a split tab (`1/2` on the open tab), all 20 palettes in light and dark with the tabs in the header, and the agent inbox on (its list draws no tab row; a thread draws Back, then the tabs): every tab, menu and chevron at least 44px, the open tab in view, nothing overflowing sideways, no page errors. - Skipped: nothing of the required checks; the Native Windows job runs on GitHub.
What
On a phone (640px wide or less, the width where dialogs become bottom sheets) the tab row under the
header is gone. The pane's title in the header gets a
ChevronDown, and the whole title is onebutton that opens the workspace's tabs as a bottom sheet:
the open tab marked current and its state word (RUN / INPUT / DONE / BG) shown for a state;
The header goes from 96px (52 + 44 row) to 52px at 390×844. This widens the existing "a lone tab on a
cramped phone draws no row" path (
tabRowHidden, formerlyloneTabHidden): More keeps carrying theopen pane's actions and the open tab's Rename / Move to workspace / Close, and the waiting jump with
its dot, as it already did for a lone tab. New terminal and New tab with agent… leave More there,
since the title's list has them. Touch screens between 641 and 768px (a tablet upright) keep the row.
On every width, each tab in the strip now carries its agent's mark before its name, and a working
tab's dot is a turning ring (8 steps per
--dur-spin, the plain dot under reduced motion). Thedesktop header keeps its height (46 + 34).
Design reference: the Herdr app's tabs (program icon, spinner while working); the Codex and Claude
apps for the phone, which title the open conversation and list the others from it. No pixels or
code copied.
Accessibility
aria-haspopup="dialog"andaria-expanded; its press area is the whole title and crumb, grown to--touch-target(44px).RowMenu): focus lands on the first row, arrows and Tab movetab → that tab's Close → next tab, Escape and the system Back close it, and focus returns to the
title.
RowMenuItemgains an optionalasidebutton for the per-tab Close ("Close {tab}"), andeach item carries
data-item(its id) for scripts.still named by its words; the state is said in words in the list.
Tests
Browser scripts that drove the phone's tab row now use the title's list or More, and the checks of
the row's touch menu move to a 700px touch screen, where the row is still drawn:
mobile-tabs-regression.ts(rewritten for the header list: contents, Close per tab, focus order,44px targets, More's contents, reopen after reload),
tab-menu-regression.ts(phone: More and thetitle's list, including both tab moves),
phone-glass-header-demo-regression.ts,ui-regression.ts,deep-link,conversation-search,mirror-fold,phone-split-grid,terminal-keyboard,terminal-switch,terminal-switch-resize,terminal-view-replay,new-session-skills-browser-qa.ts, and the manualfont-swap-demo-regression.ts. A smallscripts/tab-pick.tsopens a tab the way a user does at the page's width.Validation
bun run check fast: pass (see below).ci-browser-parallel.ts, every script) in the self-hosted CI runner imageherdr-ci-runner:localas its runner user: 171/173; the two failures(
omo-plan-browser-regression.ts,file-viewer-regression.ts) pass on a rerun on this branch andalso flaked on plain
origin/mainin the same image under the same load.font-swap-demo-regression.ts(manual, not in CI): skipped; it fails on plainorigin/maintoobefore its tab section ("the built stylesheet names an installed face, and this copy of it no
longer does").
(height unchanged), measured: header + row 52 + 44 → 52 at 390, 46 + 34 → 46 + 34 at 1280.