Community downloads page: show the matou-app version it was built from (small, footer) #151

Closed
opened 2026-09-25 07:42:55 +00:00 by ben · 4 comments
Owner

Ben, 2026-09-25: show the matou-app version on a community's Coa downloads page, somewhere small.

Today the page (templates/src/community-page.ts) shows Build <n> under each installer button (buildLine) but never the app version it was built from. The version only appears inside the installer filenames (whakatohea-demo-0.7.6-linux.AppImage). Coa doesn't record it: BuildCompleteSchema (packages/schema/src/build-complete.ts) has no version field, and neither does the status.

The change

  1. Schema. Add appVersion to the success branch of BuildCompleteSchema: an optional semver string such as 0.7.6. The schema is .strict(), so this must be deployed on Coa before coa-builds starts sending the field, or every callback is rejected. Record appVersion on the community status next to build.
  2. Callback, in coa-builds. stage_callback success in scripts/forgejo/coa-build.sh adds appVersion from $WORK/version, which stage_prepare already writes from matou-app's frontend/package.json. Ship it in a follow-up coa-builds commit once step 1 is live on coa.matou.nz.
  3. Page. Small, muted text, for example in the footer: Built with Matou · app v0.7.6 · build 3. The installer buttons stay as they are. When a status has no appVersion (builds from before this change), leave the version out and don't guess it from a filename.

Acceptance

  • A success callback with appVersion: "0.7.6" is accepted and stored, and one without it is still accepted.
  • The community page for a ready status with appVersion shows v0.7.6 in small text. Without it, no version text renders. There's a template test for each case.
  • coa-builds sends appVersion only after Coa accepts it, and the next real build of whakatohea-demo shows its version on https://coa.matou.nz/c/whakatohea-demo/.
<!-- origin: session --> **Ben, 2026-09-25:** show the matou-app version on a community's Coa downloads page, somewhere small. **Today** the page (`templates/src/community-page.ts`) shows `Build <n>` under each installer button (`buildLine`) but never the app version it was built from. The version only appears inside the installer filenames (`whakatohea-demo-0.7.6-linux.AppImage`). Coa doesn't record it: `BuildCompleteSchema` (`packages/schema/src/build-complete.ts`) has no version field, and neither does the status. **The change** 1. **Schema.** Add `appVersion` to the success branch of `BuildCompleteSchema`: an optional semver string such as `0.7.6`. The schema is `.strict()`, so this must be **deployed on Coa before** coa-builds starts sending the field, or every callback is rejected. Record `appVersion` on the community status next to `build`. 2. **Callback, in coa-builds.** `stage_callback success` in `scripts/forgejo/coa-build.sh` adds `appVersion` from `$WORK/version`, which `stage_prepare` already writes from matou-app's `frontend/package.json`. Ship it in a follow-up coa-builds commit once step 1 is live on coa.matou.nz. 3. **Page.** Small, muted text, for example in the footer: `Built with Matou · app v0.7.6 · build 3`. The installer buttons stay as they are. When a status has no `appVersion` (builds from before this change), leave the version out and don't guess it from a filename. ## Acceptance - A success callback with `appVersion: "0.7.6"` is accepted and stored, and one without it is still accepted. - The community page for a ready status with `appVersion` shows `v0.7.6` in small text. Without it, no version text renders. There's a template test for each case. - coa-builds sends `appVersion` only after Coa accepts it, and the next real build of `whakatohea-demo` shows its version on https://coa.matou.nz/c/whakatohea-demo/.

swarm-claim host=bens-mac-04 run=11549
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=11549 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #151 — status success

✅ close-report gates passed — every claim verified against main; PR #153 (#153) was already merged (a reconcile pass landed it before this close-report ran) and the merge closed this issue via closes #151.

envelope
{
  "issue": 151,
  "status": "success",
  "commits": [
    "83a9612"
  ],
  "changed_files": [
    "packages/schema/src/build-complete.ts",
    "packages/schema/src/status.ts",
    "packages/schema/test/phase3.test.ts",
    "server/src/routes/build-complete.ts",
    "server/test/build-complete.test.ts",
    "templates/src/community-page.ts",
    "templates/test/community-page.test.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "CI=true pnpm -r typecheck",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm -r test",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Schema: appVersion added to BuildCompleteSchema success branch (optional semver), recorded on status": "packages/schema/src/build-complete.ts adds optional APP_VERSION_RE-validated appVersion to the success object; packages/schema/src/status.ts adds appVersion to StatusSchema; server/src/routes/build-complete.ts records body.appVersion on the ready status",
    "A success callback with appVersion:\"0.7.6\" is accepted and stored, and one without it is still accepted": "packages/schema/test/phase3.test.ts BuildCompleteSchema/StatusSchema cases (with/without/non-semver); server/test/build-complete.test.ts 'records the built-from appVersion' stores 0.7.6 and 'success -> ready' asserts appVersion undefined when omitted",
    "The community page for a ready status with appVersion shows v0.7.6 in small text; without it, no version text renders; a template test for each case": "templates/src/community-page.ts footer renders `Built with Matou · app v<x> · <email>` when status.appVersion set, nothing otherwise; templates/test/community-page.test.ts adds the with-version and no-version cases",
    "Version is not guessed from a filename when absent": "versionNote in templates/src/community-page.ts derives only from status.appVersion; no filename parsing",
    "coa-builds sends appVersion only after Coa accepts it": "out of this repo's scope — flagged as a follow-up in STATUS.md and the commit message; the coa-builds coa-build.sh change ships once this schema is deployed on coa.matou.nz"
  },
  "summary": "Added an optional semver appVersion to BuildCompleteSchema/StatusSchema, recorded it on the ready status, and rendered it small in the community-page footer when present.",
  "reason": "Implements #151 acceptance in the schema + server + templates seam; the coa-builds callback change is a documented follow-up that must ship after this deploys.",
  "blockers": []
}
**close-report** for #151 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; PR #153 (https://git.matou.nz/Matou/coa/pulls/153) was already merged (a reconcile pass landed it before this close-report ran) and the merge closed this issue via `closes #151`. <details><summary>envelope</summary> ```json { "issue": 151, "status": "success", "commits": [ "83a9612" ], "changed_files": [ "packages/schema/src/build-complete.ts", "packages/schema/src/status.ts", "packages/schema/test/phase3.test.ts", "server/src/routes/build-complete.ts", "server/test/build-complete.test.ts", "templates/src/community-page.ts", "templates/test/community-page.test.ts", "STATUS.md" ], "tests": [ { "command": "CI=true pnpm -r typecheck", "exit_code": 0 }, { "command": "CI=true pnpm -r test", "exit_code": 0 } ], "criteria": { "Schema: appVersion added to BuildCompleteSchema success branch (optional semver), recorded on status": "packages/schema/src/build-complete.ts adds optional APP_VERSION_RE-validated appVersion to the success object; packages/schema/src/status.ts adds appVersion to StatusSchema; server/src/routes/build-complete.ts records body.appVersion on the ready status", "A success callback with appVersion:\"0.7.6\" is accepted and stored, and one without it is still accepted": "packages/schema/test/phase3.test.ts BuildCompleteSchema/StatusSchema cases (with/without/non-semver); server/test/build-complete.test.ts 'records the built-from appVersion' stores 0.7.6 and 'success -> ready' asserts appVersion undefined when omitted", "The community page for a ready status with appVersion shows v0.7.6 in small text; without it, no version text renders; a template test for each case": "templates/src/community-page.ts footer renders `Built with Matou · app v<x> · <email>` when status.appVersion set, nothing otherwise; templates/test/community-page.test.ts adds the with-version and no-version cases", "Version is not guessed from a filename when absent": "versionNote in templates/src/community-page.ts derives only from status.appVersion; no filename parsing", "coa-builds sends appVersion only after Coa accepts it": "out of this repo's scope — flagged as a follow-up in STATUS.md and the commit message; the coa-builds coa-build.sh change ships once this schema is deployed on coa.matou.nz" }, "summary": "Added an optional semver appVersion to BuildCompleteSchema/StatusSchema, recorded it on the ready status, and rendered it small in the community-page footer when present.", "reason": "Implements #151 acceptance in the schema + server + templates seam; the coa-builds callback change is a documented follow-up that must ship after this deploys.", "blockers": [] } ``` </details>

Idle landing sweep (#114): this agent PR is green but no longer mergeable — its branch drifted off main. Closing PR #154 so #151 re-arms for a fresh worker on current main.

Idle landing sweep (#114): this agent PR is green but no longer mergeable — its branch drifted off main. Closing PR #154 so #151 re-arms for a fresh worker on current main.

Idle landing sweep (#114): this agent PR is green but no longer mergeable — its branch drifted off main. Closing PR #154 so #151 re-arms for a fresh worker on current main.

Idle landing sweep (#114): this agent PR is green but no longer mergeable — its branch drifted off main. Closing PR #154 so #151 re-arms for a fresh worker on current main.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/coa#151
No description provided.