Skip to content

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

Dropdowns migration followup (#17730)

Ivan Vasilov18c11843eeb5
diff --git a/packages/ui/src/components/shadcn/ui/dropdown-menu.tsx b/packages/ui/src/components/shadcn/ui/dropdown-menu.tsx
index ebc79bf464f..9448d01b388 100644
--- a/packages/ui/src/components/shadcn/ui/dropdown-menu.tsx
+++ b/packages/ui/src/components/shadcn/ui/dropdown-menu.tsx
@@ -25,7 +25,7 @@ const DropdownMenuSubTrigger = React.forwardRef<
<DropdownMenuPrimitive.SubTrigger
ref={ref}
className={cn(
- 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-overlay-hover data-[state=open]:bg-overlay-hover data-[state=open]:text-strong',
+ 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-xs outline-none focus:bg-overlay-hover data-[state=open]:bg-overlay-hover data-[state=open]:text-strong',
inset && 'pl-8',
className
)}
@@ -79,7 +79,7 @@ const DropdownMenuItem = React.forwardRef<
<DropdownMenuPrimitive.Item
ref={ref}
className={cn(
- 'relative flex select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-overlay-hover focus:text-strong data-[disabled]:pointer-events-none data-[disabled]:opacity-50 cursor-pointer',
+ 'relative flex select-none items-center rounded-sm px-2 py-1.5 text-xs outline-none transition-colors focus:bg-overlay-hover focus:text-strong data-[disabled]:pointer-events-none data-[disabled]:opacity-50 cursor-pointer',
inset && 'pl-8',
className
)}
@@ -95,7 +95,7 @@ const DropdownMenuCheckboxItem = React.forwardRef<
<DropdownMenuPrimitive.CheckboxItem
ref={ref}
className={cn(
- 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-overlay-hover focus:text-strong data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
+ 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-xs outline-none transition-colors focus:bg-overlay-hover focus:text-strong data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
className
)}
checked={checked}
@@ -118,7 +118,7 @@ const DropdownMenuRadioItem = React.forwardRef<
<DropdownMenuPrimitive.RadioItem
ref={ref}
className={cn(
- 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-overlay-hover focus:text-strong data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
+ 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-xs outline-none transition-colors focus:bg-overlay-hover focus:text-strong data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
className
)}
{...props}
@@ -141,7 +141,7 @@ const DropdownMenuLabel = React.forwardRef<
>(({ className, inset, ...props }, ref) => (
<DropdownMenuPrimitive.Label
ref={ref}
- className={cn('px-2 py-1.5 text-sm text-light', inset && 'pl-8', className)}
+ className={cn('px-2 py-1.5 text-xs text-light', inset && 'pl-8', className)}
{...props}
/>
))
diff --git a/studio/components/grid/components/common/DropdownControl.tsx b/studio/components/grid/components/common/DropdownControl.tsx
index 08704710440..707294809fc 100644
--- a/studio/components/grid/components/common/DropdownControl.tsx
+++ b/studio/components/grid/components/common/DropdownControl.tsx
@@ -35,13 +35,9 @@ export const DropdownControl = ({
return (
<DropdownMenuItem_Shadcn_ key={x.value} onClick={() => onSelect(x.value)}>
<div className="flex items-center gap-2">
- {x.preLabel && (
- <span className="grow text-xs text-foreground-lighter">{x.preLabel}</span>
- )}
+ {x.preLabel && <span className="grow text-foreground-lighter">{x.preLabel}</span>}
<span>{x.label}</span>
- {x.postLabel && (
- <span className="text-xs text-foreground-lighter">{x.postLabel}</span>
- )}
+ {x.postLabel && <span className="text-foreground-lighter">{x.postLabel}</span>}
</div>
</DropdownMenuItem_Shadcn_>
)
diff --git a/studio/components/grid/components/header/Header.tsx b/studio/components/grid/components/header/Header.tsx
index e3c48e37dc6..bfdd44ad503 100644
--- a/studio/components/grid/components/header/Header.tsx
+++ b/studio/components/grid/components/header/Header.tsx
@@ -154,8 +154,8 @@ const DefaultHeader = ({
/>
</div>
<div>
- <p className="text">Insert row</p>
- <p className="text-foreground-light text-xs">
+ <p>Insert row</p>
+ <p className="text-foreground-light">
Insert a new row into {table.name}
</p>
</div>
@@ -180,8 +180,8 @@ const DefaultHeader = ({
/>
</div>
<div>
- <p className="text">Insert column</p>
- <p className="text-lighter text-xs">
+ <p>Insert column</p>
+ <p className="text-foreground-light">
Insert a new column into {table.name}
</p>
</div>
@@ -207,8 +207,8 @@ const DefaultHeader = ({
/>
</div>
<div>
- <p className="text">Import data from CSV</p>
- <p className="text-lighter text-xs">Insert new rows from a CSV</p>
+ <p>Import data from CSV</p>
+ <p className="text-foreground-light">Insert new rows from a CSV</p>
</div>
</DropdownMenuItem_Shadcn_>,
]
diff --git a/studio/components/grid/components/menu/ColumnMenu.tsx b/studio/components/grid/components/menu/ColumnMenu.tsx
index 0b3abfffc0d..4e8cd4c3ef3 100644
--- a/studio/components/grid/components/menu/ColumnMenu.tsx
+++ b/studio/components/grid/components/menu/ColumnMenu.tsx
@@ -56,7 +56,7 @@ const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {
disabled={isEncrypted}
>
<IconEdit size="tiny" />
- <p className="text">Edit column</p>
+ <p>Edit column</p>
</DropdownMenuItem_Shadcn_>
</Tooltip.Trigger>
{isEncrypted && (
@@ -85,12 +85,12 @@ const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {
{column.frozen ? (
<>
<IconUnlock size="tiny" />
- <p className="text">Unfreeze column</p>
+ <p>Unfreeze column</p>
</>
) : (
<>
<IconLock size="tiny" />
- <p className="text">Freeze column</p>
+ <p>Freeze column</p>
</>
)}
</DropdownMenuItem_Shadcn_>
@@ -99,7 +99,7 @@ const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {
<Divider light />
<DropdownMenuItem_Shadcn_ className="space-x-2" onClick={onDeleteColumn}>
<IconTrash size="tiny" stroke="red" />
- <p className="text">Delete column</p>
+ <p>Delete column</p>
</DropdownMenuItem_Shadcn_>
</>
)}
diff --git a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx
index 7bc6d93cce8..b371f294a8e 100644
--- a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx
+++ b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx
@@ -91,7 +91,7 @@ const PolicyRow = ({
onClick={() => onSelectEditPolicy(policy)}
>
<IconEdit size={14} />
- <p className="text">Edit</p>
+ <p>Edit</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuSeparator_Shadcn_ />
<DropdownMenuItem_Shadcn_
@@ -99,7 +99,7 @@ const PolicyRow = ({
onClick={() => onSelectDeletePolicy(policy)}
>
<IconTrash size={14} />
- <p className="text">Delete</p>
+ <p>Delete</p>
</DropdownMenuItem_Shadcn_>
</DropdownMenuContent_Shadcn_>
</DropdownMenu_Shadcn_>
diff --git a/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx b/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx
index a99b8420445..df71f557a0e 100644
--- a/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx
+++ b/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx
@@ -55,7 +55,7 @@ const AddUserDropdown = ({ projectKpsVersion }: AddUserDropdownProps) => {
onClick={() => setInviteVisible(true)}
>
<IconMail size="small" />
- <p className="text">Send invitation</p>
+ <p>Send invitation</p>
</DropdownMenuItem_Shadcn_>
</Tooltip.Trigger>
{!canInviteUsers && (
@@ -86,7 +86,7 @@ const AddUserDropdown = ({ projectKpsVersion }: AddUserDropdownProps) => {
onClick={() => setCreateVisible(true)}
>
<IconUserPlus size="small" />
- <p className="text">Create new user</p>
+ <p>Create new user</p>
</DropdownMenuItem_Shadcn_>
</Tooltip.Trigger>
diff --git a/studio/components/interfaces/Auth/Users/UserDropdown.tsx b/studio/components/interfaces/Auth/Users/UserDropdown.tsx
index eb9f212b60c..4f6de49eb5e 100644
--- a/studio/components/interfaces/Auth/Users/UserDropdown.tsx
+++ b/studio/components/interfaces/Auth/Users/UserDropdown.tsx
@@ -133,18 +133,18 @@ const UserDropdown = ({ user, canRemoveUser, canRemoveMFAFactors }: UserDropdown
<>
<DropdownMenuItem_Shadcn_ className="space-x-2" onClick={handleResetPassword}>
<IconMail size="tiny" />
- <p className="text">Send password recovery</p>
+ <p>Send password recovery</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuItem_Shadcn_ className="space-x-2" onClick={handleSendMagicLink}>
<IconMail size="tiny" />
- <p className="text">Send magic link</p>
+ <p>Send magic link</p>
</DropdownMenuItem_Shadcn_>
</>
) : null}
{user.phone !== null ? (
<DropdownMenuItem_Shadcn_ className="space-x-2" onClick={handleSendOtp}>
<IconMail size="tiny" />
- <p className="text">Send OTP</p>
+ <p>Send OTP</p>
</DropdownMenuItem_Shadcn_>
) : null}
<DropdownMenuSeparator_Shadcn_ />
@@ -156,7 +156,7 @@ const UserDropdown = ({ user, canRemoveUser, canRemoveMFAFactors }: UserDropdown
className="space-x-2"
>
<IconShieldOff size="tiny" />
- <p className="text">Remove MFA factors</p>
+ <p>Remove MFA factors</p>
</DropdownMenuItem_Shadcn_>
</Tooltip.Trigger>
{/*
@@ -189,7 +189,7 @@ const UserDropdown = ({ user, canRemoveUser, canRemoveMFAFactors }: UserDropdown
className="space-x-2"
>
<IconTrash size="tiny" />
- <p className="text">Delete user</p>
+ <p>Delete user</p>
</DropdownMenuItem_Shadcn_>
</Tooltip.Trigger>
{!canRemoveUser && (
diff --git a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
index b3002c9ae08..fcf64dedfb8 100644
--- a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
+++ b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
@@ -19,7 +19,6 @@ import {
import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'
import Table from 'components/to-be-cleaned/Table'
import { useCheckPermissions, useStore } from 'hooks'
-import { toJS } from 'mobx'
interface FunctionListProps {
schema: string
@@ -115,7 +114,7 @@ const FunctionList = ({
onClick={() => router.push(`/project/${projectRef}/api?rpc=${x.name}`)}
>
<IconFileText size="tiny" />
- <p className="text">Client API docs</p>
+ <p>Client API docs</p>
</DropdownMenuItem_Shadcn_>
)}
<DropdownMenuItem_Shadcn_
@@ -123,14 +122,14 @@ const FunctionList = ({
onClick={() => editFunction(x)}
>
<IconEdit3 size="tiny" />
- <p className="text">Edit function</p>
+ <p>Edit function</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuItem_Shadcn_
className="space-x-2"
onClick={() => deleteFunction(x)}
>
<IconTrash stroke="red" size="tiny" />
- <p className="text">Delete function</p>
+ <p>Delete function</p>
</DropdownMenuItem_Shadcn_>
</DropdownMenuContent_Shadcn_>
</DropdownMenu_Shadcn_>
diff --git a/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx b/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
index 94309e431f2..cb28f6f7232 100644
--- a/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
+++ b/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
@@ -100,7 +100,7 @@ const HookList = ({ schema, filterString, editHook = noop, deleteHook = noop }:
<>
<DropdownMenuItem_Shadcn_ className="space-x-2" onClick={() => editHook(x)}>
<IconEdit3 size="tiny" />
- <p className="text">Edit hook</p>
+ <p>Edit hook</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuSeparator_Shadcn_ />
<DropdownMenuItem_Shadcn_
@@ -108,7 +108,7 @@ const HookList = ({ schema, filterString, editHook = noop, deleteHook = noop }:
onClick={() => deleteHook(x)}
>
<IconTrash stroke="red" size="tiny" />
- <p className="text">Delete hook</p>
+ <p>Delete hook</p>
</DropdownMenuItem_Shadcn_>
</>
</DropdownMenuContent_Shadcn_>
diff --git a/studio/components/interfaces/Database/Roles/RoleRow.tsx b/studio/components/interfaces/Database/Roles/RoleRow.tsx
index b1637658f29..66173a6a2eb 100644
--- a/studio/components/interfaces/Database/Roles/RoleRow.tsx
+++ b/studio/components/interfaces/Database/Roles/RoleRow.tsx
@@ -146,7 +146,7 @@ const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => {
}}
>
<IconTrash className="text-red-800" size="tiny" strokeWidth={2} />
- <p className="text">Delete</p>
+ <p>Delete</p>
</DropdownMenuItem_Shadcn_>
</DropdownMenuContent_Shadcn_>
</DropdownMenu_Shadcn_>
diff --git a/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx b/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx
index 3f1d8201281..de7a0cbd932 100644
--- a/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx
+++ b/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx
@@ -124,14 +124,14 @@ const TriggerList = ({
onClick={() => editTrigger(x)}
>
<IconEdit3 size="tiny" />
- <p className="text">Edit trigger</p>
+ <p>Edit trigger</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuItem_Shadcn_
className="space-x-2"
onClick={() => deleteTrigger(x)}
>
<IconTrash stroke="red" size="tiny" />
- <p className="text">Delete trigger</p>
+ <p>Delete trigger</p>
</DropdownMenuItem_Shadcn_>
</>
</DropdownMenuContent_Shadcn_>
diff --git a/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx b/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx
index cbbf548ef5b..b0b7b9f3dc0 100644
--- a/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx
+++ b/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx
@@ -73,7 +73,7 @@ const WrapperDropdown = ({ buttonText = 'Add wrapper', align = 'end' }: WrapperD
height={20}
alt={`${wrapper.name} wrapper icon`}
/>
- <p className="text">{wrapper.label}</p>
+ <p>{wrapper.label}</p>
</DropdownMenuItem_Shadcn_>
</a>
</Link>
diff --git a/studio/components/interfaces/Docs/LangSelector.tsx b/studio/components/interfaces/Docs/LangSelector.tsx
index e37b2714a53..73eaf614298 100644
--- a/studio/components/interfaces/Docs/LangSelector.tsx
+++ b/studio/components/interfaces/Docs/LangSelector.tsx
@@ -85,7 +85,7 @@ const LangSelector = ({
})
}
>
- <p className="text">anon (public)</p>
+ <p>anon (public)</p>
</DropdownMenuItem_Shadcn_>
)}
{canReadServiceKey && (
@@ -98,7 +98,7 @@ const LangSelector = ({
})
}
>
- <p className="text">service_role (secret)</p>
+ <p>service_role (secret)</p>
</DropdownMenuItem_Shadcn_>
)}
</>
diff --git a/studio/components/interfaces/Integrations/IntegrationConnection.tsx b/studio/components/interfaces/Integrations/IntegrationConnection.tsx
index 3cbffb84ca8..6b1a37d7414 100644
--- a/studio/components/interfaces/Integrations/IntegrationConnection.tsx
+++ b/studio/components/interfaces/Integrations/IntegrationConnection.tsx
@@ -110,14 +110,14 @@ const IntegrationConnectionItem = forwardRef<HTMLLIElement, IntegrationConnectio
) : (
<IconRefreshCw size={14} />
)}
- <p className="text">Resync environment variables</p>
+ <p>Resync environment variables</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuSeparator_Shadcn_ />
</>
)}
<DropdownMenuItem_Shadcn_ className="space-x-2" onSelect={() => setIsOpen(true)}>
<IconTrash size={14} />
- <p className="text">Delete connection</p>
+ <p>Delete connection</p>
</DropdownMenuItem_Shadcn_>
</DropdownMenuContent_Shadcn_>
</DropdownMenu_Shadcn_>
diff --git a/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx b/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx
index ff41f5284c1..79cc3435eee 100644
--- a/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx
+++ b/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx
@@ -228,13 +228,13 @@ const PaymentMethods = () => {
key="make-default"
onClick={() => setSelectedMethodForDefault(paymentMethod)}
>
- <p className="text">Make default</p>
+ <p>Make default</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuItem_Shadcn_
key="delete-method"
onClick={() => setSelectedMethodToDelete(paymentMethod)}
>
- <p className="text">Delete</p>
+ <p>Delete</p>
</DropdownMenuItem_Shadcn_>
</DropdownMenuContent_Shadcn_>
</DropdownMenu_Shadcn_>
diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsx
index c293b648552..b96713722c9 100644
--- a/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsx
+++ b/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsx
@@ -189,7 +189,7 @@ const PaymentMethods = () => {
setSelectedMethodForUse(paymentMethod)
}
>
- <p className="text">Use this card</p>
+ <p>Use this card</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuSeparator_Shadcn_ />
</>
@@ -198,7 +198,7 @@ const PaymentMethods = () => {
key="delete-method"
onClick={() => setSelectedMethodToDelete(paymentMethod)}
>
- <p className="text">Delete card</p>
+ <p>Delete card</p>
</DropdownMenuItem_Shadcn_>
</DropdownMenuContent_Shadcn_>
</DropdownMenu_Shadcn_>
diff --git a/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx b/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx
index 2134c6322c1..8f7c5087eaf 100644
--- a/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx
+++ b/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx
@@ -80,7 +80,7 @@ const OAuthAppRow = ({ app, onSelectEdit, onSelectDelete }: OAuthAppRowProps) =>
onClick={() => onSelectEdit()}
>
<IconEdit />
- <p className="text">Edit app</p>
+ <p>Edit app</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuSeparator_Shadcn_ />
<DropdownMenuItem_Shadcn_
@@ -89,7 +89,7 @@ const OAuthAppRow = ({ app, onSelectEdit, onSelectDelete }: OAuthAppRowProps) =>
onClick={() => onSelectDelete()}
>
<IconTrash />
- <p className="text">Delete app</p>
+ <p>Delete app</p>
</DropdownMenuItem_Shadcn_>
</DropdownMenuContent_Shadcn_>
</DropdownMenu_Shadcn_>
diff --git a/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel.tsx b/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel.tsx
index 7c654f21967..4c0349573df 100644
--- a/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel.tsx
+++ b/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel.tsx
@@ -252,7 +252,7 @@ const PublishAppSidePanel = ({
(uploadButtonRef.current as any).click()
}}
>
- <p className="text">Upload image</p>
+ <p>Upload image</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuItem_Shadcn_
key="remove"
@@ -261,7 +261,7 @@ const PublishAppSidePanel = ({
setIconUrl(undefined)
}}
>
- <p className="text">Remove image</p>
+ <p>Remove image</p>
</DropdownMenuItem_Shadcn_>
</DropdownMenuContent_Shadcn_>
</DropdownMenu_Shadcn_>
diff --git a/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx b/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx
index 94539b0700c..8bf8568ac4d 100644
--- a/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx
+++ b/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx
@@ -188,7 +188,7 @@ const MemberActions = ({ member, roles }: MemberActionsProps) => {
) : (
<DropdownMenuItem_Shadcn_ className="space-x-2" onClick={handleMemberDelete}>
<IconTrash size={16} />
- <p className="text">Remove member</p>
+ <p>Remove member</p>
</DropdownMenuItem_Shadcn_>
)}
</>
diff --git a/studio/components/interfaces/Reports/ReportFilterBar.tsx b/studio/components/interfaces/Reports/ReportFilterBar.tsx
index abb2cf6d321..14bea5627f9 100644
--- a/studio/components/interfaces/Reports/ReportFilterBar.tsx
+++ b/studio/components/interfaces/Reports/ReportFilterBar.tsx
@@ -167,7 +167,7 @@ const ReportFilterBar = ({
</DropdownMenuTrigger_Shadcn_>
<DropdownMenuContent_Shadcn_ side="bottom" align="start">
<DropdownMenuItem_Shadcn_ onClick={() => handleProductFilterChange(null)}>
- <p className="text">All Requests</p>
+ <p>All Requests</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuSeparator_Shadcn_ />
{PRODUCT_FILTERS.map((productFilter) => {
diff --git a/studio/components/interfaces/SQLEditor/SQLEditor.tsx b/studio/components/interfaces/SQLEditor/SQLEditor.tsx
index b945ed482df..0307b607eb1 100644
--- a/studio/components/interfaces/SQLEditor/SQLEditor.tsx
+++ b/studio/components/interfaces/SQLEditor/SQLEditor.tsx
@@ -708,10 +708,10 @@ const SQLEditor = () => {
{getDiffTypeButtonLabel(selectedDiffType)}
</Button>
<DropdownMenu_Shadcn_>
- <DropdownMenuTrigger_Shadcn_>
+ <DropdownMenuTrigger_Shadcn_ asChild>
<Button
type="primary"
- className="rounded-l-none border-l-0 px-[4px] py-[5px]"
+ className="rounded-l-none border-l-0 px-[4px] py-[5px] flex"
icon={<IconChevronDown />}
/>
</DropdownMenuTrigger_Shadcn_>
@@ -735,7 +735,7 @@ const SQLEditor = () => {
}
}}
>
- <p className="text">{getDiffTypeDropdownLabel(diffType)}</p>
+ <p>{getDiffTypeDropdownLabel(diffType)}</p>
</DropdownMenuItem_Shadcn_>
))}
</DropdownMenuContent_Shadcn_>
diff --git a/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx b/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx
index 98c545e761b..259462ccae2 100644
--- a/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx
+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx
@@ -128,11 +128,11 @@ const ResultsDropdown = ({ id, isExecuting }: ResultsDropdownProps) => {
<>
<DropdownMenuItem_Shadcn_ onClick={onDownloadCSV} className="space-x-2">
<IconDownload size="tiny" />
- <p className="text">Download CSV</p>
+ <p>Download CSV</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuItem_Shadcn_ onClick={onCopyAsMarkdown} className="space-x-2">
<IconClipboard size="tiny" />
- <p className="text">Copy as markdown</p>
+ <p>Copy as markdown</p>
</DropdownMenuItem_Shadcn_>
</>
</DropdownMenuContent_Shadcn_>
diff --git a/studio/components/interfaces/Settings/API/JWTSettings.tsx b/studio/components/interfaces/Settings/API/JWTSettings.tsx
index ffa766cc6a3..1beb3be110b 100644
--- a/studio/components/interfaces/Settings/API/JWTSettings.tsx
+++ b/studio/components/interfaces/Settings/API/JWTSettings.tsx
@@ -182,7 +182,7 @@ const JWTSettings = () => {
onClick={() => setIsGeneratingKey(true)}
>
<IconRefreshCw size={16} />
- <p className="text">Generate a random secret</p>
+ <p>Generate a random secret</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuSeparator_Shadcn_ />
<DropdownMenuItem_Shadcn_
@@ -190,7 +190,7 @@ const JWTSettings = () => {
onClick={() => setIsCreatingKey(true)}
>
<IconPenTool size={16} />
- <p className="text">Create my own secret</p>
+ <p>Create my own secret</p>
</DropdownMenuItem_Shadcn_>
</DropdownMenuContent_Shadcn_>
</DropdownMenu_Shadcn_>
diff --git a/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx b/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx
index 2d353024155..a38e96ccb4b 100644
--- a/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx
+++ b/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx
@@ -125,7 +125,7 @@ const RestartServerButton = () => {
>
<div className="space-y-1">
<p className="block text-foreground">Fast database reboot</p>
- <p className="block text-foreground-light text-xs">
+ <p className="block text-foreground-light">
Restarts only the database - faster but may not be able to recover from all
failure modes
</p>
diff --git a/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx b/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
index f31ae1ac1e6..43d2f6c4cd1 100644
--- a/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
@@ -103,7 +103,7 @@ const LogsQueryPanel = ({
key={template.label}
onClick={() => onSelectTemplate(template)}
>
- <p className="text">{template.label}</p>
+ <p>{template.label}</p>
</DropdownMenuItem_Shadcn_>
))}
</DropdownMenuContent_Shadcn_>
diff --git a/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx b/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx
index 95580c0ba0f..be3b25e81c8 100644
--- a/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx
+++ b/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx
@@ -125,7 +125,7 @@ const SecretRow = ({ secret, onSelectEdit, onSelectRemove }: SecretRowProps) =>
onClick={() => onSelectEdit(secret)}
>
<IconEdit3 size="tiny" />
- <p className="text">Edit</p>
+ <p>Edit</p>
</DropdownMenuItem_Shadcn_>
</Tooltip.Trigger>
{!canManageSecrets && (
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
index e632e8072bd..6b1114559c5 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
@@ -132,7 +132,7 @@ const InputWithSuggestions = ({
onClick={() => onSelectSuggestion(suggestion)}
>
<div>{suggestion.name}</div>
- <div className="text-xs text-foreground-lighter">{suggestion.description}</div>
+ <div className="text-foreground-lighter">{suggestion.description}</div>
</DropdownMenuItem_Shadcn_>
))}
</DropdownMenuContent_Shadcn_>
diff --git a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx
index 62d15cf9d86..dce583836a4 100644
--- a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx
+++ b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx
@@ -8,6 +8,7 @@ import { FlaskConical } from 'lucide-react'
import { useTheme } from 'next-themes'
import Link from 'next/link'
import { useRouter } from 'next/router'
+import { useAppStateSnapshot } from 'state/app-state'
import {
Button,
DropdownMenuContent_Shadcn_,
@@ -33,7 +34,6 @@ import {
generateToolRoutes,
} from './NavigationBar.utils'
import NavigationIconButton from './NavigationIconButton'
-import { useAppStateSnapshot } from 'state/app-state'
const NavigationBar = () => {
const os = detectOS()
@@ -157,7 +157,7 @@ const NavigationBar = () => {
<Link href="/account/me">
<DropdownMenuItem_Shadcn_ key="header" className="space-x-2">
<IconSettings size={14} strokeWidth={1.5} />
- <p className="text">Account preferences</p>
+ <p>Account preferences</p>
</DropdownMenuItem_Shadcn_>
</Link>
{showFeaturePreviews && (
diff --git a/studio/components/layouts/SQLEditorLayout/QueryItem.tsx b/studio/components/layouts/SQLEditorLayout/QueryItem.tsx
index e5c54792764..905a50c237f 100644
--- a/studio/components/layouts/SQLEditorLayout/QueryItem.tsx
+++ b/studio/components/layouts/SQLEditorLayout/QueryItem.tsx
@@ -220,25 +220,25 @@ const QueryItemActions = observer(({ tabInfo, activeId }: QueryItemActionsProps)
<DropdownMenuContent_Shadcn_ side="bottom" align="end">
<DropdownMenuItem_Shadcn_ onClick={onClickRename} className="space-x-2">
<IconEdit2 size="tiny" />
- <p className="text">Rename query</p>
+ <p>Rename query</p>
</DropdownMenuItem_Shadcn_>
{sharedSnippetsFeature && visibility === 'user' && canCreateSQLSnippet && (
<DropdownMenuItem_Shadcn_ onClick={onClickShare} className="space-x-2">
<IconShare size="tiny" />
- <p className="text">Share query</p>
+ <p>Share query</p>
</DropdownMenuItem_Shadcn_>
)}
{sharedSnippetsFeature && visibility === 'project' && canCreateSQLSnippet && (
<DropdownMenuItem_Shadcn_ onClick={createPersonalCopy} className="space-x-2">
<IconCopy size="tiny" />
- <p className="text">Duplicate personal copy</p>
+ <p>Duplicate personal copy</p>
</DropdownMenuItem_Shadcn_>
)}
<>
<DropdownMenuSeparator_Shadcn_ />
<DropdownMenuItem_Shadcn_ onClick={onClickDelete} className="space-x-2">
<IconTrash size="tiny" />
- <p className="text">Delete query</p>
+ <p>Delete query</p>
</DropdownMenuItem_Shadcn_>
</>
</DropdownMenuContent_Shadcn_>
diff --git a/studio/components/layouts/StorageLayout/BucketRow.tsx b/studio/components/layouts/StorageLayout/BucketRow.tsx
index 4a8b5792164..a7772012b10 100644
--- a/studio/components/layouts/StorageLayout/BucketRow.tsx
+++ b/studio/components/layouts/StorageLayout/BucketRow.tsx
@@ -81,7 +81,7 @@ const BucketRow = ({
onClick={() => onSelectEditBucket(bucket)}
>
<IconEdit2 size="tiny" />
- <p className="text">Edit bucket</p>
+ <p>Edit bucket</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuSeparator_Shadcn_ />
<DropdownMenuItem_Shadcn_
@@ -90,7 +90,7 @@ const BucketRow = ({
onClick={() => onSelectDeleteBucket(bucket)}
>
<IconTrash size="tiny" />
- <p className="text">Delete bucket</p>
+ <p>Delete bucket</p>
</DropdownMenuItem_Shadcn_>
</DropdownMenuContent_Shadcn_>
</DropdownMenu_Shadcn_>
diff --git a/studio/components/layouts/TableEditorLayout/EntityListItem.tsx b/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
index e1bb5270c15..c8b7e70c934 100644
--- a/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
+++ b/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
@@ -217,7 +217,7 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt
}}
>
<IconEdit size="tiny" />
- <p className="text">Edit Table</p>
+ <p>Edit Table</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuItem_Shadcn_
key="duplicate-table"
@@ -228,7 +228,7 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt
}}
>
<IconCopy size="tiny" />
- <p className="text">Duplicate Table</p>
+ <p>Duplicate Table</p>
</DropdownMenuItem_Shadcn_>
<Link
key="view-policies"
@@ -237,7 +237,7 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt
<a>
<DropdownMenuItem_Shadcn_ key="delete-table" className="space-x-2">
<IconLock size="tiny" />
- <p className="text">View Policies</p>
+ <p>View Policies</p>
</DropdownMenuItem_Shadcn_>
</a>
</Link>
@@ -250,7 +250,7 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt
}}
>
<IconDownload size="tiny" />
- <p className="text">Export as CSV</p>
+ <p>Export as CSV</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuSeparator_Shadcn_ />
<DropdownMenuItem_Shadcn_
@@ -262,7 +262,7 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt
}}
>
<IconTrash size="tiny" />
- <p className="text">Delete Table</p>
+ <p>Delete Table</p>
</DropdownMenuItem_Shadcn_>
</DropdownMenuContent_Shadcn_>
</DropdownMenu_Shadcn_>
diff --git a/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.tsx b/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.tsx
index 225000d14ab..7b06200a68b 100644
--- a/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.tsx
+++ b/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.tsx
@@ -39,7 +39,7 @@ const OrganizationDropdown = ({
<DropdownMenuSeparator_Shadcn_ />
<DropdownMenuItem_Shadcn_ className="space-x-2" onClick={() => router.push(`/new`)}>
<IconPlus size="tiny" />
- <p className="text">New organization</p>
+ <p>New organization</p>
</DropdownMenuItem_Shadcn_>
</>
</DropdownMenuContent_Shadcn_>
diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx
index 42f15ffe916..d6b4b152059 100644
--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx
+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx
@@ -434,14 +434,14 @@ const FileExplorerRow = ({
<DropdownMenuSub_Shadcn_ key={option.name}>
<DropdownMenuSubTrigger_Shadcn_ className="space-x-2">
{option.icon || <></>}
- <p className="text-xs">{option.name}</p>
+ <p>{option.name}</p>
</DropdownMenuSubTrigger_Shadcn_>
<DropdownMenuPortal_Shadcn_>
<DropdownMenuSubContent_Shadcn_>
{(option?.children ?? [])?.map((child) => {
return (
<DropdownMenuItem_Shadcn_ key={child.name} onClick={child.onClick}>
- <p className="text-xs">{child.name}</p>
+ <p>{child.name}</p>
</DropdownMenuItem_Shadcn_>
)
})}
@@ -459,7 +459,7 @@ const FileExplorerRow = ({
onClick={option.onClick}
>
{option.icon || <></>}
- <p className="text-xs">{option.name}</p>
+ <p>{option.name}</p>
</DropdownMenuItem_Shadcn_>
)
}
diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx
index da14b4547d3..c0899e0f240 100644
--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx
+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx
@@ -223,7 +223,6 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {
<DropdownMenuContent_Shadcn_ side="bottom" align="center">
<DropdownMenuItem_Shadcn_
key="expires-one-week"
- className="text-xs"
onClick={async () =>
onCopyUrl(file.name, await getFileUrl(file, URL_EXPIRY_DURATION.WEEK))
}
@@ -232,7 +231,6 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {
</DropdownMenuItem_Shadcn_>
<DropdownMenuItem_Shadcn_
key="expires-one-month"
- className="text-xs"
onClick={async () =>
onCopyUrl(file.name, await getFileUrl(file, URL_EXPIRY_DURATION.MONTH))
}
@@ -241,7 +239,6 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {
</DropdownMenuItem_Shadcn_>
<DropdownMenuItem_Shadcn_
key="expires-one-year"
- className="text-xs"
onClick={async () =>
onCopyUrl(file.name, await getFileUrl(file, URL_EXPIRY_DURATION.YEAR))
}
@@ -250,7 +247,6 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {
</DropdownMenuItem_Shadcn_>
<DropdownMenuItem_Shadcn_
key="custom-expiry"
- className="text-xs"
onClick={() => setSelectedFileCustomExpiry(file)}
>
Custom expiry
diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js
index 5aac3531093..5f97ec8f9ea 100644
--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js
+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js
@@ -46,7 +46,7 @@ const PolicyRow = ({
onClick={() => onSelectPolicyEdit(policy, bucketName, table)}
>
<IconEdit size={14} />
- <p className="text">Edit</p>
+ <p>Edit</p>
</DropdownMenuItem_Shadcn_>
<DropdownMenuSeparator_Shadcn_ />
<DropdownMenuItem_Shadcn_
@@ -55,7 +55,7 @@ const PolicyRow = ({
onClick={() => onSelectPolicyDelete(policy)}
>
<IconTrash size={14} />
- <p className="text">Delete</p>
+ <p>Delete</p>
</DropdownMenuItem_Shadcn_>
</DropdownMenuContent_Shadcn_>
</DropdownMenu_Shadcn_>