Repository navigation
feat(slm): an install metrics screen, with the reader moved into the SLM (#19484) - #20610
Conversation
…ain app (#19484) SLM > Monitoring > Install (admin): host, services, alerts, recommendations, GPU and NPU read from the main backend's /monitoring routes and polled. All six reads failing shows a not-available state with no figures; a failed read never leaves the last reading shown. useInstallMetrics.ts is removed from the main app (only tests imported it).
|
Warning Review limit reachedYou'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 13 minutes. View limit details
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. |
|
Code review on PR #20610 (head dac752d): changes needed. Read only; nothing was run. Routes and shapes match, the SLM route is admin-gated, and nothing still imports the moved reader.
|
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
|
Code review on PR #20610 (head 5a68b39): approve. Read only; not rendered. The paused notice shows with Retry on the unavailable screen, and recovery is tested. The internal key is added server-side only after the admin check passes in nginx, never sent to the browser. If |
…ll tab is admin only like the rest (#20631)
Auto-sync: merging
|
| side | commit | subject | issue refs |
|---|---|---|---|
| main | 3daec19c5 |
ci(guards): retire 75 floor= pins in 73 guard files, computed from the base instead (#19676) | #19676 |
| this branch | 5a68b39d0 |
fix(frontend): re-pin the reach floors this branch moved (#19484) | #19484 |
Thinking Path
The finished install metrics reader never had a screen, and install-wide data is server-wide, so the maintainer decided on an SLM monitoring screen with the reader moved there. The SLM backend does not serve these routes, so the screen reads the main backend through the existing client, and it has to say so plainly when the main app is down.
What Changed
/monitoring/install, admin-only, withInstallMetrics.vue,InstallMetricsOverview.vue,InstallMetricsFindings.vueanduseInstallMetricsApi.ts.autobot-frontend/src/composables/useInstallMetrics.tsmoved out: nothing but tests imported it. Those tests and doc references are updated.<style>or new class names. SLM en.json keys, other locales generated.Verification
InstallMetrics.test.ts(9) andMonitoringView.test.ts: 11 passed.pollerCircuitBreakerand websocket-client tests pass.reka-uiis stubbed locally./autobot-api/admits an SLM admin session, then nginx injects the internal API key ifautobot_internal_api_keyis set, and the five admin-gated routes accept that key. Without the key, five of six reads likely fail and the screen shows a partial failure. Whether the live vhost has it is unchecked;/services/healthis public.vue-tsc, lint, a live SLM.Model Used
Claude Sonnet for the implementation, Claude Opus for coordination.
Single-issue rationale
Refs #19484 and does not close it: the main app's other
/monitoring/*fetchers (services/api.ts,ApiClient.ts,useSystemArchitectureData.ts,SystemRepository.ts) are not moved, and no reason is recorded for each yet.