The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore(studio): move short Admonitions to descriptions (#46049)
Danny White4c148ea06080
diff --git a/apps/studio/components/interfaces/Auth/Users/UserOverview.tsx b/apps/studio/components/interfaces/Auth/Users/UserOverview.tsxindex 1e847c0e004..06811897b55 100644--- a/apps/studio/components/interfaces/Auth/Users/UserOverview.tsx+++ b/apps/studio/components/interfaces/Auth/Users/UserOverview.tsx@@ -181,7 +181,7 @@ export const UserOverview = ({ user, onDeleteSuccess }: UserOverviewProps) => {{isBanned ? (<Admonitiontype="warning"- label={`User banned until ${dayjs(user.banned_until).format(DATE_FORMAT)}`}+ description={`User banned until ${dayjs(user.banned_until).format(DATE_FORMAT)}`}className="border-r-0 border-l-0 rounded-none -mt-px [&_svg]:ml-0.5"/>) : (diff --git a/apps/studio/components/interfaces/Database/Publications/PublicationsTables.tsx b/apps/studio/components/interfaces/Database/Publications/PublicationsTables.tsxindex 62b6bc38a47..00390fd5d37 100644--- a/apps/studio/components/interfaces/Database/Publications/PublicationsTables.tsx+++ b/apps/studio/components/interfaces/Database/Publications/PublicationsTables.tsx@@ -63,28 +63,27 @@ export const PublicationsTables = () => {return (<>- <div className="mb-4">- <div className="flex items-center justify-between">- <Input- size="tiny"- ref={searchInputRef}- icon={<Search />}- className="w-48"- placeholder="Search for a table"- value={filterString}- onChange={(e) => setFilterString(e.target.value)}- onKeyDown={onSearchInputEscape(filterString, setFilterString)}- />- {!isLoadingPermissions && !canUpdatePublications && (- <Admonition- type="note"- className="w-[500px]"- title="You need additional permissions to update database replications"- />- )}- </div>+ <div className="flex items-center justify-between mb-4">+ <Input+ size="tiny"+ ref={searchInputRef}+ icon={<Search />}+ className="w-48"+ placeholder="Search for a table"+ value={filterString}+ onChange={(e) => setFilterString(e.target.value)}+ onKeyDown={onSearchInputEscape(filterString, setFilterString)}+ /></div>+ {!isLoadingPermissions && !canUpdatePublications && (+ <Admonition+ type="warning"+ className="mb-4 w-full"+ description="You need additional permissions to update database replications."+ />+ )}+<Card><Table><TableHeader>diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DestinationPanelFields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DestinationPanelFields.tsxindex 62fe93a1913..0638af48351 100644--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DestinationPanelFields.tsx+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DestinationPanelFields.tsx@@ -639,21 +639,26 @@ export const AnalyticsBucketFields = ({</p>{isSuccessKeys && keyNoLongerExists && (- <Admonition type="warning" title="Unable to find access key ID in project">- <p className="leading-normal!">- Please select another key or create a new set, as this destination will not- work otherwise. S3 access keys can be managed in your{' '}- <InlineLink href={`/project/${projectRef}/storage/files/settings`}>- storage settings- </InlineLink>- </p>- </Admonition>+ <Admonition+ type="warning"+ title="Unable to find access key ID in project"+ description={+ <>+ Please select another key or create a new set, as this destination will+ not work otherwise. S3 access keys can be managed in your{' '}+ <InlineLink href={`/project/${projectRef}/storage/files/settings`}>+ storage settings+ </InlineLink>+ .+ </>+ }+ />)}{s3AccessKeyId === CREATE_NEW_KEY && (<Admonitiontype="default"- title="A new set of S3 access keys will be created"+ description="A new set of S3 access keys will be created."/>)}</div>@@ -719,7 +724,7 @@ export const AnalyticsBucketFields = ({layout="horizontal"label="S3 Secret Access Key"className="relative"- description="The secret key corresponding to your selected access key ID"+ description="The secret key corresponding to your selected access key ID."><FormControl><Inputdiff --git a/apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsx b/apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsxindex a7a848c0dfb..12f7d0e6954 100644--- a/apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsx+++ b/apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsx@@ -136,7 +136,7 @@ export const RestoreToNewProject = () => {return (<Admonitiontype="default"- title="Restoring to new projects is temporarily not available for AWS (Revamped) projects"+ description="Restoring to new projects is temporarily not available for AWS (Revamped) projects."/>)}diff --git a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsxindex 451ec22cd4b..3d08b838b4f 100644--- a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx+++ b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx@@ -281,7 +281,7 @@ export const QueueSettings = ({}: QueueSettingsProps) => {<Admonitiontype="default"className="rounded-none border-x-0 border-t-0"- title="Only relevant roles for managing queues via client libraries or PostgREST are shown here"+ description="Only relevant roles for managing queues via client libraries or PostgREST are shown here."/>)}<Table>diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsxindex af152e75464..f21fc6f5201 100644--- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx+++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx@@ -32,7 +32,7 @@ export const StripeSyncSettingsPage = () => {return (<PageContainer className="mx-0"><PageSection>- <Admonition type="default" title="Stripe Sync Engine is not installed" />+ <Admonition type="default" description="Stripe Sync Engine is not installed." /></PageSection></PageContainer>)diff --git a/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx b/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsxindex bc9f40ede61..c1d3fcdaf0e 100644--- a/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx+++ b/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx@@ -272,7 +272,7 @@ export const PostgrestConfig = () => {</CardContent>) : isError ? (<CardContent>- <Admonition type="destructive" title="Failed to retrieve API settings" />+ <Admonition type="destructive" description="Failed to retrieve API settings." /></CardContent>) : (<>diff --git a/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx b/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsxindex 47dcbecab1e..0bf56a72a55 100644--- a/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx+++ b/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx@@ -161,7 +161,7 @@ const IPv4SidePanel = () => {{!isAws && (<Admonitiontype="default"- title="Dedicated IPv4 address is only available for AWS projects"+ description="Dedicated IPv4 address is only available for AWS projects."/>)}diff --git a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRuleSheet.tsx b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRuleSheet.tsxindex 9c39fa42954..8b360cacef4 100644--- a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRuleSheet.tsx+++ b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRuleSheet.tsx@@ -306,7 +306,7 @@ export function JitDbAccessRuleSheet({{grants.length === 0 ? (<Admonitiontype="note"- title="No assignable roles found"+ description="No assignable roles found."className="bg-background"/>) : (diff --git a/apps/studio/components/interfaces/Settings/General/DashboardPreferences.tsx b/apps/studio/components/interfaces/Settings/General/DashboardPreferences.tsxindex cce9e5b592e..7eb72fa9de3 100644--- a/apps/studio/components/interfaces/Settings/General/DashboardPreferences.tsx+++ b/apps/studio/components/interfaces/Settings/General/DashboardPreferences.tsx@@ -96,7 +96,7 @@ export const DashboardPreferences = () => {{/* [Joshen] Ideally we're able to persist this for all users in the project, but will need support in our middleware */}<Admonitiontype="note"- title="These preferences control only your experience in the dashboard. Other members of this project will not be affected"+ description="These preferences control only your experience in the dashboard. Other members of this project will not be affected."/>{isLoading ? (diff --git a/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx b/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsxindex 5afc2f7a769..af6ef46f857 100644--- a/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx+++ b/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx@@ -40,7 +40,9 @@ export function ProjectAndPlanInfo({<ProjectSelector form={form} orgSlug={orgSlug} projectRef={projectRef} /><ProjectRefHighlighted projectRef={projectRef} />- {!hasProjectSelected && <Admonition type="default" title="No project has been selected" />}+ {!hasProjectSelected && (+ <Admonition type="default" description="No project has been selected." />+ )}</div>)}diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ApiAccessToggle.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ApiAccessToggle.tsxindex 12153250543..29fcb1824a1 100644--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ApiAccessToggle.tsx+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ApiAccessToggle.tsx@@ -403,7 +403,10 @@ const SchemaExposureOptions = ({return (<>{isError && (- <Admonition type="warning" title="An error occurred while fetching Data API settings." />+ <Admonition+ type="warning"+ description="An error occurred while fetching Data API settings."+ />)}{isSchemaExposed && apiUrl && (