Skip to content

feat(slm): add component selector to File Drift Check UI (#2834 follow-up) #3433

@mrveiss

Description

@mrveiss

Summary

The "File Drift Check" card in CodeSyncView.vue (added in PR #3430) calls codeSync.fetchDrift() with no argument, which hard-codes autobot-slm-backend as the component. The backend `ALLOWED_COMPONENTS` frozenset already supports four values:

  • `autobot-slm-backend`
  • `autobot-slm-frontend`
  • `autobot-backend`
  • `autobot-frontend`

Affected file: `autobot-slm-frontend/src/views/CodeSyncView.vue`

Fix

Add a `` (or segmented control) above the "Check Drift" button, bound to a `selectedComponent` ref, and pass it as the argument to `fetchDrift(selectedComponent.value)`. Default to `autobot-slm-backend`. Introduced in PR #3430 — identified in code review as LOW finding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions