Add Space metadata model and provisional Forgejo content ADR

Introduce tenant-scoped Space/SpaceMembership with list and detail views.
Document markdown-in-Forgejo as content SoR (ADR-0002). Run migrations on
container start so app.coulomb.social picks up the new tables.
This commit is contained in:
tegwick 2026-08-12 01:30:05 +02:00
parent bb6bc6093a
commit be32432d39
22 changed files with 697 additions and 12 deletions

View file

@ -75,7 +75,7 @@ dump removed from home body. Deploy with next image for app.coulomb.social.
```task
id: CSOC-WP-0004-T02
status: todo
status: done
priority: high
state_hub_task_id: "5fd91718-151d-4216-acf2-2104a45cddf9"
```
@ -92,11 +92,14 @@ Migrations + admin + minimal list/detail routes behind auth.
**Done when:** authenticated user can list zero-or-more spaces from DB; tests cover
tenant isolation basics.
2026-08-12: `spaces` app — `Space` + `SpaceMembership`, tenant-scoped list on
`/app/`, detail `/app/spaces/<slug>/`, admin seed path. Tests cover isolation.
## T03 — Content model ADR: markdown + Forgejo
```task
id: CSOC-WP-0004-T03
status: todo
status: done
priority: high
state_hub_task_id: "628243e0-732f-42c1-b4e3-9b8cd82ea530"
```
@ -113,6 +116,9 @@ Write `docs/adr/ADR-0002-space-content-forgejo-markdown.md` deciding:
**Done when:** ADR accepted (or explicitly provisional with open questions listed)
and linked from INTENT/SCOPE.
2026-08-12: Provisional ADR-0002 committed; linked from INTENT/SCOPE. One repo
per space, `pages/` root, Forgejo API read for T04; write-in-Forgejo for T05.
## T04 — Read path: render space markdown from bound repo
```task
@ -170,6 +176,7 @@ names, smoke checklist on app.coulomb.social. Update `docs/deploy.md` and
id: CSOC-WP-0004-T07
status: done
priority: high
state_hub_task_id: "8487443a-dfd2-4220-a90b-bca2b5b04c4c"
```
Keep the current principal card fields available as **detail information**