From ca144f07d96d6cd25bd67ad52f57b6a188081b2a Mon Sep 17 00:00:00 2001 From: Anso Date: Mon, 25 May 2026 12:10:33 -0400 Subject: [PATCH] chore(dashboard): drop unused AgentStatus exports on both sides (#1222) The Phase 5 dead-code sweep across the dashboard call graph found two identically shaped findings: the AgentStatus interface is declared and exported in both backend/src/routes/dashboard.ts and frontend/src/components/dashboard/useConfigurationStatus.ts, but no other file imports it. (The frontend StackAlertSheet component has a separate, differently shaped private AgentStatus that does not refer to either of these.) Drop the export keyword on both. The interfaces stay alive as file-internal types, the public surface shrinks by two names, and no behaviour changes. The broader payload-cleanup opportunities surfaced during the sweep (unused requiredTier fields on individual row objects, unused top-level tier and variant fields on ConfigurationStatus) are out of scope for this PR and have been filed as Linear roadmap items. --- backend/src/routes/dashboard.ts | 2 +- frontend/src/components/dashboard/useConfigurationStatus.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/routes/dashboard.ts b/backend/src/routes/dashboard.ts index 04ff16f2..7904ca55 100644 --- a/backend/src/routes/dashboard.ts +++ b/backend/src/routes/dashboard.ts @@ -6,7 +6,7 @@ import type { LicenseTier, LicenseVariant } from '../services/license-types'; export const dashboardRouter = Router(); -export interface AgentStatus { +interface AgentStatus { configured: boolean; enabled: boolean; } diff --git a/frontend/src/components/dashboard/useConfigurationStatus.ts b/frontend/src/components/dashboard/useConfigurationStatus.ts index d051077f..82684ef4 100644 --- a/frontend/src/components/dashboard/useConfigurationStatus.ts +++ b/frontend/src/components/dashboard/useConfigurationStatus.ts @@ -3,7 +3,7 @@ import { useNodes } from '@/context/NodeContext'; import { apiFetch } from '@/lib/api'; import { visibilityInterval } from '@/lib/utils'; -export interface AgentStatus { +interface AgentStatus { configured: boolean; enabled: boolean; }