Skip to content

refactor!: remove the desktop clients - #296

Merged
bketelsen merged 3 commits into
mainfrom
feat/remove-desktop-clients
Nov 26, 2026
Merged

bketelsen merged 3 commits into
mainfrom
feat/remove-desktop-clients

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

Plan 0011, Phase 3 (ADR-0050): Frostnotes has no desktop window, so both desktop clients and everything only they used are removed.

  • Deleted (173 files, about 33,400 lines): cmd/frostnotes (MyGo), cmd/frostnotes-nsgo (NSGo, with its go.mod, go.sum and 25 kept pictures), internal/desktop/ (all 19 packages; go list -deps showed nothing outside the clients imports them), packaging/nsgo/ (the NSGo preview's Flatpak and Lodge candidate), scripts/desktop-smoke.sh, dev/screenshots/ (the vault only internal/desktop/window's screenshot test read), internal/webevidence/nsgo_integration_test.go, the NSGo web build's entry (app/nsgo.html, app/src/nsgo-lodge.ts, the nsgo Vite mode), and the window pictures in docs/images that nothing references (dark, editor, editor-dark, search, tasks, nsgo-linux). docs/images/notesctl-setup.png (README and metainfo) stays.
  • Makefile: no desktop-*, desktop-mygo-*, nsgo-*, nsgo-lodge-*, screenshots, desktop-bench or nsgo-bench; verify no longer runs nsgo-check or frostui's tests against the MyGo fork; ci is verify ui-check race.
  • CI (ci.yml): the job "Native desktop app (make desktop-smoke)" is gone, and so are Verify's live-suite steps (GTK 4/WebKit/Xvfb install, make nsgo-live, the pictures upload) and the Pango/cairo installs in Verify and the race shards. The race shards are unchanged. racegate_test.go's mutation case follows the new ci: line.
  • go.mod: drops github.com/egoist/mygo, its replace to bketelsen/mygo and the comment, github.com/frostyard/frostui, and (after go mod tidy) d2lang/mathjax-go and gen2brain/gav1d. make flatpak-sources regenerated go-sources.json. Neither file names mygo, frostui or nsgo.
  • Baseline files: .github/risk-paths.json drops the 4 deleted internal/desktop/... paths from the sanitizer glob; baseline_test.go's governed list drops internal/desktop/system/open.go; Dependabot drops the /cmd/frostnotes-nsgo gomod entry; .gitignore drops the NSGo build dirs.
  • Docs: docs/design/app.md describes the React app in lodge and the Flatpak with notesd and notesctl only. The NSGo preview, native look, live suite and native-only paragraphs are gone, and a short "The desktop clients (removed)" section keeps the old anchors that ADRs link to. overview.md, specs/ui.md (its native section says there is none), specs/render.md (note.renderMarkdown stays, unused, because protocol 1 changes are additive only), development.md, README, AGENTS.md (status, map, gates, dependencies), docs/README.md and the roadmap row are updated. Plan 0011's status: Phases 1 and 2 are built, but Phase 2's real-desktop "Done when" checks are the owner's and have not been run, so Phase 2 is not done. Phase 3 is built here. ADR bodies and older plans are unchanged.

Kept on purpose: dev/nsl/provision.sh, unchanged, because xvfb, xauth and GTK 3 serve make m4-evidence's Firefox. The Flatpak workflow, the manifest and the smoke test still check that there is no client and that --mygo is refused. deb-check's forbids for NSGo build files stay as a guard. config.PreviewAppID and its secrets option stay: removing them would touch internal/secrets (L1). docs/images/icon-128.webp (the icon for the Awesome MyGo listing) stays.

Before merge: the ruleset "required checks" requires "Native desktop app (make desktop-smoke)". This PR removes that job, so the check will never report. The owner needs to remove it from the ruleset, or the PR stays blocked.

Risk tier

Risk tier: 3. The change touches governance paths (L2), and it deletes files that the old list on main graded L1. Matched with a script against .github/risk-paths.json, both main's list and this branch's:

  • .github/risk-paths.json (L2): it only drops the 4 deleted files from the sanitizer glob. internal/render/sanitize.go and app/src/reading/sanitize.ts stay at L1. internal/workflowcheck, which fails on a glob that matches no file, passes.
  • .github/workflows/ci.yml (L2): it only removes steps and a job that ran the removed clients. Permissions, SHA pins and persist-credentials: false are unchanged, and the race shards and the "Race detector" job are unchanged.
  • Makefile (L2): it only removes client targets, the frostui test step and desktop-build from ci. verify, check, race-*, web-build, lodge-app, deb, deb-check, bump and the evidence targets are unchanged apart from 2 comments.
  • internal/workflowcheck/baseline_test.go, internal/workflowcheck/racegate_test.go (L2): they drop a deleted path from the governed list and update 1 mutation string to the new ci: line. No check is weakened.
  • Deleted internal/desktop/system/open.go, internal/desktop/media/media.go, internal/desktop/reading/view.go, internal/desktop/editor/live.go (L1 on main): this is the native app's link opening, media loading and embed drawing, and it was deleted with the app. No remaining binary imports them, and notesd's and the web app's sanitizers are unchanged.

No release workflow, Flatpak manifest, launcher, nfpm, systemd, lodge packaging, secrets, auth or dev/nsl/provision.sh file changes.

Docs housekeeping

  • Cross-links checked: the links into removed sections of app.md keep their anchors. The ADRs' link to development.md#try-the-shared-nsgo-editor now lands on the page top, because ADR bodies are not edited.
  • Conformance aliases and canonical symlinks are unchanged; AGENTS.md is edited.

Verification

  • make check (host): exit 0
  • make ui-check (nsl frostnotes): exit 0, 96 files, 821 tests
  • make web-build (nsl): exit 0; make deb: exit 0; make deb-check: exit 0 (deb-check: dist/frostyard-notesd_0.0.0-7d2e715-snapshot_amd64.deb is ok)
  • make ci (verify, ui-check, race-rest, race-sim, race-sim-checkptr): exit 0
  • make flatpak-sources run after the go.mod change
  • go vet -tags integration ./... and golangci-lint run --build-tags integration ./internal/...: clean
  • Workflows changed: only removals; every remaining action is still SHA-pinned, with permissions and persist-credentials: false unchanged
  • Not run: core's README check (check-readme.mjs, which needs node; never run on the host), the Flatpak build, and make m4-evidence.

Plan 0011, Phase 3 (ADR-0050): Frostnotes has no desktop window, so the
MyGo client (cmd/frostnotes), the NSGo client (cmd/frostnotes-nsgo, its
own module) and internal/desktop/ go, with what only they used: the NSGo
web build's entry (app/nsgo.html, app/src/nsgo-lodge.ts and its Vite
mode), the NSGo preview's Flatpak (packaging/nsgo), the desktop smoke
script, the metainfo screenshot vault (dev/screenshots), the NSGo Lodge
evidence test, and the window pictures in docs/images.

The Makefile loses the desktop-*, nsgo-*, screenshots and typing-gate
targets and the verify step that ran frostui's tests against the MyGo
fork; ci is verify, ui-check and race. CI loses the desktop job, the
live suite and the text runtime installs. go.mod drops MyGo, its fork's
replace, frostui, mathjax-go and gav1d; go-sources.json is regenerated.
The risk list, the baseline test and Dependabot drop the deleted paths
and the NSGo module. The docs describe the React app in lodge and the
Flatpak with notesd and notesctl only.

BREAKING CHANGE: the repository builds no desktop client.
@github-actions github-actions Bot added level:L1 Read every line risk:high Touches a path in .github/risk-paths.json labels Nov 26, 2026
@bketelsen
bketelsen merged commit b5c482b into main Nov 26, 2026
14 checks passed
@bketelsen
bketelsen deleted the feat/remove-desktop-clients branch November 26, 2026 11:52
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant