Skip to content

feat(workspaceui): keep the window, tint a flag's row, and give an empty pane its actions - #79

Merged
frostyard-machines merged 1 commit into
mainfrom
feat/workspaceui-asks
Nov 25, 2026
Merged

frostyard-machines merged 1 commit into
mainfrom
feat/workspaceui-asks

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

FrostMail and Frostnotes, on workspaceui/v0.4.0, each held something the kit should (frostyard/frostmail's plan 0017, Phase 1). The kit gains 6 things, and the gallery draws the 3 that have a look.

  • A flag's row. NavLabel.Tint colors a row's icon in place of the accent. FrostMail's navigation drew every flag's row in the accent (NSGo client: a flag draws in a tone of the kit, not in its own color frostmail#401).
  • An empty pane's actions. EmptyState.Actions: a centred row of buttons under the hint, which wraps in a narrow pane. Frostnotes' pane with no vault drew its own buttons under the kit's part.
  • Headings. Heading(level): 24 points at level 1, 2 less for each level to 14 at level 6, semibold. Frostnotes' style test had 1 exception, a heading's size written as a number.
  • The window. KeepWindow(cx, minWidth, minHeight) keeps the window's size and place in the app's storage under window. FrostMail and Frostnotes each kept them with the same code; the kit's version takes its key and its record's shape from theirs, so a window an app already kept is still read.
  • The tree's width. FileExplorer.OnTreeWidthChange. A drag of the tree's edge now changes the tree's width and is told to the app. Before, the explorer gave the split a fixed width.
  • The right panel's state. Inspector.Open and OnOpenChange. A panel kept open opens only in a window of 1000 or wider, where it docks. OnOpenChange hears a person's press of the panel's button, and not what the shell closes by itself.

For the owner to judge, on the gallery's pictures:

  • page-tokens-light.png, page-tokens-dark.png: 3 flags as rows of the navigation, and the 6 headings.
  • page-more-light.png, page-more-dark.png: an empty pane with a filled button and a second one.
  • The 6 overlay-toast, overlay-popover and overlay-palette pictures change because they are taken over that second page.

After this merges, the kit needs a tag (workspaceui/v0.5.0, the owner's to make: make bump-workspaceui) before the apps can take it.

Risk tier

Risk tier: 2 — new API in the kit, and 1 change of behaviour: a drag of FileExplorer's tree edge now changes the tree's width. No path of .github/risk-paths.json is touched.

Docs housekeeping

  • Cross-links added in both directions (ADR ↔ design ↔ spec ↔ plan): the spec's tables and rules, the design's file table, and the plan's new Phase 2.6

Verification

  • make verify: exit 0 (the 3 modules; golangci-lint 0 issues)
  • New tests: TestNavLabelTintsItsIcon, TestEmptyStateHoldsItsActions, TestHeadingStepsByLevel, TestKeepWindowKeepsAndShowsTheWindow, TestKeepWindowLeavesASmallKeptSize, TestFileExplorerTellsItsTreesWidth, TestInspectorOpensAsKeptAndTellsItsChanges, TestInspectorKeptOpenStaysShutInANarrowWindow
  • make gallery-pictures on Xvfb's X11: 10 tours passed; 32 kept pictures, 10 changed
  • Not tested: the icon's drawn color (a headless run records none; the test reads the color the label asks for), the kept place and a maximized window (a headless run reports neither)
  • Not run: make gallery-pictures-web; Windows

…pty pane its actions

FrostMail and Frostnotes, on workspaceui/v0.4.0, each held something the
kit should (frostyard/frostmail's plan 0017, Phase 1):

- NavLabel.Tint colors a row's icon: a flag's row in its flag's color.
- EmptyState.Actions are the buttons under the hint.
- Heading(level) is the type of a document's headings.
- KeepWindow keeps the window's size and place in the app's storage.
- FileExplorer.OnTreeWidthChange tells a drag of the tree's edge, which
  now changes the tree's width.
- Inspector.Open and OnOpenChange let an app keep the right panel's
  state.

The gallery draws the flags' rows, the headings and an empty pane with
its actions.
@github-actions github-actions Bot added the level:L3 Skim label Nov 25, 2026
@frostyard-machines
frostyard-machines merged commit e4601d7 into main Nov 25, 2026
9 checks passed
@frostyard-machines
frostyard-machines deleted the feat/workspaceui-asks branch November 25, 2026 04:11
bketelsen added a commit to frostyard/frostmail that referenced this pull request Nov 25, 2026
The NSGo client takes workspaceui v0.5.0 (frostyard/frostui#79):

- A flag's row of the navigation draws its icon in its flag's color.
- The kit's KeepWindow keeps the window, in place of the client's own
  copy of the same code, under the same key.
- The To-Do Bar opens as it was left.

Plan 0017 records the kit's version, corrects its reading of PocketGo's
NSGo client, and records a second look at the client on Windows.

Closes #401
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants