Skip to content

feat(agent-config): inline scalar and map field editing [15/21] - #336

Open
gusfcarvalho wants to merge 1 commit into
agent-config/14-workspace-dialogsfrom
agent-config/15-inline-editing
Open

gusfcarvalho wants to merge 1 commit into
agent-config/14-workspace-dialogsfrom
agent-config/15-inline-editing

Conversation

@gusfcarvalho

Copy link
Copy Markdown
Contributor

Part 15 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

Inline editing in the Effective view: scalar editor, editable field wrapper, map field editor, access/pending indicators, empty/null value helpers, and the config flags summary.

Tests

emptyValue.spec.ts; inline editing end to end is covered by InlineEditing.spec.ts in layer 21.

🤖 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

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: a18cfc52-2e7f-40c4-bc27-fc6581ea9483
  • 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

Map additions bypass per-key access controls, and empty-value handling can use an incomplete set of instance bases.

Review effort: Balanced
Findings: 1 High severity · 2 Medium severity

Open (3)
What changed in this PR

Adds inline agent-configuration editing components for the future Effective view.

Changes:

  • Adds scalar/map editors with access, pending, and undo indicators.
  • Adds empty/null handling and agent flag summaries.
  • Tests empty string map behavior.
File Description
scalar.ts Defines scalar editor kinds.
PendingPill.vue Displays pending changes and undo.
nullKeys.ts Detects invalid null object values.
MapFieldEditor.vue Edits plugin config and label maps.
InlineScalarEditor.vue Edits scalar configuration values.
emptyValue.ts Implements empty string inheritance behavior.
EditableField.vue Wraps fields with editing and access controls.
AccessIcon.vue Displays field-access indicators.
emptyValue.spec.ts Tests empty-value behavior.
ConfigFlagsSummary.vue Summarizes editable agent flags.

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

:warn-keys="field === 'config'"
:test-id="`${field}-${plugin}`"
@set="setValue"
@add="(k, v) => draft.set(p(k), v)"
Comment on lines +124 to +126
const bases = [ws.placeholderBase.value, ...ws.bases.value];
/** Some instance's file defines this key: emptying it inherits the file value. */
const inAnyBase = definedInAnyBase(bases, props.ptr);
Comment on lines +80 to +82
function setValue(k: string, v: string) {
setStringKey(draft, [ctx.placeholderBase.value, ...ctx.bases.value], p(k), v);
}
Layer 15 of 21 in the stacked split of #318.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ccf-lisa
ccf-lisa Bot force-pushed the agent-config/15-inline-editing branch from 2c70aaa to d200150 Compare October 6, 2026 09:40
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