Skip to content

hub-client: UI/UX Phase 5 review adjustments (fullscreen fix, sidebar toggle, smallest header) - #625

Merged
shikokuchuo merged 5 commits into
mainfrom
hub-client-uiux-phase5-review
Aug 27, 2026
Merged

hub-client: UI/UX Phase 5 review adjustments (fullscreen fix, sidebar toggle, smallest header)#625
shikokuchuo merged 5 commits into
mainfrom
hub-client-uiux-phase5-review

Conversation

@shikokuchuo

Copy link
Copy Markdown
Member

Follow-up to #622 (merged before the design review finished): the adjustments from your review feedback.

Before → after

Change Before After
Fullscreen preview at ≤ 700 px Blank pane (the split-collapse rule hid the fullscreen pane too) Preview shows; regression specs at 700/320 px
Sidebar toggle Only existed at ≤ 900 px, easy to miss Permanent header button at every width; hides/shows the sidebar above 900 px too
Toggle styling Looked like a title-bar button Grey chip in the sidebar's own tint, deepening while the sidebar is open. The switch-project icon is now teal — the one action that exits to another view
Header at ≤ 700 px Share/Preview hidden in a "..." menu; view-mode switcher visible with split disabled View-mode switcher hidden (the Preview button covers switching); Share + Preview back inline; the "..." menu is gone

Screenshots (light theme)

Header at 1280 px

Before After
header before header after

Editor at 700 px

Before After
700 px before 700 px after

Editor at 320 px

Before After
320 px before 320 px after

Tests

  • Visual suite: 231/231 (screenshots, axe-core, keyboard, reduced-motion, viewport matrix).
  • Unit (1049), integration (114), WASM (133): all pass.
  • lint:css + typecheck: clean.

CI note

The header captures changed, so the linux baselines need one more regeneration: dispatch hub-client-e2e.yml with recreate-all-snapshots=true on this branch.


Images load from the phase5-review-assets branch (same as #622).

The Phase 5.5 split-collapse rule hid .preview-pane in view-mode-both
below 700px — including when the pane was in fullscreen-preview mode,
leaving a blank pane (the editor pane unmounts in fullscreen). Exclude
.fullscreen from the collapse. Regression cover: new
#/dev/editor-shell-fullscreen harness route + specs at 700px and 320px
(watched them fail before the fix).
…e 5 review, bd-tfsdmytf)

Design-review adjustment from the Phase 5 gate: the sidebar toggle was
drawer-only (<=900px) and easy to miss. It is now permanent header
chrome at every width — above 900px it hides/shows the static sidebar
(VS Code style), at <=900px it opens/closes the overlay drawer as
before. The two modes keep separate state: hiding the static sidebar
does not open the drawer on a narrow resize (spec-pinned). The button
reads as sidebar chrome, not a title-bar action: muted grey at rest,
faint sidebar-tinted background while the sidebar is open.

Specs: updated the 1280px counter-check, added hide/restore at 1280px
and the cross-breakpoint state test (watched all three fail first).
Regenerated darwin captures: minimal-header (new button), editor-shell
and drawer (grey toggle). No linux baseline impact beyond what the
recreate workflow already regenerated — CI will add the new captures.
…ase 5 review, bd-tfsdmytf)

Design-review round 2 on the narrow-viewport header:

- At <=700px the view-mode segmented control is hidden (split view is
  collapsed there anyway; the Preview pill covers editor<->preview) and
  Share + Preview stay inline — the kebab overflow menu is retired
  (MinimalHeader, specs, and the now-unreachable split-disable logic in
  ViewToggleControl all cleaned up).
- The sidebar toggle is now unmistakably sidebar chrome: a filled chip
  in the sidebar's own background tint + border, grey in both states,
  deepening to the sidebar's content tint while open. The
  switch-project button takes the teal accent instead — it is the one
  header action that exits to another view.
- Harness: the header route stubs the drawer id so the toggle's
  aria-controls isn't a dangling reference (axe aria-valid-attr-value).
- Specs: smallest-header composition at 700/320px, toggle chip
  distinction in both states (computed-style), teal switch assertion;
  split-collapse spec updated for the hidden toggle. axe baseline
  regenerated (an earlier interrupted write left it partial).
@shikokuchuo
shikokuchuo merged commit aed1d2e into main Aug 27, 2026
8 of 9 checks passed
@shikokuchuo
shikokuchuo deleted the hub-client-uiux-phase5-review branch August 27, 2026 20:50
@shikokuchuo

Copy link
Copy Markdown
Member Author

@cderv fyi this PR gives you the sidebar toggle you wanted.

@posit-snyk-bot

posit-snyk-bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

shikokuchuo added a commit that referenced this pull request Aug 27, 2026
A recreate-all-snapshots dispatch on hub-client-uiux-phase5-review
(20:37) raced the merge of PR #625 (20:50): the run's push step
recreated the deleted branch and committed the regenerated baselines
there 18 minutes post-merge, so main has the Phase 5 UI with stale
baselines. The mismatch fails the visual suite on main and every open
PR (the --update-snapshots=missing retry only adds NEW baselines).

Cherry-picks the 13 regenerated linux snapshots (minimal-header,
editor-shell x4 widths, sidebar-drawer, projects-home-empty) onto main.

(cherry picked from commit f120b2e)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

2 participants