Repository navigation
feat(workspaceui): keep the window, tint a flag's row, and give an empty pane its actions - #79
Merged
Merged
Conversation
…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.
frostyard-machines
approved these changes
Nov 25, 2026
This was referenced Nov 25, 2026
Merged
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
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
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.NavLabel.Tintcolors 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).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.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.KeepWindow(cx, minWidth, minHeight)keeps the window's size and place in the app's storage underwindow. 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.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.Inspector.OpenandOnOpenChange. A panel kept open opens only in a window of 1000 or wider, where it docks.OnOpenChangehears 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.overlay-toast,overlay-popoverandoverlay-palettepictures 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.jsonis touched.Docs housekeeping
Verification
make verify: exit 0 (the 3 modules; golangci-lint 0 issues)TestNavLabelTintsItsIcon,TestEmptyStateHoldsItsActions,TestHeadingStepsByLevel,TestKeepWindowKeepsAndShowsTheWindow,TestKeepWindowLeavesASmallKeptSize,TestFileExplorerTellsItsTreesWidth,TestInspectorOpensAsKeptAndTellsItsChanges,TestInspectorKeptOpenStaysShutInANarrowWindowmake gallery-pictureson Xvfb's X11: 10 tours passed; 32 kept pictures, 10 changedmake gallery-pictures-web; Windows