Skip to content

feat: hold the NSGo kit, workspaceui, as a second module - #70

Merged
frostyard-machines merged 1 commit into
mainfrom
feat/workspaceui-module
Nov 24, 2026
Merged

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

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

Adds workspaceui/, a second Go module (github.com/frostyard/frostui/workspaceui): the kit that FrostMail, Frostnotes and PocketGo build their NSGo windows from. It moves here from frostyard/pocketgo (desktop/workspaceui/v0.1.0-rc.1, commit 1ad8d75), unchanged but for its module path. The package keeps its name, so each app's switch is an import-path change. The files' history stays in pocketgo, since this repository merges by squash.

This is Phase 0 of the kit's plan, the kit's share of frostyard/frostmail's plan 0016 (a shared look for the NSGo apps). No part of the look is built here.

  • The module. The 6 files, plus headless tests of the shell (the navigation's widths and their clamp, navigation, the compact layout) and a guard that holds the module to the standard library and NSGo.
  • The gates. The Makefile's MODULES lists the root and workspaceui, and every step of make verify and make ci (tidy, vet, lint, tests, js/wasm tests, race, cross-build) runs in each. The workflow file is unchanged: its jobs call make ci and make cross.
  • The tags. make bump-workspaceui tags workspaceui/vX.Y.Z from the Conventional Commits that touched workspaceui/. make bump now passes --pattern 'v*'.
  • The docs. ADR-0014 (the module, its import rule, its tags, and the look the owner chose on 2026-11-24), a spec of what the module draws today, a design doc and the plan; AGENTS.md, the README, Dependabot and the risk paths name the second module.

After the merge, the maintainer tags the module: make bump-workspaceui VERSION=workspaceui/v0.1.0. The first tag is named because svu has no earlier tag to count from. The three apps then take the new import path.

Risk tier

Risk tier: 3 — the change matches L1 and L2 paths.

Matched paths, and why each change is safe:

  • .svu.yml (L1): tag.pattern goes from "" to "v*", with a comment. The root's tags all match v*, so the root's next version is computed from the same tags as before. The installed svu (v1.12.0) does not read this file; the Makefile passes the same pattern as a flag.
  • Makefile (L2):
    • Each go and lint step is wrapped in a loop over MODULES := . workspaceui. For the root the commands are the ones that ran before.
    • bump gains --pattern 'v*' and stops if svu fails. Without the pattern, svu fails once a workspaceui/v* tag exists (could not get current version from tag: 'workspaceui/v0.1.0': Invalid Semantic Version).
    • bump-workspaceui is new. It refuses a version that is not workspaceui/vMAJOR.MINOR.PATCH and a tag that exists. Agents never run either target.
    • Both targets were tried in a throwaway repository with a throwaway remote: the first tag named, the next from svu (workspaceui/v0.2.0), a malformed and a repeated version refused, and the root's bump giving v0.11.0 beside the kit's tags.
  • .github/risk-paths.json (L2): 3 entries added (workspaceui/go.mod, workspaceui/go.sum, workspaceui/imports_test.go), all L2. No entry is removed or lowered.
  • workspaceui/go.mod, workspaceui/go.sum (L2, new): the module requires NSGo v0.3.0 directly and nothing else; the files are pocketgo's at the tag, with the module path changed. The root's go.mod and go.sum are unchanged, so no app that imports the MyGo kit takes a new requirement.
  • workspaceui/imports_test.go (L2, new): the guard of the module's imports and its one direct requirement.

A consequence to know (ADR-0014): a commit under workspaceui/ also counts toward the root's next version, since .svu.yml reads every directory.

Docs housekeeping

  • New docs started from their category's TEMPLATE.md
  • Every new doc indexed in docs/README.md
  • Cross-links added in both directions (ADR ↔ design ↔ spec ↔ plan)
  • New significant decision recorded as an ADR first, in this PR
  • New or edited ADRs are fact-only: context, decision and consequences
  • Conformance aliases and canonical symlinks are unchanged; canonical targets are edited instead

Verification

  • make verify green
  • make ci BASE=origin/main green on the host (2026-11-24): both modules pass the tests, the js/wasm tests, the race detector and the cross-build of all 7 targets; it ends ==> ci passed.
  • The spec says which of its measures a test holds: the navigation's widths and the compact layout. No test holds the others yet.
  • Not checked here: a real window. The module's code is unchanged from the version the three apps run today, and FrostMail's NSGo client was built against the module at its new path, native and as js/wasm, with only the import path changed.

workspaceui is the kit that frostyard's NSGo apps build their windows
from: a shell with a navigation sidebar and side panels, a file explorer,
a conversation view, a notice and a few surfaces. It moves here from
frostyard/pocketgo (desktop/workspaceui/v0.1.0-rc.1, commit 1ad8d75),
unchanged but for its module path, github.com/frostyard/frostui/workspaceui.
The files' history stays in pocketgo.

The module imports the standard library and NSGo only, held by a test in
it, and shares no code with the MyGo kit at the root. Every gate of make
verify and make ci runs in both modules. The module has a tag series of
its own (workspaceui/vX.Y.Z, make bump-workspaceui), and make bump now
reads only v* tags: svu stops on a workspaceui/v* tag otherwise.

ADR-0014 records the module, its import rule, its tags and the look the
owner chose for it on 2026-11-24. The spec holds what the module draws
today, and the plan orders the themes and the parts.
@github-actions github-actions Bot added level:L1 Read every line risk:high Touches a path in .github/risk-paths.json (core ADR-0068) labels Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L1 Read every line 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.

2 participants