From 87362e6ba9543da600ea6698e16e8e1bb54000cb Mon Sep 17 00:00:00 2001 From: Francesco Sansalvadore Date: Wed, 19 Aug 2026 15:04:11 +0200 Subject: [PATCH] improve comments --- .../StorageExplorer/ConfirmDeleteModal.tsx | 3 --- .../Storage/StorageExplorer/PreviewPane.tsx | 10 +--------- .../Storage/StorageExplorer/PreviewSection.tsx | 1 - .../StorageExplorer/VersionCompareWidget.tsx | 4 ---- .../Storage/StorageExplorer/VersionHistory.tsx | 15 +-------------- .../StorageExplorer/VersionHistoryPolicyRow.tsx | 10 ---------- .../Storage/StorageExplorer/VersionThumbnail.tsx | 6 ------ 7 files changed, 2 insertions(+), 47 deletions(-) diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/ConfirmDeleteModal.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/ConfirmDeleteModal.tsx index 58c565e8237..f5c6dd9ab05 100644 --- a/apps/studio/components/interfaces/Storage/StorageExplorer/ConfirmDeleteModal.tsx +++ b/apps/studio/components/interfaces/Storage/StorageExplorer/ConfirmDeleteModal.tsx @@ -17,9 +17,6 @@ export const ConfirmDeleteModal = () => { } = useStorageExplorerStateSnapshot() const isStorageVersioningEnabled = useIsStorageVersioningEnabled() - // On a versioned bucket a delete is a soft delete: the object is hidden but - // every version stays recoverable, so the usual "cannot be undone" warning - // would be wrong. const isVersionedBucket = isStorageVersioningEnabled && getBucketVersioningState(selectedBucket) !== 'disabled' diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewPane.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewPane.tsx index 8538079274d..b75d7aae782 100644 --- a/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewPane.tsx +++ b/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewPane.tsx @@ -200,11 +200,6 @@ const CurrentFilePreview = ({ }: CurrentFilePreviewProps) => (
@@ -282,8 +277,7 @@ const CurrentFilePreview = ({ )} - {/* A delete here is a soft delete, so the button says so and the real - destructive action moves behind the split menu. */} + {/* A delete in a versioned bucket is a soft delete/archive, unless specified explicitly */} {canUpdateFiles && isVersionedBucket && (