SPB Git

Repository Public

cms.md 2.2 KB

# Content management

Everything public comes from the apps table. An application document follows src/models/app.ts (see content/SCHEMA.md for a commented example).

# Editing

/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).

Action Effect
Save draft Stored next to the published document. The public site does not change.
Preview Opens the public page rendering the draft, for signed-in administrators only (?preview=1, noindex).
Save & publish Validates required fields and replaces the published document.
Discard draft / Unpublish / Archive Drop pending edits / hide the page / retire the application (also stops its synchronization).

Publication 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.

# Screenshots and icons

Upload 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.

# Announcements

/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.

# Adding an application

Dashboard → Create draft (slug + name), fill the document, publish. Or add content/apps/<slug>.json and run pnpm seed on the node.

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/).

Files main
Menu

Theme