Skip to content

feat(agents): Configuration tab on the Agents page [20/21] - #341

Open
gusfcarvalho wants to merge 1 commit into
agent-config/19-historyfrom
agent-config/20-config-tab
Open

gusfcarvalho wants to merge 1 commit into
agent-config/19-historyfrom
agent-config/20-config-tab

Conversation

@gusfcarvalho

Copy link
Copy Markdown
Contributor

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

Wires everything up: AgentConfigTab and the Configuration tab on the Agents page. The agents route and side nav are now gated on agent:read (keys and CRUD inside the page stay behind admin:manage).

Tests

Specs for the tab, the Agents view, router and side nav; AiDiagnosticsView.spec.ts and sspViews.spec.ts now unmount wrappers so PrimeVue's TabList timer can't fire after teardown.

🤖 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: 8c8ab349-7753-419c-a753-cf48631d3bc9
  • 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

Failed permission hydration currently enables optimistic admin access and triggers unauthorized key requests.

Review effort: Balanced
Findings: 1 High severity

Open (1)
What changed in this PR

Wires agent remote configuration into the Agents page with permission-aware routing and UI.

Changes:

  • Adds the Configuration tab and lazy-loaded configuration workspace.
  • Gates agent navigation on agent:read while retaining admin-only CRUD and key controls.
  • Adds coverage and stabilizes PrimeVue tab tests through automatic unmounting.
File Description
src/​components/​agents/​config/​AgentConfigTab.vue Adds the configuration interface.
src/​components/​agents/​config/​__tests__/​AgentConfigTab.spec.ts Tests configuration states and permissions.
src/​views/​admin/​AgentsView.vue Integrates the tab and permission gates.
src/​views/​__tests__/​AgentsView.spec.ts Tests admin and reader behavior.
src/​views/​LeftSideNav.vue Changes Agents navigation to agent:read.
src/​views/​__tests__/​LeftSideNav.spec.ts Tests non-admin Agents visibility.
src/​router/​index.ts Changes the route permission.
src/​router/​__tests__/​index.spec.ts Tests route permission metadata.
src/​views/​__tests__/​AiDiagnosticsView.spec.ts Adds automatic wrapper cleanup.
src/​views/​system-security-plans/​__tests__/​sspViews.spec.ts Adds automatic wrapper cleanup.

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

Comment on lines +554 to +562
const permissionsReady = ref(loaded.value);
if (!permissionsReady.value) {
Promise.resolve(hydrate())
.catch(() => undefined)
.finally(() => {
permissionsReady.value = true;
});
}
const isAdmin = computed(() => permissionsReady.value && canManageAdmin.value);
Layer 20 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/20-config-tab branch from 89bb1db to 0e1f629 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