mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
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:
1 parent
8776247176
commit
1bc12d23a6
7 files changed
+34
-6
No files matched your search
+2
-1
@@ -2484,7 +2484,8 @@
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
.record-settings-field input {
|
||||
.record-settings-field input,
|
||||
.record-settings-field select {
|
||||
background: var(--bg-surface);
|
||||
color: inherit;
|
||||
border: 1px solid var(--border);
|
||||
|
||||
Reference in new issue
Block a user