feat(curation): curation page of a document, creation of documents and themes #62

Merged
crapougnax merged 1 commit from feat/38-curation-page into develop 2026-11-19 19:52:46 +00:00
Owner

Refs #38 (step 4a, second part: the curation page). Closes the editing part of #52 step 3.

Curation page /t/<tenant>/document?theme=<theme>&slug=<slug> (TenantDocumentPanel)

  • Opened from each document of the Library; the Library stays the current menu entry.
  • Inputs: title (the file name never changes), type, rights status (each status with what it allows), description, keywords, other themes, one input per facet (a closed vocabulary is offered as a list, an open one as free tags), text with a plain preview.
  • Under licensed and quote-only, the page reminds that only the record and a written summary belong in the repository.
  • Provenance: producer, verifications, sources. A document written before v0.2 is shown converted, with what remains to do.
  • Curators (tenant admin, curator) save; one commit in their name, the commit hash and the facet values set aside are shown. Other members read only.
  • Without slug, the page creates a document in the theme, then takes its address.

Library

  • Titles open the curation page.
  • Curators get Nouveau document (in the theme filtered, or the first) and Nouvelle thématique.

Server

  • GET /api/tenant/documents: themes and facets of the tenant, for the page.
  • POST /api/tenant/themes { label }: a folder of content/ with its index and the root index, one commit; the folder is named after the label once and for all; 409 when it exists.

Docs: docs/MULTI-TENANCY.md sections 8 and 9 (EN, FR).

Checks: yarn test 234/234 (5 new). yarn build passes. tsc --noEmit: the same 11 errors as on develop. Not tried in a browser: it needs a database and a tenant with a repository.

🤖 Generated with Claude Code

Refs #38 (step 4a, second part: the curation page). Closes the editing part of #52 step 3. **Curation page** `/t/<tenant>/document?theme=<theme>&slug=<slug>` (`TenantDocumentPanel`) - Opened from each document of the Library; the Library stays the current menu entry. - Inputs: title (the file name never changes), type, **rights status** (each status with what it allows), description, keywords, other themes, one input per facet (a closed vocabulary is offered as a list, an open one as free tags), text with a plain preview. - Under `licensed` and `quote-only`, the page reminds that only the record and a written summary belong in the repository. - Provenance: producer, verifications, sources. A document written before v0.2 is shown converted, with what remains to do. - Curators (tenant `admin`, `curator`) save; one commit in their name, the commit hash and the facet values set aside are shown. Other members read only. - Without `slug`, the page creates a document in the theme, then takes its address. **Library** - Titles open the curation page. - Curators get *Nouveau document* (in the theme filtered, or the first) and *Nouvelle thématique*. **Server** - `GET /api/tenant/documents`: themes and facets of the tenant, for the page. - `POST /api/tenant/themes` `{ label }`: a folder of `content/` with its index and the root index, one commit; the folder is named after the label once and for all; 409 when it exists. Docs: `docs/MULTI-TENANCY.md` sections 8 and 9 (EN, FR). Checks: `yarn test` 234/234 (5 new). `yarn build` passes. `tsc --noEmit`: the same 11 errors as on `develop`. **Not tried in a browser**: it needs a database and a tenant with a repository. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(curation): curation page of a document, creation of documents and themes (#38)
All checks were successful
Build and Publish OCI Image / Build & Push ARM64 OCI Image (pull_request) Successful in 56s
9a944c1f8c
Each document of the Library opens its curation page: title, type,
rights status with what it allows, description, keywords, other themes,
facets (a closed vocabulary offered as a list), text with a preview, and
provenance (producer, verifications, sources). Curators save it as one
commit in their name; members read it. A document saved under a status
that keeps no full text reminds the curator that only the record and a
written summary belong in the repository.

Curators create documents and themes from the Library; a theme is a
folder of content/ with its index, made in one commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
crapougnax merged commit 111a3471eb into develop 2026-11-19 19:52:46 +00:00
crapougnax deleted branch feat/38-curation-page 2026-11-19 19:52:46 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
modaka/studio!62
No description provided.