Skip to content

feat(agent-config): save preview with diff rows and safety tags [13/21] - #334

Open
gusfcarvalho wants to merge 1 commit into
agent-config/12-field-editorsfrom
agent-config/13-save-preview
Open

gusfcarvalho wants to merge 1 commit into
agent-config/12-field-editorsfrom
agent-config/13-save-preview

Conversation

@gusfcarvalho

Copy link
Copy Markdown
Contributor

Part 13 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 reviewable on its own. Nothing is reachable in the app until layer 20 wires the Configuration tab in.

What

The save preview: review rows, safety tags, diff rows and SavePreviewPanel (YAML and merge diff of the overlay against the effective config).

Tests

SavePreviewPanel.spec.ts.

🤖 Generated with Claude Code

Copilot AI balanced review requested due to automatic review settings October 5, 2026 10:52
@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 064be57c-2a8a-45c1-90f1-21aa0aa6c576
📥 Commits

Reviewing files that changed from the base of the PR and between ea13bf8 and d1578a9.

📒 Files selected for processing (4)
  • src/components/agents/config/__tests__/SavePreviewPanel.spec.ts
  • src/components/agents/config/editor/DiffRows.vue
  • src/components/agents/config/editor/SafetyTag.vue
  • src/components/agents/config/editor/SavePreviewPanel.vue
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

One or more issues must be addressed before approval.

Review effort: Balanced
Findings: 4 Medium severity

Open (4)
What changed in this PR

Adds reusable save-preview components for agent configuration overlays, ahead of later Configuration-tab integration.

Changes:

  • Adds per-instance diffs, validation feedback, and save controls.
  • Introduces diff rows and safety badges.
  • Adds save-preview component tests.
File Description
src/​components/​agents/​config/​editor/​SavePreviewPanel.vue Updated as part of this pull request.
src/​components/​agents/​config/​editor/​SafetyTag.vue Updated as part of this pull request.
src/​components/​agents/​config/​editor/​DiffRows.vue Updated as part of this pull request.
src/​components/​agents/​config/​__tests__/​SavePreviewPanel.spec.ts Updated as part of this pull request.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

</tr>
<tr
v-for="row in rows"
:key="row.path"
Comment on lines +61 to +62
const t = truncate(p.value);
const full = truncate(p.value, Number.MAX_SAFE_INTEGER).text;
Comment on lines +342 to +345
const topErrors = computed<FieldError[]>(() => [
...props.preview.overlayErrors,
...(props.saveErrors?.overlay ?? []),
]);
Comment on lines +405 to +406
diffOriginal.value = typeof row.before === 'string' ? row.before : '';
diffModified.value = typeof row.after === 'string' ? row.after : '';
Layer 13 of 21 in the stacked split of #318.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gusfcarvalho
gusfcarvalho force-pushed the agent-config/13-save-preview branch from 961f200 to d1578a9 Compare October 5, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants