Skip to content

Commit bec2a9c

Browse files
fix(web): the database storage notice shows even when some machines lack storage cleanup
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent abee72f commit bec2a9c

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

‎apps/web/src/components/settings/StorageSettings.tsx‎

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -702,22 +702,28 @@ export function StorageCleanupSections() {
702702
: undefined;
703703
const update = (patch: Partial<StorageCleanupSettings>) =>
704704
updateSettings({ storageCleanup: patch });
705+
const databaseStorageNotice = (
706+
<DatabaseStorageNotice
707+
environments={connectedEnvironments.filter(
708+
(environment) =>
709+
environment.serverConfig?.environment.capabilities.databaseStorage === true,
710+
)}
711+
/>
712+
);
705713
if (!supportsStorageCleanup(connectedEnvironments)) {
706714
return (
707-
<SettingsSection id="storage-artifacts" title="Artifacts and logs" variant="plain">
708-
<StorageCleanupScopeNotice />
709-
</SettingsSection>
715+
<>
716+
{databaseStorageNotice}
717+
<SettingsSection id="storage-artifacts" title="Artifacts and logs" variant="plain">
718+
<StorageCleanupScopeNotice />
719+
</SettingsSection>
720+
</>
710721
);
711722
}
712723

713724
return (
714725
<>
715-
<DatabaseStorageNotice
716-
environments={connectedEnvironments.filter(
717-
(environment) =>
718-
environment.serverConfig?.environment.capabilities.databaseStorage === true,
719-
)}
720-
/>
726+
{databaseStorageNotice}
721727
<SettingsSection id="storage-artifacts" title="Artifacts and logs">
722728
<SettingsRow
723729
title="Delete old browser artifacts"

0 commit comments

Comments
 (0)