Repository navigation
fix(ui): show structured metadata lists without flattening their records - #969
Conversation
Show structured custom lists as read-only JSON so editing another field cannot obscure records or invite accidental replacement with strings.
Keep the save and removal coverage required for structured lists while avoiding repeated checks of values already verified after reopening.
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Thanks @salmonumbrella. This does what the description says: on main a list of mappings renders as an empty input and typing replaces the records; with this change it uses the read-only JSON view, and scalar lists stay editable. I ran the new test against main (fails) and against this branch (passes). One thing before we merge: please tick "reviewed every line" yourself. Optional, not blocking: the four |
Type
proposals/only — see CONTRIBUTING.md)approvedlabel)Summary
In the Fields view, lists containing mappings or nested lists (for example
metadata.sources,metadata.verified, or anx-extension with a mixed list) were shown as an empty comma-separated input, and typing replaced the records with strings.Now custom root and
metadatavalues that are mappings, or lists containing mappings or nested lists, use the existing read-only JSON view and labels. Records survive unrelated edits, save and reopen. The row's remove control still deletes them. Scalar lists such asmetadata.targetsstay editable.wiki/frontend.mddocuments the rule.Testing
FrontmatterEditorregression test fails on the base branch and passes with this change.Linked Issue
Partial context for #894 and #637; does not close either.
Checklist
make check) — for code changes — focused checks only (above); fullmake checknot runAI-assisted implementation and review.
Refs #894
Refs #637