-
-
Notifications
You must be signed in to change notification settings - Fork 1
feat(slm): add component selector to File Drift Check UI (#2834 follow-up) #3433
Copy link
Copy link
Open
Labels
Description
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.
Reactions are currently unavailable