Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions gearbox/internal/framework/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,13 @@ func (h *Handler) InjectIntegrationStatus(next http.Handler) http.Handler {
next.ServeHTTP(w, r.WithContext(ctx))
return
}
// Filter the per-box gear list by the agent's probe table —
// if the agent reports a gear as unavailable, hide it from
// the sidebar entirely so the operator doesn't click into a
// page the box physically can't serve (issue #112). The
// filter fails OPEN: when the agent is unreachable the full
// list is preserved, matching the Gears-settings-page filter.
integrations = h.filterGearsByAgentCapabilities(activeBox.ID, integrations)
Comment thread
sarg3nt marked this conversation as resolved.
for _, i := range integrations {
Comment thread
sarg3nt marked this conversation as resolved.
status[i.Name] = i.Enabled
orderedIntegrations = append(orderedIntegrations, auth.SidebarIntegration{
Expand Down
Loading