Repository navigation
feat(agent-config): structured policy_data tree editor [16/21] - #337
gusfcarvalho merged 4 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (6)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change adds a policy-data section with structured and raw editing. Nested nodes support pointer-based edits, removals, and additions. Validation handles parsed values and raw JSON. Tests cover instance-difference hints and rendering. ChangesPolicy Data Editor
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant Editor
participant PolicyDataSection
participant PolicyDataTree
participant PolicyDataNode
participant PolicyDataTreeContext
PolicyDataSection->>PolicyDataTree: Render data and pointer
PolicyDataTree->>PolicyDataNode: Render nested value
Editor->>PolicyDataNode: Submit value edit
PolicyDataNode->>PolicyDataTree: Emit pointer and value
PolicyDataTree->>PolicyDataTreeContext: Forward pointer and value
Merge Risk: ⚪ Minimal · up to No actionable issue was established in this change; it is mergeable after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. (4 skipped: 4 unsupported.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit taps the fields with care, Comment |
e9eeeb8 to
3e293b4
Compare
3e293b4 to
7af204d
Compare
7af204d to
75cd86e
Compare
3f32422 to
afc4460
Compare
afc4460 to
98db645
Compare
98db645 to
02be378
Compare
Layer 16 of 21 in the stacked split of #318. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e as typed JSON.parse reads 1e999 as Infinity, which would be saved as null (an RFC 7396 delete of the key), and rounds integers past 2^53; the raw view now shows an error instead of applying them, like the structured add form. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A policy_data list is written whole (RFC 7396), so an edit gives every instance the same list. Like the other editors (FieldHints), an editable list whose value differs between the instances' files now says "differs across instances" (useEditor().differsAcrossInstances, through the tree context). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The "differs across instances" span sat between the container branch and its v-else-if chain, starting a new chain: every container node that did not differ also rendered the empty scalar value span. The container branch is now one template holding the summary and the hint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
02be378 to
4cc87d3
Compare
Part 16 of 21 of the stacked split of #318 (agent remote configuration). Every layer adds the final version of its files from #318, and only imports from layers below it, so each layer passes
make reviewableon its own. Nothing is reachable in the app until layer 20 wires the Configuration tab in.What
The structured
policy_datatree editor: section, tree, node and add-item form.Tests
Covered by
PolicyDataSection.spec.tsin the next layer, since that spec mounts it inside the plugin summary card.🤖 Generated with Claude Code
Summary by CodeRabbit