mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
Edit-mode document scope comes from the page manifests (src/i18n/edit-scope.ts): an entity's structure document and its two text documents are read as one unit, the category labels only where a project renders. A route change fetches only the still-missing documents and adopts them through DraftStore.adoptBase, which refuses a document the draft has already changed. A bundle-seeded baseline is never PUT over the branch: saveDraft reads the branch first and reports a conflict. Every manifest now claims profile.name, which the footer renders on every route.
13 lines
291 B
JSON
13 lines
291 B
JSON
{
|
|
"id": "project-detail",
|
|
"route": "/projects/:id",
|
|
"content": [
|
|
{
|
|
"entity": "projects",
|
|
"fields": ["title", "summary", "role", "metrics", "technologies", "category", "sections.*"]
|
|
},
|
|
{ "entity": "profile", "fields": ["name"] }
|
|
],
|
|
"ui": ["projectDetail"]
|
|
}
|