Skip to content

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

Downgrade and fix radix dialog version to 1.0.5, and remove unnecessary modal props from all usages of DropdownMenu (#35027)

Joshen Lima4d5af48c87a
diff --git a/apps/studio/components/grid/components/header/filter/FilterPopover.tsx b/apps/studio/components/grid/components/header/filter/FilterPopover.tsx
index 8b0a1c5bea3..ccc6b91295c 100644
--- a/apps/studio/components/grid/components/header/filter/FilterPopover.tsx
+++ b/apps/studio/components/grid/components/header/filter/FilterPopover.tsx
@@ -17,10 +17,11 @@ import FilterRow from './FilterRow'
export interface FilterPopoverProps {
filters: string[]
+ portal?: boolean
onApplyFilters: (filters: Filter[]) => void
}
-const FilterPopover = ({ filters, onApplyFilters }: FilterPopoverProps) => {
+const FilterPopover = ({ filters, portal = true, onApplyFilters }: FilterPopoverProps) => {
const [open, setOpen] = useState(false)
const btnText =
@@ -35,14 +36,7 @@ const FilterPopover = ({ filters, onApplyFilters }: FilterPopoverProps) => {
{btnText}
</Button>
</PopoverTrigger_Shadcn_>
- <PopoverContent_Shadcn_
- className="p-0 w-96"
- side="bottom"
- align="start"
- // using `portal` for a safari fix. issue with rendering outside of body element
- // https://www.radix-ui.com/primitives/docs/components/popover#portal
- portal={true}
- >
+ <PopoverContent_Shadcn_ className="p-0 w-96" side="bottom" align="start" portal={portal}>
<FilterOverlay filters={filters} onApplyFilters={onApplyFilters} />
</PopoverContent_Shadcn_>
</Popover_Shadcn_>
diff --git a/apps/studio/components/grid/components/header/sort/SortPopover.tsx b/apps/studio/components/grid/components/header/sort/SortPopover.tsx
index 6f6ce9c4c50..cbd90ecb274 100644
--- a/apps/studio/components/grid/components/header/sort/SortPopover.tsx
+++ b/apps/studio/components/grid/components/header/sort/SortPopover.tsx
@@ -18,10 +18,11 @@ import SortRow from './SortRow'
export interface SortPopoverProps {
sorts: string[]
+ portal?: boolean
onApplySorts: (sorts: Sort[]) => void
}
-const SortPopover = ({ sorts, onApplySorts }: SortPopoverProps) => {
+const SortPopover = ({ sorts, portal = true, onApplySorts }: SortPopoverProps) => {
const [open, setOpen] = useState(false)
const btnText =
@@ -36,14 +37,7 @@ const SortPopover = ({ sorts, onApplySorts }: SortPopoverProps) => {
{btnText}
</Button>
</PopoverTrigger_Shadcn_>
- <PopoverContent_Shadcn_
- className="p-0 w-96"
- side="bottom"
- align="start"
- // using `portal` for a safari fix. issue with rendering outside of body element
- // https://www.radix-ui.com/primitives/docs/components/popover#portal
- portal={true}
- >
+ <PopoverContent_Shadcn_ className="p-0 w-96" side="bottom" align="start" portal={portal}>
<SortOverlay sorts={sorts} onApplySorts={onApplySorts} />
</PopoverContent_Shadcn_>
</Popover_Shadcn_>
diff --git a/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsx b/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsx
index 31911d72da5..7e1ab1988cf 100644
--- a/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsx
+++ b/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsx
@@ -6,7 +6,6 @@ import { ButtonTooltip } from 'components/ui/ButtonTooltip'
import { useAuthConfigQuery } from 'data/auth/auth-config-query'
import { useCheckPermissions } from 'hooks/misc/useCheckPermissions'
import { useSelectedOrganization } from 'hooks/misc/useSelectedOrganization'
-import { IS_PLATFORM } from 'lib/constants'
import {
Button,
DropdownMenu,
@@ -21,11 +20,13 @@ import { extractMethod, isValidHook } from './hooks.utils'
interface AddHookDropdownProps {
buttonText?: string
+ align?: 'end' | 'center'
onSelectHook: (hook: HOOK_DEFINITION_TITLE) => void
}
export const AddHookDropdown = ({
buttonText = 'Add hook',
+ align = 'end',
onSelectHook,
}: AddHookDropdownProps) => {
const { ref: projectRef } = useParams()
@@ -66,13 +67,13 @@ export const AddHookDropdown = ({
}
return (
- <DropdownMenu modal={false}>
+ <DropdownMenu>
<DropdownMenuTrigger asChild>
<Button type="primary" iconRight={<ChevronDown className="w-4 h-4" strokeWidth={1} />}>
{buttonText}
</Button>
</DropdownMenuTrigger>
- <DropdownMenuContent className="w-76" align="end">
+ <DropdownMenuContent className="w-76" align={align}>
<div>
{nonEnterpriseHookOptions.map((h) => (
<DropdownMenuItem key={h.title} onClick={() => onSelectHook(h.title)}>
diff --git a/apps/studio/components/interfaces/Auth/Hooks/HooksListing.tsx b/apps/studio/components/interfaces/Auth/Hooks/HooksListing.tsx
index bfa18d6e627..7be01b06262 100644
--- a/apps/studio/components/interfaces/Auth/Hooks/HooksListing.tsx
+++ b/apps/studio/components/interfaces/Auth/Hooks/HooksListing.tsx
@@ -82,7 +82,11 @@ export const HooksListing = () => {
].join(' ')}
>
<p className="text-sm text-foreground-light">No hooks configured yet</p>
- <AddHookDropdown buttonText="Add a new hook" onSelectHook={setSelectedHook} />
+ <AddHookDropdown
+ align="center"
+ buttonText="Add a new hook"
+ onSelectHook={setSelectedHook}
+ />
</div>
)}
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/AddIntegrationDropdown.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/AddIntegrationDropdown.tsx
index 39585f539d1..67eb4af2d4e 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/AddIntegrationDropdown.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/AddIntegrationDropdown.tsx
@@ -19,6 +19,7 @@ import {
interface AddIntegrationDropdownProps {
buttonText?: string
+ align?: 'end' | 'center'
onSelectIntegrationType: (type: INTEGRATION_TYPES) => void
}
@@ -45,16 +46,17 @@ const ProviderDropdownItem = ({
}
export const AddIntegrationDropdown = ({
+ align = 'end',
onSelectIntegrationType,
}: AddIntegrationDropdownProps) => {
return (
- <DropdownMenu modal={false}>
+ <DropdownMenu>
<DropdownMenuTrigger asChild>
<Button type="primary" iconRight={<ChevronDown size={14} strokeWidth={1} />}>
Add provider
</Button>
</DropdownMenuTrigger>
- <DropdownMenuContent align="end" className="w-56">
+ <DropdownMenuContent align={align} className="w-56">
<DropdownMenuLabel>Select Provider</DropdownMenuLabel>
<DropdownMenuSeparator />
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/index.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/index.tsx
index d969c70a25e..55ea6f3d324 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/index.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/index.tsx
@@ -102,6 +102,7 @@ export const ThirdPartyAuthForm = () => {
>
<p className="text-sm text-foreground-light">No providers configured yet</p>
<AddIntegrationDropdown
+ align="center"
buttonText="Add a new integration"
onSelectIntegrationType={setSelectedIntegration}
/>
@@ -149,9 +150,10 @@ export const ThirdPartyAuthForm = () => {
/>
<ConfirmationModal
+ size="medium"
visible={!!selectedIntegrationForDeletion}
variant="destructive"
- title="Confirm to delete"
+ title="Confirm to delete integration"
confirmLabel="Delete"
confirmLabelLoading="Deleting"
onCancel={() => setSelectedIntegrationForDeletion(undefined)}
@@ -174,8 +176,9 @@ export const ThirdPartyAuthForm = () => {
}
}}
>
- <p className="py-4 text-sm text-foreground-light">
- {`Are you sure you want to delete the ${getIntegrationTypeLabel(getIntegrationType(selectedIntegrationForDeletion))} integration?`}
+ <p className="text-sm text-foreground-light">
+ Are you sure you want to delete the{' '}
+ {getIntegrationTypeLabel(getIntegrationType(selectedIntegrationForDeletion))} integration?
</p>
</ConfirmationModal>
</ScaffoldSection>
diff --git a/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx b/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx
index 55b6d5ad6c8..84e378c3653 100644
--- a/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx
@@ -213,7 +213,7 @@ export const BranchRow = ({
</Link>
</Button>
<WorkflowLogs projectRef={branch.project_ref} />
- <DropdownMenu modal={false}>
+ <DropdownMenu>
<DropdownMenuTrigger asChild>
<Button type="text" icon={<MoreVertical />} className="px-1" />
</DropdownMenuTrigger>
@@ -260,7 +260,7 @@ export const BranchRow = ({
</div>
)}
<WorkflowLogs projectRef={branch.project_ref} />
- <DropdownMenu modal={false}>
+ <DropdownMenu>
<DropdownMenuTrigger asChild>
<Button type="text" icon={<MoreVertical />} className="px-1" />
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx b/apps/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx
index baac5075579..78081397bea 100644
--- a/apps/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx
+++ b/apps/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx
@@ -163,7 +163,7 @@ const HTTPRequestFields = ({
Add a new header
</Button>
{type === 'supabase_function' && (
- <DropdownMenu modal>
+ <DropdownMenu>
<DropdownMenuTrigger asChild>
<Button type="default" className="rounded-l-none px-[4px] py-[5px]">
<ChevronDown />
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionTesterSheet.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionTesterSheet.tsx
index 05875e91173..60d3e605c62 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionTesterSheet.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionTesterSheet.tsx
@@ -433,7 +433,7 @@ export const EdgeFunctionTesterSheet = ({ visible, onClose }: EdgeFunctionTester
<SheetFooter className="px-5 py-3 border-t">
<div className="flex items-center gap-2">
- <RoleImpersonationPopover />
+ <RoleImpersonationPopover portal={false} />
<Button
type="primary"
htmlType="submit"
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/HttpHeaderFieldsSection.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/HttpHeaderFieldsSection.tsx
index cc08187bdb7..1ee72a8896f 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/HttpHeaderFieldsSection.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/HttpHeaderFieldsSection.tsx
@@ -95,7 +95,7 @@ export const HTTPHeaderFieldsSection = ({ variant }: HTTPHeaderFieldsSectionProp
Add a new header
</Button>
{variant === 'edge_function' && (
- <DropdownMenu modal>
+ <DropdownMenu>
<DropdownMenuTrigger asChild>
<Button type="default" className="rounded-l-none px-[4px] py-[5px]">
<ChevronDown size={14} />
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx
index 1e88a8c4b38..1dc9e366a5d 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx
@@ -73,13 +73,13 @@ const Scope = ({
<span className="text-foreground text-sm">{title}</span>
<span className="text-foreground-light text-xs">{description}</span>
</div>
- <DropdownMenu modal={true}>
+ <DropdownMenu>
<DropdownMenuTrigger asChild>
<Button type="default" iconRight={<ChevronDown />}>
<p>{accessDescription}</p>
</Button>
</DropdownMenuTrigger>
- <DropdownMenuContent align="end">
+ <DropdownMenuContent align="end" className="w-40">
<DropdownMenuLabel>Select an access level</DropdownMenuLabel>
<DropdownMenuSeparator />
<ScopeDropdownCheckboxItem scopeName={readScopeName} scopes={scopes} onChange={setScopes}>
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeTokensPopover/index.tsx b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeTokensPopover/index.tsx
index 1c99059a2d4..ddfafe20953 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeTokensPopover/index.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeTokensPopover/index.tsx
@@ -1,16 +1,16 @@
import { Dispatch, SetStateAction, useEffect, useRef } from 'react'
import { toast } from 'sonner'
+import { useParams } from 'common'
import { RoleImpersonationPopover } from 'components/interfaces/RoleImpersonationSelector'
import { useProjectPostgrestConfigQuery } from 'data/config/project-postgrest-config-query'
import { getAPIKeys, useProjectSettingsV2Query } from 'data/config/project-settings-v2-query'
import { useSendEventMutation } from 'data/telemetry/send-event-mutation'
+import { useSelectedOrganization } from 'hooks/misc/useSelectedOrganization'
import { IS_PLATFORM } from 'lib/constants'
import { getRoleImpersonationJWT } from 'lib/role-impersonation'
import { useRoleImpersonationStateSnapshot } from 'state/role-impersonation-state'
import { RealtimeConfig } from '../useRealtimeMessages'
-import { useParams } from 'common'
-import { useSelectedOrganization } from 'hooks/misc/useSelectedOrganization'
interface RealtimeTokensPopoverProps {
config: RealtimeConfig
diff --git a/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx b/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx
index 98ed320c7e7..318f03e3546 100644
--- a/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx
+++ b/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx
@@ -8,12 +8,14 @@ import { getAvatarUrl, getDisplayName } from '../Auth/Users/Users.utils'
import RoleImpersonationSelector from './RoleImpersonationSelector'
export interface RoleImpersonationPopoverProps {
+ portal?: boolean
serviceRoleLabel?: string
variant?: 'regular' | 'connected-on-right' | 'connected-on-left' | 'connected-on-both'
align?: 'center' | 'start' | 'end'
}
const RoleImpersonationPopover = ({
+ portal = true,
serviceRoleLabel,
variant = 'regular',
align = 'end',
@@ -57,12 +59,10 @@ const RoleImpersonationPopover = ({
</Button>
</PopoverTrigger_Shadcn_>
<PopoverContent_Shadcn_
+ portal={portal}
className="p-0 w-full overflow-hidden"
side="bottom"
align={align}
- // using `portal` for a safari fix. issue with rendering outside of body element
- // https://www.radix-ui.com/primitives/docs/components/popover#portal
- portal={true}
>
<RoleImpersonationSelector serviceRoleLabel={serviceRoleLabel} />
</PopoverContent_Shadcn_>
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceNode.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceNode.tsx
index 3664b860856..8db1a1bb8ec 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceNode.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceNode.tsx
@@ -87,7 +87,7 @@ export const LoadBalancerNode = ({ data }: NodeProps<LoadBalancerData>) => {
</p>
</div>
</div>
- <DropdownMenu modal={false}>
+ <DropdownMenu>
<DropdownMenuTrigger asChild>
<Button type="text" icon={<MoreVertical />} className="px-1" />
</DropdownMenuTrigger>
@@ -336,7 +336,7 @@ export const ReplicaNode = ({ data }: NodeProps<ReplicaNodeData>) => {
)}
</div>
</div>
- <DropdownMenu modal={false}>
+ <DropdownMenu>
<DropdownMenuTrigger asChild>
<Button type="text" icon={<MoreVertical />} className="px-1" />
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx
index 0727fb269a3..fbcac6a6bfc 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx
@@ -290,7 +290,7 @@ const MapView = ({
)}
</div>
{database.identifier !== ref && (
- <DropdownMenu modal={false}>
+ <DropdownMenu>
<DropdownMenuTrigger asChild>
<Button type="text" icon={<MoreVertical />} className="px-1" />
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx b/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
index effd954bc4d..28b749dea85 100644
--- a/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
@@ -263,11 +263,10 @@ const GridHeaderActions = ({ table }: GridHeaderActionsProps) => {
</Button>
</PopoverTrigger_Shadcn_>
<PopoverContent_Shadcn_
+ // using `portal` for a safari fix. issue with rendering outside of body element
+ portal
className="min-w-[395px] text-sm"
align="end"
- // using `portal` for a safari fix. issue with rendering outside of body element
- // https://www.radix-ui.com/primitives/docs/components/popover#portal
- portal={true}
>
<h3 className="flex items-center gap-2">
<Lock size={16} /> Row Level Security (RLS)
@@ -304,11 +303,10 @@ const GridHeaderActions = ({ table }: GridHeaderActionsProps) => {
</Button>
</PopoverTrigger_Shadcn_>
<PopoverContent_Shadcn_
+ // using `portal` for a safari fix. issue with rendering outside of body element
+ portal
className="min-w-[395px] text-sm"
align="end"
- // using `portal` for a safari fix. issue with rendering outside of body element
- // https://www.radix-ui.com/primitives/docs/components/popover#portal
- portal={true}
>
<h3 className="flex items-center gap-2">
<Unlock size={16} /> Secure your View
@@ -355,11 +353,10 @@ const GridHeaderActions = ({ table }: GridHeaderActionsProps) => {
</Button>
</PopoverTrigger_Shadcn_>
<PopoverContent_Shadcn_
+ // using `portal` for a safari fix. issue with rendering outside of body element
+ portal
className="min-w-[395px] text-sm"
align="end"
- // using `portal` for a safari fix. issue with rendering outside of body element
- // https://www.radix-ui.com/primitives/docs/components/popover#portal
- portal={true}
>
<h3 className="flex items-center gap-2">
<Unlock size={16} /> Secure your View
@@ -398,11 +395,10 @@ const GridHeaderActions = ({ table }: GridHeaderActionsProps) => {
</Button>
</PopoverTrigger_Shadcn_>
<PopoverContent_Shadcn_
+ // using `portal` for a safari fix. issue with rendering outside of body element
+ portal
className="min-w-[395px] text-sm"
align="end"
- // using `portal` for a safari fix. issue with rendering outside of body element
- // https://www.radix-ui.com/primitives/docs/components/popover#portal
- portal={true}
>
<h3 className="flex items-center gap-2">
<Unlock size={16} /> Secure Foreign table
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
index ed545dadb10..7e9f642e6e0 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
@@ -96,7 +96,7 @@ const InputWithSuggestions = ({
data-testid={dataTestId}
actions={
showSuggestions && (
- <DropdownMenu modal>
+ <DropdownMenu>
<DropdownMenuTrigger asChild>
<ButtonTooltip
type="default"
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/DateTimeInput/DateTimeInput.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/DateTimeInput/DateTimeInput.tsx
index 42b8b3f8307..ae9fc696145 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/DateTimeInput/DateTimeInput.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/DateTimeInput/DateTimeInput.tsx
@@ -63,7 +63,7 @@ const DateTimeInput = ({
<DropdownMenuTrigger asChild>
<Button type="default" icon={<Edit />} className="px-1.5" />
</DropdownMenuTrigger>
- <DropdownMenuContent align="end" className="w-28">
+ <DropdownMenuContent align="end" className="w-28 pointer-events-auto">
{isNullable && (
<DropdownMenuItem onClick={() => onChange('')}>Set to NULL</DropdownMenuItem>
)}
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 5abf86c40d8..221e6bfa353 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
@@ -160,9 +160,13 @@ const ForeignRowSelector = ({
<div className="flex items-center justify-between my-2 mx-3">
<div className="flex items-center">
<RefreshButton tableId={table?.id} isRefetching={isRefetching} />
- <FilterPopover filters={filters} onApplyFilters={onApplyFilters} />
+ <FilterPopover
+ portal={false}
+ filters={filters}
+ onApplyFilters={onApplyFilters}
+ />
<DndProvider backend={HTML5Backend} context={window}>
- <SortPopover sorts={sorts} onApplySorts={onApplySorts} />
+ <SortPopover portal={false} sorts={sorts} onApplySorts={onApplySorts} />
</DndProvider>
</div>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
index 00250608a1e..68c01aef41a 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
@@ -121,7 +121,7 @@ const InputField = ({
onChange={(event: any) => onUpdateField({ [field.name]: event.target.value })}
actions={
isEditable && (
- <DropdownMenu modal>
+ <DropdownMenu>
<DropdownMenuTrigger asChild>
<Button type="default" icon={<Edit />} className="px-1.5" />
</DropdownMenuTrigger>
diff --git a/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx b/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx
index 2126874a4f1..92bb5ff9f4f 100644
--- a/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx
+++ b/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx
@@ -408,7 +408,7 @@ const FileExplorerRow: ItemRenderer<StorageItem, FileExplorerRowProps> = ({
strokeWidth={2}
/>
) : (
- <DropdownMenu modal={false}>
+ <DropdownMenu>
<DropdownMenuTrigger>
<div className="storage-row-menu opacity-0">
<MoreVertical size={16} strokeWidth={2} />
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 5ff9363508a..ef62f1f4bb8 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -26,7 +26,7 @@
"@radix-ui/react-collapsible": "^1.0.3",
"@radix-ui/react-context": "^1.0.1",
"@radix-ui/react-context-menu": "^2.1.5",
- "@radix-ui/react-dialog": "^1.1.4",
+ "@radix-ui/react-dialog": "1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-hover-card": "^1.0.7",
"@radix-ui/react-label": "^2.0.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a6737f7a5d8..4597cc22010 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1730,8 +1730,8 @@ importers:
specifier: ^2.1.5
'@radix-ui/react-dialog':
- specifier: ^1.1.4
+ specifier: 1.0.5
'@radix-ui/react-dropdown-menu':
specifier: ^2.0.6
@@ -4582,19 +4582,6 @@ packages:
'@types/react-dom':
optional: true
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-/IVhJV5AceX620DUJ4uYVMymzsipdKBzo3edo+omeskCKGm9FRHM0ebIdbPnlQVJqyuHbuBltQUOG2mOTq2IYw==}
- peerDependencies:
- '@types/react': '*'
- '@types/react-dom': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
'@radix-ui/[email protected]':
resolution: {integrity: sha512-RXcvnXgyvYvBEOhCBuddKecVkoMiI10Jcm5cTI7abJRAHYfFxeu+FBQs/DvdxSYucxR5mna0dNsL6QFlds5TMA==}
peerDependencies:
@@ -4674,15 +4661,6 @@ packages:
'@types/react':
optional: true
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-pSIwfrT1a6sIoDASCSpFwOasEwKTZWDw/iBdtnqKO7v6FeOzYJ7U53cPzYFVR3geGGXgVHaH+CdngrrAzqUGxg==}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
'@radix-ui/[email protected]':
resolution: {integrity: sha512-sL04Mgvf+FmyvZeYfNu1EPAaaxD+aw7cYeIB9L9Fvq8+urhltTRaEo5ysKOpHuKPclsZcSUMKlN05x4u+CINpA==}
peerDependencies:
@@ -4709,19 +4687,6 @@ packages:
'@types/react-dom':
optional: true
- '@radix-ui/[email protected]':
- resolution: {integrity: sha512-zxwE80FCU7lcXUGWkdt6XpTTCKPitG1XKOwViTxHVKIJhZl9MvIl2dVHeZENCWD9+EdWv05wlaEkRXUykU27RA==}
- peerDependencies:
- '@types/react': '*'
- '@types/react-dom': '*'
- react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
- '@types/react-dom':
- optional: true
-
'@radix-ui/[email protected]':
resolution: {integrity: sha512-OcUN2FU0YpmajD/qkph3XzMcK/NmSk9hGWnjV68p6QiZMgILugusgQwnLSDs3oFSJYGKf3Y49zgFedhGh04k9A==}
peerDependencies:
@@ -9870,9 +9835,6 @@ packages:
resolution: {integrity: sha512-fn4bQ0Xq8FTej09YC/jqKZwtijpvARlRp6wxL5WTA6yPe2YWSJ5RJh7Nm79rK2qB0wr6iDQzH60XGq5V/7u8YQ==}
- resolution: {integrity: sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==}
-
resolution: {integrity: sha512-tBZlIIWbndeWBWCXWZiqtOF/yxf6yZX3tAlTJ7nfo5jhd6dctNxF7QnYlZLZ1a0o0pDoen7CgZqO+zjNaFbJAg==}
engines: {node: '>=12.22.0'}
@@ -12736,16 +12698,6 @@ packages:
resolution: {integrity: sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==}
engines: {node: '>=0.10.0'}
- resolution: {integrity: sha512-63C4YQBUt0m6ALadE9XV56hV8BgJWDmmTPY758iIJjfQKt2nYwoUrPk0LXRXcB/yIj82T1/Ixfdpdk68LwIB0A==}
- engines: {node: '>=10'}
- peerDependencies:
- '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0
- react: ^16.8.0 || ^17.0.0 || ^18.0.0
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==}
engines: {node: '>=10'}
@@ -12776,16 +12728,6 @@ packages:
'@types/react':
optional: true
- resolution: {integrity: sha512-pnAi91oOk8g8ABQKGF5/M9qxmmOPxaAnopyTHYfqYEwJhyFrbbBtHuSgtKEoH0jpcxx5o3hXqH1mNd9/Oi+8iQ==}
- engines: {node: '>=10'}
- peerDependencies:
- '@types/react': '*'
- react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
resolution: {integrity: sha512-kzue8lsoSBdyyd2IfXLQMMhNujOxRoGVus+63K95fQqleGxTfvgYLTzbwYMOODeAHqnkjb3WV/Ks7f5+gDYZuQ==}
peerDependencies:
@@ -12820,16 +12762,6 @@ packages:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
- resolution: {integrity: sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==}
- engines: {node: '>=10'}
- peerDependencies:
- '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0
- react: ^16.8.0 || ^17.0.0 || ^18.0.0
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==}
engines: {node: '>=10'}
@@ -14571,16 +14503,6 @@ packages:
resolution: {integrity: sha512-XdVKMF4SJ0nP/O7XIPB0JwAEuT9lDIYnNsK8yGVe43y0AWoKeJNdv3ZNWh7ksJ6KqQFjOO6ox/VEitLnaVNufw==}
- resolution: {integrity: sha512-3FT9PRuRdbB9HfXhEq35u4oZkvpJ5kuYbpqhCfmiZyReuRgpnhDlbr2ZEnnuS0RrJAPn6l23xjFg9kpDM+Ms7w==}
- engines: {node: '>=10'}
- peerDependencies:
- '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0
- react: ^16.8.0 || ^17.0.0 || ^18.0.0
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==}
engines: {node: '>=10'}
@@ -14602,16 +14524,6 @@ packages:
peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0
- resolution: {integrity: sha512-epTbsLuzZ7lPClpz2TyryBfztm7m+28DlEv2ZCQ3MDr5ssiwyOwGH/e5F9CkfWjJ1t4clvI58yF822/GUkjjhw==}
- engines: {node: '>=10'}
- peerDependencies:
- '@types/react': ^16.9.0 || ^17.0.0 || ^18.0.0
- react: ^16.8.0 || ^17.0.0 || ^18.0.0
- peerDependenciesMeta:
- '@types/react':
- optional: true
-
resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==}
engines: {node: '>=10'}
@@ -18388,32 +18300,10 @@ snapshots:
'@radix-ui/react-slot': 1.0.2(@types/[email protected])([email protected])
'@radix-ui/react-use-controllable-state': 1.0.1(@types/[email protected])([email protected])
- aria-hidden: 1.2.3
- react: 18.2.0
- react-dom: 18.2.0([email protected])
- react-remove-scroll: 2.5.5(@types/[email protected])([email protected])
- optionalDependencies:
- '@types/react': 18.3.3
- '@types/react-dom': 18.3.0
-
- dependencies:
- '@radix-ui/primitive': 1.1.1
- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])
- '@radix-ui/react-context': 1.1.1(@types/[email protected])([email protected])
- '@radix-ui/react-dismissable-layer': 1.1.5(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-focus-guards': 1.1.1(@types/[email protected])([email protected])
- '@radix-ui/react-focus-scope': 1.1.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-id': 1.1.0(@types/[email protected])([email protected])
- '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-slot': 1.1.2(@types/[email protected])([email protected])
- '@radix-ui/react-use-controllable-state': 1.1.0(@types/[email protected])([email protected])
aria-hidden: 1.2.4
react: 18.2.0
react-dom: 18.2.0([email protected])
- react-remove-scroll: 2.6.3(@types/[email protected])([email protected])
+ react-remove-scroll: 2.5.5(@types/[email protected])([email protected])
optionalDependencies:
'@types/react': 18.3.3
'@types/react-dom': 18.3.0
@@ -18494,12 +18384,6 @@ snapshots:
optionalDependencies:
'@types/react': 18.3.3
- dependencies:
- react: 18.2.0
- optionalDependencies:
- '@types/react': 18.3.3
-
dependencies:
'@babel/runtime': 7.26.10
@@ -18523,17 +18407,6 @@ snapshots:
'@types/react': 18.3.3
'@types/react-dom': 18.3.0
- dependencies:
- '@radix-ui/react-compose-refs': 1.1.1(@types/[email protected])([email protected])
- '@radix-ui/react-primitive': 2.0.2(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])
- '@radix-ui/react-use-callback-ref': 1.1.0(@types/[email protected])([email protected])
- react: 18.2.0
- react-dom: 18.2.0([email protected])
- optionalDependencies:
- '@types/react': 18.3.3
- '@types/react-dom': 18.3.0
-
dependencies:
'@babel/runtime': 7.26.10
@@ -25256,10 +25129,6 @@ snapshots:
- dependencies:
- loose-envify: 1.4.0
-
dependencies:
'@ioredis/commands': 1.2.0
@@ -29252,14 +29121,6 @@ snapshots:
- dependencies:
- react: 18.2.0
- react-style-singleton: 2.2.1(@types/[email protected])([email protected])
- tslib: 2.8.1
- optionalDependencies:
- '@types/react': 18.3.3
-
dependencies:
react: 18.2.0
@@ -29271,26 +29132,15 @@ snapshots:
dependencies:
react: 18.2.0
- react-remove-scroll-bar: 2.3.4(@types/[email protected])([email protected])
- react-style-singleton: 2.2.1(@types/[email protected])([email protected])
+ react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])
+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])
tslib: 2.8.1
- use-callback-ref: 1.3.0(@types/[email protected])([email protected])
- use-sidecar: 1.1.2(@types/[email protected])([email protected])
+ use-callback-ref: 1.3.3(@types/[email protected])([email protected])
+ use-sidecar: 1.1.3(@types/[email protected])([email protected])
optionalDependencies:
'@types/react': 18.3.3
- dependencies:
- react: 18.2.0
- react-remove-scroll-bar: 2.3.4(@types/[email protected])([email protected])
- react-style-singleton: 2.2.1(@types/[email protected])([email protected])
- tslib: 2.8.1
- use-callback-ref: 1.3.0(@types/[email protected])([email protected])
- use-sidecar: 1.1.2(@types/[email protected])([email protected])
- optionalDependencies:
- '@types/react': 18.3.3
-
dependencies:
react: 18.2.0
react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])
@@ -29342,15 +29192,6 @@ snapshots:
react-dom: 18.2.0([email protected])
react-transition-group: 4.4.5([email protected]([email protected]))([email protected])
- dependencies:
- get-nonce: 1.0.1
- invariant: 2.2.4
- react: 18.2.0
- tslib: 2.8.1
- optionalDependencies:
- '@types/react': 18.3.3
-
dependencies:
get-nonce: 1.0.1
@@ -29507,7 +29348,7 @@ snapshots:
esprima: 4.0.1
source-map: 0.6.1
tiny-invariant: 1.3.3
- tslib: 2.6.2
+ tslib: 2.8.1
dependencies:
@@ -31518,13 +31359,6 @@ snapshots:
- dependencies:
- react: 18.2.0
- tslib: 2.8.1
- optionalDependencies:
- '@types/react': 18.3.3
-
dependencies:
react: 18.2.0
@@ -31540,14 +31374,6 @@ snapshots:
dependencies:
react: 18.2.0
- dependencies:
- detect-node-es: 1.1.0
- react: 18.2.0
- tslib: 2.8.1
- optionalDependencies:
- '@types/react': 18.3.3
-
dependencies:
detect-node-es: 1.1.0
@@ -31613,7 +31439,7 @@ snapshots:
dependencies:
react: 18.2.0
react-dom: 18.2.0([email protected])
transitivePeerDependencies: