From e183153a64e1bdda19dfad70af58cfdbc19dcd84 Mon Sep 17 00:00:00 2001 From: Anso Date: Mon, 25 May 2026 12:11:17 -0400 Subject: [PATCH] chore(dashboard): drop misleading backup.requiredTier from configuration payload (#1212) Cloud Backup has a per-provider tier: Custom S3 is open to every tier (PR #1143) while Sencho Cloud Backup requires Admiral. A single backup.requiredTier='admiral' on the configuration response misrepresented that split, and no consumer ever read the field. Remove it from the response interface and the response builder; update the frontend mirror type accordingly. Annotate the backup block so the per-provider intent is clear at the call site. --- backend/src/routes/dashboard.ts | 6 ++++-- frontend/src/components/dashboard/useConfigurationStatus.ts | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/src/routes/dashboard.ts b/backend/src/routes/dashboard.ts index 692895ba..5b4030f0 100644 --- a/backend/src/routes/dashboard.ts +++ b/backend/src/routes/dashboard.ts @@ -43,7 +43,6 @@ export interface ConfigurationStatus { provider: 'disabled' | 'sencho' | 'custom'; autoUpload: boolean; locked: boolean; - requiredTier: 'admiral'; }; } @@ -147,10 +146,13 @@ export function buildLocalConfigurationStatus( globalCrash, }, backup: { + // Cloud Backup has a per-provider tier: Custom S3 is open to every + // tier; Sencho Cloud Backup requires Admiral. The row is rendered for + // every tier because Custom S3 is universally configurable, so no + // dashboard-level lock is meaningful. provider: cloudProvider, autoUpload: cloudAutoUpload, locked: false, - requiredTier: 'admiral', }, }; } diff --git a/frontend/src/components/dashboard/useConfigurationStatus.ts b/frontend/src/components/dashboard/useConfigurationStatus.ts index 82684ef4..c9b62230 100644 --- a/frontend/src/components/dashboard/useConfigurationStatus.ts +++ b/frontend/src/components/dashboard/useConfigurationStatus.ts @@ -39,7 +39,6 @@ export interface ConfigurationStatus { provider: 'disabled' | 'sencho' | 'custom'; autoUpload: boolean; locked: boolean; - requiredTier: 'admiral'; }; }