Repository navigation
feat(lodge): serve the React app again - #293
Merged
Merged
Conversation
Plan 0011, Phase 1 (ADR-0050): make web-build builds the React app (app/) for /app/notes/ again, and make lodge-app lays it out with its manifest, so make deb, make lodge-package, the release and flatpak.yml's Lodge archive all hold it. legacy-lodge-app is folded into web-build; make m4-evidence and porter-evidence run lodge-app's tree, or with M4_NOTES_WEB the tree a .deb installs. The build still writes revision.txt, which flatpak.yml checks in its Lodge archive. deb-check.py gains --forbid GLOB, and make deb-check forbids the NSGo web build's nsgo.json, any .wasm module and Go's wasm_exec loader; a test holds the Makefile to the arguments the tests check. nsgo-lodge-app and the NSGo client still build, for a Lodge test install only; packaging/nsgo/build-rc.sh's Lodge archive is lodge-app's. dev/nsl/provision.sh installs libgtk-3-0t64: since the Tauri shell went (c1d950c), no package brought in GTK 3, and on a freshly provisioned machine Firefox ESR could not start, so make m4-evidence failed with "libgtk-3.so.0: cannot open shared object file".
frostyard-machines
approved these changes
Nov 26, 2026
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
Phase 1 of plan 0011, "Lodge serves the React app" (ADR-0050, both in #292, which is not merged yet: the links to
docs/adr/0050-frostnotes-has-no-desktop-window.mdin this PR resolve once #292 lands, so merge #292 first).make web-buildbuilds the React app (app/,vite build --mode web, base/app/notes/) intobuild/webagain, withicon.svgandrevision.txt.make lodge-appdepends on it and lays outbuild/lodge/apps/noteswithapp.jsonat the build's version. This is the pre-Run the shared NSGo editor in an authenticated Lodge session #267 shape.legacy-lodge-appis folded intoweb-buildand removed.make deb,make lodge-packageandstage.shtakebuild/webas before.release.ymlrunsmake web-build.flatpak.yml's web job runsmake lodge-app. All of them now hold the React app.nsgo-lodge-appandnsgo-lodge-evidenceare unchanged and still build intobuild/nsgo-lodge, but nothing shipped uses them.packaging/nsgo/build-rc.sh's Lodge archive now comes frommake lodge-app. Phase 3 removes the NSGo build.packaging/deb-check.pygets--forbid GLOB(fnmatch on each member's install path).make deb-checknow requiresweb/index.html,web/icon.svgandweb/revision.txt, where it used to requireweb/nsgo.json. It forbidsweb/nsgo.json,*.wasmand*/wasm_exec.*.internal/packagecheck/debcheck_test.gomirrors those arguments. It adds 3 failing cases:nsgo.json, a.wasmmodule and Go'swasm_execloader. A new test,TestMakeDebCheckPassesTheseArguments, fails when the Makefile'sdeb-checkrecipe stops passing any of them. I broke 1 argument by hand to see it fail.make m4-evidenceandmake porter-evidencerunmake lodge-app's tree in place oflegacy-lodge-app's. WithM4_NOTES_WEB=...they run the tree a.debinstalls instead.setup-gofromcmd/frostnotes-nsgo/go.modandNSGO_VERSION. Its archive still carriesnotes/web/revision.txt, which the export job checks againstGITHUB_SHA.dev/nsl/provision.shinstallslibgtk-3-0t64. Since the Tauri shell went (c1d950c), no package pulled in GTK 3. On a freshly provisioned machine Firefox ESR failed to start ("libgtk-3.so.0: cannot open shared object file"), andmake m4-evidencefailed with it.docs/design/app.md(In a browser, the Lodge paragraph of the NSGo section, the live suite's web target),docs/development.mdand the README now say that Lodge serves the React app. Plan 0011's status is not edited.Contract check. Nothing in the API or Lodge contract changed after the React app last served Lodge on 2026-11-23:
schema/rpc,api/zz_generated.go,app/src/rpc/gen/api.ts,internal/lodgeapp,packaging/lodgeandapp/package.jsonhave no commits after Run the shared NSGo editor in an authenticated Lodge session #267. The last schema change is 745a40b, 2026-11-16.connectLodgeinapp/src/lodge/main.tsx) and follows the shell's theme (Bridge.tsx). It usesrpc.hello'scontentKeyfor content URLs.client/v0.3.2.Risk tier
Risk tier: 3 — L1 and L2 paths, matched by script against
.github/risk-paths.json(schema v2, braces and**expanded):packaging/deb-check.pypackaging/{nfpm.yaml,deb-check.py})--forbidoption that can only add errors. Every existing rule is unchanged, and its unit tests pass, with 3 new failing cases..github/workflows/release.yml{release,flatpak}.yml), L2 (workflows/**)make web-buildloses theNSGO_VERSION=argument, which the React build does not read. No permission, trigger, action pin or attestation changes..github/workflows/flatpak.ymlwebjob changes: its name, a removedsetup-gostep and theNSGO_VERSIONargument. It still buildsmake lodge-appinto the samefrostnotes-lodge.tar.gz, withnotes/web/revision.txtchecked by the export job. Permissions, the publish job and the pins are unchanged.Makefileweb-build,lodge-app,deb-check,m4-evidenceandporter-evidencechange as described above.verify,check,ci, the race gate andbumpare untouched.dev/nsl/provision.shlibgtk-3-0t64) added to the existingapt-get installfrom the distribution's archive. No new download, pin or checksum.Default L3:
README.md,docs/design/app.md,docs/development.md,internal/packagecheck/debcheck_test.go,packaging/nsgo/build-rc.sh.Docs housekeeping
design/app.mdlinks ADR-0050 and plan 0011, and docs: Frostnotes has no desktop window (ADR-0050, plan 0011) #292's ADR-0050 already linksdesign/app.md.Verification
Run on
ba57375's tree before committing; the commit holds the same files.make checkgreen on the host (exit 0;internal/packagecheck,repocheckandworkflowcheckok).make ui-checkgreen in nsl (exit 0; 96 files, 821 tests).make lodge-appin nsl (exit 0).build/lodge/apps/notes/webholdsindex.html(withid="root"),assets/,icon.svgandrevision.txt, and nonsgo.jsonor.wasmfile.make deb(exit 0). Itsdeb-checkprinted "is ok" fordist/frostyard-notesd_0.0.0-4b66bad-snapshot_amd64.deb. Extracted withdpkg-deb -x, the package has 0 files named*.wasmornsgo*.make m4-evidence M4_NOTES_WEB=build/deb-x/usr/share/lodge/apps/notes(exit 0), on the tree the.debinstalls. It used lodge's development build ate76a17cand Firefox ESR 153.4.0esr through geckodriver 0.37.1 under Xvfb, in a newly provisionedfrostnotesnsl machine. Results:TestIWebAppInLodge/desktop: PASS, "notes' frame is 1232 wide", "the image went in by a drop".TestIWebAppInLodge/phone: PASS, "notes' frame is 390 wide", "the image went in by a drop".TestIRenderedNotesRunNoScript: PASS, "no script ran: live preview, reading view, the links, and evil.svg opened as a document".TestIPorterThroughLodge/listenerand/agent-socket: PASS.# vX.Y.Z, and checkout keepspersist-credentials: false. The web job has nopermissionsblock of its own, as before; the top level iscontents: read.make nsgo-lodge-appitself (onlymake -n), CI's Flatpak jobs, and core'scheck-readme.mjson the one-line README change (it needs node, which never runs on the host).