mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 15:39:13 +00:00
## Problem We're going to release versioning in Public Alpha instead of Private, so we need to be more clear and loud about the new feature being introduced. ## Solution This PR makes a few changes mostly around communications and messaging: - Update `Private Alpha` badges to `Public Alpha` - Add admonitions in the feature preview modal - Prompt confirmation before enabling versioning on a bucket - Dedicated announcement banner in Storage layout - shown only to users with `storage.capabilities.object_versioning` enabled - Popover card when hovering over the Public Alpha badge See [update](https://linear.app/supabase/project/storage-object-versioning-and-lifecycle-policies-b5e5809a718e/activity#project-update-e9a50e15) for more context. ## Review instructions Functionality changes are minor so mostly check the above mentioned messaging and ui changes.
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import { ConfirmationModal } from 'ui-patterns/Dialogs/ConfirmationModal'
|
|
|
|
interface EnableVersioningConfirmationModalProps {
|
|
visible: boolean
|
|
loading?: boolean
|
|
onConfirm: () => void
|
|
onCancel: () => void
|
|
}
|
|
|
|
export const EnableVersioningConfirmationModal = ({
|
|
visible,
|
|
loading = false,
|
|
onConfirm,
|
|
onCancel,
|
|
}: EnableVersioningConfirmationModalProps) => (
|
|
<ConfirmationModal
|
|
variant="warning"
|
|
visible={visible}
|
|
loading={loading}
|
|
title="Confirm to enable object versioning"
|
|
confirmLabel="Enable versioning"
|
|
confirmLabelLoading="Enabling versioning..."
|
|
onCancel={onCancel}
|
|
onConfirm={onConfirm}
|
|
alert={{
|
|
title: 'Storage object versioning is in public alpha',
|
|
description: (
|
|
<p className="text-pretty">
|
|
The behavior of this feature may change during development and is not recommended for
|
|
production use.
|
|
</p>
|
|
),
|
|
}}
|
|
>
|
|
<p className="text-sm text-foreground-light">
|
|
Retained versions count toward Storage usage and may increase your bill.
|
|
</p>
|
|
</ConfirmationModal>
|
|
)
|