mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 00:19:08 +00:00
Improve copywriting and add image for the Storage Object Versioning feature preview. |Before | After | |--|--| | <img width="1096" height="717" alt="Screenshot 2026-11-03 at 11 05 30" src="https://github.com/user-attachments/assets/88a7f13e-4762-48cd-89db-57e2c51f7613" /> | <img width="1075" height="693" alt="Screenshot 2026-11-03 at 11 06 28" src="https://github.com/user-attachments/assets/bab3a2ef-f8bf-4188-865a-701e482347f1" /> | ## How to review 1. Open `Storage object versioning` feature preview 2. See feature preview 3. Acknowledge feature preview 4. Approve --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
55 lines
2.1 KiB
TypeScript
55 lines
2.1 KiB
TypeScript
import { useParams } from 'common'
|
|
import Image from 'next/image'
|
|
import { BASE_PATH } from 'ui-patterns/CommandMenu/prepackaged/shared/constants'
|
|
|
|
import { InlineLink } from '@/components/ui/InlineLink'
|
|
|
|
export const StorageVersioningPreview = () => {
|
|
const { ref = '_' } = useParams()
|
|
|
|
return (
|
|
<div className="space-y-2">
|
|
<p className="text-sm text-foreground-light mb-4">
|
|
Object versioning keeps a noncurrent copy of a file every time it's overwritten or archived,
|
|
so accidental changes and deletes stay recoverable. Preview, compare and restore any earlier
|
|
version from the file preview panel, and use lifecycle policies to expire noncurrent
|
|
versions automatically and keep storage costs in check.
|
|
</p>
|
|
|
|
<Image
|
|
src={`${BASE_PATH}/img/previews/storage-object-versioning.png`}
|
|
width={1296}
|
|
height={900}
|
|
alt="storage object versioning settings and version history preview"
|
|
className="rounded-sm border"
|
|
/>
|
|
|
|
<div className="space-y-2 mt-4!">
|
|
<p className="text-sm">Enabling this preview will:</p>
|
|
<ul className="list-disc pl-6 text-sm text-foreground-light space-y-1">
|
|
<li>
|
|
Add an Object versioning toggle and lifecycle policy settings to each bucket in{' '}
|
|
<InlineLink href={`/project/${ref}/storage/files`}>Storage</InlineLink>
|
|
</li>
|
|
<li>
|
|
Show a version history in the file preview panel, where you can compare an earlier
|
|
version against the current one and restore it
|
|
</li>
|
|
<li>
|
|
Archive files instead of deleting them in versioned buckets, so you can bring them back
|
|
if needed
|
|
</li>
|
|
<li>
|
|
Let you expire noncurrent versions automatically by age, by how many to keep, or both
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<p className="text-sm text-foreground-light mt-4!">
|
|
Object versioning is in <em>Private Alpha</em>. It stays off for every bucket until you turn
|
|
it on, and turning it off later suspends it without removing the versions you already have.
|
|
</p>
|
|
</div>
|
|
)
|
|
}
|