feat(edit): pick a project's category in the record settings

category had no edit control anywhere: the settings popover covered featured + sections only, the badge is display-only, and a new project silently got category 'experiment' from the draft template. ProjectSettingsPanel now renders a category select whose options are the label map of ui/projects.json (the vocabulary rule 7 checks a project against) with the project's current value appended, so opening the panel never rewrites a project whose label is missing; the write goes through setStructured('projects', '[i].category', ...), the path smoke-draft check 11 already gates.

ui.edit.label added to both languages. .record-settings-field select joins the field-control rule in App.css, which also styles the timeline variant select that had none. Out of scope by design: a category with no labels - UI documents stay read-only in v4, so its labels are a repository edit.

Docs: inline-editing spec 2.4 + component inventory + progress rows 10 (the add-button fix) and 11; spec-v5 5.4 links the picker to rule 7; AGENTS.md editable-surface bullet corrected (category is a single structure value, not a chip list). Verified: pnpm build, pnpm validate:content, pnpm lint (5 pre-existing warnings only), smoke-draft 11/11.
This commit is contained in:
dong.nguyen committed 2026-10-24 13:37:42 +07:00
1 parent 8776247176
commit 1bc12d23a6
7 files changed
+34 -6

No files matched your search

+1
View File
@@ -12,6 +12,7 @@
"newTag": "mới",
"emphasis": "Nhấn mạnh",
"featured": "Nổi bật",
"category": "Danh mục",
"sections": "Các mục",
"sectionType": "Kiểu mục",
"sectionTypes": {