Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat(studio): adopt shared inline code defaults (#51981)

Danny White9be9e570c38d
diff --git a/apps/studio/components/grid/components/grid/GridError.tsx b/apps/studio/components/grid/components/grid/GridError.tsx
index 39b5f4c83f8..3fc31596f40 100644
--- a/apps/studio/components/grid/components/grid/GridError.tsx
+++ b/apps/studio/components/grid/components/grid/GridError.tsx
@@ -163,7 +163,7 @@ const InvalidOrderingOperatorError = ({ error }: { error: ResponseError }) => {
again.
</p>
<p className="text-sm text-foreground-lighter prose max-w-full mb-4!">
- Error: <code className="text-code-inline">{error.message}</code>
+ Error: <code>{error.message}</code>
</p>
<Button onClick={() => onApplySorts([])}>Remove sorts</Button>
@@ -228,7 +228,7 @@ const ExpandError = ({ error }: { error: ResponseError }) => {
</div>
</CollapsibleTrigger>
<CollapsibleContent className="mt-1">
- <code className="text-code-inline">{error.message}</code>
+ <code>{error.message}</code>
</CollapsibleContent>
</Collapsible>
)
diff --git a/apps/studio/components/interfaces/APIKeys/CreateNewAPIKeysButton.tsx b/apps/studio/components/interfaces/APIKeys/CreateNewAPIKeysButton.tsx
index adaa13351fd..06ee92f245a 100644
--- a/apps/studio/components/interfaces/APIKeys/CreateNewAPIKeysButton.tsx
+++ b/apps/studio/components/interfaces/APIKeys/CreateNewAPIKeysButton.tsx
@@ -67,11 +67,11 @@ export const CreateNewAPIKeysButton = () => {
<AlertDialogTitle>Create new API keys</AlertDialogTitle>
<AlertDialogDescription>
This will create a default publishable key and a default secret key both named{' '}
- <code className="break-keep! text-code-inline">default</code>. These keys are required
- to connect your application to your Supabase project. Your existing legacy API keys (
- <code className="break-keep! text-code-inline">anon</code> and{' '}
- <code className="break-keep! text-code-inline">service_role</code>) are not affected and
- remain valid until you disable them in a separate step.
+ <code className="break-keep!">default</code>. These keys are required to connect your
+ application to your Supabase project. Your existing legacy API keys (
+ <code className="break-keep!">anon</code> and{' '}
+ <code className="break-keep!">service_role</code>) are not affected and remain valid
+ until you disable them in a separate step.
</AlertDialogDescription>
</AlertDialogHeader>
{error && (
diff --git a/apps/studio/components/interfaces/App/FeaturePreview/CLSPreview.tsx b/apps/studio/components/interfaces/App/FeaturePreview/CLSPreview.tsx
index 79908aa1ed4..79f0aac8b76 100644
--- a/apps/studio/components/interfaces/App/FeaturePreview/CLSPreview.tsx
+++ b/apps/studio/components/interfaces/App/FeaturePreview/CLSPreview.tsx
@@ -27,7 +27,7 @@ export const CLSPreview = () => {
<WarningIcon />
<AlertTitle>
Changes to column privileges will not be reflected in migrations when running{' '}
- <code className="text-code-inline">supabase db diff</code>.
+ <code>supabase db diff</code>.
</AlertTitle>
<AlertDescription>
Column privileges are not supported in the current version of the Supabase CLI.
diff --git a/apps/studio/components/interfaces/Auth/AuditLogsForm.tsx b/apps/studio/components/interfaces/Auth/AuditLogsForm.tsx
index 42c01be13e2..6e3de562970 100644
--- a/apps/studio/components/interfaces/Auth/AuditLogsForm.tsx
+++ b/apps/studio/components/interfaces/Auth/AuditLogsForm.tsx
@@ -163,7 +163,7 @@ export const AuditLogsForm = () => {
rel="noopener noreferrer"
href={`/project/${projectRef}/editor/${auditLogTable?.id}`}
>
- <code className="text-code-inline">{AUDIT_LOG_ENTRIES_TABLE}</code>
+ <code>{AUDIT_LOG_ENTRIES_TABLE}</code>
</InlineLink>{' '}
table.
<br />
@@ -192,10 +192,8 @@ export const AuditLogsForm = () => {
Future audit logs will only appear in the project’s{' '}
<InlineLink href={authAuditLogsUrl}>auth logs</InlineLink>. You are
responsible for backing up, copying, or migrating existing data from the{' '}
- <code className="text-code-inline break-keep!">
- {AUDIT_LOG_ENTRIES_TABLE}
- </code>{' '}
- table if needed.
+ <code className="break-keep!">{AUDIT_LOG_ENTRIES_TABLE}</code> table if
+ needed.
</p>
}
/>
diff --git a/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm.tsx b/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm.tsx
index 63745354b7f..bf1c702d745 100644
--- a/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm.tsx
+++ b/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm.tsx
@@ -259,16 +259,14 @@ export const BasicAuthSettingsForm = () => {
<WarningIcon />
<div>
<AlertTitle>
- Anonymous users will use the{' '}
- <code className="text-code-inline">authenticated</code> role when signing
+ Anonymous users will use the <code>authenticated</code> role when signing
in
</AlertTitle>
<AlertDescription className="flex flex-col gap-y-3">
<p>
As a result, anonymous users will be subjected to RLS policies that
- apply to the <code className="text-code-inline">public</code> and{' '}
- <code className="text-code-inline">authenticated</code> roles. We
- strongly advise{' '}
+ apply to the <code>public</code> and <code>authenticated</code> roles.
+ We strongly advise{' '}
<Link
href={`/project/${projectRef}/database/policies`}
className="text-foreground underline"
diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/AuthTemplatesValidation.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/AuthTemplatesValidation.tsx
index f5fa434afa3..ec6f0e0a6a4 100644
--- a/apps/studio/components/interfaces/Auth/EmailTemplates/AuthTemplatesValidation.tsx
+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/AuthTemplatesValidation.tsx
@@ -63,8 +63,7 @@ const TemplateVariables: Record<TemplateVariableName, TemplateVariable> = {
value: '{{ .Data }}',
description: (
<>
- User's <code className="text-code-inline">user_metadata</code>, use this to personalize the
- message
+ User's <code>user_metadata</code>, use this to personalize the message
</>
),
},
@@ -73,8 +72,7 @@ const TemplateVariables: Record<TemplateVariableName, TemplateVariable> = {
value: '{{ .RedirectTo }}',
description: (
<>
- Redirect URL passed as the <code className="text-code-inline">redirectTo</code> option in
- the auth method call
+ Redirect URL passed as the <code>redirectTo</code> option in the auth method call
</>
),
},
diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx
index be8a3dda755..c55b9e9226b 100644
--- a/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx
+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx
@@ -394,8 +394,7 @@ export const TemplateEditor = ({ template, isReadOnly = false }: TemplateEditorP
{variable.name === 'Token' &&
template.variables.some((x) => x.name === 'ConfirmationURL') && (
<>
- , which can be used instead of{' '}
- <code className="text-code-inline">ConfirmationURL</code>
+ , which can be used instead of <code>ConfirmationURL</code>
</>
)}
diff --git a/apps/studio/components/interfaces/Auth/Hooks/CreateHookSheet.tsx b/apps/studio/components/interfaces/Auth/Hooks/CreateHookSheet.tsx
index b3b596fc20c..03f32338de6 100644
--- a/apps/studio/components/interfaces/Auth/Hooks/CreateHookSheet.tsx
+++ b/apps/studio/components/interfaces/Auth/Hooks/CreateHookSheet.tsx
@@ -510,13 +510,12 @@ revoke execute on function ${ident(schema)}.${ident(functionName)} from authenti
description={
<div className="flex items-center gap-x-2">
<p>
- Should be a base64 encoded secret with a prefix{' '}
- <code className="text-code-inline">v1,whsec_</code>.
+ Should be a base64 encoded secret with a prefix <code>v1,whsec_</code>
+ .
</p>
<InfoTooltip side="bottom" className="w-60 text-center">
- <code className="text-code-inline">v1</code> denotes the signature
- version and <code className="text-code-inline">whsec_</code> signifies
- a symmetric secret.
+ <code>v1</code> denotes the signature version and <code>whsec_</code>{' '}
+ signifies a symmetric secret.
</InfoTooltip>
</div>
}
diff --git a/apps/studio/components/interfaces/Auth/OAuthApps/DeleteOAuthAppModal.tsx b/apps/studio/components/interfaces/Auth/OAuthApps/DeleteOAuthAppModal.tsx
index 14bcd90b85a..99880588655 100644
--- a/apps/studio/components/interfaces/Auth/OAuthApps/DeleteOAuthAppModal.tsx
+++ b/apps/studio/components/interfaces/Auth/OAuthApps/DeleteOAuthAppModal.tsx
@@ -40,8 +40,7 @@ export const DeleteOAuthAppModal = ({
visible={visible}
title={
<>
- Confirm to delete OAuth app{' '}
- <code className="text-code-inline">{selectedApp?.client_name}</code>
+ Confirm to delete OAuth app <code>{selectedApp?.client_name}</code>
</>
}
confirmLabel="Confirm delete"
diff --git a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx
index 3597d5fcd04..56e901bf6d3 100644
--- a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx
+++ b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx
@@ -400,7 +400,7 @@ export const OAuthAppsList = () => {
</Button>
</TableCell>
<TableCell title={app.client_id}>
- <code className="text-code-inline">{app.client_id}</code>
+ <code>{app.client_id}</code>
</TableCell>
<TableCell className="max-w-28 capitalize">{app.client_type}</TableCell>
<TableCell className="max-w-28 capitalize">{app.registration_type}</TableCell>
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateCustomOidcDialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateCustomOidcDialog.tsx
index 95ae57c5c42..83d67ee73fd 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateCustomOidcDialog.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateCustomOidcDialog.tsx
@@ -89,7 +89,7 @@ export const CreateCustomOidcIntegrationDialog = ({
description={
<>
Signing keys are found at the issuer's{' '}
- <code className="text-code-inline">/.well-known/openid-configuration</code>
+ <code>/.well-known/openid-configuration</code>
</>
}
>
diff --git a/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx b/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
index 5d87e23ce72..c62ee367be0 100644
--- a/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
@@ -593,9 +593,9 @@ export const CreateBranchModal = () => {
<p className="text-sm text-foreground-light">
{withData ? (
<>
- <code className="text-code-inline">{branchComputeSize.label}</code> compute
- size is automatically selected to match your production branch. You may
- downgrade after creation or pause the branch when not in use to save cost.
+ <code>{branchComputeSize.label}</code> compute size is automatically
+ selected to match your production branch. You may downgrade after creation
+ or pause the branch when not in use to save cost.
</>
) : (
<>This cost will continue for as long as the branch has not been removed.</>
diff --git a/apps/studio/components/interfaces/Branching/MergeRequest.tsx b/apps/studio/components/interfaces/Branching/MergeRequest.tsx
index 382f02a02e6..1c7b55f6027 100644
--- a/apps/studio/components/interfaces/Branching/MergeRequest.tsx
+++ b/apps/studio/components/interfaces/Branching/MergeRequest.tsx
@@ -49,7 +49,7 @@ export const MergeTitle = () => {
<div className="flex items-center gap-x-2">
<span>Merge</span>
- <code className="flex items-center text-code-inline gap-x-1.5 px-2 py-1 border border-border">
+ <code className="flex items-center gap-x-1.5 px-2 py-1 border border-border">
<GitBranchIcon strokeWidth={1.5} size={14} className="text-foreground-lighter" />
{currentBranch?.name}
</code>
@@ -57,7 +57,7 @@ export const MergeTitle = () => {
<span>into</span>
<Link href={`/project/${mainBranch?.project_ref}`} className="font-mono inline-flex gap-4">
- <code className="flex items-center text-code-inline font-mono gap-x-1.5 px-2 py-1 border border-border">
+ <code className="flex items-center font-mono gap-x-1.5 px-2 py-1 border border-border">
<ShieldIcon strokeWidth={1.5} size={14} className="text-warning" />
{mainBranch?.name || 'main'}
</code>
diff --git a/apps/studio/components/interfaces/ConfigDrift/ConfigurationDriftPage.tsx b/apps/studio/components/interfaces/ConfigDrift/ConfigurationDriftPage.tsx
index 4c3bcb01806..6243725a2af 100644
--- a/apps/studio/components/interfaces/ConfigDrift/ConfigurationDriftPage.tsx
+++ b/apps/studio/components/interfaces/ConfigDrift/ConfigurationDriftPage.tsx
@@ -108,7 +108,7 @@ function ConfigurationDriftItem({ row }: { row: ConfigurationDriftRow }) {
<div className="flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between">
<div className="flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1">
<h3 className="text-sm font-medium text-foreground">{row.settingLabel}</h3>
- <code className="text-code-inline max-w-full truncate text-xs" title={row.configPath}>
+ <code className="max-w-full truncate text-xs" title={row.configPath}>
{row.configPath}
</code>
<span className="text-xs text-warning">Drift</span>
@@ -199,6 +199,7 @@ function ConfigFieldSection({
>
<span className="text-foreground-light">{row.label}</span>
<code
+ data-code-style="plain"
className="max-w-[60%] truncate text-xs text-foreground-muted"
title={row.value}
>
@@ -281,9 +282,8 @@ export function ConfigurationDriftPage() {
description={
<>
This project is connected to GitHub. The next commit redeploys{' '}
- <code className="text-code-inline text-xs">config.toml</code> and overwrite changes made
- here. To keep these changes, run{' '}
- <code className="text-code-inline text-xs">supabase config pull</code> locally.
+ <code className="text-xs">config.toml</code> and overwrite changes made here. To keep
+ these changes, run <code className="text-xs">supabase config pull</code> locally.
</>
}
/>
diff --git a/apps/studio/components/interfaces/ConnectSheet/content/server/install/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/server/install/content.tsx
index 8130f474837..34576846262 100644
--- a/apps/studio/components/interfaces/ConnectSheet/content/server/install/content.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/content/server/install/content.tsx
@@ -31,7 +31,10 @@ function ServerInstallContent() {
className="m-0 data-[state=inactive]:hidden"
>
<div className="flex items-center gap-x-2 bg-surface-75 py-3 pl-4 pr-2">
- <code className="flex-1 overflow-x-auto whitespace-nowrap font-mono text-sm text-foreground">
+ <code
+ data-code-style="plain"
+ className="flex-1 overflow-x-auto whitespace-nowrap font-mono text-sm text-foreground"
+ >
{option.command}
</code>
<CopyButton
diff --git a/apps/studio/components/interfaces/ConnectSheet/content/steps/mcp/claude-code/authenticate/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/steps/mcp/claude-code/authenticate/content.tsx
index b5bc06d90ec..c0bade79123 100644
--- a/apps/studio/components/interfaces/ConnectSheet/content/steps/mcp/claude-code/authenticate/content.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/content/steps/mcp/claude-code/authenticate/content.tsx
@@ -12,8 +12,7 @@ function ClaudeAuthenticateContent(_props: StepContentProps) {
language="bash"
/>
<p className="text-sm text-foreground-lighter">
- Select the <code className="text-code-inline">supabase</code> server, then{' '}
- <code className="text-code-inline">Authenticate</code> to begin the flow.
+ Select the <code>supabase</code> server, then <code>Authenticate</code> to begin the flow.
</p>
</div>
)
diff --git a/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx b/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx
index d8456a139a8..2ed6094a7b0 100644
--- a/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx
+++ b/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx
@@ -111,13 +111,11 @@ export const EnableExtensionModal = ({
<CardContent className="divide-y text-sm p-0">
<div className="flex items-center justify-between px-3 py-2.5">
<p className="text-foreground-lighter">Extension</p>
- <code className="text-code-inline">{extension.name}</code>
+ <code>{extension.name}</code>
</div>
<div className="flex items-center justify-between px-3 py-2.5">
<p className="text-foreground-lighter">Schema</p>
- <code data-testid="enable-extension-schema" className="text-code-inline">
- {defaultSchema ?? 'extensions'}
- </code>
+ <code data-testid="enable-extension-schema">{defaultSchema ?? 'extensions'}</code>
</div>
</CardContent>
</Card>
@@ -134,13 +132,12 @@ export const EnableExtensionModal = ({
<DialogSection className="pt-1 min-w-0 flex flex-col gap-y-3">
<div className="text-sm text-foreground-light flex flex-col gap-y-3">
<p>
- We recommend using the <code className="text-code-inline">extensions</code>{' '}
- schema to keep extension objects separate from your own tables.
+ We recommend using the <code>extensions</code> schema to keep extension
+ objects separate from your own tables.
</p>
<p>
To use another schema, run the following in the SQL Editor. Replace{' '}
- <code className="text-code-inline">target_schema</code> with an existing
- schema name.
+ <code>target_schema</code> with an existing schema name.
</p>
</div>
<CodeBlock
diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction/CreateFunctionHeader.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction/CreateFunctionHeader.tsx
index 4a705baaec7..72bcd9a71f7 100644
--- a/apps/studio/components/interfaces/Database/Functions/CreateFunction/CreateFunctionHeader.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction/CreateFunctionHeader.tsx
@@ -16,11 +16,11 @@ export const CreateFunctionHeader = ({
{selectedFunction !== undefined ? (
isDuplicating ? (
<>
- Duplicate <code className="text-code-inline text-sm">{selectedFunction}</code>
+ Duplicate <code className="text-sm">{selectedFunction}</code>
</>
) : (
<>
- Edit <code className="text-code-inline text-sm">{selectedFunction}</code>
+ Edit <code className="text-sm">{selectedFunction}</code>
</>
)
) : (
diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
index dae8887e7d6..98b8ab83cca 100644
--- a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
@@ -199,8 +199,7 @@ export const CreateFunction = ({
label="Schema"
description={
<>
- Tables made in the table editor will be in{' '}
- <code className="text-code-inline">public</code>
+ Tables made in the table editor will be in <code>public</code>
</>
}
layout="horizontal"
@@ -318,8 +317,7 @@ export const CreateFunction = ({
<FormLabel className="text-base text-foreground">Definition</FormLabel>
<FormDescription className="text-sm text-foreground-light">
<p>
- The language below should be written in{' '}
- <code className="text-code-inline">{language}</code>.
+ The language below should be written in <code>{language}</code>.
</p>
{!isEditing && <p>Change the language in the Advanced Settings below.</p>}
</FormDescription>
diff --git a/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx b/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx
index e534e674558..5efad7ab821 100644
--- a/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx
+++ b/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx
@@ -286,9 +286,9 @@ export const EditHookPanel = () => {
selectedHook === undefined ? (
'Create a new database webhook'
) : (
- <>
+ <span>
Update webhook <code className="text-sm">{selectedHook.name}</code>
- </>
+ </span>
)
}
className="hooks-sidepanel mr-0 transform transition-all duration-300 ease-in-out"
diff --git a/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx b/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
index 3dea99ed6de..09a3f148538 100644
--- a/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
+++ b/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
@@ -91,7 +91,7 @@ export const HookList = ({ schema, filterString }: HookListProps) => {
</Table.td>
<Table.td className="hidden xl:table-cell">
<p className="truncate" title={url}>
- <code className="text-code-inline">{method}</code>: {url}
+ <code>{method}</code>: {url}
</p>
</Table.td>
<Table.td className="text-right">
@@ -102,7 +102,7 @@ export const HookList = ({ schema, filterString }: HookListProps) => {
<TooltipTrigger asChild>
<DropdownMenuTrigger asChild>
<Button
- className="px-1"
+ className="w-6.5"
icon={<MoreVerticalIcon />}
aria-label={`${x.name} actions`}
// Tooltip repeats the label; screen readers would read it twice
diff --git a/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx b/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx
index 23f656a19f7..415c1b4cd60 100644
--- a/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx
+++ b/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx
@@ -318,8 +318,7 @@ export const Indexes = () => {
visible={!!selectedIndexToDelete}
title={
<>
- Confirm to delete index{' '}
- <code className="text-code-inline">{selectedIndexToDelete?.name}</code>
+ Confirm to delete index <code>{selectedIndexToDelete?.name}</code>
</>
}
confirmLabel="Confirm delete"
diff --git a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx
index 0d2b891486a..b46522e370e 100644
--- a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx
+++ b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx
@@ -148,7 +148,7 @@ export const PolicyDetailsV2 = ({
<FormItem className="col-span-6 flex flex-col gap-y-1">
<FormLabel>
Table
- <code className="text-code-inline">on</code> clause
+ <code>on</code> clause
</FormLabel>
{authContext === 'database' && (
<FormControl>
@@ -233,7 +233,7 @@ export const PolicyDetailsV2 = ({
render={({ field }) => (
<FormItem className="col-span-6 flex flex-col gap-y-1">
<FormLabel>
- Policy Behavior <code className="text-code-inline">as</code> clause
+ Policy Behavior <code>as</code> clause
</FormLabel>
<FormControl>
<Select
@@ -270,7 +270,7 @@ export const PolicyDetailsV2 = ({
render={({ field }) => (
<FormItem className="col-span-12 flex flex-col gap-y-1">
<FormLabel>
- Policy Command <code className="text-code-inline">for</code> clause
+ Policy Command <code>for</code> clause
</FormLabel>
<FormControl>
<RadioGroup
@@ -308,7 +308,7 @@ export const PolicyDetailsV2 = ({
render={({ field }) => (
<FormItem className="col-span-12 flex flex-col gap-y-1">
<FormLabel htmlFor="roles">
- Target Roles <code className="text-code-inline">to</code> clause
+ Target Roles <code>to</code> clause
</FormLabel>
<FormControl>
<MultiSelector
diff --git a/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyRow.tsx b/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyRow.tsx
index 38a10468d4d..d0f9f81a723 100644
--- a/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyRow.tsx
+++ b/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyRow.tsx
@@ -77,14 +77,14 @@ export const PolicyRow = ({
</div>
</TableCell>
<TableCell className="w-[20%] truncate">
- <code className="text-code-inline">{policy.command}</code>
+ <code>{policy.command}</code>
</TableCell>
<TableCell className="w-[30%] truncate">
<div className="flex items-center gap-x-1">
<div className="text-foreground-lighter text-sm truncate">
{displayedRoles.slice(0, 2).map((role, i) => (
<span key={`policy-${role}-${i}`}>
- <code className="text-code-inline">{role}</code>
+ <code>{role}</code>
{i < Math.min(displayedRoles.length, 2) - 1 ? ', ' : ' '}
</span>
))}
@@ -105,7 +105,7 @@ export const PolicyRow = ({
>
{displayedRoles.slice(2).map((role, i, arr) => (
<>
- <code key={role} className="text-code-inline break-keep!">
+ <code key={role} className="break-keep!">
{role}
</code>
{i < arr.length - 1 && ', '}
diff --git a/apps/studio/components/interfaces/Database/ProtectedSchemaWarning.tsx b/apps/studio/components/interfaces/Database/ProtectedSchemaWarning.tsx
index a8ddb5f4bea..c9901160b5e 100644
--- a/apps/studio/components/interfaces/Database/ProtectedSchemaWarning.tsx
+++ b/apps/studio/components/interfaces/Database/ProtectedSchemaWarning.tsx
@@ -79,18 +79,18 @@ export const ProtectedSchemaWarning = ({
description={
reason === 'fdw' && fdwType === 'iceberg' ? (
<p>
- The <code className="text-code-inline">{schema}</code> schema is used by Supabase to
- connect to analytics buckets and is read-only through the dashboard.
+ The <code>{schema}</code> schema is used by Supabase to connect to analytics buckets and
+ is read-only through the dashboard.
</p>
) : reason === 'fdw' && fdwType === 's3_vectors' ? (
<p>
- The <code className="text-code-inline">{schema}</code> schema is used by Supabase to
- connect to vector buckets and is read-only through the dashboard.
+ The <code>{schema}</code> schema is used by Supabase to connect to vector buckets and is
+ read-only through the dashboard.
</p>
) : (
<p>
- The <code className="text-code-inline">{schema}</code> schema is managed by Supabase and
- is read-only through the dashboard.
+ The <code>{schema}</code> schema is managed by Supabase and is read-only through the
+ dashboard.
</p>
)
}
diff --git a/apps/studio/components/interfaces/Database/Replication/CreatePipeline/PipelineValidationAdmonition.test.tsx b/apps/studio/components/interfaces/Database/Replication/CreatePipeline/PipelineValidationAdmonition.test.tsx
index ddcf53a51ce..6b8daf292fe 100644
--- a/apps/studio/components/interfaces/Database/Replication/CreatePipeline/PipelineValidationAdmonition.test.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/CreatePipeline/PipelineValidationAdmonition.test.tsx
@@ -73,5 +73,4 @@ test('preserves API copy and inline code in compact results', () => {
expect(screen.getByText('The dataset was not found.')).toBeInTheDocument()
expect(screen.queryByRole('list')).not.toBeInTheDocument()
expect(screen.getByText('my-gcp-proj').tagName).toBe('CODE')
- expect(screen.getByText('my-gcp-proj')).toHaveClass('text-code-inline')
})
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx
index 33ffb29c4f3..5ca06fb78d2 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx
@@ -187,12 +187,8 @@ export const EdgeFunctionDetails = () => {
<em className="text-foreground not-italic">
only by the legacy secret
</em>{' '}
- in the{' '}
- <code className="text-code-inline break-keep!">
- Authorization
- </code>{' '}
- header. The <code className="text-code-inline">anon</code> key
- satisfies this.
+ in the <code className="break-keep!">Authorization</code> header.
+ The <code>anon</code> key satisfies this.
</p>
<p>
Recommended: OFF with JWT and custom auth logic in your function
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/DefaultEdgeFunctionSecrets.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/DefaultEdgeFunctionSecrets.tsx
index 16d1a205c57..e1e7985eba8 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/DefaultEdgeFunctionSecrets.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/DefaultEdgeFunctionSecrets.tsx
@@ -52,8 +52,8 @@ const SecretRow = ({ secret }: { secret: DefaultEdgeFunctionSecret }) => {
toast.success(`Copied ${secret.name}`)
}}
>
- <p className="truncate">
- <code className="text-code-inline">{secret.name}</code>
+ <p className="truncate py-1">
+ <code>{secret.name}</code>
</p>
</TooltipTrigger>
<TooltipContent side="bottom">Click to copy</TooltipContent>
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
index 03afbda90e9..217bf6406a4 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
@@ -42,7 +42,7 @@ const EdgeFunctionSecret = ({ secret, onSelectEdit, onSelectDelete }: EdgeFuncti
}}
>
<p className="truncate py-1">
- <code className="text-code-inline">{secret.name}</code>
+ <code>{secret.name}</code>
</p>
</TooltipTrigger>
<TooltipContent side="bottom">Click to copy</TooltipContent>
@@ -50,7 +50,7 @@ const EdgeFunctionSecret = ({ secret, onSelectEdit, onSelectDelete }: EdgeFuncti
</TableCell>
<TableCell>
<p className="max-w-96 truncate" title={secret.value}>
- <code className="text-code-inline text-foreground-light!">{secret.value}</code>
+ <code className="text-foreground-light!">{secret.value}</code>
</p>
</TableCell>
<TableCell>
diff --git a/apps/studio/components/interfaces/Functions/FunctionsEmptyState.tsx b/apps/studio/components/interfaces/Functions/FunctionsEmptyState.tsx
index ad6827ad749..9eb807b0fc2 100644
--- a/apps/studio/components/interfaces/Functions/FunctionsEmptyState.tsx
+++ b/apps/studio/components/interfaces/Functions/FunctionsEmptyState.tsx
@@ -184,9 +184,8 @@ const SelfHostedManualFunctionContent = () => (
<h4 className="text-base text-foreground">Self-Hosted</h4>
</div>
<p className="text-sm text-foreground-light mb-4 mt-1">
- Place each function at{' '}
- <code className="text-code-inline">volumes/functions/&lt;function-name&gt;/index.ts</code> and
- restart the <code className="text-code-inline">functions</code> service to pick up changes.
+ Place each function at <code>volumes/functions/&lt;function-name&gt;/index.ts</code> and
+ restart the <code>functions</code> service to pick up changes.
</p>
<DocsButton href={`${DOCS_URL}/guides/self-hosting/self-hosted-functions`} />
</div>
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet/CreateCronJobSheet.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet/CreateCronJobSheet.tsx
index 760d64770b2..a8a65c5ba23 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet/CreateCronJobSheet.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CreateCronJobSheet/CreateCronJobSheet.tsx
@@ -392,8 +392,8 @@ export const CreateCronJobSheet = ({ open, selectedCronJob, onClose }: CreateCro
// @ts-ignore
title={
<span>
- Enable <code className="text-code-inline w-min">pg_net</code> for HTTP
- requests or Edge Functions
+ Enable <code className="w-min">pg_net</code> for HTTP requests or Edge
+ Functions
</span>
}
description={
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobPage.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobPage.tsx
index 73fa7b7e333..0796e42ba28 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobPage.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobPage.tsx
@@ -85,7 +85,7 @@ export const CronJobPage = () => {
with command{' '}
<Tooltip>
<TooltipTrigger asChild>
- <code className="text-code-inline max-w-[200px] inline-block truncate align-bottom cursor-pointer">
+ <code className="max-w-[200px] inline-block truncate align-bottom cursor-pointer">
{job.command}
</code>
</TooltipTrigger>
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.CleanupNotice.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.CleanupNotice.tsx
index df32af0937c..75544470d0e 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.CleanupNotice.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.CleanupNotice.tsx
@@ -90,9 +90,8 @@ const CronJobRunDetailsOverflowDialog = ({
<DialogSection className="flex flex-col gap-y-2">
<p className="text-sm">
The dashboard fetches data for the cron jobs overview by running a join between the{' '}
- <code className="text-code-inline">cron.job</code> and{' '}
- <code className="text-code-inline break-keep!">cron.job_run_details</code> tables to
- show each cron job's latest run.
+ <code>cron.job</code> and <code className="break-keep!">cron.job_run_details</code>{' '}
+ tables to show each cron job's latest run.
</p>
<p className="text-sm">
@@ -102,12 +101,12 @@ const CronJobRunDetailsOverflowDialog = ({
<TooltipContent side="bottom" className="flex flex-col gap-y-1">
<p>Estimated cost: {queryCost?.toLocaleString()}</p>
<p className="text-foreground-light">
- Determined via the <code className="text-code-inline">EXPLAIN</code> command
+ Determined via the <code>EXPLAIN</code> command
</p>
</TooltipContent>
</Tooltip>{' '}
exceeds safety thresholds, likely due to the size of{' '}
- <code className="text-code-inline break-keep!">cron.job_run_details</code> table.
+ <code className="break-keep!">cron.job_run_details</code> table.
</p>
</DialogSection>
@@ -120,8 +119,8 @@ const CronJobRunDetailsOverflowDialog = ({
<p className="text-sm">
We recommend removing the old run history now, then scheduling a cron job that keeps
- trimming the <code className="text-code-inline">cron.job_run_details</code> table
- automatically. This also prevents unnecessary bloat on the database.
+ trimming the <code>cron.job_run_details</code> table automatically. This also prevents
+ unnecessary bloat on the database.
</p>
<div className="flex flex-col gap-y-2 text-sm">
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.EnableCleanupButton.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.EnableCleanupButton.tsx
index a223af73fae..eba6a39916b 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.EnableCleanupButton.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.EnableCleanupButton.tsx
@@ -98,8 +98,8 @@ export const EnableCleanupButton = ({ onScheduled }: EnableCleanupButtonProps) =
<DialogSection className="flex flex-col gap-y-4">
<p className="text-sm">
Every cron job run is recorded in the{' '}
- <code className="text-code-inline break-keep!">cron.job_run_details</code> table.
- Without periodic cleanup, the table grows indefinitely and bloats the database.
+ <code className="break-keep!">cron.job_run_details</code> table. Without periodic
+ cleanup, the table grows indefinitely and bloats the database.
</p>
<div className="flex flex-col gap-y-2 text-sm">
<p className="text-foreground">Delete run history</p>
diff --git a/apps/studio/components/interfaces/Integrations/Integration/ConnectedResourceGroupSection.tsx b/apps/studio/components/interfaces/Integrations/Integration/ConnectedResourceGroupSection.tsx
index f8e9bfab721..57b33aebb7f 100644
--- a/apps/studio/components/interfaces/Integrations/Integration/ConnectedResourceGroupSection.tsx
+++ b/apps/studio/components/interfaces/Integrations/Integration/ConnectedResourceGroupSection.tsx
@@ -60,6 +60,7 @@ export const ResourceGroupSection = ({
>
<div className="flex min-w-0 flex-col">
<code
+ data-code-style="plain"
className="truncate font-mono text-sm text-foreground"
title={item.identifier}
>
diff --git a/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/AdvancedSettings.tsx b/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/AdvancedSettings.tsx
index 77b60047ad9..987e3c09171 100644
--- a/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/AdvancedSettings.tsx
+++ b/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/AdvancedSettings.tsx
@@ -86,17 +86,16 @@ export const AdvancedSettings = ({
description={
ext?.installed_version ? (
<>
- Installed in <code className="text-code-inline">{ext.schema}</code> schema
+ Installed in <code>{ext.schema}</code> schema
</>
) : defaultSchema ? (
<>
- Must be installed in the{' '}
- <code className="text-code-inline">{defaultSchema}</code> schema
+ Must be installed in the <code>{defaultSchema}</code> schema
</>
) : recommendedSchema ? (
<>
- Use the <code className="text-code-inline">{recommendedSchema}</code> schema
- for full compatibility with related features
+ Use the <code>{recommendedSchema}</code> schema for full compatibility with
+ related features
</>
) : undefined
}
diff --git a/apps/studio/components/interfaces/Integrations/Queues/QueuesSettings.tsx b/apps/studio/components/interfaces/Integrations/Queues/QueuesSettings.tsx
index b4f736327b6..9d33b17ae3c 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/QueuesSettings.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/QueuesSettings.tsx
@@ -215,24 +215,18 @@ export const QueuesSettings = () => {
<>
<p className="max-w-2xl">
When enabled, you will be able to use the following functions from the{' '}
- <code className="text-code-inline">{QUEUES_SCHEMA}</code> schema to
- manage your queues via any Supabase client library or PostgREST
- endpoints:
+ <code>{QUEUES_SCHEMA}</code> schema to manage your queues via any
+ Supabase client library or PostgREST endpoints:
</p>
<p className="mt-2">
- <code className="text-code-inline">send</code>,{' '}
- <code className="text-code-inline">send_batch</code>,{' '}
- <code className="text-code-inline">read</code>,{' '}
- <code className="text-code-inline">pop</code>,
- <code className="text-code-inline">archive</code>, and{' '}
- <code className="text-code-inline">delete</code>
+ <code>send</code>, <code>send_batch</code>, <code>read</code>,{' '}
+ <code>pop</code>, <code>archive</code>, and <code>delete</code>
</p>
{!IS_PLATFORM ? (
<div className="mt-6 max-w-2xl">
When running Supabase locally with the CLI or self-hosting using
Docker Compose, you also need to update your configuration to expose
- the <code className="text-code-inline">{QUEUES_SCHEMA}</code>{' '}
- schema.
+ the <code>{QUEUES_SCHEMA}</code> schema.
<br />
<InlineLink
href={`${DOCS_URL}/guides/queues/expose-self-hosted-queues`}
@@ -271,9 +265,7 @@ export const QueuesSettings = () => {
{tablesWithoutRLS.map((x) => {
return (
<li key={x.name}>
- <code className="text-code-inline">
- {queueDisplayName(x.name)}
- </code>
+ <code>{queueDisplayName(x.name)}</code>
</li>
)
})}
@@ -291,28 +283,25 @@ export const QueuesSettings = () => {
<Admonition type="warning" className="mt-2">
<p>
Queues will be exposed and managed through the{' '}
- <code className="text-code-inline">{QUEUES_SCHEMA}</code> schema
+ <code>{QUEUES_SCHEMA}</code> schema
</p>
<p className="text-foreground-light">
- Database functions will be created in the{' '}
- <code className="text-code-inline">{QUEUES_SCHEMA}</code> schema upon
- enabling. Call these functions via any Supabase client library or
- PostgREST endpoint to manage your queues. Permissions on individual
- queues can also be further managed through privileges and row level
- security (RLS).
+ Database functions will be created in the <code>{QUEUES_SCHEMA}</code>{' '}
+ schema upon enabling. Call these functions via any Supabase client
+ library or PostgREST endpoint to manage your queues. Permissions on
+ individual queues can also be further managed through privileges and row
+ level security (RLS).
</p>
</Admonition>
)}
{formState.dirtyFields.enable && field.value === false && (
<Admonition type="warning" className="mt-2">
<p>
- The <code className="text-code-inline">{QUEUES_SCHEMA}</code> schema
- will be removed once disabled
+ The <code>{QUEUES_SCHEMA}</code> schema will be removed once disabled
</p>
<p className="text-foreground-light">
- Ensure that the database functions from the{' '}
- <code className="text-code-inline">{QUEUES_SCHEMA}</code> schema are not
- in use within your client applications before disabling.
+ Ensure that the database functions from the <code>{QUEUES_SCHEMA}</code>{' '}
+ schema are not in use within your client applications before disabling.
</p>
</Admonition>
)}
@@ -363,7 +352,7 @@ export const QueuesSettings = () => {
{tablesWithoutRLS.map((x) => {
return (
<li key={x.id}>
- <code className="text-code-inline">{queueDisplayName(x.name)}</code>
+ <code>{queueDisplayName(x.name)}</code>
</li>
)
})}
diff --git a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx
index c0970afd440..97d2c2fe544 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx
@@ -255,7 +255,7 @@ export const QueueSettings = ({}: QueueSettingsProps) => {
{isExposed && (
<>
These will also determine access to each function available from the{' '}
- <code className="text-code-inline">pgmq_public</code> schema.
+ <code>pgmq_public</code> schema.
</>
)}
</SheetDescription>
diff --git a/apps/studio/components/interfaces/Integrations/Vault/Secrets/DeleteSecretModal.tsx b/apps/studio/components/interfaces/Integrations/Vault/Secrets/DeleteSecretModal.tsx
index 7ff7934dc31..7825920f702 100644
--- a/apps/studio/components/interfaces/Integrations/Vault/Secrets/DeleteSecretModal.tsx
+++ b/apps/studio/components/interfaces/Integrations/Vault/Secrets/DeleteSecretModal.tsx
@@ -68,7 +68,7 @@ export const DeleteSecretModal = () => {
<div className="space-y-1">
<p className="text-sm">{selectedSecret?.description}</p>
<p className="text-sm text-foreground-light">
- ID: <code className="text-code-inline">{selectedSecret?.id}</code>
+ ID: <code>{selectedSecret?.id}</code>
</p>
</div>
</AlertDialogDescription>
diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/ColumnType.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/ColumnType.tsx
index aa16441d53b..fdb2c5e36f7 100644
--- a/apps/studio/components/interfaces/Integrations/Wrappers/ColumnType.tsx
+++ b/apps/studio/components/interfaces/Integrations/Wrappers/ColumnType.tsx
@@ -263,14 +263,12 @@ export const ColumnType = ({
<CriticalIcon />
<AlertTitle>
{' '}
- It is recommended to use{' '}
- <code className="text-code-inline">{recommendation.alternative}</code> instead
+ It is recommended to use <code>{recommendation.alternative}</code> instead
</AlertTitle>
<AlertDescription>
<p>
- Postgres recommends against using the data type{' '}
- <code className="text-code-inline">{field.value}</code> unless you have a very
- specific use case.
+ Postgres recommends against using the data type <code>{field.value}</code>{' '}
+ unless you have a very specific use case.
</p>
<div className="flex items-center space-x-2 mt-3">
<Button asChild icon={<ExternalLinkIcon />}>
diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/OverviewTab.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/OverviewTab.tsx
index ba5e278cd91..aa4ff7cc052 100644
--- a/apps/studio/components/interfaces/Integrations/Wrappers/OverviewTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/Wrappers/OverviewTab.tsx
@@ -55,8 +55,7 @@ const AddNewWrapperCTA = () => {
{wrapperMeta.minimumExtensionVersion}. You have version{' '}
{wrappersExtension?.installed_version} installed. Please{' '}
{databaseNeedsUpgrading && 'upgrade your database then '}update the extension by
- disabling and enabling the <code className="text-code-inline">wrappers</code> extension
- to create this wrapper.
+ disabling and enabling the <code>wrappers</code> extension to create this wrapper.
</p>
<p className="text-warning">
Warning: Before reinstalling the wrapper extension, you must first remove all existing
diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/OverviewTab.tsx b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/OverviewTab.tsx
index b1cfe963c4a..6f851da2da8 100644
--- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/OverviewTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/OverviewTab.tsx
@@ -374,7 +374,7 @@ const StripeSyncContent = ({ hideInstallCTA = false }: { hideInstallCTA?: boolea
</p>
<ul className="list-disc pl-5 mt-2 text-sm text-foreground-light space-y-1">
<li>
- Remove the <code className="text-code-inline">stripe</code> schema and all tables
+ Remove the <code>stripe</code> schema and all tables
</li>
<li>Delete all synced Stripe data</li>
<li>Remove the associated Edge Functions</li>
diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncChangesCard.tsx b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncChangesCard.tsx
index 23f4543155a..fc7efb3e65f 100644
--- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncChangesCard.tsx
+++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncChangesCard.tsx
@@ -121,7 +121,7 @@ export const StripeSyncChangesCard = ({
/>
)}
<span>
- {dbLine} <code className="text-code-inline">stripe</code>
+ {dbLine} <code>stripe</code>
</span>
</li>
<li className={ListItemClassName}>
@@ -135,8 +135,7 @@ export const StripeSyncChangesCard = ({
/>
)}
<span>
- {tableAndViewLine} <code className="text-code-inline">stripe</code> schema for
- synced Stripe data
+ {tableAndViewLine} <code>stripe</code> schema for synced Stripe data
</span>
</li>
<li className={ListItemClassName}>
diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx
index 55cacc9a0d8..52206f6a6a3 100644
--- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx
+++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx
@@ -110,8 +110,8 @@ export const StripeSyncSettingsPage = () => {
<h5 className="text-sm">View Stripe data in Table Editor</h5>
<p className="text-sm text-foreground-light text-balance">
The Stripe Sync Engine stores all synced data in the{' '}
- <code className="text-code-inline break-keep!">stripe</code> schema. You can
- view and query this data directly in the Table Editor.
+ <code className="break-keep!">stripe</code> schema. You can view and query this
+ data directly in the Table Editor.
</p>
</div>
diff --git a/apps/studio/components/interfaces/JwtSecrets/jwt-settings.tsx b/apps/studio/components/interfaces/JwtSecrets/jwt-settings.tsx
index 678405726ab..4903cdde117 100644
--- a/apps/studio/components/interfaces/JwtSecrets/jwt-settings.tsx
+++ b/apps/studio/components/interfaces/JwtSecrets/jwt-settings.tsx
@@ -188,8 +188,8 @@ export const JWTSettings = () => {
{legacyAPIKeysStatus && legacyAPIKeysStatus.enabled && (
<p className="leading-normal!">
<em className="text-warning not-italic">
- This includes the <code className="text-code-inline">anon</code> and{' '}
- <code className="text-code-inline">service_role</code> JWT based API keys.
+ This includes the <code>anon</code> and <code>service_role</code> JWT
+ based API keys.
</em>{' '}
Consider switching to publishable and secret API keys to disable them.
</p>
@@ -302,10 +302,10 @@ export const JWTSettings = () => {
API Keys
</InlineLink>
, create a publishable key and secret key, then swap them into your apps
- in place of <code className="text-code-inline">anon</code> and{' '}
- <code className="text-code-inline break-keep!">service_role</code>{' '}
- respectively. Watch the "Last used" indicators to confirm no traffic still
- depends on the legacy keys.
+ in place of <code>anon</code> and{' '}
+ <code className="break-keep!">service_role</code> respectively. Watch the
+ "Last used" indicators to confirm no traffic still depends on the legacy
+ keys.
</p>
</li>
<li>
@@ -317,13 +317,10 @@ export const JWTSettings = () => {
to start signing new JWTs with the standby key.
</p>
<p className="text-foreground-lighter">
- Existing <code className="text-code-inline">anon</code>,{' '}
- <code className="text-code-inline">service_role</code>, and active user
+ Existing <code>anon</code>, <code>service_role</code>, and active user
JWTs stay valid. Before rotating, switch any code that verifies JWTs
- directly against the legacy secret (e.g.{' '}
- <code className="text-code-inline">jose</code>,{' '}
- <code className="text-code-inline">jsonwebtoken</code>) to{' '}
- <code className="text-code-inline">supabase.auth.getClaims()</code> or a
+ directly against the legacy secret (e.g. <code>jose</code>,{' '}
+ <code>jsonwebtoken</code>) to <code>supabase.auth.getClaims()</code> or a
JWKS-based verifier, and disable the "Verify JWT" setting on any affected
Edge Functions.
</p>
@@ -356,7 +353,7 @@ export const JWTSettings = () => {
</li>
<li>
Improve app's performance by using public keys to verify JWTs instead of
- calling <code className="text-code-inline">getUser()</code>.
+ calling <code>getUser()</code>.
</li>
</ul>
)}
diff --git a/apps/studio/components/interfaces/Markdown.tsx b/apps/studio/components/interfaces/Markdown.tsx
index ee462c7e8be..ce235d6e835 100644
--- a/apps/studio/components/interfaces/Markdown.tsx
+++ b/apps/studio/components/interfaces/Markdown.tsx
@@ -17,11 +17,6 @@ const H3 = ({
}: React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>) => (
<h3 className="mb-1">{children}</h3>
)
-const Code = ({
- children,
-}: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>) => (
- <code className="text-code-inline">{children}</code>
-)
const A = ({
href,
children,
@@ -42,7 +37,6 @@ export const Markdown = ({
remarkPlugins={[remarkGfm]}
components={{
h3: H3,
- code: Code,
a: A,
}}
{...props}
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
index 9456051afeb..237eeb87b07 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
@@ -63,8 +63,7 @@ const PartnerManagedPlanNotice = ({
title="Organization plans are managed through Stripe."
details={
<>
- Run <code className="text-code-inline">{stripeProjectsUpgradeCommand}</code> in your
- project directory.
+ Run <code>{stripeProjectsUpgradeCommand}</code> in your project directory.
</>
}
cta={{
diff --git a/apps/studio/components/interfaces/Organization/CloudMarketplace/AwsMarketplaceOnboarding.tsx b/apps/studio/components/interfaces/Organization/CloudMarketplace/AwsMarketplaceOnboarding.tsx
index 91ba534f3d9..724b3843b3b 100644
--- a/apps/studio/components/interfaces/Organization/CloudMarketplace/AwsMarketplaceOnboarding.tsx
+++ b/apps/studio/components/interfaces/Organization/CloudMarketplace/AwsMarketplaceOnboarding.tsx
@@ -164,7 +164,7 @@ export const AwsMarketplaceOnboardingScreen = ({ buyerId }: { buyerId?: string }
description={
<p>
Open the onboarding link from AWS Marketplace again. The link must include a{' '}
- <code className="text-code-inline">buyer_id</code> parameter.
+ <code>buyer_id</code> parameter.
</p>
}
/>
diff --git a/apps/studio/components/interfaces/Organization/OrgNotFound.tsx b/apps/studio/components/interfaces/Organization/OrgNotFound.tsx
index 8413d552af7..18159493f7e 100644
--- a/apps/studio/components/interfaces/Organization/OrgNotFound.tsx
+++ b/apps/studio/components/interfaces/Organization/OrgNotFound.tsx
@@ -23,7 +23,7 @@ export const OrgNotFound = ({ slug }: { slug?: string }) => {
<>
{slug ? (
<>
- The organization <code className="text-code-inline">{slug}</code>{' '}
+ The organization <code>{slug}</code>{' '}
</>
) : (
<>This organization </>
diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsx
index 986b66f2123..0dee95e19a1 100644
--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsx
+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsx
@@ -89,7 +89,7 @@ export const PlatformWebhooksDeliveryDetailsSheet = ({
<CardContent className="grid grid-cols-1 gap-4 p-4 @md:grid-cols-2">
<div className="space-y-1">
<p className="text-sm text-foreground-light">Delivery ID</p>
- <code className="text-code-inline">{selectedDelivery.id}</code>
+ <code>{selectedDelivery.id}</code>
</div>
<div className="space-y-1">
<p className="text-sm text-foreground-light">Attempt</p>
@@ -132,11 +132,11 @@ export const PlatformWebhooksDeliveryDetailsSheet = ({
<TabsContent value="event" className="space-y-4 pt-4">
<div className="space-y-1">
<p className="text-sm text-foreground-light">Event type</p>
- <code className="text-code-inline">{selectedDelivery.eventType}</code>
+ <code>{selectedDelivery.eventType}</code>
</div>
<div className="space-y-1">
<p className="text-sm text-foreground-light">Event ID</p>
- <code className="text-code-inline">{selectedDelivery.id}</code>
+ <code>{selectedDelivery.id}</code>
</div>
<div className="space-y-1">
<p className="text-sm text-foreground-light">Event timestamp</p>
diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointDetails.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointDetails.tsx
index f520b2f5e4d..3c61e177207 100644
--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointDetails.tsx
+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointDetails.tsx
@@ -81,7 +81,7 @@ const DELIVERY_COLUMNS: ColumnDef<WebhookDelivery>[] = [
{
accessorKey: 'eventType',
header: ({ column }) => <TanStackTableHeadSort column={column}>Event</TanStackTableHeadSort>,
- cell: ({ row }) => <code className="text-code-inline text-xs">{row.original.eventType}</code>,
+ cell: ({ row }) => <code className="text-xs">{row.original.eventType}</code>,
},
{
accessorKey: 'responseCode',
@@ -234,10 +234,7 @@ export const PlatformWebhooksEndpointDetails = ({
? ['All events (*)']
: selectedEndpoint.eventTypes
).map((eventType) => (
- <code
- key={eventType}
- className="text-code-inline rounded-md border px-3 py-1.5 text-2xs"
- >
+ <code key={eventType} className="rounded-md border px-3 py-1.5 text-2xs">
{eventType}
</code>
))}
@@ -249,6 +246,7 @@ export const PlatformWebhooksEndpointDetails = ({
{selectedEndpoint.customHeaders.map((header) => (
<div
key={header.id}
+ data-code-style="plain"
className="px-2 py-2 font-mono font-medium text-xs flex items-center gap-2 flex-wrap"
>
<code className="text-code_block-4">{header.key}:</code>
diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx
index 8cd520978ec..e8f9c68587f 100644
--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx
+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx
@@ -457,8 +457,7 @@ export const PlatformWebhooksEndpointSheet = ({
/>
</FormControl>
<span className="text-sm text-foreground">
- Subscribe to all events{' '}
- <code className="text-code-inline">(*)</code>
+ Subscribe to all events <code>(*)</code>
</span>
</Label>
</div>
@@ -555,7 +554,7 @@ export const PlatformWebhooksEndpointSheet = ({
)
}}
/>
- <code className="text-code-inline">{eventType}</code>
+ <code>{eventType}</code>
</Label>
)
})}
diff --git a/apps/studio/components/interfaces/Project/APIKeys.tsx b/apps/studio/components/interfaces/Project/APIKeys.tsx
index 5c8ada1b442..049b14deabe 100644
--- a/apps/studio/components/interfaces/Project/APIKeys.tsx
+++ b/apps/studio/components/interfaces/Project/APIKeys.tsx
@@ -146,8 +146,8 @@ export const APIKeys = () => {
<div className="space-y-2">
<p className="text-sm">API Key</p>
<div className="flex items-center space-x-1 -ml-1">
- <code className="text-code-inline">{anonKey?.name}</code>
- <code className="text-code-inline">public</code>
+ <code>{anonKey?.name}</code>
+ <code>public</code>
</div>
</div>
)
diff --git a/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/EnableIndexAdvisorButton.tsx b/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/EnableIndexAdvisorButton.tsx
index 6bf3bc380c7..52f257f9431 100644
--- a/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/EnableIndexAdvisorButton.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/EnableIndexAdvisorButton.tsx
@@ -101,10 +101,9 @@ export const EnableIndexAdvisorDialog = ({
on your actual query patterns.
</p>
<p>
- This will install the{' '}
- <code className="text-code-inline break-normal!">index_advisor</code> and{' '}
- <code className="text-code-inline break-normal!">hypopg</code> Postgres extensions so
- Index Advisor can analyse queries and suggest performance-improving indexes.
+ This will install the <code className="break-normal!">index_advisor</code> and{' '}
+ <code className="break-normal!">hypopg</code> Postgres extensions so Index Advisor can
+ analyse queries and suggest performance-improving indexes.
</p>
</AlertDialogDescription>
</AlertDialogHeader>
diff --git a/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx b/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx
index 91db81f5e3b..a616e09863e 100644
--- a/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx
+++ b/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx
@@ -421,8 +421,8 @@ export const RealtimeSettings = () => {
<p className="prose max-w-full text-sm">
Private mode is {isSettingToPrivate ? 'being ' : ''}
enabled, but no RLS policies exist on the{' '}
- <code className="text-code-inline">realtime.messages</code>{' '}
- table. No messages will be received by users.
+ <code>realtime.messages</code> table. No messages will be
+ received by users.
</p>
}
actions={
diff --git a/apps/studio/components/interfaces/Reports/v2/ReportsSelectFilter.tsx b/apps/studio/components/interfaces/Reports/v2/ReportsSelectFilter.tsx
index 8705e45b035..5935d2b60cd 100644
--- a/apps/studio/components/interfaces/Reports/v2/ReportsSelectFilter.tsx
+++ b/apps/studio/components/interfaces/Reports/v2/ReportsSelectFilter.tsx
@@ -124,9 +124,7 @@ export const ReportsSelectFilter = ({
<span className="text-foreground-lighter">{option.description}</span>
)}
</div>
- {!!option.quantity && (
- <code className="p-0 px-1 text-code-inline">{option.quantity}</code>
- )}
+ {!!option.quantity && <code className="p-0 px-1">{option.quantity}</code>}
</div>
</Label>
</CommandItem>
diff --git a/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx b/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx
index 52550168756..413715458d8 100644
--- a/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx
@@ -53,7 +53,7 @@ export const DownloadSnippetModal = ({ id, ...props }: DownloadSnippetModalProps
caption: (
<>
Run this command from your project directory to download the snippet in a new migration
- named <code className="text-code-inline break-normal">{migrationName}</code>.
+ named <code className="break-normal">{migrationName}</code>.
</>
),
docLink: {
@@ -70,7 +70,7 @@ export const DownloadSnippetModal = ({ id, ...props }: DownloadSnippetModalProps
<>
Run this command from your project directory to download the snippet. If your query
consists of sample data, append it to the end of{' '}
- <code className="text-code-inline break-normal">supabase/seed.sql</code>.
+ <code className="break-normal">supabase/seed.sql</code>.
</>
),
docLink: {
@@ -86,7 +86,7 @@ export const DownloadSnippetModal = ({ id, ...props }: DownloadSnippetModalProps
caption: (
<>
Run this command from your project directory to download the snippet into a new SQL file
- named <code className="text-code-inline break-normal">{migrationName}.sql</code>.
+ named <code className="break-normal">{migrationName}.sql</code>.
</>
),
cli: generateFileCliCommand(id, migrationName),
diff --git a/apps/studio/components/interfaces/SQLEditor/RunQueryWarningModal.tsx b/apps/studio/components/interfaces/SQLEditor/RunQueryWarningModal.tsx
index c5fa970eed1..fa954b9cf7e 100644
--- a/apps/studio/components/interfaces/SQLEditor/RunQueryWarningModal.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/RunQueryWarningModal.tsx
@@ -96,8 +96,7 @@ export const RunQueryWarningModal = ({
id: 'update-without-where',
summary: (
<>
- This query runs an <code className="text-code-inline">UPDATE</code> without a{' '}
- <code className="text-code-inline">WHERE</code> clause
+ This query runs an <code>UPDATE</code> without a <code>WHERE</code> clause
</>
),
description: 'It may update every row in the target table.',
@@ -126,7 +125,7 @@ export const RunQueryWarningModal = ({
description: (
<>
Clients using anon or authenticated keys may be able to access{' '}
- {tableName ? <code className="text-code-inline">{tableName}</code> : 'these tables'}.
+ {tableName ? <code>{tableName}</code> : 'these tables'}.
</>
),
})
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx
index c88b08ae227..75e38576e67 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx
@@ -160,7 +160,7 @@ export const UtilityTabResults = forwardRef<HTMLDivElement, UtilityTabResultsPro
return (
<div className="bg-table-header-light in-data-[theme*=dark]:bg-table-header-dark overflow-y-auto">
<p className="m-0 border-0 px-4 py-4 text-sm text-foreground-light">
- Click <code className="text-code-inline">Run</code> to execute your query
+ Click <code>Run</code> to execute your query
</p>
</div>
)
diff --git a/apps/studio/components/interfaces/Settings/API/DataApiDisabledAlert.tsx b/apps/studio/components/interfaces/Settings/API/DataApiDisabledAlert.tsx
index f101dcc32ff..260e7a1f916 100644
--- a/apps/studio/components/interfaces/Settings/API/DataApiDisabledAlert.tsx
+++ b/apps/studio/components/interfaces/Settings/API/DataApiDisabledAlert.tsx
@@ -10,8 +10,7 @@ export const DataApiDisabledAlert = () => {
With this setting disabled, you will not be able to query any schemas via the Data API.
</p>
<p>
- You will see errors from the Postgrest endpoint{' '}
- <code className="text-code-inline">/rest/v1/</code>.
+ You will see errors from the Postgrest endpoint <code>/rest/v1/</code>.
</p>
</AlertDescription>
</Alert>
diff --git a/apps/studio/components/interfaces/Settings/API/HardenAPIModal.tsx b/apps/studio/components/interfaces/Settings/API/HardenAPIModal.tsx
index d3f17181756..c9ffb634671 100644
--- a/apps/studio/components/interfaces/Settings/API/HardenAPIModal.tsx
+++ b/apps/studio/components/interfaces/Settings/API/HardenAPIModal.tsx
@@ -107,8 +107,7 @@ export const HardenAPIModal = ({ visible, onClose }: HardenAPIModalProps) => {
<DialogHeader>
<DialogTitle>Switch the default API schema</DialogTitle>
<DialogDescription>
- Expose a custom schema instead of the <code className="text-code-inline">public</code>{' '}
- schema
+ Expose a custom schema instead of the <code>public</code> schema
</DialogDescription>
</DialogHeader>
@@ -116,10 +115,9 @@ export const HardenAPIModal = ({ visible, onClose }: HardenAPIModalProps) => {
<DialogSection className="text-sm text-foreground-light">
<p>
- By default, the <code className="text-code-inline">public</code> schema is used to
- generate API routes. In some cases, it's better to use a custom schema. This is
- important if you use tools that generate tables in the{' '}
- <code className="text-code-inline">public</code> schema to{' '}
+ By default, the <code>public</code> schema is used to generate API routes. In some
+ cases, it's better to use a custom schema. This is important if you use tools that
+ generate tables in the <code>public</code> schema to{' '}
<span className="text-primary">prevent accidental exposure of data</span>.
</p>
<DocsButton
@@ -140,14 +138,12 @@ export const HardenAPIModal = ({ visible, onClose }: HardenAPIModalProps) => {
) : undefined
}
>
- 1. Create a custom <code className="text-code-inline">api</code> schema and expose it
+ 1. Create a custom <code>api</code> schema and expose it
</DialogDisclosureTrigger>
<DialogDisclosureContent className="text-sm text-foreground-light flex flex-col gap-y-4">
<p className="mx-5">
- Click the button below to create a new schema named{' '}
- <code className="text-code-inline">api</code> and grant the{' '}
- <code className="text-code-inline">anon</code> and{' '}
- <code className="text-code-inline">authenticated</code> roles usage privileges on this
+ Click the button below to create a new schema named <code>api</code> and grant the{' '}
+ <code>anon</code> and <code>authenticated</code> roles usage privileges on this
schema. This schema will thereafter also be exposed to the Data API.
</p>
@@ -157,9 +153,8 @@ export const HardenAPIModal = ({ visible, onClose }: HardenAPIModalProps) => {
description={
<div className="flex flex-col gap-y-2">
<p>
- The following query will be run to create the{' '}
- <code className="text-code-inline">api</code> schema , as well as to grant the
- necessary privileges to the respective roles
+ The following query will be run to create the <code>api</code> schema , as
+ well as to grant the necessary privileges to the respective roles
</p>
<CodeBlock
language="sql"
@@ -193,11 +188,10 @@ export const HardenAPIModal = ({ visible, onClose }: HardenAPIModalProps) => {
<div className="flex flex-col gap-y-4 px-5 pb-4">
<p>
- Under these new settings, the <code className="text-code-inline">anon</code> and{' '}
- <code className="text-code-inline">authenticated</code> roles can execute functions
- defined in the <code className="text-code-inline">api</code> schema, but they have
- no automatic permissions on any tables. On a table-by-table basis, you can grant
- them permissions by running the following command:
+ Under these new settings, the <code>anon</code> and <code>authenticated</code> roles
+ can execute functions defined in the <code>api</code> schema, but they have no
+ automatic permissions on any tables. On a table-by-table basis, you can grant them
+ permissions by running the following command:
</p>
<CodeBlock
language="sql"
@@ -218,27 +212,23 @@ export const HardenAPIModal = ({ visible, onClose }: HardenAPIModalProps) => {
!isPublicSchemaExposed ? <CheckIcon size={16} className="text-primary" /> : undefined
}
>
- 2. Remove the <code className="text-code-inline">public</code> schema from the exposed
- schemas
+ 2. Remove the <code>public</code> schema from the exposed schemas
</DialogDisclosureTrigger>
<DialogDisclosureContent className="text-sm text-foreground-light">
<div className="px-5 pb-4 flex flex-col gap-y-4">
<Alert variant="warning">
<WarningIcon />
<AlertTitle className="text-foreground">
- Ensure that your app is no longer using the{' '}
- <code className="text-code-inline">public</code> schema
+ Ensure that your app is no longer using the <code>public</code> schema
</AlertTitle>
<AlertDescription>
- The <code className="text-code-inline">public</code> schema will not be accessible
- via the API once its not exposed. You should be using the{' '}
- <code className="text-code-inline">api</code> schema instead.
+ The <code>public</code> schema will not be accessible via the API once its not
+ exposed. You should be using the <code>api</code> schema instead.
</AlertDescription>
</Alert>
<p>
- Click the button below to remove the{' '}
- <code className="text-code-inline">public</code> schema from both Exposed schemas
- and Extra search path in your API configuration.
+ Click the button below to remove the <code>public</code> schema from both Exposed
+ schemas and Extra search path in your API configuration.
</p>
<ButtonTooltip
variant="primary"
diff --git a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessConfiguration.tsx b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessConfiguration.tsx
index b232bd2cc10..53cdf249824 100644
--- a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessConfiguration.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessConfiguration.tsx
@@ -308,7 +308,7 @@ export const JitDbAccessConfiguration = () => {
const projectReference = ref ? (
<>
- This project <code className="text-code-inline">{ref}</code>
+ This project <code>{ref}</code>
</>
) : (
'This project'
diff --git a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRoleGrantFields.tsx b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRoleGrantFields.tsx
index c08ef8702d6..fafa3ce3c5e 100644
--- a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRoleGrantFields.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRoleGrantFields.tsx
@@ -89,7 +89,7 @@ export function JitDbAccessRoleGrantFields({
className="mt-0.5"
/>
<div className="min-w-0 flex-1">
- <code className="text-code-inline dark:bg-surface-300! dark:border-control! tracking-normal!">
+ <code className="dark:bg-surface-300! dark:border-control! tracking-normal!">
{role.label}
</code>
</div>
diff --git a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx
index 90eb9aa9d59..5232e4e72d5 100644
--- a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx
@@ -324,13 +324,11 @@ export const AddRestrictionModal = ({
{isValidCIDR ? (
<DialogSection className="space-y-1">
<p className="text-sm">
- The address range <code className="text-code-inline">{normalizedAddress}</code>{' '}
- will be restricted
+ The address range <code>{normalizedAddress}</code> will be restricted
</p>
<p className="text-sm text-foreground-light">
- Selected address space:{' '}
- <code className="text-code-inline">{addressRange.start}</code> to{' '}
- <code className="text-code-inline">{addressRange.end}</code>{' '}
+ Selected address space: <code>{addressRange.start}</code> to{' '}
+ <code>{addressRange.end}</code>{' '}
</p>
<p className="text-sm text-foreground-light">
Number of addresses: {availableAddresses}
diff --git a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/RemoveRestrictionModal.tsx b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/RemoveRestrictionModal.tsx
index 3a8530c2dc2..a9cb3c0cc82 100644
--- a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/RemoveRestrictionModal.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/RemoveRestrictionModal.tsx
@@ -75,8 +75,8 @@ const RemoveRestrictionModal = ({
<AlertDialogDescription>
<div className="flex flex-col space-y-4">
<p>
- The IPv4 address <code className="text-code-inline">{selectedRestriction}</code>{' '}
- will be removed from your list of network restrictions
+ The IPv4 address <code>{selectedRestriction}</code> will be removed from your list
+ of network restrictions
{isRemovingOnlyRestriction
? '.'
: ", and no longer have access to your project's database."}
diff --git a/apps/studio/components/interfaces/Settings/Database/SettingsDatabaseEmptyStateLocal.tsx b/apps/studio/components/interfaces/Settings/Database/SettingsDatabaseEmptyStateLocal.tsx
index 61208b7cc6e..29e75b90151 100644
--- a/apps/studio/components/interfaces/Settings/Database/SettingsDatabaseEmptyStateLocal.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/SettingsDatabaseEmptyStateLocal.tsx
@@ -12,9 +12,8 @@ export function SettingsDatabaseEmptyStateLocal() {
</CardHeader>
<CardContent>
<p className="text-sm text-foreground-light mb-4">
- Configure database settings in{' '}
- <code className="text-code-inline">supabase/config.toml</code> — applied automatically
- on <code className="text-code-inline">supabase start</code>.
+ Configure database settings in <code>supabase/config.toml</code> — applied automatically
+ on <code>supabase start</code>.
</p>
<DocsButton href={`${DOCS_URL}/guides/local-development/cli/config#database-config`} />
</CardContent>
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx
index 33fd389bb5e..ad4cd4a038a 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx
@@ -62,7 +62,7 @@ export const CustomDomainActivate = ({ projectRef, customDomain }: CustomDomainA
<h4 className="text-foreground">Enable your custom domain</h4>
<p className="text-sm text-foreground-light">
Set up is almost complete. Press “Activate” below to enable{' '}
- <code className="text-code-inline">{customDomain.hostname}</code> for this project.
+ <code>{customDomain.hostname}</code> for this project.
</p>
<p className="text-sm text-foreground-light">
We recommend that you schedule a downtime window of 20 - 30 minutes for your
@@ -76,14 +76,9 @@ export const CustomDomainActivate = ({ projectRef, customDomain }: CustomDomainA
title="Retain your CNAME record for service continuity after activation"
>
<p>
- Your custom domain CNAME record for{' '}
- <code className="text-code-inline">{customDomain.hostname}</code> should resolve to{' '}
- {endpoint ? (
- <code className="text-code-inline">{endpoint}</code>
- ) : (
- "your project's API URL"
- )}
- . If you're using Cloudflare as your DNS provider, disable the proxy option.
+ Your custom domain CNAME record for <code>{customDomain.hostname}</code> should
+ resolve to {endpoint ? <code>{endpoint}</code> : "your project's API URL"}. If
+ you're using Cloudflare as your DNS provider, disable the proxy option.
</p>
</Admonition>
</div>
@@ -122,9 +117,9 @@ export const CustomDomainActivate = ({ projectRef, customDomain }: CustomDomainA
onConfirm={onActivateCustomDomain}
>
<p className="text-sm">
- Activating <code className="text-code-inline break-normal!">{customDomain.hostname}</code>{' '}
- will make it visible to users in place of your project’s Supabase domain. The Supabase
- domain will continue to work too.
+ Activating <code className="break-normal!">{customDomain.hostname}</code> will make it
+ visible to users in place of your project’s Supabase domain. The Supabase domain will
+ continue to work too.
</p>
</ConfirmationModal>
</>
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx
index c4638b7c770..8e6b2cffab2 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx
@@ -45,12 +45,12 @@ export const CustomDomainDelete = ({ projectRef, customDomain }: CustomDomainDel
<div className="w-full space-y-2">
<p className="text-xs text-foreground-light">Active custom domain:</p>
<div className="flex items-center space-x-2">
- <code className="text-lg mx-0 flex items-center space-x-2">
+ <div className="font-mono text-lg mx-0 flex items-center space-x-2">
<div className="h-2 w-2 rounded-full bg-primary-bright" />
<span>
- <code className="text-code-inline">{customDomain.hostname}</code>
+ <code>{customDomain.hostname}</code>
</span>
- </code>
+ </div>
</div>
<p className="text-sm text-foreground-light">
Your custom domain is currently active and is serving traffic
@@ -85,8 +85,8 @@ export const CustomDomainDelete = ({ projectRef, customDomain }: CustomDomainDel
>
<p className="text-sm mb-4">
Are you sure you want to delete the custom domain{' '}
- <code className="text-code-inline break-normal!">{customDomain.hostname}</code> for your
- project? You will need to re-verify this domain if you want to use it again.
+ <code className="break-normal!">{customDomain.hostname}</code> for your project? You will
+ need to re-verify this domain if you want to use it again.
</p>
<FormItemLayout
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
index d7d9a345e8b..5ce18c3761b 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
@@ -77,8 +77,7 @@ export const CustomDomainVerify = () => {
<Panel.Content className="space-y-6">
<div>
<h4 className="text-foreground mb-2">
- Configure TXT verification for your custom domain{' '}
- <code className="text-code-inline">{customDomain?.hostname}</code>
+ Configure TXT verification for your custom domain <code>{customDomain?.hostname}</code>
</h4>
<p className="text-sm text-foreground-light">
Set the following TXT record(s) in your DNS provider, then click verify to confirm your
@@ -105,9 +104,8 @@ export const CustomDomainVerify = () => {
{isNotVerifiedYet && (
<p className="mt-1">
Some registrars will require you to remove the domain name when creating DNS
- records. As an example, to create a record for{' '}
- <code className="text-code-inline">foo.app.example.com</code>, you would need to
- create an entry for <code className="text-code-inline">foo.app</code>.
+ records. As an example, to create a record for <code>foo.app.example.com</code>,
+ you would need to create an entry for <code>foo.app</code>.
</p>
)}
</Admonition>
@@ -121,8 +119,8 @@ export const CustomDomainVerify = () => {
<AlertTitle>Certificate Authority Authentication (CAA) error</AlertTitle>
<AlertDescription>
Please add a CAA record allowing "digicert.com" to issue certificates for{' '}
- <code className="text-code-inline">{customDomain?.hostname}</code>. For example:{' '}
- <code className="text-code-inline">0 issue "digicert.com"</code>
+ <code>{customDomain?.hostname}</code>. For example:{' '}
+ <code>0 issue "digicert.com"</code>
</AlertDescription>
</Alert>
)}
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx
index 9eea55be802..09ab70073a0 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx
@@ -102,12 +102,11 @@ export const CustomDomainsConfigureHostname = () => {
<CardContent>
<h4 className="text-sm mb-1">Configure a CNAME record</h4>
<p className="text-sm text-foreground-light">
- Set up a CNAME record for{' '}
- {domain ? <code className="text-code-inline">{domain}</code> : 'your custom domain'}{' '}
+ Set up a CNAME record for {domain ? <code>{domain}</code> : 'your custom domain'}{' '}
resolving to{' '}
{endpoint ? (
<span className="inline-flex items-center gap-x-1">
- <code className="text-code-inline">{endpoint}</code>
+ <code>{endpoint}</code>
<CopyButton
iconOnly
variant="text"
@@ -124,9 +123,8 @@ export const CustomDomainsConfigureHostname = () => {
{trimmedDomain.includes('.') ? (
<>
Some DNS providers expect only the subdomain label{' '}
- <code className="text-code-inline">{trimmedDomain.split('.')[0]}</code>, while
- others accept the full hostname{' '}
- <code className="text-code-inline whitespace-nowrap">{trimmedDomain}</code>.
+ <code>{trimmedDomain.split('.')[0]}</code>, while others accept the full hostname{' '}
+ <code className="whitespace-nowrap">{trimmedDomain}</code>.
</>
) : (
'Some DNS providers expect only the subdomain label, while others accept the full hostname.'
diff --git a/apps/studio/components/interfaces/Settings/General/General.tsx b/apps/studio/components/interfaces/Settings/General/General.tsx
index 2db179d9e17..61f91d7c523 100644
--- a/apps/studio/components/interfaces/Settings/General/General.tsx
+++ b/apps/studio/components/interfaces/Settings/General/General.tsx
@@ -117,9 +117,8 @@ export const General = () => {
title="Local development with the Supabase CLI"
description={
<p>
- Project settings are configured in{' '}
- <code className="text-code-inline">supabase/config.toml</code> — applied on{' '}
- <code className="text-code-inline">supabase start</code>.
+ Project settings are configured in <code>supabase/config.toml</code> — applied on{' '}
+ <code>supabase start</code>.
</p>
}
actions={<DocsButton href={`${DOCS_URL}/guides/local-development`} />}
diff --git a/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx b/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx
index dc876c7e4e0..fd91267f75b 100644
--- a/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx
+++ b/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx
@@ -213,7 +213,7 @@ export const ProjectUpgradeAlert = () => {
<div>
<p className="mb-1">Run the following commands after the upgrade:</p>
<div className="flex items-baseline gap-2">
- <code className="text-xs">
+ <code data-code-style="plain" className="text-xs">
{legacyAuthCustomRoles.map((role) => (
<div key={role} className="pb-1">
ALTER ROLE <span className="text-primary">{role}</span> WITH
diff --git a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkSection.tsx b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkSection.tsx
index 29c302fce29..b96198f016e 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkSection.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkSection.tsx
@@ -172,7 +172,7 @@ export const AWSPrivateLinkSection = () => {
<AlertDialogDescription>
This removes the PrivateLink connection for{' '}
{showDeleteConnectionId ? (
- <code className="text-code-inline">{deleteConnectionTitle}</code>
+ <code>{deleteConnectionTitle}</code>
) : (
deleteConnectionTitle
)}{' '}
diff --git a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
index fb71d347c97..5b03f7496dc 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
@@ -460,8 +460,7 @@ export const GitHubIntegrationConnectionForm = ({
description={
<>
Relative path to the directory containing your{' '}
- <code className="text-code-inline whitespace-nowrap">supabase/</code>{' '}
- folder.{' '}
+ <code className="whitespace-nowrap">supabase/</code> folder.{' '}
<InlineLink
href={`${DOCS_URL}/guides/deployment/branching/github-integration#set-the-working-directory`}
>
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx b/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
index 100108d8c86..327798b70c9 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
@@ -253,13 +253,10 @@ export const LogsQueryPanel = ({
{useOtel ? (
<SheetDescription>
The following table shows the fields available on each source. Nested fields
- live in the{' '}
- <code className="text-code-inline text-xs !break-keep">log_attributes</code>{' '}
- map and are read with{' '}
- <code className="text-code-inline text-xs !break-keep">
- log_attributes['key']
- </code>{' '}
- — no unnesting joins needed.
+ live in the <code className="text-xs !break-keep">log_attributes</code> map
+ and are read with{' '}
+ <code className="text-xs !break-keep">log_attributes['key']</code> — no
+ unnesting joins needed.
</SheetDescription>
) : (
<SheetDescription>
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/InsertDataDialog.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/InsertDataDialog.tsx
index 2d53ac69e33..c08416ffabc 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/InsertDataDialog.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/InsertDataDialog.tsx
@@ -44,7 +44,7 @@ values (
<DialogContent aria-describedby={undefined}>
<DialogHeader>
<DialogTitle>
- Insert data into <code className="text-code-inline">{table}</code>
+ Insert data into <code>{table}</code>
</DialogTitle>
</DialogHeader>
@@ -53,7 +53,7 @@ values (
<DialogSection className="flex flex-col gap-y-2">
<p className="text-sm">
The Iceberg Foreign Data Wrapper (FDW) supports inserting data into Iceberg tables using
- standard SQL <code className="text-code-inline">INSERT</code> statements.
+ standard SQL <code>INSERT</code> statements.
</p>
<p className="text-sm">
Use the following SQL snippet to insert data into your iceberg table:
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketForm.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketForm.tsx
index d91afa2dbf4..037407fc545 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketForm.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/CreateAnalyticsBucketForm.tsx
@@ -225,8 +225,7 @@ export const CreateAnalyticsBucketForm = ({
title="Wrappers extension must be updated for Iceberg Wrapper support"
>
<p className="prose max-w-full text-sm leading-normal!">
- Update the <code className="text-code-inline">wrappers</code> extension by
- upgrading your project from your{' '}
+ Update the <code>wrappers</code> extension by upgrading your project from your{' '}
<InlineLink href={getServiceVersionsPath(ref)}>project settings</InlineLink>{' '}
before creating an Analytics bucket.{' '}
<InlineLink href={`${DOCS_URL}/guides/database/extensions/wrappers/iceberg`}>
diff --git a/apps/studio/components/interfaces/Storage/FilesBuckets/PublicBucketWarning.tsx b/apps/studio/components/interfaces/Storage/FilesBuckets/PublicBucketWarning.tsx
index 5fe35234b90..4a2c48c4750 100644
--- a/apps/studio/components/interfaces/Storage/FilesBuckets/PublicBucketWarning.tsx
+++ b/apps/studio/components/interfaces/Storage/FilesBuckets/PublicBucketWarning.tsx
@@ -198,8 +198,7 @@ function PublicBucketWarningView(props: PublicBucketWarningViewProps): ReactNode
>
<div className="flex flex-col gap-3">
<p className="text-sm text-foreground-light">
- This will drop {hasMultiplePolicies ? 'one' : 'the'}{' '}
- <code className="text-code-inline">SELECT</code>
+ This will drop {hasMultiplePolicies ? 'one' : 'the'} <code>SELECT</code>
{
' policy that makes the bucket’s contents listable. Object URLs will continue to work.'
}
diff --git a/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.ValidateSizeLimit.tsx b/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.ValidateSizeLimit.tsx
index 9c34fed9483..4ebcd9e7f3e 100644
--- a/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.ValidateSizeLimit.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageSettings/StorageSettings.ValidateSizeLimit.tsx
@@ -170,8 +170,8 @@ export const ValidateSizeLimit = ({
onConfirm={handleValidate}
>
<p className="text-sm text-foreground-light">
- Running this queries the <code className="text-code-inline">storage.buckets</code> table,
- which may cause load on your database because you have more than{' '}
+ Running this queries the <code>storage.buckets</code> table, which may cause load on your
+ database because you have more than{' '}
{THRESHOLD_FOR_AUTO_QUERYING_BUCKET_LIMITS.toLocaleString()} buckets.
</p>
</ConfirmationModal>
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketTableExamplesSheet.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketTableExamplesSheet.tsx
index 3698969d922..45e2722a14a 100644
--- a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketTableExamplesSheet.tsx
+++ b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketTableExamplesSheet.tsx
@@ -65,8 +65,7 @@ export const VectorBucketTableExamplesSheet = ({ index }: VectorBucketTableExamp
<div className="flex flex-col h-full" tabIndex={-1}>
<SheetHeader>
<SheetTitle>
- Insert vectors into{' '}
- <code className="text-code-inline text-sm!">{index.indexName}</code>
+ Insert vectors into <code className="text-sm!">{index.indexName}</code>
</SheetTitle>
</SheetHeader>
@@ -204,9 +203,8 @@ const result = await index.putVectors({
return (
<SheetSection className="flex flex-col gap-6">
<p className="text-sm text-foreground-light">
- Use the following code snippet to insert vectors into your table. The{' '}
- <code className="text-code-inline">data</code> property should contain all of your vector
- data.
+ Use the following code snippet to insert vectors into your table. The <code>data</code>{' '}
+ property should contain all of your vector data.
</p>
<div className="flex flex-col gap-2">
<div className="flex justify-between">
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketsLocalDisabledState.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketsLocalDisabledState.tsx
index abc33955152..341ee93a015 100644
--- a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketsLocalDisabledState.tsx
+++ b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketsLocalDisabledState.tsx
@@ -16,9 +16,8 @@ export const VectorBucketsLocalDisabledState = () => {
return (
<Admonition type="default" title="Vector buckets are not enabled">
<p className="text-foreground-light">
- To use vector buckets locally, enable them in your{' '}
- <code className="text-code-inline">supabase/config.toml</code> and restart with{' '}
- <code className="text-code-inline">supabase start</code>.
+ To use vector buckets locally, enable them in your <code>supabase/config.toml</code> and
+ restart with <code>supabase start</code>.
</p>
<CodeBlock language="toml" hideLineNumbers className="mt-2 max-w-full">
{CONFIG_SNIPPET}
diff --git a/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx b/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
index 97d0605c680..8e5e110ff54 100644
--- a/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
+++ b/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
@@ -143,8 +143,7 @@ function ProjectRefHighlighted({ projectRef }: ProjectRefHighlightedProps) {
className="flex items-center gap-x-1"
>
<p className="text-sm transition text-foreground-lighter">
- Project ID:{' '}
- <code className="text-code-inline text-foreground-light!">{projectRef}</code>
+ Project ID: <code className="text-foreground-light!">{projectRef}</code>
</p>
<CopyButton
iconOnly
diff --git a/apps/studio/components/interfaces/Support/SupportFormDirectEmailInfo.tsx b/apps/studio/components/interfaces/Support/SupportFormDirectEmailInfo.tsx
index d137aca59a1..475c9f6f3e4 100644
--- a/apps/studio/components/interfaces/Support/SupportFormDirectEmailInfo.tsx
+++ b/apps/studio/components/interfaces/Support/SupportFormDirectEmailInfo.tsx
@@ -19,7 +19,7 @@ export function SupportFormDirectEmailContent({ projectRef }: SupportFormDirectE
href={`mailto:[email protected]?subject=${encodeURIComponent('Support Request')}${hasProjectRef ? `${encodeURIComponent(' for Project ID: ')}${encodeURIComponent(projectRef)}` : ''}&body=${encodeURIComponent('Here is a detailed description of the problem I am experiencing and any other information that might be helpful...')}`}
className="hover:text-foreground transition-colors duration-100"
>
- <code className="text-code-inline !text-foreground-light underline decoration-foreground-lighter/50 hover:decoration-foreground-lighter/80 transition-colors duration-100">
+ <code className="!text-foreground-light underline decoration-foreground-lighter/50 hover:decoration-foreground-lighter/80 transition-colors duration-100">
</code>
</a>
@@ -35,7 +35,7 @@ export function SupportFormDirectEmailContent({ projectRef }: SupportFormDirectE
<>
, along with project ID
<span className="inline-flex items-center gap-x-1">
- <code className="text-code-inline !text-foreground-light">{projectRef}</code>
+ <code className="!text-foreground-light">{projectRef}</code>
<CopyButton
iconOnly
variant="text"
diff --git a/apps/studio/components/interfaces/Support/SupportFormPage.tsx b/apps/studio/components/interfaces/Support/SupportFormPage.tsx
index 589ecdc048b..354065066a1 100644
--- a/apps/studio/components/interfaces/Support/SupportFormPage.tsx
+++ b/apps/studio/components/interfaces/Support/SupportFormPage.tsx
@@ -206,7 +206,7 @@ function SupportFormDirectEmailInfo({ projectRef }: SupportFormDirectEmailInfoPr
href={`mailto:[email protected]?subject=${encodeURIComponent('Support Request')}${hasProjectRef ? `${encodeURIComponent(' for Project ID: ')}${encodeURIComponent(projectRef)}` : ''}&body=${encodeURIComponent('Here is a detailed description of the problem I am experiencing and any other information that might be helpful...')}`}
className="hover:text-foreground transition-colors duration-100"
>
- <code className="text-code-inline text-foreground-light! underline decoration-foreground-lighter/50 hover:decoration-foreground-lighter/80 transition-colors duration-100">
+ <code className="text-foreground-light! underline decoration-foreground-lighter/50 hover:decoration-foreground-lighter/80 transition-colors duration-100">
</code>
</a>
@@ -222,7 +222,7 @@ function SupportFormDirectEmailInfo({ projectRef }: SupportFormDirectEmailInfoPr
<p className="flex items-center gap-x-1.5 flex-wrap">
Project ID:{' '}
<span className="inline-flex items-center gap-x-1">
- <code className="text-code-inline text-foreground-light!">{projectRef}</code>
+ <code className="text-foreground-light!">{projectRef}</code>
<CopyButton
iconOnly
variant="text"
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
index 9207f3d5132..9051bcc4a00 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
@@ -263,7 +263,7 @@ export const ColumnEditor = ({
description={
<>
Recommended to use lowercase and use an underscore to separate words e.g.{' '}
- <code className="text-code-inline">column_name</code>
+ <code>column_name</code>
</>
}
>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
index 7eec8ff26f4..72ede33fa4c 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
@@ -309,14 +309,12 @@ const ColumnType = ({
<CriticalIcon />
<AlertTitle>
{' '}
- It is recommended to use{' '}
- <code className="text-code-inline">{recommendation.alternative}</code> instead
+ It is recommended to use <code>{recommendation.alternative}</code> instead
</AlertTitle>
<AlertDescription>
<p>
- Postgres recommends against using the data type{' '}
- <code className="text-code-inline">{displayValue}</code> unless you have a very
- specific use case.
+ Postgres recommends against using the data type <code>{displayValue}</code> unless you
+ have a very specific use case.
</p>
<div className="flex items-center space-x-2 mt-3">
<Button asChild icon={<ExternalLinkIcon />}>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/HeaderTitle.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/HeaderTitle.tsx
index 4b44810f9be..f563ee1196a 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/HeaderTitle.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/HeaderTitle.tsx
@@ -12,14 +12,14 @@ export const HeaderTitle = ({ table, column }: Props) => {
return (
<>
<span>Add new column to</span>
- <code className="text-code-inline text-sm! ml-1">{table.name}</code>
+ <code className="text-sm! ml-1">{table.name}</code>
</>
)
}
return (
<>
- Update column <code className="text-code-inline text-sm!">{column.name}</code> from{' '}
- <code className="text-code-inline text-sm!">{column.table}</code>
+ Update column <code className="text-sm!">{column.name}</code> from{' '}
+ <code className="text-sm!">{column.table}</code>
</>
)
}
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
index 91a30d17b77..1ed39c70376 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
@@ -387,7 +387,7 @@ export const ForeignKeySelector = ({
<div className="flex flex-col gap-y-3">
<label className="text-foreground-light text-sm">
Select columns from{' '}
- <code className="text-code-inline">
+ <code>
{fk.schema}.{fk.table}
</code>{' '}
to reference to
@@ -497,13 +497,13 @@ export const ForeignKeySelector = ({
if (x === undefined) return null
return (
<li key={`type-error-${idx}`}>
- <code className="text-code-inline">{x.source}</code> (
+ <code>{x.source}</code> (
{displayColumnType(
x.sourceType,
x.sourceTypeSchema,
x.sourceIsArray
)}
- ) and <code className="text-code-inline">{x.target}</code>(
+ ) and <code>{x.target}</code>(
{displayColumnType(
x.targetType,
x.targetTypeSchema,
@@ -529,8 +529,7 @@ export const ForeignKeySelector = ({
return (
<li key={`type-error-${idx}`}>
<div className="flex items-center gap-x-1">
- <code className="text-code-inline">{x.source}</code>{' '}
- <ArrowRightIcon size={14} />{' '}
+ <code>{x.source}</code> <ArrowRightIcon size={14} />{' '}
{displayColumnType(
x.targetType,
x.targetTypeSchema,
@@ -562,19 +561,17 @@ export const ForeignKeySelector = ({
</p>
<ul className="mt-2 list-disc pl-4 space-y-1">
<li>
- <code className="text-code-inline">Cascade</code>: if the referencing
- table represents something that is a component of what is represented
- by the referenced table and cannot exist independently
+ <code>Cascade</code>: if the referencing table represents something
+ that is a component of what is represented by the referenced table and
+ cannot exist independently
</li>
<li>
- <code className="text-code-inline">Restrict</code> or{' '}
- <code className="text-code-inline">No action</code>: if the two tables
+ <code>Restrict</code> or <code>No action</code>: if the two tables
represent independent objects
</li>
<li>
- <code className="text-code-inline">Set NULL</code> or{' '}
- <code className="text-code-inline">Set default</code>: if a
- foreign-key relationship represents optional information
+ <code>Set NULL</code> or <code>Set default</code>: if a foreign-key
+ relationship represents optional information
</li>
</ul>
<p className="mt-2">
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx
index 5f41e3e13e0..2840f395491 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx
@@ -68,7 +68,7 @@ export const generateCascadeActionDescription = (
return (
<>
<span className="text-foreground-light">{actionName}</span>: {actionVerb} a record from{' '}
- <code className="text-code-inline">{reference}</code> will{' '}
+ <code>{reference}</code> will{' '}
<span className="text-amber-900 opacity-75">raise an error</span> if there are records
existing in this table that reference it
</>
@@ -77,7 +77,7 @@ export const generateCascadeActionDescription = (
return (
<>
<span className="text-foreground-light">{actionName}</span>: {actionVerb} a record from{' '}
- <code className="text-code-inline">{reference}</code> will{' '}
+ <code>{reference}</code> will{' '}
<span className="text-amber-900 opacity-75">also {action}</span> any records that
reference it in this table
</>
@@ -95,7 +95,7 @@ export const generateCascadeActionDescription = (
the transaction
</TooltipContent>
</Tooltip>
- : {actionVerb} a record from <code className="text-code-inline">{reference}</code> will{' '}
+ : {actionVerb} a record from <code>{reference}</code> will{' '}
<span className="text-amber-900 opacity-75">prevent {actionVerb.toLowerCase()}</span>{' '}
existing referencing rows from this table.
</>
@@ -104,18 +104,16 @@ export const generateCascadeActionDescription = (
return (
<>
<span className="text-foreground-light">{actionName}</span>: {actionVerb} a record from{' '}
- <code className="text-code-inline">{reference}</code> will set the value of any existing
- records in this table referencing it to their{' '}
- <span className="text-amber-900 opacity-75">default value</span>
+ <code>{reference}</code> will set the value of any existing records in this table
+ referencing it to their <span className="text-amber-900 opacity-75">default value</span>
</>
)
case FOREIGN_KEY_CASCADE_ACTION.SET_NULL:
return (
<>
<span className="text-foreground-light">{actionName}</span>: {actionVerb} a record from{' '}
- <code className="text-code-inline">{reference}</code> will set the value of any existing
- records in this table referencing it{' '}
- <span className="text-amber-900 opacity-75">to NULL</span>
+ <code>{reference}</code> will set the value of any existing records in this table
+ referencing it <span className="text-amber-900 opacity-75">to NULL</span>
</>
)
}
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/AddRowOperationItem.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/AddRowOperationItem.tsx
index 0936c574206..f4b1d394e10 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/AddRowOperationItem.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/AddRowOperationItem.tsx
@@ -52,7 +52,7 @@ export const AddRowOperationItem = ({
<CardHeader className="py-2 px-3 flex flex-row gap-2 space-y-0 items-center">
<div className="min-w-0 flex-1 flex items-start gap-2">
<div className="min-w-0 flex-1">
- <code className="text-code-inline dark:bg-surface-300 dark:border-foreground-muted/50">
+ <code className="dark:bg-surface-300 dark:border-foreground-muted/50">
{fullTableName}
</code>
<div className="text-xs text-foreground mt-1 ml-0.5">
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/DeleteRowOperationItem.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/DeleteRowOperationItem.tsx
index 2caca26eda3..f537d7967a9 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/DeleteRowOperationItem.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/DeleteRowOperationItem.tsx
@@ -50,7 +50,7 @@ export const DeleteRowOperationItem = ({
<CardHeader className="py-2 px-3 flex flex-row gap-2 border-b border-destructive-500 space-y-0 items-center">
<div className="min-w-0 flex-1 flex items-start gap-2">
<div className="min-w-0 flex-1">
- <code className="text-code-inline dark:bg-surface-300 dark:border-foreground-muted/50">
+ <code className="dark:bg-surface-300 dark:border-foreground-muted/50">
{fullTableName}
</code>
<div className="text-xs text-foreground mt-1 ml-0.5">
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/OperationItem.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/OperationItem.tsx
index b786d6dd83f..60460ed69a1 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/OperationItem.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/OperationItem.tsx
@@ -48,7 +48,7 @@ export const OperationItem = ({ operationId, tableId, content }: OperationItemPr
<Card className="overflow-hidden">
<CardHeader className="py-2 px-3 flex flex-row gap-2 space-y-0 items-center">
<div className="min-w-0 flex-1">
- <code className="text-code-inline dark:bg-surface-300 dark:border-foreground-muted/50">
+ <code className="dark:bg-surface-300 dark:border-foreground-muted/50">
{fullTableName}
</code>
<div className="text-xs text-foreground mt-1 ml-0.5">
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
index a36d21a1fad..4e92c0927e2 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
@@ -164,7 +164,7 @@ export const ForeignRowSelector = ({
<div className="flex items-center justify-between">
<p>
Select a record to reference from{' '}
- <code className="text-code-inline text-sm!">
+ <code className="text-sm!">
{schemaName}.{tableName}
</code>
</p>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/HeaderTitle.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/HeaderTitle.tsx
index d54b4a72ee6..138539f892c 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/HeaderTitle.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/HeaderTitle.tsx
@@ -8,7 +8,7 @@ export const HeaderTitle = ({ isNewRecord, tableName }: HeaderTitleProps) => {
return (
<span>
{header}
- {tableName && <code className="text-code-inline text-sm!">{tableName}</code>}
+ {tableName && <code className="text-sm!">{tableName}</code>}
</span>
)
}
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx
index 67f6fde7a10..90e2145ccc5 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx
@@ -205,7 +205,7 @@ export const SpreadsheetImportPreview = ({
<ul className="ml-2 list-disc">
{errorData.__parsed_extra.map((value: string, i: number) => (
<li key={i}>
- <code className="text-code-inline">{value}</code>
+ <code>{value}</code>
</li>
))}
</ul>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx
index 792116cb99c..68b79017d9b 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx
@@ -95,7 +95,7 @@ export const ForeignKeyRow = ({
{x.source || '[column_name]'}
</code>
<ArrowRightIcon size={16} />
- <code className="text-code-inline">
+ <code>
{foreignKey.schema}.{foreignKey.table}.{x.target}
</code>
</div>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/HeaderTitle.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/HeaderTitle.tsx
index 951205750c5..41d965f6369 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/HeaderTitle.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/HeaderTitle.tsx
@@ -8,20 +8,20 @@ export const HeaderTitle = ({ schema, table, isDuplicating }: HeaderTitleProps)
if (!table) {
return (
<span>
- Create a new table under <code className="text-code-inline text-sm!">{schema}</code>
+ Create a new table under <code>{schema}</code>
</span>
)
}
if (isDuplicating) {
return (
<span>
- Duplicate table <code className="text-code-inline text-sm!">{table?.name}</code>
+ Duplicate table <code>{table?.name}</code>
</span>
)
}
return (
<span>
- Update table <code className="text-code-inline text-sm!">{table?.name}</code>
+ Update table <code>{table?.name}</code>
</span>
)
}
diff --git a/apps/studio/components/layouts/ProjectLayout/LogicalBackupCliInstructions.tsx b/apps/studio/components/layouts/ProjectLayout/LogicalBackupCliInstructions.tsx
index 05753662859..6589a87bf1a 100644
--- a/apps/studio/components/layouts/ProjectLayout/LogicalBackupCliInstructions.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/LogicalBackupCliInstructions.tsx
@@ -61,46 +61,46 @@ export const LogicalBackupCliInstructions = ({
<div className="space-y-1">
<p className="text-sm text-foreground-light">
Use your direct connection string to backup your database, replacing{' '}
- <code className="text-code-inline !break-keep">{DB_PASSWORD_PLACEHOLDER}</code> with your
- database password. Percent-encode any reserved character in your password before using it
- in the URL
+ <code className="!break-keep">{DB_PASSWORD_PLACEHOLDER}</code> with your database
+ password. Percent-encode any reserved character in your password before using it in the
+ URL
<span className="inline-flex align-text-bottom ml-2">
<InfoTooltip side="bottom" className="max-w-64">
<p>Examples:</p>
<ul className="list-disc pl-6">
<li>
<span className="flex items-center gap-x-1">
- <code className="text-code-inline">%</code>
+ <code>%</code>
<span>&nbsp;→&nbsp;</span>
- <code className="text-code-inline">%25</code>
+ <code>%25</code>
</span>
</li>
<li>
<span className="flex items-center gap-x-1">
- <code className="text-code-inline">@</code>
+ <code>@</code>
<span>&nbsp;→&nbsp;</span>
- <code className="text-code-inline">%40</code>
+ <code>%40</code>
</span>
</li>
<li>
<span className="flex items-center gap-x-1">
- <code className="text-code-inline">:</code>
+ <code>:</code>
<span>&nbsp;→&nbsp;</span>
- <code className="text-code-inline">%3A</code>
+ <code>%3A</code>
</span>
</li>
<li>
<span className="flex items-center gap-x-1">
- <code className="text-code-inline">/</code>
+ <code>/</code>
<span>&nbsp;→&nbsp;</span>
- <code className="text-code-inline">%2F</code>
+ <code>%2F</code>
</span>
</li>
<li>
<span className="flex items-center gap-x-1">
- <code className="text-code-inline">#</code>
+ <code>#</code>
<span>&nbsp;→&nbsp;</span>
- <code className="text-code-inline">%23</code>
+ <code>%23</code>
</span>
</li>
</ul>
diff --git a/apps/studio/components/layouts/Tabs/NewTab.tsx b/apps/studio/components/layouts/Tabs/NewTab.tsx
index 053ae02ebe7..480d00f8a93 100644
--- a/apps/studio/components/layouts/Tabs/NewTab.tsx
+++ b/apps/studio/components/layouts/Tabs/NewTab.tsx
@@ -65,7 +65,7 @@ export function NewTab() {
{impersonatingAnon && <p className="text-foreground-lighter">Not logged-in</p>}
{!!impersonatedUser && (
<p>
- ID: <code className="text-code-inline">{impersonatedUser.id}</code>
+ ID: <code>{impersonatedUser.id}</code>
</p>
)}
</CardContent>
diff --git a/apps/studio/components/ui/AdvisorPanel/AdvisorSignalDetail.tsx b/apps/studio/components/ui/AdvisorPanel/AdvisorSignalDetail.tsx
index 8ce1bf6fb38..807607fa626 100644
--- a/apps/studio/components/ui/AdvisorPanel/AdvisorSignalDetail.tsx
+++ b/apps/studio/components/ui/AdvisorPanel/AdvisorSignalDetail.tsx
@@ -35,9 +35,9 @@ export const AdvisorSignalDetail = ({ item }: AdvisorSignalDetailProps) => {
const issueDescription = (
<>
- The IP address <code className="text-code-inline">{item.sourceData.ip}</code> is temporarily
- blocked because of suspicious traffic or repeated failed password attempts. If this block is
- expected, you can dismiss this signal or remove the ban.
+ The IP address <code>{item.sourceData.ip}</code> is temporarily blocked because of suspicious
+ traffic or repeated failed password attempts. If this block is expected, you can dismiss this
+ signal or remove the ban.
</>
)
diff --git a/apps/studio/components/ui/AutoEnableRLSNotice.tsx b/apps/studio/components/ui/AutoEnableRLSNotice.tsx
index 0da6f1c2d51..0e5ede8a99f 100644
--- a/apps/studio/components/ui/AutoEnableRLSNotice.tsx
+++ b/apps/studio/components/ui/AutoEnableRLSNotice.tsx
@@ -135,9 +135,9 @@ const CreateEnsureRLSTriggerDialog = ({ iconOnly }: { iconOnly?: boolean }) => {
<DialogSection className="text-sm flex flex-col gap-y-2">
<p>
- Tables in exposed schemas such as <code className="text-code-inline">public</code> are
- reachable through your project’s API. Enable Row Level Security (RLS) on these tables so
- access is governed by the policies you define, not just the project API key.
+ Tables in exposed schemas such as <code>public</code> are reachable through your
+ project’s API. Enable Row Level Security (RLS) on these tables so access is governed by
+ the policies you define, not just the project API key.
</p>
<p>
This trigger automatically enables RLS whenever a new table is created. Review the SQL
diff --git a/apps/studio/components/ui/BannerStack/Banners/BannerLogsAllDeprecation.tsx b/apps/studio/components/ui/BannerStack/Banners/BannerLogsAllDeprecation.tsx
index f508aaed00c..b6490b0298b 100644
--- a/apps/studio/components/ui/BannerStack/Banners/BannerLogsAllDeprecation.tsx
+++ b/apps/studio/components/ui/BannerStack/Banners/BannerLogsAllDeprecation.tsx
@@ -34,8 +34,8 @@ export const BannerLogsAllDeprecation = () => {
<div className="flex flex-col gap-y-1 mb-2">
<p className="text-sm font-medium">Logs endpoint retires September 23</p>
<p className="text-xs text-foreground-lighter text-balance">
- Scripts that call the <code className="text-code-inline break-keep!">logs.all</code>{' '}
- Management API endpoint need to migrate. Dashboard logs are unchanged.
+ Scripts that call the <code className="break-keep!">logs.all</code> Management API
+ endpoint need to migrate. Dashboard logs are unchanged.
</p>
</div>
<Button size="tiny" className="w-min" asChild>
diff --git a/apps/studio/components/ui/HighQueryCost.tsx b/apps/studio/components/ui/HighQueryCost.tsx
index d6dd9d7787a..5e14306d90d 100644
--- a/apps/studio/components/ui/HighQueryCost.tsx
+++ b/apps/studio/components/ui/HighQueryCost.tsx
@@ -76,7 +76,7 @@ const HighQueryCostDialog = ({ error, suggestions = [] }: HighQueryCostErrorProp
<TooltipContent side="bottom" className="flex flex-col gap-y-1">
<p>Estimated cost: {metadata?.cost.toLocaleString()}</p>
<p className="text-foreground-light">
- Determined via the <code className="text-code-inline">EXPLAIN</code> command
+ Determined via the <code>EXPLAIN</code> command
</p>
</TooltipContent>
</Tooltip>{' '}
@@ -150,7 +150,7 @@ const LoadDataWarningDialog = ({
<TooltipContent side="bottom" className="flex flex-col gap-y-1">
<p>Estimated cost: {metadata?.cost.toLocaleString()}</p>
<p className="text-foreground-light">
- Determined via the <code className="text-code-inline">EXPLAIN</code> command
+ Determined via the <code>EXPLAIN</code> command
</p>
</TooltipContent>
</Tooltip>{' '}
diff --git a/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx b/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx
index 902fc54cbf5..8dc3f9962b5 100644
--- a/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx
+++ b/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx
@@ -139,18 +139,16 @@ export const DisplayApiSettings = ({
label={
<div className="flex items-center space-x-1">
{x.tags?.split(',').map((x, i: number) => (
- <code key={`${x}${i}`} className="text-code-inline">
- {x}
- </code>
+ <code key={`${x}${i}`}>{x}</code>
))}
{x.tags === 'service_role' && (
<>
- <code className="text-code-inline bg-destructive! text-destructive-foreground! border-destructive!">
+ <code className="bg-destructive! text-destructive-foreground! border-destructive!">
secret
</code>
</>
)}
- {x.tags === 'anon' && <code className="text-code-inline">public</code>}
+ {x.tags === 'anon' && <code>public</code>}
</div>
}
description={
diff --git a/apps/studio/pages/project/[ref]/database/column-privileges.tsx b/apps/studio/pages/project/[ref]/database/column-privileges.tsx
index d71247de3a4..e1f2a8336cf 100644
--- a/apps/studio/pages/project/[ref]/database/column-privileges.tsx
+++ b/apps/studio/pages/project/[ref]/database/column-privileges.tsx
@@ -245,7 +245,7 @@ const PrivilegesPage: NextPageWithLayout = () => {
<AlertCircleIcon strokeWidth={2} />
<AlertTitle>
Changes to column privileges will not be reflected in migrations when running{' '}
- <code className="text-code-inline">supabase db diff</code>.
+ <code>supabase db diff</code>.
</AlertTitle>
<AlertDescription>
Column privileges are not supported in the current version of the Supabase CLI.
@@ -273,12 +273,8 @@ const PrivilegesPage: NextPageWithLayout = () => {
If you remove a column privilege for a role, that role will lose all access to
that column.
<br />
- All operations selecting <code className="text-code-inline">
- *
- </code> (including <code className="text-code-inline">returning *</code> for{' '}
- <code className="text-code-inline">insert</code>,{' '}
- <code className="text-code-inline">update</code>, and{' '}
- <code className="text-code-inline">delete</code>) will fail.
+ All operations selecting <code>*</code> (including <code>returning *</code> for{' '}
+ <code>insert</code>, <code>update</code>, and <code>delete</code>) will fail.
</AlertDescription>
<Button
variant="outline"
diff --git a/apps/studio/pages/project/[ref]/functions/[functionSlug]/code.tsx b/apps/studio/pages/project/[ref]/functions/[functionSlug]/code.tsx
index 5800899aa1f..dec47a34525 100644
--- a/apps/studio/pages/project/[ref]/functions/[functionSlug]/code.tsx
+++ b/apps/studio/pages/project/[ref]/functions/[functionSlug]/code.tsx
@@ -179,10 +179,7 @@ const CodePage = () => {
<ol className="text-left space-y-1">
<li>1. Update to the latest Supabase CLI version</li>
<li>
- 2. Redeploy your function using:{' '}
- <code className="text-xs bg-muted px-1 py-0.5 rounded">
- supabase functions deploy
- </code>
+ 2. Redeploy your function using: <code>supabase functions deploy</code>
</li>
<li>
3. Or use the{' '}
diff --git a/apps/studio/pages/project/[ref]/functions/secrets.tsx b/apps/studio/pages/project/[ref]/functions/secrets.tsx
index 9f1afd21894..45d80b6cc2f 100644
--- a/apps/studio/pages/project/[ref]/functions/secrets.tsx
+++ b/apps/studio/pages/project/[ref]/functions/secrets.tsx
@@ -34,10 +34,8 @@ const SecretsPage: NextPageWithLayout = () => {
title="Local development with the Supabase CLI"
description={
<p>
- Add custom secrets to{' '}
- <code className="text-code-inline">supabase/functions/.env</code>, or pass{' '}
- <code className="text-code-inline">--env-file</code> to{' '}
- <code className="text-code-inline">supabase functions serve</code>.
+ Add custom secrets to <code>supabase/functions/.env</code>, or pass{' '}
+ <code>--env-file</code> to <code>supabase functions serve</code>.
</p>
}
actions={<DocsButton href={`${DOCS_URL}/guides/functions/secrets#using-the-cli`} />}
diff --git a/apps/studio/pages/project/[ref]/settings/api-keys/index.tsx b/apps/studio/pages/project/[ref]/settings/api-keys/index.tsx
index 7e88f53ccca..02fa1de447c 100644
--- a/apps/studio/pages/project/[ref]/settings/api-keys/index.tsx
+++ b/apps/studio/pages/project/[ref]/settings/api-keys/index.tsx
@@ -62,9 +62,8 @@ const ApiKeysNewPage: NextPageWithLayout = () => {
title="Self-hosted Supabase"
description={
<p>
- <code className="text-code-inline">SUPABASE_PUBLISHABLE_KEY</code> and{' '}
- <code className="text-code-inline">SUPABASE_SECRET_KEY</code> are set via
- environment variables.
+ <code>SUPABASE_PUBLISHABLE_KEY</code> and <code>SUPABASE_SECRET_KEY</code> are set
+ via environment variables.
</p>
}
actions={<DocsButton href={`${DOCS_URL}/guides/self-hosting/self-hosted-auth-keys`} />}
diff --git a/apps/studio/styles/globals.css b/apps/studio/styles/globals.css
index b515ccbe0c8..8447e821461 100644
--- a/apps/studio/styles/globals.css
+++ b/apps/studio/styles/globals.css
@@ -1,4 +1,5 @@
@import 'config/tailwind.config.css';
+@import 'config/inline-code.css';
@import 'config/typography.css';
@source '../pages/**/*.{js,ts,jsx,tsx}';