Skip to content

fix(home-v2): bookmark toolbar follow-up fixes - #354

Merged
QuickMythril merged 1 commit into
mainfrom
fix/home-v2-toolbar-followups
Aug 24, 2026
Merged

fix(home-v2): bookmark toolbar follow-up fixes#354
QuickMythril merged 1 commit into
mainfrom
fix/home-v2-toolbar-followups

Conversation

@QuickMythril

Copy link
Copy Markdown
Member

Summary

The four product-facing minors the adversarial review found on the bookmarks toolbar (#345), now that it's merged:

  1. Pin-open inline alert restoredopenDashboardPin swallowed failures into the passive shell notice, so HomeV2PinnedApps' role=alert path (which renders the error next to the pin via runAction) never fired. It rejects again with the failure message; the context-menu "open" path reaches the same inline surface.
  2. Toolbar failures no longer silent — opening a toolbar bookmark or running a right-click action ended in catch(() => undefined). A new optional onActionError prop threads through ToolbarItems/FolderMenuItems/ToolbarLink; the live app wires it to the shell notice (the toolbar has no inline alert surface of its own).
  3. Measured chrome height — the app viewport used calc(100vh - 98px) (and - 140px with the toolbar via :has), which assumed the default text size and a fixed 42px toolbar; after the typography PR the chrome height genuinely varies. A ResizeObserver on the browser chrome now sets --v2-chrome-height on the shell root and both viewport rules use it (98px fallback for environments without observers or before mount). The :has special case is deleted.
  4. Appearance row no longer pops in late — the toolbar-visibility setting renders immediately as a disabled "Loading…" row until the collections snapshot arrives, instead of appearing only after load.

Testing

  • Renderer tsc clean; test:home-v2-foundation, test:home-v2-browser-chrome, test:home-v2-bookmark-toolbar pass; build:renderer succeeds. Worth a quick packaged check that the app view bottom edge is correct with toolbar shown/hidden at Medium and Huge text sizes (the smoke smoke:desktop:home-v2-bookmark-toolbar also covers the toolbar flows in CI-less form if you want it locally).

🤖 Generated with Claude Code

Addresses the four product-facing minors from the toolbar branch
review (P-10 follow-ups): openDashboardPin rejects again on a failed
open so the pinned-apps inline role=alert renders (instead of only the
passive shell notice); toolbar open/context-action failures surface
through a new onActionError prop threaded to every ToolbarLink (they
previously vanished in catch(() => undefined)); the page viewport
sizes against a measured --v2-chrome-height set by a ResizeObserver on
the browser chrome, replacing the hardcoded 98px/140px offsets that
assumed default text size and a fixed-height toolbar; and the toolbar
visibility row in Appearance renders as a disabled loading row until
the collections snapshot arrives instead of appearing late.

Parity review P-10 follow-ups
(projects/qortium-home-2.1/parity-review-2026-08-24).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@QuickMythril
QuickMythril merged commit bea932a into main Aug 24, 2026
6 checks passed
@QuickMythril
QuickMythril deleted the fix/home-v2-toolbar-followups branch August 24, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant