From 0f4cd1ea031272bbbfda6fcd2e75944c0a6b490f Mon Sep 17 00:00:00 2001
From: Francesco Sansalvadore
Date: Wed, 19 Aug 2026 14:39:24 +0200
Subject: [PATCH] refactor(storage): drop the unreachable cap-only lifecycle
branch
Follows the same change in the version-fate helper: a version cap always arrives
alongside an expiration age, so the policy summary only has three shapes to
describe (age alone, or age plus cap under either operator). Removes the
cap-only sentence and the "no age limit" chip, and `daysRemaining` on
`expires-on-next-upload` no longer needs an undefined guard.
Also adds the explicit `tabIndex={0}` that `supabase/require-explicit-tabindex`
wants on the four raw buttons in this feature. These were lint *errors*, not
warnings, so the ratchet never surfaced them.
Co-Authored-By: Claude Sonnet 5
---
.../StorageExplorer/PreviewSection.tsx | 1 +
.../StorageExplorer/VersionCompareWidget.tsx | 1 +
.../StorageExplorer/VersionHistory.tsx | 5 ++-
.../VersionHistoryPolicyRow.tsx | 33 +++++++------------
4 files changed, 16 insertions(+), 24 deletions(-)
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewSection.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewSection.tsx
index e4783d5f011..4fc4ccea4ce 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewSection.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewSection.tsx
@@ -23,6 +23,7 @@ export const PreviewSection = ({