mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-11 11:16:55 +00:00
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.
This commit is contained in:
@@ -43,7 +43,6 @@ export interface ConfigurationStatus {
|
|||||||
provider: 'disabled' | 'sencho' | 'custom';
|
provider: 'disabled' | 'sencho' | 'custom';
|
||||||
autoUpload: boolean;
|
autoUpload: boolean;
|
||||||
locked: boolean;
|
locked: boolean;
|
||||||
requiredTier: 'admiral';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -147,10 +146,13 @@ export function buildLocalConfigurationStatus(
|
|||||||
globalCrash,
|
globalCrash,
|
||||||
},
|
},
|
||||||
backup: {
|
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,
|
provider: cloudProvider,
|
||||||
autoUpload: cloudAutoUpload,
|
autoUpload: cloudAutoUpload,
|
||||||
locked: false,
|
locked: false,
|
||||||
requiredTier: 'admiral',
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ export interface ConfigurationStatus {
|
|||||||
provider: 'disabled' | 'sencho' | 'custom';
|
provider: 'disabled' | 'sencho' | 'custom';
|
||||||
autoUpload: boolean;
|
autoUpload: boolean;
|
||||||
locked: boolean;
|
locked: boolean;
|
||||||
requiredTier: 'admiral';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user