Commit d7676b3
feat(sidebar): hide gears whose agent reports them unavailable (#112)
filterGearsByAgentCapabilities is the framework's existing
capability-aware gear filter. Today it's only used by the Gears
settings page (`/settings/gears`) — so the **sidebar** still renders
HAProxy, Logs, Services, Certificates, etc. for an active box whose
agent doesn't run any of those gears. Clicking them lands the
operator on an empty page or a JSON-envelope error.
Run the same filter on the per-box integration list inside
InjectIntegrationStatus, so the sidebar reflects what the agent can
actually serve. Failures stay fail-open (an unreachable agent does
not strip the sidebar) by reusing the existing helper's contract.
Phase 2 slice of #112.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 0799f82 commit d7676b3
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
527 | 534 | | |
528 | 535 | | |
529 | 536 | | |
| |||
0 commit comments