Commit Graph
3 Commits
Author SHA1 Message Date
Francesco Sansalvadore a098c3be32 chore(studio): improve versioning onboarding comms (#54059)
## 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.
2026-11-30 18:18:41 +01:00
Francesco SansalvadoreandClaude Sonnet 5 84115482be feat(studio): storage lifecycle policies UI (#52318)
## Problem

Lifecycle policies can only be set with an abstracted ui that hides the
actual underlying policies but the user can still modify the policies
via api, which would result in an un-documented drift from the policies
set via said abstracted ui.

## Solution

Show ui with list of effective policies applied and show if the policies
drifted in a way that is incompatible with the abstracted ui in the
"Create/Edit bucket modal".

<img width="1489" height="800" alt="Screenshot 2026-10-26 at 18 35 39"
src="https://github.com/user-attachments/assets/9e64f123-c06e-4cfe-9dba-839fae61c845"
/>

<img width="1439" height="847" alt="Screenshot 2026-10-26 at 18 35 50"
src="https://github.com/user-attachments/assets/a32d3a27-6719-48b3-abd2-fb134158bd96"
/>

<img width="654" height="316" alt="Screenshot 2026-10-26 at 18 36 38"
src="https://github.com/user-attachments/assets/0710c139-9b64-42f7-b410-c1a351b1f616"
/>

This PR also updates copywriting around the effects procured by the
lifecycle policies settings in the bucket settings modal.

<img width="704" height="440" alt="Screenshot 2026-10-26 at 18 35 17"
src="https://github.com/user-attachments/assets/f4fa03d1-e11b-4d08-b4f5-d94b2d9350a3"
/>

<img width="351" height="82" alt="Screenshot 2026-10-26 at 18 35 28"
src="https://github.com/user-attachments/assets/6ff1e149-92e0-4fd8-bfb5-0177afe207aa"
/>

## To review

- create a file storage bucket, enable object versioning and set some
lifecycle policy values
- once created, go to /project/_/storage/files/policies and find the
bucket policies or navigate to it from the "Edit bucket settings" via
the "View rules" button
<img width="1133" height="725" alt="Screenshot 2026-10-27 at 14 50 52"
src="https://github.com/user-attachments/assets/ef014f7a-5db6-413a-af53-a5648309b2c3"
/>
- adding extra policies should result in a "This bucket has a custom
lifecycle policy" message in the edit bucket modal

<img width="557" height="130" alt="Screenshot 2026-10-27 at 14 52 23"
src="https://github.com/user-attachments/assets/cde29748-65d9-45b5-a54b-55737d78d311"
/>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-28 11:43:00 +01:00
6ef729cb5c feat(storage): versioning bucket modals (FE-4161) (#49205)
| # | Branch | Base |
| - | ------ | ---- |
| 1 | `feat/storage-versioning-private-alpha` — merged | `master` |
| 2 | `feat/storage-versioning/002-bucket-form-fields` | `master` |
| 3 | `feat/storage-versioning/003-bucket-modals` ◀ | 2 |
| 4 | `feat/storage-versioning/004-object-versions-data` | 3 |
| 5 | `feat/storage-versioning/005-file-preview-versions` | 4 |
| 6 | `feat/storage-versioning/006-billing-storage-retention` | 5 |
| 7 | `feat/storage-versioning/007-archived-objects-data` | 6 |
| 8 | `feat/storage-versioning/008-archived-rows` | 7 |
| 9 | `feat/storage-versioning/009-archived-preview-pane` | 8 |
| 10 | `feat/storage-versioning/010-replace-file` | 9 |

## [3/10] Storage object versioning: wire into the bucket modals

**Base:** `feat/storage-versioning/002-bucket-form-fields` (PR 2)

### This PR

Mounts the object-versioning form section in the create and edit bucket
modals behind the feature preview, and saves it.

- create and edit bucket modals spread `bucketVersioningFormFields` into
their existing form schema
- lifecycle defaults  to 30 days / 10 versions
- edit adds a confirmation before suspending an actively versioned
bucket

## Enabling object versioning on a new bucket and setting lifecycle
policies


https://github.com/user-attachments/assets/194f8319-4929-432e-8a50-206f180a77a8

## Edit and suspend object-versioning


https://github.com/user-attachments/assets/f31e1d34-9840-4f5a-a269-6a911214742d

## To reproduce

1. Make sure storage versioning is enabled under feature previews >
Storage Versioning
2. Open Storage Bucket File explorer
3. create new bucket and enable Object Versioning
4. set lifecycle policy
- Noncurrent version expiration: can be either empty or >1
- Retained noncurrent versions: can be either empty or between 1 and 100
and can't exist without "Noncurrent version expiration"
5. Open new bucket with object versioning and test changing lifecycle
policies
6. Disabling object-versioning shows proper warning and updates
`versioning_status` to SUSPENDED (it can never go back to DISABLED once
it has been enabled on a bucket)

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2026-10-07 16:38:35 +02:00