The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update policy modal for storage to match the updated method names from the storage client library
Joshen Lim3a72905c2b46
diff --git a/studio/components/to-be-cleaned/Storage/Storage.constants.ts b/studio/components/to-be-cleaned/Storage/Storage.constants.tsindex 513504943c3..8c8358362e3 100644--- a/studio/components/to-be-cleaned/Storage/Storage.constants.ts+++ b/studio/components/to-be-cleaned/Storage/Storage.constants.ts@@ -38,17 +38,16 @@ export const STORAGE_POLICY_DEFAULT_DEFINITION_PLACEHOLDER = `/*`export const STORAGE_CLIENT_LIBRARY_MAPPINGS = {- copyObject: ['INSERT'],- createObject: ['INSERT'],- deleteObject: ['SELECT', 'DELETE'],- deleteObjects: ['SELECT', 'DELETE'],- getObject: ['SELECT'],- getSignedObject: [],- getSignedUrl: ['SELECT'],- getSignedUrls: ['SELECT'],- listObjects: ['SELECT'],- moveObjects: ['SELECT', 'UPDATE'],- updateObject: ['SELECT', 'UPDATE'],+ list: ['SELECT'],+ upload: ['INSERT'],+ download: ['SELECT'],+ copy: ['INSERT'],+ remove: ['SELECT', 'DELETE'],+ move: ['SELECT', 'UPDATE'],+ update: ['SELECT', 'UPDATE'],+ createSignedUrl: ['SELECT'],+ createSignedUrls: ['SELECT'],+ getPublicUrl: ['SELECT'],}export const CONTEXT_MENU_KEYS = {diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.jsindex c87c50c9a83..d3f8cb74db8 100644--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js@@ -33,8 +33,15 @@ const PolicyAllowedOperations = ({ allowedOperations = [], onToggleOperation = (Allowed operation</label><p className="text-scale-900 text-sm">- Based on the operations you have selected, you can use any of the highlighted functions in- the supabase-js JavaScript library+ Based on the operations you have selected, you can use the highlighted functions in the{' '}+ <a+ href="https://supabase.com/docs/reference/javascript/storage-from-list"+ target="_blank"+ className="underline"+ >+ client library+ </a>+ .</p></div><div className="w-2/3">