controlplane: a new array row loses its prefills #1540

Closed
opened 2026-10-27 13:40:48 +00:00 by sam · 0 comments
Owner

The document editor now synthesises a new array row from the schema's items (commit aa650e2c), which retired the editor's literal per-path skeletons. Consequence: 'Add row' for repository-policies yields blank fields instead of base "main" / ecosystem "go", and tool-settings loses the mcp_servers transport prefill.

The honest home for those values is the derivation, not the editor: a default annotation read in internal/app/controlplane/schema.go, the same tag path as format and doc, so the prefill has one source of truth alongside the field it belongs to.

Evidence: ui/src/settings/StructuredValueEditor.vue (before: a literal per path; after: blankFromSchema(property.items)); ui/src/settings/resource-schema.ts blankFromSchema; internal/app/controlplane/schema.go annotations.

Close reason

Obsolete: the generic document editor was removed in d2b73064; SystemReposPage and McpServerEditor set base main, ecosystem go and transport themselves.


Imported from beads archie-core-qrpx · GitHub #1118 · type bug · priority P2 · created 2026-09-21 · closed 2026-10-10

The document editor now synthesises a new array row from the schema's items (commit aa650e2c), which retired the editor's literal per-path skeletons. Consequence: 'Add row' for repository-policies yields blank fields instead of base "main" / ecosystem "go", and tool-settings loses the mcp_servers transport prefill. The honest home for those values is the derivation, not the editor: a default annotation read in internal/app/controlplane/schema.go, the same tag path as format and doc, so the prefill has one source of truth alongside the field it belongs to. Evidence: ui/src/settings/StructuredValueEditor.vue (before: a literal per path; after: blankFromSchema(property.items)); ui/src/settings/resource-schema.ts blankFromSchema; internal/app/controlplane/schema.go annotations. ### Close reason Obsolete: the generic document editor was removed in d2b73064; SystemReposPage and McpServerEditor set base main, ecosystem go and transport themselves. --- _Imported from beads `archie-core-qrpx` · GitHub #1118 · type bug · priority P2 · created 2026-09-21 · closed 2026-10-10_
sam added the mediumbug labels 2026-10-27 13:40:48 +00:00
sam self-assigned this 2026-10-27 13:40:48 +00:00
sam closed this issue 2026-10-27 13:40:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1540