Repository navigation
refactor!: remove the desktop clients - #296
Merged
Merged
Conversation
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.
6 tasks done
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
Plan 0011, Phase 3 (ADR-0050): Frostnotes has no desktop window, so both desktop clients and everything only they used are removed.
cmd/frostnotes(MyGo),cmd/frostnotes-nsgo(NSGo, with itsgo.mod,go.sumand 25 kept pictures),internal/desktop/(all 19 packages;go list -depsshowed nothing outside the clients imports them),packaging/nsgo/(the NSGo preview's Flatpak and Lodge candidate),scripts/desktop-smoke.sh,dev/screenshots/(the vault onlyinternal/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, thensgoVite mode), and the window pictures indocs/imagesthat nothing references (dark,editor,editor-dark,search,tasks,nsgo-linux).docs/images/notesctl-setup.png(README and metainfo) stays.desktop-*,desktop-mygo-*,nsgo-*,nsgo-lodge-*,screenshots,desktop-benchornsgo-bench;verifyno longer runsnsgo-checkor frostui's tests against the MyGo fork;ciisverify ui-check race.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 newci:line.github.com/egoist/mygo, itsreplacetobketelsen/mygoand the comment,github.com/frostyard/frostui, and (aftergo mod tidy)d2lang/mathjax-goandgen2brain/gav1d.make flatpak-sourcesregeneratedgo-sources.json. Neither file names mygo, frostui or nsgo..github/risk-paths.jsondrops the 4 deletedinternal/desktop/...paths from the sanitizer glob;baseline_test.go's governed list dropsinternal/desktop/system/open.go; Dependabot drops the/cmd/frostnotes-nsgogomod entry;.gitignoredrops the NSGo build dirs.docs/design/app.mddescribes the React app in lodge and the Flatpak with notesd andnotesctlonly. 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.renderMarkdownstays, unused, because protocol 1 changes are additive only),development.md, README, AGENTS.md (status, map, gates, dependencies),docs/README.mdand 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 servemake m4-evidence's Firefox. The Flatpak workflow, the manifest and the smoke test still check that there is no client and that--mygois refused.deb-check's forbids for NSGo build files stay as a guard.config.PreviewAppIDand its secrets option stay: removing them would touchinternal/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.goandapp/src/reading/sanitize.tsstay 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 andpersist-credentials: falseare unchanged, and the race shards and the "Race detector" job are unchanged.Makefile(L2): it only removes client targets, the frostui test step anddesktop-buildfromci.verify,check,race-*,web-build,lodge-app,deb,deb-check,bumpand 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 newci:line. No check is weakened.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.shfile changes.Docs housekeeping
app.mdkeep their anchors. The ADRs' link todevelopment.md#try-the-shared-nsgo-editornow lands on the page top, because ADR bodies are not edited.AGENTS.mdis edited.Verification
make check(host): exit 0make ui-check(nslfrostnotes): exit 0, 96 files, 821 testsmake 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 0make flatpak-sourcesrun after thego.modchangego vet -tags integration ./...andgolangci-lint run --build-tags integration ./internal/...: cleanpermissionsandpersist-credentials: falseunchangedcheck-readme.mjs, which needs node; never run on the host), the Flatpak build, andmake m4-evidence.