mirror of
https://github.com/supabase/supabase.git
synced 2026-12-03 23:18:57 +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.
30 lines
815 B
TypeScript
30 lines
815 B
TypeScript
import { useParams } from 'common'
|
|
import { ReactNode } from 'react'
|
|
|
|
import { ProjectLayout } from '../ProjectLayout'
|
|
import { StorageMenuV2 } from '@/components/interfaces/Storage/StorageMenuV2'
|
|
import { BannerStorageVersioningManager } from '@/components/ui/BannerStack/Banners/BannerStorageVersioning'
|
|
import { withAuth } from '@/hooks/misc/withAuth'
|
|
|
|
export interface StorageLayoutProps {
|
|
title: string
|
|
children: ReactNode
|
|
}
|
|
|
|
const StorageLayout = ({ title, children }: StorageLayoutProps) => {
|
|
const { ref } = useParams()
|
|
|
|
return (
|
|
<ProjectLayout
|
|
product="Storage"
|
|
browserTitle={{ section: title }}
|
|
productMenu={<StorageMenuV2 />}
|
|
>
|
|
<BannerStorageVersioningManager key={ref ?? '_'} />
|
|
{children}
|
|
</ProjectLayout>
|
|
)
|
|
}
|
|
|
|
export default withAuth(StorageLayout)
|