Repository navigation
feat(phone): closable update line, one-line push banner, grouped More, quicker setup start (owner-approved design proposals) - #3485
Merged
Merged
Conversation
The line offering a release gets the Close the update-done line already has. It stays closed on this device for that release, keyed by its revision, and offers the next one again. A failed or changed install keeps the line with no Close; Settings still offers the update.
…its end (G-103) The notice takes the shared .update-notice.is-line layout: the sentence is cut with an ellipsis (its full text in the tooltip and Settings -> Alerts) and Close stays at the right end of the same row. Why a repair failed still wraps to be read in full, with the row unchanged.
…-143) At sheet width More keeps the waiting session, the palette, Files, Copy link, Alerts and the split tab's panes; Find in terminal and Search conversation fold into Find..., the pane's and tab's other actions into Pane and tab..., each opening its own sheet from More's button. No item is removed, a group of one is not folded, and the popover is unchanged. The More state moves to src/lib/moreMenu.ts, lowering App's hook ceiling to 22. Browser scripts that picked those items from More open the group first (scripts/header-more.ts openMoreGroup).
The agents screen's lead is one short line and its blocks sit a step closer on a phone; order and Start's place are unchanged.
…hone (G-143) Find… stayed open after a resize to a desktop width, since Find in terminal kept it non-empty, while Search conversation left it. Only a phone folds More, so a wider screen has no group to show: the open one is now empty there and closes (src/lib/moreMenu.ts openGroupItems).
…fer's Close keeps the focus (G-103, G-102) Terra review on 50f5a1494. On a narrow phone with large text, a failed push repair's reason was squeezed beside the unwrapped buttons into a column a letter wide, and the notice ran past the screen. In that state the notice is now a grid: the reason takes the line's width with Close at the top right, the repair button goes under it, and the notice keeps to half the screen, scrolling inside itself. The one-line notice of every other state is unchanged. Closing the update offer from the keyboard dropped the focus to the page; it now moves to the header's More. push-health and revision-bound-update regressions cover both, failing before.
…ide screen (G-103) Terra review on 22f970fef. The failure grid (repair button under the reason, Close above it) applied at every width, so a desktop's controls moved too. It now applies at a phone's width alone (640px, the sheets' breakpoint); a wider screen keeps the repair button and Close on the line's row and lets only the sentence wrap. push-health-demo-regression checks 1440 on one row, failing before, beside the 320 and 390 checks.
|
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 38 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. |
Owner
Author
|
Merge note (merge pass) at head 1faeebb:
|
devswha
added a commit
that referenced
this pull request
Nov 10, 2026
…anese text (#3531) ## What was wrong On a 320 px phone in Japanese at the 20 px interface text size, the alerts health notice (the one-line banner from #3485) pushed its Dismiss button past the right edge of the screen. The repair button's label (`通知をもう一度オンにする`, 239 px wide at that size) never shrinks, so even with the sentence cut to nothing the row needed 341 px of a 320 px screen. Dismiss (44 px wide) sat at x 297 to 341: its right 21 px, including most of the X glyph, was off-screen. Reproduced on `origin/main` (6fa11f4) in headless Chromium against the demo build, phone emulation at 320x568, `language: "ja"`, `uiFontSize: 20`, a retired push subscription. ## The fix CSS only, in `src/components/PushHealthNotice.css`, for the notice's fault line (the failed-repair layout is untouched): - the sentence's flex basis is 0, so it gives up its width before anything else does (it already ended at 0 px in this case); - the action button may then shrink, and its label wraps inside it (`white-space: normal`, `text-wrap: balance`, `word-break: auto-phrase` as `AddPcSheet.css` already does for Japanese), the button growing in height (`height: auto`, with the same minimum height as before). Dismiss keeps its 44 px size and its place at the line's right end. Wherever the label fits, nothing shrinks: the line stays the one-line banner of #3485. Design reference (src/AGENTS.md): this follows the notice's own failed-repair state on a phone, where the button's label already wraps (`.is-failure > .btn`), rather than another app; no layout was copied. ## Measurements (headless Chromium, phone emulation, x positions in CSS px) 320 px, Japanese, 20 px interface text: | | action button | Dismiss | notice height | |---|---|---|---| | before | 50 to 289 | 297 to 341 (viewport 320) | 53 | | after | 50 to 260, label on two lines, 58 px tall | 268 to 312 | taller by the label's second line (read off the screenshot, not measured) | Same result while the repair runs (`通知をオンにしています…`: Dismiss 292 to 336 before, 268 to 312 after). Unchanged, identical before and after (action button and Dismiss boxes, sentence width, notice height), at rest and while repairing: en, ko, zh and ja at the default size at 320 and 390; en, ko and zh at 20 px at 320 and 390; ja at 20 px at 390. That is 30 of the 32 measured states; the two that changed are the ones above. ## Regression `scripts/push-health-demo-regression.ts` gains `checkLineAtLargeText` (Japanese, 20 px): at 320 px Dismiss is whole on the screen after the button, at the line's right end, both controls are finger-sized, the label stays inside its button, nothing scrolls sideways, at rest and while repairing, and a tap on Dismiss closes the line; at 390 px the button keeps its one line. Fixes #3498 ## Validation - `bun run check fast` (through the heavy queue, on the pushed commit): pass. Workflow syntax, generated types and themes, typecheck, build, unit tests 14386 pass / 0 fail / 50 skip. - `bun scripts/push-health-demo-regression.ts` in the CI runner image (`herdr-ci-runner:local`, a throwaway container as the host user, Bun 1.4.2, the image's Chromium): pass, all ten lines, including the two new ones. It ran on the same file contents as the pushed commit, before the commit was made. - Before/after measurements above: a one-off headless script on this PC (not in the tree), on `origin/main` and on the fix. The final CSS differs from the measured "after" run only by a dropped `padding-block` on the button; the 320 px Japanese numbers above are from the final CSS (the regression run's screenshot). - Skipped: `bun run check integration browser` / `full`, every other browser script, any desktop (fine pointer) before/after measurement (the existing regression's 1440 cases pass), real devices, Safari and Firefox. `text-wrap: balance` and `word-break: auto-phrase` are refinements a browser without them ignores; the label still wraps. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5.2 <[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
The phone, banner and first-run group of the owner-approved UI proposals (ui-proposals-34, PR 4 of 4), based on
mainatb8cace07d; head1faeebbbf. Positions stay where they were; no new control is always visible.Per id
line already has. It stays closed on this device for that release, keyed by its revision (a moved tag counts as
a new offer), and comes back for the next one. A failed or changed install still has no Close until it is dealt
with. Settings keeps offering the update either way. The new key
ovis:update-offer-closedlives inlib/updateNotes.tsnext to the done line's key and follows the same subscribe-then-read pattern across tabs.
Reference: the Codex app's update toast (Update now and a close; the next version shows again).
PushHealthNoticejoins theshared
.update-notice.is-linelayout: one nowrap row, the sentence cut with an ellipsis (its full text is inthe tooltip and in Settings → Alerts), the repair button, then Close at the right end of the same line. Why a
repair failed (for example Brave's push setting) must be read in full, so in that case only the sentence wraps
(
.is-failure); the row and Close's place stay the same. Reference: the Claude iOS app's banners (one line,close glyph at the trailing edge).
Search panes and actions (the phone's only way to the palette), Browse files, Copy link, Alerts and the split
tab's pane list. It folds Find in terminal and Search conversation into Find… (찾기…), and every other pane
and tab action into Pane and tab… (패널·탭…). Each opens its own sheet from More's button and takes over
More's history entry, so one Back closes it. No item was removed; a group holding just one item is not folded.
The phone sheet drops from 12 rows to 7. Desktop and landscape popovers are unchanged. A group still open when the window
widens past a phone's width closes, since More lists those items itself there.
The Chat/Terminal switch and the tab list were never in More (the header lens and the title's tab sheet), so
they stay as they are. To stay under App's hook ceiling, the More state moved into
src/lib/moreMenu.ts, whichlowers the ceiling from 24 to 22. Reference: the Claude iOS app's action sheets (secondary actions grouped
behind one row that opens a second sheet).
Start." / "하나를 고르고 시작을 누르세요.") instead of two, and its blocks sit one spacing step closer on a phone. Order
and Start's place are unchanged. On a 390x844 phone, Start is now fully in view and Connect your phone begins
under it (before: Start sat on the bottom edge). Reference: the Codex app's onboarding (one short line over the
choices).
aria-label"Manage {name}" / "{name} 관리", tooltip"PC 관리"), and the step under an SSH failure points to it by its shape and menu name. The owner rule forbids a
visible label beside it, so there is no code change.
selectable under it, and adds the Manage-PC step.
코드를 직접 입력하세요.") at the same size and place (fix(ui): the rest of the design pass #3433).
next, so the welcome no longer repeats itself (fix(ui): the rest of the design pass #3433).
Screenshots
Demo build, light theme, Korean, 390 phone and 1440 desktop where the shot has them:
~/.cache/ovis-tmp/ui-proposals-34/phone/beforeand.../phone/after(G-031, G-032, G-102, G-103, G-139, G-143,G-192, G-198). The capture harness copy at
.../phone/capture.tswaits for the welcome'sh1(the shared harnesswaited for an
h2that #3433 had changed). It was used for both runs.Tests and scripts
src/lib/moreMenu.test.ts: an open group has its items at a phone's width and none once the screen is wider, so itcloses (found by the Codex adversarial review: Find… stayed open after a resize to 1440 and lost Search
conversation; the test failed before the fix).
UpdateControls.test.tsx: the offer line closes for its revision only and comes back for the next; a failedinstall stays with no Close.
push-health-demo-regression.ts: at 390 and 1440, Close is on the repair button's line and is the line's lastcontrol at its right end.
through the shared
openMoreGroupinscripts/header-more.ts: chat-request-details, conversation-search,deep-link, design-gate-qa, mirror-fold, mobile-tabs, phone-glass-header, phone-safe-area, tab-menu.
Validation
Head
50f5a1494: my six commits cherry-picked ontoorigin/main70575cd47, with no conflicts. Every check below ran onthat head.
bun install --frozen-lockfile(no changes), thenTMPDIR=$HOME/.cache/ovis-tmp/ui-proposals-34/tmp-phone bun run check fast: pass (workflow syntax, generated types and themes, typecheck, build, unit 14280 pass / 0 fail / 50 skip).Browser scripts, one at a time on this PC (1-min load under 80 before each): push-health-demo-regression,
revision-bound-update-demo-regression, phone-glass-header-demo-regression, phone-safe-area-demo-regression,
conversation-search-demo-regression, chat-request-details-demo-regression, deep-link-demo-regression,
mirror-fold-demo-regression, agent-entry-points-demo-regression, phone-split-grid-demo-regression: all pass.
scripts/ui-contexts-regression.ts(isolated test herdr): pass, every check including checkPushSettings, checkMobileTabs,checkTabMenu (desktop, phone and tablet) and checkUpdateNotice.
scripts/design-gate-qa.ts: 335 failures (terminal-view contrast, chat minimap ticks, header counts). The same 335 ason the pre-rebuild base
a00098952, so it adds none; the unsent-text visit, which goes through Pane and tab…, passes. Idid not run it again on plain
main.After screenshots re-taken on this head (same harness copy). Next to the earlier after shots, the only differences are
chat timestamps and, from main, the desktop Agents rows that are no longer cut in G-031/G-032 at 1440.
Not run: ui-regression.ts, ui-contexts-layout-regression.ts, the CI runner image runs, the Windows and macOS checks.
CI runner image (
herdr-ci-runner:local, fresh clone of50f5a1494): the ten browser scripts above, 10/10 pass in 287 s.Final round
50f5a1494: one MEDIUM, one LOW, fixed test-first in22f970fef:22f970fef: one LOW (the failure layout also moved the controls on a wide screen), fixed in1faeebbbf: the grid applies to narrow screens only; push-health checks one row at 1440 and the grid at 320/390.1faeebbbf:bun run check faston old-desktop (fresh clone): REMOTE_EXIT=0, unit 14296 pass / 0 fail.1faeebbbf, browser regressions on old-desktop (bun run check run --build, one at a time): push-health, revision-bound-update, phone-glass-header, phone-safe-area, conversation-search, chat-request-details, deep-link, mirror-fold, agent-entry-points, phone-split-grid and ui-contexts-regression: 11/11 pass.