Skip to content

feat(workspaceui): add the accepted parts, the control map and a gallery - #74

Merged
bketelsen merged 3 commits into
mainfrom
feat/workspaceui-gallery
Nov 24, 2026
Merged

bketelsen merged 3 commits into
mainfrom
feat/workspaceui-gallery

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

Phase 2 of the kit's plan, rounds 1 and 2: the look's vocabulary. The owner looked at the gallery's pictures, ran the app, and accepted the look as drawn (2026-11-24). He also set the phase's bounds: it decides colors, controls and the inside of a part; where parts go in a window, and how one moves between them, is each app's later phase.

  • A gallery, workspaceui/gallery, a module of its own: the standard window on fixture mail, built from NSGo's own controls, and a page for each family of controls (colors and type, buttons and toolbars, fields and forms, rows and marks, dialogs and menus). Its picture tours keep 20 pictures, each view in both themes, taken in a GTK window on Xvfb's X11. make gallery opens it; make gallery-live and make gallery-pictures run the tours in a real window.
  • The accepted parts, in the kit, each with a layout test: NavLabel (a sidebar row's icon, name and count), SummaryRow (a list row of a sender, a subject and a preview), SoftRows (the rows' hover and chosen fills), Banner, EmptyState, DialogPanel (a dialog's opaque ground) and ConnectionItem.
  • The control map, in the spec: which NSGo control each need takes, and the few parts the kit adds where NSGo has none. The gallery's tours find the filter by role:tab, the toolbar by role:toolbar and the confirmation by role:alertdialog, so a control of another kind fails.
  • The gates. The Makefile's MODULES gains the gallery, so tidy, vet, lint, the tests, the race detector and the cross-build run in it. The cross-build now writes nothing (-o /dev/null): a module of one main package left its binary behind.

What the owner accepted: the soft fill of a chosen row, the toolbar on NSGo's inset strip, NSGo's tinted danger button, an opaque Frostyard panel under a dialog (NSGo's own is the page's color at 92% over a blur that Linux does not draw), initials on a neutral avatar, the summary row of 3 lines, modules as tabs of an icon alone, and NSGo's corners and sizes.

Risk tier

Risk tier: 3 — the change matches L2 paths.

  • Makefile: MODULES gains workspaceui/gallery; 3 new targets (gallery, gallery-live, gallery-pictures); cross builds with -o /dev/null, which builds the same packages and keeps nothing. No existing gate is removed.
  • .github/risk-paths.json: 2 entries added (workspaceui/gallery/go.mod, go.sum), both L2. No entry is removed or lowered.
  • workspaceui/gallery/go.mod, go.sum (L2, new): the gallery requires the kit (replaced by the directory beside it) and NSGo v0.3.0, and names NSGo's tool. No app imports the gallery, so no app takes a requirement from it. workspaceui/go.mod and go.sum are unchanged.

Also: .github/dependabot.yml gains an entry for the gallery's go.mod.

Docs housekeeping

  • Cross-links added in both directions (ADR ↔ design ↔ spec ↔ plan)
  • Conformance aliases and canonical symlinks are unchanged; canonical targets are edited instead

The spec gains the parts, the control map and the rules the tests hold; the design doc and AGENTS.md describe the gallery and its targets; the plan records the 2 rounds and what is left.

Verification

  • make verify green, as part of make ci BASE=origin/main (host, exit 0, ==> ci passed), across the 3 modules, before the last commit's 2 lines (the cross-build's -o /dev/null, a .gitignore entry) and the merge of main (docs). After them: make cross for 2 targets, make verify-template, and both modules' tests pass.
  • make gallery-pictures (host, Xvfb's X11): 4 tours pass, and 2 takes give the same bytes for all 20 pictures.
  • The move changed no picture: after the gallery took its parts from the kit, 18 of the 20 pictures were the same bytes as round 1's. The 2 of the buttons page differ because a busy button, whose spinner differed between takes, was removed.
  • The layout tests bite: with the name's flex removed, TestNavLabelKeepsItsCountAtTheRowsEnd fails ("the count ends at 100, want the row's end 240"); with the cut removed from the summary row's title, TestSummaryRowKeepsItsTextInside fails.
  • Not checked: the gallery in a browser (the web target) and on Windows; no gate runs the tours in a real window.

To know. The first commit of this branch holds a 26 MB built binary of the gallery, committed by mistake and removed in the second. A squash merge keeps it out of main.

Left in Phase 2: the controls of the map the gallery does not draw yet (a tree, a popover and a hover card, a toast, paging, a disclosure, NSGo's settings, the command palette, a search field's icon and key hint); draft windows for a calendar, people, tasks, compose and settings; pictures from the web target.

A module of its own, workspaceui/gallery: an app that shows the Frostyard
themes on NSGo's own controls, and a first draft of the standard window
built from them (frostyard/frostmail, plan 0016, rules 10 and 11).

- The standard window on fixture mail: the toolbar as NSGo's toolbar of
  icon buttons with one filled button, the navigation as NSGo's sidebar
  with a role's icon and a count at each row's end, the modules as
  segmented tabs, the list as NSGo's list with a multiple selection and
  summary rows (unread dot, avatar, sender and date, subject, preview,
  marks), and the reader with a banner and the sender's white page.
- Pages for colors and type, buttons and toolbars, fields and forms, rows
  and marks, dialogs and menus.
- Picture tours in both themes; comparison/linux keeps 20 pictures taken
  on Xvfb's X11.

The row parts, the banner, the empty state and the dialog's opaque panel
are prototypes in the gallery, to move into the kit once the look is
accepted. The module is not yet in the Makefile's gates.
The owner accepted the gallery's look as drawn (2026-11-24). The parts it
prototyped are now the kit's, each with a layout test: NavLabel (a sidebar
row's icon, name and count), SummaryRow (a list row of a sender, a subject
and a preview), SoftRows (the rows' hover and chosen fills), Banner,
EmptyState, DialogPanel (a dialog's opaque ground) and ConnectionItem.

The gallery draws them from the kit; 18 of its 20 pictures are the same
bytes as before, and the 2 of the buttons page lose a busy button whose
spinner differed between takes. The gallery is a module of the Makefile's
gates, with make gallery, gallery-live and gallery-pictures. The spec
gains the parts, the tests that hold them and the control map.

Removes a built binary that the first round committed by mistake.
@github-actions github-actions Bot added level:L2 Read the diff risk:high Touches a path in .github/risk-paths.json (core ADR-0068) labels Nov 24, 2026
@bketelsen
bketelsen merged commit 3d9c8b4 into main Nov 24, 2026
10 checks passed
@bketelsen
bketelsen deleted the feat/workspaceui-gallery branch November 24, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L2 Read the diff risk:high Touches a path in .github/risk-paths.json (core ADR-0068)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant