Repository navigation
feat(settings): Alerts, About and a new Experimental page as name-and-control rows - #3158
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 3 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).
…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.
…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.
8b055b2 to
b116058
Compare
|
@coderabbitai review |
Action not completed
|
|
CodeRabbit did not review this head (da76c86): auto reviews skip a PR whose base is not Reviews that ran at this head: omo ( Merge before #3157 (or together): #3157 removes the OMP Side conversations chip from Agents, and this PR is where it lives now. |
…t focus skips a disabled control
# Conflicts: # src/components/SettingsDialog.tsx
…-control rows Alerts: which alerts come is one line of chips; In the app is removed (in-app alerts always drop in, an older stored value is ignored, telemetry keeps reporting true). About starts with the runtime in use and its version, and with herdr and herdr-core both installed that line is the switch between them. Experimental holds Named agent groups, Lock pinned agents, Codex panes' drag and OMP's Side conversations chip. Rows that need it carry an icon.
…out, move DESIGN.md to Experimental
da76c86 to
d86b5a6
Compare
…about # Conflicts: # src/components/SettingsControls.tsx # src/components/SettingsDialog.tsx
|
Merge note (merge pass) at head 1a28c2c:
|
## 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).
Stacked on the Appearance page PR (base
feat/settings-appearance). Merge before #3157 (or together with it): #3157 removes the OMP Side conversations chip from Agents, and this PR is where that row lives now, so Settings never loses it.What
Alerts, About and a new Experimental page in the same row style as the Appearance page: each row is a name and its control, without group captions or sentences (the sentences stay in the code as the words Settings' search finds a row by), with an icon where the name alone does not say what the row is, and a ↺ beside a changed value that restores the default. The design follows herdr-app's settings rows and T3 Code's per-row reset.
Alerts
alertDonesetting's two levels: every turn takes in the long ones, so Any lights Long too. The row's ↺ restores all five, the two kept in the alert filters' own store included.alertInAppis ignored;sanitizeSettingsdrops it, and telemetry keeps reportingalertInApp: true, so the event schema and the Worker are unchanged. Turning every alert off is still the Alerts switch in the header's More menu, which is now always shown (it hid only when in-app alerts were off and the browser had denied notifications).About
herdr_runtimeandherdr_corefrom the health answers.switch_to), that line is the choice between them, each with its version; picking the other asks first and then restarts through the existing switch. With one installed it is a plain fact, and another runtime found installed without a switch gets its own line.Experimental (new page)
Named agent groups (from Appearance's More settings), Lock pinned agents (from Appearance's Experimental fold), Codex panes' drag (from Terminal's Experimental fold) and, under an "Agents" sub-heading, OMP's Side conversations chip (from its row on Agents) and OpenCode's subagent ends read from their session (
opencodeParentEnds, from Appearance's Experimental fold, added on main since). Stored keys and defaults are unchanged. The palette finds the page by those names.Shared controls
On top of the shared
SettingsRowicon/preview/condition API from the base branch:SettingsRowtakesresetAlso(a store of its own that ↺ also restores),SettingsGrouptakesheading(a title kept on a bare page) andkeepNote, and there is aChipTogglescontrol. Theexperimentalfold variant stays for #3157.Also renamed in Korean, as the owner asked for plain names on unclear rows: the Codex drag row now reads "Codex 창의 드래그는 Codex에 넘기기".
Screenshots (demo build, light)
?demo_runtime=both)The "Push alerts need HTTPS" line under Test notification shows because the demo runs on plain http.
Validation
Rebased onto
feat/settings-appearance87b6a20 (#3162 with origin/main merged). On that head:bun run check faston this host: typecheck, build green; unit 12708 pass, 1 fail:server/remote-entry.test.ts, which this PR does not touch (noserver/change) and which passes alone (10/10).settings-pages-demo-regression.ts,ui-regression.ts,agent-groups-demo-regression.ts,agent-lock-demo-regression.ts,alert-webhook-demo-regression.ts.settings-pages-demo-regression.ts(all, including three new checks: About names the runtime in use and offers the switch only with two installed, asking first; Alerts' chips: every turn lights the long turns and ↺ restores all five; About's compact Updates line keeps the last update's notes, its name and the running version),ui-regression.ts(theLightstep that stopped it before is fixed on the base),droplet-regression.ts(a storedalertInApp: falseno longer stops an in-app alert).revision-bound-update-demo-regression.ts,agent-groups-demo-regression.tsandagent-lock-demo-regression.ts(now on Experimental),alert-webhook-demo-regression.ts,push-health-demo-regression.ts,pane-mute-demo-regression.ts,chat-request-details-demo-regression.ts,codex-drag-demo-regression.ts,file-text-size-demo-regression.ts,interface-font-demo-regression.ts.bun run check integrationon old-desktop failsserver/api.contract.test.ts(Grok, Agy, Muse, Codex conversation API: fixture process did not start in 10 s) andserver/hermes.contract.test.ts; the base commit ef1caca fails exactly these five tests there too.update-browser-qa.tsstops at its own install's build ("Tsconfig not found …/shared/vendor/paseo-e2ee") on the base commit as well; its notes check is covered by the new settings-pages check above.alertInApp: falseto keep drop-ins out of their captures now storealertsOn: false.Review: omo BLOCK at 8b055b2 (HIGH: compact Updates hid the last update's notes) and Codex MEDIUMs, fixed here as above. Not changed, by the owner's choices: in-app alerts can no longer be silenced apart from push (In the app was removed on purpose), and Experimental's rows show no descriptions (this page style drops them; they stay as search words).