Repository Public
1# Content management23Everything public comes from the `apps` table. An application document follows `src/models/app.ts` (see `content/SCHEMA.md` for a commented example).45## Editing67`/admin/apps/<slug>` has four areas: identity (name, status, platforms, version, repository), copy (tagline, summary, description in EN and FR), distribution (TestFlight and App Store links), screenshots, and a JSON editor for the structured parts (features, deep dives, specifications, privacy, FAQ, verification, release notes, minimum OS, SEO).89| Action | Effect |10|---|---|11| Save draft | Stored next to the published document. The public site does not change. |12| Preview | Opens the public page rendering the draft, for signed-in administrators only (`?preview=1`, `noindex`). |13| Save & publish | Validates required fields and replaces the published document. |14| Discard draft / Unpublish / Archive | Drop pending edits / hide the page / retire the application (also stops its synchronization). |1516Publication is refused when a tagline, summary or description is empty in either language, when "available" has no version, when a public channel has no URL, or when a TestFlight URL is not a public invitation.1718## Screenshots and icons1920Upload PNG, JPEG or WebP. Files are re-encoded, stored under a content-hash name, and listed with caption (EN/FR), device frame, appearance, hero flag and order. Icons must be square, at least 256 px. Only real captures of the application belong here.2122## Announcements2324`/admin/announcements` creates editorial entries for What's New. Release entries are generated from the release record and need no announcement. A published announcement needs a title and text in both languages.2526## Adding an application2728Dashboard → *Create draft* (slug + name), fill the document, publish. Or add `content/apps/<slug>.json` and run `pnpm seed` on the node.2930`pnpm seed:one <slug>` does the same for one application and never touches the others: it creates the application when it is absent and keeps it otherwise; `--replace` overwrites its published document with the file (refused while a draft is pending in the CMS), `--check` only validates the file. Copy the database first (`sqlite3 orix.db ".backup …"` into `~/backups/orix-spboucher-ai/`).31