Repository navigation
feat(settings): herdr-app style Terminal and Shortcuts pages - #3160
Conversation
Rows are a label and its control with no sentences or group captions; a reset button sits beside a changed row. Themes are picture cards in one sideways-scrolling row per side (own kind first, then the other kind). Terminal and chat fonts and sizes move to Appearance > Typography; search keywords and palette aliases follow them.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 2 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…as one scroller, share SettingsRow icon/preview/condition The Dark/Light side switch is named Show dark themes / Show light themes, so Appearance has one button named Light. The phone fit check holds the theme cards to their sideways scroller and checks the scroller itself. SettingsRow takes the icon, preview and condition props the other settings pages use (from feat/settings-chat-agents).
|
CodeRabbit skipped this PR (its base is
|
…o side-effect notes; test the row reset Review round: the cards show the side drawn now until Dark or Light is chosen; arrows, Home and End pick as a radio group does; Name tabs and Lock pinned agents keep their side-effect line through condition; the phone fit check skips only theme cards; a regression covers the reset button and keyboard picks.
Rows are a name and a control with an icon where the name is not enough; a changed shortcut resets in place; herdr prefix keys go under More settings; the key bar's touch-only rows move into its editor; one herdr window choice replaces two switches; Pictures in the terminal follow the server (on with herdr-core) until a device chooses, under a key of their own.
…ield, theme kind names, narrow rows) The reset button hands the focus to its row control; resetting Interface font closes the custom field; an other-kind theme card names its kind; the checked card is brought into view after a reset; font rows wrap their size under the list when a narrow dialog has no room; Lock pinned agents keeps its how-to line.
d050ac3 to
7d7af1b
Compare
…t focus skips a disabled control
# Conflicts: # src/components/SettingsDialog.tsx
…tch reads the PC shown
…eat/settings-shortcuts-bare # Conflicts: # src/components/SettingsControls.tsx # src/components/SettingsDialog.tsx
…ts-bare # Conflicts: # src/components/SettingsControls.tsx # src/components/SettingsDialog.tsx
|
Fixes for the omo review at 7d7af1b (BLOCK), in d538cb3:
Rows and columns stay a switch here; making them always on follows in its own PR (lane split-grid-always). |
Deploying ovis with
|
| Latest commit: |
01d3bb6
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://579effee.ovis.pages.dev |
| Branch Preview URL: | https://feat-settings-shortcuts-bare.ovis.pages.dev |
|
CodeRabbit did not review head 01d3bb6 (review limit reached). Standing in: omo reviewer CLEAR at 01d3bb6, Codex two passes (findings and fixes above). CI is green at this head; Integration tests failed once in |
|
Merge note (merge pass) at head 01d3bb6:
|
…ts-bare # Conflicts: # src/components/SettingsControls.tsx # src/components/SettingsDialog.tsx # src/lib/i18n/settings-composer.ko.ts
|
Merge note (merge pass) at head ee75ffd:
|
…path (#3171) ## What The split view always takes rows and columns. Follows #3160 (merged); origin/main is merged in. - **Setting removed:** Settings → Terminal → More settings → "Split into rows and columns" (`splitGrid`) is gone. A stored `splitGrid` (including `false`) is dropped by `sanitizeSettings`, so every device gets rows and columns (up to four slots, movable boundaries). Two panes still open as two halves side by side (`data-side`, Close this half). - **Halves-only path removed:** `asHalves` and the effect that folded a grid back into two halves; the `grid` argument of `useSplitLayout`. - **Dead drop guide removed:** `SplitDropPreview` draws only the grid guide (slot outlines + one moving `.split-drop-zone` highlight, `data-edge`). The two-halves track (`.split-drop-half` / `.split-drop-target`, `data-side` on the guide) and its `dropAt` / `dropAtRef` / `showDropTarget` plumbing in `useSplitState` / `App` are gone. `dropSide` stays: `dropZone` uses it for a single pane's steady midpoint. - **Behaviour change for a device that had the switch off:** with two halves open, a pane's "Open in the left/right half" (`dockSide`) now opens a new slot beside the active one while there is room (up to four), as rows and columns always did, instead of replacing that half. A full area still replaces the slot covering that half. - DESIGN.md and docs/guide.md updated. The unreleased fragment `changelog.d/split-view-rows-and-columns.md` (#3072, shipped only in betas) now describes the split without a switch and says the beta's switch is gone; no second fragment. ## Regression steps rewritten to the grid guide (same intent) `scripts/split-view-regression.ts` and `scripts/ui-regression.ts` read the guide's `data-edge` instead of `data-side`: - One pane: a drop on the right half reads `data-edge="right"` (same hysteresis around the midpoint, same cancel paths: outside drop, blur, Escape, text/file drags ignored, narrow window, reduced motion now checked on `.split-drop-zone`). - "Both drop guides stay mounted / one indicator moves" becomes "the slot outline stays mounted / one `.split-drop-zone` moves and is not replaced when the side changes". - Two slots open: a drop at 20% / 80% of the area is that slot's middle (`data-edge="middle"`, the pane takes its place), where the halves offered a half; the outcomes asserted (which slot shows which pane, active slot) are unchanged. - The rows-and-columns block no longer turns the setting off; closing the last other slot uses the two halves' Close this half. `files-prompt-regression.ts` and `tab-overflow-regression.ts` only wait for `.split-drop.is-visible` / use two halves' `data-side`, which still hold; no change needed. ## Validation At `f8c8ad55a` (origin/main d023c8a merged in): - `bun run check fast`: all steps ok (unit 12745 pass, 0 fail). - `scripts/ui-contexts-regression.ts` (runs split-view-regression and tab-overflow-regression) in `herdr-ci-runner:local` (`RUNNER_ENVIRONMENT=self-hosted`, `bun scripts/ci-browser-parallel.ts`): passed. At `5cd0b9e46` (the same split code on #3160's 7d7af1b), in the runner image: **9/9 passed, no reruns** — `ui-regression`, `ui-contexts-regression`, `files-prompt-regression`, `render-crash-demo-regression`, `terminal-autoswitch-demo-regression`, `sidebar-split-demo-regression`, `sidebar-split-access-demo-regression`, `phone-split-grid-demo-regression`, `codex-drag-demo-regression`. Screenshots (demo, light, 1280 and 390, a device that had stored `splitGrid: false`): three slots open, the "Drop below" guide on a slot, and Settings → Terminal → More settings without the switch. Not run: `check full`, the integration suite, Windows/macOS jobs (no server, shared or native change). This adds no new control anywhere.
## Change Closes #3275 (proposed by @pnexus-wikii). ### Where the maintainer's look stands The maintainer has seen the demo and approved the explanations (2026-11-13, through the lead). What was the author's recommendation, for the record: - **Which variant.** Three were shown on a demo. This PR ships **C**: the sentence on a resting mouse, keyboard focus and a tap, plus one short line always in sight under the two rows whose name misleads. The others were **A** (hover and tap only, no added line) and **B** (an info button on each row). C differs from A by two `condition` props and three dictionary entries. - **Escape.** While an explanation is showing, the first Escape closes the explanation and the next one closes the dialog. The keyboard shows one only after Tab or an arrow moved the focus there, so closing an editor or answering a confirmation never adds a press (details under "Behavior change" below). - **Still open with him:** variant C's two lines show on a phone as on a desktop, without a tap. He asked whether a phone shows anything before a tap; hiding those two lines on phones is a small follow-up if he wants it. Since Settings went to bare rows (#3157, #3158, #3160, #3162, #3432: a name and its control, as herdr-app draws them), a row's sentence has been in the document only for search and for screen readers. This PR shows that sentence on demand, on every kind of device, and rewrites every sentence against the code. It does not bring the lines under the rows back. ### How a sentence shows - **Mouse**: rest on a row for 450 ms and its sentence is drawn above the row, its left edge on the name's. Above, so it covers neither the row's own control nor the row below, which is where the pointer goes next; under the row only where the screen ends above it, and never above the screen's top. Over another row's control it narrows to the room beside that control. Where there is no such room (224 px) it lies on that control's near end and gives way there: the pointer coming onto that part closes the sentence, so a press reaches the control. It does not move or fade, the pointer on the rest of it keeps it, and a row entered within 400 ms of another's closing shows its own at once. It is never taller than the screen, and scrolls where its words do not fit. - **Keyboard**: the focus on a row's control shows the same sentence at once. Every control in the row is also described by it (`aria-describedby`), so a screen reader reads it with the control: the switch, select, stepper or group of choices, and a button or a field the page draws there (Edit key bar, Import, the font field), unless it brings a description of its own. The sentence takes no focus. A focus is the keyboard's when a key that moves the focus came last (Tab, an arrow, Home, End): a click or a tap that puts the focus in a field or a select shows no sentence, and neither does the focus the app gives back after Escape or Enter (an editor closed, a confirmation answered). - The sentence is drawn only while its row is in the page's view. A dialog's Tab moves the focus without scrolling (`lib/useFocusTrap.ts`, on main since #570), so the focus can be on a setting the page is not scrolled to: its sentence waits for the row, and Escape is not its own meanwhile. That Tab does not bring the focused control into view is main's, in every dialog, and is not changed here. - **Touch**: a tap on the row, anywhere but its control, opens the sentence in the row, under the name and the control at the row's width; a second tap closes it, and so does Escape, before Settings (a touch screen with a keyboard). Nothing is drawn over a phone's page. A pen's tap does the same: a pen that cannot hover has no other way to the sentence. - **Escape closes the sentence alone** and leaves Settings open (WCAG 2.2 1.4.13: dismissible without moving the pointer or the focus). In a text field that Escape is the field's too, and the first text typed closes the sentence. A dialog opened over Settings keeps its own Escape, and a row that a search hides takes its sentence with it. - **A press on the row's control closes the sentence**, the keyboard's as a pointer's: a choice, not a question. - A device that only watches reads the same sentences. - Two rows whose name alone misleads keep one short line in sight: the theme row ("Dark and Light here only switch which themes you choose from.") and Web links ("Only pages this PC serves can open beside the pane."). ### Behavior change: Escape with a sentence showing With the keyboard on a setting its sentence is showing, so the first Escape closes the sentence and the next one does what Escape did before (empties the search, then closes Settings). This is how React Aria's tooltip treats Escape ([`useTooltipTrigger`](https://github.com/adobe/react-spectrum/blob/main/packages/react-aria/src/tooltip/useTooltipTrigger.ts): a capture-phase Escape that closes the tooltip and stops there while it is open), and what 1.4.13 asks for: closing Settings would move the focus. After a press on the control (Space, Enter, a click) no sentence is showing, so Escape closes Settings at once, as before. The same holds for the focus the app gives back: Escape out of the key bar editor, then Escape, closes Settings, two presses as on main. Two existing browser checks pressed Escape once with the keyboard on a setting; they now assert both steps: - `scripts/settings-rows-demo-regression.ts`: a search result reached by Tab shows its sentence; Escape closes it and keeps the search and the focus, and the next empties the search. A result the keyboard did not move to takes one Escape, as before. - `scripts/file-viewer-regression.ts`: after the Tab walk on a desktop (it ends on the open page's first setting), Escape closes the sentence, then Settings, over the same preview entry. Every other script of CI's browser lane that names the Settings dialog passes unchanged. ### What the sentences say - 115 of the 118 Settings rows have a sentence, in English, Korean, Japanese and Chinese, each one or two sentences: what the setting changes, what each choice means, and whether it is this device's or every device's, in the words its label already uses. The three without are the read-only key list under "Use herdr's prefix keys" and the search-only "Add a connection" row. Two disclosures keep their length (Delete account, Send anonymous usage counts). - Each claim was checked against the code. Corrected on the way: quick replies and the theme were said to be this device's (they are shared, `SHARED_SETTING_KEYS`); Sidebar rows spoke of workspace rows only (agent rows change too). - **Test notification** (Alerts) was a hand-drawn row whose sentence was not in the document on a bare page at all; it is a `SettingsRow` now, with the push health line as its `condition`. Its boxes on screen are unchanged at 390 and 1280. - New keys live in `src/lib/i18n/settings-help.{ko,ja,zh}.ts`; the entries of the sentences they replace are removed. ### What it follows - [Zed's settings](https://github.com/zed-industries/zed/blob/main/crates/settings_ui/src/settings_ui.rs) give each control its row's description as its accessible description; the same here, instead of a row group that reads its name twice. - herdr-app's settings rows stay a name and a control and carry a line only where there is something to say; the two visible lines follow that. - The surface is the app's one tooltip surface (the relay map's), and the pattern is WAI-ARIA's tooltip (hover and focus, Escape, no focus of its own). - VS Code, T3 Code and Paseo show every description under its title. That differs here on purpose: the owner removed those lines for calm (#3157 and the PRs beside it). ## Screenshots | | Before (main) | After | |---|---|---| | A resting mouse (1280, dark) | <img src="https://raw.githubusercontent.com/devswha/ovis/f0be5278de4041742765fb99178ccf1713559162/before-appearance-1280-dark-mouse.png" width="380"> | <img src="https://raw.githubusercontent.com/devswha/ovis/f0be5278de4041742765fb99178ccf1713559162/after-appearance-1280-dark-mouse.png" width="380"> | | Keyboard focus (1280, light) | <img src="https://raw.githubusercontent.com/devswha/ovis/f0be5278de4041742765fb99178ccf1713559162/before-chat-1280-light-keyboard.png" width="380"> | <img src="https://raw.githubusercontent.com/devswha/ovis/f0be5278de4041742765fb99178ccf1713559162/after-chat-1280-light-keyboard.png" width="380"> | | Test notification (1280, dark) | <img src="https://raw.githubusercontent.com/devswha/ovis/f0be5278de4041742765fb99178ccf1713559162/before-alerts-1280-dark-mouse.png" width="380"> | <img src="https://raw.githubusercontent.com/devswha/ovis/f0be5278de4041742765fb99178ccf1713559162/after-alerts-1280-dark-mouse.png" width="380"> | | A tap on the name (390, light) | <img src="https://raw.githubusercontent.com/devswha/ovis/f0be5278de4041742765fb99178ccf1713559162/before-chat-390-light-tap.png" width="190"> | <img src="https://raw.githubusercontent.com/devswha/ovis/f0be5278de4041742765fb99178ccf1713559162/after-chat-390-light-tap.png" width="190"> | | A long sentence on a phone (390, dark) | <img src="https://raw.githubusercontent.com/devswha/ovis/f0be5278de4041742765fb99178ccf1713559162/before-terminal-390-dark-tap.png" width="190"> | <img src="https://raw.githubusercontent.com/devswha/ovis/f0be5278de4041742765fb99178ccf1713559162/after-terminal-390-dark-tap.png" width="190"> | | The theme row's line (1280, dark) | <img src="https://raw.githubusercontent.com/devswha/ovis/f0be5278de4041742765fb99178ccf1713559162/before-appearance-1280-dark-line.png" width="380"> | <img src="https://raw.githubusercontent.com/devswha/ovis/f0be5278de4041742765fb99178ccf1713559162/after-appearance-1280-dark-line.png" width="380"> | | Web links' line (390, light) | <img src="https://raw.githubusercontent.com/devswha/ovis/f0be5278de4041742765fb99178ccf1713559162/before-chat-390-light-line.png" width="190"> | <img src="https://raw.githubusercontent.com/devswha/ovis/f0be5278de4041742765fb99178ccf1713559162/after-chat-390-light-line.png" width="190"> | ## Validation Head `58ea6fdc1`, with main `3ade453cb` merged in. The checks of this head ran on the project's pool of check VMs (the CI runner image's Bun, Node, herdr, Chromium and fonts), which now takes the place of this PC's queue. - `bun run check fast`'s steps (release guards, workflow syntax, generated types and themes, typecheck, build, unit tests): green on this head (16817 unit tests pass, all six steps ok). One unit test, `server/copilot.test.ts` "keeps a logged binding when only the log's timestamps change", fails only on the VMs' kernel and is on the pool's list of such tests; this PR does not touch it. - Browser regressions: the 57 of the 209 scripts of CI's browser lane that name the Settings dialog or its parts, with the merge gate's browser runner: all 57 pass on this head, none needing a second run (`ui-contexts-regression` ran with `ui-regression` as CI pairs them, and passed too). The same set passed in the CI runner image on this PC at `379fcb7c8`. - The design gate on the Settings pages (`scripts/design-gate-qa.ts --surfaces settings-…`), against a report of main, at `379fcb7c8`: 40 visits, 0 failures on that head and 0 on main, nothing new. It was not run again since: it is a container run on this PC, the VM pool has no mode for it, and it visits the Settings pages at rest, where no sentence is drawn. The only CSS change since is the sentence's height limit. - New checks: `where a row's sentence goes`, `when a row's sentence shows and whose Escape it is` and `a row's sentence describes its control` (`src/components/SettingsControls.test.tsx`); `rowSentences` in `scripts/settings-rows-demo-regression.ts` (a resting mouse, keyboard focus, Escape, a text field, a finger's and a pen's tap, a row out of view, a watching device; the pointer on a control the sentence lies on, a search that hides the row, Escape on a sentence a tap opened, and a row hovered again after Escape). - Measured on the demo build: text contrast of the sentence 13.12:1 (light) and 10.85:1 (dark) over the page, 5.97:1 and 5.35:1 opened in a row; the shortest row a finger taps is 58 px. - Every row of the seven pages without sentences (64 rows in the demo's state), swept in a browser on the demo build: a resting mouse at 1280 in both densities (each sentence is its row's own, on the screen, off the row's own control and the row below; 4 of the 64 lie on the near end of the control of the row above, where there is no room beside it), Tab through every control (the sentence clear of the focused control and its ring, every control described), and a tap on each name at 390 and 320 (in the card, no sideways scroll, a second tap closes it): 0 problems in every sweep, at `e76da99b3`. That is before the demo switch came out and before the review fixes below; the sweep was not run again after them. - Review of `0db524275` found that the focus the app gives back opened a sentence, that a pen without hover could not open one, that a sentence taller than the screen began above it, and that a sentence could take another dialog's Escape. All four are fixed in `50ccbaaa3`. The first, second and fourth were run in a browser on builds of both commits; the third and the Escape decisions are unit tests. - Review of `bc6b0300c` found that a sentence lying on the control of the row above took the pointer and the click meant for that control, that Escape closed Settings while a sentence a tap had opened was showing, that a row hidden by the search kept its sentence and showed it again later, and that a sentence taller than the window could not be read to its end. All are fixed in `504de4eea`. The first three were run in a browser on builds of both commits (red before, green after); the height limit is checked by its computed style only. The new regression step then found one more: a row hovered again after Escape on its sentence showed nothing once, fixed in `58ea6fdc1`. - Skipped: the integration lane and the Windows and macOS jobs (no server, shared or native code changed).
What
Settings > Shortcuts and Settings > Terminal drawn as herdr-app draws its settings: each row is a name and its control, with no sentences under it and no group captions. A row whose value moved off its default shows a ↺ beside its name, as T3 Code does. Rows whose name alone is not obvious get a leading icon, and the two key bar rows get a small phone picture of what they change.
Follows the Appearance PR #3162 (merged), which brought the shared pieces (
SettingsBare, the ↺ reset, "n changed" on the fold,SettingsRowicon/preview/condition). This PR adds onlyonResettoSettingsRow(a row whose value lives inside another setting: one shortcut ofshortcutOverrides), and keeps focus in the row after a reset.Shortcuts
?settings=shortcuts§ion=herdr-keysopens that fold.Terminal
releasePaneAwayandfollowHerdrFocusare kept; Follow sets both, Separate clears both. A device that stored follow-without-alongside reads as Follow and keeps that until it picks another option. The old row names still find it in search.terminalImagesis nowboolean | null, kept under a new keyovis:terminal-pictures(up to now every save wroteovis:terminal-images,falseincluded, so a storedfalsethere was not a choice; a storedtruethere still counts):null(never chosen) follows the pane's server: on where it keeps the terminal's history (herdr-core), off on herdr, which passes no pictures anyway. An explicit on or off on a device stays. The image addon's memory caps are unchanged (desktop 4096² px / 64 MB, touch 2048² px / 16 MB).Measured on an isolated hc 0.1.17 and herdr 0.9.5 session before the default change: herdr delivers no picture protocol at all; on herdr-core kitty (
chafa -f kitty,timg -pk) already draws by default via libghostty, and with pictures on sixel (chafa -f sixel,timg -ps) and iTerm2 (timg -pi) draw too. Gaps found: #3146 (kitten icat), #3147 (imgcat multipart, chafa TIFF).Design follows herdr-app (rows without descriptions) and T3 Code (per-row reset, folds), as the owner asked; icons from lucide like the rest of the app.
Screenshots
Light, 1280 and 390, before/after: attached in the lane report (demo build).
Validation
On 01d3bb6 (origin/main merged in), old-desktop heavy runner:
bun run check fast: ok (unit 12733 pass, 0 fail; typecheck, build, generated files).trueis fixed with a test).