dorfteich/packages/shared/src/home.ts
Claude Fable 5 9c64166b10
Some checks failed
CD / Build and push images (push) Successful in 3m50s
CD / Deploy to Test (push) Successful in 10s
CI / Lint, typecheck, test (push) Successful in 4m13s
CI / Build container images (push) Has been skipped
CD / Smoke tests against Test (push) Successful in 1m14s
CD / Promote to Int (push) Successful in 11s
CI / Auth e2e pack (push) Failing after 2m44s
CI / Import/export fidelity gate (push) Has been skipped
Editable landing page for the Site Admin
The public home page (/) now renders Markdown the Site Admin stores in
the new home.content instance setting, through the same sanitizing
pipeline as the legal pages; empty falls back to the built-in welcome
text. New public GET /home/content, an Admin → Settings editor with
live preview, and an e2e test covering default/configured/escaping/
admin-only.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EwZ4jR4KFAPvpjWevfUGX1
2026-07-12 23:50:16 +02:00

14 lines
551 B
TypeScript

/**
* Editable landing page: the public home page (`/`) renders Markdown the
* Site Admin stores in the `home.content` instance setting, through the same
* sanitizing pipeline as the legal pages. Empty = the built-in welcome text.
*/
/** What `GET /home/content` returns; the SPA's home page renders it. */
export interface HomeContentView {
/** False while the Site Admin has not provided a text — show the default. */
configured: boolean;
/** Server-rendered HTML from the stored Markdown; empty when unconfigured. */
html: string;
}