Skip to content

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

Mass update for all lucide icon imports to use the component with Icon suffix (#51659)

Joshen Lim09a1f431bcf6
diff --git a/apps/studio/AGENTS.md b/apps/studio/AGENTS.md
index d007e5dc2bd..19fb5459f2d 100644
--- a/apps/studio/AGENTS.md
+++ b/apps/studio/AGENTS.md
@@ -83,7 +83,7 @@ Older Studio code predates some of these conventions. For new or modified code,
- **Permissions**: `useAsyncCheckPermissions` from `hooks/misc/useCheckPermissions` (returns `can: true` when self-hosted).
- **Gating**: `useIsFeatureEnabled` for product features, `useFlag` from `'common'` for feature flags — two different systems.
- **Dates**: `dayjs` (plugins pre-loaded at both entries, `pages/_app.tsx` and `routes/__root.tsx`), not `date-fns`. **Toasts**: `toast` from `'sonner'`.
-- **Import split**: `'ui'` = primitives, `'ui-patterns'` = composed patterns (`ConfirmationModal`, …), `@ui/*` = alias into `packages/ui/src`. Icons come from `lucide-react`.
+- **Import split**: `'ui'` = primitives, `'ui-patterns'` = composed patterns (`ConfirmationModal`, …), `@ui/*` = alias into `packages/ui/src`. Icons come from `lucide-react`, always imported with the `Icon` suffix (`import { CheckIcon, Trash2Icon } from 'lucide-react'`) — never the bare names (`Check`) or `Check as CheckIcon` aliases (lint-enforced).
- **New tables** use `@tanstack/react-table`; `react-data-grid` is banned for new code.
- **Ad-hoc SQL** against the user's database goes through `executeSql` / `useExecuteSqlMutation` (`data/sql/execute-sql-mutation`).
- **Confirmations**: `ConfirmationModal` / `TextConfirmModal` from `ui-patterns`, never `window.confirm`. Disabled buttons needing an explanation use `ButtonTooltip`; inline warnings use `Admonition`.
diff --git a/apps/studio/components/grid/components/editor/DateTimeEditor.tsx b/apps/studio/components/grid/components/editor/DateTimeEditor.tsx
index 2ffc0353016..ad4ea1b20f3 100644
--- a/apps/studio/components/grid/components/editor/DateTimeEditor.tsx
+++ b/apps/studio/components/grid/components/editor/DateTimeEditor.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { useEffect, useRef, useState } from 'react'
import type { RenderEditCellProps } from 'react-data-grid'
import {
@@ -153,7 +153,7 @@ function BaseEditor<TRow, TSummaryRow = unknown>({
<DropdownMenuTrigger asChild>
<Button
aria-label="Date options"
- icon={<ChevronDown />}
+ icon={<ChevronDownIcon />}
className="px-1 rounded-l-none border-l-0"
/>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/grid/components/editor/JsonEditor.tsx b/apps/studio/components/grid/components/editor/JsonEditor.tsx
index d560fc82224..464d607dd24 100644
--- a/apps/studio/components/grid/components/editor/JsonEditor.tsx
+++ b/apps/studio/components/grid/components/editor/JsonEditor.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Maximize } from 'lucide-react'
+import { MaximizeIcon } from 'lucide-react'
import { useCallback, useState } from 'react'
import type { RenderEditCellProps } from 'react-data-grid'
import { toast } from 'sonner'
@@ -223,7 +223,7 @@ export const JsonEditor = <TRow, TSummaryRow = unknown>({
].join(' ')}
onClick={() => onSelectExpand()}
>
- <Maximize size={12} strokeWidth={2} />
+ <MaximizeIcon size={12} strokeWidth={2} />
</div>
</TooltipTrigger>
<TooltipContent side="bottom" align="center">
diff --git a/apps/studio/components/grid/components/editor/TextEditor.tsx b/apps/studio/components/grid/components/editor/TextEditor.tsx
index e89d59de7c2..63329bd115d 100644
--- a/apps/studio/components/grid/components/editor/TextEditor.tsx
+++ b/apps/studio/components/grid/components/editor/TextEditor.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Maximize } from 'lucide-react'
+import { MaximizeIcon } from 'lucide-react'
import { useCallback, useState } from 'react'
import type { RenderEditCellProps } from 'react-data-grid'
import { toast } from 'sonner'
@@ -180,7 +180,7 @@ export const TextEditor = <TRow, TSummaryRow = unknown>({
<Button
className="px-1"
onClick={() => onSelectExpand()}
- icon={<Maximize size={12} strokeWidth={2} />}
+ icon={<MaximizeIcon size={12} strokeWidth={2} />}
aria-label="Expand editor"
/>
</TooltipTrigger>
diff --git a/apps/studio/components/grid/components/footer/operations/SaveQueueActionBar.tsx b/apps/studio/components/grid/components/footer/operations/SaveQueueActionBar.tsx
index 355dc3c134d..e83bb032370 100644
--- a/apps/studio/components/grid/components/footer/operations/SaveQueueActionBar.tsx
+++ b/apps/studio/components/grid/components/footer/operations/SaveQueueActionBar.tsx
@@ -1,4 +1,4 @@
-import { Eye, MoreVertical, Trash } from 'lucide-react'
+import { EyeIcon, MoreVerticalIcon, TrashIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { createPortal } from 'react-dom'
import {
@@ -77,7 +77,7 @@ export const SaveQueueActionBar = () => {
<Button
variant="outline"
className="w-7"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
aria-label="More options"
/>
</DropdownMenuTrigger>
@@ -87,7 +87,7 @@ export const SaveQueueActionBar = () => {
onClick={() => snap.toggleViewOperationQueue()}
>
<div className="flex items-center gap-x-2">
- <Eye size={14} />
+ <EyeIcon size={14} />
<span>Review</span>
</div>
<KeyboardShortcut keys={['Meta', '.']} />
@@ -95,7 +95,7 @@ export const SaveQueueActionBar = () => {
<DropdownMenuSeparator />
<DropdownMenuItem onClick={confirmOnClose}>
<div className="flex items-center gap-x-2">
- <Trash size={14} />
+ <TrashIcon size={14} />
<span>Discard</span>
</div>
</DropdownMenuItem>
diff --git a/apps/studio/components/grid/components/footer/pagination/Pagination.tsx b/apps/studio/components/grid/components/footer/pagination/Pagination.tsx
index 3fce1af126a..33075f6c3ba 100644
--- a/apps/studio/components/grid/components/footer/pagination/Pagination.tsx
+++ b/apps/studio/components/grid/components/footer/pagination/Pagination.tsx
@@ -1,7 +1,7 @@
import { THRESHOLD_COUNT } from '@supabase/pg-meta'
import { keepPreviousData } from '@tanstack/react-query'
import { useParams } from 'common'
-import { AlertCircle, ArrowLeft, ArrowRight, HelpCircle } from 'lucide-react'
+import { AlertCircleIcon, ArrowLeftIcon, ArrowRightIcon, HelpCircleIcon } from 'lucide-react'
import { useEffect, useRef, useState } from 'react'
import { Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { Input } from 'ui-patterns/DataInputs/Input'
@@ -207,7 +207,7 @@ export const Pagination = ({ enableForeignRowsQuery = true }: PaginationProps) =
<div className="flex items-center gap-x-2">
<Button
aria-label="Previous page"
- icon={<ArrowLeft />}
+ icon={<ArrowLeftIcon />}
variant="outline"
className="px-1.5"
disabled={page <= 1}
@@ -233,7 +233,7 @@ export const Pagination = ({ enableForeignRowsQuery = true }: PaginationProps) =
/>
<Button
aria-label="Next page"
- icon={<ArrowRight />}
+ icon={<ArrowRightIcon />}
variant="outline"
className="px-1.5"
disabled={isLastPage || !enableForeignRowsQuery}
@@ -250,7 +250,7 @@ export const Pagination = ({ enableForeignRowsQuery = true }: PaginationProps) =
<div className="flex items-center gap-x-2">
<Button
aria-label="Previous page"
- icon={<ArrowLeft />}
+ icon={<ArrowLeftIcon />}
variant="outline"
className="px-1.5"
disabled={page <= 1 || isLoading}
@@ -284,7 +284,7 @@ export const Pagination = ({ enableForeignRowsQuery = true }: PaginationProps) =
<Button
aria-label="Next page"
- icon={<ArrowRight />}
+ icon={<ArrowRightIcon />}
variant="outline"
className="px-1.5"
disabled={isLastPage}
@@ -304,7 +304,7 @@ export const Pagination = ({ enableForeignRowsQuery = true }: PaginationProps) =
variant="text"
className="w-7"
loading={isFetching}
- icon={<AlertCircle />}
+ icon={<AlertCircleIcon />}
aria-label="Get exact row count"
disabled
/>
@@ -328,7 +328,7 @@ export const Pagination = ({ enableForeignRowsQuery = true }: PaginationProps) =
variant="text"
className="w-7"
loading={isFetching}
- icon={<HelpCircle />}
+ icon={<HelpCircleIcon />}
aria-label="Get exact row count"
onClick={() => {
// Show warning if either NOT a table entity, or table rows estimate is beyond threshold
diff --git a/apps/studio/components/grid/components/formatter/CellContextMenuWrapper.tsx b/apps/studio/components/grid/components/formatter/CellContextMenuWrapper.tsx
index 90ebd1e8299..73cc097040c 100644
--- a/apps/studio/components/grid/components/formatter/CellContextMenuWrapper.tsx
+++ b/apps/studio/components/grid/components/formatter/CellContextMenuWrapper.tsx
@@ -1,4 +1,4 @@
-import { Copy } from 'lucide-react'
+import { CopyIcon } from 'lucide-react'
import { PropsWithChildren } from 'react'
import { toast } from 'sonner'
import {
@@ -30,7 +30,7 @@ export const CellContextMenuWrapper = ({
<ContextMenuTrigger className="flex items-center w-full">{children}</ContextMenuTrigger>
<ContextMenuContent>
<ContextMenuItem className="gap-x-2" onSelect={onCopyCellContent}>
- <Copy size={12} />
+ <CopyIcon size={12} />
<span className="text-xs">Copy cell</span>
</ContextMenuItem>
</ContextMenuContent>
diff --git a/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx b/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
index 55cd23afd4a..5d0a8f27b1d 100644
--- a/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
+++ b/apps/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx
@@ -1,5 +1,5 @@
import type { PGTable } from '@supabase/pg-meta'
-import { ArrowRight } from 'lucide-react'
+import { ArrowRightIcon } from 'lucide-react'
import type { PropsWithChildren } from 'react'
import type { RenderCellProps } from 'react-data-grid'
import { Popover, PopoverContent, PopoverTrigger } from 'ui'
@@ -105,7 +105,7 @@ export const ForeignKeyFormatter = (props: Props) => {
<ButtonTooltip
className="w-6 h-6"
aria-label="View referencing record"
- icon={<ArrowRight />}
+ icon={<ArrowRightIcon />}
onClick={(e) => e.stopPropagation()}
tooltip={{ content: { side: 'bottom', text: 'View referencing record' } }}
/>
diff --git a/apps/studio/components/grid/components/formatter/ReferenceRecordPeek.tsx b/apps/studio/components/grid/components/formatter/ReferenceRecordPeek.tsx
index bbd4ac2413e..77e4765ebb6 100644
--- a/apps/studio/components/grid/components/formatter/ReferenceRecordPeek.tsx
+++ b/apps/studio/components/grid/components/formatter/ReferenceRecordPeek.tsx
@@ -1,7 +1,7 @@
import type { PGTable } from '@supabase/pg-meta'
import { keepPreviousData } from '@tanstack/react-query'
import { useParams } from 'common'
-import { Key } from 'lucide-react'
+import { KeyIcon } from 'lucide-react'
import { useMemo, useRef } from 'react'
import DataGrid, { CalculatedColumn, Column } from 'react-data-grid'
import { Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -91,7 +91,7 @@ export const ReferenceRecordPeek = ({ table, filters }: ReferenceRecordPeekProps
{isPrimaryKey && (
<Tooltip>
<TooltipTrigger>
- <Key size={14} strokeWidth={2} className="text-primary rotate-45" />
+ <KeyIcon size={14} strokeWidth={2} className="text-primary rotate-45" />
</TooltipTrigger>
<TooltipContent side="bottom">Primary key</TooltipContent>
</Tooltip>
diff --git a/apps/studio/components/grid/components/grid/AddColumn.tsx b/apps/studio/components/grid/components/grid/AddColumn.tsx
index d10053b0daa..7750bf84dd4 100644
--- a/apps/studio/components/grid/components/grid/AddColumn.tsx
+++ b/apps/studio/components/grid/components/grid/AddColumn.tsx
@@ -1,4 +1,4 @@
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import type { CalculatedColumn } from 'react-data-grid'
import { Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -38,7 +38,7 @@ const AddColumnHeader = () => {
block
variant="text"
onClick={tableEditorSnap.onAddColumn}
- icon={<Plus />}
+ icon={<PlusIcon />}
aria-label="Add new column"
/>
</TooltipTrigger>
diff --git a/apps/studio/components/grid/components/grid/ColumnHeader.tsx b/apps/studio/components/grid/components/grid/ColumnHeader.tsx
index 306834fa840..f3f72d13e1e 100644
--- a/apps/studio/components/grid/components/grid/ColumnHeader.tsx
+++ b/apps/studio/components/grid/components/grid/ColumnHeader.tsx
@@ -1,7 +1,7 @@
import { useSortable } from '@dnd-kit/sortable'
import { CSS } from '@dnd-kit/utilities'
import { FOREIGN_KEY_CASCADE_ACTION } from '@supabase/pg-meta'
-import { ArrowRight, Key, Lightbulb, Link, Lock } from 'lucide-react'
+import { ArrowRightIcon, KeyIcon, LightbulbIcon, LinkIcon, LockIcon } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import {
@@ -46,7 +46,7 @@ export function ColumnHeader<R>({
<Tooltip>
<TooltipTrigger>
<div className="sb-grid-column-header__inner__primary-key">
- <Key size={14} strokeWidth={2} />
+ <KeyIcon size={14} strokeWidth={2} />
</div>
</TooltipTrigger>
<TooltipContent side="bottom" className="font-normal">
@@ -73,7 +73,7 @@ export function ColumnHeader<R>({
{isEncrypted && (
<Tooltip>
<TooltipTrigger>
- <Lock size={14} strokeWidth={2} />
+ <LockIcon size={14} strokeWidth={2} />
</TooltipTrigger>
<TooltipContent side="bottom" className="font-normal">
Encrypted column
@@ -89,7 +89,7 @@ export function ColumnHeader<R>({
onClick={() => openSheet(column.name as string)}
>
<span className="sr-only">View {column.name} index suggestion</span>
- <Lightbulb size={14} strokeWidth={2} className="text-warning!" />
+ <LightbulbIcon size={14} strokeWidth={2} className="text-warning!" />
</button>
</TooltipTrigger>
<TooltipContent side="bottom" className="font-normal">
@@ -119,14 +119,14 @@ function ColumnIcon({
return (
<Tooltip>
<TooltipTrigger>
- <Link size={14} strokeWidth={2} />
+ <LinkIcon size={14} strokeWidth={2} />
</TooltipTrigger>
<TooltipContent side="bottom">
<div className="font-normal">
<p className="text-xs text-foreground-light">Foreign key relation:</p>
<div className="flex items-center space-x-1">
<p className="text-xs text-foreground!">{name}</p>
- <ArrowRight size={14} strokeWidth={1.5} className="text-foreground-light!" />
+ <ArrowRightIcon size={14} strokeWidth={1.5} className="text-foreground-light!" />
<p className="text-xs text-foreground!">
{foreignKey?.targetTableSchema}.{foreignKey?.targetTableName}.
{foreignKey?.targetColumnName}
diff --git a/apps/studio/components/grid/components/grid/ColumnOverlayItem.tsx b/apps/studio/components/grid/components/grid/ColumnOverlayItem.tsx
index f48b9cedb47..45cf40cb7d2 100644
--- a/apps/studio/components/grid/components/grid/ColumnOverlayItem.tsx
+++ b/apps/studio/components/grid/components/grid/ColumnOverlayItem.tsx
@@ -1,4 +1,4 @@
-import { Key, Lightbulb, Link, Lock } from 'lucide-react'
+import { KeyIcon, LightbulbIcon, LinkIcon, LockIcon } from 'lucide-react'
import { useColumnHasIndexSuggestion } from '../../context/TableIndexAdvisorContext'
import { ColumnType, SupaColumn } from '../../types'
@@ -23,7 +23,7 @@ export function ColumnOverlayItem({ column }: ColumnOverlayItemProps) {
<ColumnIcon type={columnType} />
{column.isPrimaryKey && (
<div className="sb-grid-column-header__inner__primary-key">
- <Key size={14} strokeWidth={2} />
+ <KeyIcon size={14} strokeWidth={2} />
</div>
)}
@@ -33,8 +33,10 @@ export function ColumnOverlayItem({ column }: ColumnOverlayItemProps) {
{columnFormat}
{columnFormat === 'bytea' ? ` (hex)` : ''}
</span>
- {column.isEncrypted && <Lock size={14} strokeWidth={2} />}
- {hasIndexSuggestion && <Lightbulb size={14} strokeWidth={2} className="text-warning!" />}
+ {column.isEncrypted && <LockIcon size={14} strokeWidth={2} />}
+ {hasIndexSuggestion && (
+ <LightbulbIcon size={14} strokeWidth={2} className="text-warning!" />
+ )}
</div>
</div>
)
@@ -44,7 +46,7 @@ function ColumnIcon({ type }: { type: ColumnType }) {
switch (type) {
case 'foreign_key':
// [Joshen] Look into this separately but this should be a hover card instead
- return <Link size={14} strokeWidth={2} />
+ return <LinkIcon size={14} strokeWidth={2} />
default:
return null
}
diff --git a/apps/studio/components/grid/components/grid/GridError.tsx b/apps/studio/components/grid/components/grid/GridError.tsx
index f9bcd007a68..39b5f4c83f8 100644
--- a/apps/studio/components/grid/components/grid/GridError.tsx
+++ b/apps/studio/components/grid/components/grid/GridError.tsx
@@ -1,6 +1,6 @@
import { useQueryClient } from '@tanstack/react-query'
import { useParams } from 'common'
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { useCallback } from 'react'
import { Button, Collapsible, CollapsibleContent, CollapsibleTrigger } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -224,7 +224,7 @@ const ExpandError = ({ error }: { error: ResponseError }) => {
<CollapsibleTrigger className="mt-2 group font-normal p-0 [&[data-state=open]>div>svg]:-rotate-180!">
<div className="flex items-center gap-x-2 w-full cursor-pointer">
<span className="font-mono uppercase tracking-tight">View error</span>
- <ChevronDown className="transition-transform" size={14} />
+ <ChevronDownIcon className="transition-transform" size={14} />
</div>
</CollapsibleTrigger>
<CollapsibleContent className="mt-1">
diff --git a/apps/studio/components/grid/components/grid/SelectColumn.tsx b/apps/studio/components/grid/components/grid/SelectColumn.tsx
index 3434f3845d1..8a4360e2c55 100644
--- a/apps/studio/components/grid/components/grid/SelectColumn.tsx
+++ b/apps/studio/components/grid/components/grid/SelectColumn.tsx
@@ -1,4 +1,4 @@
-import { Maximize2 } from 'lucide-react'
+import { Maximize2Icon } from 'lucide-react'
import { ChangeEvent, InputHTMLAttributes, SyntheticEvent, useEffect, useRef } from 'react'
import {
CalculatedColumn,
@@ -150,7 +150,7 @@ function SelectCellFormatter({
variant="text"
size="tiny"
className="px-1 rdg-row__select-column__edit-action"
- icon={<Maximize2 />}
+ icon={<Maximize2Icon />}
onClick={onEditClick}
tooltip={{
content: {
diff --git a/apps/studio/components/grid/components/header/Header.tsx b/apps/studio/components/grid/components/header/Header.tsx
index ea8fc957635..e09d4d1d39f 100644
--- a/apps/studio/components/grid/components/header/Header.tsx
+++ b/apps/studio/components/grid/components/header/Header.tsx
@@ -1,6 +1,6 @@
import { keepPreviousData } from '@tanstack/react-query'
import { useBreakpoint, useParams } from 'common'
-import { ChevronDown, Trash } from 'lucide-react'
+import { ChevronDownIcon, TrashIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { ReactNode, useEffect, useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -354,7 +354,7 @@ const RowHeader = ({ rows: visibleRows, tableQueriesEnabled = true }: RowHeaderP
{!snap.allRowsSelected ? (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button size="tiny" iconRight={<ChevronDown />} loading={isCopying}>
+ <Button size="tiny" iconRight={<ChevronDownIcon />} loading={isCopying}>
Copy
</Button>
</DropdownMenuTrigger>
@@ -381,7 +381,7 @@ const RowHeader = ({ rows: visibleRows, tableQueriesEnabled = true }: RowHeaderP
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button size="tiny" iconRight={<ChevronDown />} loading={isExporting}>
+ <Button size="tiny" iconRight={<ChevronDownIcon />} loading={isExporting}>
Export
</Button>
</DropdownMenuTrigger>
@@ -433,7 +433,7 @@ const RowHeader = ({ rows: visibleRows, tableQueriesEnabled = true }: RowHeaderP
<ButtonTooltip
variant="danger"
size="tiny"
- icon={<Trash />}
+ icon={<TrashIcon />}
onClick={onRowsDelete}
disabled={snap.allRowsSelected && isImpersonatingRole}
tooltip={{
diff --git a/apps/studio/components/grid/components/header/RefreshButton.tsx b/apps/studio/components/grid/components/header/RefreshButton.tsx
index 5c9cdf67f89..04cd9d08a49 100644
--- a/apps/studio/components/grid/components/header/RefreshButton.tsx
+++ b/apps/studio/components/grid/components/header/RefreshButton.tsx
@@ -1,6 +1,6 @@
import { useQueryClient } from '@tanstack/react-query'
import { useParams } from 'common'
-import { RefreshCw } from 'lucide-react'
+import { RefreshCwIcon } from 'lucide-react'
import { Button } from 'ui'
import { useTableIndexAdvisor } from '@/components/grid/context/TableIndexAdvisorContext'
@@ -34,7 +34,7 @@ export const RefreshButton = ({ tableId, isRefetching }: RefreshButtonProps) =>
<Button
variant="outline"
loading={isRefetching}
- icon={<RefreshCw />}
+ icon={<RefreshCwIcon />}
onClick={() => onClick()}
className="w-7 p-0"
aria-label="Refresh table data"
diff --git a/apps/studio/components/grid/components/header/filter/FilterPopoverNew.tsx b/apps/studio/components/grid/components/header/filter/FilterPopoverNew.tsx
index baf554da1a8..1cb61e3ffa1 100644
--- a/apps/studio/components/grid/components/header/filter/FilterPopoverNew.tsx
+++ b/apps/studio/components/grid/components/header/filter/FilterPopoverNew.tsx
@@ -1,5 +1,5 @@
import { format } from 'date-fns'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useCallback, useEffect, useEffectEvent, useMemo, useRef, useState } from 'react'
import { AiIconAnimation, Button, Calendar } from 'ui'
import {
@@ -227,7 +227,7 @@ export const FilterPopoverNew = ({
const icon = isGenerating ? (
<AiIconAnimation size={16} loading />
) : isRefetching ? (
- <Loader2
+ <Loader2Icon
className="animate-spin text-primary h-4 w-4 shrink-0"
aria-label="Loading table data"
/>
diff --git a/apps/studio/components/grid/components/header/filter/FilterPopoverPrimitive.tsx b/apps/studio/components/grid/components/header/filter/FilterPopoverPrimitive.tsx
index bcea5f7c105..2eda82e1270 100644
--- a/apps/studio/components/grid/components/header/filter/FilterPopoverPrimitive.tsx
+++ b/apps/studio/components/grid/components/header/filter/FilterPopoverPrimitive.tsx
@@ -1,5 +1,5 @@
import { isEqual } from 'lodash'
-import { Filter as FilterIcon, Plus } from 'lucide-react'
+import { FilterIcon, PlusIcon } from 'lucide-react'
import { KeyboardEvent, useCallback, useMemo, useState } from 'react'
import { Button, Popover, PopoverContent, PopoverSeparator, PopoverTrigger } from 'ui'
@@ -110,7 +110,7 @@ export const FilterPopoverPrimitive = ({
</div>
<PopoverSeparator />
<div className="px-3 flex flex-row justify-between">
- <Button icon={<Plus />} variant="dashed" onClick={onAddFilter}>
+ <Button icon={<PlusIcon />} variant="dashed" onClick={onAddFilter}>
Add filter
</Button>
<Button
diff --git a/apps/studio/components/grid/components/header/filter/FilterRow.tsx b/apps/studio/components/grid/components/header/filter/FilterRow.tsx
index 09283e041ed..4e087fcef7a 100644
--- a/apps/studio/components/grid/components/header/filter/FilterRow.tsx
+++ b/apps/studio/components/grid/components/header/filter/FilterRow.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown, X } from 'lucide-react'
+import { ChevronDownIcon, XIcon } from 'lucide-react'
import { KeyboardEvent, memo } from 'react'
import { Button, Input, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -50,7 +50,7 @@ const FilterRow = ({ filter, filterIdx, onChange, onDelete, onKeyDown }: FilterR
variant="outline"
icon={
<div className="text-foreground-lighter">
- <ChevronDown strokeWidth={1.5} />
+ <ChevronDownIcon strokeWidth={1.5} />
</div>
}
className="w-32 justify-start"
@@ -73,7 +73,7 @@ const FilterRow = ({ filter, filterIdx, onChange, onDelete, onKeyDown }: FilterR
variant="outline"
icon={
<div className="text-foreground-lighter">
- <ChevronDown strokeWidth={1.5} />
+ <ChevronDownIcon strokeWidth={1.5} />
</div>
}
>
@@ -98,7 +98,7 @@ const FilterRow = ({ filter, filterIdx, onChange, onDelete, onKeyDown }: FilterR
<Button
variant="text"
className="px-1"
- icon={<X strokeWidth={1.5} />}
+ icon={<XIcon strokeWidth={1.5} />}
onClick={() => onDelete(filterIdx)}
aria-label="Remove filter"
/>
diff --git a/apps/studio/components/grid/components/header/sort/SortPopoverPrimitive.tsx b/apps/studio/components/grid/components/header/sort/SortPopoverPrimitive.tsx
index 30570a092e6..a6130e70a37 100644
--- a/apps/studio/components/grid/components/header/sort/SortPopoverPrimitive.tsx
+++ b/apps/studio/components/grid/components/header/sort/SortPopoverPrimitive.tsx
@@ -16,7 +16,7 @@ import { THRESHOLD_COUNT } from '@supabase/pg-meta'
import { keepPreviousData } from '@tanstack/react-query'
import { useParams } from 'common'
import { isEqual } from 'lodash'
-import { ChevronDown, List } from 'lucide-react'
+import { ChevronDownIcon, ListIcon } from 'lucide-react'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { Button, Popover, PopoverContent, PopoverSeparator, PopoverTrigger } from 'ui'
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
@@ -236,7 +236,7 @@ export const SortPopoverPrimitive = ({
<>
<Popover modal={false} open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
- <Button variant={localSorts.length > 0 ? 'link' : 'text'} icon={<List />}>
+ <Button variant={localSorts.length > 0 ? 'link' : 'text'} icon={<ListIcon />}>
{displayButtonText}
</Button>
</PopoverTrigger>
@@ -292,7 +292,7 @@ export const SortPopoverPrimitive = ({
<Button
asChild
variant="dashed"
- iconRight={<ChevronDown size="14" className="text-foreground-light" />}
+ iconRight={<ChevronDownIcon size="14" className="text-foreground-light" />}
className="my-1"
data-testid="table-editor-pick-column-to-sort-button"
>
diff --git a/apps/studio/components/grid/components/header/sort/SortRow.tsx b/apps/studio/components/grid/components/header/sort/SortRow.tsx
index 23a737c3bd8..bbb10a410d4 100644
--- a/apps/studio/components/grid/components/header/sort/SortRow.tsx
+++ b/apps/studio/components/grid/components/header/sort/SortRow.tsx
@@ -1,6 +1,6 @@
import { useSortable } from '@dnd-kit/sortable'
import { CSS } from '@dnd-kit/utilities'
-import { GripVertical, X } from 'lucide-react'
+import { GripVerticalIcon, XIcon } from 'lucide-react'
import { memo } from 'react'
import { Button, Switch, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -42,7 +42,7 @@ const SortRow = ({ index, columnName, sort, onDelete, onToggle }: SortRowProps)
type="button"
tabIndex={0}
>
- <GripVertical size={16} strokeWidth={1.5} />
+ <GripVerticalIcon size={16} strokeWidth={1.5} />
</button>
<div className="grow">
<span className="flex grow items-center gap-1 truncate text-sm text-foreground">
@@ -63,7 +63,7 @@ const SortRow = ({ index, columnName, sort, onDelete, onToggle }: SortRowProps)
<Tooltip>
<TooltipTrigger asChild>
<Button
- icon={<X strokeWidth={1.5} />}
+ icon={<XIcon strokeWidth={1.5} />}
size="tiny"
variant="text"
className="w-7"
diff --git a/apps/studio/components/grid/components/menu/ColumnMenu.tsx b/apps/studio/components/grid/components/menu/ColumnMenu.tsx
index ba3e891602d..4b28215a20b 100644
--- a/apps/studio/components/grid/components/menu/ColumnMenu.tsx
+++ b/apps/studio/components/grid/components/menu/ColumnMenu.tsx
@@ -1,4 +1,14 @@
-import { ArrowDown, ArrowUp, ChevronDown, Copy, Edit, Eye, Lock, Trash, Unlock } from 'lucide-react'
+import {
+ ArrowDownIcon,
+ ArrowUpIcon,
+ ChevronDownIcon,
+ CopyIcon,
+ EditIcon,
+ EyeIcon,
+ LockIcon,
+ TrashIcon,
+ UnlockIcon,
+} from 'lucide-react'
import { useContext, useEffect, useState } from 'react'
import type { CalculatedColumn } from 'react-data-grid'
import { toast } from 'sonner'
@@ -132,7 +142,7 @@ export const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {
)}
onClick={() => onSortColumn(true)}
>
- <ArrowUp size={14} strokeWidth={currentSort?.ascending ? 3 : 1.5} />
+ <ArrowUpIcon size={14} strokeWidth={currentSort?.ascending ? 3 : 1.5} />
<span>Sort Ascending</span>
</DropdownMenuItem>
<DropdownMenuItem
@@ -144,7 +154,7 @@ export const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {
)}
onClick={() => onSortColumn(false)}
>
- <ArrowDown size={14} strokeWidth={currentSort && !currentSort.ascending ? 3 : 1.5} />
+ <ArrowDownIcon size={14} strokeWidth={currentSort && !currentSort.ascending ? 3 : 1.5} />
<span>Sort Descending</span>
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -155,7 +165,7 @@ export const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {
copyToClipboard(columnName)
}}
>
- <Copy size={12} />
+ <CopyIcon size={12} />
<span>Copy name</span>
</DropdownMenuItem>
{snap.editable && (
@@ -167,7 +177,7 @@ export const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {
onClick={onEditColumn}
disabled={isEncrypted}
>
- <Edit size={14} strokeWidth={1.5} />
+ <EditIcon size={14} strokeWidth={1.5} />
<span>Edit column</span>
</DropdownMenuItem>
</TooltipTrigger>
@@ -183,12 +193,12 @@ export const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {
>
{column.frozen ? (
<>
- <Unlock size={14} strokeWidth={1.5} />
+ <UnlockIcon size={14} strokeWidth={1.5} />
<span>Unfreeze column</span>
</>
) : (
<>
- <Lock size={14} strokeWidth={1.5} />
+ <LockIcon size={14} strokeWidth={1.5} />
<span>Freeze column</span>
</>
)}
@@ -199,7 +209,7 @@ export const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {
disabled={snap.temporarilyRevealedColumns.has(columnKey)}
onClick={onToggleSensitiveData}
>
- <Eye size={14} strokeWidth={1.5} />
+ <EyeIcon size={14} strokeWidth={1.5} />
<span>
{snap.temporarilyRevealedColumns.has(columnKey) ? 'Data revealed (5s)' : 'Show data'}
</span>
@@ -209,7 +219,7 @@ export const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {
<>
<DropdownMenuSeparator />
<DropdownMenuItem className="space-x-2" onClick={onDeleteColumn}>
- <Trash size={14} className="text-destructive" />
+ <TrashIcon size={14} className="text-destructive" />
<span>Delete column</span>
</DropdownMenuItem>
</>
@@ -230,7 +240,7 @@ export const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {
e.stopPropagation()
}}
aria-label={`Column ${column.name} actions`}
- icon={<ChevronDown />}
+ icon={<ChevronDownIcon />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" side="bottom">
diff --git a/apps/studio/components/grid/components/menu/RowContextMenu.tsx b/apps/studio/components/grid/components/menu/RowContextMenu.tsx
index 7122eb5b529..e22eaf462c3 100644
--- a/apps/studio/components/grid/components/menu/RowContextMenu.tsx
+++ b/apps/studio/components/grid/components/menu/RowContextMenu.tsx
@@ -1,4 +1,4 @@
-import { Copy, Edit, ListFilter, Trash } from 'lucide-react'
+import { CopyIcon, EditIcon, ListFilterIcon, TrashIcon } from 'lucide-react'
import { useCallback } from 'react'
import { toast } from 'sonner'
import { copyToClipboard, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from 'ui'
@@ -100,16 +100,16 @@ export const RowContextMenuContent = ({
return (
<DropdownMenuContent align="start" side="right" sideOffset={0} className="w-36 min-w-36!">
<DropdownMenuItem className="gap-x-2" onSelect={onCopyCellContent}>
- <Copy size={12} />
+ <CopyIcon size={12} />
<span className="text-xs">Copy cell</span>
</DropdownMenuItem>
<DropdownMenuItem className="gap-x-2" onSelect={onCopyRowContent}>
- <Copy size={12} />
+ <CopyIcon size={12} />
<span className="text-xs">Copy row</span>
</DropdownMenuItem>
{isFilterByValueVisible() && (
<DropdownMenuItem className="gap-x-2" onSelect={onFilterByValue}>
- <ListFilter size={12} />
+ <ListFilterIcon size={12} />
<span className="text-xs">Filter by value</span>
</DropdownMenuItem>
)}
@@ -117,12 +117,12 @@ export const RowContextMenuContent = ({
<>
<DropdownMenuSeparator />
<DropdownMenuItem className="gap-x-2" onSelect={onEditRowClick}>
- <Edit size={12} />
+ <EditIcon size={12} />
<span className="text-xs">Edit row</span>
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem className="gap-x-2" onSelect={onDeleteRow}>
- <Trash size={12} />
+ <TrashIcon size={12} />
<span className="text-xs">Delete row</span>
</DropdownMenuItem>
</>
diff --git a/apps/studio/components/interfaces/APIKeys/APIKeyDeleteDialog.tsx b/apps/studio/components/interfaces/APIKeys/APIKeyDeleteDialog.tsx
index 0c2bab785ba..10fe18ed6a4 100644
--- a/apps/studio/components/interfaces/APIKeys/APIKeyDeleteDialog.tsx
+++ b/apps/studio/components/interfaces/APIKeys/APIKeyDeleteDialog.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Trash2 } from 'lucide-react'
+import { Trash2Icon } from 'lucide-react'
import { DropdownMenuItemTooltip } from '@/components/ui/DropdownMenuItemTooltip'
import type { APIKeysData } from '@/data/api-keys/api-keys-query'
@@ -34,7 +34,7 @@ export const APIKeyDeleteDialog = ({ apiKey, setKeyToDelete }: APIKeyDeleteDialo
},
}}
>
- <Trash2 size={14} /> Delete API key
+ <Trash2Icon size={14} /> Delete API key
</DropdownMenuItemTooltip>
)
}
diff --git a/apps/studio/components/interfaces/APIKeys/APIKeyRow.tsx b/apps/studio/components/interfaces/APIKeys/APIKeyRow.tsx
index 26ee45f7a66..e7b68a845e4 100644
--- a/apps/studio/components/interfaces/APIKeys/APIKeyRow.tsx
+++ b/apps/studio/components/interfaces/APIKeys/APIKeyRow.tsx
@@ -1,5 +1,5 @@
import { IS_PLATFORM } from 'common'
-import { MoreVertical } from 'lucide-react'
+import { MoreVerticalIcon } from 'lucide-react'
import { motion } from 'motion/react'
import {
Button,
@@ -74,7 +74,7 @@ export const APIKeyRow = ({
variant="text"
size="tiny"
icon={
- <MoreVertical
+ <MoreVerticalIcon
size="14"
className="text-foreground-light hover:text-foreground"
/>
diff --git a/apps/studio/components/interfaces/APIKeys/ApiKeyPill.tsx b/apps/studio/components/interfaces/APIKeys/ApiKeyPill.tsx
index f4b6f6e6c43..0c903982bf5 100644
--- a/apps/studio/components/interfaces/APIKeys/ApiKeyPill.tsx
+++ b/apps/studio/components/interfaces/APIKeys/ApiKeyPill.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Eye, EyeOff } from 'lucide-react'
+import { EyeIcon, EyeOffIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { toast } from 'sonner'
import { Button, cn, InputVariants, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -114,7 +114,7 @@ export function ApiKeyPill({
aria-label={show ? 'Hide API key' : 'Reveal API key'}
className="rounded-full px-2 pointer-events-auto"
loading={show && isLoading}
- icon={show ? <EyeOff strokeWidth={2} /> : <Eye strokeWidth={2} />}
+ icon={show ? <EyeOffIcon strokeWidth={2} /> : <EyeIcon strokeWidth={2} />}
onClick={onToggleShow}
disabled={isRestricted}
/>
diff --git a/apps/studio/components/interfaces/APIKeys/ApiKeysIllustrations.tsx b/apps/studio/components/interfaces/APIKeys/ApiKeysIllustrations.tsx
index f63fd6350bb..4ac76e91676 100644
--- a/apps/studio/components/interfaces/APIKeys/ApiKeysIllustrations.tsx
+++ b/apps/studio/components/interfaces/APIKeys/ApiKeysIllustrations.tsx
@@ -1,6 +1,6 @@
import { SupportCategories } from '@supabase/shared-types/out/constants'
import { LOCAL_STORAGE_KEYS } from 'common'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import {
Card,
CardContent,
@@ -138,7 +138,8 @@ export const ApiKeysFeedbackBanner = () => {
href="https://github.com/orgs/supabase/discussions/29260"
className="inline-flex items-center gap-1"
>
- Join the discussion on GitHub <ExternalLink aria-hidden size={14} strokeWidth={1.5} />
+ Join the discussion on GitHub{' '}
+ <ExternalLinkIcon aria-hidden size={14} strokeWidth={1.5} />
</InlineLink>
</p>
</div>
diff --git a/apps/studio/components/interfaces/APIKeys/CreatePublishableAPIKeyDialog.tsx b/apps/studio/components/interfaces/APIKeys/CreatePublishableAPIKeyDialog.tsx
index 12ec00d3f4e..99493b1e13d 100644
--- a/apps/studio/components/interfaces/APIKeys/CreatePublishableAPIKeyDialog.tsx
+++ b/apps/studio/components/interfaces/APIKeys/CreatePublishableAPIKeyDialog.tsx
@@ -1,5 +1,5 @@
import { zodResolver } from '@hookform/resolvers/zod'
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import { useParams } from 'next/navigation'
import { parseAsString, useQueryState } from 'nuqs'
import { useRef } from 'react'
@@ -86,7 +86,7 @@ export const CreatePublishableAPIKeyDialog = () => {
side="bottom"
tooltipOpen={visible === 'publishable' ? false : undefined}
>
- <Button icon={<Plus />} onClick={openDialog}>
+ <Button icon={<PlusIcon />} onClick={openDialog}>
New publishable key
</Button>
</Shortcut>
diff --git a/apps/studio/components/interfaces/APIKeys/CreateSecretAPIKeyDialog.tsx b/apps/studio/components/interfaces/APIKeys/CreateSecretAPIKeyDialog.tsx
index 57a57d64f8f..c4d7284c348 100644
--- a/apps/studio/components/interfaces/APIKeys/CreateSecretAPIKeyDialog.tsx
+++ b/apps/studio/components/interfaces/APIKeys/CreateSecretAPIKeyDialog.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { useParams } from 'common'
-import { Plus, ShieldCheck } from 'lucide-react'
+import { PlusIcon, ShieldCheckIcon } from 'lucide-react'
import { parseAsString, useQueryState } from 'nuqs'
import { useRef } from 'react'
import { useForm, type SubmitHandler } from 'react-hook-form'
@@ -92,7 +92,7 @@ export const CreateSecretAPIKeyDialog = () => {
side="bottom"
tooltipOpen={visible === 'secret' ? false : undefined}
>
- <Button className="mt-2" icon={<Plus />} onClick={openDialog}>
+ <Button className="mt-2" icon={<PlusIcon />} onClick={openDialog}>
New secret key
</Button>
</Shortcut>
@@ -148,7 +148,7 @@ export const CreateSecretAPIKeyDialog = () => {
</form>
</Form>
<Alert variant="warning">
- <ShieldCheck />
+ <ShieldCheckIcon />
<AlertTitle>Securing your API key</AlertTitle>
<AlertDescription className="">
<ul className="list-disc">
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenList.tsx b/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenList.tsx
index 1e2811ba883..9675b9effa5 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenList.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenList.tsx
@@ -1,4 +1,4 @@
-import { Key, MoreVertical, Trash } from 'lucide-react'
+import { KeyIcon, MoreVerticalIcon, TrashIcon } from 'lucide-react'
import { parseAsStringLiteral, useQueryState } from 'nuqs'
import { useMemo, useState } from 'react'
import { toast } from 'sonner'
@@ -151,20 +151,20 @@ export const AccessTokenList = ({
<div className="flex items-center justify-end gap-x-2">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button aria-label="More options" className="w-7" icon={<MoreVertical />} />
+ <Button aria-label="More options" className="w-7" icon={<MoreVerticalIcon />} />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-40">
{x.kind === 'scoped' && (
<>
<DropdownMenuItem className="gap-x-2" onClick={() => setTokenToShow(x)}>
- <Key size={12} />
+ <KeyIcon size={12} />
<p>View permissions</p>
</DropdownMenuItem>
<DropdownMenuSeparator />
</>
)}
<DropdownMenuItem className="gap-x-2" onClick={() => setTokenToDelete(x)}>
- <Trash size={12} />
+ <TrashIcon size={12} />
<p>Delete token</p>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenNewBanner/AccessTokenNewBanner.tsx b/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenNewBanner/AccessTokenNewBanner.tsx
index a90349a49cd..5d3ddd4e830 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenNewBanner/AccessTokenNewBanner.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenNewBanner/AccessTokenNewBanner.tsx
@@ -1,4 +1,4 @@
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { toast } from 'sonner'
import { Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -38,7 +38,7 @@ export const AccessTokenNewBanner = <T,>({
<Button
variant="text"
aria-label="Close token banner"
- icon={<X />}
+ icon={<XIcon />}
className="w-7 h-7 absolute top-2.5 right-2.5"
onClick={onClose}
/>
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenNewBanner/TokenPermissionSection.tsx b/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenNewBanner/TokenPermissionSection.tsx
index 271420f9ff7..2635d789088 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenNewBanner/TokenPermissionSection.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/AccessTokenNewBanner/TokenPermissionSection.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown, ChevronRight } from 'lucide-react'
+import { ChevronDownIcon, ChevronRightIcon } from 'lucide-react'
import { useState } from 'react'
import { Button, Collapsible, CollapsibleContent, CollapsibleTrigger } from 'ui'
@@ -31,7 +31,7 @@ export const TokenPermissionsSection = ({
className="w-full justify-start px-0.5 h-auto text-sm font-medium text-foreground-light hover:text-foreground"
>
<div className="flex items-center gap-1.5">
- {permissionsOpen ? <ChevronDown size={14} /> : <ChevronRight size={14} />}
+ {permissionsOpen ? <ChevronDownIcon size={14} /> : <ChevronRightIcon size={14} />}
<span>Permissions assigned to this token ({totalCount})</span>
</div>
</Button>
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/Classic/ExperimentalTokenDropdown.tsx b/apps/studio/components/interfaces/Account/AccessTokens/Classic/ExperimentalTokenDropdown.tsx
index db886aad67d..c4254a45bda 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/Classic/ExperimentalTokenDropdown.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/Classic/ExperimentalTokenDropdown.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { useState } from 'react'
import {
Button,
@@ -36,7 +36,7 @@ export const ExperimentalTokenDropdown = ({ onCreateToken }: ExperimentalTokenDr
variant="primary"
aria-label="Choose token scope"
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
- icon={<ChevronDown />}
+ icon={<ChevronDownIcon />}
/>
</DropdownMenuTrigger>
</TooltipTrigger>
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenDialog.tsx b/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenDialog.tsx
index 3d499146e2a..dd65a39c6d8 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenDialog.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/Classic/NewTokenDialog.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import dayjs from 'dayjs'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import { useState } from 'react'
import { useForm, type SubmitHandler } from 'react-hook-form'
import { toast } from 'sonner'
@@ -154,7 +154,7 @@ export const NewTokenDialog = ({
be very careful when using this API.
</p>
<div className="mt-4">
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<a href="https://api.supabase.com/api/v0" target="_blank" rel="noreferrer">
Experimental API documentation
</a>
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx
index bde836d07cc..b6c32786758 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/NewScopedTokenForm.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { useReducedMotion } from 'common'
-import { ChevronRight, X } from 'lucide-react'
+import { ChevronRightIcon, XIcon } from 'lucide-react'
import { forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react'
import { useForm, useWatch } from 'react-hook-form'
import { toast } from 'sonner'
@@ -246,7 +246,7 @@ export const NewScopedTokenForm = forwardRef<
</Button>
)}
{step === 'form' && !isClassicMode && (
- <Button variant="primary" type="submit" form={FORM_ID} iconRight={<ChevronRight />}>
+ <Button variant="primary" type="submit" form={FORM_ID} iconRight={<ChevronRightIcon />}>
Review access
</Button>
)}
@@ -277,7 +277,7 @@ export const NewScopedTokenForm = forwardRef<
<Button
variant="text"
size="tiny"
- icon={<X />}
+ icon={<XIcon />}
aria-label="Dismiss"
className="px-1 text-foreground-lighter"
onClick={() => setIsCreateHintDismissed(true)}
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/ResourceAccessPills.tsx b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/ResourceAccessPills.tsx
index 9a1c69ef83d..495ae0078bf 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/ResourceAccessPills.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/ResourceAccessPills.tsx
@@ -1,4 +1,4 @@
-import { Box, Boxes } from 'lucide-react'
+import { BoxesIcon, BoxIcon } from 'lucide-react'
import { useEffect, useRef, useState } from 'react'
import { Badge, cn } from 'ui'
@@ -27,7 +27,7 @@ export const OrganizationAccessPill = ({
'text-foreground': !isInaccessible,
})}
>
- <Boxes
+ <BoxesIcon
size={14}
strokeWidth={1.5}
className={cn('shrink-0', {
@@ -51,7 +51,7 @@ export const ProjectAccessPill = ({ projectRef }: { projectRef: string }) => {
'text-foreground': !isInaccessible,
})}
>
- <Box
+ <BoxIcon
size={14}
strokeWidth={1.5}
className={cn('shrink-0', {
diff --git a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/TokenCapabilities/EndpointRow.tsx b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/TokenCapabilities/EndpointRow.tsx
index ffc630b63f1..bcf62463265 100644
--- a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/TokenCapabilities/EndpointRow.tsx
+++ b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/TokenCapabilities/EndpointRow.tsx
@@ -1,4 +1,4 @@
-import { Check, Copy } from 'lucide-react'
+import { CheckIcon, CopyIcon } from 'lucide-react'
import { useEffect, useRef, useState } from 'react'
import { cn, copyToClipboard } from 'ui'
@@ -95,9 +95,9 @@ export const EndpointRow = ({
</span>
<span className="shrink-0 pl-2">
{showCopiedIcon ? (
- <Check size={14} className="text-primary" />
+ <CheckIcon size={14} className="text-primary" />
) : (
- <Copy
+ <CopyIcon
size={14}
className="text-foreground-lighter opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100"
/>
diff --git a/apps/studio/components/interfaces/Account/AuditLogs.tsx b/apps/studio/components/interfaces/Account/AuditLogs.tsx
index 03c69a3d0e2..072a1a0097c 100644
--- a/apps/studio/components/interfaces/Account/AuditLogs.tsx
+++ b/apps/studio/components/interfaces/Account/AuditLogs.tsx
@@ -8,7 +8,7 @@ import {
} from '@tanstack/react-table'
import { useDebounce } from '@uidotdev/usehooks'
import dayjs from 'dayjs'
-import { RefreshCw } from 'lucide-react'
+import { RefreshCwIcon } from 'lucide-react'
import { useEffect, useMemo, useRef, useState } from 'react'
import { cn, ResizablePanel, ResizablePanelGroup } from 'ui'
import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
@@ -198,7 +198,7 @@ export const AuditLogs = () => {
disabled={isLoading}
loading={isLoading || isRefetching}
className="w-7"
- icon={<RefreshCw />}
+ icon={<RefreshCwIcon />}
onClick={() => refetch()}
tooltip={{ content: { side: 'bottom', text: 'Refresh logs' } }}
/>
diff --git a/apps/studio/components/interfaces/Account/OAuthApps/GrantRow.tsx b/apps/studio/components/interfaces/Account/OAuthApps/GrantRow.tsx
index d97e5916c2d..7e2b2a747fc 100644
--- a/apps/studio/components/interfaces/Account/OAuthApps/GrantRow.tsx
+++ b/apps/studio/components/interfaces/Account/OAuthApps/GrantRow.tsx
@@ -1,4 +1,4 @@
-import { Boxes, MoreVertical, X } from 'lucide-react'
+import { BoxesIcon, MoreVerticalIcon, XIcon } from 'lucide-react'
import { useRef, useState } from 'react'
import {
Button,
@@ -78,7 +78,7 @@ export const GrantRow = ({ grant }: OAuthAppsAuthorizedRowProps) => {
<DropdownMenuTrigger asChild>
<Button
ref={menuTriggerRef}
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
className="px-1"
aria-label="Manage app"
aria-describedby={undefined}
@@ -95,7 +95,7 @@ export const GrantRow = ({ grant }: OAuthAppsAuthorizedRowProps) => {
className="gap-x-2"
onClick={() => setDialogContent('projects')}
>
- <Boxes size={14} />
+ <BoxesIcon size={14} />
View projects
</DropdownMenuItem>
</DialogTrigger>
@@ -107,7 +107,7 @@ export const GrantRow = ({ grant }: OAuthAppsAuthorizedRowProps) => {
className="gap-x-2"
onClick={() => setDialogContent('disconnect')}
>
- <X size={14} />
+ <XIcon size={14} />
Revoke access
</DropdownMenuItem>
</DialogTrigger>
diff --git a/apps/studio/components/interfaces/Account/Preferences/AccountConnections.tsx b/apps/studio/components/interfaces/Account/Preferences/AccountConnections.tsx
index 5e4ab17529a..d893b91d039 100644
--- a/apps/studio/components/interfaces/Account/Preferences/AccountConnections.tsx
+++ b/apps/studio/components/interfaces/Account/Preferences/AccountConnections.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown, RefreshCw, Unlink } from 'lucide-react'
+import { ChevronDownIcon, RefreshCwIcon, UnlinkIcon } from 'lucide-react'
import Image from 'next/image'
import { useState } from 'react'
import { toast } from 'sonner'
@@ -111,7 +111,7 @@ export const AccountConnections = () => {
{isConnected ? (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button iconRight={<ChevronDown size={14} />}>
+ <Button iconRight={<ChevronDownIcon size={14} />}>
<span>Manage</span>
</Button>
</DropdownMenuTrigger>
@@ -123,7 +123,7 @@ export const AccountConnections = () => {
handleReauthenticate()
}}
>
- <RefreshCw size={14} />
+ <RefreshCwIcon size={14} />
<p>Re-authenticate</p>
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -131,7 +131,7 @@ export const AccountConnections = () => {
className="space-x-2"
onSelect={() => setIsRemoveModalOpen(true)}
>
- <Unlink size={14} />
+ <UnlinkIcon size={14} />
<p>Remove connection</p>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Account/Preferences/AccountIdentities.tsx b/apps/studio/components/interfaces/Account/Preferences/AccountIdentities.tsx
index 10ea57dd5c7..643a8e23e8a 100644
--- a/apps/studio/components/interfaces/Account/Preferences/AccountIdentities.tsx
+++ b/apps/studio/components/interfaces/Account/Preferences/AccountIdentities.tsx
@@ -1,7 +1,7 @@
import type { Provider } from '@supabase/auth-js'
import { useFlag } from 'common'
import dayjs from 'dayjs'
-import { Edit, Unlink } from 'lucide-react'
+import { EditIcon, UnlinkIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useEffect, useMemo, useState } from 'react'
@@ -189,7 +189,7 @@ export const AccountIdentities = () => {
{canUpdateEmail && (
<ButtonTooltip
variant="text"
- icon={<Edit />}
+ icon={<EditIcon />}
className="w-7"
onClick={() => setSelectedProviderUpdateEmail(provider)}
tooltip={{ content: { side: 'bottom', text: 'Update email address' } }}
@@ -198,7 +198,7 @@ export const AccountIdentities = () => {
{identities.length > 1 && (
<ButtonTooltip
variant="text"
- icon={<Unlink />}
+ icon={<UnlinkIcon />}
className="w-7"
onClick={() => setSelectedProviderUnlink(provider)}
tooltip={{ content: { side: 'bottom', text: 'Unlink identity' } }}
diff --git a/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx b/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx
index dc42964599c..06cd2f931fe 100644
--- a/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx
+++ b/apps/studio/components/interfaces/Account/Preferences/AddPasswordRow.tsx
@@ -1,5 +1,5 @@
import { zodResolver } from '@hookform/resolvers/zod'
-import { Eye, EyeOff } from 'lucide-react'
+import { EyeIcon, EyeOffIcon } from 'lucide-react'
import { useState } from 'react'
import { useForm, useWatch } from 'react-hook-form'
import { toast } from 'sonner'
@@ -117,7 +117,7 @@ const AddPasswordForm = ({ email, onClose }: { email: string; onClose: () => voi
autoComplete="new-password"
actions={
<Button
- icon={passwordHidden ? <Eye /> : <EyeOff />}
+ icon={passwordHidden ? <EyeIcon /> : <EyeOffIcon />}
aria-label={passwordHidden ? 'Show password' : 'Hide Password'}
className="w-7"
onClick={() => setPasswordHidden((prev) => !prev)}
diff --git a/apps/studio/components/interfaces/Account/Preferences/TimezoneSettings.tsx b/apps/studio/components/interfaces/Account/Preferences/TimezoneSettings.tsx
index dd73ab52ba3..474e7de2596 100644
--- a/apps/studio/components/interfaces/Account/Preferences/TimezoneSettings.tsx
+++ b/apps/studio/components/interfaces/Account/Preferences/TimezoneSettings.tsx
@@ -1,4 +1,4 @@
-import { CheckIcon, Globe } from 'lucide-react'
+import { CheckIcon, GlobeIcon } from 'lucide-react'
import { useId, useMemo, useState } from 'react'
import {
Card,
@@ -94,7 +94,7 @@ export const TimezoneSettings = () => {
size="small"
>
<span className="flex min-w-0 items-center gap-2">
- <Globe aria-hidden="true" className="h-4 w-4 shrink-0" />
+ <GlobeIcon aria-hidden="true" className="h-4 w-4 shrink-0" />
<span className="truncate">
{isAutoDetected ? `Auto detect (${timezone})` : triggerLabel}
</span>
diff --git a/apps/studio/components/interfaces/Account/TOTPFactors/RecoveryCodesModal.tsx b/apps/studio/components/interfaces/Account/TOTPFactors/RecoveryCodesModal.tsx
index a65daf29ed9..321da7ab6a1 100644
--- a/apps/studio/components/interfaces/Account/TOTPFactors/RecoveryCodesModal.tsx
+++ b/apps/studio/components/interfaces/Account/TOTPFactors/RecoveryCodesModal.tsx
@@ -1,6 +1,6 @@
import { AuthError, AuthMFARecoveryCodesGenerateResponseData } from '@supabase/auth-js'
import { UseMutationResult, useQueryClient } from '@tanstack/react-query'
-import { Check, Copy, Download } from 'lucide-react'
+import { CheckIcon, CopyIcon, DownloadIcon } from 'lucide-react'
import { ComponentProps, useEffect, useMemo, useState } from 'react'
import {
Button,
@@ -130,7 +130,13 @@ export const RecoveryCodesModal = <T = unknown,>({
<div className="flex items-center gap-x-2">
<Button
- icon={copiedToClipboard ? <Check className="text-brand-default" /> : <Copy />}
+ icon={
+ copiedToClipboard ? (
+ <CheckIcon className="text-brand-default" />
+ ) : (
+ <CopyIcon />
+ )
+ }
className="ml-auto w-min"
onClick={() =>
copyToClipboard(
@@ -141,7 +147,7 @@ export const RecoveryCodesModal = <T = unknown,>({
>
{copiedToClipboard ? 'Copied' : 'Copy'}
</Button>
- <Button icon={<Download />} onClick={downloadCodes}>
+ <Button icon={<DownloadIcon />} onClick={downloadCodes}>
Download
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Account/TOTPFactors/RegenerateRecoveryCodesModal.tsx b/apps/studio/components/interfaces/Account/TOTPFactors/RegenerateRecoveryCodesModal.tsx
index d1a9c372249..1397ffcfccc 100644
--- a/apps/studio/components/interfaces/Account/TOTPFactors/RegenerateRecoveryCodesModal.tsx
+++ b/apps/studio/components/interfaces/Account/TOTPFactors/RegenerateRecoveryCodesModal.tsx
@@ -1,4 +1,4 @@
-import { RefreshCw } from 'lucide-react'
+import { RefreshCwIcon } from 'lucide-react'
import { useState } from 'react'
import { Button } from 'ui'
@@ -21,7 +21,7 @@ export const RegenerateRecoveryCodesModal = () => {
return (
<>
- <Button icon={<RefreshCw />} onClick={() => setShowConfirm(true)}>
+ <Button icon={<RefreshCwIcon />} onClick={() => setShowConfirm(true)}>
Regenerate
</Button>
<TextConfirmModal
diff --git a/apps/studio/components/interfaces/Account/TOTPFactors/UnenrollRecoveryCodesModal.tsx b/apps/studio/components/interfaces/Account/TOTPFactors/UnenrollRecoveryCodesModal.tsx
index 7ea00cee694..e4dd8208d01 100644
--- a/apps/studio/components/interfaces/Account/TOTPFactors/UnenrollRecoveryCodesModal.tsx
+++ b/apps/studio/components/interfaces/Account/TOTPFactors/UnenrollRecoveryCodesModal.tsx
@@ -1,4 +1,4 @@
-import { Trash } from 'lucide-react'
+import { TrashIcon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
@@ -18,7 +18,7 @@ export const UnenrollRecoveryCodesModal = () => {
return (
<>
<ButtonTooltip
- icon={<Trash />}
+ icon={<TrashIcon />}
aria-label="Delete recovery codes"
onClick={() => setShowConfirm(true)}
tooltip={{ content: { side: 'bottom', text: 'Delete recovery codes' } }}
diff --git a/apps/studio/components/interfaces/Account/TOTPFactors/index.tsx b/apps/studio/components/interfaces/Account/TOTPFactors/index.tsx
index b229ed1d525..f3b4e534217 100644
--- a/apps/studio/components/interfaces/Account/TOTPFactors/index.tsx
+++ b/apps/studio/components/interfaces/Account/TOTPFactors/index.tsx
@@ -1,6 +1,6 @@
import { useFlag } from 'common'
import dayjs from 'dayjs'
-import { Plus, RectangleEllipsis } from 'lucide-react'
+import { PlusIcon, RectangleEllipsisIcon } from 'lucide-react'
import { useState } from 'react'
import { Button, Card, CardContent, cn } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -65,7 +65,7 @@ export const TOTPFactors = () => {
</PageSectionSummary>
{canAddApp && (
<PageSectionAside>
- <Button variant="primary" icon={<Plus />} onClick={handleAddNewApp}>
+ <Button variant="primary" icon={<PlusIcon />} onClick={handleAddNewApp}>
Add app
</Button>
</PageSectionAside>
@@ -79,7 +79,7 @@ export const TOTPFactors = () => {
title="Avoid being locked out"
description="Add a backup authenticator app now. Losing access to your only app will permanently lock you out of your account."
actions={
- <Button icon={<Plus />} onClick={handleAddNewApp}>
+ <Button icon={<PlusIcon />} onClick={handleAddNewApp}>
Add another app
</Button>
}
@@ -153,7 +153,7 @@ export const TOTPFactors = () => {
<CardContent className="flex items-center justify-between">
<div className="flex items-center gap-x-4">
<div className="w-9 h-9 rounded-full bg-selection flex items-center justify-center">
- <RectangleEllipsis size={18} className="text-foreground-lighter" />
+ <RectangleEllipsisIcon size={18} className="text-foreground-lighter" />
</div>
<div className="text-sm">
<p className={cn(codes.remaining < 2 ? 'text-warning' : '')}>
diff --git a/apps/studio/components/interfaces/Advisors/AdvisorRuleItem.tsx b/apps/studio/components/interfaces/Advisors/AdvisorRuleItem.tsx
index 65da814b118..9d4193384b2 100644
--- a/apps/studio/components/interfaces/Advisors/AdvisorRuleItem.tsx
+++ b/apps/studio/components/interfaces/Advisors/AdvisorRuleItem.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ChevronRight, Trash } from 'lucide-react'
+import { ChevronRightIcon, TrashIcon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import {
@@ -131,7 +131,7 @@ export const AdvisorRuleItem = ({ lint }: AdvisorRuleItemProps) => {
Create rule
</Button>
</div>
- <ChevronRight strokeWidth={1.5} size={16} className="transition" />
+ <ChevronRightIcon strokeWidth={1.5} size={16} className="transition" />
</CardContent>
</Card>
</CollapsibleTrigger>
@@ -186,7 +186,7 @@ export const AdvisorRuleItem = ({ lint }: AdvisorRuleItemProps) => {
tooltip={{ content: { side: 'bottom', text: 'Edit rule' } }}
/> */}
<ButtonTooltip
- icon={<Trash />}
+ icon={<TrashIcon />}
className="w-7"
onClick={() => setSelectedRuleToDelete(rule.id)}
tooltip={{ content: { side: 'bottom', text: 'Delete rule' } }}
diff --git a/apps/studio/components/interfaces/App/CommandMenu/ApiKeys.tsx b/apps/studio/components/interfaces/App/CommandMenu/ApiKeys.tsx
index 7788073e507..182f9a13145 100644
--- a/apps/studio/components/interfaces/App/CommandMenu/ApiKeys.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenu/ApiKeys.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Key } from 'lucide-react'
+import { KeyIcon } from 'lucide-react'
import { useMemo } from 'react'
import { toast } from 'sonner'
import { Badge, copyToClipboard } from 'ui'
@@ -66,7 +66,7 @@ export function useApiKeysCommands() {
<Badge>{publishableKey.type}</Badge>
</span>
),
- icon: () => <Key />,
+ icon: () => <KeyIcon />,
},
...(project && allSecretKeys
? allSecretKeys.map((key) => ({
@@ -85,7 +85,7 @@ export function useApiKeysCommands() {
<Badge>{key.type}</Badge>
</span>
),
- icon: () => <Key />,
+ icon: () => <KeyIcon />,
}))
: []),
project &&
@@ -106,7 +106,7 @@ export function useApiKeysCommands() {
<Badge>{anonKey.type}</Badge>
</span>
),
- icon: () => <Key />,
+ icon: () => <KeyIcon />,
},
project &&
serviceKey && {
@@ -126,13 +126,13 @@ export function useApiKeysCommands() {
<Badge>{serviceKey.type}</Badge>
</span>
),
- icon: () => <Key />,
+ icon: () => <KeyIcon />,
},
!(anonKey || serviceKey) && {
id: 'api-keys-project-settings',
name: 'See API keys in Project Settings',
route: `/project/${ref}/settings/api-keys`,
- icon: () => <Key />,
+ icon: () => <KeyIcon />,
},
].filter(Boolean) as ICommand[]
}, [canReadAPIKeys, apiKeysData, isHighAvailability, project, ref, resetCommandMenu, setIsOpen])
@@ -159,7 +159,7 @@ export function useApiKeysCommands() {
id: 'api-keys',
name: 'Get API keys...',
action: () => setPage(API_KEYS_PAGE_NAME),
- icon: () => <Key />,
+ icon: () => <KeyIcon />,
},
],
{
@@ -176,7 +176,7 @@ export function useApiKeysCommands() {
id: 'nav-api-keys',
name: 'Go to API Keys',
route: `/project/${ref}/settings/api-keys`,
- icon: () => <Key />,
+ icon: () => <KeyIcon />,
},
],
{ enabled: !!project }
diff --git a/apps/studio/components/interfaces/App/CommandMenu/ApiUrl.tsx b/apps/studio/components/interfaces/App/CommandMenu/ApiUrl.tsx
index e3f1b4376e5..aa4fb74f268 100644
--- a/apps/studio/components/interfaces/App/CommandMenu/ApiUrl.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenu/ApiUrl.tsx
@@ -1,4 +1,4 @@
-import { Link } from 'lucide-react'
+import { LinkIcon } from 'lucide-react'
import { toast } from 'sonner'
import { Badge, copyToClipboard } from 'ui'
import {
@@ -39,7 +39,7 @@ export function useApiUrlCommand() {
setIsOpen(false)
resetCommandMenu()
},
- icon: () => <Link />,
+ icon: () => <LinkIcon />,
badge: () => <Badge>Project: {project?.name}</Badge>,
},
],
diff --git a/apps/studio/components/interfaces/App/CommandMenu/ContextSearchCommands.tsx b/apps/studio/components/interfaces/App/CommandMenu/ContextSearchCommands.tsx
index 83060ab341d..298d3907fde 100644
--- a/apps/studio/components/interfaces/App/CommandMenu/ContextSearchCommands.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenu/ContextSearchCommands.tsx
@@ -3,7 +3,7 @@
import { useDebounce } from '@uidotdev/usehooks'
import { IS_PLATFORM } from 'common'
import { Auth, EdgeFunctions, Storage } from 'icons'
-import { Database } from 'lucide-react'
+import { DatabaseIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import type { ICommand } from 'ui-patterns/CommandMenu'
import {
@@ -38,7 +38,7 @@ const SEARCH_CONTEXT_OPTIONS: SearchContextOption[] = [
label: 'Database Tables',
pageName: 'Search Database Tables',
placeholder: 'Search database schema or tables...',
- icon: Database,
+ icon: DatabaseIcon,
},
{
value: 'auth-policies',
diff --git a/apps/studio/components/interfaces/App/CommandMenu/ContextSearchResults.tsx b/apps/studio/components/interfaces/App/CommandMenu/ContextSearchResults.tsx
index 205f34fa940..8f5fbe21fd9 100644
--- a/apps/studio/components/interfaces/App/CommandMenu/ContextSearchResults.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenu/ContextSearchResults.tsx
@@ -1,7 +1,7 @@
'use client'
import { Auth, EdgeFunctions, Storage } from 'icons'
-import { Database } from 'lucide-react'
+import { DatabaseIcon } from 'lucide-react'
import dynamic from 'next/dynamic'
import { EmptyState, SkeletonResults } from './ContextSearchResults.shared'
@@ -57,7 +57,7 @@ const CONTEXT_CONFIG: Record<
}
> = {
'database-tables': {
- icon: Database,
+ icon: DatabaseIcon,
label: 'Database Tables',
requiresInput: false,
},
diff --git a/apps/studio/components/interfaces/App/CommandMenu/CreateCommands.tsx b/apps/studio/components/interfaces/App/CommandMenu/CreateCommands.tsx
index 87fc8c7d932..300cb72a822 100644
--- a/apps/studio/components/interfaces/App/CommandMenu/CreateCommands.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenu/CreateCommands.tsx
@@ -2,25 +2,25 @@
import { IS_PLATFORM } from 'common'
import {
- Clock5,
- Code2,
- KeyRound,
- Layers,
- ListChecks,
- Lock,
- LockKeyhole,
- Mail,
- MessageCircle,
- Plus,
- Rows,
- ShieldPlus,
- Table2,
- Telescope,
- UserCog,
- UserPlus,
- Vault,
- Webhook,
- Zap,
+ Clock5Icon,
+ Code2Icon,
+ KeyRoundIcon,
+ LayersIcon,
+ ListChecksIcon,
+ LockIcon,
+ LockKeyholeIcon,
+ MailIcon,
+ MessageCircleIcon,
+ PlusIcon,
+ RowsIcon,
+ ShieldPlusIcon,
+ Table2Icon,
+ TelescopeIcon,
+ UserCogIcon,
+ UserPlusIcon,
+ VaultIcon,
+ WebhookIcon,
+ ZapIcon,
} from 'lucide-react'
import dynamic from 'next/dynamic'
import { useMemo } from 'react'
@@ -81,37 +81,37 @@ export function useCreateCommands(options?: CommandOptions) {
id: 'create-db-table',
name: 'Create Table',
route: `/project/${ref}/editor?create=table`,
- icon: () => <Table2 />,
+ icon: () => <Table2Icon />,
},
{
id: 'create-db-index',
name: 'Create Index',
route: `/project/${ref}/database/indexes?new=true`,
- icon: () => <Rows />,
+ icon: () => <RowsIcon />,
},
{
id: 'create-db-function',
name: 'Create Database Function',
route: `/project/${ref}/database/functions?new=true`,
- icon: () => <Code2 />,
+ icon: () => <Code2Icon />,
},
{
id: 'create-db-enum',
name: 'Create Enumerated Type',
route: `/project/${ref}/database/types?new=true`,
- icon: () => <ListChecks />,
+ icon: () => <ListChecksIcon />,
},
{
id: 'create-db-trigger',
name: 'Create Database Trigger',
route: `/project/${ref}/database/triggers?new=true`,
- icon: () => <Zap />,
+ icon: () => <ZapIcon />,
},
{
id: 'create-db-role',
name: 'Create Database Role',
route: `/project/${ref}/database/roles?new=true`,
- icon: () => <UserCog />,
+ icon: () => <UserCogIcon />,
},
].filter(Boolean) as ICommand[],
[ref]
@@ -125,13 +125,13 @@ export function useCreateCommands(options?: CommandOptions) {
id: 'create-auth-user',
name: 'Create Auth User',
route: `/project/${ref}/auth/users?new=true`,
- icon: () => <UserPlus />,
+ icon: () => <UserPlusIcon />,
},
{
id: 'create-rls-policy',
name: 'Create RLS Policy',
route: `/project/${ref}/database/policies?new=true`,
- icon: () => <ShieldPlus />,
+ icon: () => <ShieldPlusIcon />,
},
...(IS_PLATFORM
? [
@@ -139,25 +139,25 @@ export function useCreateCommands(options?: CommandOptions) {
id: 'create-auth-hook-sms',
name: 'Create Auth Hook (SMS)',
route: `/project/${ref}/auth/hooks?hook=${sendSmsHook?.id}`,
- icon: () => <MessageCircle />,
+ icon: () => <MessageCircleIcon />,
},
{
id: 'create-auth-hook-email',
name: 'Create Auth Hook (Email)',
route: `/project/${ref}/auth/hooks?hook=${sendEmailHook?.id}`,
- icon: () => <Mail />,
+ icon: () => <MailIcon />,
},
{
id: 'create-auth-hook-custom-access-token',
name: 'Create Auth Hook (Custom Access Token)',
route: `/project/${ref}/auth/hooks?hook=${customAccessTokenHook?.id}`,
- icon: () => <KeyRound />,
+ icon: () => <KeyRoundIcon />,
},
{
id: 'create-auth-hook-mfa-verification',
name: 'Create Auth Hook (MFA Verification Attempt)',
route: `/project/${ref}/auth/hooks?hook=${mfaVerificationHook?.id}`,
- icon: () => <ShieldPlus />,
+ icon: () => <ShieldPlusIcon />,
badge: () => (mfaVerificationHookEnabled ? <Badge>Team</Badge> : null),
className: mfaVerificationHookEnabled
? 'opacity-50 cursor-not-allowed pointer-events-none'
@@ -167,7 +167,7 @@ export function useCreateCommands(options?: CommandOptions) {
id: 'create-auth-hook-password-verification',
name: 'Create Auth Hook (Password Verification Attempt)',
route: `/project/${ref}/auth/hooks?hook=${passwordVerificationHook?.id}`,
- icon: () => <Lock />,
+ icon: () => <LockIcon />,
badge: () => (passwordVerificationHookEnabled ? <Badge>Team</Badge> : null),
className: passwordVerificationHookEnabled
? 'opacity-50 cursor-not-allowed pointer-events-none'
@@ -177,7 +177,7 @@ export function useCreateCommands(options?: CommandOptions) {
id: 'create-auth-hook-before-user-created',
name: 'Create Auth Hook (Before User Created)',
route: `/project/${ref}/auth/hooks?hook=${beforeUserCreatedHook?.id}`,
- icon: () => <KeyRound />,
+ icon: () => <KeyRoundIcon />,
},
]
: []),
@@ -187,7 +187,7 @@ export function useCreateCommands(options?: CommandOptions) {
id: 'create-oauth-app',
name: 'Create OAuth App',
route: `/project/${ref}/auth/oauth-apps?new=true`,
- icon: () => <KeyRound />,
+ icon: () => <KeyRoundIcon />,
},
]
: []),
@@ -266,7 +266,7 @@ export function useCreateCommands(options?: CommandOptions) {
id: 'create-edge-function-secret',
name: 'Create Edge Function Secret',
route: `/project/${ref}/functions/secrets`,
- icon: () => <LockKeyhole />,
+ icon: () => <LockKeyholeIcon />,
},
].filter(Boolean) as ICommand[])
: [],
@@ -339,13 +339,13 @@ export function useCreateCommands(options?: CommandOptions) {
// Use plain icons for Postgres modules
switch (integration.id) {
case 'vault':
- return <Vault />
+ return <VaultIcon />
case 'cron':
- return <Clock5 />
+ return <Clock5Icon />
case 'webhooks':
- return <Webhook />
+ return <WebhookIcon />
case 'queues':
- return <Layers />
+ return <LayersIcon />
default:
// Fallback to integration icon for other Postgres modules
return integration.icon()
@@ -372,7 +372,7 @@ export function useCreateCommands(options?: CommandOptions) {
id: 'create-observability-report',
name: 'Create Custom Report',
route: `/project/${ref}/observability/api-overview?newReport=true`,
- icon: () => <Telescope />,
+ icon: () => <TelescopeIcon />,
},
].filter(Boolean) as ICommand[])
: []
@@ -463,7 +463,7 @@ export function useCreateCommands(options?: CommandOptions) {
id: 'create-studio-entity',
name: 'Create...',
action: () => setPage(CREATE_STUDIO_ENTITY),
- icon: () => <Plus />,
+ icon: () => <PlusIcon />,
},
],
{
diff --git a/apps/studio/components/interfaces/App/CommandMenu/EdgeFunctionSearchResults.tsx b/apps/studio/components/interfaces/App/CommandMenu/EdgeFunctionSearchResults.tsx
index 2e1d6cfbaca..d88b09e701a 100644
--- a/apps/studio/components/interfaces/App/CommandMenu/EdgeFunctionSearchResults.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenu/EdgeFunctionSearchResults.tsx
@@ -2,7 +2,7 @@
import { useParams } from 'common'
import { EdgeFunctions } from 'icons'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useMemo } from 'react'
import {
@@ -68,7 +68,7 @@ export function EdgeFunctionSearchResults({ query }: EdgeFunctionSearchResultsPr
<div className="flex items-center gap-x-2">
{isLoadingFunctions ? (
<span className="flex items-center gap-2">
- <Loader2 size={14} className="animate-spin" /> Loading...
+ <Loader2Icon size={14} className="animate-spin" /> Loading...
</span>
) : (
<span>
diff --git a/apps/studio/components/interfaces/App/CommandMenu/FeaturePreviews.tsx b/apps/studio/components/interfaces/App/CommandMenu/FeaturePreviews.tsx
index 095d0c42cdb..3e917620958 100644
--- a/apps/studio/components/interfaces/App/CommandMenu/FeaturePreviews.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenu/FeaturePreviews.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Check, ExternalLink, FlaskConical, Square } from 'lucide-react'
+import { CheckIcon, ExternalLinkIcon, FlaskConicalIcon, SquareIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useMemo } from 'react'
import { useLatest } from 'react-use'
@@ -114,7 +114,7 @@ export function useFeaturePreviewCommands() {
? `${preview.name}, Feature preview, now the default, can't be turned off`
: `${preview.name}, Feature preview, Toggle ${preview.name}`,
action: () => toggleFeaturePreview(preview),
- icon: () => (flagsRef.current[preview.key] ? <Check /> : <Square />),
+ icon: () => (flagsRef.current[preview.key] ? <CheckIcon /> : <SquareIcon />),
badge: preview.isForced
? () => (
<Badge
@@ -133,7 +133,7 @@ export function useFeaturePreviewCommands() {
name: `${preview.name}: View details`,
value: `${preview.name}, About, Learn more, Description, Feedback, Discussion`,
action: () => openFeaturePreviewDetails(preview.key),
- icon: () => <ExternalLink />,
+ icon: () => <ExternalLinkIcon />,
defaultHidden: true,
},
]),
@@ -150,7 +150,7 @@ export function useFeaturePreviewCommands() {
name: 'Feature previews...',
value: 'Feature previews, Try new features, Early access, Opt in, Opt out, Beta features',
action: () => setPage(FEATURE_PREVIEWS_PAGE_NAME),
- icon: () => <FlaskConical />,
+ icon: () => <FlaskConicalIcon />,
},
],
{ enabled: visiblePreviews.length > 0 }
diff --git a/apps/studio/components/interfaces/App/CommandMenu/OrgProjectSwitcher.tsx b/apps/studio/components/interfaces/App/CommandMenu/OrgProjectSwitcher.tsx
index 83858b32941..6d21304be21 100644
--- a/apps/studio/components/interfaces/App/CommandMenu/OrgProjectSwitcher.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenu/OrgProjectSwitcher.tsx
@@ -1,5 +1,5 @@
import { IS_PLATFORM } from 'common'
-import { Building, Forward, Wrench } from 'lucide-react'
+import { BuildingIcon, ForwardIcon, WrenchIcon } from 'lucide-react'
import { useMemo } from 'react'
import { PageType, useRegisterCommands, useRegisterPage, useSetPage } from 'ui-patterns/CommandMenu'
@@ -32,7 +32,7 @@ export function useProjectSwitchCommand() {
name,
value: `${name} (${ref})`,
route: `/project/${ref}`,
- icon: () => <Forward />,
+ icon: () => <ForwardIcon />,
})),
},
],
@@ -48,7 +48,7 @@ export function useProjectSwitchCommand() {
name: 'Switch project...',
value: 'Switch project, Change project, Select project',
action: () => setPage(PROJECT_SWITCHER_PAGE_NAME),
- icon: () => <Wrench />,
+ icon: () => <WrenchIcon />,
},
],
{ enabled: !!projects && projects.length > 0 }
@@ -74,7 +74,7 @@ export function useConfigureOrganizationCommand() {
name,
value: `${name} (${slug})`,
route: `/org/${slug}/general`,
- icon: () => <Building />,
+ icon: () => <BuildingIcon />,
})) ?? [],
},
],
@@ -90,7 +90,7 @@ export function useConfigureOrganizationCommand() {
name: 'Configure organization...',
value: 'Configure organization, Change organization, Select organization',
action: () => setPage(ORGANIZATION_SWITCHER_PAGE_NAME),
- icon: () => <Building />,
+ icon: () => <BuildingIcon />,
},
],
{ enabled: IS_PLATFORM && !!organizations && organizations.length > 0 }
diff --git a/apps/studio/components/interfaces/App/CommandMenu/PolicySearchResults.tsx b/apps/studio/components/interfaces/App/CommandMenu/PolicySearchResults.tsx
index 6b015b32c93..ec92609143a 100644
--- a/apps/studio/components/interfaces/App/CommandMenu/PolicySearchResults.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenu/PolicySearchResults.tsx
@@ -2,7 +2,7 @@
import { useParams } from 'common'
import { Auth } from 'icons'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useMemo } from 'react'
import {
@@ -85,7 +85,7 @@ export function PolicySearchResults({ query }: PolicySearchResultsProps) {
<div className="flex items-center gap-x-2">
{isLoadingPolicies ? (
<span className="flex items-center gap-2">
- <Loader2 size={14} className="animate-spin" /> Loading...
+ <Loader2Icon size={14} className="animate-spin" /> Loading...
</span>
) : (
<span>
diff --git a/apps/studio/components/interfaces/App/CommandMenu/StorageSearchResults.tsx b/apps/studio/components/interfaces/App/CommandMenu/StorageSearchResults.tsx
index b9e864feda7..49c243f48ec 100644
--- a/apps/studio/components/interfaces/App/CommandMenu/StorageSearchResults.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenu/StorageSearchResults.tsx
@@ -3,7 +3,7 @@
import { useDebounce } from '@uidotdev/usehooks'
import { useParams } from 'common'
import { AnalyticsBucket as AnalyticsBucketIcon, FilesBucket, Storage, VectorBucket } from 'icons'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useCallback, useMemo } from 'react'
import {
@@ -260,7 +260,7 @@ export function StorageSearchResults({ query }: StorageSearchResultsProps) {
<div className="flex items-center gap-x-2">
{isLoading ? (
<span className="flex items-center gap-2">
- <Loader2 size={14} className="animate-spin" /> Loading...
+ <Loader2Icon size={14} className="animate-spin" /> Loading...
</span>
) : (
<span>
diff --git a/apps/studio/components/interfaces/App/CommandMenu/Support.tsx b/apps/studio/components/interfaces/App/CommandMenu/Support.tsx
index c5300dde999..a780f7749ec 100644
--- a/apps/studio/components/interfaces/App/CommandMenu/Support.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenu/Support.tsx
@@ -1,5 +1,5 @@
import { IS_PLATFORM } from 'common'
-import { Activity, LifeBuoy } from 'lucide-react'
+import { ActivityIcon, LifeBuoyIcon } from 'lucide-react'
import { useMemo } from 'react'
import type { ICommand } from 'ui-patterns/CommandMenu'
import { useRegisterCommands } from 'ui-patterns/CommandMenu'
@@ -15,21 +15,21 @@ export const useSupportCommands = () => {
name: 'View system status',
value: 'Support: View system status',
route: 'https://status.supabase.com',
- icon: () => <Activity />,
+ icon: () => <ActivityIcon />,
},
{
id: 'discord-community',
name: 'Ask Discord community',
value: 'Support: Ask Discord community',
route: 'https://discord.supabase.com',
- icon: () => <LifeBuoy />,
+ icon: () => <LifeBuoyIcon />,
},
{
id: 'support-team',
name: 'Contact support',
value: 'Support: Contact support',
route: 'https://www.supabase.com/support',
- icon: () => <LifeBuoy />,
+ icon: () => <LifeBuoyIcon />,
},
] as Array<ICommand>,
[]
diff --git a/apps/studio/components/interfaces/App/CommandMenu/TableSearchResults.tsx b/apps/studio/components/interfaces/App/CommandMenu/TableSearchResults.tsx
index 6861f0ca1dd..6e9ad4a358a 100644
--- a/apps/studio/components/interfaces/App/CommandMenu/TableSearchResults.tsx
+++ b/apps/studio/components/interfaces/App/CommandMenu/TableSearchResults.tsx
@@ -1,6 +1,6 @@
import { useIntersectionObserver } from '@uidotdev/usehooks'
import { useParams } from 'common'
-import { Database, Loader2 } from 'lucide-react'
+import { DatabaseIcon, Loader2Icon } from 'lucide-react'
import { useEffect, useMemo } from 'react'
import {
@@ -92,16 +92,16 @@ export function TableSearchResults({ debouncedFilterString }: TableSearchResults
<SkeletonResults />
) : isErrorTables ? (
<div className="h-full flex flex-col items-center justify-center py-12 px-4 gap-4 text-center text-foreground-lighter">
- <Database className="h-6 w-6" strokeWidth={1.5} />
+ <DatabaseIcon className="h-6 w-6" strokeWidth={1.5} />
<p className="text-sm">Failed to load tables</p>
</div>
) : tableResults.length === 0 ? (
- <EmptyState icon={Database} label="Database Tables" query={debouncedFilterString} />
+ <EmptyState icon={DatabaseIcon} label="Database Tables" query={debouncedFilterString} />
) : (
<>
<ResultsList
results={tableResults}
- icon={Database}
+ icon={DatabaseIcon}
getRoute={(result) => {
const table = tables?.find((t) => String(t.id) === result.id)
if (!table || !projectRef) return `/project/${projectRef}/editor` as `/${string}`
@@ -116,7 +116,7 @@ export function TableSearchResults({ debouncedFilterString }: TableSearchResults
<div className="flex items-center gap-x-2">
{isLoadingTables ? (
<span className="flex items-center gap-2">
- <Loader2 size={14} className="animate-spin" /> Loading...
+ <Loader2Icon size={14} className="animate-spin" /> Loading...
</span>
) : (
<span>
diff --git a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx
index 6543c2e0b26..c42ff28d742 100644
--- a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx
+++ b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx
@@ -1,5 +1,5 @@
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { ExternalLink, Eye, EyeOff, FlaskConical } from 'lucide-react'
+import { ExternalLinkIcon, EyeIcon, EyeOffIcon, FlaskConicalIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { ReactNode } from 'react'
@@ -178,9 +178,9 @@ export const FeaturePreviewModal = () => {
<SelectTrigger id="feature-preview-select">
<div className="flex items-center gap-x-2">
{(flags[selectedFeature.key] ?? false) ? (
- <Eye size={14} strokeWidth={2} className="text-primary" />
+ <EyeIcon size={14} strokeWidth={2} className="text-primary" />
) : (
- <EyeOff size={14} strokeWidth={1.5} className="text-foreground-light" />
+ <EyeOffIcon size={14} strokeWidth={1.5} className="text-foreground-light" />
)}
<p>{selectedFeature.name}</p>
{selectedFeature.isNew && <Badge variant="success">New</Badge>}
@@ -209,7 +209,7 @@ export const FeaturePreviewModal = () => {
<p>{selectedFeature?.name}</p>
<div className="flex items-center gap-x-2">
{selectedFeature?.discussionsUrl !== undefined && (
- <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLinkIcon strokeWidth={1.5} />}>
<Link
href={selectedFeature.discussionsUrl}
target="_blank"
@@ -257,14 +257,14 @@ export const FeaturePreviewModal = () => {
</div>
) : (
<div className="h-[550px] flex flex-col items-center justify-center">
- <FlaskConical size={30} strokeWidth={1.5} className="text-foreground-light" />
+ <FlaskConicalIcon size={30} strokeWidth={1.5} className="text-foreground-light" />
<div className="mt-1 mb-3 flex flex-col items-center gap-y-0.5">
<p className="text-sm">No feature previews available</p>
<p className="text-sm text-foreground-light">
Have an idea for the dashboard? Let us know via GitHub Discussions!
</p>
</div>
- <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLinkIcon strokeWidth={1.5} />}>
<Link
href="https://github.com/orgs/supabase/discussions/categories/feature-requests"
target="_blank"
@@ -312,9 +312,9 @@ const FeaturePreviewItem = ({
>
<div className="flex items-center gap-x-3">
{isEnabled ? (
- <Eye size={14} strokeWidth={2} className="text-primary" />
+ <EyeIcon size={14} strokeWidth={2} className="text-primary" />
) : (
- <EyeOff size={14} strokeWidth={1.5} className="text-foreground-light" />
+ <EyeOffIcon size={14} strokeWidth={1.5} className="text-foreground-light" />
)}
<p className="text-sm truncate" title={feature.name}>
{feature.name}
diff --git a/apps/studio/components/interfaces/AuditLogs/AuditLogDetailsPanel.tsx b/apps/studio/components/interfaces/AuditLogs/AuditLogDetailsPanel.tsx
index de3f0393dc2..22aa84d85c2 100644
--- a/apps/studio/components/interfaces/AuditLogs/AuditLogDetailsPanel.tsx
+++ b/apps/studio/components/interfaces/AuditLogs/AuditLogDetailsPanel.tsx
@@ -1,4 +1,4 @@
-import { Check, Copy, X } from 'lucide-react'
+import { CheckIcon, CopyIcon, XIcon } from 'lucide-react'
import { useState } from 'react'
import {
Button,
@@ -42,7 +42,7 @@ export const AuditLogDetailsPanel = ({ selectedLog, onClose }: AuditLogDetailsPa
<Button
variant="text"
className="px-1"
- icon={<X />}
+ icon={<XIcon />}
onClick={onClose}
aria-label="Close"
/>
@@ -61,7 +61,7 @@ export const AuditLogDetailsPanel = ({ selectedLog, onClose }: AuditLogDetailsPa
<Button
size="tiny"
className="px-1.5"
- icon={copied ? <Check size={12} /> : <Copy size={12} />}
+ icon={copied ? <CheckIcon size={12} /> : <CopyIcon size={12} />}
onClick={() => {
copyToClipboard(json, () => {
setCopied(true)
diff --git a/apps/studio/components/interfaces/AuditLogs/AuditLogOverview.tsx b/apps/studio/components/interfaces/AuditLogs/AuditLogOverview.tsx
index 6094c6506ac..96e143fa718 100644
--- a/apps/studio/components/interfaces/AuditLogs/AuditLogOverview.tsx
+++ b/apps/studio/components/interfaces/AuditLogs/AuditLogOverview.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { Activity, Clock, Copy, Globe, Hash, User } from 'lucide-react'
+import { ActivityIcon, ClockIcon, CopyIcon, GlobeIcon, HashIcon, UserIcon } from 'lucide-react'
import { Button, cn, copyToClipboard } from 'ui'
import { TimestampInfo } from 'ui-patterns/TimestampInfo'
@@ -41,7 +41,7 @@ const DetailRow = ({
aria-label={`Copy ${label}`}
variant="text"
className="px-1"
- icon={<Copy size={12} />}
+ icon={<CopyIcon size={12} />}
onClick={() => copyToClipboard(String(value))}
/>
)}
@@ -57,7 +57,7 @@ export const AuditLogOverview = ({ selectedLog }: AuditLogOverviewProps) => {
<div>
<DetailSectionHeader
title="Request started"
- icon={Clock}
+ icon={ClockIcon}
className="border-b"
summary={
<TimestampInfo
@@ -68,7 +68,7 @@ export const AuditLogOverview = ({ selectedLog }: AuditLogOverviewProps) => {
/>
<DetailSectionHeader
title="Request ID"
- icon={Hash}
+ icon={HashIcon}
className="border-b"
summary={
<span className="truncate text-right font-mono text-xs text-foreground">
@@ -77,19 +77,19 @@ export const AuditLogOverview = ({ selectedLog }: AuditLogOverviewProps) => {
}
/>
- <CollapsibleDetailSection defaultOpen className="border-b" title="Target" icon={Globe}>
+ <CollapsibleDetailSection defaultOpen className="border-b" title="Target" icon={GlobeIcon}>
<DetailRow label="Organization slug" value={selectedLog.organization_slug} />
<DetailRow label="Project ref" value={selectedLog.project_ref} />
</CollapsibleDetailSection>
- <CollapsibleDetailSection defaultOpen className="border-b" title="Actor" icon={User}>
+ <CollapsibleDetailSection defaultOpen className="border-b" title="Actor" icon={UserIcon}>
<DetailRow label="Token type" value={selectedLog.actor.token_type} />
<DetailRow label="Email" value={selectedLog.actor.email} />
<DetailRow label="User ID" value={selectedLog.actor.user_id} />
<DetailRow label="IP address" value={selectedLog.actor.ip} />
</CollapsibleDetailSection>
- <CollapsibleDetailSection defaultOpen className="border-b" title="Action" icon={Activity}>
+ <CollapsibleDetailSection defaultOpen className="border-b" title="Action" icon={ActivityIcon}>
<DetailRow label="Name" value={selectedLog.action.name} />
<DetailRow label="Method" value={selectedLog.action.method} />
<DetailRow label="Route" value={selectedLog.action.route} />
diff --git a/apps/studio/components/interfaces/AuditLogs/AuditLogs.columns.tsx b/apps/studio/components/interfaces/AuditLogs/AuditLogs.columns.tsx
index 8a06935ae1c..82f6a6094b0 100644
--- a/apps/studio/components/interfaces/AuditLogs/AuditLogs.columns.tsx
+++ b/apps/studio/components/interfaces/AuditLogs/AuditLogs.columns.tsx
@@ -1,6 +1,6 @@
import type { CellContext, ColumnDef } from '@tanstack/react-table'
import dayjs from 'dayjs'
-import { Box, Boxes } from 'lucide-react'
+import { BoxesIcon, BoxIcon } from 'lucide-react'
import type { RefObject } from 'react'
import { Checkbox, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
@@ -142,9 +142,9 @@ export function getAuditLogColumns({
<Tooltip>
<TooltipTrigger className="flex items-center">
{log.project_ref ? (
- <Box size={12} className="text-foreground-light" />
+ <BoxIcon size={12} className="text-foreground-light" />
) : (
- <Boxes size={12} className="text-foreground-light" />
+ <BoxesIcon size={12} className="text-foreground-light" />
)}
</TooltipTrigger>
<TooltipContent side="bottom">
diff --git a/apps/studio/components/interfaces/AuditLogs/AuditLogsSelectionHeader.tsx b/apps/studio/components/interfaces/AuditLogs/AuditLogsSelectionHeader.tsx
index 30db3672ca6..6b52c8e8b20 100644
--- a/apps/studio/components/interfaces/AuditLogs/AuditLogsSelectionHeader.tsx
+++ b/apps/studio/components/interfaces/AuditLogs/AuditLogsSelectionHeader.tsx
@@ -1,5 +1,5 @@
import type { Table } from '@tanstack/react-table'
-import { Copy, X } from 'lucide-react'
+import { CopyIcon, XIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { toast } from 'sonner'
import { copyToClipboard } from 'ui'
@@ -39,7 +39,7 @@ export const AuditLogsSelectionHeader = ({ table }: AuditLogsSelectionHeaderProp
<div className="flex items-center justify-center gap-x-2">
<ButtonTooltip
size="tiny"
- icon={<Copy size={12} />}
+ icon={<CopyIcon size={12} />}
className="w-7"
onClick={handleCopy}
tooltip={{ content: { side: 'bottom', text: 'Copy selected logs' } }}
@@ -47,7 +47,7 @@ export const AuditLogsSelectionHeader = ({ table }: AuditLogsSelectionHeaderProp
<ButtonTooltip
size="tiny"
variant="text"
- icon={<X />}
+ icon={<XIcon />}
className="px-1"
onClick={() => table.resetRowSelection()}
tooltip={{ content: { side: 'bottom', text: 'Clear selection' } }}
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/AuthAlert.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/AuthAlert.tsx
index 7ee0935c7a9..27bc417eb3a 100644
--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/AuthAlert.tsx
+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/AuthAlert.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import { Alert, AlertDescription, AlertTitle, Button, WarningIcon } from 'ui'
@@ -46,7 +46,7 @@ export const AuthAlert = ({
</AlertTitle>
<AlertDescription className="flex flex-col gap-y-3">
<p>The SMS hook will be used in place of the SMS provider configured</p>
- <Button asChild className="w-min" icon={<ExternalLink />}>
+ <Button asChild className="w-min" icon={<ExternalLinkIcon />}>
<Link href={`/project/${ref}/auth/hooks`}>View auth hooks</Link>
</Button>
</AlertDescription>
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
index 21068fbb666..19b1a31c41a 100644
--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx
@@ -1,5 +1,5 @@
import { format } from 'date-fns'
-import { CalendarIcon, ExternalLink } from 'lucide-react'
+import { CalendarIcon, ExternalLinkIcon } from 'lucide-react'
import { useEffect } from 'react'
import { useFormContext, type Control } from 'react-hook-form'
import ReactMarkdown from 'react-markdown'
@@ -291,7 +291,7 @@ const FormField = ({
{description ? <Markdown content={description} /> : null}
{properties.link && (
<span>
- <Button asChild size="tiny" icon={<ExternalLink />}>
+ <Button asChild size="tiny" icon={<ExternalLinkIcon />}>
<a href={properties.link} target="_blank" rel="noreferrer noopener">
Documentation
</a>
diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/index.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/index.tsx
index dbc4b4829df..3c6e2b35f75 100644
--- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/index.tsx
+++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/index.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import { Alert, AlertDescription, AlertTitle, Button, WarningIcon } from 'ui'
import {
@@ -59,7 +59,7 @@ export const AuthProvidersForm = () => {
set to more than an hour. It is recommended to set this value to less than an
hour.
</p>
- <Button asChild className="w-min" icon={<ExternalLink />}>
+ <Button asChild className="w-min" icon={<ExternalLinkIcon />}>
<Link href={`${DOCS_URL}/guides/platform/going-into-prod#security`}>
View security recommendations
</Link>
diff --git a/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm.tsx b/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm.tsx
index 333674fa48b..ccacf338ba7 100644
--- a/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm.tsx
+++ b/apps/studio/components/interfaces/Auth/BasicAuthSettingsForm.tsx
@@ -1,7 +1,7 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import { useEffect } from 'react'
import { useForm, useWatch } from 'react-hook-form'
@@ -280,7 +280,7 @@ export const BasicAuthSettingsForm = () => {
</Link>{' '}
to ensure that access to your data is restricted where required.
</p>
- <Button asChild className="w-min" icon={<ExternalLink />}>
+ <Button asChild className="w-min" icon={<ExternalLinkIcon />}>
<Link href={`${DOCS_URL}/guides/auth/auth-anonymous#access-control`}>
View access control docs
</Link>
diff --git a/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx b/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx
index 3aef6d786fb..0801f0f927f 100644
--- a/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx
+++ b/apps/studio/components/interfaces/Auth/CustomAuthProviders/CreateOrUpdateCustomProviderSheet.tsx
@@ -1,7 +1,7 @@
import { zodResolver } from '@hookform/resolvers/zod'
import type { CustomOAuthProvider } from '@supabase/auth-js'
import { useParams } from 'common'
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { useEffect } from 'react'
import { useForm } from 'react-hook-form'
import { toast } from 'sonner'
@@ -259,7 +259,7 @@ export const CreateOrUpdateCustomProviderSheet = ({
'disabled:pointer-events-none data-[state=open]:bg-secondary'
)}
>
- <X className="h-3 w-3" />
+ <XIcon className="h-3 w-3" />
<span className="sr-only">Close</span>
</SheetClose>
<SheetTitle className="truncate">
diff --git a/apps/studio/components/interfaces/Auth/CustomAuthProviders/CustomAuthProvidersList.tsx b/apps/studio/components/interfaces/Auth/CustomAuthProviders/CustomAuthProvidersList.tsx
index f6a50554d08..d8cf018b57f 100644
--- a/apps/studio/components/interfaces/Auth/CustomAuthProviders/CustomAuthProvidersList.tsx
+++ b/apps/studio/components/interfaces/Auth/CustomAuthProviders/CustomAuthProvidersList.tsx
@@ -1,6 +1,15 @@
import { useQueryClient } from '@tanstack/react-query'
import { useParams } from 'common'
-import { Edit, MoreVertical, Plus, Power, PowerOff, Search, Trash, X } from 'lucide-react'
+import {
+ EditIcon,
+ MoreVerticalIcon,
+ PlusIcon,
+ PowerIcon,
+ PowerOffIcon,
+ SearchIcon,
+ TrashIcon,
+ XIcon,
+} from 'lucide-react'
import { parseAsBoolean, parseAsStringLiteral, useQueryState } from 'nuqs'
import { useEffect, useMemo, useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -82,7 +91,7 @@ const NewProviderButton = ({
<Button
variant="primary"
disabled={!canCreateProvider}
- icon={<Plus />}
+ icon={<PlusIcon />}
onClick={() => setShowCreateSheet(true)}
className="grow"
>
@@ -312,7 +321,7 @@ export const CustomAuthProvidersList = () => {
onKeyDown={onSearchInputEscape(filterString, setFilterString)}
/>
<InputGroupAddon>
- <Search />
+ <SearchIcon />
</InputGroupAddon>
</InputGroup>
<FilterPopover
@@ -340,7 +349,7 @@ export const CustomAuthProvidersList = () => {
onSaveFilters={setFilteredEnabledStatuses}
/>
{hasActiveFilters && (
- <Button size="tiny" className="px-1" icon={<X />} onClick={handleResetFilters} />
+ <Button size="tiny" className="px-1" icon={<XIcon />} onClick={handleResetFilters} />
)}
</div>
<div className="flex items-center gap-x-2">
@@ -391,7 +400,7 @@ export const CustomAuthProvidersList = () => {
<Button
variant="primary"
disabled={!canCreateProvider}
- icon={<Plus />}
+ icon={<PlusIcon />}
onClick={() => setShowCreateSheet(true)}
className="grow"
>
@@ -472,7 +481,7 @@ export const CustomAuthProvidersList = () => {
<div className="absolute top-0 right-0 left-0 bottom-0 flex items-center justify-center border-l @[944px]:border-l-0">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button className="px-1" icon={<MoreVertical />} />
+ <Button className="px-1" icon={<MoreVerticalIcon />} />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-48">
<DropdownMenuItem
@@ -481,7 +490,7 @@ export const CustomAuthProvidersList = () => {
setSelectedProviderToEdit(provider.id)
}}
>
- <Edit size={12} />
+ <EditIcon size={12} />
<p>Update</p>
</DropdownMenuItem>
{provider.enabled ? (
@@ -489,7 +498,7 @@ export const CustomAuthProvidersList = () => {
className="space-x-2"
onClick={() => setSelectedProviderToDisable(provider.id)}
>
- <PowerOff size={12} />
+ <PowerOffIcon size={12} />
<p>Disable</p>
</DropdownMenuItem>
) : (
@@ -504,7 +513,7 @@ export const CustomAuthProvidersList = () => {
})
}
>
- <Power size={12} />
+ <PowerIcon size={12} />
<p>Enable</p>
</DropdownMenuItem>
)}
@@ -512,7 +521,7 @@ export const CustomAuthProvidersList = () => {
className="space-x-2"
onClick={() => setSelectedProviderToDelete(provider.id)}
>
- <Trash size={12} />
+ <TrashIcon size={12} />
<p>Delete</p>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/CustomEmailTemplateRestrictionAdmonition.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/CustomEmailTemplateRestrictionAdmonition.tsx
index a3fdd26cc33..4e9ae1c1837 100644
--- a/apps/studio/components/interfaces/Auth/EmailTemplates/CustomEmailTemplateRestrictionAdmonition.tsx
+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/CustomEmailTemplateRestrictionAdmonition.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import Link from 'next/link'
import {
Button,
@@ -36,7 +36,7 @@ export const CustomEmailTemplateRestrictionAdmonition = () => {
<Button
aria-label="More email template editing options"
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
- icon={<ChevronDown />}
+ icon={<ChevronDownIcon />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-52">
diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx
index 045b40efa79..b88904b5802 100644
--- a/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx
+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx
@@ -1,7 +1,7 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import Link from 'next/link'
import { useEffect } from 'react'
import { useForm } from 'react-hook-form'
@@ -205,7 +205,7 @@ export const EmailTemplates = () => {
</div>
<div className="flex items-center gap-4">
- <ChevronRight size={16} className="text-foreground-muted" />
+ <ChevronRightIcon size={16} className="text-foreground-muted" />
</div>
</Link>
</CardContent>
@@ -267,7 +267,7 @@ export const EmailTemplates = () => {
href={`/project/${projectRef}/auth/templates/${templateSlug}`}
className="py-6 pr-6"
>
- <ChevronRight size={16} className="text-foreground-muted" />
+ <ChevronRightIcon size={16} className="text-foreground-muted" />
</Link>
</div>
</CardContent>
diff --git a/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsx b/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsx
index 93203b6ed76..b53dd0bd241 100644
--- a/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsx
+++ b/apps/studio/components/interfaces/Auth/Hooks/AddHookDropdown.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { useMemo } from 'react'
import {
Button,
@@ -84,7 +84,7 @@ export const AddHookDropdown = ({
return (
<DropdownMenu open={open} onOpenChange={onOpenChange}>
<DropdownMenuTrigger asChild>
- <Button variant={variant} iconRight={<ChevronDown />}>
+ <Button variant={variant} iconRight={<ChevronDownIcon />}>
{buttonText}
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Auth/Hooks/HookCard.tsx b/apps/studio/components/interfaces/Auth/Hooks/HookCard.tsx
index 6a48a261665..0b227de3793 100644
--- a/apps/studio/components/interfaces/Auth/Hooks/HookCard.tsx
+++ b/apps/studio/components/interfaces/Auth/Hooks/HookCard.tsx
@@ -1,5 +1,12 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { BookOpen, Check, Edit, MoreVertical, Trash, Webhook } from 'lucide-react'
+import {
+ BookOpenIcon,
+ CheckIcon,
+ EditIcon,
+ MoreVerticalIcon,
+ TrashIcon,
+ WebhookIcon,
+} from 'lucide-react'
import {
Badge,
Button,
@@ -28,7 +35,7 @@ export const HookCard = ({ hook, onSelectEdit, onSelectDelete }: HookCardProps)
return (
<div className="bg-surface-100 border-default overflow-hidden border shadow-sm px-5 py-4 flex flex-row first:rounded-t-md last:rounded-b-md space-x-4">
<div>
- <Webhook size={21} strokeWidth="1" />
+ <WebhookIcon size={21} strokeWidth="1" />
</div>
<div className="flex flex-col grow overflow-y-auto w-full">
<span className="text-sm text-foreground">{hook.title}</span>
@@ -118,7 +125,7 @@ export const HookCard = ({ hook, onSelectEdit, onSelectDelete }: HookCardProps)
{hook.enabled ? (
<Badge className="space-x-1" variant="success">
<div className="h-3.5 w-3.5 bg-brand-default rounded-full flex justify-center items-center">
- <Check className="h-2 w-2 text-background-overlay " strokeWidth={6} />
+ <CheckIcon className="h-2 w-2 text-background-overlay " strokeWidth={6} />
</div>
<span>Enabled</span>
</Badge>
@@ -131,7 +138,7 @@ export const HookCard = ({ hook, onSelectEdit, onSelectDelete }: HookCardProps)
<DropdownMenuTrigger asChild>
<Button
className="px-1"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
aria-label={`Open actions for ${hook.title}`}
/>
</DropdownMenuTrigger>
@@ -149,7 +156,7 @@ export const HookCard = ({ hook, onSelectEdit, onSelectDelete }: HookCardProps)
},
}}
>
- <Edit size={12} />
+ <EditIcon size={12} />
<span>Edit hook</span>
</DropdownMenuItemTooltip>
<DropdownMenuItem asChild className="gap-x-2">
@@ -158,7 +165,7 @@ export const HookCard = ({ hook, onSelectEdit, onSelectDelete }: HookCardProps)
rel="noreferrer noopener"
href={`${DOCS_URL}/guides/auth/auth-hooks/${hook.docSlug}`}
>
- <BookOpen size={12} />
+ <BookOpenIcon size={12} />
<span>Documentation</span>
</a>
</DropdownMenuItem>
@@ -176,7 +183,7 @@ export const HookCard = ({ hook, onSelectEdit, onSelectDelete }: HookCardProps)
},
}}
>
- <Trash size={12} />
+ <TrashIcon size={12} />
<span>Delete hook</span>
</DropdownMenuItemTooltip>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Auth/OAuthApps/CreateOrUpdateOAuthAppSheet.tsx b/apps/studio/components/interfaces/Auth/OAuthApps/CreateOrUpdateOAuthAppSheet.tsx
index 048d30834a5..7dd6aa483ef 100644
--- a/apps/studio/components/interfaces/Auth/OAuthApps/CreateOrUpdateOAuthAppSheet.tsx
+++ b/apps/studio/components/interfaces/Auth/OAuthApps/CreateOrUpdateOAuthAppSheet.tsx
@@ -6,7 +6,7 @@ import type {
} from '@supabase/supabase-js'
import { useParams } from 'common'
import { Storage } from 'icons'
-import { ImageOff, Trash2, X } from 'lucide-react'
+import { ImageOffIcon, Trash2Icon, XIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { useForm, useWatch } from 'react-hook-form'
import { toast } from 'sonner'
@@ -268,7 +268,7 @@ export const CreateOrUpdateOAuthAppSheet = ({
'disabled:pointer-events-none data-[state=open]:bg-secondary'
)}
>
- <X className="h-3 w-3" />
+ <XIcon className="h-3 w-3" />
<span className="sr-only">Close</span>
</SheetClose>
<SheetTitle className="truncate">
@@ -312,7 +312,7 @@ export const CreateOrUpdateOAuthAppSheet = ({
backgroundImage: logoUrl ? `url("${logoUrl}")` : 'none',
}}
>
- {!hasLogo && <ImageOff size={14} />}
+ {!hasLogo && <ImageOffIcon size={14} />}
</div>
<div className="flex min-w-0 flex-1 items-center gap-2">
<div className="group relative min-w-0 flex-1">
@@ -343,7 +343,7 @@ export const CreateOrUpdateOAuthAppSheet = ({
{field.value ? (
<Button
size="tiny"
- icon={<Trash2 size={12} />}
+ icon={<Trash2Icon size={12} />}
onClick={handleRemoveLogo}
/>
) : null}
diff --git a/apps/studio/components/interfaces/Auth/OAuthApps/LogoPicker.tsx b/apps/studio/components/interfaces/Auth/OAuthApps/LogoPicker.tsx
index 34e9b4010b3..e28b880b687 100644
--- a/apps/studio/components/interfaces/Auth/OAuthApps/LogoPicker.tsx
+++ b/apps/studio/components/interfaces/Auth/OAuthApps/LogoPicker.tsx
@@ -1,5 +1,5 @@
import { useBreakpoint } from 'common'
-import { ChevronLeft } from 'lucide-react'
+import { ChevronLeftIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import {
Button,
@@ -50,7 +50,7 @@ export function LogoPicker({ open, onOpenChange, onSelect }: StorageFilePickerPr
<Button
variant="text"
size="tiny"
- icon={<ChevronLeft size={16} />}
+ icon={<ChevronLeftIcon size={16} />}
className="shrink-0"
onClick={() => setSelectedBucket(null)}
>
@@ -89,7 +89,7 @@ export function LogoPicker({ open, onOpenChange, onSelect }: StorageFilePickerPr
<Button
variant="text"
size="tiny"
- icon={<ChevronLeft size={16} />}
+ icon={<ChevronLeftIcon size={16} />}
className="shrink-0"
onClick={() => setSelectedBucket(null)}
>
diff --git a/apps/studio/components/interfaces/Auth/OAuthApps/NewOAuthAppBanner.tsx b/apps/studio/components/interfaces/Auth/OAuthApps/NewOAuthAppBanner.tsx
index 61fa445a043..bdb57e0aed4 100644
--- a/apps/studio/components/interfaces/Auth/OAuthApps/NewOAuthAppBanner.tsx
+++ b/apps/studio/components/interfaces/Auth/OAuthApps/NewOAuthAppBanner.tsx
@@ -1,5 +1,5 @@
import type { OAuthClient } from '@supabase/supabase-js'
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { toast } from 'sonner'
import { Button } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -49,7 +49,7 @@ export const NewOAuthAppBanner = ({ oauthApp, onClose }: NewOAuthAppBannerProps)
>
<Button
variant="text"
- icon={<X />}
+ icon={<XIcon />}
className="w-7 h-7 absolute top-0 right-0"
onClick={onClose}
/>
diff --git a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx
index 168e6dc199c..3597d5fcd04 100644
--- a/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx
+++ b/apps/studio/components/interfaces/Auth/OAuthApps/OAuthAppsList.tsx
@@ -1,6 +1,14 @@
import type { OAuthClient } from '@supabase/supabase-js'
import { useParams } from 'common'
-import { Edit, MoreVertical, Plus, RotateCw, Search, Trash, X } from 'lucide-react'
+import {
+ EditIcon,
+ MoreVerticalIcon,
+ PlusIcon,
+ RotateCwIcon,
+ SearchIcon,
+ TrashIcon,
+ XIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { parseAsBoolean, parseAsString, parseAsStringLiteral, useQueryState } from 'nuqs'
import { useEffect, useMemo, useRef, useState } from 'react'
@@ -259,7 +267,7 @@ export const OAuthAppsList = () => {
onKeyDown={onSearchInputEscape(filterString, setFilterString)}
/>
<InputGroupAddon>
- <Search />
+ <SearchIcon />
</InputGroupAddon>
</InputGroup>
<FilterPopover
@@ -287,7 +295,7 @@ export const OAuthAppsList = () => {
onSaveFilters={setFilteredClientTypes}
/>
{hasActiveFilters && (
- <Button size="tiny" className="px-1" icon={<X />} onClick={handleResetFilters} />
+ <Button size="tiny" className="px-1" icon={<XIcon />} onClick={handleResetFilters} />
)}
</div>
<div className="flex items-center gap-x-2">
@@ -300,7 +308,7 @@ export const OAuthAppsList = () => {
>
<Button
variant="primary"
- icon={<Plus />}
+ icon={<PlusIcon />}
onClick={() => setShowCreateSheet(true)}
className="grow"
>
@@ -311,7 +319,7 @@ export const OAuthAppsList = () => {
<ButtonTooltip
variant="primary"
disabled
- icon={<Plus />}
+ icon={<PlusIcon />}
onClick={() => setShowCreateSheet(true)}
className="grow"
tooltip={{
@@ -407,7 +415,7 @@ export const OAuthAppsList = () => {
<div className="absolute top-0 right-0 left-0 bottom-0 flex items-center justify-center border-l @[944px]:border-l-0">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button className="px-1" icon={<MoreVertical />} />
+ <Button className="px-1" icon={<MoreVerticalIcon />} />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-48">
<DropdownMenuItem
@@ -416,7 +424,7 @@ export const OAuthAppsList = () => {
setSelectedAppToEdit(app.client_id)
}}
>
- <Edit size={12} />
+ <EditIcon size={12} />
<p>Edit OAuth app</p>
</DropdownMenuItem>
{app.client_type === 'confidential' && (
@@ -427,7 +435,7 @@ export const OAuthAppsList = () => {
setShowRegenerateDialog(true)
}}
>
- <RotateCw size={12} />
+ <RotateCwIcon size={12} />
<p>Regenerate client secret</p>
</DropdownMenuItem>
)}
@@ -436,7 +444,7 @@ export const OAuthAppsList = () => {
className="space-x-2"
onClick={() => setSelectedAppToDelete(app.client_id)}
>
- <Trash size={12} />
+ <TrashIcon size={12} />
<p>Delete OAuth app</p>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx b/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx
index 402ccbe6c11..80facd6586e 100644
--- a/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx
+++ b/apps/studio/components/interfaces/Auth/Overview/OverviewLearnMore.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { Logs } from 'icons'
-import { BookOpen } from 'lucide-react'
+import { BookOpenIcon } from 'lucide-react'
import { useTheme } from 'next-themes'
import Link from 'next/link'
import { useEffect, useState } from 'react'
@@ -44,7 +44,7 @@ export const OverviewLearnMore = () => {
{
label: 'Docs',
href: `${DOCS_URL}/guides/auth`,
- icon: <BookOpen />,
+ icon: <BookOpenIcon />,
},
],
},
diff --git a/apps/studio/components/interfaces/Auth/Overview/OverviewMetrics.tsx b/apps/studio/components/interfaces/Auth/Overview/OverviewMetrics.tsx
index 1599446c9f4..e00636a2a08 100644
--- a/apps/studio/components/interfaces/Auth/Overview/OverviewMetrics.tsx
+++ b/apps/studio/components/interfaces/Auth/Overview/OverviewMetrics.tsx
@@ -1,7 +1,7 @@
import { useQuery } from '@tanstack/react-query'
import { useFlag, useParams } from 'common'
import dayjs from 'dayjs'
-import { BarChart2, ChevronRight, ExternalLink, Telescope } from 'lucide-react'
+import { BarChart2Icon, ChevronRightIcon, ExternalLinkIcon, TelescopeIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { AiIconAnimation, Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -72,7 +72,7 @@ const StatCard = ({
const actions = [
{
label: 'Go to Auth Report',
- icon: <ExternalLink size={12} />,
+ icon: <ExternalLinkIcon size={12} />,
onClick: href ? () => router.push(href) : undefined,
},
]
@@ -105,7 +105,7 @@ const LogsLink = ({ href }: { href: string }) => (
asChild
>
<Link href={href} aria-label="Go to Logs">
- <ChevronRight size={12} />
+ <ChevronRightIcon size={12} />
</Link>
</Button>
</TooltipTrigger>
@@ -217,9 +217,9 @@ export const OverviewMetrics = ({ metrics, isLoading, error }: OverviewMetricsPr
href={`/project/${ref}/reports/auth?its=${startDate}&ite=${endDate}&isHelper=true&helperText=Last+24+hours`}
className="text-foreground underline underline-offset-2 decoration-foreground-muted hover:decoration-foreground transition-all text-sm inline-flex items-center gap-x-1.5"
>
- <Telescope size={14} className="text-foreground-lighter" />
+ <TelescopeIcon size={14} className="text-foreground-lighter" />
<span>Go to observability</span>
- <ChevronRight size={14} className="text-foreground-lighter" />
+ <ChevronRightIcon size={14} className="text-foreground-lighter" />
</Link>
</div>
</PageSectionSummary>
@@ -294,7 +294,7 @@ export const OverviewMetrics = ({ metrics, isLoading, error }: OverviewMetricsPr
emptyState={
<div className="p-6">
<ChartEmptyState
- icon={<BarChart2 size={16} />}
+ icon={<BarChart2Icon size={16} />}
title="No data to show"
description="It may take up to 24 hours for data to refresh"
/>
@@ -366,7 +366,7 @@ export const OverviewMetrics = ({ metrics, isLoading, error }: OverviewMetricsPr
emptyState={
<div className="p-6">
<ChartEmptyState
- icon={<BarChart2 size={16} />}
+ icon={<BarChart2Icon size={16} />}
title="No data to show"
description="It may take up to 24 hours for data to refresh"
/>
diff --git a/apps/studio/components/interfaces/Auth/Overview/OverviewTable.tsx b/apps/studio/components/interfaces/Auth/Overview/OverviewTable.tsx
index 46ce46f9563..48ba21618ea 100644
--- a/apps/studio/components/interfaces/Auth/Overview/OverviewTable.tsx
+++ b/apps/studio/components/interfaces/Auth/Overview/OverviewTable.tsx
@@ -1,4 +1,4 @@
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { ReactNode } from 'react'
import { cn, Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from 'ui'
@@ -39,7 +39,7 @@ export function OverviewTable<T>({ columns, data, isLoading, emptyMessage }: Ove
<TableRow className="[&>td]:hover:bg-transparent">
<TableCell colSpan={columns.length} className="text-center text-foreground-light">
<div className="flex items-center justify-center gap-2 py-4">
- <Loader2 className="size-4 animate-spin" />
+ <Loader2Icon className="size-4 animate-spin" />
</div>
</TableCell>
</TableRow>
diff --git a/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx b/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx
index 91d0fe80697..cb51c1327b1 100644
--- a/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx
+++ b/apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Globe, Trash } from 'lucide-react'
+import { GlobeIcon, TrashIcon } from 'lucide-react'
import { Button, Checkbox } from 'ui'
import { ValueContainer } from './ValueContainer'
@@ -79,7 +79,7 @@ export const RedirectUrlList = ({
: undefined,
},
}}
- icon={<Trash />}
+ icon={<TrashIcon />}
onClick={() => (selectedUrls.length > 0 ? onSelectRemoveURLs() : null)}
>
Remove ({selectedUrls.length})
@@ -121,7 +121,7 @@ export const RedirectUrlList = ({
<div className="w-5 h-5 flex items-center justify-center">
<Checkbox checked={isSelected} onChange={(e) => onClickUrl(e, url)} />
</div>
- <Globe strokeWidth={2} size={14} className="text-foreground-lighter" />
+ <GlobeIcon strokeWidth={2} size={14} className="text-foreground-lighter" />
<span className="text-sm grow">{url}</span>
</div>
</ValueContainer>
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/AddIntegrationDropdown.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/AddIntegrationDropdown.tsx
index 16a5612ae7b..e3d4bce184f 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/AddIntegrationDropdown.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/AddIntegrationDropdown.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import Image from 'next/image'
import {
Button,
@@ -58,7 +58,7 @@ export const AddIntegrationDropdown = ({
return (
<DropdownMenu open={open} onOpenChange={onOpenChange}>
<DropdownMenuTrigger asChild>
- <Button variant={variant} iconRight={<ChevronDown />}>
+ <Button variant={variant} iconRight={<ChevronDownIcon />}>
Add provider
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/AwsRegionSelector.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/AwsRegionSelector.tsx
index 3f2a22231ee..43e8a8f977c 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/AwsRegionSelector.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/AwsRegionSelector.tsx
@@ -1,4 +1,4 @@
-import { Check } from 'lucide-react'
+import { CheckIcon } from 'lucide-react'
import { useId, useState } from 'react'
import {
cn,
@@ -89,7 +89,7 @@ export const AwsRegionSelector = ({
setOpen(false)
}}
>
- <Check
+ <CheckIcon
className={cn('mr-2 h-4 w-4', option === value ? 'opacity-100' : 'opacity-0')}
/>
{option}
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAuth0Dialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAuth0Dialog.tsx
index 177058784fb..0d73ed2adf8 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAuth0Dialog.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAuth0Dialog.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { useParams } from 'common'
-import { Trash } from 'lucide-react'
+import { TrashIcon } from 'lucide-react'
import { useEffect } from 'react'
import { SubmitHandler, useForm } from 'react-hook-form'
import { toast } from 'sonner'
@@ -158,7 +158,7 @@ export const CreateAuth0IntegrationDialog = ({
<DialogFooter>
{!isCreating && (
<div className="flex-1">
- <Button variant="danger" onClick={() => onDelete()} icon={<Trash />}>
+ <Button variant="danger" onClick={() => onDelete()} icon={<TrashIcon />}>
Remove connection
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAwsCognitoAuthDialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAwsCognitoAuthDialog.tsx
index f3031ec7631..98ffcce480e 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAwsCognitoAuthDialog.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateAwsCognitoAuthDialog.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { useParams } from 'common'
-import { Trash } from 'lucide-react'
+import { TrashIcon } from 'lucide-react'
import { useEffect } from 'react'
import { SubmitHandler, useForm, useWatch } from 'react-hook-form'
import { toast } from 'sonner'
@@ -172,7 +172,7 @@ export const CreateAwsCognitoAuthIntegrationDialog = ({
<DialogFooter>
{!isCreating && (
<div className="flex-1">
- <Button variant="danger" onClick={() => onDelete()} icon={<Trash />}>
+ <Button variant="danger" onClick={() => onDelete()} icon={<TrashIcon />}>
Remove connection
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateFirebaseAuthDialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateFirebaseAuthDialog.tsx
index 87ef8a68873..11756e9a35a 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateFirebaseAuthDialog.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateFirebaseAuthDialog.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { useParams } from 'common'
-import { Trash } from 'lucide-react'
+import { TrashIcon } from 'lucide-react'
import { useEffect } from 'react'
import { SubmitHandler, useForm } from 'react-hook-form'
import { toast } from 'sonner'
@@ -145,7 +145,7 @@ export const CreateFirebaseAuthIntegrationDialog = ({
<DialogFooter>
{!isCreating && (
<div className="flex-1">
- <Button variant="danger" onClick={() => onDelete()} icon={<Trash />}>
+ <Button variant="danger" onClick={() => onDelete()} icon={<TrashIcon />}>
Remove connection
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateWorkOSDialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateWorkOSDialog.tsx
index 018123e4b25..250afd438ec 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateWorkOSDialog.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateWorkOSDialog.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { useParams } from 'common'
-import { Trash } from 'lucide-react'
+import { TrashIcon } from 'lucide-react'
import { useEffect } from 'react'
import { SubmitHandler, useForm } from 'react-hook-form'
import { toast } from 'sonner'
@@ -154,7 +154,7 @@ export const CreateWorkOSIntegrationDialog = ({
<DialogFooter>
{!isCreating && (
<div className="flex-1">
- <Button variant="danger" onClick={() => onDelete()} icon={<Trash />}>
+ <Button variant="danger" onClick={() => onDelete()} icon={<TrashIcon />}>
Remove connection
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/IntegrationCard.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/IntegrationCard.tsx
index 181128af1a1..ca339c9a094 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/IntegrationCard.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/IntegrationCard.tsx
@@ -1,4 +1,4 @@
-import { Check } from 'lucide-react'
+import { CheckIcon } from 'lucide-react'
import Image from 'next/image'
import { Badge, Button } from 'ui'
@@ -210,7 +210,7 @@ export const IntegrationCard = ({
{true ? (
<Badge className="space-x-1" variant="success">
<div className="h-3.5 w-3.5 bg-brand-default rounded-full flex justify-center items-center">
- <Check className="h-2 w-2 text-background-overlay" strokeWidth={6} />
+ <CheckIcon className="h-2 w-2 text-background-overlay" strokeWidth={6} />
</div>
<span>Enabled</span>
</Badge>
diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/index.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/index.tsx
index 4697f0f4aed..25e3a15c879 100644
--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/index.tsx
+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/index.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useQuery } from '@tanstack/react-query'
import { useParams } from 'common'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import { cn } from 'ui'
@@ -108,7 +108,7 @@ export const ThirdPartyAuthForm = () => {
'border rounded-sm border-default px-20 py-16 flex flex-col items-center justify-center space-y-4'
)}
>
- <Loader2 size={24} className="animate-spin" />
+ <Loader2Icon size={24} className="animate-spin" />
</div>
)}
diff --git a/apps/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx b/apps/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx
index 1f10446bf3d..ed451c45472 100644
--- a/apps/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { ChevronDown, Mail, UserPlus } from 'lucide-react'
+import { ChevronDownIcon, MailIcon, UserPlusIcon } from 'lucide-react'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { Button, DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from 'ui'
@@ -36,7 +36,7 @@ export const AddUserDropdown = () => {
<>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="primary" iconRight={<ChevronDown size={14} strokeWidth={1.5} />}>
+ <Button variant="primary" iconRight={<ChevronDownIcon size={14} strokeWidth={1.5} />}>
Add user
</Button>
</DropdownMenuTrigger>
@@ -52,7 +52,7 @@ export const AddUserDropdown = () => {
content: { side: 'left', text: 'You need additional permissions to invite users' },
}}
>
- <Mail size={14} className="shrink-0" />
+ <MailIcon size={14} className="shrink-0" />
<p className="flex-1 min-w-0">Send invitation</p>
{canInviteUsers && (
<ShortcutBadge
@@ -73,7 +73,7 @@ export const AddUserDropdown = () => {
content: { side: 'left', text: 'You need additional permissions to create users' },
}}
>
- <UserPlus size={14} className="shrink-0" />
+ <UserPlusIcon size={14} className="shrink-0" />
<p className="flex-1 min-w-0">Create new user</p>
{canCreateUsers && (
<ShortcutBadge
diff --git a/apps/studio/components/interfaces/Auth/Users/CreateUserModal.tsx b/apps/studio/components/interfaces/Auth/Users/CreateUserModal.tsx
index e6efbdf47f8..218211f25cc 100644
--- a/apps/studio/components/interfaces/Auth/Users/CreateUserModal.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/CreateUserModal.tsx
@@ -1,7 +1,7 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Lock, Mail } from 'lucide-react'
+import { LockIcon, MailIcon } from 'lucide-react'
import { SubmitHandler, useForm } from 'react-hook-form'
import { toast } from 'sonner'
import {
@@ -82,7 +82,7 @@ const CreateUserModal = ({ visible, setVisible }: CreateUserModalProps) => {
<FormLabel>Email address</FormLabel>
<FormControl>
<div className="items-center relative">
- <Mail
+ <MailIcon
size={18}
className="absolute left-2 top-1/2 transform -translate-y-1/2"
strokeWidth={1.5}
@@ -112,7 +112,7 @@ const CreateUserModal = ({ visible, setVisible }: CreateUserModalProps) => {
<FormLabel>User Password</FormLabel>
<FormControl>
<div className="items-center relative">
- <Lock
+ <LockIcon
size={18}
className="absolute left-2 top-1/2 transform -translate-y-1/2"
strokeWidth={1.5}
diff --git a/apps/studio/components/interfaces/Auth/Users/SortDropdown.tsx b/apps/studio/components/interfaces/Auth/Users/SortDropdown.tsx
index 216cf0232c6..f0f19c7b727 100644
--- a/apps/studio/components/interfaces/Auth/Users/SortDropdown.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/SortDropdown.tsx
@@ -1,4 +1,4 @@
-import { ArrowDownNarrowWide, ArrowDownWideNarrow } from 'lucide-react'
+import { ArrowDownNarrowWideIcon, ArrowDownWideNarrowIcon } from 'lucide-react'
import {
Button,
DropdownMenu,
@@ -40,7 +40,7 @@ export const SortDropdown = ({
<ButtonTooltip
disabled
variant="default"
- icon={<ArrowDownNarrowWide />}
+ icon={<ArrowDownNarrowWideIcon />}
tooltip={{
content: {
side: 'bottom',
@@ -63,7 +63,9 @@ export const SortDropdown = ({
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button icon={sortOrder === 'desc' ? <ArrowDownWideNarrow /> : <ArrowDownNarrowWide />}>
+ <Button
+ icon={sortOrder === 'desc' ? <ArrowDownWideNarrowIcon /> : <ArrowDownNarrowWideIcon />}
+ >
Sorted by {sortColumn === 'id' ? 'user ID' : sortColumn.replaceAll('_', ' ')}
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Auth/Users/UserHeader.tsx b/apps/studio/components/interfaces/Auth/Users/UserHeader.tsx
index 1b1a721d56c..e293a403246 100644
--- a/apps/studio/components/interfaces/Auth/Users/UserHeader.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/UserHeader.tsx
@@ -1,4 +1,4 @@
-import { Copy } from 'lucide-react'
+import { CopyIcon } from 'lucide-react'
import { cn } from 'ui'
import { PANEL_PADDING } from './Users.constants'
@@ -21,7 +21,7 @@ export const UserHeader = ({ user }: { user: User }) => {
<CopyButton
iconOnly
variant="text"
- icon={<Copy />}
+ icon={<CopyIcon />}
className="px-1"
text={user?.phone ?? ''}
/>
@@ -34,7 +34,7 @@ export const UserHeader = ({ user }: { user: User }) => {
<CopyButton
iconOnly
variant="text"
- icon={<Copy />}
+ icon={<CopyIcon />}
className="px-1"
text={user?.id ?? ''}
/>
@@ -50,7 +50,7 @@ export const UserHeader = ({ user }: { user: User }) => {
<CopyButton
iconOnly
variant="text"
- icon={<Copy />}
+ icon={<CopyIcon />}
className="px-1"
text={user?.email ?? ''}
/>
diff --git a/apps/studio/components/interfaces/Auth/Users/UserLogs.tsx b/apps/studio/components/interfaces/Auth/Users/UserLogs.tsx
index f54a9762083..f0c7591a203 100644
--- a/apps/studio/components/interfaces/Auth/Users/UserLogs.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/UserLogs.tsx
@@ -1,5 +1,5 @@
import { useFlag, useParams } from 'common'
-import { ExternalLink, RefreshCw } from 'lucide-react'
+import { ExternalLinkIcon, RefreshCwIcon } from 'lucide-react'
import Link from 'next/link'
import { useQueryState } from 'nuqs'
import { useEffect } from 'react'
@@ -134,7 +134,7 @@ export const UserLogs = ({ user }: UserLogsProps) => {
<Button
loading={isLoadingAuthLogs}
disabled={isLoadingAuthLogs}
- icon={<RefreshCw />}
+ icon={<RefreshCwIcon />}
onClick={() => refresh()}
>
Refresh
@@ -193,7 +193,7 @@ export const UserLogs = ({ user }: UserLogsProps) => {
className="px-1.5 absolute right-0 top-0 opacity-0 group-hover:opacity-100 transition bg-background focus-visible:opacity-100"
>
<Link href={`/project/${ref}/logs/auth-logs?log=${log.id}`}>
- <ExternalLink size="12" className="text-foreground-light" />
+ <ExternalLinkIcon size="12" className="text-foreground-light" />
</Link>
</ButtonTooltip>
</p>
diff --git a/apps/studio/components/interfaces/Auth/Users/UserOverview.tsx b/apps/studio/components/interfaces/Auth/Users/UserOverview.tsx
index 824353a4686..c5b7c506ac0 100644
--- a/apps/studio/components/interfaces/Auth/Users/UserOverview.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/UserOverview.tsx
@@ -1,7 +1,15 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { Ban, Check, Copy, Mail, ShieldOff, Trash, X } from 'lucide-react'
+import {
+ BanIcon,
+ CheckIcon,
+ CopyIcon,
+ MailIcon,
+ ShieldOffIcon,
+ TrashIcon,
+ XIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { ComponentProps, ReactNode, useEffect, useState } from 'react'
import { toast } from 'sonner'
@@ -275,7 +283,7 @@ export const UserOverview = ({ user, onDeleteSuccess }: UserOverviewProps) => {
{isActive ? (
<div className="flex items-center gap-1 rounded-full border border-brand-400 bg-brand-200 py-1 px-1 text-xs text-primary">
<span className="rounded-full bg-brand-default p-0.5 text-xs text-brand-200">
- <Check strokeWidth={2} size={12} />
+ <CheckIcon strokeWidth={2} size={12} />
</span>
<span className="px-1">Enabled</span>
</div>
@@ -298,7 +306,7 @@ export const UserOverview = ({ user, onDeleteSuccess }: UserOverviewProps) => {
title="Reset password"
description="Send a password recovery email to the user"
button={{
- icon: <Mail />,
+ icon: <MailIcon />,
text: 'Send password recovery',
isLoading: isResettingPassword,
disabled: !canSendRecovery,
@@ -323,7 +331,7 @@ export const UserOverview = ({ user, onDeleteSuccess }: UserOverviewProps) => {
: 'Send a confirmation email to the user'
}
button={{
- icon: <Mail />,
+ icon: <MailIcon />,
text: isVerified ? 'Send magic link' : 'Send confirmation email',
isLoading: isSendingMagicLink,
disabled: !canSendMagicLink,
@@ -349,7 +357,7 @@ export const UserOverview = ({ user, onDeleteSuccess }: UserOverviewProps) => {
title="Send OTP"
description="Passwordless login via phone for the user"
button={{
- icon: <Mail />,
+ icon: <MailIcon />,
text: 'Send OTP',
isLoading: isSendingOTP,
disabled: !canSendOtp,
@@ -383,7 +391,7 @@ export const UserOverview = ({ user, onDeleteSuccess }: UserOverviewProps) => {
title="Remove MFA factors"
description="Removes all MFA factors associated with the user"
button={{
- icon: <ShieldOff />,
+ icon: <ShieldOffIcon />,
text: 'Remove MFA factors',
disabled: !canRemoveMFAFactors,
onClick: () => setIsDeleteFactorsModalOpen(true),
@@ -402,7 +410,7 @@ export const UserOverview = ({ user, onDeleteSuccess }: UserOverviewProps) => {
: 'Revoke access to the project for a set duration'
}
button={{
- icon: <Ban />,
+ icon: <BanIcon />,
text: isBanned ? 'Unban user' : 'Ban user',
disabled: !canUpdateUser,
onClick: () => {
@@ -419,7 +427,7 @@ export const UserOverview = ({ user, onDeleteSuccess }: UserOverviewProps) => {
title="Delete user"
description="User will no longer have access to the project"
button={{
- icon: <Trash />,
+ icon: <TrashIcon />,
variant: 'danger',
text: 'Delete user',
disabled: !canRemoveUser,
@@ -491,11 +499,11 @@ export const RowData = ({ property, value }: { property: string; value?: string
<div className="h-[26px] flex items-center justify-center min-w-[70px]">
{value ? (
<div className="rounded-full w-4 h-4 dark:bg-white bg-black flex items-center justify-center">
- <Check size={10} className="text-contrast" strokeWidth={4} />
+ <CheckIcon size={10} className="text-contrast" strokeWidth={4} />
</div>
) : (
<div className="rounded-full w-4 h-4 dark:bg-white bg-black flex items-center justify-center">
- <X size={10} className="text-contrast" strokeWidth={4} />
+ <XIcon size={10} className="text-contrast" strokeWidth={4} />
</div>
)}
</div>
@@ -506,7 +514,7 @@ export const RowData = ({ property, value }: { property: string; value?: string
<CopyButton
iconOnly
variant="text"
- icon={<Copy />}
+ icon={<CopyIcon />}
className="transition opacity-0 group-hover:opacity-100 px-1"
text={value}
/>
@@ -555,7 +563,7 @@ export const RowAction = ({
<ButtonTooltip
variant={button?.variant ?? 'default'}
- icon={success ? <Check className="text-primary" /> : button.icon}
+ icon={success ? <CheckIcon className="text-primary" /> : button.icon}
loading={button.isLoading ?? false}
onClick={button.onClick}
disabled={disabled}
diff --git a/apps/studio/components/interfaces/Auth/Users/UserPanel.tsx b/apps/studio/components/interfaces/Auth/Users/UserPanel.tsx
index fd14d7e8fcd..3cc4dbcb0e7 100644
--- a/apps/studio/components/interfaces/Auth/Users/UserPanel.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/UserPanel.tsx
@@ -1,4 +1,4 @@
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { parseAsString, useQueryState } from 'nuqs'
import { useState } from 'react'
import {
@@ -63,7 +63,7 @@ export const UserPanel = () => {
<Button
variant="text"
className="absolute top-3 right-3 z-10 px-1"
- icon={<X />}
+ icon={<XIcon />}
onClick={() => setSelectedId(null)}
aria-label="Close panel"
/>
diff --git a/apps/studio/components/interfaces/Auth/Users/Users.utils.tsx b/apps/studio/components/interfaces/Auth/Users/Users.utils.tsx
index 3f753634897..f3e14c7e55d 100644
--- a/apps/studio/components/interfaces/Auth/Users/Users.utils.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/Users.utils.tsx
@@ -1,6 +1,6 @@
import dayjs from 'dayjs'
import { SqlEditor, TableEditor } from 'icons'
-import { Copy, ScrollText, Trash, UserIcon } from 'lucide-react'
+import { CopyIcon, ScrollTextIcon, TrashIcon, UserIcon } from 'lucide-react'
import { Column, useRowSelection } from 'react-data-grid'
import {
Checkbox,
@@ -438,7 +438,7 @@ export const formatUserColumns = ({
if (value) copyToClipboard(value)
}}
>
- <Copy size={12} />
+ <CopyIcon size={12} />
<span>Copy {col.id === 'id' ? col.name : col.name.toLowerCase()}</span>
</ContextMenuItem>
@@ -473,7 +473,7 @@ export const formatUserColumns = ({
if (user) onSelectViewLogs(user)
}}
>
- <ScrollText size={12} />
+ <ScrollTextIcon size={12} />
<span>View user logs</span>
</ContextMenuItem>
@@ -486,7 +486,7 @@ export const formatUserColumns = ({
if (user) onSelectDeleteUser(user)
}}
>
- <Trash size={12} />
+ <TrashIcon size={12} />
<span>Delete user</span>
</ContextMenuItem>
</ContextMenuContent>
diff --git a/apps/studio/components/interfaces/Auth/Users/UsersFooter.tsx b/apps/studio/components/interfaces/Auth/Users/UsersFooter.tsx
index f3f10267b1d..ece8fd63d7a 100644
--- a/apps/studio/components/interfaces/Auth/Users/UsersFooter.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/UsersFooter.tsx
@@ -1,7 +1,7 @@
import { THRESHOLD_COUNT, type OptimizedSearchColumns } from '@supabase/pg-meta'
import { keepPreviousData } from '@tanstack/react-query'
import { useParams } from 'common'
-import { HelpCircle, Loader2 } from 'lucide-react'
+import { HelpCircleIcon, Loader2Icon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
@@ -65,7 +65,7 @@ export const UsersFooter = ({
<div className="flex items-center gap-x-2">
{isLoadingCount || isFetchingCount || countData === undefined ? (
<span className="flex items-center gap-2">
- <Loader2 size={14} className="animate-spin" /> Loading...
+ <Loader2Icon size={14} className="animate-spin" /> Loading...
</span>
) : (
<>
@@ -84,7 +84,7 @@ export const UsersFooter = ({
size="tiny"
variant="text"
className="px-1.5"
- icon={<HelpCircle />}
+ icon={<HelpCircleIcon />}
onClick={() => {
if (specificFilterColumn === 'freeform') {
setShowFetchExactCountModal(true)
diff --git a/apps/studio/components/interfaces/Auth/Users/UsersGridComponents.tsx b/apps/studio/components/interfaces/Auth/Users/UsersGridComponents.tsx
index 7c51f3f1307..7b776517ae3 100644
--- a/apps/studio/components/interfaces/Auth/Users/UsersGridComponents.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/UsersGridComponents.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown, SortAsc, SortDesc } from 'lucide-react'
+import { ChevronDownIcon, SortAscIcon, SortDescIcon } from 'lucide-react'
import { useEffect, useRef, useState } from 'react'
import { useHeaderRowSelection } from 'react-data-grid'
import {
@@ -77,7 +77,7 @@ export const HeaderCell = ({
<DropdownMenuTrigger asChild>
<Button
variant="text"
- icon={<ChevronDown />}
+ icon={<ChevronDownIcon />}
className="p-0 h-5 w-5"
onClick={() => setOpen(!open)}
/>
@@ -90,7 +90,7 @@ export const HeaderCell = ({
setSortByValue(`${col.id}:desc`)
}}
>
- <SortDesc size={14} />
+ <SortDescIcon size={14} />
Sort descending
</DropdownMenuItem>
<DropdownMenuItem
@@ -100,7 +100,7 @@ export const HeaderCell = ({
setSortByValue(`${col.id}:asc`)
}}
>
- <SortAsc size={14} />
+ <SortAscIcon size={14} />
Sort ascending
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Auth/Users/UsersSearch.tsx b/apps/studio/components/interfaces/Auth/Users/UsersSearch.tsx
index 28c09b03e7b..b3e4f12e8e1 100644
--- a/apps/studio/components/interfaces/Auth/Users/UsersSearch.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/UsersSearch.tsx
@@ -1,5 +1,5 @@
import { AuthUsersSearchSubmittedEvent } from 'common/telemetry-constants'
-import { Search, X } from 'lucide-react'
+import { SearchIcon, XIcon } from 'lucide-react'
import { parseAsString, parseAsStringEnum, useQueryState } from 'nuqs'
import { Dispatch, forwardRef, SetStateAction } from 'react'
import {
@@ -97,7 +97,7 @@ export const UsersSearch = forwardRef<HTMLInputElement, UsersSearchProps>(functi
return (
<div className="flex items-center">
<div className="text-xs h-[26px] flex items-center px-1.5 border border-strong rounded-l-md bg-surface-300">
- <Search size={14} />
+ <SearchIcon size={14} />
</div>
<Select
@@ -177,7 +177,7 @@ export const UsersSearch = forwardRef<HTMLInputElement, UsersSearchProps>(functi
size="tiny"
variant="text"
className="p-0 h-5 w-5"
- icon={<X className={cn(searchInvalid ? 'text-red-900' : '')} />}
+ icon={<XIcon className={cn(searchInvalid ? 'text-red-900' : '')} />}
onClick={() => {
setSearch('')
setFilterKeywords('')
diff --git a/apps/studio/components/interfaces/Auth/Users/UsersV2.tsx b/apps/studio/components/interfaces/Auth/Users/UsersV2.tsx
index e24be1662d3..d6892f2b48d 100644
--- a/apps/studio/components/interfaces/Auth/Users/UsersV2.tsx
+++ b/apps/studio/components/interfaces/Auth/Users/UsersV2.tsx
@@ -6,11 +6,11 @@ import { LOCAL_STORAGE_KEYS, useFlag, useParams } from 'common'
import {
ExternalLinkIcon,
InfoIcon,
- RefreshCw,
- Trash,
- Users,
+ RefreshCwIcon,
+ TrashIcon,
+ UsersIcon,
WandSparklesIcon,
- X,
+ XIcon,
} from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
@@ -569,7 +569,7 @@ export const UsersV2 = () => {
onClick={() => setImprovedSearchDismissed(true)}
className="absolute top-3 right-3 opacity-30 hover:opacity-100 transition-opacity"
>
- <X size={14} className="text-foreground-light" />
+ <XIcon size={14} className="text-foreground-light" />
</TooltipTrigger>
<TooltipContent side="bottom">Dismiss</TooltipContent>
</Tooltip>
@@ -615,11 +615,11 @@ export const UsersV2 = () => {
<div className="bg-surface-200 py-3 px-4 md:px-6 flex flex-col lg:flex-row lg:items-start justify-between gap-2">
{selectedUsers.size > 0 ? (
<div className="flex items-center gap-x-2">
- <Button icon={<Trash />} onClick={() => setShowDeleteModal(true)}>
+ <Button icon={<TrashIcon />} onClick={() => setShowDeleteModal(true)}>
Delete {selectedUsers.size} users
</Button>
<ButtonTooltip
- icon={<X />}
+ icon={<XIcon />}
className="px-1.5"
onClick={() => setSelectedUsers(new Set([]))}
tooltip={{ content: { side: 'bottom', text: 'Cancel selection' } }}
@@ -786,7 +786,7 @@ export const UsersV2 = () => {
<div className="flex items-center gap-x-2">
<ButtonTooltip
size="tiny"
- icon={<RefreshCw />}
+ icon={<RefreshCwIcon />}
className="w-7"
loading={isRefetching && !isFetchingNextPage}
onClick={handleRefresh}
@@ -883,7 +883,7 @@ export const UsersV2 = () => {
</div>
) : isSuccess ? (
<div className="absolute top-20 px-6 flex flex-col items-center justify-center w-full gap-y-2">
- <Users className="text-foreground-lighter" strokeWidth={1} />
+ <UsersIcon className="text-foreground-lighter" strokeWidth={1} />
<div className="text-center">
<p className="text-foreground">
{filterUserType !== 'all' || filterKeywords.length > 0
diff --git a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/CreditCard.tsx b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/CreditCard.tsx
index 16f42fb619b..f401c385431 100644
--- a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/CreditCard.tsx
+++ b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/CreditCard.tsx
@@ -1,4 +1,4 @@
-import { MoreHorizontal } from 'lucide-react'
+import { MoreHorizontalIcon } from 'lucide-react'
import {
Badge,
Button,
@@ -157,7 +157,7 @@ const CreditCard = ({
<Button
variant="outline"
className="hover:border-muted px-1"
- icon={<MoreHorizontal />}
+ icon={<MoreHorizontalIcon />}
aria-label="More options"
/>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/NewPaymentMethodElement.tsx b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/NewPaymentMethodElement.tsx
index 50fbdf685ea..65b35628c19 100644
--- a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/NewPaymentMethodElement.tsx
+++ b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/NewPaymentMethodElement.tsx
@@ -11,7 +11,7 @@ import {
StripeAddressElementOptions,
type SetupIntent,
} from '@stripe/stripe-js'
-import { Check, ChevronsUpDown, HelpCircle } from 'lucide-react'
+import { CheckIcon, ChevronsUpDownIcon, HelpCircleIcon } from 'lucide-react'
import { forwardRef, useEffect, useId, useImperativeHandle, useMemo, useRef, useState } from 'react'
import { useForm, useWatch } from 'react-hook-form'
import { toast } from 'sonner'
@@ -354,7 +354,7 @@ export const NewPaymentMethodElement = forwardRef(
</label>
<Tooltip>
<TooltipTrigger asChild>
- <HelpCircle
+ <HelpCircleIcon
size={14}
className="text-foreground-lighter hover:text-foreground transition"
/>
@@ -408,7 +408,7 @@ export const NewPaymentMethodElement = forwardRef(
!selectedTaxId && 'text-muted'
)}
iconRight={
- <ChevronsUpDown
+ <ChevronsUpDownIcon
className="ml-2 h-4 w-4 shrink-0 opacity-50"
strokeWidth={1.5}
/>
@@ -440,7 +440,7 @@ export const NewPaymentMethodElement = forwardRef(
setShowTaxIDsPopover(false)
}}
>
- <Check
+ <CheckIcon
className={cn(
'mr-2 h-4 w-4',
selectedTaxId?.name === option.name
diff --git a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/PaymentMethods.tsx b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/PaymentMethods.tsx
index ab387911a30..d588920cd80 100644
--- a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/PaymentMethods.tsx
+++ b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/PaymentMethods.tsx
@@ -1,6 +1,6 @@
import { PermissionAction, SupportCategories } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { CreditCardIcon, ExternalLink, Plus } from 'lucide-react'
+import { CreditCardIcon, ExternalLinkIcon, PlusIcon } from 'lucide-react'
import { useState } from 'react'
import { useInView } from 'react-intersection-observer'
import { toast } from 'sonner'
@@ -116,7 +116,7 @@ const PaymentMethods = () => {
<Button
asChild
key="stripe-projects-billing-docs"
- iconRight={<ExternalLink size={14} />}
+ iconRight={<ExternalLinkIcon size={14} />}
>
<a
href="https://docs.stripe.com/projects#manage-billing"
@@ -153,7 +153,7 @@ const PaymentMethods = () => {
<div />
)}
<Button
- icon={<Plus />}
+ icon={<PlusIcon />}
disabled={!canUpdatePaymentMethods}
onClick={() => setShowAddPaymentMethodModal(true)}
>
diff --git a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/StripePaymentConnection.tsx b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/StripePaymentConnection.tsx
index 155d751b605..81fae8cf780 100644
--- a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/StripePaymentConnection.tsx
+++ b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/StripePaymentConnection.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import { Button } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -37,7 +37,7 @@ export function StripePaymentConnection({
title="Stripe payment connection needs attention"
description="The payment token linked to this organisation may be invalid or expired. To keep billing active, review and update it in your Stripe Dashboard."
actions={
- <Button asChild variant="warning" iconRight={<ExternalLink size={14} />}>
+ <Button asChild variant="warning" iconRight={<ExternalLinkIcon size={14} />}>
<a href={STRIPE_DASHBOARD_URL} target="_blank" rel="noopener noreferrer">
Review in Stripe Dashboard
</a>
@@ -75,7 +75,7 @@ export function StripePaymentConnection({
</p>
)}
</div>
- <Button asChild iconRight={<ExternalLink size={14} />}>
+ <Button asChild iconRight={<ExternalLinkIcon size={14} />}>
<a
href={`${STRIPE_PROJECTS_DOCS_URL}#manage-billing`}
target="_blank"
diff --git a/apps/studio/components/interfaces/BranchManagement/Branch.Commands.tsx b/apps/studio/components/interfaces/BranchManagement/Branch.Commands.tsx
index 4e9fee06a89..900ed967a67 100644
--- a/apps/studio/components/interfaces/BranchManagement/Branch.Commands.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/Branch.Commands.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Forward, GitBranch, Plus } from 'lucide-react'
+import { ForwardIcon, GitBranchIcon, PlusIcon } from 'lucide-react'
import { PageType, useRegisterCommands, useRegisterPage, useSetPage } from 'ui-patterns/CommandMenu'
import { COMMAND_MENU_SECTIONS } from '../App/CommandMenu/CommandMenu.utils'
@@ -45,7 +45,7 @@ export function useBranchCommands() {
id: `branch-${branch.id}`,
name: branch.name,
route: `/project/${branch.project_ref}`,
- icon: () => <Forward />,
+ icon: () => <ForwardIcon />,
})),
},
],
@@ -61,7 +61,7 @@ export function useBranchCommands() {
name: 'Switch branch',
value: 'Switch branch, Change branch, Select branch',
action: () => setPage(SWITCH_BRANCH_PAGE_NAME),
- icon: () => <GitBranch />,
+ icon: () => <GitBranchIcon />,
},
],
{
@@ -79,7 +79,7 @@ export function useBranchCommands() {
name: 'Create branch',
value: 'Create branch, New branch',
action: () => setShowCreateBranchModal(true),
- icon: () => <Plus />,
+ icon: () => <PlusIcon />,
},
],
{
diff --git a/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx b/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx
index 28f61b8745c..9d2e54d2f86 100644
--- a/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { Github } from 'lucide-react'
+import { GithubIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { PropsWithChildren, ReactNode } from 'react'
@@ -104,7 +104,7 @@ export const BranchRow = ({
rel="noreferrer noopener"
href={`https://github.com/${repo}/tree/${branch.git_branch}`}
>
- <Github size={14} className="text-foreground-light" />
+ <GithubIcon size={14} className="text-foreground-light" />
</a>
</ButtonTooltip>
)}
diff --git a/apps/studio/components/interfaces/BranchManagement/BranchSelector.tsx b/apps/studio/components/interfaces/BranchManagement/BranchSelector.tsx
index 675227820b4..03ae037071e 100644
--- a/apps/studio/components/interfaces/BranchManagement/BranchSelector.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/BranchSelector.tsx
@@ -1,4 +1,4 @@
-import { Check, GitMerge, Shield } from 'lucide-react'
+import { CheckIcon, GitMergeIcon, ShieldIcon } from 'lucide-react'
import { useState } from 'react'
import {
Command,
@@ -48,7 +48,7 @@ export const BranchSelector = ({
<Popover open={open} onOpenChange={setOpen} modal={false}>
<PopoverTrigger asChild>
<ButtonTooltip
- icon={<GitMerge size={14} strokeWidth={1.5} />}
+ icon={<GitMergeIcon size={14} strokeWidth={1.5} />}
variant={variant}
disabled={
disabled || isUpdating || branches.length === 0 || availableBranches.length === 0
@@ -83,13 +83,13 @@ export const BranchSelector = ({
disabled={isUpdating || !!branch.git_branch || !!branch.review_requested_at}
>
<div className="flex items-center gap-2">
- {branch.is_default && <Shield size={14} className="text-amber-900" />}
+ {branch.is_default && <ShieldIcon size={14} className="text-amber-900" />}
<span className="truncate" title={branch.name}>
{branch.name}
</span>
</div>
{selectedBranch?.id === branch.id && (
- <Check size={14} strokeWidth={1.5} className="text-primary" />
+ <CheckIcon size={14} strokeWidth={1.5} className="text-primary" />
)}
{branch.git_branch && <span>Synced to a Git branch</span>}
{branch.review_requested_at && <span>Merge request opened</span>}
diff --git a/apps/studio/components/interfaces/BranchManagement/BranchingEmptyState.tsx b/apps/studio/components/interfaces/BranchManagement/BranchingEmptyState.tsx
index 985a927b08c..360a7f5d85d 100644
--- a/apps/studio/components/interfaces/BranchManagement/BranchingEmptyState.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/BranchingEmptyState.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { GitBranch } from 'lucide-react'
+import { GitBranchIcon } from 'lucide-react'
import Link from 'next/link'
import { Badge, Button, Card, CardContent, CardDescription, CardHeader, CardTitle } from 'ui'
@@ -28,7 +28,7 @@ export const BranchingEmptyState = ({
<div className="flex items-start gap-x-4">
<div className="shrink-0 text-foreground-light">
<Card className="flex h-10 w-10 shrink-0 items-center justify-center p-0">
- <GitBranch size={16} />
+ <GitBranchIcon size={16} />
</Card>
</div>
<div className="text-sm">
diff --git a/apps/studio/components/interfaces/BranchManagement/ConnectToGitHub.tsx b/apps/studio/components/interfaces/BranchManagement/ConnectToGitHub.tsx
index 832cc59de31..a3a53972845 100644
--- a/apps/studio/components/interfaces/BranchManagement/ConnectToGitHub.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/ConnectToGitHub.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Github } from 'lucide-react'
+import { GithubIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { Button } from 'ui'
@@ -48,7 +48,7 @@ export const ConnectToGitHub = () => {
Keep this preview branch in sync with a chosen GitHub branch
</p>
</div>
- <Button icon={<Github />} onClick={onClick}>
+ <Button icon={<GithubIcon />} onClick={onClick}>
{showAuthorizeCta ? 'Authorize' : 'Configure'}
</Button>
</div>
diff --git a/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx b/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
index 4d61aa416c8..d40310bc906 100644
--- a/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/CreateBranchModal.tsx
@@ -3,7 +3,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useQueryClient } from '@tanstack/react-query'
import { useDebounce } from '@uidotdev/usehooks'
import { useFlag, useParams } from 'common'
-import { Check, DatabaseZap, DollarSign, GitMerge, Loader2 } from 'lucide-react'
+import { CheckIcon, DatabaseZapIcon, DollarSignIcon, GitMergeIcon, Loader2Icon } from 'lucide-react'
import Image from 'next/image'
import Link from 'next/link'
import { useRouter } from 'next/router'
@@ -399,9 +399,9 @@ export const CreateBranchModal = () => {
<div className="absolute top-2.5 right-3 flex items-center gap-2">
{field.value ? (
isCheckingGHBranchValidity ? (
- <Loader2 size={14} className="animate-spin" />
+ <Loader2Icon size={14} className="animate-spin" />
) : isGitBranchValid ? (
- <Check size={14} className="text-primary" strokeWidth={2} />
+ <CheckIcon size={14} className="text-primary" strokeWidth={2} />
) : null
) : null}
</div>
@@ -454,7 +454,7 @@ export const CreateBranchModal = () => {
<div className="flex flex-row gap-4">
<div>
<figure className="w-10 h-10 rounded-md bg-info-200 border border-info-400 flex items-center justify-center">
- <DatabaseZap className="text-info" size={20} strokeWidth={2} />
+ <DatabaseZapIcon className="text-info" size={20} strokeWidth={2} />
</figure>
</div>
<div className="flex flex-col gap-y-1">
@@ -551,7 +551,7 @@ export const CreateBranchModal = () => {
<div className="flex flex-row gap-4">
<div>
<figure className="w-10 h-10 rounded-md bg-info-200 border border-info-400 flex items-center justify-center">
- <GitMerge className="text-info" size={20} strokeWidth={2} />
+ <GitMergeIcon className="text-info" size={20} strokeWidth={2} />
</figure>
</div>
<div className="flex flex-col gap-y-1">
@@ -583,7 +583,7 @@ export const CreateBranchModal = () => {
<div className="flex flex-row gap-4">
<div>
<figure className="w-10 h-10 rounded-md bg-info-200 border border-info-400 flex items-center justify-center">
- <DollarSign className="text-info" size={20} strokeWidth={2} />
+ <DollarSignIcon className="text-info" size={20} strokeWidth={2} />
</figure>
</div>
<div className="flex flex-col gap-y-1">
diff --git a/apps/studio/components/interfaces/BranchManagement/DatabaseDiffPanel.tsx b/apps/studio/components/interfaces/BranchManagement/DatabaseDiffPanel.tsx
index abcea9f4be7..013ceb3d4e6 100644
--- a/apps/studio/components/interfaces/BranchManagement/DatabaseDiffPanel.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/DatabaseDiffPanel.tsx
@@ -1,4 +1,4 @@
-import { CircleAlert, Database, Download, Loader2, Wind } from 'lucide-react'
+import { CircleAlertIcon, DatabaseIcon, DownloadIcon, Loader2Icon, WindIcon } from 'lucide-react'
import Link from 'next/link'
import { toast } from 'sonner'
import { Button, Card, CardContent, CardHeader, CardTitle, Skeleton } from 'ui'
@@ -24,7 +24,7 @@ export const DatabaseDiffPanel = ({
<div className="flex flex-1 min-h-0 flex-col">
<div className="flex flex-1 min-h-[400px] flex-col rounded-md border border-border bg-surface-100">
<div className="flex shrink-0 items-center gap-2 border-b border-border px-4 py-3">
- <Loader2
+ <Loader2Icon
size={16}
strokeWidth={1.5}
className="animate-spin text-foreground-muted"
@@ -43,7 +43,11 @@ export const DatabaseDiffPanel = ({
if (error)
return (
<div className="p-6 text-center">
- <CircleAlert size={32} strokeWidth={1.5} className="text-foreground-muted mx-auto mb-8" />
+ <CircleAlertIcon
+ size={32}
+ strokeWidth={1.5}
+ className="text-foreground-muted mx-auto mb-8"
+ />
<h3 className="mb-1">Error loading branch diff</h3>
<p className="text-sm text-foreground-light">
Please try again in a few minutes and contact support if the problem persists.
@@ -54,7 +58,7 @@ export const DatabaseDiffPanel = ({
if (!diffContent || diffContent.trim() === '') {
return (
<div className="p-6 text-center">
- <Wind size={32} strokeWidth={1.5} className="text-foreground-muted mx-auto mb-8" />
+ <WindIcon size={32} strokeWidth={1.5} className="text-foreground-muted mx-auto mb-8" />
<h3 className="mb-1">No changes detected between branches</h3>
<p className="text-sm text-foreground-light">
Any changes to your database schema will be shown here for review
@@ -71,13 +75,13 @@ export const DatabaseDiffPanel = ({
href={`/project/${currentBranchRef}/database/schema`}
className="flex items-center gap-2"
>
- <Database strokeWidth={1.5} size={16} className="text-foreground-muted" />
+ <DatabaseIcon strokeWidth={1.5} size={16} className="text-foreground-muted" />
Schema Changes
</Link>
</CardTitle>
<Button
size="tiny"
- icon={<Download strokeWidth={1.5} size={14} className="text-foreground-light" />}
+ icon={<DownloadIcon strokeWidth={1.5} size={14} className="text-foreground-light" />}
className="mt-0"
onClick={() => {
if (!diffContent) return
diff --git a/apps/studio/components/interfaces/BranchManagement/EdgeFunctionsDiffPanel.tsx b/apps/studio/components/interfaces/BranchManagement/EdgeFunctionsDiffPanel.tsx
index c1ff9154411..f975224c4ab 100644
--- a/apps/studio/components/interfaces/BranchManagement/EdgeFunctionsDiffPanel.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/EdgeFunctionsDiffPanel.tsx
@@ -1,5 +1,5 @@
import { IS_PLATFORM } from 'common'
-import { Circle, Code, Minus, Plus, Wind } from 'lucide-react'
+import { CircleIcon, CodeIcon, MinusIcon, PlusIcon, WindIcon } from 'lucide-react'
import Link from 'next/link'
import { useEffect, useMemo, useState } from 'react'
import { Card, CardContent, CardHeader, CardTitle, cn, Skeleton } from 'ui'
@@ -51,15 +51,15 @@ const getStatusColor = (status: FileStatus): string => {
const getStatusIcon = (status: FileStatus) => {
switch (status) {
case 'added':
- return Plus
+ return PlusIcon
case 'removed':
- return Minus
+ return MinusIcon
case 'modified':
- return Circle
+ return CircleIcon
case 'unchanged':
- return Circle
+ return CircleIcon
default:
- return Circle
+ return CircleIcon
}
}
@@ -112,7 +112,7 @@ const FunctionDiff = ({
href={`/project/${currentBranchRef}/functions/${functionSlug}${IS_PLATFORM ? '' : '/details'}`}
className="flex items-center gap-2"
>
- <Code strokeWidth={1.5} size={16} className="text-foreground-muted" />
+ <CodeIcon strokeWidth={1.5} size={16} className="text-foreground-muted" />
{functionSlug}
</Link>
</CardTitle>
@@ -176,7 +176,7 @@ export const EdgeFunctionsDiffPanel = ({
if (noChanges) {
return (
<div className="p-6 text-center">
- <Wind size={32} strokeWidth={1.5} className="text-foreground-muted mx-auto mb-8" />
+ <WindIcon size={32} strokeWidth={1.5} className="text-foreground-muted mx-auto mb-8" />
<h3 className="mb-1">No changes detected between branches</h3>
<p className="text-sm text-foreground-light">
Any changes to your edge functions will be shown here for review
diff --git a/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsx b/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsx
index 0f8cc13fe18..cce1a8d5e26 100644
--- a/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/EditBranchModal.tsx
@@ -1,7 +1,7 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { useDebounce } from '@uidotdev/usehooks'
import { useParams } from 'common'
-import { Check, Loader2 } from 'lucide-react'
+import { CheckIcon, Loader2Icon } from 'lucide-react'
import Image from 'next/image'
import { useCallback, useEffect, useState } from 'react'
import { useForm, useWatch } from 'react-hook-form'
@@ -297,9 +297,9 @@ export const EditBranchModal = ({ branch, visible, onClose }: EditBranchModalPro
<div className="absolute top-2.5 right-3 flex items-center gap-2">
{field.value ? (
isChecking ? (
- <Loader2 size={14} className="animate-spin" />
+ <Loader2Icon size={14} className="animate-spin" />
) : isGitBranchValid ? (
- <Check size={14} className="text-primary" strokeWidth={2} />
+ <CheckIcon size={14} className="text-primary" strokeWidth={2} />
) : null
) : null}
</div>
diff --git a/apps/studio/components/interfaces/BranchManagement/EmptyStates.tsx b/apps/studio/components/interfaces/BranchManagement/EmptyStates.tsx
index 829790aa5b5..f58df23720a 100644
--- a/apps/studio/components/interfaces/BranchManagement/EmptyStates.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/EmptyStates.tsx
@@ -1,4 +1,4 @@
-import { Github } from 'lucide-react'
+import { GithubIcon } from 'lucide-react'
import Link from 'next/link'
import { Button } from 'ui'
@@ -32,7 +32,7 @@ export const PullRequestsEmptyState = ({
</p>
<div className="flex items-center space-x-2 mt-4">
{hasGithubConnection ? (
- <Button variant="outline" asChild icon={<Github />}>
+ <Button variant="outline" asChild icon={<GithubIcon />}>
<a href={url} target="_blank" rel="noopener noreferrer">
Create pull request
</a>
diff --git a/apps/studio/components/interfaces/BranchManagement/Overview.tsx b/apps/studio/components/interfaces/BranchManagement/Overview.tsx
index b8bdedf306c..2b758089ab9 100644
--- a/apps/studio/components/interfaces/BranchManagement/Overview.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/Overview.tsx
@@ -3,16 +3,15 @@ import { useQueryClient } from '@tanstack/react-query'
import { useParams } from 'common'
import { partition } from 'lodash'
import {
- Clock,
- ExternalLink,
- Infinity,
- MoreVertical,
- Pencil,
- Redo,
- RefreshCw,
+ ClockIcon,
+ ExternalLinkIcon,
+ InfinityIcon,
+ MoreVerticalIcon,
+ PencilIcon,
+ RedoIcon,
RefreshCwIcon,
- Shield,
- Trash2,
+ ShieldIcon,
+ Trash2Icon,
} from 'lucide-react'
import Link from 'next/link'
import { useState } from 'react'
@@ -96,7 +95,7 @@ export const Overview = ({
isGithubConnected={isGithubConnected}
label={
<div className="flex items-center gap-x-2">
- <Shield size={14} strokeWidth={1.5} className="text-warning" />
+ <ShieldIcon size={14} strokeWidth={1.5} className="text-warning" />
{mainBranch.name}
</div>
}
@@ -108,7 +107,7 @@ export const Overview = ({
<div className="w-full flex items-center justify-between px-4 py-2.5 hover:bg-surface-100">
<Link href={`/project/${projectRef}`} className="text-foreground block w-full">
<div className="flex items-center gap-x-3">
- <Shield size={14} strokeWidth={1.5} className="text-warning" />
+ <ShieldIcon size={14} strokeWidth={1.5} className="text-warning" />
main
</div>
</Link>
@@ -344,7 +343,7 @@ const PreviewBranchActions = ({
<Button
variant="text"
aria-label="More branch actions"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
className="px-1"
onClick={(e) => e.stopPropagation()}
/>
@@ -372,7 +371,7 @@ const PreviewBranchActions = ({
},
}}
>
- <Pencil size={14} /> Edit branch
+ <PencilIcon size={14} /> Edit branch
</DropdownMenuItemTooltip>
{!branch.deletion_scheduled_at && (
@@ -397,7 +396,7 @@ const PreviewBranchActions = ({
},
}}
>
- <Redo size={14} /> {branch.git_branch ? 'Resync branch' : 'Rebase branch'}
+ <RedoIcon size={14} /> {branch.git_branch ? 'Resync branch' : 'Rebase branch'}
</DropdownMenuItemTooltip>
<DropdownMenuItemTooltip
className="gap-x-2"
@@ -419,7 +418,7 @@ const PreviewBranchActions = ({
},
}}
>
- <RefreshCw size={14} /> Reset branch
+ <RefreshCwIcon size={14} /> Reset branch
</DropdownMenuItemTooltip>
<DropdownMenuItemTooltip
className="gap-x-2"
@@ -447,11 +446,11 @@ const PreviewBranchActions = ({
>
{branch.persistent ? (
<>
- <Clock size={14} /> Switch to preview
+ <ClockIcon size={14} /> Switch to preview
</>
) : (
<>
- <Infinity size={14} className="scale-110" /> Switch to persistent
+ <InfinityIcon size={14} className="scale-110" /> Switch to persistent
</>
)}
</DropdownMenuItemTooltip>
@@ -467,7 +466,7 @@ const PreviewBranchActions = ({
href={generateCreatePullRequestURL(branch.git_branch)}
onClick={(e) => e.stopPropagation()}
>
- <ExternalLink size={14} /> Create pull request
+ <ExternalLinkIcon size={14} /> Create pull request
</a>
</DropdownMenuItem>
)}
@@ -494,7 +493,7 @@ const PreviewBranchActions = ({
},
}}
>
- <Clock size={14} /> Restore branch
+ <ClockIcon size={14} /> Restore branch
</DropdownMenuItemTooltip>
)}
@@ -514,7 +513,7 @@ const PreviewBranchActions = ({
},
}}
>
- <Trash2 size={14} /> Delete branch
+ <Trash2Icon size={14} /> Delete branch
</DropdownMenuItemTooltip>
</DropdownMenuContent>
</DropdownMenu>
@@ -610,7 +609,7 @@ const MainBranchActions = ({ branch, repo }: { branch: Branch; repo: string }) =
<DropdownMenuTrigger asChild>
<ButtonTooltip
variant="text"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
className="px-1"
tooltip={{ content: { side: 'bottom', text: 'More options' } }}
/>
@@ -619,7 +618,7 @@ const MainBranchActions = ({ branch, repo }: { branch: Branch; repo: string }) =
{repo ? (
<DropdownMenuItem asChild className="gap-x-2">
<Link href={`/project/${projectRef}/settings/integrations`}>
- <Pencil size={14} />
+ <PencilIcon size={14} />
Change production branch
</Link>
</DropdownMenuItem>
@@ -630,7 +629,7 @@ const MainBranchActions = ({ branch, repo }: { branch: Branch; repo: string }) =
onSelect={() => setShowEditBranchModal(true)}
onClick={() => setShowEditBranchModal(true)}
>
- <Pencil size={14} /> Edit Branch
+ <PencilIcon size={14} /> Edit Branch
</DropdownMenuItem>
)}
{branch.git_branch ? (
diff --git a/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx b/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx
index f15eea56966..85ba690eed1 100644
--- a/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx
@@ -1,5 +1,5 @@
import { groupBy } from 'lodash'
-import { ArrowLeft, ArrowRight } from 'lucide-react'
+import { ArrowLeftIcon, ArrowRightIcon } from 'lucide-react'
import { useState } from 'react'
import {
Button,
@@ -131,7 +131,7 @@ export const WorkflowLogs = ({ branch }: WorkflowLogsProps) => {
utcTimestamp={workflowRun.created_at}
/>
</div>
- {workflowRun.id !== projectRef && <ArrowRight size={16} />}
+ {workflowRun.id !== projectRef && <ArrowRightIcon size={16} />}
</button>
</li>
))}
@@ -147,7 +147,7 @@ export const WorkflowLogs = ({ branch }: WorkflowLogsProps) => {
<Button
onClick={() => setSelectedWorkflowRun(undefined)}
variant="text"
- icon={<ArrowLeft />}
+ icon={<ArrowLeftIcon />}
className="self-start"
>
Back to workflow runs
diff --git a/apps/studio/components/interfaces/BranchManagement/WorkflowLogsCard.tsx b/apps/studio/components/interfaces/BranchManagement/WorkflowLogsCard.tsx
index 30910105e64..29433b8b8e1 100644
--- a/apps/studio/components/interfaces/BranchManagement/WorkflowLogsCard.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/WorkflowLogsCard.tsx
@@ -1,4 +1,4 @@
-import { CircleDotDashed, GitMerge, X } from 'lucide-react'
+import { CircleDotDashedIcon, GitMergeIcon, XIcon } from 'lucide-react'
import { motion } from 'motion/react'
import { useEffect, useRef } from 'react'
import { Button, Card, CardContent, CardHeader, CardTitle } from 'ui'
@@ -58,10 +58,10 @@ export const WorkflowLogsCard = ({
animate={{ rotate: 360 }}
transition={{ duration: 2, repeat: Infinity, ease: 'linear' }}
>
- <CircleDotDashed size={16} strokeWidth={1.5} className="text-warning" />
+ <CircleDotDashedIcon size={16} strokeWidth={1.5} className="text-warning" />
</motion.div>
) : isSuccess ? (
- <GitMerge size={16} strokeWidth={1.5} className="text-primary" />
+ <GitMergeIcon size={16} strokeWidth={1.5} className="text-primary" />
) : null)
return (
@@ -85,7 +85,7 @@ export const WorkflowLogsCard = ({
<Button
variant="text"
size="tiny"
- icon={<X size={12} strokeWidth={1.5} />}
+ icon={<XIcon size={12} strokeWidth={1.5} />}
onClick={onClose}
className="h-5 w-5 p-0"
/>
diff --git a/apps/studio/components/interfaces/Branching/MergeRequest.tsx b/apps/studio/components/interfaces/Branching/MergeRequest.tsx
index 0c591620923..382f02a02e6 100644
--- a/apps/studio/components/interfaces/Branching/MergeRequest.tsx
+++ b/apps/studio/components/interfaces/Branching/MergeRequest.tsx
@@ -1,6 +1,6 @@
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
import dayjs from 'dayjs'
-import { GitBranchIcon, GitMerge, MoreVertical, Shield } from 'lucide-react'
+import { GitBranchIcon, GitMergeIcon, MoreVerticalIcon, ShieldIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useMemo } from 'react'
@@ -58,7 +58,7 @@ export const MergeTitle = () => {
<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">
- <Shield strokeWidth={1.5} size={14} className="text-warning" />
+ <ShieldIcon strokeWidth={1.5} size={14} className="text-warning" />
{mainBranch?.name || 'main'}
</code>
</Link>
@@ -195,7 +195,7 @@ export const MergeActions = ({
loading={isSubmitting}
disabled={isMergeDisabled}
onClick={onSelectMerge}
- icon={<GitMerge size={16} strokeWidth={1.5} className="text-primary" />}
+ icon={<GitMergeIcon size={16} strokeWidth={1.5} className="text-primary" />}
>
Merge branch
</ButtonTooltip>
@@ -204,7 +204,7 @@ export const MergeActions = ({
variant="primary"
loading={isSubmitting}
onClick={onSelectMerge}
- icon={<GitMerge size={16} strokeWidth={1.5} className="text-primary" />}
+ icon={<GitMergeIcon size={16} strokeWidth={1.5} className="text-primary" />}
>
Merge branch
</Button>
@@ -212,7 +212,7 @@ export const MergeActions = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button loading={isUpdating} className="px-1.5" icon={<MoreVertical />} />
+ <Button loading={isUpdating} className="px-1.5" icon={<MoreVerticalIcon />} />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-52">
<DropdownMenuItem
diff --git a/apps/studio/components/interfaces/Compute/ComputeEmptyState.tsx b/apps/studio/components/interfaces/Compute/ComputeEmptyState.tsx
index 8e4fd6ab374..c05f4787322 100644
--- a/apps/studio/components/interfaces/Compute/ComputeEmptyState.tsx
+++ b/apps/studio/components/interfaces/Compute/ComputeEmptyState.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { BoxPlus } from 'icons'
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import { EmptyStatePresentational } from 'ui-patterns/EmptyStatePresentational'
import { ButtonTooltip } from '@/components/ui/ButtonTooltip'
@@ -25,7 +25,7 @@ export const ComputeEmptyState = ({ onDeploy }: ComputeEmptyStateProps) => {
<ButtonTooltip
variant="primary"
size="tiny"
- icon={<Plus size={14} />}
+ icon={<PlusIcon size={14} />}
disabled={!canDeployInstances}
onClick={onDeploy}
tooltip={{
diff --git a/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceDetail.tsx b/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceDetail.tsx
index de4af2b45f3..e0801230137 100644
--- a/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceDetail.tsx
+++ b/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceDetail.tsx
@@ -1,6 +1,6 @@
import { useQuery } from '@tanstack/react-query'
import { useParams } from 'common'
-import { Container, Package } from 'lucide-react'
+import { ContainerIcon, PackageIcon } from 'lucide-react'
import Link from 'next/link'
import { parseAsStringEnum, useQueryState } from 'nuqs'
import {
@@ -107,7 +107,7 @@ export const ComputeInstanceDetail = () => {
<PageHeaderMeta className="px-0 xl:px-0">
<PageHeaderIcon>
<Card className="flex h-14 w-14 shrink-0 items-center justify-center">
- <Container className="h-5 w-5" />
+ <ContainerIcon className="h-5 w-5" />
</Card>
</PageHeaderIcon>
<PageHeaderSummary>
@@ -117,7 +117,7 @@ export const ComputeInstanceDetail = () => {
<RuntimeBadge runtime={instance.runtime} />
{instance.imageVersion !== undefined && (
<span className="flex items-center gap-2 text-foreground-light">
- <Package size={14} strokeWidth={1.5} className="text-foreground-lighter" />
+ <PackageIcon size={14} strokeWidth={1.5} className="text-foreground-lighter" />
Version {instance.imageVersion}
</span>
)}
diff --git a/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceLogsTab.tsx b/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceLogsTab.tsx
index 1e97ee1b8c0..9511426934b 100644
--- a/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceLogsTab.tsx
+++ b/apps/studio/components/interfaces/Compute/ComputeInstanceDetail/ComputeInstanceLogsTab.tsx
@@ -1,6 +1,6 @@
import { useQuery } from '@tanstack/react-query'
import { useParams } from 'common'
-import { RefreshCw, Search } from 'lucide-react'
+import { RefreshCwIcon, SearchIcon } from 'lucide-react'
import { useState } from 'react'
import { Button, InputGroup, InputGroupAddon, InputGroupInput } from 'ui'
import { GenericSkeletonLoader } from 'ui-patterns/ShimmeringLoader'
@@ -85,11 +85,11 @@ export const ComputeInstanceLogsTab = ({ instanceName, stream }: ComputeInstance
onChange={(event) => setMessage(event.target.value)}
/>
<InputGroupAddon>
- <Search />
+ <SearchIcon />
</InputGroupAddon>
</InputGroup>
</div>
- <Button icon={<RefreshCw />} loading={isFetching} onClick={() => refetch()}>
+ <Button icon={<RefreshCwIcon />} loading={isFetching} onClick={() => refetch()}>
Refresh
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Compute/ComputeInstanceSnippetTabs.tsx b/apps/studio/components/interfaces/Compute/ComputeInstanceSnippetTabs.tsx
index 5580a3eaaa7..cdeed729294 100644
--- a/apps/studio/components/interfaces/Compute/ComputeInstanceSnippetTabs.tsx
+++ b/apps/studio/components/interfaces/Compute/ComputeInstanceSnippetTabs.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { FileCode, Sparkles, Terminal, type LucideIcon } from 'lucide-react'
+import { FileCodeIcon, SparklesIcon, TerminalIcon, type LucideIcon } from 'lucide-react'
import { useState } from 'react'
import { cn } from 'ui'
@@ -28,12 +28,12 @@ const TAB_LABEL: Record<ComputeInstanceSnippetTab, string> = {
}
const TAB_ICON: Record<ComputeInstanceSnippetTab, LucideIcon> = {
- ai: Sparkles,
- config: FileCode,
- cli: Terminal,
- curl: Terminal,
- js: FileCode,
- python: FileCode,
+ ai: SparklesIcon,
+ config: FileCodeIcon,
+ cli: TerminalIcon,
+ curl: TerminalIcon,
+ js: FileCodeIcon,
+ python: FileCodeIcon,
}
interface ComputeInstanceSnippetTabsProps {
diff --git a/apps/studio/components/interfaces/Compute/ComputeList.tsx b/apps/studio/components/interfaces/Compute/ComputeList.tsx
index a30978575ac..ccc2e8ccb55 100644
--- a/apps/studio/components/interfaces/Compute/ComputeList.tsx
+++ b/apps/studio/components/interfaces/Compute/ComputeList.tsx
@@ -1,4 +1,4 @@
-import { ChevronLeft, ChevronRight, RefreshCw, Terminal } from 'lucide-react'
+import { ChevronLeftIcon, ChevronRightIcon, RefreshCwIcon, TerminalIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useState } from 'react'
@@ -136,10 +136,10 @@ export const ComputeList = ({
</Select>
<div className="flex items-center gap-3 md:ml-auto">
- <Button icon={<RefreshCw />} loading={isRefreshing} onClick={onRefresh}>
+ <Button icon={<RefreshCwIcon />} loading={isRefreshing} onClick={onRefresh}>
Refresh
</Button>
- <Button variant="primary" icon={<Terminal />} onClick={onDeploy}>
+ <Button variant="primary" icon={<TerminalIcon />} onClick={onDeploy}>
Deploy
</Button>
</div>
@@ -212,7 +212,7 @@ export const ComputeList = ({
</p>
<div className="flex items-center gap-x-2" aria-label="Pagination">
<ButtonTooltip
- icon={<ChevronLeft />}
+ icon={<ChevronLeftIcon />}
aria-label="Previous page"
size="tiny"
disabled={currentPage === 1}
@@ -228,7 +228,7 @@ export const ComputeList = ({
Page {currentPage} of {totalPages}
</span>
<ButtonTooltip
- icon={<ChevronRight />}
+ icon={<ChevronRightIcon />}
aria-label="Next page"
size="tiny"
disabled={currentPage >= totalPages}
diff --git a/apps/studio/components/interfaces/ConfigDrift/ConfigurationDriftPage.tsx b/apps/studio/components/interfaces/ConfigDrift/ConfigurationDriftPage.tsx
index ffc562c76aa..a51fee9a618 100644
--- a/apps/studio/components/interfaces/ConfigDrift/ConfigurationDriftPage.tsx
+++ b/apps/studio/components/interfaces/ConfigDrift/ConfigurationDriftPage.tsx
@@ -1,5 +1,11 @@
import { useParams } from 'common'
-import { ArrowRight, CheckCircle2, FileWarning, Github, Plus } from 'lucide-react'
+import {
+ ArrowRightIcon,
+ CheckCircle2Icon,
+ FileWarningIcon,
+ GithubIcon,
+ PlusIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { Button, Card, Skeleton } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -118,7 +124,7 @@ function ConfigurationDriftItem({ row }: { row: ConfigurationDriftRow }) {
type="button"
size="tiny"
className="w-full shrink-0 sm:w-auto"
- icon={<ArrowRight className="h-3.5 w-3.5" />}
+ icon={<ArrowRightIcon className="h-3.5 w-3.5" />}
>
<Link href={row.settingHref}>Open setting</Link>
</Button>
@@ -151,7 +157,7 @@ export function ConfigurationDriftResults({ rows }: { rows: ConfigurationDriftRo
<Card className="overflow-hidden">
<div className="flex items-start gap-3 border-b border-border px-4 py-4 sm:px-5">
<div className="flex items-start gap-3">
- <FileWarning className="mt-0.5 h-5 w-5 shrink-0 -translate-x-0.5 text-warning" />
+ <FileWarningIcon className="mt-0.5 h-5 w-5 shrink-0 -translate-x-0.5 text-warning" />
<div className="min-w-0">
<h2 className="text-sm font-medium">{issueSummary}</h2>
<p className="mt-1 text-sm text-foreground-light">
@@ -255,7 +261,7 @@ export function ConfigurationDriftPage() {
if (!isReady) {
return (
<EmptyStatePresentational
- icon={Github}
+ icon={GithubIcon}
title="Github integration required"
description={
<p className="mt-1 text-sm text-foreground-light">
@@ -265,7 +271,7 @@ export function ConfigurationDriftPage() {
}
>
<Link href={`/project/${projectRef}/settings/integrations`}>
- <Button size="tiny" variant="primary" icon={<Plus size={14} />}>
+ <Button size="tiny" variant="primary" icon={<PlusIcon size={14} />}>
Connect a GitHub repo
</Button>
</Link>
@@ -291,7 +297,7 @@ export function ConfigurationDriftPage() {
{comparableSettingCount === 0 ? (
<Card className="flex min-h-44 items-center justify-center px-6 text-center">
<div className="max-w-lg">
- <Github className="mx-auto mb-3 h-6 w-6 text-foreground-muted" />
+ <GithubIcon className="mx-auto mb-3 h-6 w-6 text-foreground-muted" />
<h2 className="text-sm font-medium">No comparable settings found</h2>
<p className="mt-1 text-sm text-foreground-light">
This branch does not define any supported, non-secret settings that can be compared
@@ -302,7 +308,7 @@ export function ConfigurationDriftPage() {
) : driftRows.length === 0 ? (
<Card className="flex min-h-44 items-center justify-center px-6 text-center">
<div className="max-w-lg">
- <CheckCircle2 className="mx-auto mb-3 h-6 w-6 text-primary" />
+ <CheckCircle2Icon className="mx-auto mb-3 h-6 w-6 text-primary" />
<h2 className="text-sm font-medium">All compared settings match</h2>
<p className="mt-1 text-sm text-foreground-light">
The current environment matches all {summary.matchedFields.length} comparable settings
diff --git a/apps/studio/components/interfaces/Connect/OrganizationSelector.tsx b/apps/studio/components/interfaces/Connect/OrganizationSelector.tsx
index ad010de0a53..08b3e32e9f7 100644
--- a/apps/studio/components/interfaces/Connect/OrganizationSelector.tsx
+++ b/apps/studio/components/interfaces/Connect/OrganizationSelector.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { useMemo, useState, type ReactNode } from 'react'
import { cn, Collapsible, CollapsibleContent, CollapsibleTrigger, SuccessCheck } from 'ui'
@@ -122,7 +122,7 @@ export const OrganizationSelector = ({
<Collapsible open={showMore} onOpenChange={setShowMore}>
<CollapsibleTrigger className={CONNECT_DISCLOSURE_TRIGGER_CLASSNAME}>
<span>{showMore ? 'Show fewer' : `Show ${overflowOrganizations.length} more`}</span>
- <ChevronDown className="size-3.5 transition-transform" />
+ <ChevronDownIcon className="size-3.5 transition-transform" />
</CollapsibleTrigger>
<CollapsibleContent className="data-closed:animate-collapsible-up data-open:animate-collapsible-down overflow-hidden">
<div className="space-y-2 pt-1">
@@ -147,7 +147,7 @@ export const OrganizationSelector = ({
<Collapsible>
<CollapsibleTrigger className={CONNECT_DISCLOSURE_TRIGGER_CLASSNAME}>
<span>Organizations that can't be linked</span>
- <ChevronDown className="size-3.5 transition-transform" />
+ <ChevronDownIcon className="size-3.5 transition-transform" />
</CollapsibleTrigger>
<CollapsibleContent className="data-closed:animate-collapsible-up data-open:animate-collapsible-down overflow-hidden">
<div className="space-y-2 pt-1">
diff --git a/apps/studio/components/interfaces/ConnectButton/Connect.Commands.tsx b/apps/studio/components/interfaces/ConnectButton/Connect.Commands.tsx
index c6a0082dbcd..2989e7e8415 100644
--- a/apps/studio/components/interfaces/ConnectButton/Connect.Commands.tsx
+++ b/apps/studio/components/interfaces/ConnectButton/Connect.Commands.tsx
@@ -1,4 +1,4 @@
-import { Plug } from 'lucide-react'
+import { PlugIcon } from 'lucide-react'
import { parseAsBoolean, parseAsString, useQueryState } from 'nuqs'
import type { ICommand } from 'ui-patterns/CommandMenu'
import { useRegisterCommands, useSetCommandMenuOpen } from 'ui-patterns/CommandMenu'
@@ -29,7 +29,7 @@ export function useConnectCommands() {
setShowConnect(true)
setIsOpen(false)
},
- icon: () => <Plug className="rotate-90" />,
+ icon: () => <PlugIcon className="rotate-90" />,
badge: () => <ShortcutBadge shortcutId={SHORTCUT_IDS.CONNECT_OPEN_SHEET} />,
},
{
@@ -40,7 +40,7 @@ export function useConnectCommands() {
setConnectTab('mcp')
setIsOpen(false)
},
- icon: () => <Plug className="rotate-90" />,
+ icon: () => <PlugIcon className="rotate-90" />,
},
] as ICommand[],
{
diff --git a/apps/studio/components/interfaces/ConnectButton/ConnectButton.tsx b/apps/studio/components/interfaces/ConnectButton/ConnectButton.tsx
index 03e0d836da0..afffac8590e 100644
--- a/apps/studio/components/interfaces/ConnectButton/ConnectButton.tsx
+++ b/apps/studio/components/interfaces/ConnectButton/ConnectButton.tsx
@@ -1,4 +1,4 @@
-import { Plug } from 'lucide-react'
+import { PlugIcon } from 'lucide-react'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { ComponentProps } from 'react'
import { Button, cn } from 'ui'
@@ -44,7 +44,7 @@ export const ConnectButton = ({
aria-label="Connect"
disabled={!isActiveHealthy}
className={cn('rounded-full', className)}
- icon={<Plug className="rotate-90" />}
+ icon={<PlugIcon className="rotate-90" />}
onClick={() => {
track('header_connect_button_clicked')
setConnectSheetSource('header_button')
@@ -62,7 +62,7 @@ export const ConnectButton = ({
variant={buttonVariant}
disabled
className={cn('rounded-full', className)}
- icon={<Plug className="rotate-90" />}
+ icon={<PlugIcon className="rotate-90" />}
onClick={() => {
track('header_connect_button_clicked')
setConnectSheetSource('header_button')
diff --git a/apps/studio/components/interfaces/ConnectSheet/ConnectConfigSection.tsx b/apps/studio/components/interfaces/ConnectSheet/ConnectConfigSection.tsx
index 740f39e6e9f..b38e057349e 100644
--- a/apps/studio/components/interfaces/ConnectSheet/ConnectConfigSection.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/ConnectConfigSection.tsx
@@ -1,4 +1,4 @@
-import { Check, ChevronsUpDown } from 'lucide-react'
+import { CheckIcon, ChevronsUpDownIcon } from 'lucide-react'
import { useState } from 'react'
import {
Button,
@@ -317,7 +317,7 @@ function ConnectCombobox({
aria-expanded={isOpen}
aria-controls={listboxElementId}
className={cn('w-full justify-between', !selectedOption && 'text-foreground-muted')}
- iconRight={<ChevronsUpDown className="h-4 w-4 shrink-0 opacity-50" strokeWidth={1} />}
+ iconRight={<ChevronsUpDownIcon className="h-4 w-4 shrink-0 opacity-50" strokeWidth={1} />}
>
<span className="flex min-w-0 items-center gap-x-2">
{showIcons && selectedOption?.icon && (
@@ -354,7 +354,7 @@ function ConnectCombobox({
}}
className="gap-x-2"
>
- <Check
+ <CheckIcon
className={cn(
'h-4 w-4 shrink-0',
option.value === value ? 'opacity-100' : 'opacity-0'
diff --git a/apps/studio/components/interfaces/ConnectSheet/ConnectModeButton.tsx b/apps/studio/components/interfaces/ConnectSheet/ConnectModeButton.tsx
index 83d117a1043..728e6052146 100644
--- a/apps/studio/components/interfaces/ConnectSheet/ConnectModeButton.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/ConnectModeButton.tsx
@@ -1,17 +1,24 @@
import { cva, type VariantProps } from 'class-variance-authority'
-import { Box, Cable, Database, Server, Sparkles, Warehouse } from 'lucide-react'
+import {
+ BoxIcon,
+ CableIcon,
+ DatabaseIcon,
+ ServerIcon,
+ SparklesIcon,
+ WarehouseIcon,
+} from 'lucide-react'
import type { ComponentPropsWithoutRef, ReactNode } from 'react'
import { cn } from 'ui'
import type { ConnectMode } from './Connect.types'
const MODE_ICONS: Record<string, ReactNode> = {
- framework: <Box size={16} strokeWidth={1.5} />,
- direct: <Database size={16} strokeWidth={1.5} />,
- orm: <Cable size={16} strokeWidth={1.5} />,
- mcp: <Sparkles size={16} strokeWidth={1.5} />,
- server: <Server size={16} strokeWidth={1.5} />,
- warehouse: <Warehouse size={16} strokeWidth={1.5} />,
+ framework: <BoxIcon size={16} strokeWidth={1.5} />,
+ direct: <DatabaseIcon size={16} strokeWidth={1.5} />,
+ orm: <CableIcon size={16} strokeWidth={1.5} />,
+ mcp: <SparklesIcon size={16} strokeWidth={1.5} />,
+ server: <ServerIcon size={16} strokeWidth={1.5} />,
+ warehouse: <WarehouseIcon size={16} strokeWidth={1.5} />,
}
/** Maps mode count → container-query breakpoint used when collapsing to a single row. */
diff --git a/apps/studio/components/interfaces/ConnectSheet/CopyPromptAdmonition.tsx b/apps/studio/components/interfaces/ConnectSheet/CopyPromptAdmonition.tsx
index 18ef8a63a1e..b20728d9868 100644
--- a/apps/studio/components/interfaces/ConnectSheet/CopyPromptAdmonition.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/CopyPromptAdmonition.tsx
@@ -1,4 +1,4 @@
-import { Check, Copy } from 'lucide-react'
+import { CheckIcon, CopyIcon } from 'lucide-react'
import { useEffect, useState, type RefObject } from 'react'
import { copyToClipboard } from 'ui'
@@ -140,7 +140,7 @@ export function CopyPromptButton({ stepsContainerRef, customPrompt }: CopyPrompt
return (
<>
<ButtonTooltip
- icon={showCopied ? <Check strokeWidth={2} className="text-primary" /> : <Copy />}
+ icon={showCopied ? <CheckIcon strokeWidth={2} className="text-primary" /> : <CopyIcon />}
onClick={() => {
const textToCopy = customPrompt ?? buildConnectPrompt(stepsContainerRef.current)
copyToClipboard(textToCopy, () => setShowCopied(true))
diff --git a/apps/studio/components/interfaces/ConnectSheet/content/server/common/SecretRow.tsx b/apps/studio/components/interfaces/ConnectSheet/content/server/common/SecretRow.tsx
index a2f36cf34cb..b30af64c57c 100644
--- a/apps/studio/components/interfaces/ConnectSheet/content/server/common/SecretRow.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/content/server/common/SecretRow.tsx
@@ -1,4 +1,4 @@
-import { Eye, EyeOff } from 'lucide-react'
+import { EyeIcon, EyeOffIcon } from 'lucide-react'
import { toast } from 'sonner'
import { Button, cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -43,7 +43,7 @@ export function SecretEnvRow({ secret }: SecretEnvRowProps) {
className={cn('px-1.5', isDisabled && 'opacity-50')}
aria-label={secret.isRevealed ? 'Hide secret key' : 'Reveal secret key'}
loading={secret.isRevealed && secret.isRevealing}
- icon={secret.isRevealed ? <EyeOff strokeWidth={2} /> : <Eye strokeWidth={2} />}
+ icon={secret.isRevealed ? <EyeOffIcon strokeWidth={2} /> : <EyeIcon strokeWidth={2} />}
onClick={onToggle}
disabled={isDisabled}
/>
diff --git a/apps/studio/components/interfaces/ConnectSheet/content/steps/direct-connection/content.tsx b/apps/studio/components/interfaces/ConnectSheet/content/steps/direct-connection/content.tsx
index d0f222cddf0..5d31ec6321b 100644
--- a/apps/studio/components/interfaces/ConnectSheet/content/steps/direct-connection/content.tsx
+++ b/apps/studio/components/interfaces/ConnectSheet/content/steps/direct-connection/content.tsx
@@ -1,4 +1,4 @@
-import { Check, KeyRound } from 'lucide-react'
+import { CheckIcon, KeyRoundIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import { cn } from 'ui'
import { CodeBlock } from 'ui-patterns/CodeBlock'
@@ -158,7 +158,7 @@ function DirectConnectionContent({ state, deploymentMode }: StepContentProps) {
{showResetInTitle && (
<ResetDbPasswordDialog
triggerLabel="Reset database password"
- triggerIcon={<KeyRound />}
+ triggerIcon={<KeyRoundIcon />}
onPasswordReset={setTemporaryDatabasePassword}
/>
)}
@@ -178,7 +178,7 @@ function DirectConnectionContent({ state, deploymentMode }: StepContentProps) {
</div>
{deploymentMode.isPlatform && temporaryDatabasePassword && (
<div className="flex items-center gap-2 border-t px-4 py-3 text-sm text-foreground-light">
- <Check size={16} className="text-primary shrink-0" />
+ <CheckIcon size={16} className="text-primary shrink-0" />
<span>New password shown until refresh.</span>
</div>
)}
diff --git a/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx b/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx
index 91adf38c2d2..3fbfb91b44d 100644
--- a/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/BackupItem.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Download } from 'lucide-react'
+import { DownloadIcon } from 'lucide-react'
import { Badge, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { TimestampInfo } from 'ui-patterns/TimestampInfo'
@@ -75,7 +75,7 @@ export const BackupItem = ({
{!backup.isPhysicalBackup && (
<ButtonTooltip
- icon={<Download />}
+ icon={<DownloadIcon />}
loading={isDownloading}
disabled={!canTriggerScheduledBackups || isDownloading}
onClick={() => {
diff --git a/apps/studio/components/interfaces/Database/Backups/BackupsEmpty.tsx b/apps/studio/components/interfaces/Database/Backups/BackupsEmpty.tsx
index f0dec4bbc8b..e93a6ad1228 100644
--- a/apps/studio/components/interfaces/Database/Backups/BackupsEmpty.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/BackupsEmpty.tsx
@@ -1,10 +1,10 @@
-import { DatabaseBackup } from 'lucide-react'
+import { DatabaseBackupIcon } from 'lucide-react'
import { EmptyStatePresentational } from 'ui-patterns/EmptyStatePresentational'
export const BackupsEmpty = () => {
return (
<EmptyStatePresentational
- icon={DatabaseBackup}
+ icon={DatabaseBackupIcon}
title="No backups yet"
description="Check again tomorrow."
/>
diff --git a/apps/studio/components/interfaces/Database/Backups/BackupsList.tsx b/apps/studio/components/interfaces/Database/Backups/BackupsList.tsx
index 46075e4e997..f5ad3f5b7cd 100644
--- a/apps/studio/components/interfaces/Database/Backups/BackupsList.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/BackupsList.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { Clock } from 'lucide-react'
+import { ClockIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useState } from 'react'
import { toast } from 'sonner'
@@ -63,7 +63,7 @@ export const BackupsList = () => {
addon="pitr"
source="backups"
featureProposition="have up to 7 days of scheduled backups"
- icon={<Clock size={20} />}
+ icon={<ClockIcon size={20} />}
primaryText="Free Plan does not include project backups."
secondaryText="Upgrade to the Pro Plan for up to 7 days of scheduled backups."
buttonText="Upgrade"
diff --git a/apps/studio/components/interfaces/Database/Backups/PITR/PITRForm.tsx b/apps/studio/components/interfaces/Database/Backups/PITR/PITRForm.tsx
index e73b912a5aa..2a1dedc48a2 100644
--- a/apps/studio/components/interfaces/Database/Backups/PITR/PITRForm.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/PITR/PITRForm.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { HelpCircle } from 'lucide-react'
+import { HelpCircleIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import { Calendar, cn } from 'ui'
@@ -165,7 +165,7 @@ export function PITRForm({
<InformationBox
defaultVisibility
hideCollapse
- icon={<HelpCircle size={14} strokeWidth={2} />}
+ icon={<HelpCircleIcon size={14} strokeWidth={2} />}
title="Select a date which you'd like to restore your database to"
/>
</div>
diff --git a/apps/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx b/apps/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx
index 766a10cfe85..b07101a837d 100644
--- a/apps/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Calendar } from 'lucide-react'
+import { CalendarIcon } from 'lucide-react'
import Link from 'next/link'
import { getPITRRetentionDuration } from './PITR.utils'
@@ -48,7 +48,7 @@ export const PITRNotice = () => {
>
<div className="flex p-6 space-x-6">
<div className="flex items-center justify-center w-10 h-10 rounded-sm bg-border-strong">
- <Calendar strokeWidth={2} />
+ <CalendarIcon strokeWidth={2} />
</div>
<div className="space-y-2">
<p className="text-sm">Recovery retention period</p>
diff --git a/apps/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx b/apps/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx
index ccee55b411c..8cd5e7cac37 100644
--- a/apps/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { AlertCircle } from 'lucide-react'
+import { AlertCircleIcon } from 'lucide-react'
import { TimezoneSelection } from './TimezoneSelection'
import { ButtonTooltip } from '@/components/ui/ButtonTooltip'
@@ -53,7 +53,7 @@ const PITRStatus = ({
footer={
<div className="flex items-center justify-between p-6">
<div className="flex items-center space-x-4">
- <AlertCircle className="text-foreground-light" size={18} strokeWidth={1.5} />
+ <AlertCircleIcon className="text-foreground-light" size={18} strokeWidth={1.5} />
<span className="text-foreground-light text-sm">
You'll be able to pick the right date and time when you begin
</span>
diff --git a/apps/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx b/apps/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx
index dcf5db90281..d8ee3bd67fc 100644
--- a/apps/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx
@@ -1,6 +1,6 @@
import dayjs from 'dayjs'
import { isNaN, noop } from 'lodash'
-import { Clock } from 'lucide-react'
+import { ClockIcon } from 'lucide-react'
import { ChangeEvent, useEffect, useState } from 'react'
import { Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -90,7 +90,7 @@ const TimeInput = ({ defaultTime, minimumTime, maximumTime, onChange = noop }: T
}`,
].join(' ')}
>
- <Clock className="text-foreground-light" size={18} strokeWidth={1.5} />
+ <ClockIcon className="text-foreground-light" size={18} strokeWidth={1.5} />
<Tooltip>
<TooltipTrigger className="w-1/4" tabIndex={-1}>
<input
diff --git a/apps/studio/components/interfaces/Database/Backups/PITR/TimezoneSelection.tsx b/apps/studio/components/interfaces/Database/Backups/PITR/TimezoneSelection.tsx
index 5b0cd633a58..8ceb499439a 100644
--- a/apps/studio/components/interfaces/Database/Backups/PITR/TimezoneSelection.tsx
+++ b/apps/studio/components/interfaces/Database/Backups/PITR/TimezoneSelection.tsx
@@ -1,5 +1,5 @@
import type { Dayjs } from 'dayjs'
-import { CheckIcon, Globe } from 'lucide-react'
+import { CheckIcon, GlobeIcon } from 'lucide-react'
import { useId, useState } from 'react'
import {
cn,
@@ -44,7 +44,7 @@ export const TimezoneSelection = ({
size="small"
>
<span className="flex min-w-0 items-center gap-2">
- <Globe aria-hidden="true" className="h-4 w-4 shrink-0" />
+ <GlobeIcon aria-hidden="true" className="h-4 w-4 shrink-0" />
<span className="truncate">{getTimezoneLabel(selectedTimezone, date)}</span>
</span>
</ComboboxTrigger>
diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx
index c68bdb20ef1..173a134e03c 100644
--- a/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx
+++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx
@@ -13,7 +13,7 @@ import {
verticalListSortingStrategy,
} from '@dnd-kit/sortable'
import { zodResolver } from '@hookform/resolvers/zod'
-import { AlertCircle, ExternalLink, Plus } from 'lucide-react'
+import { AlertCircleIcon, ExternalLinkIcon, PlusIcon } from 'lucide-react'
import Link from 'next/link'
import { useEffect, useRef } from 'react'
import { useFieldArray, useForm } from 'react-hook-form'
@@ -184,14 +184,14 @@ const CreateEnumeratedTypeSidePanel = ({
Values
</span>
<Alert>
- <AlertCircle strokeWidth={1.5} />
+ <AlertCircleIcon strokeWidth={1.5} />
<AlertTitle>After creation, values cannot be deleted or sorted</AlertTitle>
<AlertDescription>
<p className="leading-normal! track">
You will need to delete and recreate the enumerated type with the updated values
instead.
</p>
- <Button asChild icon={<ExternalLink strokeWidth={1.5} />} className="mt-2">
+ <Button asChild icon={<ExternalLinkIcon strokeWidth={1.5} />} className="mt-2">
<Link
href="https://www.postgresql.org/message-id/21012.1459434338%40sss.pgh.pa.us"
target="_blank"
@@ -223,7 +223,7 @@ const CreateEnumeratedTypeSidePanel = ({
</DndContext>
</div>
- <Button icon={<Plus strokeWidth={1.5} />} onClick={() => append({ value: '' })}>
+ <Button icon={<PlusIcon strokeWidth={1.5} />} onClick={() => append({ value: '' })}>
Add value
</Button>
diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/EditEnumeratedTypeSidePanel.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/EditEnumeratedTypeSidePanel.tsx
index dfb3f2a0843..a0b1c28ba92 100644
--- a/apps/studio/components/interfaces/Database/EnumeratedTypes/EditEnumeratedTypeSidePanel.tsx
+++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/EditEnumeratedTypeSidePanel.tsx
@@ -13,7 +13,7 @@ import {
verticalListSortingStrategy,
} from '@dnd-kit/sortable'
import { zodResolver } from '@hookform/resolvers/zod'
-import { AlertCircle, ExternalLink, Plus } from 'lucide-react'
+import { AlertCircleIcon, ExternalLinkIcon, PlusIcon } from 'lucide-react'
import Link from 'next/link'
import { useEffect, useRef } from 'react'
import { useFieldArray, useForm } from 'react-hook-form'
@@ -219,14 +219,14 @@ const EditEnumeratedTypeSidePanel = ({
Values
</span>
<Alert>
- <AlertCircle strokeWidth={1.5} />
+ <AlertCircleIcon strokeWidth={1.5} />
<AlertTitle>Existing values cannot be deleted or sorted</AlertTitle>
<AlertDescription>
<p className="leading-normal! track">
You will need to delete and recreate the enumerated type with the updated values
instead.
</p>
- <Button asChild icon={<ExternalLink strokeWidth={1.5} />} className="mt-2">
+ <Button asChild icon={<ExternalLinkIcon strokeWidth={1.5} />} className="mt-2">
<Link
href="https://www.postgresql.org/message-id/21012.1459434338%40sss.pgh.pa.us"
target="_blank"
@@ -259,7 +259,7 @@ const EditEnumeratedTypeSidePanel = ({
</div>
<Button
- icon={<Plus strokeWidth={1.5} />}
+ icon={<PlusIcon strokeWidth={1.5} />}
onClick={() => append({ isNew: true, originalValue: '', updatedValue: '' })}
>
Add value
diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx
index 094838ff1b5..5abdfa39ad1 100644
--- a/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx
+++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx
@@ -1,6 +1,6 @@
import { useSortable } from '@dnd-kit/sortable'
import { CSS } from '@dnd-kit/utilities'
-import { GripVertical, Trash } from 'lucide-react'
+import { GripVerticalIcon, TrashIcon } from 'lucide-react'
import type { Control, FieldPath, FieldValues } from 'react-hook-form'
import {
Button,
@@ -66,7 +66,7 @@ const EnumeratedTypeValueRow = <TFieldValues extends FieldValues>({
tabIndex={isDisabled ? -1 : 0}
disabled={isDisabled}
>
- <GripVertical size={16} strokeWidth={1.5} />
+ <GripVerticalIcon size={16} strokeWidth={1.5} />
</button>
<Input {...inputField} className="w-full" />
<Tooltip>
@@ -74,7 +74,7 @@ const EnumeratedTypeValueRow = <TFieldValues extends FieldValues>({
<Button
size="small"
disabled={isDisabled}
- icon={<Trash strokeWidth={1.5} size={16} />}
+ icon={<TrashIcon strokeWidth={1.5} size={16} />}
className="px-2"
onClick={() => onRemoveValue()}
aria-label="Remove value"
diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsx
index 07abc181f0f..0c547eea495 100644
--- a/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsx
+++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/EnumeratedTypes.tsx
@@ -1,4 +1,4 @@
-import { Edit, MoreVertical, Search, Trash } from 'lucide-react'
+import { EditIcon, MoreVerticalIcon, SearchIcon, TrashIcon } from 'lucide-react'
import { parseAsBoolean, parseAsString, useQueryState } from 'nuqs'
import { useEffect, useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -159,7 +159,7 @@ export const EnumeratedTypes = () => {
onChange={(e) => setSearch(e.target.value)}
onKeyDown={onSearchInputEscape(search, setSearch)}
placeholder="Search for a type"
- icon={<Search />}
+ icon={<SearchIcon />}
/>
</div>
@@ -237,7 +237,7 @@ export const EnumeratedTypes = () => {
<DropdownMenuTrigger asChild>
<Button
className="px-1"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
aria-label={`${type.name} actions`}
/>
</DropdownMenuTrigger>
@@ -249,14 +249,14 @@ export const EnumeratedTypes = () => {
className="space-x-2"
onClick={() => setSelectedTypeIdToEdit(type.id.toString())}
>
- <Edit size={14} />
+ <EditIcon size={14} />
<p>Update type</p>
</DropdownMenuItem>
<DropdownMenuItem
className="space-x-2"
onClick={() => setSelectedTypeIdToDelete(type.id.toString())}
>
- <Trash size={14} />
+ <TrashIcon size={14} />
<p>Delete type</p>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Database/Extensions/ExtensionRow.tsx b/apps/studio/components/interfaces/Database/Extensions/ExtensionRow.tsx
index 2441c6da39a..bdbc46e1006 100644
--- a/apps/studio/components/interfaces/Database/Extensions/ExtensionRow.tsx
+++ b/apps/studio/components/interfaces/Database/Extensions/ExtensionRow.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Book, Github, Loader2 } from 'lucide-react'
+import { BookIcon, GithubIcon, Loader2Icon } from 'lucide-react'
import Link from 'next/link'
import { useState } from 'react'
import { extensions } from 'shared-data'
@@ -129,7 +129,7 @@ export const ExtensionRow = ({ extension }: ExtensionRowProps) => {
<TableCell>
<div className="flex gap-2 items-center">
{extensionMeta?.github_url && (
- <Button asChild icon={<Github />} className="rounded-full">
+ <Button asChild icon={<GithubIcon />} className="rounded-full">
<a
target="_blank"
rel="noreferrer"
@@ -141,7 +141,7 @@ export const ExtensionRow = ({ extension }: ExtensionRowProps) => {
</Button>
)}
{docsUrl !== undefined && (
- <Button asChild icon={<Book />} className="rounded-full">
+ <Button asChild icon={<BookIcon />} className="rounded-full">
<a
target="_blank"
rel="noreferrer"
@@ -162,7 +162,7 @@ export const ExtensionRow = ({ extension }: ExtensionRowProps) => {
<TableCell className="w-20 relative">
<div className="absolute top-0 right-0 left-0 bottom-0 flex items-center justify-center border-l">
{isDisabling ? (
- <Loader2 className="animate-spin" size={16} />
+ <Loader2Icon className="animate-spin" size={16} />
) : (
<Tooltip>
<TooltipTrigger asChild>
diff --git a/apps/studio/components/interfaces/Database/Extensions/Extensions.tsx b/apps/studio/components/interfaces/Database/Extensions/Extensions.tsx
index 6ebb730030f..ead81fc1142 100644
--- a/apps/studio/components/interfaces/Database/Extensions/Extensions.tsx
+++ b/apps/studio/components/interfaces/Database/Extensions/Extensions.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import { isNull, partition } from 'lodash'
-import { AlertCircle, Search } from 'lucide-react'
+import { AlertCircleIcon, SearchIcon } from 'lucide-react'
import { useEffect, useRef, useState } from 'react'
import {
Card,
@@ -90,14 +90,14 @@ export const Extensions = () => {
onKeyDown={onSearchInputEscape(filterString, setFilterString)}
/>
<InputGroupAddon>
- <Search />
+ <SearchIcon />
</InputGroupAddon>
</InputGroup>
</div>
{isPermissionsLoaded && !canUpdateExtensions && (
<InformationBox
- icon={<AlertCircle className="text-foreground-light" size={18} strokeWidth={2} />}
+ icon={<AlertCircleIcon className="text-foreground-light" size={18} strokeWidth={2} />}
title="You need additional permissions to update database extensions"
/>
)}
diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction/FunctionEditor.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction/FunctionEditor.tsx
index 44011b6a0a6..b68f4e17361 100644
--- a/apps/studio/components/interfaces/Database/Functions/CreateFunction/FunctionEditor.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction/FunctionEditor.tsx
@@ -1,4 +1,4 @@
-import { Maximize2, Minimize2 } from 'lucide-react'
+import { Maximize2Icon, Minimize2Icon } from 'lucide-react'
import { Button, cn, FormControl, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { CodeEditor } from '@/components/ui/CodeEditor/CodeEditor'
@@ -43,7 +43,7 @@ export const FunctionEditor = ({
'transition z-50'
)}
onClick={() => setFocused(!focused)}
- icon={focused ? <Minimize2 /> : <Maximize2 />}
+ icon={focused ? <Minimize2Icon /> : <Maximize2Icon />}
aria-label={focused ? 'Minimize editor' : 'Maximize editor'}
// Tooltip repeats the label; screen readers would read it twice
aria-describedby={undefined}
diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
index 98c26629d89..dae8887e7d6 100644
--- a/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction/index.tsx
@@ -1,7 +1,7 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { acceptUntrustedSql, untrustedSql } from '@supabase/pg-meta/src/pg-format'
import { isEmpty, isNull, keyBy, mapValues, partition } from 'lodash'
-import { Plus, Trash } from 'lucide-react'
+import { PlusIcon, TrashIcon } from 'lucide-react'
import { useEffect, useMemo, useState } from 'react'
import { SubmitHandler, useFieldArray, useForm, useWatch } from 'react-hook-form'
import { toast } from 'sonner'
@@ -543,7 +543,7 @@ const FormFieldArgs = ({ readonly }: FormFieldConfigParamsProps) => {
<Tooltip>
<TooltipTrigger asChild>
<Button
- icon={<Trash size={12} />}
+ icon={<TrashIcon size={12} />}
onClick={() => remove(index)}
className="h-[34px] w-[34px]"
aria-label="Remove argument"
@@ -560,7 +560,7 @@ const FormFieldArgs = ({ readonly }: FormFieldConfigParamsProps) => {
{!readonly && (
<Button
- icon={<Plus size={12} />}
+ icon={<PlusIcon size={12} />}
onClick={() => append({ name: '', type: 'integer' })}
disabled={readonly}
>
diff --git a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
index 37b98390db8..34eac0c4c6a 100644
--- a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx
@@ -1,7 +1,14 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import { noop } from 'lodash'
-import { Copy, Edit, Edit2, FileText, MoreVertical, Trash } from 'lucide-react'
+import {
+ CopyIcon,
+ Edit2Icon,
+ EditIcon,
+ FileTextIcon,
+ MoreVerticalIcon,
+ TrashIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useMemo } from 'react'
@@ -161,7 +168,7 @@ export const FunctionList = ({
<Button
aria-label={`${x.name} actions`}
className="px-1"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
/>
</DropdownMenuTrigger>
</TooltipTrigger>
@@ -178,14 +185,14 @@ export const FunctionList = ({
)
}
>
- <FileText size={14} />
+ <FileTextIcon size={14} />
<p>Client API docs</p>
</DropdownMenuItem>
<DropdownMenuSeparator />
</>
)}
<DropdownMenuItem className="space-x-2" onClick={() => editFunction(x)}>
- <Edit2 size={14} />
+ <Edit2Icon size={14} />
<p>Edit function</p>
</DropdownMenuItem>
<DropdownMenuItem
@@ -218,19 +225,19 @@ export const FunctionList = ({
})
}}
>
- <Edit size={14} />
+ <EditIcon size={14} />
<p>Edit function with Assistant</p>
</DropdownMenuItem>
<DropdownMenuItem
className="space-x-2"
onClick={() => duplicateFunction(x)}
>
- <Copy size={14} />
+ <CopyIcon size={14} />
<p>Duplicate function</p>
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem className="space-x-2" onClick={() => deleteFunction(x)}>
- <Trash size={14} className="text-destructive" />
+ <TrashIcon size={14} className="text-destructive" />
<p>Delete function</p>
</DropdownMenuItem>
</DropdownMenuContent>
@@ -238,7 +245,7 @@ export const FunctionList = ({
) : (
<ButtonTooltip
disabled
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
className="px-1"
tooltip={{
content: {
diff --git a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
index 11621549b18..357ac3b4b7e 100644
--- a/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
+++ b/apps/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx
@@ -1,6 +1,6 @@
import { safeSql } from '@supabase/pg-meta'
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Database, Plus, Search } from 'lucide-react'
+import { DatabaseIcon, PlusIcon, SearchIcon } from 'lucide-react'
import { parseAsBoolean, parseAsJson, parseAsString, useQueryState } from 'nuqs'
import { useEffect, useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -275,7 +275,7 @@ export const FunctionsList = () => {
ref={searchInputRef}
placeholder="Search for a function"
size="tiny"
- icon={<Search />}
+ icon={<SearchIcon />}
value={filterString}
className="w-full lg:w-52"
onChange={(e) => setFilterString(e.target.value)}
@@ -333,7 +333,7 @@ export const FunctionsList = () => {
{functions.length === 0 ? (
<>
<EmptyStatePresentational
- icon={Database}
+ icon={DatabaseIcon}
title="Add your first function"
description="PostgreSQL functions are a set of SQL and procedural commands such as declarations, assignments, loops, or flow-of-control."
>
@@ -439,7 +439,7 @@ const CreateFunctionButton = ({
variant={variant}
className="grow"
onClick={() => createFunction()}
- icon={hideIcon ? null : <Plus />}
+ icon={hideIcon ? null : <PlusIcon />}
>
New function
</Button>
@@ -451,7 +451,7 @@ const CreateFunctionButton = ({
disabled
variant={variant}
className="grow"
- icon={hideIcon ? null : <Plus />}
+ icon={hideIcon ? null : <PlusIcon />}
tooltip={{
content: {
side: 'bottom',
diff --git a/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx b/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
index fb2d9a56d14..e21635bb6aa 100644
--- a/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
+++ b/apps/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import { includes } from 'lodash'
-import { Edit3, MoreVertical, Trash } from 'lucide-react'
+import { Edit3Icon, MoreVerticalIcon, TrashIcon } from 'lucide-react'
import Image from 'next/legacy/image'
import { parseAsString, useQueryState } from 'nuqs'
import {
@@ -105,7 +105,7 @@ export const HookList = ({ schema, filterString }: HookListProps) => {
<DropdownMenuTrigger asChild>
<Button
className="px-1"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
aria-label={`${x.name} actions`}
// Tooltip repeats the label; screen readers would read it twice
aria-describedby={undefined}
@@ -121,7 +121,7 @@ export const HookList = ({ schema, filterString }: HookListProps) => {
className="space-x-2"
onClick={() => setSelectedHookIdToEdit(x.id.toString())}
>
- <Edit3 size="14" />
+ <Edit3Icon size="14" />
<p>Edit hook</p>
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -129,7 +129,7 @@ export const HookList = ({ schema, filterString }: HookListProps) => {
className="space-x-2"
onClick={() => setSelectedHookIdToDelete(x.id.toString())}
>
- <Trash stroke="red" size="14" />
+ <TrashIcon stroke="red" size="14" />
<p>Delete hook</p>
</DropdownMenuItem>
</>
@@ -139,7 +139,7 @@ export const HookList = ({ schema, filterString }: HookListProps) => {
<ButtonTooltip
disabled
className="px-1"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
tooltip={{
content: {
side: 'bottom',
diff --git a/apps/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx b/apps/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx
index ae76b5e6344..3d9be70524b 100644
--- a/apps/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx
+++ b/apps/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { includes, map as lodashMap, uniqBy } from 'lodash'
-import { Search } from 'lucide-react'
+import { SearchIcon } from 'lucide-react'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useRef, useState } from 'react'
import { InputGroup, InputGroupAddon, InputGroupInput } from 'ui'
@@ -76,7 +76,7 @@ export const HooksList = () => {
onKeyDown={onSearchInputEscape(filterString, setFilterString)}
/>
<InputGroupAddon>
- <Search />
+ <SearchIcon />
</InputGroupAddon>
</InputGroup>
<div className="flex items-center gap-x-2">
diff --git a/apps/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx b/apps/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx
index e894725a7b7..99fa259f455 100644
--- a/apps/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx
+++ b/apps/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx
@@ -1,5 +1,5 @@
import { zodResolver } from '@hookform/resolvers/zod'
-import { Check, ChevronsUpDown, Loader2 } from 'lucide-react'
+import { CheckIcon, ChevronsUpDownIcon, Loader2Icon } from 'lucide-react'
import Link from 'next/link'
import { Fragment, useEffect, useMemo, useState } from 'react'
import { useForm, useWatch } from 'react-hook-form'
@@ -213,7 +213,7 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp
size={'medium'}
className={`w-full [&>span]:w-full text-left`}
iconRight={
- <ChevronsUpDown
+ <ChevronsUpDownIcon
className="text-foreground-muted"
strokeWidth={2}
size={14}
@@ -257,7 +257,7 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp
setSearchTerm('')
}}
>
- <Check
+ <CheckIcon
className={cn(
'text-primary',
schema.name === field.value ? 'opacity-100' : 'opacity-0'
@@ -311,7 +311,7 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp
selectedEntity === '' && 'text-foreground-lighter'
)}
iconRight={
- <ChevronsUpDown
+ <ChevronsUpDownIcon
className="text-foreground-muted"
strokeWidth={2}
size={14}
@@ -349,7 +349,7 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp
<CommandEmpty>
{isLoadingEntities ? (
<div className="flex items-center gap-2 text-center justify-center">
- <Loader2 size={12} className="animate-spin" />
+ <Loader2Icon size={12} className="animate-spin" />
Loading...
</div>
) : (
@@ -368,7 +368,7 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp
form.setValue('type', INDEX_TYPES[0].value)
}}
>
- <Check
+ <CheckIcon
className={cn(
'text-primary',
entity.name === field.value ? 'opacity-100' : 'opacity-0'
diff --git a/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx b/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx
index 75a971a5110..23f656a19f7 100644
--- a/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx
+++ b/apps/studio/components/interfaces/Database/Indexes/Indexes.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { sortBy } from 'lodash'
-import { AlertCircle, Search, Trash } from 'lucide-react'
+import { AlertCircleIcon, SearchIcon, TrashIcon } from 'lucide-react'
import { parseAsBoolean, parseAsString, useQueryState } from 'nuqs'
import { useEffect, useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -156,7 +156,7 @@ export const Indexes = () => {
{isLoadingSchemas && <ShimmeringLoader className="w-[260px]" />}
{isErrorSchemas && (
<div className="w-[260px] text-foreground-light text-sm border px-3 py-1.5 rounded-sm flex items-center space-x-2">
- <AlertCircle strokeWidth={2} size={16} />
+ <AlertCircleIcon strokeWidth={2} size={16} />
<p>Failed to load schemas</p>
</div>
)}
@@ -186,7 +186,7 @@ export const Indexes = () => {
onChange={(e) => setSearch(e.target.value)}
onKeyDown={onSearchInputEscape(search, setSearch)}
placeholder="Search for an index"
- icon={<Search />}
+ icon={<SearchIcon />}
/>
{!isSchemaLocked && (
@@ -267,7 +267,7 @@ export const Indexes = () => {
aria-label="Delete index"
variant="text"
className="px-1"
- icon={<Trash />}
+ icon={<TrashIcon />}
onClick={() => setDeleteIndexId(index.name)}
/>
</TooltipTrigger>
diff --git a/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx b/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx
index 63c47158f3d..4abf0afee9c 100644
--- a/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx
+++ b/apps/studio/components/interfaces/Database/Migrations/Migrations.tsx
@@ -1,4 +1,4 @@
-import { Search } from 'lucide-react'
+import { SearchIcon } from 'lucide-react'
import { useRef, useState } from 'react'
import {
Button,
@@ -96,7 +96,7 @@ export const Migrations = () => {
value={search}
className="w-full lg:w-52"
onChange={(e) => setSearch(e.target.value)}
- icon={<Search />}
+ icon={<SearchIcon />}
/>
<Card>
<Table>
diff --git a/apps/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx b/apps/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx
index 8a6e8ec769b..ef54b8eeda7 100644
--- a/apps/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx
+++ b/apps/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Terminal } from 'lucide-react'
+import { TerminalIcon } from 'lucide-react'
import { Card, CardContent, CardHeader, CardTitle } from 'ui'
import { EmptyStatePresentational } from 'ui-patterns/EmptyStatePresentational'
@@ -46,7 +46,7 @@ export const MigrationsEmptyState = () => {
return (
<EmptyStatePresentational
- icon={Terminal}
+ icon={TerminalIcon}
title="Run your first migration"
description="Create and run your first migration using the Supabase CLI."
className="gap-y-6"
diff --git a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/LockedQuerySection.tsx b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/LockedQuerySection.tsx
index fea81efb341..dbbf92b5a0d 100644
--- a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/LockedQuerySection.tsx
+++ b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/LockedQuerySection.tsx
@@ -1,5 +1,5 @@
import type { PGPolicy } from '@supabase/pg-meta'
-import { Lock } from 'lucide-react'
+import { LockIcon } from 'lucide-react'
interface LockedCreateQuerySection {
schema: string
@@ -22,7 +22,7 @@ export const LockedCreateQuerySection = ({
<div className="flex items-center justify-between px-5 mb-1">
<div className="flex items-center">
<div className="pl-0.5 pr-5 flex items-center justify-center">
- <Lock size={14} className="text-foreground-lighter" />
+ <LockIcon size={14} className="text-foreground-lighter" />
</div>
<p className="text-xs text-foreground-lighter font-mono uppercase">
Use options above to edit
diff --git a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx
index 892522ff53d..eecc4bb6270 100644
--- a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx
+++ b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyDetailsV2.tsx
@@ -5,7 +5,7 @@ import {
type SafeSqlFragment,
} from '@supabase/pg-meta/src/pg-format'
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Check, ChevronsUpDown } from 'lucide-react'
+import { CheckIcon, ChevronsUpDownIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { UseFormReturn } from 'react-hook-form'
import {
@@ -160,7 +160,7 @@ export const PolicyDetailsV2 = ({
disabled={!canUpdatePolicies}
className="w-full [&>span]:w-full h-[38px] text-sm"
iconRight={
- <ChevronsUpDown
+ <ChevronsUpDownIcon
className="text-foreground-muted"
strokeWidth={2}
size={14}
@@ -201,7 +201,7 @@ export const PolicyDetailsV2 = ({
}}
>
<span className="flex items-center gap-1.5">
- {field.value === table.name ? <Check size={13} /> : ''}
+ {field.value === table.name ? <CheckIcon size={13} /> : ''}
{table.name}
</span>
</CommandItem>
diff --git a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyEditorPanelHeader.tsx b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyEditorPanelHeader.tsx
index debf11e9d9d..f2c132b9863 100644
--- a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyEditorPanelHeader.tsx
+++ b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyEditorPanelHeader.tsx
@@ -1,5 +1,5 @@
import type { PGPolicy } from '@supabase/pg-meta'
-import { ChevronDown, PanelLeftClose, PanelRightClose, X } from 'lucide-react'
+import { ChevronDownIcon, PanelLeftCloseIcon, PanelRightCloseIcon, XIcon } from 'lucide-react'
import { useState } from 'react'
import {
cn,
@@ -35,7 +35,7 @@ export const PolicyEditorPanelHeader = ({
'mt-1.5'
)}
>
- <X className="h-3 w-3" />
+ <XIcon className="h-3 w-3" />
<span className="sr-only">Close</span>
</SheetClose>
<div className="h-[24px] w-px bg-border-overlay" />
@@ -56,7 +56,7 @@ export const PolicyEditorPanelHeader = ({
<p className="text-xs text-foreground-light group-hover:text-foreground transition">
View policy details
</p>
- <ChevronDown
+ <ChevronDownIcon
className="transition-transform duration-200"
strokeWidth={1.5}
size={14}
@@ -114,9 +114,9 @@ export const PolicyEditorPanelHeader = ({
onClick={() => setShowTools(!showTools)}
>
{!showTools ? (
- <PanelLeftClose size={19} strokeWidth={1} />
+ <PanelLeftCloseIcon size={19} strokeWidth={1} />
) : (
- <PanelRightClose size={19} strokeWidth={1} />
+ <PanelRightCloseIcon size={19} strokeWidth={1} />
)}
<span className="sr-only">{showTools ? 'Hide' : 'Show'} tools</span>
</button>
diff --git a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyTemplates.tsx b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyTemplates.tsx
index 77d54208dad..95b3de87d7e 100644
--- a/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyTemplates.tsx
+++ b/apps/studio/components/interfaces/Database/Policies/PolicyEditorPanel/PolicyTemplates.tsx
@@ -1,5 +1,5 @@
import type { PGPolicy } from '@supabase/pg-meta'
-import { Search } from 'lucide-react'
+import { SearchIcon } from 'lucide-react'
import { useState } from 'react'
import {
Badge,
@@ -73,7 +73,7 @@ export const PolicyTemplates = ({
onChange={(e) => setSearch(e.target.value)}
/>
<InputGroupAddon>
- <Search />
+ <SearchIcon />
</InputGroupAddon>
</InputGroup>
diff --git a/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyRow.tsx b/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyRow.tsx
index c6018920cb8..9487341878c 100644
--- a/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyRow.tsx
+++ b/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyRow.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { noop } from 'lodash'
-import { Edit, MoreVertical, Trash } from 'lucide-react'
+import { EditIcon, MoreVerticalIcon, TrashIcon } from 'lucide-react'
import {
Button,
DropdownMenu,
@@ -126,7 +126,7 @@ export const PolicyRow = ({
<DropdownMenuTrigger asChild>
<Button
className="px-1.5"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
data-testid={`policy-${policy.name}-actions-button`}
aria-label={`${policy.name} actions`}
/>
@@ -136,7 +136,7 @@ export const PolicyRow = ({
</Tooltip>
<DropdownMenuContent side="bottom" align="end" className="w-52">
<DropdownMenuItem className="gap-x-2" onClick={() => onSelectEditPolicy(policy)}>
- <Edit size={14} />
+ <EditIcon size={14} />
<p>Edit policy</p>
</DropdownMenuItem>
<DropdownMenuItem
@@ -168,7 +168,7 @@ export const PolicyRow = ({
})
}}
>
- <Edit size={14} />
+ <EditIcon size={14} />
<p>Edit policy with Assistant</p>
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -183,7 +183,7 @@ export const PolicyRow = ({
},
}}
>
- <Trash size={14} />
+ <TrashIcon size={14} />
<p>Delete policy</p>
</DropdownMenuItemTooltip>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyTableRowHeader.tsx b/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyTableRowHeader.tsx
index f81e94c23d4..69a3c946e22 100644
--- a/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyTableRowHeader.tsx
+++ b/apps/studio/components/interfaces/Database/Policies/PolicyTableRow/PolicyTableRowHeader.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import { noop } from 'lodash'
-import { Lock, Table } from 'lucide-react'
+import { LockIcon, TableIcon } from 'lucide-react'
import { AiIconAnimation, Badge, CardTitle } from 'ui'
import type { PolicyTable } from './PolicyTableRow.types'
@@ -54,7 +54,7 @@ export const PolicyTableRowHeader = ({
id={String(table.id)}
className="flex items-center gap-3 flex-wrap"
>
- <Table strokeWidth={1.5} size={16} className="text-foreground-muted" />
+ <TableIcon strokeWidth={1.5} size={16} className="text-foreground-muted" />
<CardTitle className="m-0 normal-case">{table.name}</CardTitle>
</EditorTablePageLink>
<div className="flex items-center gap-x-1">
@@ -71,7 +71,7 @@ export const PolicyTableRowHeader = ({
{isTableLocked && (
<Badge className="h-5">
<span className="flex gap-x-1 items-center text-foreground-lighter">
- <Lock size={10} /> Locked
+ <LockIcon size={10} /> Locked
</span>
</Badge>
)}
diff --git a/apps/studio/components/interfaces/Database/Publications/PublicationsAvailability.tsx b/apps/studio/components/interfaces/Database/Publications/PublicationsAvailability.tsx
index 91eac96b347..b4f7151767e 100644
--- a/apps/studio/components/interfaces/Database/Publications/PublicationsAvailability.tsx
+++ b/apps/studio/components/interfaces/Database/Publications/PublicationsAvailability.tsx
@@ -1,4 +1,4 @@
-import { BookOpen } from 'lucide-react'
+import { BookOpenIcon } from 'lucide-react'
import type { PropsWithChildren } from 'react'
import { HighAvailabilityDisabledEmptyState } from '@/components/ui/HighAvailability/HighAvailabilityDisabledEmptyState'
@@ -11,7 +11,7 @@ export const PublicationsAvailability = ({ children }: PropsWithChildren) => {
return (
<div className="flex h-full w-full items-center justify-center p-6">
<HighAvailabilityDisabledEmptyState
- icon={BookOpen}
+ icon={BookOpenIcon}
title="Publications unavailable on High Availability projects"
description="We're working to bring publications to High Availability projects. Contact support if this is blocking your work."
/>
diff --git a/apps/studio/components/interfaces/Database/Publications/PublicationsList.tsx b/apps/studio/components/interfaces/Database/Publications/PublicationsList.tsx
index d77d1170a75..be9ef71dc0f 100644
--- a/apps/studio/components/interfaces/Database/Publications/PublicationsList.tsx
+++ b/apps/studio/components/interfaces/Database/Publications/PublicationsList.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { AlertCircle, Info, Search } from 'lucide-react'
+import { AlertCircleIcon, InfoIcon, SearchIcon } from 'lucide-react'
import Link from 'next/link'
import { useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -117,7 +117,7 @@ export const PublicationsList = () => {
<Input
ref={searchInputRef}
size="tiny"
- icon={<Search />}
+ icon={<SearchIcon />}
className="w-48"
placeholder="Search for a publication"
value={filterString}
@@ -128,7 +128,7 @@ export const PublicationsList = () => {
{isPermissionsLoaded && !canUpdatePublications && (
<div className="w-[500px]">
<InformationBox
- icon={<AlertCircle className="text-foreground-light" strokeWidth={2} />}
+ icon={<AlertCircleIcon className="text-foreground-light" strokeWidth={2} />}
title="You need additional permissions to update database publications"
/>
</div>
@@ -185,7 +185,7 @@ export const PublicationsList = () => {
) && (
<Tooltip>
<TooltipTrigger>
- <Info size={14} className="text-foreground-light" />
+ <InfoIcon size={14} className="text-foreground-light" />
</TooltipTrigger>
<TooltipContent side="bottom">
{x.name === 'supabase_realtime'
diff --git a/apps/studio/components/interfaces/Database/Publications/PublicationsTables.tsx b/apps/studio/components/interfaces/Database/Publications/PublicationsTables.tsx
index 349c8101272..385931b7003 100644
--- a/apps/studio/components/interfaces/Database/Publications/PublicationsTables.tsx
+++ b/apps/studio/components/interfaces/Database/Publications/PublicationsTables.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Search } from 'lucide-react'
+import { SearchIcon } from 'lucide-react'
import { useMemo, useRef, useState } from 'react'
import { Card, Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -90,7 +90,7 @@ export const PublicationsTables = () => {
<Input
size="tiny"
ref={searchInputRef}
- icon={<Search />}
+ icon={<SearchIcon />}
className="w-48"
placeholder="Search for a table"
value={filterString}
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationIcon.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationIcon.tsx
index 6daf1ddaa11..68c3f26d2c3 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationIcon.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationIcon.tsx
@@ -1,5 +1,5 @@
import { AnalyticsBucket, BigQuery, ClickHouse, Database } from 'icons'
-import { Snowflake } from 'lucide-react'
+import { SnowflakeIcon } from 'lucide-react'
import type { ComponentType, SVGProps } from 'react'
import type { DestinationType } from './DestinationPanel/DestinationPanel.types'
@@ -10,7 +10,7 @@ const destinationIconByType: Record<DestinationType, DestinationIconComponent> =
BigQuery,
'Analytics Bucket': AnalyticsBucket,
DuckLake: Database,
- Snowflake,
+ Snowflake: SnowflakeIcon,
ClickHouse,
}
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/AnalyticsBucket/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/AnalyticsBucket/Fields.tsx
index c3caabba08d..a8e6244477e 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/AnalyticsBucket/Fields.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/AnalyticsBucket/Fields.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Eye, EyeOff } from 'lucide-react'
+import { EyeIcon, EyeOffIcon } from 'lucide-react'
import { useState } from 'react'
import { useWatch, type UseFormReturn } from 'react-hook-form'
import {
@@ -304,7 +304,7 @@ export const AnalyticsBucketFields = ({
<Button
className="w-7"
aria-label={showCatalogToken ? 'Hide catalog token' : 'Show catalog token'}
- icon={showCatalogToken ? <Eye /> : <EyeOff />}
+ icon={showCatalogToken ? <EyeIcon /> : <EyeOffIcon />}
onClick={() => setShowCatalogToken(!showCatalogToken)}
/>
</div>
@@ -421,7 +421,7 @@ export const AnalyticsBucketFields = ({
aria-label={
showSecretAccessKey ? 'Hide secret access key' : 'Show secret access key'
}
- icon={showSecretAccessKey ? <Eye /> : <EyeOff />}
+ icon={showSecretAccessKey ? <EyeIcon /> : <EyeOffIcon />}
className="w-7 absolute right-1 top-[4px]"
onClick={() => setShowSecretAccessKey(!showSecretAccessKey)}
/>
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/Fields.tsx
index 42b5fdcb0c4..089531e5b51 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/Fields.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/Fields.tsx
@@ -1,4 +1,4 @@
-import { Upload } from 'lucide-react'
+import { UploadIcon } from 'lucide-react'
import { useRef, useState, type ChangeEvent, type DragEvent } from 'react'
import type { UseFormReturn } from 'react-hook-form'
import { Button, cn, FormControl, FormField, Input, TextArea } from 'ui'
@@ -137,7 +137,7 @@ export const BigQueryFields = ({
<Button
type="button"
size="tiny"
- icon={<Upload size={14} />}
+ icon={<UploadIcon size={14} />}
onClick={() => serviceAccountFileInputRef.current?.click()}
>
Upload JSON file
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/TableOptionRow.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/TableOptionRow.tsx
index f1f7d91caec..ca327d10112 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/TableOptionRow.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/TableOptionRow.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { RotateCcw } from 'lucide-react'
+import { RotateCcwIcon } from 'lucide-react'
import { useState } from 'react'
import { get, useController, useFormState, type Control, type FieldErrors } from 'react-hook-form'
import { Button } from 'ui'
@@ -179,7 +179,7 @@ const TableOptionEditor = ({
type="button"
variant="default"
className="self-start"
- icon={<RotateCcw size={14} />}
+ icon={<RotateCcwIcon size={14} />}
onClick={onClear}
>
Clear
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/TableOptions.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/TableOptions.tsx
index 13316f87ab9..037f2b2522d 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/TableOptions.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/BigQuery/TableOptions.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Table2, Trash2 } from 'lucide-react'
+import { Table2Icon, Trash2Icon } from 'lucide-react'
import { useState } from 'react'
import { useFieldArray, useFormState, useWatch, type Control } from 'react-hook-form'
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Button, cn } from 'ui'
@@ -213,7 +213,7 @@ export const TableOptions = ({ control }: TableOptionsProps) => {
className="px-3.5 py-3 font-normal hover:bg-surface-200 hover:no-underline [&>svg]:text-foreground-lighter"
>
<span className="flex min-w-0 items-center gap-3.5">
- <Table2
+ <Table2Icon
size={16}
strokeWidth={1.5}
className="shrink-0 text-foreground-lighter"
@@ -271,7 +271,11 @@ export const TableOptions = ({ control }: TableOptionsProps) => {
className="flex items-center justify-between gap-3 border-t px-3.5 py-3"
>
<span className="flex min-w-0 items-center gap-3.5">
- <Table2 size={16} strokeWidth={1.5} className="shrink-0 text-foreground-lighter" />
+ <Table2Icon
+ size={16}
+ strokeWidth={1.5}
+ className="shrink-0 text-foreground-lighter"
+ />
<span className="flex min-w-0 flex-col gap-0.5">
<span className="truncate text-sm font-medium text-foreground">
{sourceTable ? tableLabel(sourceTable) : 'Previously configured table'}
@@ -282,7 +286,7 @@ export const TableOptions = ({ control }: TableOptionsProps) => {
<Button
type="button"
variant="default"
- icon={<Trash2 size={14} />}
+ icon={<Trash2Icon size={14} />}
onClick={() => remove(index)}
>
Remove
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ClickHouse/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ClickHouse/Fields.tsx
index 099629cf804..48c43d3d88f 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ClickHouse/Fields.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ClickHouse/Fields.tsx
@@ -1,4 +1,4 @@
-import { Eye, EyeOff } from 'lucide-react'
+import { EyeIcon, EyeOffIcon } from 'lucide-react'
import { useState } from 'react'
import type { UseFormReturn } from 'react-hook-form'
import {
@@ -100,7 +100,7 @@ export const ClickHouseFields = ({
className="w-7"
title={passwordVisibilityLabel}
aria-label={passwordVisibilityLabel}
- icon={showPassword ? <Eye /> : <EyeOff />}
+ icon={showPassword ? <EyeIcon /> : <EyeOffIcon />}
onClick={() => setShowPassword(!showPassword)}
/>
</div>
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx
index 7a04498b571..d2d47184b12 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/DuckLake/Fields.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Check, Eye, EyeOff, Plus } from 'lucide-react'
+import { CheckIcon, EyeIcon, EyeOffIcon, PlusIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import { useWatch, type UseFormReturn } from 'react-hook-form'
import { toast } from 'sonner'
@@ -271,7 +271,7 @@ const DuckLakeCustomFields = ({
<Button
className="w-7"
aria-label={showCatalogUrl ? 'Hide catalog URL' : 'Show catalog URL'}
- icon={showCatalogUrl ? <Eye /> : <EyeOff />}
+ icon={showCatalogUrl ? <EyeIcon /> : <EyeOffIcon />}
onClick={() => setShowCatalogUrl(!showCatalogUrl)}
/>
</div>
@@ -366,7 +366,7 @@ const DuckLakeCustomFields = ({
? 'Hide S3 secret access key'
: 'Show S3 secret access key'
}
- icon={showSecretAccessKey ? <Eye /> : <EyeOff />}
+ icon={showSecretAccessKey ? <EyeIcon /> : <EyeOffIcon />}
onClick={() => setShowSecretAccessKey(!showSecretAccessKey)}
/>
)
@@ -649,7 +649,7 @@ const BucketSelection = ({
>
<span>{bucket.name}</span>
{value === bucket.id && (
- <Check className="text-primary" strokeWidth={2} size={13} />
+ <CheckIcon className="text-primary" strokeWidth={2} size={13} />
)}
</CommandItem>
))}
@@ -666,7 +666,7 @@ const BucketSelection = ({
onCreateBucket()
}}
>
- <Plus size={14} strokeWidth={1.5} className="mr-2" />
+ <PlusIcon size={14} strokeWidth={1.5} className="mr-2" />
New bucket
</CommandItem>
</CommandGroup>
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/NoDestinationsAvailable.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/NoDestinationsAvailable.tsx
index 848b14a7109..e751c6ad42c 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/NoDestinationsAvailable.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/NoDestinationsAvailable.tsx
@@ -1,4 +1,4 @@
-import { DatabaseZap } from 'lucide-react'
+import { DatabaseZapIcon } from 'lucide-react'
import { InlineLink } from '@/components/ui/InlineLink'
@@ -6,7 +6,7 @@ export const NoDestinationsAvailable = () => {
return (
<div className="flex flex-col items-center justify-center h-full px-8 py-16 text-center">
<div className="flex items-center justify-center w-14 h-14 rounded-full bg-surface-300 mb-5">
- <DatabaseZap size={26} className="text-foreground-light" strokeWidth={1.5} />
+ <DatabaseZapIcon size={26} className="text-foreground-light" strokeWidth={1.5} />
</div>
<h3 className="text-lg font-medium text-foreground mb-2">No destinations available</h3>
<p className="text-sm text-foreground-light max-w-lg">
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/PublicationsComboBox.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/PublicationsComboBox.tsx
index 3681dedef6b..db402fb259a 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/PublicationsComboBox.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/PublicationsComboBox.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Check, Plus } from 'lucide-react'
+import { CheckIcon, PlusIcon } from 'lucide-react'
import { useState } from 'react'
import { ControllerRenderProps } from 'react-hook-form'
import {
@@ -132,7 +132,7 @@ export const PublicationsComboBox = ({
>
<span>{pub.name}</span>
{selectedPublication === pub.name && (
- <Check className="text-primary" strokeWidth={2} size={13} />
+ <CheckIcon className="text-primary" strokeWidth={2} size={13} />
)}
</CommandItem>
))}
@@ -148,7 +148,7 @@ export const PublicationsComboBox = ({
onSelect={onNewPublicationClick}
onClick={onNewPublicationClick}
>
- <Plus size={14} strokeWidth={1.5} className="mr-2" />
+ <PlusIcon size={14} strokeWidth={1.5} className="mr-2" />
<p>New publication</p>
</CommandItem>
</CommandGroup>
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/Snowflake/Fields.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/Snowflake/Fields.tsx
index c42033e66d9..11ee23c4111 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/Snowflake/Fields.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/Snowflake/Fields.tsx
@@ -1,4 +1,4 @@
-import { Eye, EyeOff, Upload } from 'lucide-react'
+import { EyeIcon, EyeOffIcon, UploadIcon } from 'lucide-react'
import { useRef, useState, type ChangeEvent, type DragEvent } from 'react'
import type { UseFormReturn } from 'react-hook-form'
import { Button, cn, FormControl, FormField, Input, TextArea } from 'ui'
@@ -205,7 +205,7 @@ export const SnowflakeFields = ({
<Button
type="button"
size="tiny"
- icon={<Upload size={14} />}
+ icon={<UploadIcon size={14} />}
onClick={() => privateKeyFileInputRef.current?.click()}
>
Upload private key
@@ -251,7 +251,7 @@ export const SnowflakeFields = ({
aria-label={
showPrivateKeyPassphrase ? 'Hide passphrase' : 'Show passphrase'
}
- icon={showPrivateKeyPassphrase ? <Eye /> : <EyeOff />}
+ icon={showPrivateKeyPassphrase ? <EyeIcon /> : <EyeOffIcon />}
onClick={() => setShowPrivateKeyPassphrase(!showPrivateKeyPassphrase)}
/>
</div>
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/index.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/index.tsx
index 3714612ae6e..6955b4bafca 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/index.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/index.tsx
@@ -1,7 +1,7 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { RefObject, useEffect, useMemo, useRef, useState, type ReactNode } from 'react'
import { useForm, useWatch } from 'react-hook-form'
@@ -565,7 +565,7 @@ export const DestinationForm = ({
exit={{ opacity: 0, y: 5 }}
transition={{ duration: 0.2, ease: 'easeOut' }}
>
- <Loader2 className="animate-spin" size={14} />
+ <Loader2Icon className="animate-spin" size={14} />
<p className="text-foreground-light text-sm">{getSavingMessage()}</p>
</motion.div>
) : (
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationPanel.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationPanel.tsx
index a78e8182c1f..525141fc622 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationPanel.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationPanel.tsx
@@ -1,5 +1,5 @@
import { useFeatureFlags, useParams } from 'common'
-import { ArrowUpRight } from 'lucide-react'
+import { ArrowUpRightIcon } from 'lucide-react'
import Link from 'next/link'
import { parseAsInteger, parseAsStringEnum, useQueryState } from 'nuqs'
import { useEffect, useRef } from 'react'
@@ -184,7 +184,7 @@ export const DestinationPanel = () => {
<Button
asChild
variant="primary"
- iconRight={<ArrowUpRight size={16} strokeWidth={1.5} />}
+ iconRight={<ArrowUpRightIcon size={16} strokeWidth={1.5} />}
>
<Link
target="_blank"
diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationRow.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationRow.tsx
index d9c70607358..6a4192f72af 100644
--- a/apps/studio/components/interfaces/Database/Replication/DestinationRow.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/DestinationRow.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ChevronRight, Minus } from 'lucide-react'
+import { ChevronRightIcon, MinusIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useState } from 'react'
import { toast } from 'sonner'
@@ -141,7 +141,7 @@ export const DestinationRow = ({ destinationId }: DestinationRowProps) => {
if (isReplicationStatusError || !applyLag)
return (
<>
- <Minus size={18} className="text-foreground-lighter" aria-hidden />
+ <MinusIcon size={18} className="text-foreground-lighter" aria-hidden />
<span className="sr-only">Lag unavailable</span>
</>
)
@@ -251,7 +251,7 @@ export const DestinationRow = ({ destinationId }: DestinationRowProps) => {
onUpdateClick={() => setShowUpdateVersionModal(true)}
/>
</div>
- <ChevronRight
+ <ChevronRightIcon
size={16}
strokeWidth={1.5}
className="text-foreground-lighter"
diff --git a/apps/studio/components/interfaces/Database/Replication/Destinations.tsx b/apps/studio/components/interfaces/Database/Replication/Destinations.tsx
index 8ff5afa97d7..f44d5fe774b 100644
--- a/apps/studio/components/interfaces/Database/Replication/Destinations.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/Destinations.tsx
@@ -1,6 +1,6 @@
import { useQueries, useQueryClient } from '@tanstack/react-query'
import { useParams } from 'common'
-import { MoreVertical, Plus, Search, Workflow, X } from 'lucide-react'
+import { MoreVerticalIcon, PlusIcon, SearchIcon, WorkflowIcon, XIcon } from 'lucide-react'
import Link from 'next/link'
import { parseAsStringEnum, useQueryState } from 'nuqs'
import { useEffect, useMemo, useRef, useState } from 'react'
@@ -285,7 +285,7 @@ export const Destinations = () => {
ref={searchInputRef}
placeholder="Search pipelines"
size="tiny"
- icon={<Search />}
+ icon={<SearchIcon />}
value={filterString}
className="w-full lg:w-52"
onChange={(e) => setFilterString(e.target.value)}
@@ -295,7 +295,7 @@ export const Destinations = () => {
<Button
aria-label="Clear search"
variant="text"
- icon={<X />}
+ icon={<XIcon />}
className="p-0 h-5 w-5"
onClick={() => setFilterString('')}
/>
@@ -309,7 +309,7 @@ export const Destinations = () => {
<Button
aria-label="More actions"
variant="default"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
className="w-6.5 hit-area-1"
/>
</DropdownMenuTrigger>
@@ -362,7 +362,7 @@ export const Destinations = () => {
content: { text: isSourcesError && !canCreate ? sourceErrorTitle : undefined },
}}
variant="primary"
- icon={<Plus />}
+ icon={<PlusIcon />}
loading={isCheckingPipelineStatus}
disabled={!canCreate}
onClick={openDestinationPanel}
@@ -451,7 +451,7 @@ export const Destinations = () => {
{!isDestinationsLoading && !hasDestinations && !hasErrorsFetchingData && (
<EmptyStatePresentational
- icon={Workflow}
+ icon={WorkflowIcon}
title="Add a pipeline"
description="Send tables to an external destination for analytics workloads."
>
@@ -460,7 +460,7 @@ export const Destinations = () => {
content: { text: isSourcesError && !canCreate ? sourceErrorTitle : undefined },
}}
variant="default"
- icon={<Plus />}
+ icon={<PlusIcon />}
loading={isCheckingPipelineStatus}
disabled={!canCreate}
onClick={openDestinationPanel}
diff --git a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineLayout.tsx b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineLayout.tsx
index a4a00f9eca7..59884092c0c 100644
--- a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineLayout.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineLayout.tsx
@@ -1,13 +1,13 @@
import { useParams } from 'common'
import {
- ArrowRight,
- ArrowUpCircle,
- CircleStop,
- Edit,
- MoreVertical,
- Play,
- RotateCcw,
- Trash,
+ ArrowRightIcon,
+ ArrowUpCircleIcon,
+ CircleStopIcon,
+ EditIcon,
+ MoreVerticalIcon,
+ PlayIcon,
+ RotateCcwIcon,
+ TrashIcon,
} from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
@@ -68,9 +68,9 @@ type LifecycleAction = 'start' | 'stop' | 'restart'
const LIFECYCLE_BY_STATUS: Partial<
Record<PipelineStatusName, { label: string; action: LifecycleAction; icon: ReactNode }>
> = {
- [PipelineStatusName.STOPPED]: { label: 'Start', action: 'start', icon: <Play /> },
- [PipelineStatusName.STARTED]: { label: 'Stop', action: 'stop', icon: <CircleStop /> },
- [PipelineStatusName.FAILED]: { label: 'Restart', action: 'restart', icon: <RotateCcw /> },
+ [PipelineStatusName.STOPPED]: { label: 'Start', action: 'start', icon: <PlayIcon /> },
+ [PipelineStatusName.STARTED]: { label: 'Stop', action: 'stop', icon: <CircleStopIcon /> },
+ [PipelineStatusName.FAILED]: { label: 'Restart', action: 'restart', icon: <RotateCcwIcon /> },
}
export const ReplicationPipelineLayout = ({ children }: PropsWithChildren) => {
@@ -282,7 +282,7 @@ export const ReplicationPipelineLayout = ({ children }: PropsWithChildren) => {
</span>
<span className="flex items-center gap-x-1.5 text-foreground-light">
<span>Primary database</span>
- <ArrowRight size={14} strokeWidth={1.5} className="text-foreground-lighter" />
+ <ArrowRightIcon size={14} strokeWidth={1.5} className="text-foreground-lighter" />
{isPipelineIdentityLoading ? (
<span className="inline-flex items-center">
<span className="sr-only">Loading destination</span>
@@ -300,7 +300,7 @@ export const ReplicationPipelineLayout = ({ children }: PropsWithChildren) => {
{hasUpdate && (
<Button
variant="primary"
- icon={<ArrowUpCircle />}
+ icon={<ArrowUpCircleIcon />}
onClick={() => setShowUpdateVersionModal(true)}
disabled={isPipelineRequestPending || isTransitioning}
>
@@ -337,7 +337,7 @@ export const ReplicationPipelineLayout = ({ children }: PropsWithChildren) => {
variant="default"
className="w-6.5 hit-area-1"
aria-label="Pipeline options"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
disabled={isPipelineRequestPending || isTransitioning}
/>
</DropdownMenuTrigger>
@@ -347,7 +347,7 @@ export const ReplicationPipelineLayout = ({ children }: PropsWithChildren) => {
className="gap-x-2"
onClick={() => onLifecycleAction('restart')}
>
- <RotateCcw size={14} />
+ <RotateCcwIcon size={14} />
<span>Restart pipeline</span>
</DropdownMenuItem>
)}
@@ -356,7 +356,7 @@ export const ReplicationPipelineLayout = ({ children }: PropsWithChildren) => {
className="gap-x-2"
onClick={() => onLifecycleAction('stop')}
>
- <CircleStop size={14} />
+ <CircleStopIcon size={14} />
<span>Stop pipeline</span>
</DropdownMenuItem>
)}
@@ -368,7 +368,7 @@ export const ReplicationPipelineLayout = ({ children }: PropsWithChildren) => {
if (pipeline !== undefined) setEdit(pipeline.destination_id)
}}
>
- <Edit size={14} />
+ <EditIcon size={14} />
<span>Edit pipeline</span>
</DropdownMenuItem>
<DropdownMenuItem
@@ -376,7 +376,7 @@ export const ReplicationPipelineLayout = ({ children }: PropsWithChildren) => {
disabled={pipeline === undefined}
onClick={() => setShowDeleteDestination(true)}
>
- <Trash size={14} />
+ <TrashIcon size={14} />
<span>Delete pipeline</span>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/ReplicationPipelineStatus.tsx b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/ReplicationPipelineStatus.tsx
index a845ea53c59..cda568d1605 100644
--- a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/ReplicationPipelineStatus.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/ReplicationPipelineStatus.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Activity, ChevronDown, RotateCcw, Search, X } from 'lucide-react'
+import { ActivityIcon, ChevronDownIcon, RotateCcwIcon, SearchIcon, XIcon } from 'lucide-react'
import Link from 'next/link'
import { parseAsString, useQueryState } from 'nuqs'
import { useMemo, useState } from 'react'
@@ -276,7 +276,7 @@ export const ReplicationPipelineStatus = () => {
actions={
<Button
variant="default"
- icon={<RotateCcw />}
+ icon={<RotateCcwIcon />}
disabled={isPipelineBusy || isPipelineError}
loading={isPipelineBusy}
onClick={() => {
@@ -320,7 +320,7 @@ export const ReplicationPipelineStatus = () => {
<div className="flex flex-col gap-y-3">
<div className="flex items-center justify-between">
<Input
- icon={<Search />}
+ icon={<SearchIcon />}
size="tiny"
className="text-xs w-52"
placeholder="Search tables"
@@ -333,7 +333,7 @@ export const ReplicationPipelineStatus = () => {
<Button
aria-label="Clear search"
variant="text"
- icon={<X />}
+ icon={<XIcon />}
className="p-0 h-5 w-5"
onClick={() => setSearchString('')}
/>
@@ -345,7 +345,7 @@ export const ReplicationPipelineStatus = () => {
size="tiny"
variant="default"
className="rounded-r-none hover:z-10 focus-visible:z-10 focus-visible:rounded-r-sm"
- icon={<RotateCcw />}
+ icon={<RotateCcwIcon />}
disabled={isPipelineBusy || showDisabledState || isPipelineError}
loading={isPipelineBusy}
onClick={() => {
@@ -360,7 +360,7 @@ export const ReplicationPipelineStatus = () => {
<Button
variant="default"
aria-label="More reset options"
- icon={<ChevronDown />}
+ icon={<ChevronDownIcon />}
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
disabled={showDisabledState || isPipelineError}
/>
@@ -481,7 +481,7 @@ export const ReplicationPipelineStatus = () => {
{!hasTableData && (
<EmptyStatePresentational
- icon={Activity}
+ icon={ActivityIcon}
title={emptyState.title}
description={emptyState.description}
/>
diff --git a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/TableReplicationRow.tsx b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/TableReplicationRow.tsx
index 580393ffccb..60bf095277c 100644
--- a/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/TableReplicationRow.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/ReplicationPipelineStatus/TableReplicationRow.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { TableEditor } from 'icons'
-import { MoreVertical, RotateCcw } from 'lucide-react'
+import { MoreVerticalIcon, RotateCcwIcon } from 'lucide-react'
import Link from 'next/link'
import {
Button,
@@ -115,7 +115,7 @@ export const TableReplicationRow = ({
variant="default"
className="px-1.25 hit-area-2"
aria-label={`Options for ${tableName}`}
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-44">
@@ -130,7 +130,7 @@ export const TableReplicationRow = ({
},
}}
>
- <RotateCcw size={14} />
+ <RotateCcwIcon size={14} />
<span>Reset table</span>
</DropdownMenuItemTooltip>
<DropdownMenuItem className="gap-x-2" asChild>
diff --git a/apps/studio/components/interfaces/Database/Replication/RowMenu.tsx b/apps/studio/components/interfaces/Database/Replication/RowMenu.tsx
index 2629cb1e7fc..ed6fec97cf7 100644
--- a/apps/studio/components/interfaces/Database/Replication/RowMenu.tsx
+++ b/apps/studio/components/interfaces/Database/Replication/RowMenu.tsx
@@ -1,13 +1,13 @@
import { useParams } from 'common'
import {
- ArrowUpCircle,
- CircleStop,
- Edit,
- Eye,
- MoreVertical,
- Play,
- RotateCcw,
- Trash,
+ ArrowUpCircleIcon,
+ CircleStopIcon,
+ EditIcon,
+ EyeIcon,
+ MoreVerticalIcon,
+ PlayIcon,
+ RotateCcwIcon,
+ TrashIcon,
} from 'lucide-react'
import Link from 'next/link'
import { parseAsInteger, useQueryState } from 'nuqs'
@@ -162,7 +162,7 @@ export const RowMenu = ({
variant="default"
className="w-6.5 hit-area-1"
aria-label={hasUpdate ? 'Pipeline options, update available' : 'Pipeline options'}
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
/>
{hasUpdate && (
<span
@@ -176,7 +176,7 @@ export const RowMenu = ({
<DropdownMenuContent side="bottom" align="end" className="w-44">
<DropdownMenuItem className="space-x-2" asChild disabled={!pipeline}>
<Link href={`/project/${projectRef}/database/pipelines/${pipeline?.id}`}>
- <Eye size={14} />
+ <EyeIcon size={14} />
<p>View details</p>
</Link>
</DropdownMenuItem>
@@ -188,7 +188,7 @@ export const RowMenu = ({
onClick={() => onUpdateClick?.()}
disabled={isPipelineRequestPending}
>
- <ArrowUpCircle size={14} />
+ <ArrowUpCircleIcon size={14} />
<p>Update available</p>
<span
className="ml-auto h-2 w-2 shrink-0 rounded-full bg-primary-bright"
@@ -201,7 +201,7 @@ export const RowMenu = ({
{showStart && (
<>
<DropdownMenuItem className="space-x-2" onClick={onEnablePipeline}>
- <Play size={14} />
+ <PlayIcon size={14} />
<p>Start pipeline</p>
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -210,11 +210,11 @@ export const RowMenu = ({
{showStopAndRestart && (
<>
<DropdownMenuItem className="space-x-2" onClick={onRestartPipeline}>
- <RotateCcw size={14} />
+ <RotateCcwIcon size={14} />
<p>Restart pipeline</p>
</DropdownMenuItem>
<DropdownMenuItem className="space-x-2" onClick={onDisablePipeline}>
- <CircleStop size={14} />
+ <CircleStopIcon size={14} />
<p>Stop pipeline</p>
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -226,7 +226,7 @@ export const RowMenu = ({
onClick={() => setEdit(destinationId)}
disabled={isPipelineRequestPending}
>
- <Edit size={14} />
+ <EditIcon size={14} />
<p>Edit pipeline</p>
</DropdownMenuItem>
<DropdownMenuItem
@@ -234,7 +234,7 @@ export const RowMenu = ({
onClick={onDeleteClick}
disabled={isPipelineRequestPending}
>
- <Trash size={14} />
+ <TrashIcon size={14} />
<p>Delete pipeline</p>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsx b/apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsx
index b829edbfdf3..3a0bb528b6b 100644
--- a/apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsx
+++ b/apps/studio/components/interfaces/Database/RestoreToNewProject/RestoreToNewProject.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import Link from 'next/link'
import { useEffect, useState } from 'react'
import { Alert, AlertDescription, AlertTitle, Button } from 'ui'
@@ -273,7 +273,7 @@ export const RestoreToNewProject = () => {
/>
{isRestoring ? (
<Alert className="[&>svg]:bg-none! [&>svg]:text-foreground-light mb-6">
- <Loader2 className="animate-spin" />
+ <Loader2Icon className="animate-spin" />
<AlertTitle>Restoration in progress</AlertTitle>
<AlertDescription>
<p>
diff --git a/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx b/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx
index cb3984b0101..9d7e424c19c 100644
--- a/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx
+++ b/apps/studio/components/interfaces/Database/Roles/RoleRow.tsx
@@ -1,5 +1,5 @@
import { zodResolver } from '@hookform/resolvers/zod'
-import { ChevronUp, MoreVertical, Trash } from 'lucide-react'
+import { ChevronUpIcon, MoreVerticalIcon, TrashIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { useForm, type SubmitHandler } from 'react-hook-form'
import { toast } from 'sonner'
@@ -126,7 +126,7 @@ export const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps
}}
>
<div className="flex items-start space-x-3">
- <ChevronUp
+ <ChevronUpIcon
className="text-border-stronger transition data-open-parent:rotate-0 data-closed-parent:rotate-180"
strokeWidth={2}
width={14}
@@ -163,7 +163,7 @@ export const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps
<DropdownMenuTrigger asChild>
<Button
className="px-1"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
aria-label={`${role.name} actions`}
/>
</DropdownMenuTrigger>
@@ -178,7 +178,7 @@ export const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps
onSelectDelete(role.id.toString())
}}
>
- <Trash className="text-red-800" size="14" strokeWidth={2} />
+ <TrashIcon className="text-red-800" size="14" strokeWidth={2} />
<p>Delete</p>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Database/Roles/RoleRowSkeleton.tsx b/apps/studio/components/interfaces/Database/Roles/RoleRowSkeleton.tsx
index 6f7d8a2d3f1..78f3cde95f8 100644
--- a/apps/studio/components/interfaces/Database/Roles/RoleRowSkeleton.tsx
+++ b/apps/studio/components/interfaces/Database/Roles/RoleRowSkeleton.tsx
@@ -1,4 +1,4 @@
-import { ChevronUp } from 'lucide-react'
+import { ChevronUpIcon } from 'lucide-react'
import { cn } from 'ui'
import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
@@ -23,7 +23,7 @@ export const RoleRowSkeleton = ({ index }: RoleRowSkeletonProps) => {
>
<div className="flex w-full items-center justify-between rounded-sm py-3 px-6 text-foreground">
<div className="flex items-start space-x-3">
- <ChevronUp
+ <ChevronUpIcon
id="collapsible-trigger"
className="text-border-stronger rotate-180"
strokeWidth={2}
diff --git a/apps/studio/components/interfaces/Database/Roles/RolesList.tsx b/apps/studio/components/interfaces/Database/Roles/RolesList.tsx
index 28c8f5162b1..a4c73cb2bf3 100644
--- a/apps/studio/components/interfaces/Database/Roles/RolesList.tsx
+++ b/apps/studio/components/interfaces/Database/Roles/RolesList.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { partition, sortBy } from 'lodash'
-import { Plus, Search, X } from 'lucide-react'
+import { PlusIcon, SearchIcon, XIcon } from 'lucide-react'
import { parseAsBoolean, parseAsString, useQueryState } from 'nuqs'
import { useEffect, useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -130,7 +130,7 @@ export const RolesList = () => {
size="tiny"
className="w-52"
placeholder="Search for a role"
- icon={<Search />}
+ icon={<SearchIcon />}
value={filterString}
onChange={(event) => setFilterString(event.target.value)}
onKeyDown={onSearchInputEscape(filterString, setFilterString)}
@@ -142,7 +142,7 @@ export const RolesList = () => {
onClick={() => setFilterString('')}
className="px-1 mr-1"
>
- <X size={12} strokeWidth={2} />
+ <XIcon size={12} strokeWidth={2} />
</Button>
)
}
@@ -223,7 +223,7 @@ export const RolesList = () => {
>
<Button
variant="primary"
- icon={<Plus size={12} />}
+ icon={<PlusIcon size={12} />}
onClick={() => setIsCreatingRole(true)}
>
Add role
@@ -233,7 +233,7 @@ export const RolesList = () => {
<ButtonTooltip
variant="primary"
disabled
- icon={<Plus size={12} />}
+ icon={<PlusIcon size={12} />}
tooltip={{
content: {
side: 'bottom',
diff --git a/apps/studio/components/interfaces/Database/Schemas/DefaultEdge.tsx b/apps/studio/components/interfaces/Database/Schemas/DefaultEdge.tsx
index fc2034776c5..5523fa8c64f 100644
--- a/apps/studio/components/interfaces/Database/Schemas/DefaultEdge.tsx
+++ b/apps/studio/components/interfaces/Database/Schemas/DefaultEdge.tsx
@@ -7,7 +7,7 @@ import {
Position,
useReactFlow,
} from '@xyflow/react'
-import { ArrowLeft, ArrowRight } from 'lucide-react'
+import { ArrowLeftIcon, ArrowRightIcon } from 'lucide-react'
import { memo, useCallback, useState } from 'react'
import { Badge, cn } from 'ui'
@@ -159,7 +159,7 @@ const EdgeRelationInfo = ({
table={data.sourceName}
column={data.sourceColumnName}
/>
- <ArrowRight size={12} />
+ <ArrowRightIcon size={12} />
<EdgeNodeData
schema={data.targetSchemaName}
table={data.targetName}
@@ -173,7 +173,7 @@ const EdgeRelationInfo = ({
table={data.targetName}
column={data.targetColumnName}
/>
- <ArrowLeft size={12} />
+ <ArrowLeftIcon size={12} />
<EdgeNodeData
schema={data.sourceSchemaName}
table={data.sourceName}
diff --git a/apps/studio/components/interfaces/Database/Schemas/FindTableSelector.tsx b/apps/studio/components/interfaces/Database/Schemas/FindTableSelector.tsx
index d5c040e9f51..38e28fb3b69 100644
--- a/apps/studio/components/interfaces/Database/Schemas/FindTableSelector.tsx
+++ b/apps/studio/components/interfaces/Database/Schemas/FindTableSelector.tsx
@@ -1,4 +1,4 @@
-import { Loader2, Search } from 'lucide-react'
+import { Loader2Icon, SearchIcon } from 'lucide-react'
import { ComponentPropsWithoutRef, forwardRef, useMemo, useState } from 'react'
import {
Button,
@@ -77,7 +77,7 @@ export const FindTableSelector = forwardRef<HTMLDivElement, FindTableSelectorPro
size={size}
disabled={disabled}
data-testid="find-table-selector"
- icon={<Search size={14} strokeWidth={1.5} className="text-foreground-muted" />}
+ icon={<SearchIcon size={14} strokeWidth={1.5} className="text-foreground-muted" />}
>
<span className="text-foreground-lighter">Find table…</span>
</Button>
@@ -93,7 +93,7 @@ export const FindTableSelector = forwardRef<HTMLDivElement, FindTableSelectorPro
<CommandList>
{isFetching && tables.length === 0 ? (
<div className="flex items-center justify-center gap-x-2 py-6 text-xs text-foreground-light">
- <Loader2 className="animate-spin" size={14} />
+ <Loader2Icon className="animate-spin" size={14} />
<span>Loading tables</span>
</div>
) : (
diff --git a/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx b/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx
index 3a40769f6ba..c9953186c3b 100644
--- a/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx
+++ b/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx
@@ -12,7 +12,14 @@ import {
ReactFlow,
useReactFlow,
} from '@xyflow/react'
-import { Check, ChevronDown, Copy, Download, Loader2, Plus } from 'lucide-react'
+import {
+ CheckIcon,
+ ChevronDownIcon,
+ CopyIcon,
+ DownloadIcon,
+ Loader2Icon,
+ PlusIcon,
+} from 'lucide-react'
import { useTheme } from 'next-themes'
import Link from 'next/link'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
@@ -430,7 +437,7 @@ export const SchemaGraph = () => {
<div className="flex items-center gap-0">
<ButtonTooltip
className="rounded-r-none hover:z-10 focus-visible:z-10 focus-visible:rounded-r-sm"
- icon={copied ? <Check data-testid="copy-sql-ready" /> : <Copy />}
+ icon={copied ? <CheckIcon data-testid="copy-sql-ready" /> : <CopyIcon />}
onClick={copyAsSQL}
tooltip={{
content: {
@@ -455,7 +462,7 @@ export const SchemaGraph = () => {
size="tiny"
aria-label="Export options"
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
- icon={<ChevronDown size={12} />}
+ icon={<ChevronDownIcon size={12} />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-44">
@@ -468,9 +475,9 @@ export const SchemaGraph = () => {
}}
>
{isMarkdownDataLoading ? (
- <Loader2 size={12} className="animate-spin" />
+ <Loader2Icon size={12} className="animate-spin" />
) : (
- <Copy size={12} />
+ <CopyIcon size={12} />
)}
<span>Copy as Markdown</span>
</DropdownMenuItem>
@@ -481,7 +488,7 @@ export const SchemaGraph = () => {
downloadImage('png')
}}
>
- <Download size={12} />
+ <DownloadIcon size={12} />
<span>Download as PNG</span>
</DropdownMenuItem>
<DropdownMenuItem
@@ -491,7 +498,7 @@ export const SchemaGraph = () => {
downloadImage('svg')
}}
>
- <Download size={12} />
+ <DownloadIcon size={12} />
<span>Download as SVG</span>
</DropdownMenuItem>
</DropdownMenuContent>
@@ -529,7 +536,7 @@ export const SchemaGraph = () => {
</div>
{isLoadingTables && (
<div className="w-full h-full flex items-center justify-center gap-x-2">
- <Loader2 className="animate-spin text-foreground-light" size={16} />
+ <Loader2Icon className="animate-spin text-foreground-light" size={16} />
<p className="text-sm text-foreground-light">Loading tables</p>
</div>
)}
@@ -556,7 +563,7 @@ export const SchemaGraph = () => {
}
>
{canAddTables && (
- <Button asChild className="mt-2 w-min" icon={<Plus />}>
+ <Button asChild className="mt-2 w-min" icon={<PlusIcon />}>
<Link href={`/project/${ref}/editor?create=table`}>New table</Link>
</Button>
)}
diff --git a/apps/studio/components/interfaces/Database/Schemas/SchemaGraphLegend.tsx b/apps/studio/components/interfaces/Database/Schemas/SchemaGraphLegend.tsx
index bc8f856a986..02ef1b361c1 100644
--- a/apps/studio/components/interfaces/Database/Schemas/SchemaGraphLegend.tsx
+++ b/apps/studio/components/interfaces/Database/Schemas/SchemaGraphLegend.tsx
@@ -1,19 +1,19 @@
-import { DiamondIcon, Fingerprint, Hash, Key } from 'lucide-react'
+import { DiamondIcon, FingerprintIcon, HashIcon, KeyIcon } from 'lucide-react'
export const SchemaGraphLegend = () => {
return (
<div className="absolute bottom-0 left-0 border-t flex justify-center px-1 py-2 shadow-md bg-surface-100 w-full z-10">
<ul className="flex flex-wrap items-center justify-center gap-4">
<li className="flex items-center text-xs font-mono gap-1">
- <Key size={15} strokeWidth={1.5} className="shrink-0 text-light" />
+ <KeyIcon size={15} strokeWidth={1.5} className="shrink-0 text-light" />
Primary key
</li>
<li className="flex items-center text-xs font-mono gap-1">
- <Hash size={15} strokeWidth={1.5} className="shrink-0 text-light" />
+ <HashIcon size={15} strokeWidth={1.5} className="shrink-0 text-light" />
Identity
</li>
<li className="flex items-center text-xs font-mono gap-1">
- <Fingerprint size={15} strokeWidth={1.5} className="shrink-0 text-light" />
+ <FingerprintIcon size={15} strokeWidth={1.5} className="shrink-0 text-light" />
Unique
</li>
<li className="flex items-center text-xs font-mono gap-1">
diff --git a/apps/studio/components/interfaces/Database/Schemas/SchemaTableNode.tsx b/apps/studio/components/interfaces/Database/Schemas/SchemaTableNode.tsx
index bc1d20eba5d..c8f45489bb2 100644
--- a/apps/studio/components/interfaces/Database/Schemas/SchemaTableNode.tsx
+++ b/apps/studio/components/interfaces/Database/Schemas/SchemaTableNode.tsx
@@ -2,15 +2,15 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
import { Handle, Node, NodeProps } from '@xyflow/react'
import { TableEditor } from 'icons'
import {
- Copy,
+ CopyIcon,
DiamondIcon,
- Edit,
- Fingerprint,
- Hash,
+ EditIcon,
+ FingerprintIcon,
+ HashIcon,
InfoIcon,
- Key,
- MoreVertical,
- Table2,
+ KeyIcon,
+ MoreVerticalIcon,
+ Table2Icon,
} from 'lucide-react'
import { useRouter } from 'next/router'
import { memo } from 'react'
@@ -100,7 +100,7 @@ const TableNodeComponent = ({
)}
>
<div className="min-w-0 flex shrink gap-x-1 items-center">
- <Table2 strokeWidth={1} size={12} className="text-light" />
+ <Table2Icon strokeWidth={1} size={12} className="text-light" />
<span className="whitespace-nowrap overflow-hidden text-ellipsis" title={data.name}>
{data.name}
</span>
@@ -125,7 +125,7 @@ const TableNodeComponent = ({
variant="text"
className="px-0 w-[16px] h-[16px] rounded-sm nodrag nopan"
>
- <MoreVertical size={10} />
+ <MoreVerticalIcon size={10} />
<span className="sr-only">{data.name} actions</span>
</Button>
</DropdownMenuTrigger>
@@ -134,7 +134,7 @@ const TableNodeComponent = ({
className="flex items-center space-x-2 whitespace-nowrap"
onClick={() => schemaGraphContext.onEditTable(data.id)}
>
- <Edit size={12} />
+ <EditIcon size={12} />
<p>Edit table</p>
</DropdownMenuItem>
<DropdownMenuItem
@@ -160,7 +160,7 @@ const TableNodeComponent = ({
copyToClipboard(data.name)
}}
>
- <Copy size={12} />
+ <CopyIcon size={12} />
<span>Copy name</span>
</DropdownMenuItem>
<DropdownMenuItem
@@ -195,7 +195,7 @@ const TableNodeComponent = ({
}
}}
>
- <Copy size={12} />
+ <CopyIcon size={12} />
<span>Copy as SQL</span>
</DropdownMenuItem>
<DropdownMenuItem
@@ -216,7 +216,7 @@ const TableNodeComponent = ({
}
}}
>
- <Copy size={12} />
+ <CopyIcon size={12} />
<span>Copy as Markdown</span>
</DropdownMenuItem>
</DropdownMenuContent>
@@ -249,7 +249,7 @@ const TableNodeComponent = ({
)}
>
{column.isPrimary && (
- <Key size={8} strokeWidth={1} className={cn('shrink-0', 'text-light')} />
+ <KeyIcon size={8} strokeWidth={1} className={cn('shrink-0', 'text-light')} />
)}
{column.isNullable && (
<DiamondIcon size={8} strokeWidth={1} className="shrink-0 text-light" />
@@ -263,10 +263,10 @@ const TableNodeComponent = ({
/>
)}
{column.isUnique && (
- <Fingerprint size={8} strokeWidth={1} className="shrink-0 text-light" />
+ <FingerprintIcon size={8} strokeWidth={1} className="shrink-0 text-light" />
)}
{column.isIdentity && (
- <Hash size={8} strokeWidth={1} className="shrink-0 text-light" />
+ <HashIcon size={8} strokeWidth={1} className="shrink-0 text-light" />
)}
</div>
<div className="flex w-full justify-between min-w-0">
@@ -309,7 +309,7 @@ const TableNodeComponent = ({
// Use opacity to hide the button so that it remains accessible (users can tab to it)
className="opacity-0 focus:opacity-100 group-hover:opacity-100 data-open:opacity-100 absolute right-0 top-1/2 -translate-y-1/2 px-0 mr-1 w-[16px] h-[16px] rounded-sm"
>
- <MoreVertical size={10} />
+ <MoreVerticalIcon size={10} />
<span className="sr-only">
{data.name} {column.name} actions
</span>
@@ -323,7 +323,7 @@ const TableNodeComponent = ({
onClick={() => schemaGraphContext.onEditColumn(data.id, column.id)}
className="space-x-2"
>
- <Edit size={12} />
+ <EditIcon size={12} />
<p>Edit column</p>
</DropdownMenuItem>
</TooltipTrigger>
@@ -341,7 +341,7 @@ const TableNodeComponent = ({
copyToClipboard(column.name)
}}
>
- <Copy size={12} />
+ <CopyIcon size={12} />
<span>Copy name</span>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx b/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx
index ef8e216691c..0bbd9bf6aa5 100644
--- a/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx
+++ b/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx
@@ -2,20 +2,20 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import { noop } from 'lodash'
import {
- Braces,
- Calendar,
+ BracesIcon,
+ CalendarIcon,
DiamondIcon,
- Fingerprint,
- Hash,
- Key,
- Link as LinkIcon,
- ListPlus,
- MoreVertical,
- Plus,
- Search,
- ToggleRight,
- Trash,
- Type,
+ FingerprintIcon,
+ HashIcon,
+ KeyIcon,
+ LinkIcon,
+ ListPlusIcon,
+ MoreVerticalIcon,
+ PlusIcon,
+ SearchIcon,
+ ToggleRightIcon,
+ TrashIcon,
+ TypeIcon,
} from 'lucide-react'
import { useState } from 'react'
import {
@@ -66,32 +66,32 @@ const getColumnTypeAffordancePresentation = (column: SafePostgresColumn) => {
switch (kind) {
case 'number':
return {
- icon: <Hash size={14} className={iconClassName} strokeWidth={1.5} />,
+ icon: <HashIcon size={14} className={iconClassName} strokeWidth={1.5} />,
label,
}
case 'time':
return {
- icon: <Calendar size={14} className={iconClassName} strokeWidth={1.5} />,
+ icon: <CalendarIcon size={14} className={iconClassName} strokeWidth={1.5} />,
label,
}
case 'text':
return {
- icon: <Type size={14} className={iconClassName} strokeWidth={1.5} />,
+ icon: <TypeIcon size={14} className={iconClassName} strokeWidth={1.5} />,
label,
}
case 'json':
return {
- icon: <Braces size={14} className={iconClassName} strokeWidth={1.5} />,
+ icon: <BracesIcon size={14} className={iconClassName} strokeWidth={1.5} />,
label,
}
case 'bool':
return {
- icon: <ToggleRight size={14} className={iconClassName} strokeWidth={1.5} />,
+ icon: <ToggleRightIcon size={14} className={iconClassName} strokeWidth={1.5} />,
label,
}
default:
return {
- icon: <ListPlus size={16} className={iconClassName} strokeWidth={1.5} />,
+ icon: <ListPlusIcon size={16} className={iconClassName} strokeWidth={1.5} />,
label,
}
}
@@ -153,12 +153,12 @@ export const ColumnList = ({
placeholder="Filter columns"
value={filterString}
onChange={(e) => setFilterString(e.target.value)}
- icon={<Search />}
+ icon={<SearchIcon />}
/>
</div>
{!isSchemaLocked && isTableEntity && (
<ButtonTooltip
- icon={<Plus />}
+ icon={<PlusIcon />}
disabled={!canUpdateColumns}
onClick={() => onAddColumn()}
tooltip={{
@@ -242,14 +242,14 @@ export const ColumnList = ({
{isSuccess &&
columns.map((column) => {
- const { icon: TypeIcon, label: typeLabel } =
+ const { icon: typeIcon, label: typeLabel } =
getColumnTypeAffordancePresentation(column)
const constraintTokens = [
primaryKeyColumns.has(column.name) ? (
<ConstraintToken
key="primary"
- icon={<Key size={12} strokeWidth={1.7} className="shrink-0" />}
+ icon={<KeyIcon size={12} strokeWidth={1.7} className="shrink-0" />}
label="Primary"
variant="primary"
/>
@@ -271,7 +271,7 @@ export const ColumnList = ({
<ConstraintToken
key="unique"
icon={
- <Fingerprint
+ <FingerprintIcon
size={12}
strokeWidth={1.7}
className="shrink-0 text-foreground-light"
@@ -284,7 +284,7 @@ export const ColumnList = ({
<ConstraintToken
key="identity"
icon={
- <Hash
+ <HashIcon
size={12}
strokeWidth={1.7}
className="shrink-0 text-foreground-lighter"
@@ -313,7 +313,7 @@ export const ColumnList = ({
<TableCell className="w-0 pl-5! pr-1!">
<Tooltip>
<TooltipTrigger asChild className="cursor-default" aria-label={typeLabel}>
- <div className="flex w-4 justify-center">{TypeIcon}</div>
+ <div className="flex w-4 justify-center">{typeIcon}</div>
</TooltipTrigger>
<TooltipContent side="bottom">
<div className="flex flex-col">
@@ -382,7 +382,7 @@ export const ColumnList = ({
// Tooltip repeats the label; screen readers would read it twice
aria-describedby={undefined}
className="px-1"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
/>
</DropdownMenuTrigger>
</TooltipTrigger>
@@ -398,7 +398,7 @@ export const ColumnList = ({
onClick={() => onDeleteColumn(column)}
className="gap-x-2"
>
- <Trash size={12} />
+ <TrashIcon size={12} />
<p>Delete column</p>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Database/Tables/TableList.tsx b/apps/studio/components/interfaces/Database/Tables/TableList.tsx
index 38947732363..b72921baca7 100644
--- a/apps/studio/components/interfaces/Database/Tables/TableList.tsx
+++ b/apps/studio/components/interfaces/Database/Tables/TableList.tsx
@@ -3,16 +3,16 @@ import { useDebounce, useIntersectionObserver } from '@uidotdev/usehooks'
import { useParams } from 'common'
import { noop } from 'lodash'
import {
- Check,
- ChevronDown,
- Copy,
- Edit,
- Eye,
- MoreVertical,
- Plus,
- Search,
- Trash,
- X,
+ CheckIcon,
+ ChevronDownIcon,
+ CopyIcon,
+ EditIcon,
+ EyeIcon,
+ MoreVerticalIcon,
+ PlusIcon,
+ SearchIcon,
+ TrashIcon,
+ XIcon,
} from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
@@ -284,7 +284,7 @@ export const TableList = ({
value={filterString}
onChange={(e) => setFilterString(e.target.value)}
onKeyDown={onSearchInputEscape(filterString, setFilterString)}
- icon={<Search />}
+ icon={<SearchIcon />}
/>
<Popover>
@@ -292,7 +292,7 @@ export const TableList = ({
<Button
size="tiny"
variant={hasFiltersApplied ? 'default' : 'dashed'}
- iconRight={<ChevronDown />}
+ iconRight={<ChevronDownIcon />}
>
Entity Type
</Button>
@@ -345,7 +345,7 @@ export const TableList = ({
<Button
variant="primary"
className="w-auto ml-auto"
- icon={<Plus />}
+ icon={<PlusIcon />}
onClick={() => onAddTable()}
>
New table
@@ -355,7 +355,7 @@ export const TableList = ({
<ButtonTooltip
variant="primary"
className="w-auto ml-auto"
- icon={<Plus />}
+ icon={<PlusIcon />}
disabled
tooltip={{
content: {
@@ -498,12 +498,12 @@ export const TableList = ({
(table) => table.id === x.id
) ? (
<div className="flex items-center gap-x-2">
- <Check size={16} strokeWidth={2} className="text-primary" />
+ <CheckIcon size={16} strokeWidth={2} className="text-primary" />
<p className="text-foreground-light">Enabled</p>
</div>
) : (
<div className="flex items-center gap-x-2">
- <X size={16} strokeWidth={2} className="text-foreground-muted" />
+ <XIcon size={16} strokeWidth={2} className="text-foreground-muted" />
<p className="text-foreground-lighter">Disabled</p>
</div>
)}
@@ -523,7 +523,7 @@ export const TableList = ({
<DropdownMenuTrigger asChild>
<Button
className="px-1"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
aria-label={`Table ${x.name} actions`}
/>
</DropdownMenuTrigger>
@@ -548,7 +548,7 @@ export const TableList = ({
})
}
>
- <Eye size={12} />
+ <EyeIcon size={12} />
<p>View in Table Editor</p>
</DropdownMenuItem>
@@ -568,7 +568,7 @@ export const TableList = ({
},
}}
>
- <Edit size={12} />
+ <EditIcon size={12} />
<p>Edit table</p>
</DropdownMenuItemTooltip>
<DropdownMenuItemTooltip
@@ -585,7 +585,7 @@ export const TableList = ({
},
}}
>
- <Copy size={12} />
+ <CopyIcon size={12} />
<span>Duplicate Table</span>
</DropdownMenuItemTooltip>
<DropdownMenuSeparator />
@@ -604,7 +604,7 @@ export const TableList = ({
},
}}
>
- <Trash size={12} />
+ <TrashIcon size={12} />
<p>Delete table</p>
</DropdownMenuItemTooltip>
</>
diff --git a/apps/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx b/apps/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx
index 3ed36676340..f03eed8ba90 100644
--- a/apps/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { map as lodashMap, uniqBy } from 'lodash'
-import { HelpCircle, Terminal } from 'lucide-react'
+import { HelpCircleIcon, TerminalIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Button, SidePanel } from 'ui'
@@ -74,7 +74,7 @@ const NoticeBox = () => {
return (
<div className="px-6">
<InformationBox
- icon={<HelpCircle size="20" strokeWidth={1.5} />}
+ icon={<HelpCircleIcon size="20" strokeWidth={1.5} />}
title="Only functions that return a trigger will be displayed below"
description={`You can make functions by using the Database Functions`}
button={
@@ -150,7 +150,7 @@ const Function = ({ id, completeStatement, name, onClick }: FunctionProps) => {
<div className="flex items-center justify-between space-x-3">
<div className="flex items-center space-x-3">
<div className="flex items-center justify-center rounded-sm bg-foreground p-1 text-background">
- <Terminal strokeWidth={2} size={14} />
+ <TerminalIcon strokeWidth={2} size={14} />
</div>
<p className="mb-0 text-sm">{name}</p>
</div>
diff --git a/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggerList.tsx b/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggerList.tsx
index db69c8a3c70..13e78d38b8d 100644
--- a/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggerList.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggerList.tsx
@@ -1,6 +1,14 @@
import { useParams } from 'common'
import { includes, sortBy } from 'lodash'
-import { Check, Copy, Edit, Edit2, MoreVertical, Trash, X } from 'lucide-react'
+import {
+ CheckIcon,
+ CopyIcon,
+ Edit2Icon,
+ EditIcon,
+ MoreVerticalIcon,
+ TrashIcon,
+ XIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { useMemo } from 'react'
import {
@@ -133,9 +141,9 @@ export const EventTriggerList = ({
<TableCell>
<div className="flex items-center justify-center">
{trigger.enabled_mode !== 'DISABLED' ? (
- <Check strokeWidth={2} className="text-primary" />
+ <CheckIcon strokeWidth={2} className="text-primary" />
) : (
- <X strokeWidth={2} />
+ <XIcon strokeWidth={2} />
)}
</div>
</TableCell>
@@ -143,25 +151,29 @@ export const EventTriggerList = ({
{canEditTrigger ? (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button aria-label="More options" className="px-1" icon={<MoreVertical />} />
+ <Button
+ aria-label="More options"
+ className="px-1"
+ icon={<MoreVerticalIcon />}
+ />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-52">
<DropdownMenuItem className="space-x-2" onClick={() => onEditTrigger(trigger)}>
- <Edit2 size={14} />
+ <Edit2Icon size={14} />
<p>Edit trigger</p>
</DropdownMenuItem>
<DropdownMenuItem
className="space-x-2"
onClick={() => onEditTriggerWithAssistant(trigger)}
>
- <Edit size={14} />
+ <EditIcon size={14} />
<p>Edit with Assistant</p>
</DropdownMenuItem>
<DropdownMenuItem
className="space-x-2"
onClick={() => onDuplicateTrigger(trigger)}
>
- <Copy size={14} />
+ <CopyIcon size={14} />
<p>Duplicate trigger</p>
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -169,7 +181,7 @@ export const EventTriggerList = ({
className="space-x-2"
onClick={() => onDeleteTrigger(trigger)}
>
- <Trash stroke="red" size={14} />
+ <TrashIcon stroke="red" size={14} />
<p>Delete trigger</p>
</DropdownMenuItem>
</DropdownMenuContent>
@@ -178,7 +190,7 @@ export const EventTriggerList = ({
<ButtonTooltip
disabled
className="px-1"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
tooltip={{
content: {
side: 'bottom',
diff --git a/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggersList.tsx b/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggersList.tsx
index c9ab412753f..733e55e21cd 100644
--- a/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggersList.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/EventTriggersList/EventTriggersList.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { DatabaseZap, Plus, Search } from 'lucide-react'
+import { DatabaseZapIcon, PlusIcon, SearchIcon } from 'lucide-react'
import { parseAsJson, parseAsString, useQueryState } from 'nuqs'
import { useMemo, useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -202,7 +202,7 @@ export const EventTriggersList = () => {
onKeyDown={onSearchInputEscape(filterString, setFilterString)}
/>
<InputGroupAddon>
- <Search />
+ <SearchIcon />
</InputGroupAddon>
</InputGroup>
<ReportsSelectFilter
@@ -225,14 +225,14 @@ export const EventTriggersList = () => {
onTrigger={createEventTrigger}
side="bottom"
>
- <Button variant="primary" icon={<Plus size={12} />} onClick={createEventTrigger}>
+ <Button variant="primary" icon={<PlusIcon size={12} />} onClick={createEventTrigger}>
New trigger
</Button>
</Shortcut>
) : (
<ButtonTooltip
variant="primary"
- icon={<Plus size={12} />}
+ icon={<PlusIcon size={12} />}
disabled
tooltip={{
content: {
@@ -249,7 +249,7 @@ export const EventTriggersList = () => {
{showEmptyState ? (
<EmptyStatePresentational
- icon={DatabaseZap}
+ icon={DatabaseZapIcon}
title="No event triggers yet"
description="Event triggers run on database-level events like DDL commands."
>
diff --git a/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx b/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx
index e98c53c8690..475e39131bb 100644
--- a/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/TriggerSheet.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import type { PGTrigger } from '@supabase/pg-meta'
-import { Terminal } from 'lucide-react'
+import { TerminalIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { SubmitHandler, useForm, useWatch } from 'react-hook-form'
import { toast } from 'sonner'
@@ -432,7 +432,7 @@ export const TriggerSheet = ({
onClick={() => setShowFunctionSelector(true)}
>
<FormBoxEmpty
- icon={<Terminal size={14} strokeWidth={2} />}
+ icon={<TerminalIcon size={14} strokeWidth={2} />}
text="Choose a function to trigger"
/>
</button>
@@ -446,7 +446,7 @@ export const TriggerSheet = ({
>
<div className="flex items-center gap-2">
<div className="flex h-6 w-6 items-center justify-center rounded-sm bg-foreground text-background focus-within:bg-foreground/10">
- <Terminal size="18" strokeWidth={2} width={14} />
+ <TerminalIcon size="18" strokeWidth={2} width={14} />
</div>
<p>
<span className="text-sm text-foreground-light">
diff --git a/apps/studio/components/interfaces/Database/Triggers/TriggersList/CreateTriggerButtons.tsx b/apps/studio/components/interfaces/Database/Triggers/TriggersList/CreateTriggerButtons.tsx
index cdbfbe4ea8a..83db815ea38 100644
--- a/apps/studio/components/interfaces/Database/Triggers/TriggersList/CreateTriggerButtons.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/TriggersList/CreateTriggerButtons.tsx
@@ -1,4 +1,4 @@
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import { AiIconAnimation } from 'ui'
import { SIDEBAR_KEYS } from '@/components/layouts/ProjectLayout/LayoutSidebar/LayoutSidebarProvider'
@@ -33,7 +33,7 @@ export const CreateTriggerButtons = ({
disabled={!hasTables || !canCreateTriggers}
onClick={onCreateTrigger}
className="grow"
- icon={showPlusIcon ? <Plus /> : undefined}
+ icon={showPlusIcon ? <PlusIcon /> : undefined}
tooltip={{
content: {
side: 'bottom',
diff --git a/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx b/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx
index 6a1ce6b2442..7c829e7989b 100644
--- a/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx
@@ -1,7 +1,15 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import { includes, sortBy } from 'lodash'
-import { Check, Copy, Edit, Edit2, MoreVertical, Trash, X } from 'lucide-react'
+import {
+ CheckIcon,
+ CopyIcon,
+ Edit2Icon,
+ EditIcon,
+ MoreVerticalIcon,
+ TrashIcon,
+ XIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { parseAsJson, parseAsString, useQueryState } from 'nuqs'
import {
@@ -157,9 +165,9 @@ export const TriggerList = ({ editTrigger, duplicateTrigger, deleteTrigger }: Tr
<TableCell>
<div className="flex items-center justify-center">
{x.enabled_mode !== 'DISABLED' ? (
- <Check strokeWidth={2} className="text-primary" />
+ <CheckIcon strokeWidth={2} className="text-primary" />
) : (
- <X strokeWidth={2} />
+ <XIcon strokeWidth={2} />
)}
</div>
</TableCell>
@@ -175,7 +183,7 @@ export const TriggerList = ({ editTrigger, duplicateTrigger, deleteTrigger }: Tr
<Button
aria-label={`${x.function_name} actions`}
className="px-1"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
/>
</DropdownMenuTrigger>
</TooltipTrigger>
@@ -188,7 +196,7 @@ export const TriggerList = ({ editTrigger, duplicateTrigger, deleteTrigger }: Tr
editTrigger(x)
}}
>
- <Edit2 size={14} />
+ <Edit2Icon size={14} />
<p>Edit trigger</p>
</DropdownMenuItem>
<DropdownMenuItem
@@ -222,16 +230,16 @@ export const TriggerList = ({ editTrigger, duplicateTrigger, deleteTrigger }: Tr
})
}}
>
- <Edit size={14} />
+ <EditIcon size={14} />
<p>Edit with Assistant</p>
</DropdownMenuItem>
<DropdownMenuItem className="space-x-2" onClick={() => duplicateTrigger(x)}>
- <Copy size={14} />
+ <CopyIcon size={14} />
<p>Duplicate trigger</p>
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem className="space-x-2" onClick={() => deleteTrigger(x)}>
- <Trash stroke="red" size={14} />
+ <TrashIcon stroke="red" size={14} />
<p>Delete trigger</p>
</DropdownMenuItem>
</DropdownMenuContent>
@@ -240,7 +248,7 @@ export const TriggerList = ({ editTrigger, duplicateTrigger, deleteTrigger }: Tr
<ButtonTooltip
disabled
className="px-1"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
tooltip={{
content: {
side: 'bottom',
diff --git a/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx b/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx
index c27c968c327..1d8f09f52f0 100644
--- a/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx
+++ b/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx
@@ -1,6 +1,6 @@
import { safeSql } from '@supabase/pg-meta'
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { DatabaseZap, Search } from 'lucide-react'
+import { DatabaseZapIcon, SearchIcon } from 'lucide-react'
import { parseAsBoolean, parseAsJson, parseAsString, useQueryState } from 'nuqs'
import { useEffect, useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -264,7 +264,7 @@ execute function function_name();`
onKeyDown={onSearchInputEscape(filterString, setFilterString)}
/>
<InputGroupAddon>
- <Search />
+ <SearchIcon />
</InputGroupAddon>
</InputGroup>
<ReportsSelectFilter
@@ -293,7 +293,7 @@ execute function function_name();`
{!isSchemaLocked && (schemaTriggers ?? []).length === 0 ? (
<EmptyStatePresentational
- icon={DatabaseZap}
+ icon={DatabaseZapIcon}
title="Add your first trigger"
description="Make your database reactive. Send updates in realtime, call edge functions, or validate data as it comes in."
>
diff --git a/apps/studio/components/interfaces/DiskManagement/ComputeAndDiskUsageCharts.tsx b/apps/studio/components/interfaces/DiskManagement/ComputeAndDiskUsageCharts.tsx
index 2a2f8aeff6a..74f64c0e5a1 100644
--- a/apps/studio/components/interfaces/DiskManagement/ComputeAndDiskUsageCharts.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/ComputeAndDiskUsageCharts.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { Activity, BarChart2, Database } from 'lucide-react'
+import { ActivityIcon, BarChart2Icon, DatabaseIcon } from 'lucide-react'
import { useMemo } from 'react'
import type { ChartConfig } from 'ui'
import { cn } from 'ui'
@@ -210,14 +210,14 @@ export const ComputeAndDiskUsageCharts = ({ className }: { className?: string })
errorState={
<ChartEmptyState
className="h-48 border-x-0 border-b-0"
- icon={<Activity size={16} />}
+ icon={<ActivityIcon size={16} />}
title="Failed to load usage data"
/>
}
emptyState={
<ChartEmptyState
className="h-48 border-x-0 border-b-0"
- icon={<Activity size={16} />}
+ icon={<ActivityIcon size={16} />}
title="No compute data"
description="Usage data may take a few minutes to appear."
/>
@@ -292,14 +292,14 @@ export const ComputeAndDiskUsageCharts = ({ className }: { className?: string })
errorState={
<ChartEmptyState
className="h-48 border-x-0 border-b-0"
- icon={<BarChart2 size={16} />}
+ icon={<BarChart2Icon size={16} />}
title="Failed to load usage data"
/>
}
emptyState={
<ChartEmptyState
className="h-48 border-x-0 border-b-0"
- icon={<Database size={16} />}
+ icon={<DatabaseIcon size={16} />}
title="No disk data"
description="Disk metrics may take a few minutes to appear."
/>
diff --git a/apps/studio/components/interfaces/DiskManagement/DiskManagementRestartRequiredSection.tsx b/apps/studio/components/interfaces/DiskManagement/DiskManagementRestartRequiredSection.tsx
index b349d2adad9..ec97d669a93 100644
--- a/apps/studio/components/interfaces/DiskManagement/DiskManagementRestartRequiredSection.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/DiskManagementRestartRequiredSection.tsx
@@ -1,4 +1,4 @@
-import { RotateCcw } from 'lucide-react'
+import { RotateCcwIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { DialogSection, WarningIcon } from 'ui'
@@ -25,7 +25,7 @@ export const DiskMangementRestartRequiredSection = ({
<DialogSection className="bg-surface-100 text-sm text-foreground-light flex items-center gap-4 relative w-full rounded-md border-spacing-0 border">
<div className="w-12 h-12">
<div className="relative w-10 h-10 m-1 bg-alternative text-foreground border rounded-full flex items-center justify-center">
- <RotateCcw strokeWidth={1} />
+ <RotateCcwIcon strokeWidth={1} />
<WarningIcon className="absolute -right-1.5 -top-1.5" />
</div>
</div>
diff --git a/apps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog/DiskManagementReviewAndSubmitDialog.tsx b/apps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog/DiskManagementReviewAndSubmitDialog.tsx
index 748f2349a23..d4441a2604b 100644
--- a/apps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog/DiskManagementReviewAndSubmitDialog.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/DiskManagementReviewAndSubmitDialog/DiskManagementReviewAndSubmitDialog.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { ArrowRight } from 'lucide-react'
+import { ArrowRightIcon } from 'lucide-react'
import { UseFormReturn } from 'react-hook-form'
import {
Alert,
@@ -140,7 +140,11 @@ export const DiskManagementReviewAndSubmitDialog = ({
<div className="animate-badge-pulse absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-9 h-9 rounded-full bg-dash-sidebar border border-brand-500 flex items-center justify-center z-10 overflow-hidden">
<span className="absolute inset-0 bg-brand-default/10 rounded-full" />
<span className="animate-badge-shimmer pointer-events-none absolute inset-0 bg-linear-to-br from-transparent via-brand-default/20 to-transparent blur-md" />
- <ArrowRight size={16} className="text-brand-600 relative z-10" strokeWidth={2.5} />
+ <ArrowRightIcon
+ size={16}
+ className="text-brand-600 relative z-10"
+ strokeWidth={2.5}
+ />
</div>
<div className="flex-1 flex flex-col items-center gap-2 py-6 px-4 bg-linear-to-t from-[var(--background-surface-100)] to-transparent">
diff --git a/apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx b/apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx
index 93e50c91dc4..e3a779241da 100644
--- a/apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx
@@ -1,6 +1,6 @@
import { SupportCategories } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { CpuIcon, Lock, Microchip } from 'lucide-react'
+import { CpuIcon, LockIcon, MicrochipIcon } from 'lucide-react'
import { useMemo } from 'react'
import { UseFormReturn, useWatch } from 'react-hook-form'
import {
@@ -223,7 +223,7 @@ export function ComputeSizeField({ form, disabled }: ComputeSizeFieldProps) {
<div className="flex items-center space-x-1">
{lockedOption && (
<div className="bg border rounded-lg h-7 w-7 flex items-center justify-center">
- <Lock size={14} />
+ <LockIcon size={14} />
</div>
)}
{!lockedOption && showComputePrice && (
@@ -247,7 +247,7 @@ export function ComputeSizeField({ form, disabled }: ComputeSizeFieldProps) {
<div className="w-full">
<div className="px-3 text-sm flex flex-col gap-1">
<div className="text-foreground-light flex gap-2 items-center">
- <Microchip
+ <MicrochipIcon
strokeWidth={1}
size={14}
className="text-foreground-lighter"
@@ -306,7 +306,7 @@ export function ComputeSizeField({ form, disabled }: ComputeSizeFieldProps) {
<div className="w-full">
<div className="px-3 text-sm flex flex-col gap-1">
<div className="text-foreground-light flex gap-2 items-center">
- <Microchip
+ <MicrochipIcon
strokeWidth={1}
size={14}
className="text-foreground-lighter"
diff --git a/apps/studio/components/interfaces/DiskManagement/fields/DiskSizeField.tsx b/apps/studio/components/interfaces/DiskManagement/fields/DiskSizeField.tsx
index ad2e4b2e68f..5da346cc5b8 100644
--- a/apps/studio/components/interfaces/DiskManagement/fields/DiskSizeField.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/fields/DiskSizeField.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { RotateCcw } from 'lucide-react'
+import { RotateCcwIcon } from 'lucide-react'
import { useFormState, useWatch, type UseFormReturn } from 'react-hook-form'
import {
Button,
@@ -170,7 +170,7 @@ export function DiskSizeField({ form, disableInput }: DiskSizeFieldProps) {
}}
title="Reset"
>
- <RotateCcw className="h-4 w-4" aria-hidden="true" />
+ <RotateCcwIcon className="h-4 w-4" aria-hidden="true" />
</InputGroupButton>
) : null}
</InputGroupAddon>
diff --git a/apps/studio/components/interfaces/DiskManagement/ui/BillingChangeBadge.tsx b/apps/studio/components/interfaces/DiskManagement/ui/BillingChangeBadge.tsx
index c4e4b004d97..63067c6d49d 100644
--- a/apps/studio/components/interfaces/DiskManagement/ui/BillingChangeBadge.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/ui/BillingChangeBadge.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { Badge, cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -44,7 +44,7 @@ export const BillingChangeBadge = ({
<span className="text-xs font-mono text-foreground-muted" translate="no">
{formatCurrency(beforePrice)}
</span>
- <ChevronRight size={12} strokeWidth={2} className="text-foreground-muted" />
+ <ChevronRightIcon size={12} strokeWidth={2} className="text-foreground-muted" />
<motion.span
key={afterPrice} // This key will change whenever any form value changes
className={cn(
diff --git a/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx b/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx
index 7d4dc6cecea..efa50ecced6 100644
--- a/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/ui/DiskSpaceBar.tsx
@@ -1,6 +1,6 @@
import MotionNumber from '@number-flow/react'
import { useParams } from 'common'
-import { Info } from 'lucide-react'
+import { InfoIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { useTheme } from 'next-themes'
import { useMemo } from 'react'
@@ -185,7 +185,7 @@ export const DiskSpaceBar = ({ form }: DiskSpaceBarProps) => {
<Tooltip>
<TooltipTrigger asChild>
<div className="flex items-center justify-center cursor-help text-foreground-lighter hover:text-foreground transition-colors">
- <Info size={14} />
+ <InfoIcon size={14} />
</div>
</TooltipTrigger>
<TooltipContent
diff --git a/apps/studio/components/interfaces/Docs/Description.tsx b/apps/studio/components/interfaces/Docs/Description.tsx
index 7bf0677eac7..2eab2aa8b0a 100644
--- a/apps/studio/components/interfaces/Docs/Description.tsx
+++ b/apps/studio/components/interfaces/Docs/Description.tsx
@@ -1,7 +1,7 @@
import { ident, literal, safeSql, type SafeSqlFragment } from '@supabase/pg-meta/src/pg-format'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { noop } from 'lodash'
-import { Loader } from 'lucide-react'
+import { LoaderIcon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import { Button, ExpandingTextArea } from 'ui'
@@ -109,7 +109,7 @@ const Description = ({ content, metadata, onChange = noop }: DescrptionProps) =>
</Button>
<Button variant="primary" disabled={!hasChanged} onClick={updateDescription}>
{isUpdating ? (
- <Loader className="mx-auto animate-spin" size={14} strokeWidth={2} />
+ <LoaderIcon className="mx-auto animate-spin" size={14} strokeWidth={2} />
) : (
<span>Save</span>
)}
diff --git a/apps/studio/components/interfaces/Docs/GeneratingTypes.tsx b/apps/studio/components/interfaces/Docs/GeneratingTypes.tsx
index ded66e268a5..e7faa7eeacd 100644
--- a/apps/studio/components/interfaces/Docs/GeneratingTypes.tsx
+++ b/apps/studio/components/interfaces/Docs/GeneratingTypes.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Download } from 'lucide-react'
+import { DownloadIcon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import { Button } from 'ui'
@@ -76,7 +76,7 @@ export function GeneratingTypes({ selectedLang }: Props) {
<Button
disabled={isGeneratingTypes}
loading={isGeneratingTypes}
- icon={<Download strokeWidth={1.5} />}
+ icon={<DownloadIcon strokeWidth={1.5} />}
onClick={onClickGenerateTypes}
>
Generate and download types
diff --git a/apps/studio/components/interfaces/Docs/LangSelector.tsx b/apps/studio/components/interfaces/Docs/LangSelector.tsx
index 791ca779b2a..48f564d925c 100644
--- a/apps/studio/components/interfaces/Docs/LangSelector.tsx
+++ b/apps/studio/components/interfaces/Docs/LangSelector.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { EyeOff, Key } from 'lucide-react'
+import { EyeOffIcon, KeyIcon } from 'lucide-react'
import { useMemo } from 'react'
import {
Button,
@@ -81,9 +81,9 @@ export const LangSelector = ({
<DropdownMenuTrigger asChild>
<Button size="tiny" className="p-0 h-7 w-7">
{selectedApiKey.key === DEFAULT_KEY.key ? (
- <EyeOff size={12} strokeWidth={1.5} />
+ <EyeOffIcon size={12} strokeWidth={1.5} />
) : (
- <Key size={12} strokeWidth={1.5} />
+ <KeyIcon size={12} strokeWidth={1.5} />
)}
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Docs/ResourceContent.tsx b/apps/studio/components/interfaces/Docs/ResourceContent.tsx
index fd4093974e0..4ae799e5ef1 100644
--- a/apps/studio/components/interfaces/Docs/ResourceContent.tsx
+++ b/apps/studio/components/interfaces/Docs/ResourceContent.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Table2 } from 'lucide-react'
+import { Table2Icon } from 'lucide-react'
import { DocSection } from './DocSection'
import CodeSnippet from '@/components/interfaces/Docs/CodeSnippet'
@@ -55,7 +55,7 @@ export const ResourceContent = ({
<DocSection
title={
<span className="flex items-center gap-2 text-subTitle">
- <Table2 size={16} strokeWidth={1.5} />
+ <Table2Icon size={16} strokeWidth={1.5} />
{resourceId}
</span>
}
diff --git a/apps/studio/components/interfaces/EdgeFunctions/DeployEdgeFunctionButton.tsx b/apps/studio/components/interfaces/EdgeFunctions/DeployEdgeFunctionButton.tsx
index 5da03e0257e..864bc89175a 100644
--- a/apps/studio/components/interfaces/EdgeFunctions/DeployEdgeFunctionButton.tsx
+++ b/apps/studio/components/interfaces/EdgeFunctions/DeployEdgeFunctionButton.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ChevronDown, Code, Terminal } from 'lucide-react'
+import { ChevronDownIcon, CodeIcon, TerminalIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { parseAsString, useQueryState } from 'nuqs'
import {
@@ -33,7 +33,7 @@ export const DeployEdgeFunctionButton = () => {
<ButtonTooltip
variant="primary"
disabled={!isProjectActive}
- iconRight={<ChevronDown className="w-4 h-4" strokeWidth={1.5} />}
+ iconRight={<ChevronDownIcon className="w-4 h-4" strokeWidth={1.5} />}
tooltip={{
content: {
side: 'bottom',
@@ -54,7 +54,7 @@ export const DeployEdgeFunctionButton = () => {
}}
className="gap-4"
>
- <Code className="shrink-0" size={16} strokeWidth={1.5} />
+ <CodeIcon className="shrink-0" size={16} strokeWidth={1.5} />
<div>
<span className="text-foreground">Via Editor</span>
<p>Write and deploy in the browser</p>
@@ -67,7 +67,7 @@ export const DeployEdgeFunctionButton = () => {
track('edge_function_via_cli_button_clicked', { origin: 'secondary_action' })
}}
>
- <Terminal className="shrink-0" size={16} strokeWidth={1.5} />
+ <TerminalIcon className="shrink-0" size={16} strokeWidth={1.5} />
<div>
<span className="text-foreground">Via CLI</span>
<p>Write locally, deploy with the CLI</p>
diff --git a/apps/studio/components/interfaces/EdgeFunctions/EdgeFunctionsSortDropdown.tsx b/apps/studio/components/interfaces/EdgeFunctions/EdgeFunctionsSortDropdown.tsx
index efc255dbad6..e0d61a65cf3 100644
--- a/apps/studio/components/interfaces/EdgeFunctions/EdgeFunctionsSortDropdown.tsx
+++ b/apps/studio/components/interfaces/EdgeFunctions/EdgeFunctionsSortDropdown.tsx
@@ -1,4 +1,4 @@
-import { ArrowDownNarrowWide, ArrowDownWideNarrow } from 'lucide-react'
+import { ArrowDownNarrowWideIcon, ArrowDownWideNarrowIcon } from 'lucide-react'
import {
Button,
DropdownMenu,
@@ -45,9 +45,9 @@ export const EdgeFunctionsSortDropdown = ({ value, onChange }: EdgeFunctionsSort
<Button
icon={
value.includes('desc') ? (
- <ArrowDownWideNarrow size={14} />
+ <ArrowDownWideNarrowIcon size={14} />
) : (
- <ArrowDownNarrowWide size={14} />
+ <ArrowDownNarrowWideIcon size={14} />
)
}
>
diff --git a/apps/studio/components/interfaces/ErrorHandling/TroubleshootingSections.tsx b/apps/studio/components/interfaces/ErrorHandling/TroubleshootingSections.tsx
index 6ecd2bd8530..01dffbdd5ba 100644
--- a/apps/studio/components/interfaces/ErrorHandling/TroubleshootingSections.tsx
+++ b/apps/studio/components/interfaces/ErrorHandling/TroubleshootingSections.tsx
@@ -1,6 +1,6 @@
'use client'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import { useState } from 'react'
import { AccordionContent, AccordionItem, AccordionTrigger, Button } from 'ui'
@@ -116,7 +116,7 @@ export function TroubleshootingGuideSection({
ctaType: 'troubleshooting_guide',
})
}
- iconRight={<ExternalLink />}
+ iconRight={<ExternalLinkIcon />}
>
<a href={href} target="_blank" rel="noopener noreferrer">
View troubleshooting guide
diff --git a/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.Header.tsx b/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.Header.tsx
index 4b52951057f..5d50ab3ae90 100644
--- a/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.Header.tsx
+++ b/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.Header.tsx
@@ -1,4 +1,4 @@
-import { Code, Eye, HelpCircle } from 'lucide-react'
+import { CodeIcon, EyeIcon, HelpCircleIcon } from 'lucide-react'
import { Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { buildExplainPrompt } from './ExplainVisualizer.ai'
@@ -76,7 +76,7 @@ export function ExplainHeader({ mode, onToggleMode, summary, id, rows }: Explain
<h3 className="font-medium text-foreground">Query Execution Plan</h3>
<Tooltip>
<TooltipTrigger>
- <HelpCircle
+ <HelpCircleIcon
size="14"
strokeWidth={2}
className="text-foreground-lighter hover:text-foreground-light transition-colors cursor-help"
@@ -134,7 +134,7 @@ export function ExplainHeader({ mode, onToggleMode, summary, id, rows }: Explain
)}
<Button
size="tiny"
- icon={isVisual ? <Code size={14} /> : <Eye size={14} />}
+ icon={isVisual ? <CodeIcon size={14} /> : <EyeIcon size={14} />}
onClick={onToggleMode}
>
{isVisual ? 'Raw' : 'Visual'}
diff --git a/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.NodeRow.tsx b/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.NodeRow.tsx
index 71579244113..15d4eb18190 100644
--- a/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.NodeRow.tsx
+++ b/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.NodeRow.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown, ChevronRight } from 'lucide-react'
+import { ChevronDownIcon, ChevronRightIcon } from 'lucide-react'
import { useState } from 'react'
import { cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -59,9 +59,9 @@ export function ExplainNodeRow({ node, depth, maxDuration }: ExplainNodeRowProps
aria-label={isExpanded ? 'Collapse details' : 'Expand details'}
>
{isExpanded ? (
- <ChevronDown size={12} className="text-foreground-light" />
+ <ChevronDownIcon size={12} className="text-foreground-light" />
) : (
- <ChevronRight size={12} className="text-foreground-light" />
+ <ChevronRightIcon size={12} className="text-foreground-light" />
)}
</button>
diff --git a/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.RowCountIndicator.tsx b/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.RowCountIndicator.tsx
index c9d291756d4..134535f0497 100644
--- a/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.RowCountIndicator.tsx
+++ b/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.RowCountIndicator.tsx
@@ -1,4 +1,4 @@
-import { ArrowRight } from 'lucide-react'
+import { ArrowRightIcon } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from 'ui'
interface RowCountIndicatorProps {
@@ -29,11 +29,11 @@ export function RowCountIndicator({
<TooltipTrigger asChild>
<div className="flex items-center gap-1.5 cursor-help">
<span className="text-foreground-light">{formatRowCount(totalRowsScanned)}</span>
- <ArrowRight size={10} className="text-foreground-muted" />
+ <ArrowRightIcon size={10} className="text-foreground-muted" />
<span className="text-destructive-600 font-medium">
-{formatRowCount(rowsRemovedByFilter)}
</span>
- <ArrowRight size={10} className="text-foreground-muted" />
+ <ArrowRightIcon size={10} className="text-foreground-muted" />
<span className="text-primary font-medium">
{formatRowCount(actualRows)} {actualRows === 1 ? 'row' : 'rows'}
</span>
diff --git a/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.utils.ts b/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.utils.ts
index 1e0dff791de..5e52b502977 100644
--- a/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.utils.ts
+++ b/apps/studio/components/interfaces/ExplainVisualizer/ExplainVisualizer.utils.ts
@@ -1,12 +1,12 @@
import {
- Activity,
- Database,
- GitMerge,
- Hash,
- Layers,
- ListFilter,
- SortAsc,
- Zap,
+ ActivityIcon,
+ DatabaseIcon,
+ GitMergeIcon,
+ HashIcon,
+ LayersIcon,
+ ListFilterIcon,
+ SortAscIcon,
+ ZapIcon,
type LucideIcon,
} from 'lucide-react'
@@ -102,18 +102,18 @@ export function getOperationDescription(operation: string): string {
// Get an icon for the operation type
export function getOperationIcon(operation: string): LucideIcon {
const op = operation.toLowerCase()
- if (op === 'hash') return Hash
- if (op.includes('hash join')) return GitMerge
- if (op.includes('merge join')) return GitMerge
- if (op.includes('nested loop')) return GitMerge
- if (op.includes('join')) return Layers
- if (op.includes('index')) return Zap
- if (op.includes('seq scan')) return Database
- if (op.includes('scan')) return Database
- if (op.includes('filter')) return ListFilter
- if (op.includes('sort')) return SortAsc
- if (op.includes('aggregate') || op.includes('group')) return Activity
- return Database
+ if (op === 'hash') return HashIcon
+ if (op.includes('hash join')) return GitMergeIcon
+ if (op.includes('merge join')) return GitMergeIcon
+ if (op.includes('nested loop')) return GitMergeIcon
+ if (op.includes('join')) return LayersIcon
+ if (op.includes('index')) return ZapIcon
+ if (op.includes('seq scan')) return DatabaseIcon
+ if (op.includes('scan')) return DatabaseIcon
+ if (op.includes('filter')) return ListFilterIcon
+ if (op.includes('sort')) return SortAscIcon
+ if (op.includes('aggregate') || op.includes('group')) return ActivityIcon
+ return DatabaseIcon
}
// Get a color class for the operation type
diff --git a/apps/studio/components/interfaces/Explorer/AddCellDropdown.tsx b/apps/studio/components/interfaces/Explorer/AddCellDropdown.tsx
index 90cdff05034..73163d6a030 100644
--- a/apps/studio/components/interfaces/Explorer/AddCellDropdown.tsx
+++ b/apps/studio/components/interfaces/Explorer/AddCellDropdown.tsx
@@ -1,4 +1,4 @@
-import { FileText, Plus, SquareCode } from 'lucide-react'
+import { FileTextIcon, PlusIcon, SquareCodeIcon } from 'lucide-react'
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from 'ui'
import { createMarkdownCellSkeleton, createQueryCellSkeleton } from './utils'
@@ -28,17 +28,17 @@ export const AddCellDropdown = ({ cellId }: AddCellDropdownProps) => {
<ButtonTooltip
variant="text"
className="w-7"
- icon={<Plus />}
+ icon={<PlusIcon />}
tooltip={{ content: { side: 'bottom', text: 'Add cell' } }}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" className="w-40">
<DropdownMenuItem className="gap-x-2" onClick={() => onSelectAddCell('query')}>
- <SquareCode size={14} />
+ <SquareCodeIcon size={14} />
<span>Add query</span>
</DropdownMenuItem>
<DropdownMenuItem className="gap-x-2" onClick={() => onSelectAddCell('markdown')}>
- <FileText size={14} />
+ <FileTextIcon size={14} />
<span>Add markdown</span>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Explorer/ExplorerChatTab.tsx b/apps/studio/components/interfaces/Explorer/ExplorerChatTab.tsx
index f0ffc88a6ea..f769dda2fe5 100644
--- a/apps/studio/components/interfaces/Explorer/ExplorerChatTab.tsx
+++ b/apps/studio/components/interfaces/Explorer/ExplorerChatTab.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Loader2, MessageSquare } from 'lucide-react'
+import { Loader2Icon, MessageSquareIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useEffect, useEffectEvent } from 'react'
import { Button } from 'ui'
@@ -52,7 +52,7 @@ export const ExplorerChatTab = () => {
if (!aiAssistant.isInitialized || (chat && !chatInstance)) {
return (
<div className="h-full bg-surface-100 flex items-center justify-center">
- <Loader2 className="animate-spin text-foreground-muted" />
+ <Loader2Icon className="animate-spin text-foreground-muted" />
</div>
)
}
@@ -60,7 +60,7 @@ export const ExplorerChatTab = () => {
if (!id || !chat) {
return (
<div className="h-full bg-surface-100 flex flex-col items-center justify-center gap-3 px-6 text-center">
- <MessageSquare className="text-foreground-muted" />
+ <MessageSquareIcon className="text-foreground-muted" />
<div>
<h2 className="text-sm text-foreground">Chat not found</h2>
<p className="text-sm text-foreground-lighter">
diff --git a/apps/studio/components/interfaces/Explorer/ExplorerChatToolbar.tsx b/apps/studio/components/interfaces/Explorer/ExplorerChatToolbar.tsx
index 3c5d5689d14..5f3d9c764ac 100644
--- a/apps/studio/components/interfaces/Explorer/ExplorerChatToolbar.tsx
+++ b/apps/studio/components/interfaces/Explorer/ExplorerChatToolbar.tsx
@@ -1,4 +1,10 @@
-import { Clipboard, MessageSquare, MoreVertical, Settings, Trash } from 'lucide-react'
+import {
+ ClipboardIcon,
+ MessageSquareIcon,
+ MoreVerticalIcon,
+ SettingsIcon,
+ TrashIcon,
+} from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import {
@@ -62,7 +68,7 @@ export const ExplorerChatToolbar = ({
<div className="z-30 sticky top-0">
<ExplorerToolbar aria-label="Chat toolbar">
<ExplorerToolbarIcon>
- <MessageSquare size={16} strokeWidth={2} />
+ <MessageSquareIcon size={16} strokeWidth={2} />
</ExplorerToolbarIcon>
<ExplorerToolbarTitle onSaveTitle={handleSaveName}>{chat?.name ?? ''}</ExplorerToolbarTitle>
<ExplorerToolbarActions>
@@ -70,14 +76,14 @@ export const ExplorerChatToolbar = ({
<DropdownMenuTrigger asChild>
<ExplorerToolbarAction
aria-label="More options"
- icon={<MoreVertical size={16} strokeWidth={2} />}
+ icon={<MoreVerticalIcon size={16} strokeWidth={2} />}
disabled={isChatLoading}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-60">
<DropdownMenuItem className="justify-between" onClick={handleCopyChatId}>
<div className="flex items-center gap-x-2">
- <Clipboard size={14} />
+ <ClipboardIcon size={14} />
<span>Copy chat ID</span>
</div>
<ShortcutPills
@@ -89,7 +95,7 @@ export const ExplorerChatToolbar = ({
onClick={() => setIsOptInModalOpen(true)}
>
<div className="flex items-center gap-x-2">
- <Settings size={14} />
+ <SettingsIcon size={14} />
<span>Permission settings</span>
</div>
<ShortcutPills
@@ -103,7 +109,7 @@ export const ExplorerChatToolbar = ({
className="gap-x-2"
onClick={() => onSelectDelete({ id: chatId, type: 'chat', name: chat?.name ?? '' })}
>
- <Trash size={14} />
+ <TrashIcon size={14} />
<span>Delete chat</span>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Explorer/ExplorerHomeTab.tsx b/apps/studio/components/interfaces/Explorer/ExplorerHomeTab.tsx
index 47ed125fb60..3ea28b4302d 100644
--- a/apps/studio/components/interfaces/Explorer/ExplorerHomeTab.tsx
+++ b/apps/studio/components/interfaces/Explorer/ExplorerHomeTab.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Loader2, NotebookText, SquareCode } from 'lucide-react'
+import { Loader2Icon, NotebookTextIcon, SquareCodeIcon } from 'lucide-react'
import { useEffect, useEffectEvent, useRef, useState } from 'react'
import { cn } from 'ui'
@@ -29,7 +29,10 @@ export const ExplorerHomeLoading = () => (
aria-label="Opening Explorer"
className="flex h-full items-center justify-center bg-surface-100"
>
- <Loader2 size={18} className="animate-spin motion-reduce:animate-none text-foreground-muted" />
+ <Loader2Icon
+ size={18}
+ className="animate-spin motion-reduce:animate-none text-foreground-muted"
+ />
</div>
)
@@ -91,14 +94,14 @@ const ExplorerHomeContent = () => {
<section className="mt-6">
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2">
<ActionCard
- icon={<SquareCode className="h-4 w-4 text-foreground" strokeWidth={1.5} />}
+ icon={<SquareCodeIcon className="h-4 w-4 text-foreground" strokeWidth={1.5} />}
title="Run SQL"
description="Write and run an ad-hoc query"
bgColor="bg-blue-500"
onClick={() => createQuery()}
/>
<ActionCard
- icon={<NotebookText className="h-4 w-4 text-foreground" strokeWidth={1.5} />}
+ icon={<NotebookTextIcon className="h-4 w-4 text-foreground" strokeWidth={1.5} />}
title="Create a notebook"
description="Combine notes, queries, and results"
bgColor="bg-blue-500"
@@ -114,7 +117,7 @@ const ExplorerHomeContent = () => {
{NOTEBOOK_TEMPLATES.map((template) => (
<ActionCard
key={template.title}
- icon={<NotebookText className="h-4 w-4 text-foreground" strokeWidth={1.5} />}
+ icon={<NotebookTextIcon className="h-4 w-4 text-foreground" strokeWidth={1.5} />}
title={template.title}
description={template.description}
bgColor="bg-blue-500"
diff --git a/apps/studio/components/interfaces/Explorer/ExplorerNotebookTab.tsx b/apps/studio/components/interfaces/Explorer/ExplorerNotebookTab.tsx
index 6fdfef83201..f40d1069844 100644
--- a/apps/studio/components/interfaces/Explorer/ExplorerNotebookTab.tsx
+++ b/apps/studio/components/interfaces/Explorer/ExplorerNotebookTab.tsx
@@ -15,20 +15,20 @@ import { acceptUntrustedSql } from '@supabase/pg-meta'
import { useQueryClient } from '@tanstack/react-query'
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
import {
- Check,
- Copy,
- Download,
- FileText,
- Keyboard,
- Loader2,
- MoreVertical,
- Notebook,
- NotebookText,
- Play,
- Save,
- SearchX,
- SquareCode,
- Trash,
+ CheckIcon,
+ CopyIcon,
+ DownloadIcon,
+ FileTextIcon,
+ KeyboardIcon,
+ Loader2Icon,
+ MoreVerticalIcon,
+ NotebookIcon,
+ NotebookTextIcon,
+ PlayIcon,
+ SaveIcon,
+ SearchXIcon,
+ SquareCodeIcon,
+ TrashIcon,
} from 'lucide-react'
import { useEffect, useEffectEvent, useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -397,7 +397,7 @@ export const ExplorerNotebookTab = () => {
return (
<div className="p-4 h-full bg-surface-100">
<EmptyStatePresentational
- icon={<SearchX className="text-foreground-lighter" />}
+ icon={<SearchXIcon className="text-foreground-lighter" />}
title="Notebook not found"
description="This notebook may have been deleted or does not exist."
contentClassName="[&>h3]:text-sm [&>p]:text-xs"
@@ -409,7 +409,7 @@ export const ExplorerNotebookTab = () => {
if (!content) {
return (
<div className="flex flex-col h-full items-center justify-center bg-surface-100">
- <Loader2 className="animate-spin text-foreground-muted" />
+ <Loader2Icon className="animate-spin text-foreground-muted" />
</div>
)
}
@@ -418,7 +418,7 @@ export const ExplorerNotebookTab = () => {
<div className="flex flex-col h-full bg-surface-100">
<ExplorerToolbar className="px-4">
<ExplorerToolbarIcon>
- <NotebookText size={16} strokeWidth={2} />
+ <NotebookTextIcon size={16} strokeWidth={2} />
</ExplorerToolbarIcon>
<ExplorerToolbarTitle onSaveTitle={handleSaveTitle}>{name ?? ''}</ExplorerToolbarTitle>
<ExplorerToolbarActions>
@@ -444,7 +444,7 @@ export const ExplorerNotebookTab = () => {
>
<ExplorerToolbarAction
aria-label="Save changes"
- icon={<Save size={16} strokeWidth={2} />}
+ icon={<SaveIcon size={16} strokeWidth={2} />}
loading={isUpdating}
onClick={handleSaveNotebook}
/>
@@ -454,7 +454,7 @@ export const ExplorerNotebookTab = () => {
<DropdownMenuTrigger asChild>
<ExplorerToolbarAction
aria-label="More options"
- icon={<MoreVertical size={16} strokeWidth={2} />}
+ icon={<MoreVerticalIcon size={16} strokeWidth={2} />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-48">
@@ -463,13 +463,13 @@ export const ExplorerNotebookTab = () => {
onClick={() => setIsIntellisenseEnabled(!isIntellisenseEnabled)}
>
<div className="flex items-center gap-x-2">
- <Keyboard size={14} />
+ <KeyboardIcon size={14} />
<span>Intellisense enabled</span>
</div>
- {isIntellisenseEnabled && <Check className="text-primary" size={16} />}
+ {isIntellisenseEnabled && <CheckIcon className="text-primary" size={16} />}
</DropdownMenuItem>
<DropdownMenuItem className="gap-x-2" onClick={handleCopyAsMarkdown}>
- <Copy size={14} />
+ <CopyIcon size={14} />
<span>Copy as Markdown</span>
</DropdownMenuItem>
<DropdownMenuItem
@@ -478,9 +478,9 @@ export const ExplorerNotebookTab = () => {
onClick={handleExportPdf}
>
{isExportingPdf ? (
- <Loader2 size={14} className="animate-spin" />
+ <Loader2Icon size={14} className="animate-spin" />
) : (
- <Download size={14} />
+ <DownloadIcon size={14} />
)}
<span>Export as PDF</span>
</DropdownMenuItem>
@@ -489,7 +489,7 @@ export const ExplorerNotebookTab = () => {
className="gap-x-2"
onClick={() => id && onSelectDelete({ id, type: 'notebook', name: name ?? '' })}
>
- <Trash size={14} />
+ <TrashIcon size={14} />
<span>Delete notebook</span>
</DropdownMenuItem>
</DropdownMenuContent>
@@ -501,7 +501,7 @@ export const ExplorerNotebookTab = () => {
size="tiny"
className="ml-1"
aria-label="Run notebook"
- icon={<Play size={16} strokeWidth={2} />}
+ icon={<PlayIcon size={16} strokeWidth={2} />}
tooltip={{ content: { side: 'bottom', text: 'Run notebook' } }}
loading={isRunningNotebook}
disabled={queryCellIds.length === 0}
@@ -516,7 +516,7 @@ export const ExplorerNotebookTab = () => {
<div className="p-4 pb-10">
{cells.length === 0 && (
<EmptyStatePresentational
- icon={<Notebook className="text-foreground-lighter" />}
+ icon={<NotebookIcon className="text-foreground-lighter" />}
title="This notebook is empty"
description="Add a query cell to run SQL against your database or logs."
contentClassName="[&>h3]:text-sm [&>p]:text-xs"
@@ -559,7 +559,7 @@ export const ExplorerNotebookTab = () => {
<ButtonTooltip
variant="outline"
size="small"
- icon={<SquareCode />}
+ icon={<SquareCodeIcon />}
className="w-[34px]"
onClick={() => onSelectAddCell('query')}
tooltip={{ content: { side: 'bottom', text: 'Add query' } }}
@@ -567,7 +567,7 @@ export const ExplorerNotebookTab = () => {
<ButtonTooltip
variant="outline"
size="small"
- icon={<FileText />}
+ icon={<FileTextIcon />}
className="w-[34px]"
onClick={() => onSelectAddCell('markdown')}
tooltip={{ content: { side: 'bottom', text: 'Add markdown' } }}
diff --git a/apps/studio/components/interfaces/Explorer/ExplorerOnboarding.tsx b/apps/studio/components/interfaces/Explorer/ExplorerOnboarding.tsx
index ec3ac3c42e1..e34914605c8 100644
--- a/apps/studio/components/interfaces/Explorer/ExplorerOnboarding.tsx
+++ b/apps/studio/components/interfaces/Explorer/ExplorerOnboarding.tsx
@@ -1,4 +1,4 @@
-import { ArrowRight } from 'lucide-react'
+import { ArrowRightIcon } from 'lucide-react'
import { useState, type ComponentType } from 'react'
import { Badge, Button, cn } from 'ui'
@@ -98,7 +98,7 @@ export const ExplorerOnboarding = () => {
<Button
type="button"
variant="primary"
- iconRight={<ArrowRight />}
+ iconRight={<ArrowRightIcon />}
onClick={completeOnboarding}
disabled={!isReady}
>
@@ -108,7 +108,7 @@ export const ExplorerOnboarding = () => {
<Button
type="button"
variant="primary"
- iconRight={<ArrowRight />}
+ iconRight={<ArrowRightIcon />}
onClick={() => setStepIndex(stepIndex + 1)}
>
Next
diff --git a/apps/studio/components/interfaces/Explorer/ExplorerOnboardingWireframes.tsx b/apps/studio/components/interfaces/Explorer/ExplorerOnboardingWireframes.tsx
index 08bfa0b4339..6b6c56a0db2 100644
--- a/apps/studio/components/interfaces/Explorer/ExplorerOnboardingWireframes.tsx
+++ b/apps/studio/components/interfaces/Explorer/ExplorerOnboardingWireframes.tsx
@@ -1,13 +1,13 @@
import {
- ArrowUp,
- ChevronLeft,
- ChevronRight,
- Home,
- MessageSquare,
- NotebookText,
- Play,
- Plus,
- SquareCode,
+ ArrowUpIcon,
+ ChevronLeftIcon,
+ ChevronRightIcon,
+ HomeIcon,
+ MessageSquareIcon,
+ NotebookTextIcon,
+ PlayIcon,
+ PlusIcon,
+ SquareCodeIcon,
type LucideIcon,
} from 'lucide-react'
import type { ReactNode } from 'react'
@@ -52,28 +52,28 @@ const SidebarHome = ({ section }: { section: Section }) => (
<>
<div className="space-y-px">
<SidebarRow
- icon={SquareCode}
+ icon={SquareCodeIcon}
isActive={section === 'query'}
- trailing={<Icon icon={Plus} />}
+ trailing={<Icon icon={PlusIcon} />}
lineClassName="w-9"
/>
<SidebarRow
- icon={NotebookText}
+ icon={NotebookTextIcon}
trailing={
<>
<Count />
- <Icon icon={ChevronRight} />
+ <Icon icon={ChevronRightIcon} />
</>
}
lineClassName="w-12"
/>
<SidebarRow
- icon={MessageSquare}
+ icon={MessageSquareIcon}
isActive={section === 'chat'}
trailing={
<>
<Count />
- <Icon icon={ChevronRight} />
+ <Icon icon={ChevronRightIcon} />
</>
}
lineClassName="w-8"
@@ -81,10 +81,10 @@ const SidebarHome = ({ section }: { section: Section }) => (
</div>
<div className="space-y-px">
<Line className="mx-1.5 mb-2 w-14 bg-foreground-muted/50" />
- <SidebarRow icon={NotebookText} lineClassName="w-14" />
- <SidebarRow icon={MessageSquare} isActive={section === 'chat'} lineClassName="w-12" />
- <SidebarRow icon={NotebookText} lineClassName="w-10" />
- <SidebarRow icon={MessageSquare} lineClassName="w-14" />
+ <SidebarRow icon={NotebookTextIcon} lineClassName="w-14" />
+ <SidebarRow icon={MessageSquareIcon} isActive={section === 'chat'} lineClassName="w-12" />
+ <SidebarRow icon={NotebookTextIcon} lineClassName="w-10" />
+ <SidebarRow icon={MessageSquareIcon} lineClassName="w-14" />
</div>
</>
)
@@ -95,11 +95,11 @@ const SidebarNotebooks = () => (
<Line className="w-12" />
</div>
<div className="space-y-px">
- <SidebarRow icon={NotebookText} isActive lineClassName="w-14" />
- <SidebarRow icon={NotebookText} lineClassName="w-10" />
- <SidebarRow icon={NotebookText} lineClassName="w-16" />
- <SidebarRow icon={NotebookText} lineClassName="w-12" />
- <SidebarRow icon={NotebookText} lineClassName="w-9" />
+ <SidebarRow icon={NotebookTextIcon} isActive lineClassName="w-14" />
+ <SidebarRow icon={NotebookTextIcon} lineClassName="w-10" />
+ <SidebarRow icon={NotebookTextIcon} lineClassName="w-16" />
+ <SidebarRow icon={NotebookTextIcon} lineClassName="w-12" />
+ <SidebarRow icon={NotebookTextIcon} lineClassName="w-9" />
</div>
</>
)
@@ -107,10 +107,10 @@ const SidebarNotebooks = () => (
const Sidebar = ({ section }: { section: Section }) => (
<div className="flex w-[24%] shrink-0 flex-col border-r">
<div className="flex h-7 shrink-0 items-center gap-1 border-b px-2.5 text-foreground-muted">
- {section === 'notebook' && <Icon icon={ChevronLeft} />}
+ {section === 'notebook' && <Icon icon={ChevronLeftIcon} />}
<Line className={cn('bg-foreground-muted', section === 'notebook' ? 'w-12' : 'w-10')} />
<div className="ml-auto flex h-3.5 w-3.5 items-center justify-center rounded-sm border">
- <Icon icon={Plus} className="size-2" />
+ <Icon icon={PlusIcon} className="size-2" />
</div>
</div>
<div className="flex flex-col gap-3 p-1.5">
@@ -120,9 +120,9 @@ const Sidebar = ({ section }: { section: Section }) => (
)
const TAB_ICONS: Record<Exclude<Section, 'home'>, LucideIcon> = {
- query: SquareCode,
- notebook: NotebookText,
- chat: MessageSquare,
+ query: SquareCodeIcon,
+ notebook: NotebookTextIcon,
+ chat: MessageSquareIcon,
}
const Tab = ({ icon, isActive = false }: { icon: LucideIcon; isActive?: boolean }) => (
@@ -145,12 +145,12 @@ const TabBar = ({ section }: { section: Section }) => (
section === 'home' ? 'bg-surface-200 text-foreground' : 'text-foreground-muted'
)}
>
- <Icon icon={Home} />
+ <Icon icon={HomeIcon} />
</div>
{section !== 'home' && <Tab icon={TAB_ICONS[section]} isActive />}
- <Tab icon={section === 'notebook' ? SquareCode : NotebookText} />
+ <Tab icon={section === 'notebook' ? SquareCodeIcon : NotebookTextIcon} />
<div className="flex items-center px-2 text-foreground-muted">
- <Icon icon={Plus} />
+ <Icon icon={PlusIcon} />
</div>
</div>
)
@@ -217,7 +217,7 @@ const BarChart = ({ className }: { className?: string }) => (
const RunButton = () => (
<div className="flex h-4 items-center gap-1 rounded-sm border bg-surface-300 px-1.5 text-foreground-muted">
- <Icon icon={Play} className="size-2 fill-current" />
+ <Icon icon={PlayIcon} className="size-2 fill-current" />
<div className="h-0.5 w-4 rounded-[2px] bg-foreground-muted" />
</div>
)
@@ -229,12 +229,12 @@ const HomeContent = () => (
<Line className="w-1/2" />
<div className="flex justify-end">
<div className="flex h-3.5 w-3.5 items-center justify-center rounded-full bg-foreground-muted text-background">
- <Icon icon={ArrowUp} className="size-2" />
+ <Icon icon={ArrowUpIcon} className="size-2" />
</div>
</div>
</div>
<div className="grid w-full grid-cols-2 gap-2">
- {[SquareCode, NotebookText].map((icon, index) => (
+ {[SquareCodeIcon, NotebookTextIcon].map((icon, index) => (
<div key={index} className="flex items-center gap-1.5 rounded-md border bg-surface-200 p-2">
<div className="flex h-4 w-4 items-center justify-center rounded-sm border bg-surface-300 text-foreground-muted">
<Icon icon={icon} className="size-2" />
@@ -286,7 +286,7 @@ const NotebookContent = () => (
<BarChart className="h-16" />
<div className="flex items-center gap-1.5 text-foreground-muted">
<div className="h-px flex-1 bg-border" />
- <Icon icon={Plus} />
+ <Icon icon={PlusIcon} />
<div className="h-px flex-1 bg-border" />
</div>
<MarkdownCell lines={['w-3/4']} />
@@ -316,7 +316,7 @@ const ChatContent = () => (
Ask a follow up question...
</span>
<div className="flex h-3.5 w-3.5 items-center justify-center rounded-full bg-foreground-muted text-background">
- <Icon icon={ArrowUp} className="size-2" />
+ <Icon icon={ArrowUpIcon} className="size-2" />
</div>
</div>
</div>
diff --git a/apps/studio/components/interfaces/Explorer/ExplorerQueryTab.tsx b/apps/studio/components/interfaces/Explorer/ExplorerQueryTab.tsx
index eb2ba1418d9..51589cf7e9d 100644
--- a/apps/studio/components/interfaces/Explorer/ExplorerQueryTab.tsx
+++ b/apps/studio/components/interfaces/Explorer/ExplorerQueryTab.tsx
@@ -1,6 +1,13 @@
import { type Hotkey } from '@tanstack/react-hotkeys'
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { AlignLeft, Check, Keyboard, Loader2, MoreVertical, SquareCode } from 'lucide-react'
+import {
+ AlignLeftIcon,
+ CheckIcon,
+ KeyboardIcon,
+ Loader2Icon,
+ MoreVerticalIcon,
+ SquareCodeIcon,
+} from 'lucide-react'
import { useRouter } from 'next/router'
import { useCallback, useContext, useEffect, useRef, useState } from 'react'
import {
@@ -84,7 +91,7 @@ export const ExplorerQueryTab = () => {
aria-label="Loading query"
className="flex h-full items-center justify-center bg-surface-100"
>
- <Loader2 className="animate-spin text-foreground-muted" size={18} />
+ <Loader2Icon className="animate-spin text-foreground-muted" size={18} />
</div>
)
}
@@ -92,7 +99,7 @@ export const ExplorerQueryTab = () => {
if (!id || !draft) {
return (
<div className="flex h-full flex-col items-center justify-center gap-3 bg-surface-100">
- <SquareCode className="text-foreground-muted" size={24} />
+ <SquareCodeIcon className="text-foreground-muted" size={24} />
<div className="text-center">
<p className="text-sm font-medium">Query draft not found</p>
<p className="text-sm text-foreground-lighter">
@@ -173,7 +180,7 @@ export const ExplorerQueryTab = () => {
/>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <ExplorerToolbarAction icon={<MoreVertical size={16} strokeWidth={2} />} />
+ <ExplorerToolbarAction icon={<MoreVerticalIcon size={16} strokeWidth={2} />} />
</DropdownMenuTrigger>
<DropdownMenuContent className="w-48" align="end">
<DropdownMenuItem
@@ -181,10 +188,10 @@ export const ExplorerQueryTab = () => {
onClick={() => setIsIntellisenseEnabled(!isIntellisenseEnabled)}
>
<div className="flex items-center gap-x-2">
- <Keyboard size={14} />
+ <KeyboardIcon size={14} />
<span>Intellisense enabled</span>
</div>
- {isIntellisenseEnabled && <Check className="text-primary" size={16} />}
+ {isIntellisenseEnabled && <CheckIcon className="text-primary" size={16} />}
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem
@@ -192,7 +199,7 @@ export const ExplorerQueryTab = () => {
onClick={() => queryEditorRef.current?.prettify()}
>
<span className="flex items-center gap-x-2">
- <AlignLeft size={14} />
+ <AlignLeftIcon size={14} />
Prettify SQL
</span>
{formatKeys && <KeyboardShortcut keys={formatKeys} />}
diff --git a/apps/studio/components/interfaces/Explorer/ExplorerToolbar.tsx b/apps/studio/components/interfaces/Explorer/ExplorerToolbar.tsx
index ce464262573..d89aee68f79 100644
--- a/apps/studio/components/interfaces/Explorer/ExplorerToolbar.tsx
+++ b/apps/studio/components/interfaces/Explorer/ExplorerToolbar.tsx
@@ -1,4 +1,4 @@
-import { Edit } from 'lucide-react'
+import { EditIcon } from 'lucide-react'
import React, { useState } from 'react'
import { Button, cn } from 'ui'
import { Input } from 'ui-patterns/DataInputs/Input'
@@ -102,7 +102,7 @@ const ExplorerToolbarTitle = ({
className="group/title"
onClick={handleStartEditing}
iconRight={
- <Edit
+ <EditIcon
size={16}
strokeWidth={2}
className="opacity-0 transition group-hover/title:opacity-100 group-focus-visible/title:opacity-100"
diff --git a/apps/studio/components/interfaces/Explorer/MoveCellDropdownContent.tsx b/apps/studio/components/interfaces/Explorer/MoveCellDropdownContent.tsx
index 9cc1632a111..1a0bd723329 100644
--- a/apps/studio/components/interfaces/Explorer/MoveCellDropdownContent.tsx
+++ b/apps/studio/components/interfaces/Explorer/MoveCellDropdownContent.tsx
@@ -1,4 +1,4 @@
-import { ArrowDown, ArrowUp, Trash } from 'lucide-react'
+import { ArrowDownIcon, ArrowUpIcon, TrashIcon } from 'lucide-react'
import { DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from 'ui'
import { useCurrentNotebook, useNotebooksStateSnapshot } from '@/state/notebooks/notebooks-state'
@@ -36,7 +36,7 @@ export const MoveCellDropdownContent = ({ cellId }: MoveCellDropdownContentProps
disabled={isFirstCell}
onClick={() => onSelectMoveCell('up')}
>
- <ArrowUp size={14} />
+ <ArrowUpIcon size={14} />
<p>Move up</p>
</DropdownMenuItem>
<DropdownMenuItem
@@ -44,12 +44,12 @@ export const MoveCellDropdownContent = ({ cellId }: MoveCellDropdownContentProps
disabled={isLastCell}
onClick={() => onSelectMoveCell('down')}
>
- <ArrowDown size={14} />
+ <ArrowDownIcon size={14} />
<p>Move down</p>
</DropdownMenuItem>
<DropdownMenuSeparator />
<DropdownMenuItem className="gap-x-2" onClick={() => onSelectRemoveCell()}>
- <Trash size={14} />
+ <TrashIcon size={14} />
<p>Remove cell</p>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Explorer/QueryCell/index.tsx b/apps/studio/components/interfaces/Explorer/QueryCell/index.tsx
index e73f0da2707..67f5e8b208b 100644
--- a/apps/studio/components/interfaces/Explorer/QueryCell/index.tsx
+++ b/apps/studio/components/interfaces/Explorer/QueryCell/index.tsx
@@ -1,4 +1,4 @@
-import { AlignLeft } from 'lucide-react'
+import { AlignLeftIcon } from 'lucide-react'
import { forwardRef, useState } from 'react'
import { KeyboardShortcut } from 'ui'
import { type Snapshot } from 'valtio'
@@ -145,7 +145,7 @@ export const QueryCell = forwardRef<QueryEditorHandle, QueryCellProps>(function
onDisplayChange={handleDisplayChange}
toolbarActions={
<ExplorerToolbarAction
- icon={<AlignLeft size={16} strokeWidth={2} />}
+ icon={<AlignLeftIcon size={16} strokeWidth={2} />}
tooltip={
<div className="flex items-center gap-2.5">
<span>Prettify SQL</span>
diff --git a/apps/studio/components/interfaces/Explorer/QueryEditor/DisplaySettingsButton.tsx b/apps/studio/components/interfaces/Explorer/QueryEditor/DisplaySettingsButton.tsx
index 58967a2cd0f..31ce0ed31f3 100644
--- a/apps/studio/components/interfaces/Explorer/QueryEditor/DisplaySettingsButton.tsx
+++ b/apps/studio/components/interfaces/Explorer/QueryEditor/DisplaySettingsButton.tsx
@@ -1,4 +1,4 @@
-import { BarChart2, LineChart, Settings2, Table } from 'lucide-react'
+import { BarChart2Icon, LineChartIcon, Settings2Icon, TableIcon } from 'lucide-react'
import { useEffect, useEffectEvent, useMemo } from 'react'
import {
Popover,
@@ -106,7 +106,7 @@ export const DisplaySettingsButton = ({
<PopoverTrigger asChild>
<ExplorerToolbarAction
disabled={disabled}
- icon={<Settings2 size={16} strokeWidth={2} />}
+ icon={<Settings2Icon size={16} strokeWidth={2} />}
tooltip="Result settings"
/>
</PopoverTrigger>
@@ -128,11 +128,11 @@ export const DisplaySettingsButton = ({
className="w-full"
>
<ToggleGroupItem value="table" className="w-full gap-2">
- <Table size={14} />
+ <TableIcon size={14} />
<span>Table</span>
</ToggleGroupItem>
<ToggleGroupItem value="chart" className="w-full gap-2">
- <BarChart2 size={14} />
+ <BarChart2Icon size={14} />
<span>Chart</span>
</ToggleGroupItem>
</ToggleGroup>
@@ -157,11 +157,11 @@ export const DisplaySettingsButton = ({
className="w-full"
>
<ToggleGroupItem value="bar" className="w-full gap-2">
- <BarChart2 size={14} />
+ <BarChart2Icon size={14} />
<span>Bar</span>
</ToggleGroupItem>
<ToggleGroupItem value="line" className="w-full gap-2">
- <LineChart size={14} />
+ <LineChartIcon size={14} />
<span>Line</span>
</ToggleGroupItem>
</ToggleGroup>
diff --git a/apps/studio/components/interfaces/Explorer/QueryEditor/QueryResultError.tsx b/apps/studio/components/interfaces/Explorer/QueryEditor/QueryResultError.tsx
index be46a183770..d4ba8f60805 100644
--- a/apps/studio/components/interfaces/Explorer/QueryEditor/QueryResultError.tsx
+++ b/apps/studio/components/interfaces/Explorer/QueryEditor/QueryResultError.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useCallback } from 'react'
import { Button, cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -122,7 +122,7 @@ export const QueryResultError = ({
className={cn(InlineLinkClassName, 'flex items-center gap-x-1')}
>
connecting to your database directly
- <ExternalLink size={12} />
+ <ExternalLinkIcon size={12} />
</button>
.
</p>
diff --git a/apps/studio/components/interfaces/Explorer/QueryEditor/QueryResultRenderer.tsx b/apps/studio/components/interfaces/Explorer/QueryEditor/QueryResultRenderer.tsx
index 711584f9e8a..46ded7da9a7 100644
--- a/apps/studio/components/interfaces/Explorer/QueryEditor/QueryResultRenderer.tsx
+++ b/apps/studio/components/interfaces/Explorer/QueryEditor/QueryResultRenderer.tsx
@@ -1,4 +1,4 @@
-import { Play } from 'lucide-react'
+import { PlayIcon } from 'lucide-react'
import { type SqlSnippetSource } from '../../SQLEditor/querySource'
import { type QueryResult } from '../types'
@@ -30,7 +30,7 @@ export const QueryResultRenderer = ({
if (!result) {
return (
<div className="flex items-center gap-x-2 p-3 w-full">
- <Play size={12} className="text-foreground-lighter" />
+ <PlayIcon size={12} className="text-foreground-lighter" />
<p className="text-xs text-foreground-lighter">Run the query to see results</p>
</div>
)
diff --git a/apps/studio/components/interfaces/Explorer/QueryEditor/QueryRunButton.tsx b/apps/studio/components/interfaces/Explorer/QueryEditor/QueryRunButton.tsx
index b115079f817..15c202a647a 100644
--- a/apps/studio/components/interfaces/Explorer/QueryEditor/QueryRunButton.tsx
+++ b/apps/studio/components/interfaces/Explorer/QueryEditor/QueryRunButton.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown, Play } from 'lucide-react'
+import { ChevronDownIcon, PlayIcon } from 'lucide-react'
import {
Button,
DropdownMenu,
@@ -32,7 +32,7 @@ export const QueryRunButton = ({
size="tiny"
loading={isExecuting}
disabled={disabled}
- icon={<Play size={16} strokeWidth={2} />}
+ icon={<PlayIcon size={16} strokeWidth={2} />}
className="rounded-r-none hover:z-10 focus-visible:z-10 focus-visible:rounded-r-sm"
onClick={onRun}
tooltip={{
@@ -57,7 +57,7 @@ export const QueryRunButton = ({
disabled={disabled}
aria-label="More actions"
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
- icon={<ChevronDown />}
+ icon={<ChevronDownIcon />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-48">
diff --git a/apps/studio/components/interfaces/Explorer/QueryEditor/QuerySourceMenu.tsx b/apps/studio/components/interfaces/Explorer/QueryEditor/QuerySourceMenu.tsx
index 4cad8b12da4..94f7a689894 100644
--- a/apps/studio/components/interfaces/Explorer/QueryEditor/QuerySourceMenu.tsx
+++ b/apps/studio/components/interfaces/Explorer/QueryEditor/QuerySourceMenu.tsx
@@ -1,5 +1,5 @@
import { useFlag, useParams } from 'common'
-import { Check, ChevronDown } from 'lucide-react'
+import { CheckIcon, ChevronDownIcon } from 'lucide-react'
import {
DropdownMenu,
DropdownMenuContent,
@@ -79,7 +79,7 @@ export const QuerySourceMenu = ({
disabled={disabled}
aria-label={`Query source: ${QUERY_SOURCE_LABELS[source._tag]}`}
icon={<QuerySourceIcon source={source._tag} />}
- iconRight={<ChevronDown size={16} strokeWidth={2} />}
+ iconRight={<ChevronDownIcon size={16} strokeWidth={2} />}
>
{QUERY_SOURCE_LABELS[source._tag]}
</ExplorerToolbarAction>
@@ -100,7 +100,7 @@ export const QuerySourceMenu = ({
<QuerySourceIcon source={candidate._tag} className="text-foreground-light" />
{QUERY_SOURCE_LABELS[candidate._tag]}
</span>
- {source._tag === candidate._tag && <Check size={14} />}
+ {source._tag === candidate._tag && <CheckIcon size={14} />}
</DropdownMenuItem>
))}
diff --git a/apps/studio/components/interfaces/Explorer/QueryEditor/index.tsx b/apps/studio/components/interfaces/Explorer/QueryEditor/index.tsx
index 5ad7134764e..b69b2a99fea 100644
--- a/apps/studio/components/interfaces/Explorer/QueryEditor/index.tsx
+++ b/apps/studio/components/interfaces/Explorer/QueryEditor/index.tsx
@@ -2,7 +2,7 @@ import { useMonaco } from '@monaco-editor/react'
import { acceptUntrustedSql, untrustedSql, type UntrustedSqlFragment } from '@supabase/pg-meta'
import { useFlag } from 'common'
import type { ExplorerQueryLocation } from 'common/telemetry-constants'
-import { CodeSquare, Eye, EyeOff } from 'lucide-react'
+import { CodeSquareIcon, EyeIcon, EyeOffIcon } from 'lucide-react'
import type { editor as monacoEditor, Selection } from 'monaco-editor'
import {
forwardRef,
@@ -576,7 +576,7 @@ export const QueryEditor = forwardRef<QueryEditorHandle, QueryEditorProps>(funct
<Shell className={className}>
<ExplorerToolbar className={cn(variant === 'viewport' && 'px-4')}>
<ExplorerToolbarIcon>
- <CodeSquare size={16} strokeWidth={2} />
+ <CodeSquareIcon size={16} strokeWidth={2} />
</ExplorerToolbarIcon>
{variant === 'viewport' ? (
<ExplorerToolbarTitle className="text-muted text-xs italic">
@@ -611,7 +611,11 @@ export const QueryEditor = forwardRef<QueryEditorHandle, QueryEditorProps>(funct
)}
<ExplorerToolbarAction
icon={
- showQuery ? <EyeOff size={16} strokeWidth={2} /> : <Eye size={16} strokeWidth={2} />
+ showQuery ? (
+ <EyeOffIcon size={16} strokeWidth={2} />
+ ) : (
+ <EyeIcon size={16} strokeWidth={2} />
+ )
}
disabled={pendingProposal !== null}
tooltip={showQuery ? 'Hide query' : 'Show query'}
diff --git a/apps/studio/components/interfaces/Explorer/SaveQueryDropdown.tsx b/apps/studio/components/interfaces/Explorer/SaveQueryDropdown.tsx
index 22395f2a943..b959e6a2227 100644
--- a/apps/studio/components/interfaces/Explorer/SaveQueryDropdown.tsx
+++ b/apps/studio/components/interfaces/Explorer/SaveQueryDropdown.tsx
@@ -1,6 +1,6 @@
import { useDebounce } from '@uidotdev/usehooks'
import { useParams } from 'common'
-import { Save } from 'lucide-react'
+import { SaveIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useMemo, useState, type PropsWithChildren } from 'react'
import { toast } from 'sonner'
@@ -92,7 +92,10 @@ export const SaveQueryDropdown = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
{children ?? (
- <ExplorerToolbarAction icon={<Save size={16} strokeWidth={2} />} tooltip="Save query" />
+ <ExplorerToolbarAction
+ icon={<SaveIcon size={16} strokeWidth={2} />}
+ tooltip="Save query"
+ />
)}
</DropdownMenuTrigger>
<DropdownMenuContent className="w-48" align="end">
diff --git a/apps/studio/components/interfaces/Functions/CommandRender.tsx b/apps/studio/components/interfaces/Functions/CommandRender.tsx
index d522fd10432..994bacb4ad0 100644
--- a/apps/studio/components/interfaces/Functions/CommandRender.tsx
+++ b/apps/studio/components/interfaces/Functions/CommandRender.tsx
@@ -1,4 +1,4 @@
-import { Check, Copy } from 'lucide-react'
+import { CheckIcon, CopyIcon } from 'lucide-react'
import { forwardRef, useState } from 'react'
import { cn, copyToClipboard } from 'ui'
@@ -43,9 +43,9 @@ const Command = ({ item }: any) => {
}}
>
{isCopied ? (
- <Check size={14} strokeWidth={3} className="text-primary" />
+ <CheckIcon size={14} strokeWidth={3} className="text-primary" />
) : (
- <Copy size={14} />
+ <CopyIcon size={14} />
)}
</button>
</span>
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionTesterSheet.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionTesterSheet.tsx
index cd5666b0596..edcd38ad004 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionTesterSheet.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionTesterSheet.tsx
@@ -1,7 +1,7 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { BookOpen, Loader2, Send } from 'lucide-react'
+import { BookOpenIcon, Loader2Icon, SendIcon } from 'lucide-react'
import { useState } from 'react'
import { useForm, useWatch } from 'react-hook-form'
import {
@@ -324,7 +324,7 @@ export const EdgeFunctionTesterSheet = ({ visible, onClose }: EdgeFunctionTester
asChild
variant="text"
size="tiny"
- icon={<BookOpen size={14} />}
+ icon={<BookOpenIcon size={14} />}
>
<a
href={errorDocs.href}
@@ -362,12 +362,12 @@ export const EdgeFunctionTesterSheet = ({ visible, onClose }: EdgeFunctionTester
</div>
) : isPending ? (
<div className="h-full flex flex-col items-center justify-center gap-2">
- <Loader2 size={24} className="text-foreground-muted animate-spin" />
+ <Loader2Icon size={24} className="text-foreground-muted animate-spin" />
<p className="text-sm text-foreground-light">Sending request...</p>
</div>
) : (
<div className="h-full flex flex-col items-center justify-center gap-2">
- <Send size={24} className="text-foreground-muted" />
+ <SendIcon size={24} className="text-foreground-muted" />
<p className="text-sm text-foreground-light">Send your first test request</p>
</div>
)}
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionChartEmptyState.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionChartEmptyState.tsx
index 77171a44291..f27051f3600 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionChartEmptyState.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionChartEmptyState.tsx
@@ -1,4 +1,4 @@
-import { BarChart2 } from 'lucide-react'
+import { BarChart2Icon } from 'lucide-react'
import { ChartEmptyState } from 'ui-patterns/Chart'
interface EdgeFunctionChartEmptyStateProps {
@@ -12,7 +12,7 @@ export const EdgeFunctionChartEmptyState = ({
}: EdgeFunctionChartEmptyStateProps) => {
return (
<ChartEmptyState
- icon={<BarChart2 size={16} />}
+ icon={<BarChart2Icon size={16} />}
title={title}
description={description ?? 'It may take up to 24 hours for data to refresh'}
/>
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionInvocationsChart.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionInvocationsChart.tsx
index e76bf3c86ef..4ac4cca7c87 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionInvocationsChart.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionInvocationsChart.tsx
@@ -1,4 +1,4 @@
-import { Rocket } from 'lucide-react'
+import { RocketIcon } from 'lucide-react'
import { useMemo } from 'react'
import {
Bar,
@@ -117,7 +117,7 @@ export const EdgeFunctionInvocationsChart = ({
dateTimeFormat
)}`}
>
- <Rocket size={12} strokeWidth={1.75} aria-hidden />
+ <RocketIcon size={12} strokeWidth={1.75} aria-hidden />
</span>
</TooltipTrigger>
<TooltipContent side="top" align="center">
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionOverview.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionOverview.tsx
index 0949c270c55..60fc7d7f676 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionOverview.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionOverview.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { IS_PLATFORM, useParams } from 'common'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useEffect, useMemo, useState } from 'react'
@@ -146,7 +146,7 @@ export const EdgeFunctionOverview = () => {
href: `/project/${projectRef}/functions/${functionSlug}/${
isUnifiedLogsEnabled ? 'logs' : 'invocations'
}`,
- icon: <ExternalLink size={12} />,
+ icon: <ExternalLinkIcon size={12} />,
},
],
[functionSlug, isUnifiedLogsEnabled, projectRef]
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionRecentErrors.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionRecentErrors.tsx
index 76c96d9df43..45f00cb9e33 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionRecentErrors.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionRecentErrors.tsx
@@ -1,4 +1,4 @@
-import { BookOpen, Check, ExternalLink, Eye } from 'lucide-react'
+import { BookOpenIcon, CheckIcon, ExternalLinkIcon, EyeIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { Fragment, useMemo } from 'react'
import {
@@ -173,14 +173,14 @@ export const EdgeFunctionRecentErrors = ({
const emptyStateIcon =
isoTimestampStart && !sinceLastDeployInvocationCountError ? (
sinceLastDeployInvocationCount > 0 ? (
- <Check
+ <CheckIcon
size={16}
strokeWidth={1.5}
className="mt-0.5 shrink-0 text-primary"
aria-hidden="true"
/>
) : (
- <Eye
+ <EyeIcon
size={16}
strokeWidth={1.5}
className="mt-0.5 shrink-0 text-foreground-muted"
@@ -209,7 +209,7 @@ export const EdgeFunctionRecentErrors = ({
<PageSectionAside>
<Button
size="tiny"
- icon={<ExternalLink size={14} />}
+ icon={<ExternalLinkIcon size={14} />}
onClick={() =>
router.push(`/project/${projectRef}/functions/${functionSlug}/logs`)
}
@@ -301,7 +301,7 @@ export const EdgeFunctionRecentErrors = ({
additionalDropdownItems={[
{
label: 'View troubleshooting guide',
- icon: <BookOpen size={14} />,
+ icon: <BookOpenIcon size={14} />,
onClick: () =>
window.open(docsUrl, '_blank', 'noopener,noreferrer'),
},
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionRecentInvocations.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionRecentInvocations.tsx
index ab7a69f76db..a687c28a865 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionRecentInvocations.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionRecentInvocations.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Clock, ExternalLink, RefreshCw } from 'lucide-react'
+import { ClockIcon, ExternalLinkIcon, RefreshCwIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { Button, cn } from 'ui'
@@ -42,7 +42,7 @@ export const EdgeFunctionRecentInvocations = ({
<Button
loading={isLoading}
disabled={isLoading}
- icon={<RefreshCw size={14} />}
+ icon={<RefreshCwIcon size={14} />}
onClick={() => refresh()}
>
Refresh
@@ -108,7 +108,7 @@ export const EdgeFunctionRecentInvocations = ({
<span className="text-xs text-foreground-light">{method || '-'}</span>
{executionTime !== undefined && (
<span className="flex items-center gap-1 text-xs text-foreground-light">
- <Clock size={12} className="text-foreground-muted" />
+ <ClockIcon size={12} className="text-foreground-muted" />
{Number(executionTime).toFixed(0)}ms
</span>
)}
@@ -119,7 +119,7 @@ export const EdgeFunctionRecentInvocations = ({
statusCode
)}
</span>
- <ExternalLink
+ <ExternalLinkIcon
size={14}
className="shrink-0 text-foreground-muted opacity-0 group-hover:opacity-100 transition-opacity"
/>
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/AddNewSecretForm.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/AddNewSecretForm.tsx
index 3e662b3fcdb..7e8ce499686 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/AddNewSecretForm.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/AddNewSecretForm.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { useParams } from 'common'
-import { Eye, EyeOff, Trash } from 'lucide-react'
+import { EyeIcon, EyeOffIcon, TrashIcon } from 'lucide-react'
import { useState } from 'react'
import { SubmitHandler, useFieldArray, useForm } from 'react-hook-form'
import { toast } from 'sonner'
@@ -243,7 +243,7 @@ export const AddNewSecretForm = () => {
<Button
className="w-[34px] h-[34px] shrink-0 p-0"
aria-label="Remove secret"
- icon={<Trash size={12} />}
+ icon={<TrashIcon size={12} />}
disabled={fields.length <= 1}
onClick={() => handleRemoveSecret(fieldItem.id, index)}
/>
@@ -287,7 +287,9 @@ export const AddNewSecretForm = () => {
? 'Hide secret value'
: 'Show secret value'
}
- icon={isSecretVisible(fieldItem.id) ? <EyeOff /> : <Eye />}
+ icon={
+ isSecretVisible(fieldItem.id) ? <EyeOffIcon /> : <EyeIcon />
+ }
onClick={() => handleToggleSecretVisibility(fieldItem.id)}
/>
</TooltipTrigger>
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
index a6876c129ad..5fdcd5d8afd 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Edit2, MoreVertical, Trash } from 'lucide-react'
+import { Edit2Icon, MoreVerticalIcon, TrashIcon } from 'lucide-react'
import { toast } from 'sonner'
import {
Button,
@@ -68,13 +68,13 @@ const EdgeFunctionSecret = ({ secret, onSelectEdit, onSelectDelete }: EdgeFuncti
<div className="flex items-center justify-end">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button aria-label="More options" className="px-1" icon={<MoreVertical />} />
+ <Button aria-label="More options" className="px-1" icon={<MoreVerticalIcon />} />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-52">
<DropdownMenuItem asChild>
<ButtonTooltip
variant="text"
- icon={<Edit2 size={14} />}
+ icon={<Edit2Icon size={14} />}
className="w-full justify-start group text-inherit"
disabled={!canUpdateSecrets}
onClick={() => onSelectEdit()}
@@ -96,7 +96,7 @@ const EdgeFunctionSecret = ({ secret, onSelectEdit, onSelectDelete }: EdgeFuncti
<DropdownMenuItem asChild>
<ButtonTooltip
variant="text"
- icon={<Trash size={14} className="group-not-disabled:text-destructive" />}
+ icon={<TrashIcon size={14} className="group-not-disabled:text-destructive" />}
className="w-full justify-start group text-inherit"
disabled={!canUpdateSecrets}
onClick={() => onSelectDelete()}
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx
index 58d0000a82f..94cc385fad4 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useFlag, useParams } from 'common'
-import { Search } from 'lucide-react'
+import { SearchIcon } from 'lucide-react'
import { parseAsString, useQueryState } from 'nuqs'
import { useEffect, useMemo, useState } from 'react'
import { toast } from 'sonner'
@@ -153,7 +153,7 @@ export const EdgeFunctionSecrets = () => {
placeholder="Search for a secret"
value={searchString}
onChange={(e) => setSearchString(e.target.value)}
- icon={<Search />}
+ icon={<SearchIcon />}
/>
</div>
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EditSecretSheet.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EditSecretSheet.tsx
index 9f0c65f26ae..5f5bccf58bb 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EditSecretSheet.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionSecrets/EditSecretSheet.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { useParams } from 'common'
-import { Eye, EyeOff } from 'lucide-react'
+import { EyeIcon, EyeOffIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { SubmitHandler, useForm } from 'react-hook-form'
import { useLatest } from 'react-use'
@@ -149,7 +149,7 @@ export function EditSecretSheet({ secret, visible, onClose }: EditSecretSheetPro
<Button
variant="text"
className="absolute right-1 top-1 px-1"
- icon={showSecretValue ? <EyeOff /> : <Eye />}
+ icon={showSecretValue ? <EyeOffIcon /> : <EyeIcon />}
onClick={() => setShowSecretValue(!showSecretValue)}
/>
</div>
diff --git a/apps/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx b/apps/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx
index 4f66f1d8566..5ba287f1887 100644
--- a/apps/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx
+++ b/apps/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx
@@ -1,7 +1,7 @@
import { IS_PLATFORM, useFlag } from 'common'
import { useParams } from 'common/hooks'
import dayjs from 'dayjs'
-import { Check, Copy } from 'lucide-react'
+import { CheckIcon, CopyIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useMemo, useState, type MouseEvent } from 'react'
import { cn, copyToClipboard, TableCell, TableRow } from 'ui'
@@ -88,12 +88,12 @@ export const EdgeFunctionsListItem = ({ function: item }: EdgeFunctionsListItemP
>
{isCopied ? (
<div className="text-primary">
- <Check size={14} strokeWidth={3} />
+ <CheckIcon size={14} strokeWidth={3} />
</div>
) : (
<div className="relative">
<div className="block">
- <Copy size={14} strokeWidth={1.5} />
+ <CopyIcon size={14} strokeWidth={1.5} />
</div>
</div>
)}
diff --git a/apps/studio/components/interfaces/Functions/FunctionsEmptyState.tsx b/apps/studio/components/interfaces/Functions/FunctionsEmptyState.tsx
index 5ed42035782..ad6827ad749 100644
--- a/apps/studio/components/interfaces/Functions/FunctionsEmptyState.tsx
+++ b/apps/studio/components/interfaces/Functions/FunctionsEmptyState.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Code, Server, Terminal } from 'lucide-react'
+import { CodeIcon, ServerIcon, TerminalIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { parseAsString, useQueryState } from 'nuqs'
@@ -55,7 +55,7 @@ export const FunctionsEmptyState = () => {
<>
<div className="p-8">
<div className="flex items-center gap-2">
- <Code strokeWidth={1.5} size={20} />
+ <CodeIcon strokeWidth={1.5} size={20} />
<h4 className="text-base text-foreground">Via Editor</h4>
</div>
<p className="text-sm text-foreground-light mb-4 mt-1">
@@ -125,7 +125,7 @@ export const FunctionsEmptyState = () => {
{(IS_PLATFORM || isCli) && (
<div className="p-8">
<div className="flex items-center gap-2">
- <Terminal strokeWidth={1.5} size={20} />
+ <TerminalIcon strokeWidth={1.5} size={20} />
<h4 className="text-base text-foreground">Via CLI</h4>
</div>
<p className="text-sm text-foreground-light mb-4 mt-1">
@@ -156,7 +156,7 @@ export const FunctionsEmptyState = () => {
{templates.map((template) => (
<ResourceItem
key={template.name}
- media={<Code strokeWidth={1.5} size={16} className="translate-y-[-9px]" />}
+ media={<CodeIcon strokeWidth={1.5} size={16} className="translate-y-[-9px]" />}
onClick={() => {
track('edge_function_template_clicked', {
templateName: template.name,
@@ -180,7 +180,7 @@ export const FunctionsEmptyState = () => {
const SelfHostedManualFunctionContent = () => (
<div className="p-8">
<div className="flex items-center gap-2">
- <Server strokeWidth={1.5} size={20} />
+ <ServerIcon strokeWidth={1.5} size={20} />
<h4 className="text-base text-foreground">Self-Hosted</h4>
</div>
<p className="text-sm text-foreground-light mb-4 mt-1">
diff --git a/apps/studio/components/interfaces/Functions/TerminalInstructions.tsx b/apps/studio/components/interfaces/Functions/TerminalInstructions.tsx
index e57d4a7b9df..17bc7950696 100644
--- a/apps/studio/components/interfaces/Functions/TerminalInstructions.tsx
+++ b/apps/studio/components/interfaces/Functions/TerminalInstructions.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { ExternalLink, Maximize2, Minimize2, Terminal } from 'lucide-react'
+import { ExternalLinkIcon, Maximize2Icon, Minimize2Icon, TerminalIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { ComponentPropsWithoutRef, ElementRef, forwardRef, useState } from 'react'
import { Button, Collapsible, CollapsibleContent, CollapsibleTrigger } from 'ui'
@@ -91,16 +91,16 @@ export const TerminalInstructions = forwardRef<
<CollapsibleTrigger className="flex w-full justify-between" disabled={!closable}>
<div className="flex items-center gap-x-3">
<div className="flex items-center justify-center w-8 h-8 p-2 border rounded-sm bg-alternative">
- <Terminal strokeWidth={2} />
+ <TerminalIcon strokeWidth={2} />
</div>
<h4>Create your first Edge Function via the CLI</h4>
</div>
{closable && (
<div className="cursor-pointer" onClick={() => setShowInstructions(!showInstructions)}>
{showInstructions ? (
- <Minimize2 size={16} strokeWidth={1.5} />
+ <Minimize2Icon size={16} strokeWidth={1.5} />
) : (
- <Maximize2 size={16} strokeWidth={1.5} />
+ <Maximize2Icon size={16} strokeWidth={1.5} />
)}
</div>
)}
@@ -127,7 +127,7 @@ export const TerminalInstructions = forwardRef<
</div>
<div className="flex gap-2">
<DocsButton href={`${DOCS_URL}/guides/functions`} />
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<a
target="_blank"
rel="noreferrer"
diff --git a/apps/studio/components/interfaces/Home/ClientLibrary.tsx b/apps/studio/components/interfaces/Home/ClientLibrary.tsx
index d14d8e9bccb..5640100ca80 100644
--- a/apps/studio/components/interfaces/Home/ClientLibrary.tsx
+++ b/apps/studio/components/interfaces/Home/ClientLibrary.tsx
@@ -1,4 +1,4 @@
-import { BookOpen, Github } from 'lucide-react'
+import { BookOpenIcon, GithubIcon } from 'lucide-react'
import { Badge, Button } from 'ui'
import { BASE_PATH } from '@/lib/constants'
@@ -45,12 +45,12 @@ export const ClientLibrary = ({
<div className="flex gap-2">
{docsUrl && (
<a href={docsUrl} target="_blank" rel="noreferrer">
- <Button icon={<BookOpen />}>Docs</Button>
+ <Button icon={<BookOpenIcon />}>Docs</Button>
</a>
)}
{gitUrl && (
<a href={gitUrl} target="_blank" rel="noreferrer">
- <Button icon={<Github />}>
+ <Button icon={<GithubIcon />}>
<span className="hidden md:inline">See</span> GitHub
</Button>
</a>
diff --git a/apps/studio/components/interfaces/Home/ExampleProject.tsx b/apps/studio/components/interfaces/Home/ExampleProject.tsx
index 38b07dd40d1..ab74131ef83 100644
--- a/apps/studio/components/interfaces/Home/ExampleProject.tsx
+++ b/apps/studio/components/interfaces/Home/ExampleProject.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import { useTheme } from 'next-themes'
import Link from 'next/link'
import { cn } from 'ui'
@@ -70,7 +70,7 @@ export const ExampleProject = ({
'group-hover:right-3 group-hover:text-foreground'
)}
>
- <ChevronRight />
+ <ChevronRightIcon />
</div>
</div>
</Link>
diff --git a/apps/studio/components/interfaces/Home/ProjectList/EmptyStates.tsx b/apps/studio/components/interfaces/Home/ProjectList/EmptyStates.tsx
index 50415b06234..a4974b906e1 100644
--- a/apps/studio/components/interfaces/Home/ProjectList/EmptyStates.tsx
+++ b/apps/studio/components/interfaces/Home/ProjectList/EmptyStates.tsx
@@ -1,5 +1,5 @@
import { BoxPlus } from 'icons'
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import Link from 'next/link'
import {
Button,
@@ -84,7 +84,7 @@ export const NoProjectsState = ({ slug }: { slug: string }) => {
description="Launch a complete backend built on Postgres."
>
{projectCreationEnabled && (
- <Button size="tiny" asChild icon={<Plus />}>
+ <Button size="tiny" asChild icon={<PlusIcon />}>
<Link href={`/new/${slug}`}>New project</Link>
</Button>
)}
@@ -98,7 +98,7 @@ export const NoOrganizationsState = () => {
title="Create an organization"
description="Manage your team and projects in one place."
>
- <Button size="tiny" variant="primary" asChild icon={<Plus />}>
+ <Button size="tiny" variant="primary" asChild icon={<PlusIcon />}>
<Link href="/new">New organization</Link>
</Button>
</EmptyStatePresentational>
diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx b/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx
index 67531a8aaa9..ed0c24887b3 100644
--- a/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx
+++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx
@@ -1,4 +1,4 @@
-import { Copy, Github, MoreVertical, Settings } from 'lucide-react'
+import { CopyIcon, GithubIcon, MoreVerticalIcon, SettingsIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import InlineSVG from 'react-inlinesvg'
import { toast } from 'sonner'
@@ -77,7 +77,7 @@ export const ProjectCard = ({
<DropdownMenuTrigger asChild>
<Button
variant="text"
- icon={<MoreVertical size={14} />}
+ icon={<MoreVerticalIcon size={14} />}
className="w-6 h-6 px-0"
onClick={(e) => {
e.stopPropagation()
@@ -96,7 +96,7 @@ export const ProjectCard = ({
toast.success('Copied project ID to clipboard')
}}
>
- <Copy size={14} />
+ <CopyIcon size={14} />
<span>Copy project ID</span>
</DropdownMenuItem>
<DropdownMenuItem
@@ -106,7 +106,7 @@ export const ProjectCard = ({
router.push(`/project/${projectRef}/settings/general`)
}}
>
- <Settings size={14} />
+ <SettingsIcon size={14} />
<span>Settings</span>
</DropdownMenuItem>
</DropdownMenuContent>
@@ -139,7 +139,7 @@ export const ProjectCard = ({
{isGithubIntegrated && (
<div className="bg-surface-100 flex items-center gap-x-0.5 h-5 pr-1 border border-strong rounded-md min-w-0">
<div className="w-5 h-5 p-1 flex items-center justify-center shrink-0">
- <Github size={12} strokeWidth={1.5} />
+ <GithubIcon size={12} strokeWidth={1.5} />
</div>
<p className="text-xs text-foreground-light truncate">{githubRepository}</p>
</div>
diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx b/apps/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx
index f8607bf9669..12b02e94343 100644
--- a/apps/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx
+++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx
@@ -1,4 +1,4 @@
-import { AlertTriangle, Info, PauseCircle, RefreshCcw } from 'lucide-react'
+import { AlertTriangleIcon, InfoIcon, PauseCircleIcon, RefreshCcwIcon } from 'lucide-react'
import { Badge, cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { InferredProjectStatus } from './ProjectCard.utils'
@@ -174,13 +174,13 @@ export const ProjectCardStatus = ({
)}
>
{['isPaused', 'isPausing'].includes(projectStatus ?? '') ? (
- <PauseCircle strokeWidth={1.5} size={14} />
+ <PauseCircleIcon strokeWidth={1.5} size={14} />
) : ['isRestoring', 'isComingUp', 'isRestarting', 'isResizing'].includes(
projectStatus ?? ''
) ? (
- <RefreshCcw strokeWidth={1.5} size={14} />
+ <RefreshCcwIcon strokeWidth={1.5} size={14} />
) : (
- <AlertTriangle strokeWidth={1.5} size={14} />
+ <AlertTriangleIcon strokeWidth={1.5} size={14} />
)}
</div>
{/* Text and tooltip icon */}
@@ -188,7 +188,7 @@ export const ProjectCardStatus = ({
<p className="text-xs">{alertTitle}</p>
<Tooltip>
<TooltipTrigger>
- <Info
+ <InfoIcon
size={12}
className="text-foreground-lighter hover:text-foreground transition-colors"
/>
diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectTableRow.tsx b/apps/studio/components/interfaces/Home/ProjectList/ProjectTableRow.tsx
index 29139e0fde6..775ab18c95c 100644
--- a/apps/studio/components/interfaces/Home/ProjectList/ProjectTableRow.tsx
+++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectTableRow.tsx
@@ -1,4 +1,4 @@
-import { Check, Copy, Github, MoreVertical, Settings } from 'lucide-react'
+import { CheckIcon, CopyIcon, GithubIcon, MoreVerticalIcon, SettingsIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useState } from 'react'
import InlineSVG from 'react-inlinesvg'
@@ -100,9 +100,9 @@ export const ProjectTableRow = ({
>
{projectRef}
{isCopied ? (
- <Check size={12} strokeWidth={1.25} className="text-primary" />
+ <CheckIcon size={12} strokeWidth={1.25} className="text-primary" />
) : (
- <Copy
+ <CopyIcon
size={12}
strokeWidth={1.25}
className="opacity-0 group-hover:opacity-100 transition-opacity"
@@ -128,7 +128,7 @@ export const ProjectTableRow = ({
{isGithubIntegrated && (
<div className="bg-surface-100 flex items-center gap-x-0.5 h-5 pr-1 border border-strong rounded-md">
<div className="w-5 h-5 p-1 flex items-center">
- <Github size={12} strokeWidth={1.5} />
+ <GithubIcon size={12} strokeWidth={1.5} />
</div>
{githubRepository && (
<p className="text-xs text-foreground-light truncate">{githubRepository}</p>
@@ -179,7 +179,7 @@ export const ProjectTableRow = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
aria-label={`Project ${name} actions`}
className="w-7"
onClick={(e) => e.stopPropagation()}
@@ -193,7 +193,7 @@ export const ProjectTableRow = ({
router.push(`/project/${projectRef}/settings/general`)
}}
>
- <Settings size={14} />
+ <SettingsIcon size={14} />
<span>Settings</span>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/HomePageActions.tsx b/apps/studio/components/interfaces/HomePageActions.tsx
index bd8aa2a774d..deda0a3d29e 100644
--- a/apps/studio/components/interfaces/HomePageActions.tsx
+++ b/apps/studio/components/interfaces/HomePageActions.tsx
@@ -1,7 +1,7 @@
import { keepPreviousData } from '@tanstack/react-query'
import { useDebounce } from '@uidotdev/usehooks'
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { Grid, List, Loader2, Plus, Search, X } from 'lucide-react'
+import { GridIcon, ListIcon, Loader2Icon, PlusIcon, SearchIcon, XIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { parseAsArrayOf, parseAsString, parseAsStringLiteral, useQueryState } from 'nuqs'
@@ -83,7 +83,7 @@ export const HomePageActions = ({ slug: _slug, hideNewProject = false }: HomePag
<Input
ref={searchInputRef}
placeholder="Search for a project"
- icon={<Search />}
+ icon={<SearchIcon />}
size="tiny"
className="w-full sm:w-32 md:w-64"
value={search}
@@ -95,7 +95,7 @@ export const HomePageActions = ({ slug: _slug, hideNewProject = false }: HomePag
key="clear"
size="tiny"
variant="text"
- icon={<X />}
+ icon={<XIcon />}
onClick={() => setSearch('')}
className="p-0 h-5 w-5"
aria-label="Clear"
@@ -127,7 +127,7 @@ export const HomePageActions = ({ slug: _slug, hideNewProject = false }: HomePag
setValue={(val) => setSortStorage(val as ProjectListSort)}
/>
- {isFetchingProjects && <Loader2 className="animate-spin" size={14} />}
+ {isFetchingProjects && <Loader2Icon className="animate-spin" size={14} />}
</div>
</div>
@@ -142,7 +142,7 @@ export const HomePageActions = ({ slug: _slug, hideNewProject = false }: HomePag
<Tooltip>
<TooltipTrigger asChild>
<ToggleGroupItem value="grid" className="h-[26px] w-[26px] p-0">
- <Grid size={14} strokeWidth={1.5} />
+ <GridIcon size={14} strokeWidth={1.5} />
<span className="sr-only">Toggle grid view</span>
</ToggleGroupItem>
</TooltipTrigger>
@@ -153,7 +153,7 @@ export const HomePageActions = ({ slug: _slug, hideNewProject = false }: HomePag
<Tooltip>
<TooltipTrigger asChild>
<ToggleGroupItem value="table" className="h-[26px] w-[26px] p-0">
- <List size={14} strokeWidth={1.5} />
+ <ListIcon size={14} strokeWidth={1.5} />
<span className="sr-only">Toggle list view</span>
</ToggleGroupItem>
</TooltipTrigger>
@@ -172,7 +172,7 @@ export const HomePageActions = ({ slug: _slug, hideNewProject = false }: HomePag
}}
side="bottom"
>
- <Button asChild icon={<Plus />} variant="primary" size="tiny">
+ <Button asChild icon={<PlusIcon />} variant="primary" size="tiny">
<Link href={`/new/${slug}`}>New project</Link>
</Button>
</Shortcut>
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobPage.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobPage.tsx
index b2831ea5648..73fa7b7e333 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobPage.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobPage.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { toString as CronToString } from 'cronstrue'
-import { Edit3, List } from 'lucide-react'
+import { Edit3Icon, ListIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useState } from 'react'
@@ -115,12 +115,17 @@ export const CronJobPage = () => {
<Button
key="edit"
variant="outline"
- icon={<Edit3 strokeWidth={1.5} size="14" />}
+ icon={<Edit3Icon strokeWidth={1.5} size="14" />}
onClick={() => setIsEditSheetOpen(true)}
>
Edit
</Button>,
- <Button key="view-logs" asChild variant="outline" icon={<List strokeWidth={1.5} size="14" />}>
+ <Button
+ key="view-logs"
+ asChild
+ variant="outline"
+ icon={<ListIcon strokeWidth={1.5} size="14" />}
+ >
<Link
target="_blank"
rel="noopener noreferrer"
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobTableCell.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobTableCell.tsx
index 2594778990e..4399a17e8fd 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobTableCell.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobTableCell.tsx
@@ -1,6 +1,6 @@
import parser from 'cron-parser'
import dayjs from 'dayjs'
-import { Copy, Edit, Minus, MoreVertical, Play, Trash } from 'lucide-react'
+import { CopyIcon, EditIcon, MinusIcon, MoreVerticalIcon, PlayIcon, TrashIcon } from 'lucide-react'
import { parseAsString, useQueryState } from 'nuqs'
import { useState } from 'react'
import { toast } from 'sonner'
@@ -153,7 +153,7 @@ export const CronJobTableCell = ({
variant="text"
loading={isRunning}
className="h-6 w-6"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
onClick={(e) => e.stopPropagation()}
aria-label={`${jobname} actions`}
/>
@@ -171,7 +171,7 @@ export const CronJobTableCell = ({
onRunCronJob()
}}
>
- <Play size={12} />
+ <PlayIcon size={12} />
Run command
</DropdownMenuItem>
</TooltipTrigger>
@@ -187,7 +187,7 @@ export const CronJobTableCell = ({
onSelectEdit(row)
}}
>
- <Edit size={12} />
+ <EditIcon size={12} />
Edit job
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -198,7 +198,7 @@ export const CronJobTableCell = ({
onSelectDelete(row)
}}
>
- <Trash size={12} />
+ <TrashIcon size={12} />
Delete job
</DropdownMenuItem>
</DropdownMenuContent>
@@ -260,7 +260,7 @@ export const CronJobTableCell = ({
<div className={cn('w-full flex items-center text-xs')}>
{['latest_run', 'next_run'].includes(col.id) ? (
!hasValue ? (
- <Minus size={14} className="text-foreground-lighter" />
+ <MinusIcon size={14} className="text-foreground-lighter" />
) : col.id === 'latest_run' && formattedValue === null ? (
<p className="text-foreground-lighter">Job has not been run yet</p>
) : col.id === 'next_run' && !formattedValue ? (
@@ -323,7 +323,7 @@ export const CronJobTableCell = ({
onFocusCapture={(e) => e.stopPropagation()}
onSelect={() => copyToClipboard(formattedValue)}
>
- <Copy size={12} />
+ <CopyIcon size={12} />
<span>Copy {col.name.toLowerCase()}</span>
</ContextMenuItem>
@@ -335,7 +335,7 @@ export const CronJobTableCell = ({
<Tooltip>
<TooltipTrigger asChild>
<div className="flex items-center gap-x-2 w-full">
- <Edit size={12} />
+ <EditIcon size={12} />
<span>Edit job</span>
</div>
</TooltipTrigger>
@@ -355,7 +355,7 @@ export const CronJobTableCell = ({
onFocusCapture={(e) => e.stopPropagation()}
onSelect={() => onSelectDelete(row)}
>
- <Trash size={12} />
+ <TrashIcon size={12} />
<span>Delete job</span>
</ContextMenuItem>
</ContextMenuContent>
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobs.constants.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobs.constants.tsx
index 7ce6713f1ec..722b3e738a3 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobs.constants.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobs.constants.tsx
@@ -1,5 +1,5 @@
import { EdgeFunctions, RESTApi, SqlEditor } from 'icons'
-import { ScrollText } from 'lucide-react'
+import { ScrollTextIcon } from 'lucide-react'
const cronField = /(\*|(\d+|\*\/\d+)|\d+\/\d+|\d+-\d+|\d+(,\d+)*)/
const cronDayOfMonth = /(\*|\$|(\d+|\*\/\d+)|\d+\/\d+|\d+-\d+|\d+(,\d+)*)/
@@ -26,7 +26,7 @@ export const CRONJOB_DEFINITIONS = [
},
{
value: 'sql_function',
- icon: <ScrollText strokeWidth={1} />,
+ icon: <ScrollTextIcon strokeWidth={1} />,
label: 'Database function',
description: 'Choose a database function to run.',
},
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.CleanupNotice.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.CleanupNotice.tsx
index 95cef65eecf..df32af0937c 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.CleanupNotice.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.CleanupNotice.tsx
@@ -1,5 +1,5 @@
import { getScheduleDeleteCronJobRunDetailsSql } from '@supabase/pg-meta'
-import { CheckCircle2, XCircle } from 'lucide-react'
+import { CheckCircle2Icon, XCircleIcon } from 'lucide-react'
import {
Button,
Dialog,
@@ -241,7 +241,7 @@ interface DeletionSuccessProps {
const DeletionSuccess = ({ totalRowsDeleted }: DeletionSuccessProps) => (
<div className="flex items-center gap-2 text-primary">
- <CheckCircle2 size={16} />
+ <CheckCircle2Icon size={16} />
<span className="text-sm">Successfully deleted {totalRowsDeleted.toLocaleString()} rows.</span>
</div>
)
@@ -254,7 +254,7 @@ interface DeletionErrorProps {
const DeletionError = ({ error, onRetry }: DeletionErrorProps) => (
<div className="space-y-2">
<div className="flex items-center gap-2 text-destructive">
- <XCircle size={16} />
+ <XCircleIcon size={16} />
<span className="text-sm">Deletion failed: {error}</span>
</div>
<Button size="small" onClick={onRetry}>
@@ -266,7 +266,7 @@ const DeletionError = ({ error, onRetry }: DeletionErrorProps) => (
const ScheduleSuccess = () => (
<div className="space-y-2">
<div className="flex items-center gap-2 text-primary">
- <CheckCircle2 size={16} />
+ <CheckCircle2Icon size={16} />
<span className="text-sm">Daily cleanup job scheduled successfully.</span>
</div>
<div className="flex items-center gap-2">
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx
index 19e41e6bb6f..24e8412b2c4 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.Header.tsx
@@ -1,4 +1,4 @@
-import { RefreshCw, Search, X } from 'lucide-react'
+import { RefreshCwIcon, SearchIcon, XIcon } from 'lucide-react'
import type { KeyboardEvent, Ref } from 'react'
import { Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { Input } from 'ui-patterns/DataInputs/Input'
@@ -41,7 +41,7 @@ export const CronJobsTabHeader = ({
size="tiny"
className="w-52"
placeholder="Search for a job"
- icon={<Search />}
+ icon={<SearchIcon />}
value={search}
onChange={(e) => onSearchChange(e.target.value)}
onKeyDown={handleKeyDown}
@@ -53,7 +53,7 @@ export const CronJobsTabHeader = ({
key="clear-search"
size="tiny"
variant="text"
- icon={<X />}
+ icon={<XIcon />}
onClick={onClearSearch}
className="p-0 h-5 w-5"
aria-label="Clear search"
@@ -69,7 +69,7 @@ export const CronJobsTabHeader = ({
<div className="flex items-center gap-x-2">
<EnableCleanupButton onScheduled={onRefresh} />
- <Button icon={<RefreshCw />} loading={isRefreshing} onClick={onRefresh}>
+ <Button icon={<RefreshCwIcon />} loading={isRefreshing} onClick={onRefresh}>
Refresh
</Button>
<Button variant="primary" onClick={onCreateJob}>
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.tsx
index 56715951ee2..f68106080ea 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useRouter } from 'next/router'
import { parseAsBoolean, parseAsString, useQueryState } from 'nuqs'
import { MouseEvent, useEffect, useMemo, useRef, useState } from 'react'
@@ -182,7 +182,7 @@ const CronJobsFooter = ({ count }: CronJobsFooterProps) => (
<div className="flex justify-between min-h-9 h-9 overflow-hidden items-center px-6 w-full border-t text-xs text-foreground-light">
{count.isLoading ? (
<span className="flex items-center gap-2">
- <Loader2 size={14} className="animate-spin" /> Loading...
+ <Loader2Icon size={14} className="animate-spin" /> Loading...
</span>
) : (
`Total: ${count.value ?? 0} jobs${count.isEstimate ? ' (estimate)' : ''}`
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx
index cb66e22141f..cb31f6d4449 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/EdgeFunctionSection.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common/hooks'
-import { Check, ChevronsUpDown } from 'lucide-react'
+import { CheckIcon, ChevronsUpDownIcon } from 'lucide-react'
import Link from 'next/link'
import { useEffect, useId, useMemo, useState } from 'react'
import { UseFormReturn } from 'react-hook-form'
@@ -137,7 +137,7 @@ export const EdgeFunctionSection = ({ form }: HTTPRequestFieldsProps) => {
)}
size="small"
iconRight={
- <ChevronsUpDown
+ <ChevronsUpDownIcon
className="ml-2 h-4 w-4 shrink-0 opacity-50"
strokeWidth={1}
/>
@@ -166,7 +166,7 @@ export const EdgeFunctionSection = ({ form }: HTTPRequestFieldsProps) => {
setOpen(false)
}}
>
- <Check
+ <CheckIcon
className={cn(
'mr-2 h-4 w-4',
fn.url === field.value ? 'opacity-100' : 'opacity-0'
diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/PreviousRunsTab.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/PreviousRunsTab.tsx
index 75c65f5d2f8..1a6c3b7a934 100644
--- a/apps/studio/components/interfaces/Integrations/CronJobs/PreviousRunsTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/CronJobs/PreviousRunsTab.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { CircleCheck, CircleX, Loader } from 'lucide-react'
+import { CircleCheckIcon, CircleXIcon, LoaderIcon } from 'lucide-react'
import { useMemo } from 'react'
import DataGrid, { Column, Row } from 'react-data-grid'
import { cn, LoadingLine, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -223,7 +223,7 @@ function StatusBadge({ status }: StatusBadgeProps) {
if (status === 'succeeded') {
return (
<span className="text-brand-600 flex items-center gap-1 text-xs">
- <CircleCheck size={14} /> Succeeded
+ <CircleCheckIcon size={14} /> Succeeded
</span>
)
}
@@ -231,7 +231,7 @@ function StatusBadge({ status }: StatusBadgeProps) {
if (status === 'failed') {
return (
<span className="text-destructive flex items-center gap-1 text-xs">
- <CircleX size={14} /> Failed
+ <CircleXIcon size={14} /> Failed
</span>
)
}
@@ -239,7 +239,7 @@ function StatusBadge({ status }: StatusBadgeProps) {
if (['running', 'starting', 'sending', 'connecting'].includes(status)) {
return (
<span className="text-_secondary flex items-center gap-1 text-xs">
- <Loader size={14} className="animate-spin" /> Running
+ <LoaderIcon size={14} className="animate-spin" /> Running
</span>
)
}
diff --git a/apps/studio/components/interfaces/Integrations/DataApi/DataApiDisabledState.tsx b/apps/studio/components/interfaces/Integrations/DataApi/DataApiDisabledState.tsx
index 0a9bd324e8d..42b1b1e4566 100644
--- a/apps/studio/components/interfaces/Integrations/DataApi/DataApiDisabledState.tsx
+++ b/apps/studio/components/interfaces/Integrations/DataApi/DataApiDisabledState.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { AlertCircle } from 'lucide-react'
+import { AlertCircleIcon } from 'lucide-react'
import { Alert, AlertDescription, AlertTitle } from 'ui'
import { InlineLink } from '@/components/ui/InlineLink'
@@ -14,7 +14,7 @@ export const DataApiDisabledState = ({ description }: DataApiDisabledStateProps)
return (
<div className="flex w-full p-10">
<Alert className="max-w-md mx-auto">
- <AlertCircle size={16} />
+ <AlertCircleIcon size={16} />
<AlertTitle>Data API is disabled</AlertTitle>
<AlertDescription>
Enable the Data API in the{' '}
diff --git a/apps/studio/components/interfaces/Integrations/DataApi/DataApiURLSettings.tsx b/apps/studio/components/interfaces/Integrations/DataApi/DataApiURLSettings.tsx
index 685d90f948a..c27ed6c1aba 100644
--- a/apps/studio/components/interfaces/Integrations/DataApi/DataApiURLSettings.tsx
+++ b/apps/studio/components/interfaces/Integrations/DataApi/DataApiURLSettings.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { AlertCircle } from 'lucide-react'
+import { AlertCircleIcon } from 'lucide-react'
import { Alert, AlertTitle, cn } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -19,7 +19,7 @@ export const DataApiURLSettings = () => {
<div className="flex flex-col">
{!isProjectLoading && project?.status !== PROJECT_STATUS.ACTIVE_HEALTHY ? (
<Alert variant="destructive">
- <AlertCircle size={16} />
+ <AlertCircleIcon size={16} />
<AlertTitle>API settings are unavailable as the project is not active</AlertTitle>
</Alert>
) : (
diff --git a/apps/studio/components/interfaces/Integrations/DataApi/DocsMobileNav.tsx b/apps/studio/components/interfaces/Integrations/DataApi/DocsMobileNav.tsx
index 31260a97b67..903a67e14cf 100644
--- a/apps/studio/components/interfaces/Integrations/DataApi/DocsMobileNav.tsx
+++ b/apps/studio/components/interfaces/Integrations/DataApi/DocsMobileNav.tsx
@@ -1,4 +1,4 @@
-import { Menu } from 'lucide-react'
+import { MenuIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { Button, Sheet, SheetContent, SheetHeader, SheetTitle } from 'ui'
@@ -34,7 +34,7 @@ export const DocsMobileNav = ({
return (
<>
<div className="sticky top-0 z-10 flex lg:hidden items-center border-b bg-surface-100 px-4 py-3">
- <Button icon={<Menu size={16} />} onClick={() => setOpen(true)}>
+ <Button icon={<MenuIcon size={16} />} onClick={() => setOpen(true)}>
Menu
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Integrations/DataApi/DocsTabs.utils.tsx b/apps/studio/components/interfaces/Integrations/DataApi/DocsTabs.utils.tsx
index a9c7448b3c7..a5ad882d71b 100644
--- a/apps/studio/components/interfaces/Integrations/DataApi/DocsTabs.utils.tsx
+++ b/apps/studio/components/interfaces/Integrations/DataApi/DocsTabs.utils.tsx
@@ -1,4 +1,4 @@
-import { ArrowUpRight, Book, BookOpen } from 'lucide-react'
+import { ArrowUpRightIcon, BookIcon, BookOpenIcon } from 'lucide-react'
import SVG from 'react-inlinesvg'
import type { ProductMenuGroup } from '@/components/ui/ProductMenu/ProductMenu.types'
@@ -97,7 +97,7 @@ export const generateDocsMenu = (
/>
),
items: [],
- rightIcon: <ArrowUpRight strokeWidth={1} className="h-4 w-4" />,
+ rightIcon: <ArrowUpRightIcon strokeWidth={1} className="h-4 w-4" />,
},
],
},
@@ -108,7 +108,7 @@ export const generateDocsMenu = (
name: 'Guides',
key: 'guides',
url: DOCS_URL,
- icon: <Book size={14} strokeWidth={2} />,
+ icon: <BookIcon size={14} strokeWidth={2} />,
items: [],
isExternal: true,
},
@@ -116,7 +116,7 @@ export const generateDocsMenu = (
name: 'API Reference',
key: 'api-reference',
url: `${DOCS_URL}/guides/api`,
- icon: <BookOpen size={14} strokeWidth={2} />,
+ icon: <BookOpenIcon size={14} strokeWidth={2} />,
items: [],
isExternal: true,
},
diff --git a/apps/studio/components/interfaces/Integrations/GraphQL/GraphiQLTab.tsx b/apps/studio/components/interfaces/Integrations/GraphQL/GraphiQLTab.tsx
index b40f791e27a..f567932e459 100644
--- a/apps/studio/components/interfaces/Integrations/GraphQL/GraphiQLTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/GraphQL/GraphiQLTab.tsx
@@ -6,7 +6,7 @@ import { createGraphiQLFetcher, Fetcher } from '@graphiql/toolkit'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import { GraphiQL, HISTORY_PLUGIN } from 'graphiql'
-import { User as IconUser } from 'lucide-react'
+import { UserIcon } from 'lucide-react'
import { useTheme } from 'next-themes'
import { useCallback, useEffect, useMemo, useState } from 'react'
import { toast } from 'sonner'
@@ -30,7 +30,7 @@ import { useGetImpersonatedRoleState } from '@/state/role-impersonation-state'
const ROLE_IMPERSONATION_PLUGIN: GraphiQLPlugin = {
title: 'Role Impersonation',
- icon: () => <IconUser />,
+ icon: () => <UserIcon />,
content: () => <RoleImpersonationSelector />,
}
diff --git a/apps/studio/components/interfaces/Integrations/GraphQL/IntrospectionDisabledNotice.tsx b/apps/studio/components/interfaces/Integrations/GraphQL/IntrospectionDisabledNotice.tsx
index 9cb5b101ab5..5bcff2653e8 100644
--- a/apps/studio/components/interfaces/Integrations/GraphQL/IntrospectionDisabledNotice.tsx
+++ b/apps/studio/components/interfaces/Integrations/GraphQL/IntrospectionDisabledNotice.tsx
@@ -1,5 +1,5 @@
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { ChevronDown, ChevronUp } from 'lucide-react'
+import { ChevronDownIcon, ChevronUpIcon } from 'lucide-react'
import { useState } from 'react'
import { Button } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -51,7 +51,7 @@ export const IntrospectionDisabledNotice = ({
<Button
variant="text"
size="tiny"
- icon={<ChevronDown />}
+ icon={<ChevronDownIcon />}
onClick={() => setIsCollapsed(false)}
aria-label="Show introspection notice details"
/>
@@ -82,7 +82,7 @@ export const IntrospectionDisabledNotice = ({
className="absolute right-2 top-2"
variant="text"
size="tiny"
- icon={<ChevronUp />}
+ icon={<ChevronUpIcon />}
onClick={() => setIsCollapsed(true)}
aria-label="Collapse introspection notice"
/>
diff --git a/apps/studio/components/interfaces/Integrations/Integration/BuildBySection.tsx b/apps/studio/components/interfaces/Integrations/Integration/BuildBySection.tsx
index 0fe6dc6dfad..202fc4b9291 100644
--- a/apps/studio/components/interfaces/Integrations/Integration/BuildBySection.tsx
+++ b/apps/studio/components/interfaces/Integrations/Integration/BuildBySection.tsx
@@ -1,4 +1,4 @@
-import { Book } from 'lucide-react'
+import { BookIcon } from 'lucide-react'
import Link from 'next/link'
import { ComponentPropsWithoutRef, ElementRef, forwardRef, ReactNode } from 'react'
import { cn } from 'ui'
@@ -44,7 +44,7 @@ export const BuiltBySection = forwardRef<ElementRef<'div'>, BuiltBySectionProps>
rel="noreferrer"
className="text-foreground-light hover:text-foreground text-sm flex items-center gap-2"
>
- <Book size={16} />
+ <BookIcon size={16} />
{docsUrl.includes('supabase.com/docs')
? 'Supabase Docs'
: docsUrl.includes('github.com')
diff --git a/apps/studio/components/interfaces/Integrations/Integration/ConnectedResourceGroupSection.tsx b/apps/studio/components/interfaces/Integrations/Integration/ConnectedResourceGroupSection.tsx
index b7b644d1662..f8e9bfab721 100644
--- a/apps/studio/components/interfaces/Integrations/Integration/ConnectedResourceGroupSection.tsx
+++ b/apps/studio/components/interfaces/Integrations/Integration/ConnectedResourceGroupSection.tsx
@@ -1,4 +1,4 @@
-import { Settings, Trash2, TriangleAlert } from 'lucide-react'
+import { SettingsIcon, Trash2Icon, TriangleAlertIcon } from 'lucide-react'
import Link from 'next/link'
import { Badge, Button } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -20,7 +20,7 @@ export const ResourceGroupSection = ({
<h3 className="text-base text-foreground">{group.title}</h3>
{group.missing ? (
<Badge variant="warning" className="gap-x-1.5">
- <TriangleAlert size={12} strokeWidth={1.5} />
+ <TriangleAlertIcon size={12} strokeWidth={1.5} />
Not connected
</Badge>
) : (
@@ -46,7 +46,7 @@ export const ResourceGroupSection = ({
{group.missing ? (
group.manageAction && (
<div className="max-w-2xl">
- <Button asChild icon={<Settings />}>
+ <Button asChild icon={<SettingsIcon />}>
<Link href={group.manageAction.href}>{group.manageAction.label}</Link>
</Button>
</div>
@@ -69,12 +69,12 @@ export const ResourceGroupSection = ({
</div>
<div className="flex shrink-0 items-center gap-x-2">
{group.manageAction && (
- <Button asChild icon={<Settings />}>
+ <Button asChild icon={<SettingsIcon />}>
<Link href={group.manageAction.href}>{group.manageAction.label}</Link>
</Button>
)}
<Button
- icon={<Trash2 className="text-foreground-light" />}
+ icon={<Trash2Icon className="text-foreground-light" />}
onClick={() => onRemove(item.resource)}
>
Remove
diff --git a/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallationSettings.tsx b/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallationSettings.tsx
index 968f11a4fc6..7dae112679f 100644
--- a/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallationSettings.tsx
+++ b/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/InstallIntegrationSheet/InstallationSettings.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import type { FieldPath, FieldValues, UseFormReturn } from 'react-hook-form'
import { Button, Card, CardContent, FormControl, FormField, SheetSection } from 'ui'
@@ -64,7 +64,7 @@ export const InstallationSettings = <
<Button
asChild
key={action.label}
- icon={isExternal ? <ExternalLink /> : undefined}
+ icon={isExternal ? <ExternalLinkIcon /> : undefined}
>
<Link
href={action.href}
diff --git a/apps/studio/components/interfaces/Integrations/Landing/IntegrationCard.tsx b/apps/studio/components/interfaces/Integrations/Landing/IntegrationCard.tsx
index f6f696079e2..d44ee0ddd6f 100644
--- a/apps/studio/components/interfaces/Integrations/Landing/IntegrationCard.tsx
+++ b/apps/studio/components/interfaces/Integrations/Landing/IntegrationCard.tsx
@@ -1,4 +1,4 @@
-import { BadgeCheck } from 'lucide-react'
+import { BadgeCheckIcon } from 'lucide-react'
import Image from 'next/image'
import Link from 'next/link'
import { Badge, Card, CardContent, cn } from 'ui'
@@ -92,7 +92,7 @@ export const IntegrationCard = ({
</div>
{isInstalled && (
<div className="flex items-center gap-x-1">
- <BadgeCheck size={14} className="text-primary" />
+ <BadgeCheckIcon size={14} className="text-primary" />
<span className="text-primary text-xs">Installed</span>
</div>
)}
diff --git a/apps/studio/components/interfaces/Integrations/Landing/Integrations.constants.tsx b/apps/studio/components/interfaces/Integrations/Landing/Integrations.constants.tsx
index 66fb9e0754a..811688ddd3a 100644
--- a/apps/studio/components/interfaces/Integrations/Landing/Integrations.constants.tsx
+++ b/apps/studio/components/interfaces/Integrations/Landing/Integrations.constants.tsx
@@ -1,6 +1,14 @@
import { getEnableWebhooksSQL } from '@supabase/pg-meta'
import type { Tables } from 'common/marketplace.types'
-import { Clock5, Code2, Layers, Timer, Vault, Warehouse, Webhook } from 'lucide-react'
+import {
+ Clock5Icon,
+ Code2Icon,
+ LayersIcon,
+ TimerIcon,
+ VaultIcon,
+ WarehouseIcon,
+ WebhookIcon,
+} from 'lucide-react'
import dynamic from 'next/dynamic'
import Image from 'next/image'
import { ComponentType, ReactNode } from 'react'
@@ -138,7 +146,7 @@ const SUPABASE_INTEGRATIONS: Array<IntegrationDefinition> = [
missingExtensionsAlert: <UpgradeDatabaseAlert minimumVersion="15.6.1.143" />,
name: `Queues`,
icon: ({ className, ...props } = {}) => (
- <Layers className={cn('inset-0 p-2 text-black w-full h-full', className)} {...props} />
+ <LayersIcon className={cn('inset-0 p-2 text-black w-full h-full', className)} {...props} />
),
description: 'Lightweight message queue in Postgres',
docsUrl: 'https://github.com/tembo-io/pgmq',
@@ -156,7 +164,7 @@ const SUPABASE_INTEGRATIONS: Array<IntegrationDefinition> = [
label: 'Queues',
hasChild: true,
childIcon: (
- <Layers size={12} strokeWidth={1.5} className={cn('text-foreground w-full h-full')} />
+ <LayersIcon size={12} strokeWidth={1.5} className={cn('text-foreground w-full h-full')} />
),
},
{
@@ -200,7 +208,7 @@ const SUPABASE_INTEGRATIONS: Array<IntegrationDefinition> = [
requiredExtensions: ['pg_cron'],
name: `Cron`,
icon: ({ className, ...props } = {}) => (
- <Clock5 className={cn('inset-0 p-2 text-black w-full h-full', className)} {...props} />
+ <Clock5Icon className={cn('inset-0 p-2 text-black w-full h-full', className)} {...props} />
),
description: 'Schedule recurring Jobs in Postgres',
docsUrl: 'https://github.com/citusdata/pg_cron',
@@ -218,7 +226,7 @@ const SUPABASE_INTEGRATIONS: Array<IntegrationDefinition> = [
label: 'Jobs',
hasChild: true,
childIcon: (
- <Timer size={12} strokeWidth={1.5} className={cn('text-foreground w-full h-full')} />
+ <TimerIcon size={12} strokeWidth={1.5} className={cn('text-foreground w-full h-full')} />
),
},
],
@@ -256,7 +264,7 @@ const SUPABASE_INTEGRATIONS: Array<IntegrationDefinition> = [
name: `Vault`,
status: 'beta',
icon: ({ className, ...props } = {}) => (
- <Vault className={cn('inset-0 p-2 text-black w-full h-full', className)} {...props} />
+ <VaultIcon className={cn('inset-0 p-2 text-black w-full h-full', className)} {...props} />
),
description: 'Application level encryption for your project',
docsUrl: `${DOCS_URL}/guides/database/vault`,
@@ -300,7 +308,7 @@ const SUPABASE_INTEGRATIONS: Array<IntegrationDefinition> = [
source: 'Official' as const,
name: `Database Webhooks`,
icon: ({ className, ...props } = {}) => (
- <Webhook className={cn('inset-0 p-2 text-black w-full h-full', className)} {...props} />
+ <WebhookIcon className={cn('inset-0 p-2 text-black w-full h-full', className)} {...props} />
),
description:
'Send real-time data from your database to another system when a table event occurs',
@@ -357,7 +365,7 @@ const SUPABASE_INTEGRATIONS: Array<IntegrationDefinition> = [
requiredExtensions: [],
name: `Data API`,
icon: ({ className, ...props } = {}) => (
- <Code2 className={cn('inset-0 p-2 text-black w-full h-full', className)} {...props} />
+ <Code2Icon className={cn('inset-0 p-2 text-black w-full h-full', className)} {...props} />
),
description: 'Auto-generate an API directly from your database schema',
docsUrl: `${DOCS_URL}/guides/api`,
@@ -421,7 +429,7 @@ const SUPABASE_INTEGRATIONS: Array<IntegrationDefinition> = [
requiredExtensions: [],
name: `Warehouse`,
icon: ({ className, ...props } = {}) => (
- <Warehouse className={cn('inset-0 p-2 text-black w-full h-full', className)} {...props} />
+ <WarehouseIcon className={cn('inset-0 p-2 text-black w-full h-full', className)} {...props} />
),
description: 'Replicate your database to an analytical endpoint',
// No Warehouse guide exists yet. Point this at `${DOCS_URL}/guides/warehouse` once one does.
diff --git a/apps/studio/components/interfaces/Integrations/Landing/useAvailableIntegrations.tsx b/apps/studio/components/interfaces/Integrations/Landing/useAvailableIntegrations.tsx
index 6add26022c0..4a5eddc168b 100644
--- a/apps/studio/components/interfaces/Integrations/Landing/useAvailableIntegrations.tsx
+++ b/apps/studio/components/interfaces/Integrations/Landing/useAvailableIntegrations.tsx
@@ -6,7 +6,7 @@ import {
useFlag,
} from 'common'
import { fullImageUrl } from 'common/marketplace-client'
-import { Boxes } from 'lucide-react'
+import { BoxesIcon } from 'lucide-react'
import dynamic from 'next/dynamic'
import Image from 'next/image'
import { useContext, useMemo } from 'react'
@@ -34,7 +34,7 @@ const renderMarketplaceLogo = (listingLogo?: string | null) => {
{...props}
/>
) : (
- <Boxes className={cn('inset-0 p-2 text-black w-full h-full', className)} {...props} />
+ <BoxesIcon className={cn('inset-0 p-2 text-black w-full h-full', className)} {...props} />
)}
</div>
)
diff --git a/apps/studio/components/interfaces/Integrations/Marketplace/Marketplace.constants.tsx b/apps/studio/components/interfaces/Integrations/Marketplace/Marketplace.constants.tsx
index 2d64bb82d65..37eb3185bdf 100644
--- a/apps/studio/components/interfaces/Integrations/Marketplace/Marketplace.constants.tsx
+++ b/apps/studio/components/interfaces/Integrations/Marketplace/Marketplace.constants.tsx
@@ -1,4 +1,12 @@
-import { BadgeCheck, Cable, Database, Package2, Plug, Users, type LucideIcon } from 'lucide-react'
+import {
+ BadgeCheckIcon,
+ CableIcon,
+ DatabaseIcon,
+ Package2Icon,
+ PlugIcon,
+ UsersIcon,
+ type LucideIcon,
+} from 'lucide-react'
import type { ReactNode } from 'react'
import { Badge, cn, IconPartners } from 'ui'
@@ -28,10 +36,10 @@ export const INTEGRATION_TYPES: Array<{
label: string
icon: LucideIcon
}> = [
- { key: 'oauth', label: 'OAuth App', icon: Plug },
- { key: 'postgres_extension', label: 'Postgres Module', icon: Database },
- { key: 'template', label: 'Template', icon: Package2 },
- { key: 'wrapper', label: 'Wrapper', icon: Cable },
+ { key: 'oauth', label: 'OAuth App', icon: PlugIcon },
+ { key: 'postgres_extension', label: 'Postgres Module', icon: DatabaseIcon },
+ { key: 'template', label: 'Template', icon: Package2Icon },
+ { key: 'wrapper', label: 'Wrapper', icon: CableIcon },
]
export const FEATURED_CATEGORIES: Array<{ slug: string; name: string }> = [
@@ -84,9 +92,9 @@ export const MARKETPLACE_SOURCES: Array<{
label: string
icon: LucideIcon | ((props: { className?: string }) => ReactNode)
}> = [
- { key: 'Official', label: 'Official', icon: BadgeCheck },
+ { key: 'Official', label: 'Official', icon: BadgeCheckIcon },
{ key: 'Partner', label: 'Partner', icon: IconPartners },
- { key: 'Community', label: 'Community', icon: Users },
+ { key: 'Community', label: 'Community', icon: UsersIcon },
]
export const getMarketplaceSource = (integration: IntegrationDefinition): MarketplaceSource => {
diff --git a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceDetail.tsx b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceDetail.tsx
index 5d24eb0c9d4..0187e3920fb 100644
--- a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceDetail.tsx
+++ b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceDetail.tsx
@@ -1,4 +1,4 @@
-import { ArrowUpRight, BookOpen, Gauge, Settings } from 'lucide-react'
+import { ArrowUpRightIcon, BookOpenIcon, GaugeIcon, SettingsIcon } from 'lucide-react'
import { Button, cn } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
import { GenericSkeletonLoader, ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
@@ -109,8 +109,8 @@ export const MarketplaceDetail = () => {
<Button
variant="text"
size="tiny"
- icon={<Gauge size={13} />}
- iconRight={<ArrowUpRight size={13} />}
+ icon={<GaugeIcon size={13} />}
+ iconRight={<ArrowUpRightIcon size={13} />}
asChild
>
<a
@@ -126,8 +126,8 @@ export const MarketplaceDetail = () => {
<Button
variant="text"
size="tiny"
- icon={<Settings size={13} />}
- iconRight={<ArrowUpRight size={13} />}
+ icon={<SettingsIcon size={13} />}
+ iconRight={<ArrowUpRightIcon size={13} />}
asChild
>
<a href={integrationStatus.partner_links.manage} target="_blank" rel="noreferrer">
@@ -139,8 +139,8 @@ export const MarketplaceDetail = () => {
<Button
variant="text"
size="tiny"
- icon={<BookOpen size={13} />}
- iconRight={<ArrowUpRight size={13} />}
+ icon={<BookOpenIcon size={13} />}
+ iconRight={<ArrowUpRightIcon size={13} />}
asChild
>
<a href={integration.docsUrl} target="_blank" rel="noreferrer">
diff --git a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceDetailRail.tsx b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceDetailRail.tsx
index 88e04e8a517..2e67ae138a0 100644
--- a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceDetailRail.tsx
+++ b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceDetailRail.tsx
@@ -1,4 +1,4 @@
-import { ArrowUpRight, BookOpen, Globe } from 'lucide-react'
+import { ArrowUpRightIcon, BookOpenIcon, GlobeIcon } from 'lucide-react'
import type { ReactNode } from 'react'
import { cn } from 'ui'
@@ -22,7 +22,7 @@ const RailRow = ({ label, value, href, mono, icon }: RailRowProps) => {
const content = (
<>
{value}
- {href && <ArrowUpRight size={11} />}
+ {href && <ArrowUpRightIcon size={11} />}
</>
)
return (
@@ -85,10 +85,10 @@ export const MarketplaceDetailRail = ({ integration, isInstalled }: MarketplaceD
{(docsUrl || siteUrl) && (
<RailGroup title="Links">
{docsUrl && (
- <RailRow value="Documentation" icon={<BookOpen size={14} />} href={docsUrl} />
+ <RailRow value="Documentation" icon={<BookOpenIcon size={14} />} href={docsUrl} />
)}
{siteUrl && siteHost && (
- <RailRow value={siteHost} icon={<Globe size={14} />} href={siteUrl} />
+ <RailRow value={siteHost} icon={<GlobeIcon size={14} />} href={siteUrl} />
)}
</RailGroup>
)}
diff --git a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFilterBar.tsx b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFilterBar.tsx
index fb6b4a00bd8..5e607f2501c 100644
--- a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFilterBar.tsx
+++ b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceFilterBar.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown, LayoutGrid, List, Search } from 'lucide-react'
+import { ChevronDownIcon, LayoutGridIcon, ListIcon, SearchIcon } from 'lucide-react'
import type { Ref } from 'react'
import {
Button,
@@ -91,13 +91,13 @@ export const MarketplaceFilterBar = ({
onChange={(e) => onSearchChange(e.target.value)}
onKeyDown={onSearchInputEscape(search, onSearchChange)}
placeholder={`Search integration${resultCount === 1 ? '' : 's'}…`}
- icon={<Search size={14} />}
+ icon={<SearchIcon size={14} />}
containerClassName="w-full min-w-40 max-w-60 grow flex-1"
/>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button iconRight={<ChevronDown />} className={triggerCls}>
+ <Button iconRight={<ChevronDownIcon />} className={triggerCls}>
<span className="truncate">Category: {categoryLabel}</span>
</Button>
</DropdownMenuTrigger>
@@ -136,7 +136,7 @@ export const MarketplaceFilterBar = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button iconRight={<ChevronDown />} className={triggerCls}>
+ <Button iconRight={<ChevronDownIcon />} className={triggerCls}>
<span className="truncate">Type: {typeLabel}</span>
</Button>
</DropdownMenuTrigger>
@@ -170,7 +170,7 @@ export const MarketplaceFilterBar = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button iconRight={<ChevronDown />} className={triggerCls}>
+ <Button iconRight={<ChevronDownIcon />} className={triggerCls}>
<span className="truncate">Source: {sourceLabel}</span>
</Button>
</DropdownMenuTrigger>
@@ -226,7 +226,7 @@ export const MarketplaceFilterBar = ({
: 'text-foreground-light hover:bg-surface-100'
)}
>
- <LayoutGrid size={13} />
+ <LayoutGridIcon size={13} />
</button>
<button
type="button"
@@ -241,7 +241,7 @@ export const MarketplaceFilterBar = ({
: 'text-foreground-light hover:bg-surface-100'
)}
>
- <List size={13} />
+ <ListIcon size={13} />
</button>
</div>
</div>
diff --git a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceSidebar.tsx b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceSidebar.tsx
index 0b3f9b06dde..328f8568de3 100644
--- a/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceSidebar.tsx
+++ b/apps/studio/components/interfaces/Integrations/Marketplace/MarketplaceSidebar.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ArrowUpRight, BookOpen, LayoutGrid, PlusSquare } from 'lucide-react'
+import { ArrowUpRightIcon, BookOpenIcon, LayoutGridIcon, PlusSquareIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { cn } from 'ui'
@@ -42,12 +42,12 @@ const SidebarLink = ({ href, active, icon, label, count, className }: SidebarLin
const HELP_LINKS: Array<{ icon: React.ReactNode; label: string; href: string }> = [
{
- icon: <BookOpen className="text-foreground-lighter" size={13} />,
+ icon: <BookOpenIcon className="text-foreground-lighter" size={13} />,
label: 'Integrations docs',
href: `${DOCS_URL}/guides/integrations`,
},
{
- icon: <PlusSquare className="text-foreground-lighter" size={13} />,
+ icon: <PlusSquareIcon className="text-foreground-lighter" size={13} />,
label: 'Build an integration',
href: `${DOCS_URL}/guides/integrations/build-a-supabase-oauth-integration`,
},
@@ -69,7 +69,7 @@ export const MarketplaceSidebar = () => {
<SidebarLink
href={baseHref}
active={isDiscoverActive}
- icon={<LayoutGrid size={13} />}
+ icon={<LayoutGridIcon size={13} />}
label="Explore all"
/>
@@ -121,7 +121,7 @@ export const MarketplaceSidebar = () => {
{icon}
{label}
</span>
- <ArrowUpRight size={11} className="opacity-50" />
+ <ArrowUpRightIcon size={11} className="opacity-50" />
</a>
))}
</aside>
diff --git a/apps/studio/components/interfaces/Integrations/Queues/QueueCells.tsx b/apps/studio/components/interfaces/Integrations/Queues/QueueCells.tsx
index de291e16b41..57c9e77f6f0 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/QueueCells.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/QueueCells.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { Check, Loader2, X } from 'lucide-react'
+import { CheckIcon, Loader2Icon, XIcon } from 'lucide-react'
import { pgmqQueueTable } from './Queues.utils'
import { useQueuesMetricsQuery } from '@/data/database-queues/database-queues-metrics-query'
@@ -49,7 +49,7 @@ export const QueueRLSCell = ({ queue }: QueueCellProps) => {
return (
<div className="flex items-center">
- {isRlsEnabled ? <Check size={14} className="text-primary" /> : <X size={14} />}
+ {isRlsEnabled ? <CheckIcon size={14} className="text-primary" /> : <XIcon size={14} />}
</div>
)
}
@@ -77,7 +77,7 @@ export const QueueSizeCell = ({ queue }: QueueCellProps) => {
return (
<div className="flex items-center">
{isLoading ? (
- <Loader2 className="animate-spin" size={16} />
+ <Loader2Icon className="animate-spin" size={16} />
) : (
<span>
{metrics?.queue_length} {metrics?.method === 'estimated' ? '(Approximate)' : null}
diff --git a/apps/studio/components/interfaces/Integrations/Queues/QueueTab.tsx b/apps/studio/components/interfaces/Integrations/Queues/QueueTab.tsx
index 1df2b5482ff..39e03d1f7ef 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/QueueTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/QueueTab.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Lock, Paintbrush, PlusCircle, Trash2 } from 'lucide-react'
+import { LockIcon, PaintbrushIcon, PlusCircleIcon, Trash2Icon } from 'lucide-react'
import Link from 'next/link'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useMemo, useState } from 'react'
@@ -113,7 +113,7 @@ export const QueueTab = () => {
variant="text"
className="px-1.5"
onClick={() => setPurgeQueueModalShown(true)}
- icon={<Paintbrush />}
+ icon={<PaintbrushIcon />}
title="Purge messages"
aria-label="Purge messages"
tooltip={{ content: { side: 'bottom', text: 'Purge messages' } }}
@@ -123,7 +123,7 @@ export const QueueTab = () => {
variant="text"
className="px-1.5"
onClick={() => setDeleteQueueModalShown(true)}
- icon={<Trash2 />}
+ icon={<Trash2Icon />}
title="Delete queue"
aria-label="Delete queue"
tooltip={{ content: { side: 'bottom', text: 'Delete queue' } }}
@@ -139,7 +139,7 @@ export const QueueTab = () => {
<ButtonTooltip
asChild
className="group"
- icon={<PlusCircle strokeWidth={1.5} className="text-foreground-muted" />}
+ icon={<PlusCircleIcon strokeWidth={1.5} className="text-foreground-muted" />}
tooltip={{
content: {
side: 'bottom',
@@ -190,14 +190,14 @@ export const QueueTab = () => {
<PopoverTrigger asChild>
<Button
variant={isExposed ? 'warning' : 'default'}
- icon={<Lock strokeWidth={1.5} />}
+ icon={<LockIcon strokeWidth={1.5} />}
>
RLS disabled
</Button>
</PopoverTrigger>
<PopoverContent className="w-80 text-sm" align="end">
<h3 className="text-xs flex items-center gap-x-2">
- <Lock size={14} /> Row Level Security (RLS)
+ <LockIcon size={14} /> Row Level Security (RLS)
</h3>
<div className="grid gap-2 mt-2 text-foreground-light text-xs">
{isExposed ? (
diff --git a/apps/studio/components/interfaces/Integrations/Queues/Queues.constants.tsx b/apps/studio/components/interfaces/Integrations/Queues/Queues.constants.tsx
index a80a56be71e..0a28cad2313 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/Queues.constants.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/Queues.constants.tsx
@@ -1,22 +1,22 @@
-import { Rows2, Rows3, Rows4 } from 'lucide-react'
+import { Rows2Icon, Rows3Icon, Rows4Icon } from 'lucide-react'
export const QUEUE_TYPES = [
{
value: 'basic',
- icon: <Rows4 strokeWidth={1} />,
+ icon: <Rows4Icon strokeWidth={1} />,
label: 'Basic queue',
description: 'Create a basic queue.',
},
{
value: 'unlogged',
- icon: <Rows2 strokeWidth={1} />,
+ icon: <Rows2Icon strokeWidth={1} />,
label: 'Unlogged queue',
description:
'Creates an unlogged queue which loses all data on database restart. Can be useful when write throughput is more important than durability.',
},
{
value: 'partitioned',
- icon: <Rows3 strokeWidth={1} />,
+ icon: <Rows3Icon strokeWidth={1} />,
label: 'Partitioned queue',
description: 'Create a partitioned queue which is optimized for large amount of messages',
},
diff --git a/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx b/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx
index 00f14d8c978..e3e39b220b6 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/QueuesTab.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { RefreshCw, Search, X } from 'lucide-react'
+import { RefreshCwIcon, SearchIcon, XIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { parseAsBoolean, parseAsString, useQueryState } from 'nuqs'
import { useMemo, useRef, useState } from 'react'
@@ -87,7 +87,7 @@ export const QueuesTab = () => {
size="tiny"
className="w-52"
placeholder="Search for a queue"
- icon={<Search />}
+ icon={<SearchIcon />}
value={search ?? ''}
onChange={(e) => setSearch(e.target.value)}
onKeyDown={(e) => {
@@ -102,7 +102,7 @@ export const QueuesTab = () => {
key="clear"
size="tiny"
variant="text"
- icon={<X />}
+ icon={<XIcon />}
onClick={clearSearch}
className="p-0 h-5 w-5"
aria-label="Clear search"
@@ -117,7 +117,7 @@ export const QueuesTab = () => {
/>
<div className="flex items-center gap-x-2">
- <Button icon={<RefreshCw />} loading={isRefetching} onClick={() => refetch()}>
+ <Button icon={<RefreshCwIcon />} loading={isRefetching} onClick={() => refetch()}>
Refresh
</Button>
<Button variant="primary" onClick={() => setCreateQueueSheetShown(true)}>
diff --git a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/MessageDetailsPanel.tsx b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/MessageDetailsPanel.tsx
index e90fec4cb31..c557157fcc1 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/MessageDetailsPanel.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/MessageDetailsPanel.tsx
@@ -2,7 +2,7 @@ import { useEscapeKeydown } from '@radix-ui/react-use-escape-keydown'
import { useParams } from 'common'
import dayjs from 'dayjs'
import { isNil } from 'lodash'
-import { Archive, Clock12, Trash2, X } from 'lucide-react'
+import { ArchiveIcon, Clock12Icon, Trash2Icon, XIcon } from 'lucide-react'
import { useState } from 'react'
import {
Button,
@@ -96,7 +96,7 @@ export const MessageDetailsPanel = ({
<Button
variant="text"
className="absolute top-3 right-3 z-10 px-1"
- icon={<X />}
+ icon={<XIcon />}
onClick={() => setSelectedMessage(null)}
aria-label="Close panel"
// Tooltip repeats the label; screen readers would read it twice
@@ -154,7 +154,7 @@ export const MessageDetailsPanel = ({
title="Postpone message"
description="The message will be postponed and won't show up in reads for 60 seconds."
button={{
- icon: <Clock12 />,
+ icon: <Clock12Icon />,
text: 'Postpone',
isLoading: isLoadingRead,
onClick: () => {
@@ -180,7 +180,7 @@ export const MessageDetailsPanel = ({
title="Archive message"
description="The message will be marked as archived and hidden from future reads by consumers. You can still access the message later."
button={{
- icon: <Archive />,
+ icon: <ArchiveIcon />,
text: 'Archive',
isLoading: isLoadingArchive,
variant: 'warning',
@@ -206,7 +206,7 @@ export const MessageDetailsPanel = ({
title="Delete message"
description="The message cannot be recovered afterwards."
button={{
- icon: <Trash2 />,
+ icon: <Trash2Icon />,
text: 'Delete',
variant: 'danger',
isLoading: isLoadingDelete,
diff --git a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsx b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsx
index 3f1c93d9627..2e0e0c88ab1 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { TextSearch } from 'lucide-react'
+import { TextSearchIcon } from 'lucide-react'
import { parseAsInteger, useQueryState } from 'nuqs'
import { UIEvent, useMemo, useRef } from 'react'
import DataGrid, { Column, DataGridHandle, Row } from 'react-data-grid'
@@ -192,7 +192,7 @@ export const QueueMessagesDataGrid = ({
</div>
) : (
<div className="absolute top-28 px-6 flex flex-col items-center justify-center w-full gap-y-2">
- <TextSearch className="text-foreground-muted" strokeWidth={1} />
+ <TextSearchIcon className="text-foreground-muted" strokeWidth={1} />
<div className="text-center">
<p className="text-foreground">No messages found</p>
<p className="text-foreground-light">
diff --git a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx
index de6d2b9fec7..c0970afd440 100644
--- a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx
+++ b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { isEqual } from 'lodash'
-import { HelpCircle, Settings } from 'lucide-react'
+import { HelpCircleIcon, SettingsIcon } from 'lucide-react'
import Link from 'next/link'
import { useEffect, useState } from 'react'
import { toast } from 'sonner'
@@ -241,7 +241,7 @@ export const QueueSettings = ({}: QueueSettingsProps) => {
<ButtonTooltip
variant="text"
className="px-1.5"
- icon={<Settings />}
+ icon={<SettingsIcon />}
title="Settings"
tooltip={{ content: { side: 'bottom', text: 'Queue settings' } }}
/>
@@ -298,7 +298,7 @@ export const QueueSettings = ({}: QueueSettingsProps) => {
<Tooltip>
<TooltipTrigger className="mx-auto flex items-center gap-x-1 capitalize text-foreground-light font-normal">
{x}
- {isExposed && <HelpCircle size={14} strokeWidth={1.5} />}
+ {isExposed && <HelpCircleIcon size={14} strokeWidth={1.5} />}
</TooltipTrigger>
{isExposed && (
<TooltipContent side="bottom" className="w-64 flex flex-col gap-y-1">
diff --git a/apps/studio/components/interfaces/Integrations/Vault/Secrets/AddNewSecretModal.tsx b/apps/studio/components/interfaces/Integrations/Vault/Secrets/AddNewSecretModal.tsx
index 11cf4054e4d..84323b761c5 100644
--- a/apps/studio/components/interfaces/Integrations/Vault/Secrets/AddNewSecretModal.tsx
+++ b/apps/studio/components/interfaces/Integrations/Vault/Secrets/AddNewSecretModal.tsx
@@ -1,5 +1,5 @@
import { zodResolver } from '@hookform/resolvers/zod'
-import { Eye, EyeOff } from 'lucide-react'
+import { EyeIcon, EyeOffIcon } from 'lucide-react'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useState } from 'react'
import { SubmitHandler, useForm } from 'react-hook-form'
@@ -156,7 +156,7 @@ export const AddNewSecretModal = () => {
aria-label={
isSecretVisible ? 'Hide secret value' : 'Show secret value'
}
- icon={isSecretVisible ? <EyeOff /> : <Eye />}
+ icon={isSecretVisible ? <EyeOffIcon /> : <EyeIcon />}
onClick={() => setIsSecretVisible((prev) => !prev)}
/>
</TooltipTrigger>
diff --git a/apps/studio/components/interfaces/Integrations/Vault/Secrets/EditSecretModal.tsx b/apps/studio/components/interfaces/Integrations/Vault/Secrets/EditSecretModal.tsx
index bc2a767f072..e30dddfc528 100644
--- a/apps/studio/components/interfaces/Integrations/Vault/Secrets/EditSecretModal.tsx
+++ b/apps/studio/components/interfaces/Integrations/Vault/Secrets/EditSecretModal.tsx
@@ -1,5 +1,5 @@
import { zodResolver } from '@hookform/resolvers/zod'
-import { Eye, EyeOff } from 'lucide-react'
+import { EyeIcon, EyeOffIcon } from 'lucide-react'
import { parseAsString, useQueryState } from 'nuqs'
import { useEffect, useState } from 'react'
import { useForm, type SubmitHandler } from 'react-hook-form'
@@ -200,7 +200,7 @@ export const EditSecretModal = () => {
title={showSecretValue ? `Hide secret value` : `Show secret value`}
aria-label={showSecretValue ? `Hide secret value` : `Show secret value`}
className="absolute right-1 top-1 w-7"
- icon={showSecretValue ? <EyeOff /> : <Eye />}
+ icon={showSecretValue ? <EyeOffIcon /> : <EyeIcon />}
onClick={() => setShowSecretValue(!showSecretValue)}
/>
</div>
diff --git a/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretRow.tsx b/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretRow.tsx
index bc73630d24c..e2bff1e5793 100644
--- a/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretRow.tsx
+++ b/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretRow.tsx
@@ -1,7 +1,15 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { Edit3, Eye, EyeOff, Key, Loader, MoreVertical, Trash } from 'lucide-react'
+import {
+ Edit3Icon,
+ EyeIcon,
+ EyeOffIcon,
+ KeyIcon,
+ LoaderIcon,
+ MoreVerticalIcon,
+ TrashIcon,
+} from 'lucide-react'
import { parseAsString, useQueryState } from 'nuqs'
import { useState } from 'react'
import {
@@ -64,7 +72,7 @@ export const SecretRow = ({ row, col }: SecretRowProps) => {
title="Manage Secret"
variant="text"
className="px-1"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
aria-label="Manage secret"
// Tooltip repeats the label; screen readers would read it twice
aria-describedby={undefined}
@@ -82,7 +90,7 @@ export const SecretRow = ({ row, col }: SecretRowProps) => {
content: { side: 'left', text: 'You need additional permissions to edit secrets' },
}}
>
- <Edit3 size={12} />
+ <Edit3Icon size={12} />
<p>Edit</p>
</DropdownMenuItemTooltip>
@@ -99,7 +107,7 @@ export const SecretRow = ({ row, col }: SecretRowProps) => {
},
}}
>
- <Trash size={12} />
+ <TrashIcon size={12} />
<p className="text-foreground-light">Delete</p>
</DropdownMenuItemTooltip>
</DropdownMenuContent>
@@ -118,11 +126,11 @@ export const SecretRow = ({ row, col }: SecretRowProps) => {
className="px-1.5"
icon={
isFetching && revealedValue === undefined ? (
- <Loader className="animate-spin" size={16} strokeWidth={1.5} />
+ <LoaderIcon className="animate-spin" size={16} strokeWidth={1.5} />
) : !revealSecret ? (
- <Eye size={16} strokeWidth={1.5} />
+ <EyeIcon size={16} strokeWidth={1.5} />
) : (
- <EyeOff size={16} strokeWidth={1.5} />
+ <EyeOffIcon size={16} strokeWidth={1.5} />
)
}
onClick={() => setRevealSecret(!revealSecret)}
@@ -160,7 +168,7 @@ export const SecretRow = ({ row, col }: SecretRowProps) => {
if (col.id === 'id') {
return (
<div className="w-full flex items-center">
- <Key size={12} strokeWidth={2} className="text-foreground-light mr-2" />
+ <KeyIcon size={12} strokeWidth={2} className="text-foreground-light mr-2" />
<p className="text-foreground-light text-xs font-mono truncate" title={row.id}>
{row.id}
</p>
diff --git a/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsx b/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsx
index ce11212d82d..68f3b9cde9b 100644
--- a/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsx
+++ b/apps/studio/components/interfaces/Integrations/Vault/Secrets/SecretsManagement.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import { sortBy } from 'lodash'
-import { RefreshCw, Search, X } from 'lucide-react'
+import { RefreshCwIcon, SearchIcon, XIcon } from 'lucide-react'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useEffect, useMemo, useRef, useState } from 'react'
import DataGrid, { Row } from 'react-data-grid'
@@ -112,7 +112,7 @@ export const SecretsManagement = () => {
size="tiny"
className="w-52"
placeholder="Search by name or key ID"
- icon={<Search />}
+ icon={<SearchIcon />}
value={searchValue ?? ''}
onChange={(e) => setSearchValue(e.target.value)}
onKeyDown={onSearchInputEscape(searchValue ?? '', setSearchValue)}
@@ -124,7 +124,7 @@ export const SecretsManagement = () => {
key="clear"
size="tiny"
variant="text"
- icon={<X />}
+ icon={<XIcon />}
onClick={() => setSearchValue('')}
className="p-0 h-5 w-5"
aria-label="Clear search"
@@ -156,7 +156,7 @@ export const SecretsManagement = () => {
</div>
<div className="flex items-center gap-x-2">
- <Button icon={<RefreshCw />} loading={isRefetching} onClick={() => refetch()}>
+ <Button icon={<RefreshCwIcon />} loading={isRefetching} onClick={() => refetch()}>
Refresh
</Button>
<DocsButton href={`${DOCS_URL}/guides/database/vault`} />
diff --git a/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationConnection.tsx b/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationConnection.tsx
index 4e0a683f705..bec952759cb 100644
--- a/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationConnection.tsx
+++ b/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationConnection.tsx
@@ -1,4 +1,11 @@
-import { ChevronDown, Loader2, MoreVertical, RefreshCw, SettingsIcon, Trash } from 'lucide-react'
+import {
+ ChevronDownIcon,
+ Loader2Icon,
+ MoreVerticalIcon,
+ RefreshCwIcon,
+ SettingsIcon,
+ TrashIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { forwardRef, useCallback, useState } from 'react'
import { toast } from 'sonner'
@@ -74,8 +81,8 @@ export const IntegrationConnectionItem = forwardRef<HTMLLIElement, IntegrationCo
const isManageCompact = isProjectScoped && type === 'Vercel'
const triggerLabel = isManageCompact ? null : 'Manage'
const triggerProps = isManageCompact
- ? { icon: <MoreVertical />, className: 'px-1.5', 'aria-label': 'Manage connection' }
- : { iconRight: <ChevronDown size={14} /> }
+ ? { icon: <MoreVerticalIcon />, className: 'px-1.5', 'aria-label': 'Manage connection' }
+ : { iconRight: <ChevronDownIcon size={14} /> }
return (
<>
@@ -128,9 +135,9 @@ export const IntegrationConnectionItem = forwardRef<HTMLLIElement, IntegrationCo
disabled={isSyncEnvLoading}
>
{isSyncEnvLoading ? (
- <Loader2 className="animate-spin" size={14} />
+ <Loader2Icon className="animate-spin" size={14} />
) : (
- <RefreshCw size={14} />
+ <RefreshCwIcon size={14} />
)}
<p>Resync environment variables</p>
</DropdownMenuItem>
@@ -138,7 +145,7 @@ export const IntegrationConnectionItem = forwardRef<HTMLLIElement, IntegrationCo
{((type === 'Vercel' && org?.managed_by !== 'vercel-marketplace') ||
!isProjectScoped) && <DropdownMenuSeparator />}
<DropdownMenuItem className="space-x-2" onSelect={() => setIsOpen(true)}>
- <Trash size={14} />
+ <TrashIcon size={14} />
<p>Delete connection</p>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationPanels.tsx b/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationPanels.tsx
index b8d505761be..4520df9a4cd 100644
--- a/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationPanels.tsx
+++ b/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationPanels.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { ArrowRight, ExternalLink, Github } from 'lucide-react'
+import { ArrowRightIcon, ExternalLinkIcon, GithubIcon } from 'lucide-react'
import Image from 'next/legacy/image'
import Link from 'next/link'
import { forwardRef, HTMLAttributes, ReactNode, RefAttributes } from 'react'
@@ -29,7 +29,7 @@ type HandleIconType = Integration['integration']['name'] | 'Supabase'
const HandleIcon = ({ type, className }: { type: HandleIconType; className?: string }) => {
switch (type) {
case 'GitHub':
- return <Github strokeWidth={ICON_STROKE_WIDTH} size={ICON_SIZE} />
+ return <GithubIcon strokeWidth={ICON_STROKE_WIDTH} size={ICON_SIZE} />
break
// case 'Netlify':
// return <Square strokeWidth={ICON_STROKE_WIDTH} size={ICON_SIZE} />
@@ -118,7 +118,7 @@ export const IntegrationInstallation = forwardRef<HTMLLIElement, IntegrationInst
</div>
</div>
- <Button asChild disabled={disabled} iconRight={<ExternalLink />}>
+ <Button asChild disabled={disabled} iconRight={<ExternalLinkIcon />}>
{disabled ? (
<p>Manage</p>
) : (
@@ -190,7 +190,7 @@ export const IntegrationConnection = forwardRef<HTMLLIElement, IntegrationConnec
</span>
</div>
- <ArrowRight
+ <ArrowRightIcon
size={14}
className="shrink-0 text-foreground-lighter"
strokeWidth={1.5}
@@ -259,7 +259,7 @@ export const IntegrationConnectionOption = forwardRef<HTMLLIElement, Integration
<div className="flex gap-2 items-center">
<HandleIcon type={'Supabase'} />
<span className="text-sm">{project?.name}</span>
- <ArrowRight size={14} className="text-foreground-lighter" strokeWidth={1.5} />
+ <ArrowRightIcon size={14} className="text-foreground-lighter" strokeWidth={1.5} />
<HandleIcon type={type} />
<span className="text-sm">{connection.metadata.name}</span>
</div>
diff --git a/apps/studio/components/interfaces/Integrations/VercelGithub/ProjectLinkerComponents.tsx b/apps/studio/components/interfaces/Integrations/VercelGithub/ProjectLinkerComponents.tsx
index 9b14ec9442b..7f2c337cad5 100644
--- a/apps/studio/components/interfaces/Integrations/VercelGithub/ProjectLinkerComponents.tsx
+++ b/apps/studio/components/interfaces/Integrations/VercelGithub/ProjectLinkerComponents.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Check, ChevronDown, Plus, PlusIcon } from 'lucide-react'
+import { CheckIcon, ChevronDownIcon, PlusIcon } from 'lucide-react'
import Link from 'next/link'
import { HTMLAttributes } from 'react'
import {
@@ -88,7 +88,7 @@ export const ForeignProjectSelector = ({
}
iconRight={
<span className="grow flex justify-end">
- <ChevronDown />
+ <ChevronDownIcon />
</span>
}
>
@@ -187,7 +187,7 @@ export const SupabaseProjectSelector = ({
{project.status === 'INACTIVE' && <Badge>Paused</Badge>}
{project.status === 'GOING_DOWN' && <Badge>Pausing</Badge>}
</div>
- {project.ref === selectedSupabaseProject?.ref && <Check size={16} />}
+ {project.ref === selectedSupabaseProject?.ref && <CheckIcon size={16} />}
</div>
)
}}
@@ -201,7 +201,7 @@ export const SupabaseProjectSelector = ({
iconRight={
defaultSupabaseProject === undefined ? (
<span className="grow flex justify-end">
- <ChevronDown />
+ <ChevronDownIcon />
</span>
) : null
}
@@ -228,7 +228,7 @@ export const SupabaseProjectSelector = ({
className="cursor-pointer w-full gap-2"
onSelect={() => setOpen(false)}
>
- <Plus size={14} strokeWidth={1.5} />
+ <PlusIcon size={14} strokeWidth={1.5} />
<p>Create a new project</p>
</CommandItemLink>
</CommandGroup>
diff --git a/apps/studio/components/interfaces/Integrations/Warehouse/WarehouseConnectSection.tsx b/apps/studio/components/interfaces/Integrations/Warehouse/WarehouseConnectSection.tsx
index fe57fda34c8..c4c6bec0d24 100644
--- a/apps/studio/components/interfaces/Integrations/Warehouse/WarehouseConnectSection.tsx
+++ b/apps/studio/components/interfaces/Integrations/Warehouse/WarehouseConnectSection.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Eye, EyeOff, KeyRound, Loader2 } from 'lucide-react'
+import { EyeIcon, EyeOffIcon, KeyRoundIcon, Loader2Icon } from 'lucide-react'
import Link from 'next/link'
import { useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -104,7 +104,7 @@ const FlightSqlContent = ({ projectRef }: { projectRef: string }) => (
</FieldRow>
<FieldRow label="Password">
<div className="flex justify-end">
- <Button asChild variant="default" size="tiny" icon={<KeyRound size={14} />}>
+ <Button asChild variant="default" size="tiny" icon={<KeyRoundIcon size={14} />}>
<Link href={`/project/${projectRef}/settings/database`}>Reset database password</Link>
</Button>
</div>
@@ -133,7 +133,7 @@ const DuckLakeSecretRow = ({ name, value }: { name: string; value: string }) =>
size="tiny"
className="px-1.5"
aria-label={`${isRevealed ? 'Hide' : 'Reveal'} ${name}`}
- icon={isRevealed ? <EyeOff strokeWidth={2} /> : <Eye strokeWidth={2} />}
+ icon={isRevealed ? <EyeOffIcon strokeWidth={2} /> : <EyeIcon strokeWidth={2} />}
onClick={() => setIsRevealed((value) => !value)}
/>
</TooltipTrigger>
@@ -297,7 +297,7 @@ const CatalogAccessToggle = ({
{catalogMutation.isPending ? 'Updating DuckDB catalog access' : ''}
</span>
{catalogMutation.isPending && (
- <Loader2
+ <Loader2Icon
size={16}
className="animate-spin text-foreground-muted motion-reduce:animate-none"
aria-hidden
diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/ColumnType.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/ColumnType.tsx
index cd987a61288..aa16441d53b 100644
--- a/apps/studio/components/interfaces/Integrations/Wrappers/ColumnType.tsx
+++ b/apps/studio/components/interfaces/Integrations/Wrappers/ColumnType.tsx
@@ -1,12 +1,12 @@
import {
- Calendar,
- Check,
- ChevronsUpDown,
- ExternalLink,
- Hash,
- ListPlus,
- ToggleRight,
- Type,
+ CalendarIcon,
+ CheckIcon,
+ ChevronsUpDownIcon,
+ ExternalLinkIcon,
+ HashIcon,
+ ListPlusIcon,
+ ToggleRightIcon,
+ TypeIcon,
} from 'lucide-react'
import Link from 'next/link'
import { ReactNode, useId, useState } from 'react'
@@ -82,11 +82,11 @@ export const ColumnType = ({
const inferIcon = (type: string) => {
switch (type) {
case 'number':
- return <Hash size={14} className="text-foreground" strokeWidth={1.5} />
+ return <HashIcon size={14} className="text-foreground" strokeWidth={1.5} />
case 'time':
- return <Calendar size={14} className="text-foreground" strokeWidth={1.5} />
+ return <CalendarIcon size={14} className="text-foreground" strokeWidth={1.5} />
case 'text':
- return <Type size={14} className="text-foreground" strokeWidth={1.5} />
+ return <TypeIcon size={14} className="text-foreground" strokeWidth={1.5} />
case 'json':
return (
<div className="text-foreground" style={{ padding: '0px 1px' }}>
@@ -100,9 +100,9 @@ export const ColumnType = ({
</div>
)
case 'bool':
- return <ToggleRight size={14} className="text-foreground" strokeWidth={1.5} />
+ return <ToggleRightIcon size={14} className="text-foreground" strokeWidth={1.5} />
default:
- return <ListPlus size={16} className="text-foreground" strokeWidth={1.5} />
+ return <ListPlusIcon size={16} className="text-foreground" strokeWidth={1.5} />
}
}
@@ -146,7 +146,7 @@ export const ColumnType = ({
'w-full justify-between bg-background-control',
!field.value && 'text-foreground-lighter'
)}
- iconRight={<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />}
+ iconRight={<ChevronsUpDownIcon className="ml-2 h-4 w-4 shrink-0 opacity-50" />}
title={field.value && field.value.replaceAll('"', '')}
>
{field.value ? (
@@ -193,7 +193,7 @@ export const ColumnType = ({
</div>
<span className="absolute right-3 top-2">
{option.name === field.value ? (
- <Check className="text-primary" size={14} />
+ <CheckIcon className="text-primary" size={14} />
) : (
''
)}
@@ -225,7 +225,7 @@ export const ColumnType = ({
>
<div className="flex items-center gap-2">
<div>
- <ListPlus
+ <ListPlusIcon
size={16}
className="text-foreground"
strokeWidth={1.5}
@@ -244,7 +244,7 @@ export const ColumnType = ({
)}
{option.format === field.value && (
<span className="absolute right-3 top-2">
- <Check className="text-primary" size={14} />
+ <CheckIcon className="text-primary" size={14} />
</span>
)}
</div>
@@ -273,7 +273,7 @@ export const ColumnType = ({
specific use case.
</p>
<div className="flex items-center space-x-2 mt-3">
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<Link href={recommendation.reference} target="_blank" rel="noreferrer">
Read more
</Link>
diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/ForeignTablesSelector.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/ForeignTablesSelector.tsx
index 0c9120d3669..d8e82d913cd 100644
--- a/apps/studio/components/interfaces/Integrations/Wrappers/ForeignTablesSelector.tsx
+++ b/apps/studio/components/interfaces/Integrations/Wrappers/ForeignTablesSelector.tsx
@@ -1,4 +1,4 @@
-import { Edit, Trash } from 'lucide-react'
+import { EditIcon, TrashIcon } from 'lucide-react'
import { useState } from 'react'
import { Button, cn } from 'ui'
import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
@@ -75,7 +75,7 @@ export const ForeignTablesSelector = ({
</div>
<div className="flex items-center space-x-2">
<ButtonTooltip
- icon={<Edit />}
+ icon={<EditIcon />}
onClick={() => {
setSelectedTableFieldIndex(tableIndex)
setSelectedTableToEdit(table)
@@ -83,7 +83,7 @@ export const ForeignTablesSelector = ({
tooltip={{ content: { side: 'bottom', text: 'Edit foreign table' } }}
/>
<ButtonTooltip
- icon={<Trash />}
+ icon={<TrashIcon />}
onClick={() => onRemove(tableIndex)}
tooltip={{ content: { side: 'bottom', text: 'Remove foreign table' } }}
/>
diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/InputField.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/InputField.tsx
index d0f63787288..fbe37063f11 100644
--- a/apps/studio/components/interfaces/Integrations/Wrappers/InputField.tsx
+++ b/apps/studio/components/interfaces/Integrations/Wrappers/InputField.tsx
@@ -1,4 +1,4 @@
-import { HelpCircle } from 'lucide-react'
+import { HelpCircleIcon } from 'lucide-react'
import Link from 'next/link'
import type { Control, FieldPath, FieldValues } from 'react-hook-form'
import { cn, FormControl, FormField, Input, InputVariants, Textarea } from 'ui'
@@ -39,7 +39,7 @@ export const InputField = <
{option.urlHelper !== undefined && (
<Link href={option.urlHelper} target="_blank" rel="noreferrer">
<span className="sr-only">Documentation</span>
- <HelpCircle
+ <HelpCircleIcon
strokeWidth={2}
size={14}
className="text-foreground-light hover:text-foreground cursor-pointer transition"
diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/WrapperRow.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/WrapperRow.tsx
index bb13873456f..22e4631fb3f 100644
--- a/apps/studio/components/interfaces/Integrations/Wrappers/WrapperRow.tsx
+++ b/apps/studio/components/interfaces/Integrations/Wrappers/WrapperRow.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import { partition } from 'lodash'
-import { ChevronRight, Edit, ExternalLink, Table2, Trash } from 'lucide-react'
+import { ChevronRightIcon, EditIcon, ExternalLinkIcon, Table2Icon, TrashIcon } from 'lucide-react'
import Link from 'next/link'
import { parseAsString, useQueryState } from 'nuqs'
import { Badge, TableCell, TableRow, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -85,12 +85,16 @@ export const WrapperRow = ({ wrapper }: WrapperRowProps) => {
{target}
</TooltipContent>
</Tooltip>
- <ChevronRight size={12} strokeWidth={1.5} className="text-foreground-lighter/50" />
+ <ChevronRightIcon
+ size={12}
+ strokeWidth={1.5}
+ className="text-foreground-lighter/50"
+ />
</Badge>
<Link href={`/project/${ref}/editor/${tableId}`}>
<Badge className="transition hover:bg-surface-300 px-2 rounded-l-none gap-1.5 h-6 font-mono text-xs tracking-tight border-l-0">
- <Table2 size={12} strokeWidth={1.5} className="text-foreground-lighter/50" />
+ <Table2Icon size={12} strokeWidth={1.5} className="text-foreground-lighter/50" />
<Tooltip>
<TooltipTrigger className="truncate max-w-28">
{table.schema}.{table.table_name}
@@ -118,7 +122,7 @@ export const WrapperRow = ({ wrapper }: WrapperRowProps) => {
className="transition text-foreground-light hover:text-foreground flex items-center gap-x-2"
>
<span title={`View ${metadata.label} in Vault`}>{metadata.label}</span>
- <ExternalLink size={14} strokeWidth={1.5} />
+ <ExternalLinkIcon size={14} strokeWidth={1.5} />
</Link>
</div>
))}
@@ -127,7 +131,7 @@ export const WrapperRow = ({ wrapper }: WrapperRowProps) => {
<div className="flex items-center gap-x-2">
<ButtonTooltip
disabled={!canManageWrappers}
- icon={<Edit strokeWidth={1.5} />}
+ icon={<EditIcon strokeWidth={1.5} />}
className="px-1.5"
onClick={() => setSelectedWrapperToEdit(wrapper.id.toString())}
tooltip={{
@@ -139,7 +143,7 @@ export const WrapperRow = ({ wrapper }: WrapperRowProps) => {
/>
<ButtonTooltip
disabled={!canManageWrappers}
- icon={<Trash strokeWidth={1.5} />}
+ icon={<TrashIcon strokeWidth={1.5} />}
className="px-1.5"
onClick={() => setSelectedWrapperToDelete(wrapper.id.toString())}
tooltip={{
diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/WrapperTableEditor.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/WrapperTableEditor.tsx
index 5d08a92ad6f..824da4c47d1 100644
--- a/apps/studio/components/interfaces/Integrations/Wrappers/WrapperTableEditor.tsx
+++ b/apps/studio/components/interfaces/Integrations/Wrappers/WrapperTableEditor.tsx
@@ -1,5 +1,5 @@
import { zodResolver } from '@hookform/resolvers/zod'
-import { Check, ChevronsUpDown, XIcon } from 'lucide-react'
+import { CheckIcon, ChevronsUpDownIcon, XIcon } from 'lucide-react'
import { useEffect, useId, useMemo, useRef, useState } from 'react'
import {
Control,
@@ -128,7 +128,7 @@ export const WrapperTableEditor = ({
)}
size="small"
iconRight={
- <ChevronsUpDown
+ <ChevronsUpDownIcon
className="ml-2 h-4 w-4 shrink-0 opacity-50"
strokeWidth={1}
/>
@@ -162,7 +162,7 @@ export const WrapperTableEditor = ({
<p className="text-foreground-lighter">{table.description}</p>
</div>
{String(i) === selectedTableIndex && (
- <Check className={cn('mr-2 h-4 w-4')} />
+ <CheckIcon className={cn('mr-2 h-4 w-4')} />
)}
</CommandItem>
))}
diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/OverviewTab.tsx b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/OverviewTab.tsx
index 287fc7f0ed3..d652dce906a 100644
--- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/OverviewTab.tsx
+++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/OverviewTab.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import { useCallback, useEffect, useRef, useState } from 'react'
import { useForm } from 'react-hook-form'
@@ -303,7 +303,7 @@ const StripeSyncContent = ({ hideInstallCTA = false }: { hideInstallCTA?: boolea
/>
<div className="flex items-center gap-x-2">
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<Link
target="_blank"
rel="noopener noreferrer"
@@ -312,7 +312,7 @@ const StripeSyncContent = ({ hideInstallCTA = false }: { hideInstallCTA?: boolea
Get Stripe API key
</Link>
</Button>
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<Link
target="_blank"
rel="noopener noreferrer"
diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncChangesCard.tsx b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncChangesCard.tsx
index 4e15dbd1740..23f4543155a 100644
--- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncChangesCard.tsx
+++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncChangesCard.tsx
@@ -1,6 +1,6 @@
import { SchemaInstallationStatus } from '@stripe/sync-engine/supabase'
import { EdgeFunctions } from 'icons'
-import { Layers, Loader2, Table } from 'lucide-react'
+import { LayersIcon, Loader2Icon, TableIcon } from 'lucide-react'
import { Card, CardContent, cn } from 'ui'
import {
@@ -112,9 +112,13 @@ export const StripeSyncChangesCard = ({
<ul className="text-foreground-light text-sm">
<li className={ListItemClassName}>
{isInProgress ? (
- <Loader2 size={16} className="animate-spin" />
+ <Loader2Icon size={16} className="animate-spin" />
) : (
- <Table size={16} strokeWidth={1.5} className="text-foreground-lighter shrink-0" />
+ <TableIcon
+ size={16}
+ strokeWidth={1.5}
+ className="text-foreground-lighter shrink-0"
+ />
)}
<span>
{dbLine} <code className="text-code-inline">stripe</code>
@@ -122,9 +126,13 @@ export const StripeSyncChangesCard = ({
</li>
<li className={ListItemClassName}>
{isInProgress ? (
- <Loader2 size={16} className="animate-spin" />
+ <Loader2Icon size={16} className="animate-spin" />
) : (
- <Table size={16} strokeWidth={1.5} className="text-foreground-lighter shrink-0" />
+ <TableIcon
+ size={16}
+ strokeWidth={1.5}
+ className="text-foreground-lighter shrink-0"
+ />
)}
<span>
{tableAndViewLine} <code className="text-code-inline">stripe</code> schema for
@@ -133,7 +141,7 @@ export const StripeSyncChangesCard = ({
</li>
<li className={ListItemClassName}>
{isInProgress ? (
- <Loader2 size={16} className="animate-spin" />
+ <Loader2Icon size={16} className="animate-spin" />
) : (
<EdgeFunctions
size={16}
@@ -145,9 +153,13 @@ export const StripeSyncChangesCard = ({
</li>
<li className="flex items-center gap-x-3 py-2 px-3">
{isInProgress ? (
- <Loader2 size={16} className="animate-spin" />
+ <Loader2Icon size={16} className="animate-spin" />
) : (
- <Layers size={16} strokeWidth={1.5} className="text-foreground-lighter shrink-0" />
+ <LayersIcon
+ size={16}
+ strokeWidth={1.5}
+ className="text-foreground-lighter shrink-0"
+ />
)}
<span>{scheduleLine}</span>
</li>
diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx
index d38e40edaa9..55cacc9a0d8 100644
--- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx
+++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncSettingsPage.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { formatRelative } from 'date-fns'
-import { BadgeCheck, RefreshCwIcon } from 'lucide-react'
+import { BadgeCheckIcon, RefreshCwIcon } from 'lucide-react'
import Link from 'next/link'
import { Button, Card, CardContent, CardHeader, CardTitle } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -82,7 +82,7 @@ export const StripeSyncSettingsPage = () => {
) : (
<>
<div className="flex items-center gap-x-3 text-foreground-light">
- <BadgeCheck size={14} />
+ <BadgeCheckIcon size={14} />
<p>All up to date</p>
</div>
{syncState.closed_at && (
diff --git a/apps/studio/components/interfaces/JwtSecrets/algorithm-hover-card.tsx b/apps/studio/components/interfaces/JwtSecrets/algorithm-hover-card.tsx
index 3af6bc593ad..2b056ee735f 100644
--- a/apps/studio/components/interfaces/JwtSecrets/algorithm-hover-card.tsx
+++ b/apps/studio/components/interfaces/JwtSecrets/algorithm-hover-card.tsx
@@ -1,4 +1,9 @@
-import { ExternalLink, HelpCircle, LockKeyholeOpen, RectangleEllipsis } from 'lucide-react'
+import {
+ ExternalLinkIcon,
+ HelpCircleIcon,
+ LockKeyholeOpenIcon,
+ RectangleEllipsisIcon,
+} from 'lucide-react'
import { HoverCard, HoverCardContent, HoverCardTrigger } from 'ui'
import { AlgorithmDetail, algorithmDetails } from './algorithm-details'
@@ -14,14 +19,14 @@ export const AlgorithmHoverCard = ({ algorithm, legacy }: AlgorithmHoverCardProp
return (
<div className="flex items-center gap-x-2">
{algorithm === 'HS256' ? (
- <RectangleEllipsis className="shrink-0" size={14} />
+ <RectangleEllipsisIcon className="shrink-0" size={14} />
) : (
- <LockKeyholeOpen className="shrink-0" size={14} />
+ <LockKeyholeOpenIcon className="shrink-0" size={14} />
)}
<p>{legacy ? `Legacy ${details.label}` : details.label}</p>
<HoverCard closeDelay={50} openDelay={300}>
<HoverCardTrigger className="min-w-0">
- <HelpCircle size={14} className="text-foreground-lighter" />
+ <HelpCircleIcon size={14} className="text-foreground-lighter" />
</HoverCardTrigger>
<HoverCardContent className="w-88 flex items-start gap-3" side="right" align="center">
<div className="flex-1">
@@ -55,7 +60,7 @@ export const AlgorithmHoverCard = ({ algorithm, legacy }: AlgorithmHoverCardProp
rel="noopener noreferrer"
className="text-xs text-primary hover:text-primary-hover flex items-center"
>
- <ExternalLink className="w-3 h-3 mr-1 shrink-0" />
+ <ExternalLinkIcon className="w-3 h-3 mr-1 shrink-0" />
<span className="truncate">{link.label}</span>
</a>
))}
diff --git a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/index.tsx b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/index.tsx
index 1f31885a926..e05ebb729c8 100644
--- a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/index.tsx
+++ b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/index.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { IS_PLATFORM, useFlag, useParams } from 'common'
-import { AlertCircle, RotateCw, Timer } from 'lucide-react'
+import { AlertCircleIcon, RotateCwIcon, TimerIcon } from 'lucide-react'
import { AnimatePresence } from 'motion/react'
import { useMemo, useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -188,7 +188,7 @@ export const JWTSecretKeysTable = () => {
return (
<div className="bg-surface-100 rounded-md border shadow-xs">
<div className="flex items-center py-8 px-8 space-x-2">
- <AlertCircle size={16} strokeWidth={1.5} />
+ <AlertCircleIcon size={16} strokeWidth={1.5} />
<p className="text-sm text-foreground-light">
You don't have permission to view JWT signing keys. These keys are restricted to users
with higher access levels.
@@ -214,7 +214,7 @@ export const JWTSecretKeysTable = () => {
buttonLabel="Rotate keys"
onClick={() => setShownDialog('rotate')}
loading={isUpdatingJWTSigningKey}
- icon={<RotateCw className="size-4" />}
+ icon={<RotateCwIcon className="size-4" />}
variant="primary"
/>
) : (
@@ -225,7 +225,7 @@ export const JWTSecretKeysTable = () => {
onClick={() => setShownDialog('create')}
loading={isPendingMutation}
variant="primary"
- icon={<Timer className="size-4" />}
+ icon={<TimerIcon className="size-4" />}
shortcutId={SHORTCUT_IDS.JWT_KEYS_CREATE_STANDBY}
/>
)}
@@ -368,7 +368,7 @@ export const JWTSecretKeysTable = () => {
</Table>
) : (
<div className="flex flex-col items-center justify-center text-center text-foreground-light p-8 gap-2">
- <Timer className="size-6 text-foreground-lighter" />
+ <TimerIcon className="size-6 text-foreground-lighter" />
<div className="flex flex-col gap-1">
<p className="text-sm font-medium">No previously used keys</p>
<p className="text-xs text-foreground-lighter">
diff --git a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/key-details-dialog.tsx b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/key-details-dialog.tsx
index 8bce39d6485..8fa3897e824 100644
--- a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/key-details-dialog.tsx
+++ b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/key-details-dialog.tsx
@@ -1,4 +1,4 @@
-import { FileKey } from 'lucide-react'
+import { FileKeyIcon } from 'lucide-react'
import { useMemo } from 'react'
import {
Button,
@@ -47,7 +47,7 @@ export function KeyDetailsDialog({
</div>
<div className="flex flex-col gap-2">
<Label htmlFor="jwk" className="flex flex-row gap-2 items-center">
- <FileKey className="size-4 text-foreground-light" />
+ <FileKeyIcon className="size-4 text-foreground-light" />
Public key set (JSON Web Key Set format)
</Label>
<div className="relative">
diff --git a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/rotate-key-dialog.tsx b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/rotate-key-dialog.tsx
index a6cc39d61dd..8bdad0868fa 100644
--- a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/rotate-key-dialog.tsx
+++ b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/rotate-key-dialog.tsx
@@ -1,4 +1,4 @@
-import { ArrowRight, ExternalLink, Info, Key, Timer } from 'lucide-react'
+import { ArrowRightIcon, ExternalLinkIcon, InfoIcon, KeyIcon, TimerIcon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import {
@@ -72,11 +72,11 @@ export function RotateKeyDialog({
'px-4 py-1 gap-2 flex flex-row items-center uppercase'
)}
>
- <Timer size={14} />
+ <TimerIcon size={14} />
Standby key
</Badge>
<div>
- <ArrowRight className="size-4 text-foreground-light" />
+ <ArrowRightIcon className="size-4 text-foreground-light" />
</div>
<div>
<Badge
@@ -85,7 +85,7 @@ export function RotateKeyDialog({
'px-4 py-1 gap-2 flex flex-row items-center uppercase'
)}
>
- <Key size={14} />
+ <KeyIcon size={14} />
Current key
</Badge>
</div>
@@ -103,11 +103,11 @@ export function RotateKeyDialog({
'px-4 py-1 gap-2 flex flex-row items-center uppercase'
)}
>
- <Key size={14} />
+ <KeyIcon size={14} />
Current key
</Badge>
<div>
- <ArrowRight className="h-4 w-4 text-foreground-light" />
+ <ArrowRightIcon className="h-4 w-4 text-foreground-light" />
</div>
<Badge
className={cn(
@@ -115,7 +115,7 @@ export function RotateKeyDialog({
'px-4 py-1 gap-2 flex flex-row items-center uppercase'
)}
>
- <Timer size={14} />
+ <TimerIcon size={14} />
Previous key
</Badge>
<div />
@@ -152,7 +152,7 @@ export function RotateKeyDialog({
All of my application's components have picked up the standby key.
</p>
<ButtonTooltip
- icon={<Info />}
+ icon={<InfoIcon />}
className="px-1.5 py-2 mt-0.5"
tooltip={{
content: {
@@ -187,7 +187,7 @@ export function RotateKeyDialog({
To invalidate non-expired JWTs I need to explicitly revoke the currently used key.
</p>
<ButtonTooltip
- icon={<Info />}
+ icon={<InfoIcon />}
className="px-1.5 py-2 mt-0.5"
tooltip={{
content: {
@@ -231,7 +231,7 @@ export function RotateKeyDialog({
target="_blank"
title={name}
>
- <ExternalLink className="size-3 inline-block" /> <code>{name}</code>
+ <ExternalLinkIcon className="size-3 inline-block" /> <code>{name}</code>
</a>
))
.reduce<React.ReactNode[]>(
@@ -241,7 +241,7 @@ export function RotateKeyDialog({
</p>
<ButtonTooltip
variant="default"
- icon={<Info />}
+ icon={<InfoIcon />}
className="px-1.5 py-2 mt-0.5"
tooltip={{
content: {
diff --git a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/signing-key-row.tsx b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/signing-key-row.tsx
index 4c08161246d..42fdc4d94c6 100644
--- a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/signing-key-row.tsx
+++ b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/signing-key-row.tsx
@@ -1,15 +1,15 @@
import { components } from 'api-types'
import dayjs from 'dayjs'
import {
- CircleArrowDown,
- CircleArrowUp,
- Eye,
- Key,
- Minus,
- MoreVertical,
- ShieldOff,
- Timer,
- Trash2,
+ CircleArrowDownIcon,
+ CircleArrowUpIcon,
+ EyeIcon,
+ KeyIcon,
+ MinusIcon,
+ MoreVerticalIcon,
+ ShieldOffIcon,
+ TimerIcon,
+ Trash2Icon,
} from 'lucide-react'
import { motion } from 'motion/react'
import {
@@ -68,7 +68,7 @@ const LastUsedCell = ({
if (!isLastUsedSupported)
return (
<TableCell>
- <Minus size={14} className="text-foreground-lighter ml-auto" />
+ <MinusIcon size={14} className="text-foreground-lighter ml-auto" />
</TableCell>
)
@@ -138,9 +138,9 @@ export const SigningKeyRow = ({
)}
>
{signingKey.status === 'standby' ? (
- <Timer className="shrink-0" size={14} />
+ <TimerIcon className="shrink-0" size={14} />
) : (
- <Key className="shrink-0" size={14} />
+ <KeyIcon className="shrink-0" size={14} />
)}
<span className="truncate text-xs">{statusLabels[signingKey.status]}</span>
</Badge>
@@ -194,7 +194,7 @@ export const SigningKeyRow = ({
variant="text"
className="px-1.5"
loading={isLoading}
- icon={<MoreVertical className="size-4" />}
+ icon={<MoreVerticalIcon className="size-4" />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-52">
@@ -205,7 +205,7 @@ export const SigningKeyRow = ({
setShownDialog('key-details')
}}
>
- <Eye className="mr-2 size-4" />
+ <EyeIcon className="mr-2 size-4" />
View key details
</DropdownMenuItem>
)}
@@ -215,7 +215,7 @@ export const SigningKeyRow = ({
onSelect={() => handlePreviouslyUsedKey(signingKey.id)}
className="text-destructive"
>
- <CircleArrowDown className="mr-2 size-4" />
+ <CircleArrowDownIcon className="mr-2 size-4" />
Move to previously used
</DropdownMenuItem>
</>
@@ -234,7 +234,7 @@ export const SigningKeyRow = ({
},
}}
>
- <CircleArrowUp className="mr-2 size-4" />
+ <CircleArrowUpIcon className="mr-2 size-4" />
Move to standby key
</DropdownMenuItemTooltip>
<DropdownMenuItem
@@ -244,7 +244,7 @@ export const SigningKeyRow = ({
}}
className="text-destructive"
>
- <ShieldOff className="mr-2 size-4" />
+ <ShieldOffIcon className="mr-2 size-4" />
Revoke key
</DropdownMenuItem>
</>
@@ -263,7 +263,7 @@ export const SigningKeyRow = ({
},
}}
>
- <CircleArrowUp className="mr-2 size-4" />
+ <CircleArrowUpIcon className="mr-2 size-4" />
Move to standby key
</DropdownMenuItemTooltip>
<DropdownMenuItem
@@ -274,7 +274,7 @@ export const SigningKeyRow = ({
className="text-destructive"
disabled={legacyKey?.id === signingKey.id}
>
- <Trash2 className="mr-2 size-4" />
+ <Trash2Icon className="mr-2 size-4" />
Delete permanently
</DropdownMenuItem>
</>
diff --git a/apps/studio/components/interfaces/JwtSecrets/jwt-settings.tsx b/apps/studio/components/interfaces/JwtSecrets/jwt-settings.tsx
index c5e15876cb2..f4f8e0edfde 100644
--- a/apps/studio/components/interfaces/JwtSecrets/jwt-settings.tsx
+++ b/apps/studio/components/interfaces/JwtSecrets/jwt-settings.tsx
@@ -7,18 +7,18 @@ import {
} from '@supabase/shared-types/out/events'
import { IS_PLATFORM, useFlag, useParams } from 'common'
import {
- AlertCircle,
- ChevronDown,
- CloudOff,
- ExternalLink,
- Hourglass,
- Key,
- Lightbulb,
- Loader2,
- PenTool,
- Power,
- RefreshCw,
- TriangleAlert,
+ AlertCircleIcon,
+ ChevronDownIcon,
+ CloudOffIcon,
+ ExternalLinkIcon,
+ HourglassIcon,
+ KeyIcon,
+ LightbulbIcon,
+ Loader2Icon,
+ PenToolIcon,
+ PowerIcon,
+ RefreshCwIcon,
+ TriangleAlertIcon,
} from 'lucide-react'
import Link from 'next/link'
import { useState, type Dispatch, type SetStateAction } from 'react'
@@ -167,7 +167,7 @@ export const JWTSettings = () => {
<div className="space-y-6">
{isError ? (
<div className="flex items-center justify-center py-8 space-x-2">
- <AlertCircle size={16} strokeWidth={1.5} />
+ <AlertCircleIcon size={16} strokeWidth={1.5} />
<p className="text-sm text-foreground-light">Failed to retrieve JWT settings</p>
</div>
) : (
@@ -196,7 +196,7 @@ export const JWTSettings = () => {
</p>
)}
- <Button asChild icon={<ExternalLink />} className="mt-2">
+ <Button asChild icon={<ExternalLinkIcon />} className="mt-2">
<Link href={`/project/${projectRef}/settings/api-keys`}>Go to API keys</Link>
</Button>
</Admonition>
@@ -250,7 +250,7 @@ export const JWTSettings = () => {
<>
{isUpdatingJwtSecret && (
<div className="flex items-center space-x-2">
- <Loader2 className="animate-spin" size={14} />
+ <Loader2Icon className="animate-spin" size={14} />
<p className="text-sm">Updating JWT secret: {jwtSecretUpdateProgressMessage}</p>
</div>
)}
@@ -271,7 +271,7 @@ export const JWTSettings = () => {
? 'How to migrate to the new API keys?'
: 'How to change your JWT secret?'}
</p>
- <ChevronDown size={14} className="transition-transform duration-200" />
+ <ChevronDownIcon size={14} className="transition-transform duration-200" />
</CollapsibleTrigger>
<CollapsibleContent className="border-t p-4">
<p className="text-sm text-foreground-light text-balance mb-2">
@@ -364,7 +364,7 @@ export const JWTSettings = () => {
<div className="flex flex-row gap-x-2 mt-4">
{disableLegacyJwtSecretRotation ? (
- <Button icon={<ExternalLink className="size-4" />} asChild>
+ <Button icon={<ExternalLinkIcon className="size-4" />} asChild>
<Link
href={`${DOCS_URL}/guides/auth/signing-keys#getting-started`}
target="_blank"
@@ -378,7 +378,7 @@ export const JWTSettings = () => {
<DropdownMenuTrigger asChild>
<ButtonTooltip
disabled={!canGenerateNewJWTSecret}
- iconRight={<ChevronDown size={14} />}
+ iconRight={<ChevronDownIcon size={14} />}
loading={isUpdatingJwtSecret}
tooltip={{
content: {
@@ -397,7 +397,7 @@ export const JWTSettings = () => {
className="space-x-2"
onClick={() => setIsGeneratingKey(true)}
>
- <RefreshCw size={16} />
+ <RefreshCwIcon size={16} />
<p>Generate a random secret</p>
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -405,7 +405,7 @@ export const JWTSettings = () => {
className="space-x-2"
onClick={() => setIsCreatingKey(true)}
>
- <PenTool size={16} />
+ <PenToolIcon size={16} />
<p>Create my own secret</p>
</DropdownMenuItem>
</DropdownMenuContent>
@@ -436,7 +436,7 @@ export const JWTSettings = () => {
>
<ul className="space-y-4 text-sm">
<li className="flex gap-2 bg border rounded-md p-4">
- <Lightbulb size={24} className="shrink-0 text-primary" />
+ <LightbulbIcon size={24} className="shrink-0 text-primary" />
<div className="flex flex-col gap-2">
<p>Use new JWT Signing Keys and API Keys instead</p>
@@ -451,7 +451,7 @@ export const JWTSettings = () => {
</div>
</li>
<li className="flex gap-2 px-4">
- <CloudOff size={24} className="text-foreground-light shrink-0" />
+ <CloudOffIcon size={24} className="text-foreground-light shrink-0" />
<div className="flex flex-col gap-2">
<p>Your application will experience significant downtime</p>
@@ -476,7 +476,7 @@ export const JWTSettings = () => {
</li>
<li className="flex gap-2 px-4">
- <Power size={24} className="text-foreground-light shrink-0" />
+ <PowerIcon size={24} className="text-foreground-light shrink-0" />
<div className="flex flex-col gap-2">
<p>Your project and database will be restarted</p>
<p className="text-foreground-light">
@@ -488,7 +488,7 @@ export const JWTSettings = () => {
</div>
</li>
<li className="flex gap-2 px-4">
- <Hourglass size={24} className="text-foreground-light shrink-0" />
+ <HourglassIcon size={24} className="text-foreground-light shrink-0" />
<div className="flex flex-col gap-2">
<p>20-minute cooldown period</p>
<p className="text-foreground-light">
@@ -498,7 +498,7 @@ export const JWTSettings = () => {
</div>
</li>
<li className="flex gap-2 px-4">
- <TriangleAlert size={24} className="text-foreground-light shrink-0" />
+ <TriangleAlertIcon size={24} className="text-foreground-light shrink-0" />
<div className="flex flex-col gap-2">
<p>Irreversible change! This cannot be undone!</p>
<p className="text-foreground-light">
@@ -551,7 +551,13 @@ export const JWTSettings = () => {
description="Minimally 32 characters long, '@' and '$' are not allowed."
>
<FormControl>
- <Input copy reveal icon={<Key />} className="w-full text-left" {...field} />
+ <Input
+ copy
+ reveal
+ icon={<KeyIcon />}
+ className="w-full text-left"
+ {...field}
+ />
</FormControl>
</FormItemLayout>
)}
diff --git a/apps/studio/components/interfaces/JwtSecrets/start-using-keys-banner.tsx b/apps/studio/components/interfaces/JwtSecrets/start-using-keys-banner.tsx
index 490250f54e6..9cddfc487d2 100644
--- a/apps/studio/components/interfaces/JwtSecrets/start-using-keys-banner.tsx
+++ b/apps/studio/components/interfaces/JwtSecrets/start-using-keys-banner.tsx
@@ -1,4 +1,4 @@
-import { Import } from 'lucide-react'
+import { ImportIcon } from 'lucide-react'
import { Button } from 'ui'
import { FeatureBanner } from '@/components/ui/FeatureBanner'
@@ -19,7 +19,7 @@ export const StartUsingJwtSigningKeysBanner = ({
new JWT signing keys, migrate your project's secret to the new set up.
</p>
<div className="mt-4">
- <Button variant="primary" icon={<Import />} onClick={onClick} loading={isLoading}>
+ <Button variant="primary" icon={<ImportIcon />} onClick={onClick} loading={isLoading}>
Migrate JWT secret
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Linter/GraphqlExposureLintCTA.tsx b/apps/studio/components/interfaces/Linter/GraphqlExposureLintCTA.tsx
index f3373c1ae4c..c30ddbd5fad 100644
--- a/apps/studio/components/interfaces/Linter/GraphqlExposureLintCTA.tsx
+++ b/apps/studio/components/interfaces/Linter/GraphqlExposureLintCTA.tsx
@@ -1,6 +1,6 @@
import { ident, safeSql } from '@supabase/pg-meta/src/pg-format'
import { useQueryClient } from '@tanstack/react-query'
-import { EyeOff, Lock } from 'lucide-react'
+import { EyeOffIcon, LockIcon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import { Badge, Button } from 'ui'
@@ -128,7 +128,11 @@ export const GraphqlExposureLintCTA = ({
<div className="space-y-5">
<div className="flex gap-3">
- <Lock className="text-foreground-light shrink-0 mt-0.5" size={20} strokeWidth={1.5} />
+ <LockIcon
+ className="text-foreground-light shrink-0 mt-0.5"
+ size={20}
+ strokeWidth={1.5}
+ />
<div>
<div className="flex items-center gap-2">
<p className="text-sm text-foreground">Data API access removed</p>
@@ -142,7 +146,11 @@ export const GraphqlExposureLintCTA = ({
</div>
<div className="flex gap-3">
- <EyeOff className="text-foreground-light shrink-0 mt-0.5" size={20} strokeWidth={1.5} />
+ <EyeOffIcon
+ className="text-foreground-light shrink-0 mt-0.5"
+ size={20}
+ strokeWidth={1.5}
+ />
<div>
<p className="text-sm text-foreground">Schema hidden from GraphQL</p>
<p className="text-sm text-foreground-light mt-1">
diff --git a/apps/studio/components/interfaces/Linter/LintDetail.tsx b/apps/studio/components/interfaces/Linter/LintDetail.tsx
index e36ccce30ab..804365edb26 100644
--- a/apps/studio/components/interfaces/Linter/LintDetail.tsx
+++ b/apps/studio/components/interfaces/Linter/LintDetail.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import { Button } from 'ui'
@@ -102,7 +102,7 @@ export const LintDetail = ({
className="no-underline"
>
<span className="flex items-center gap-2">
- Learn more <ExternalLink size={14} />
+ Learn more <ExternalLinkIcon size={14} />
</span>
</Link>
</Button>
diff --git a/apps/studio/components/interfaces/Linter/LintPageTabs.tsx b/apps/studio/components/interfaces/Linter/LintPageTabs.tsx
index 65dafad567b..f72a5054d90 100644
--- a/apps/studio/components/interfaces/Linter/LintPageTabs.tsx
+++ b/apps/studio/components/interfaces/Linter/LintPageTabs.tsx
@@ -1,5 +1,5 @@
import { InformationCircleIcon } from '@heroicons/react/16/solid'
-import { MessageSquareMore } from 'lucide-react'
+import { MessageSquareMoreIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { cn, Tabs, TabsList, TabsTrigger, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
@@ -96,7 +96,7 @@ const LintPageTabs = ({ currentTab, setCurrentTab, isLoading, activeLints }: Lin
: 'text-brand-500'
}
>
- <MessageSquareMore size={14} fill="currentColor" strokeWidth={0} />
+ <MessageSquareMoreIcon size={14} fill="currentColor" strokeWidth={0} />
</span>
<span className="">{tab.label}</span>
diff --git a/apps/studio/components/interfaces/Linter/Linter.utils.test.tsx b/apps/studio/components/interfaces/Linter/Linter.utils.test.tsx
index 8eebac5a5bb..936184275d6 100644
--- a/apps/studio/components/interfaces/Linter/Linter.utils.test.tsx
+++ b/apps/studio/components/interfaces/Linter/Linter.utils.test.tsx
@@ -1,4 +1,4 @@
-import { Ruler } from 'lucide-react'
+import { RulerIcon } from 'lucide-react'
import { isValidElement } from 'react'
import { describe, expect, it } from 'vitest'
@@ -76,7 +76,7 @@ describe('Linter.utils lintInfoMap pitr_archiving_stale entry', () => {
expect(info, 'expected pitr_archiving_stale in lintInfoMap').toBeDefined()
expect(info!.title).toBe('PITR archiving may be broken')
- expect(isValidElement(info!.icon) && info!.icon.type).toBe(Ruler)
+ expect(isValidElement(info!.icon) && info!.icon.type).toBe(RulerIcon)
expect(info!.category).toBe('security')
expect(info!.linkText).toBe('View settings')
// metadata is unused by this entry's link(), and every field on Lint['metadata'] is optional, so {} needs no cast
diff --git a/apps/studio/components/interfaces/Linter/Linter.utils.tsx b/apps/studio/components/interfaces/Linter/Linter.utils.tsx
index 70a51eddbb5..a734ac4b337 100644
--- a/apps/studio/components/interfaces/Linter/Linter.utils.tsx
+++ b/apps/studio/components/interfaces/Linter/Linter.utils.tsx
@@ -1,20 +1,19 @@
import {
- Activity,
- AlertTriangle,
- Box,
- Clock,
- Database,
- Eye,
- Gauge,
- Lock,
+ ActivityIcon,
+ AlertTriangleIcon,
+ BoxIcon,
+ ClockIcon,
+ DatabaseIcon,
+ EyeIcon,
+ GaugeIcon,
LockIcon,
- Ruler,
- Scaling,
- Server,
- Table2,
- TextSearch,
- Unlock,
- User,
+ RulerIcon,
+ ScalingIcon,
+ ServerIcon,
+ Table2Icon,
+ TextSearchIcon,
+ UnlockIcon,
+ UserIcon,
} from 'lucide-react'
import Link from 'next/link'
import { Badge, Button } from 'ui'
@@ -29,7 +28,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'unindexed_foreign_keys',
title: 'Unindexed foreign keys',
- icon: <Table2 className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <Table2Icon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef, metadata }) =>
`/project/${projectRef}/database/indexes?schema=${encodeURIComponent(metadata?.schema ?? '')}`,
linkText: 'Create an index',
@@ -39,7 +38,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'auth_users_exposed',
title: 'Exposed Auth Users',
- icon: <Lock className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <LockIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: ({ projectRef }) => `/project/${projectRef}/editor`,
linkText: 'View table',
docsLink: `${DOCS_URL}/guides/observability/advisors?queryGroups=lint&lint=0002_auth_users_exposed`,
@@ -48,7 +47,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'auth_rls_initplan',
title: 'Auth RLS Initialization Plan',
- icon: <Table2 className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <Table2Icon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef }) => `/project/${projectRef}/database/policies`,
linkText: 'View policies',
docsLink: `${DOCS_URL}/guides/observability/advisors?queryGroups=lint&lint=0003_auth_rls_initplan`,
@@ -57,7 +56,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'no_primary_key',
title: 'No Primary Key',
- icon: <Table2 className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <Table2Icon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef }) => `/project/${projectRef}/editor`,
linkText: 'View table',
docsLink: `${DOCS_URL}/guides/observability/advisors?queryGroups=lint&lint=0004_no_primary_key`,
@@ -66,7 +65,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'unused_index',
title: 'Unused Index',
- icon: <Table2 className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <Table2Icon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef, metadata }) =>
`/project/${projectRef}/database/indexes?schema=${encodeURIComponent(metadata?.schema ?? '')}&table=${encodeURIComponent(metadata?.name ?? '')}`,
linkText: 'View index',
@@ -76,7 +75,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'multiple_permissive_policies',
title: 'Multiple Permissive Policies',
- icon: <Table2 className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <Table2Icon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef, metadata }) =>
`/project/${projectRef}/database/policies?schema=${encodeURIComponent(metadata?.schema ?? '')}&search=${encodeURIComponent(metadata?.name ?? '')}`,
linkText: 'View policies',
@@ -86,7 +85,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'policy_exists_rls_disabled',
title: 'Policy Exists RLS Disabled',
- icon: <Table2 className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <Table2Icon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef, metadata }) =>
`/project/${projectRef}/database/policies?schema=${encodeURIComponent(metadata?.schema ?? '')}&search=${encodeURIComponent(metadata?.name ?? '')}`,
linkText: 'View policies',
@@ -96,7 +95,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'rls_enabled_no_policy',
title: 'RLS Enabled No Policy',
- icon: <Table2 className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <Table2Icon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef, metadata }) =>
`/project/${projectRef}/database/policies?schema=${encodeURIComponent(metadata?.schema ?? '')}&search=${encodeURIComponent(metadata?.name ?? '')}`,
linkText: 'View table',
@@ -106,7 +105,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'duplicate_index',
title: 'Duplicate Index',
- icon: <Table2 className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <Table2Icon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef, metadata }) =>
`/project/${projectRef}/database/indexes?schema=${encodeURIComponent(metadata?.schema ?? '')}&table=${encodeURIComponent(metadata?.name ?? '')}`,
linkText: 'View index',
@@ -116,7 +115,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'security_definer_view',
title: 'Security Definer View',
- icon: <Eye className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <EyeIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: () =>
`${DOCS_URL}/guides/observability/advisors?queryGroups=lint&lint=0010_security_definer_view`,
linkText: 'View docs',
@@ -126,7 +125,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'function_search_path_mutable',
title: 'Function Search Path Mutable',
- icon: <Table2 className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <Table2Icon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef, metadata }) =>
`/project/${projectRef}/database/functions?schema=${encodeURIComponent(metadata?.schema ?? '')}&search=${encodeURIComponent(metadata?.name ?? '')}`,
linkText: 'View functions',
@@ -136,7 +135,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'auth_allow_anonymous_sign_ins',
title: 'Anonymous Sign-Ins Allowed',
- icon: <User className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <UserIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef }) => `/project/${projectRef}/auth/providers`,
linkText: 'View settings',
docsLink: `${DOCS_URL}/guides/observability/advisors?queryGroups=lint&lint=0012_auth_allow_anonymous_sign_ins`,
@@ -145,7 +144,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'rls_disabled_in_public',
title: 'RLS Disabled in Public',
- icon: <Table2 className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <Table2Icon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef, metadata }) =>
`/project/${projectRef}/database/policies?schema=${encodeURIComponent(metadata?.schema ?? '')}&search=${encodeURIComponent(metadata?.name ?? '')}`,
linkText: 'View policies',
@@ -155,7 +154,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'extension_in_public',
title: 'Extension in Public',
- icon: <Unlock className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <UnlockIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef, metadata }) =>
`/project/${projectRef}/database/extensions?filter=${encodeURIComponent(metadata?.name ?? '')}`,
linkText: 'View extension',
@@ -165,7 +164,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'auth_otp_long_expiry',
title: 'Auth OTP Long Expiry',
- icon: <Clock className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <ClockIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef }) => `/project/${projectRef}/auth/providers`,
linkText: 'View settings',
docsLink: `${DOCS_URL}/guides/platform/going-into-prod#security`,
@@ -174,7 +173,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'auth_otp_short_length',
title: 'Auth OTP Short Length',
- icon: <Ruler className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <RulerIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef }) => `/project/${projectRef}/auth/providers`,
linkText: 'View settings',
docsLink: `${DOCS_URL}/guides/platform/going-into-prod#security`,
@@ -183,7 +182,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'auth_db_connections_absolute',
title: 'Auth Absolute Connection Management Strategy',
- icon: <Scaling className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <ScalingIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef }) => `/project/${projectRef}/auth/performance`,
linkText: 'View settings',
docsLink: `${DOCS_URL}/guides/platform/going-into-prod`,
@@ -192,7 +191,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'rls_references_user_metadata',
title: 'RLS references user metadata',
- icon: <User className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <UserIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef }) => `/project/${projectRef}/database/policies`,
linkText: 'View policies',
docsLink: `${DOCS_URL}/guides/observability/advisors?queryGroups=lint&lint=0015_rls_references_user_metadata`,
@@ -201,7 +200,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'materialized_view_in_api',
title: 'Materialized View in API',
- icon: <Eye className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <EyeIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: () => `${DOCS_URL}/guides/observability/advisors?lint=0016_materialized_view_in_api`,
linkText: 'View docs',
docsLink: `${DOCS_URL}/guides/observability/advisors?lint=0016_materialized_view_in_api`,
@@ -210,7 +209,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'foreign_table_in_api',
title: 'Foreign Table in API',
- icon: <Table2 className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <Table2Icon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: () => `${DOCS_URL}/guides/observability/advisors?lint=0017_foreign_table_in_api`,
linkText: 'View docs',
docsLink: `${DOCS_URL}/guides/observability/advisors?lint=0017_foreign_table_in_api`,
@@ -219,7 +218,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'unsupported_reg_types',
title: 'Unsupported reg types',
- icon: <Table2 className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <Table2Icon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: () =>
`${DOCS_URL}/guides/observability/advisors?lint=0018_unsupported_reg_types&queryGroups=lint`,
linkText: 'View docs',
@@ -229,7 +228,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'ssl_not_enforced',
title: 'SSL not enforced',
- icon: <Ruler className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <RulerIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef }) => `/project/${projectRef}/database/settings`,
linkText: 'View settings',
docsLink: `${DOCS_URL}/guides/platform/ssl-enforcement`,
@@ -238,7 +237,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'network_restrictions_not_set',
title: 'No network restrictions',
- icon: <Ruler className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <RulerIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef }) => `/project/${projectRef}/database/settings`,
linkText: 'View settings',
docsLink: `${DOCS_URL}/guides/platform/network-restrictions`,
@@ -247,7 +246,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'password_requirements_min_length',
title: 'Minimum password length not set or inadequate',
- icon: <Ruler className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <RulerIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef }) => `/project/${projectRef}/auth/providers?provider=Email`,
linkText: 'View settings',
docsLink: `${DOCS_URL}/guides/platform/going-into-prod#security`,
@@ -256,7 +255,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'pitr_not_enabled',
title: 'PITR not enabled',
- icon: <Ruler className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <RulerIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef }) => `/project/${projectRef}/database/backups/pitr`,
linkText: 'View settings',
docsLink: `${DOCS_URL}/guides/platform/backups#point-in-time-recovery`,
@@ -265,7 +264,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'pitr_archiving_stale',
title: 'PITR archiving may be broken',
- icon: <Ruler className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <RulerIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef }) => `/project/${projectRef}/database/backups/pitr`,
linkText: 'View settings',
// anchor explains what PITR is, not how to fix a stale archive; PITR-archiving-specific docs tracked in TODO: INDATA-1149
@@ -329,7 +328,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'sensitive_columns_exposed',
title: 'Sensitive Columns Exposed',
- icon: <Eye className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <EyeIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: ({ projectRef, metadata }) =>
`/project/${projectRef}/editor?schema=${encodeURIComponent(metadata?.schema ?? '')}&table=${encodeURIComponent(metadata?.name ?? '')}`,
linkText: 'View table',
@@ -339,7 +338,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'rls_policy_always_true',
title: 'RLS Policy Always True',
- icon: <Table2 className="text-foreground-muted" size={15} strokeWidth={1} />,
+ icon: <Table2Icon className="text-foreground-muted" size={15} strokeWidth={1} />,
link: ({ projectRef, metadata }) =>
`/project/${projectRef}/database/policies?schema=${encodeURIComponent(metadata?.schema ?? '')}&search=${encodeURIComponent(metadata?.name ?? '')}`,
linkText: 'View policies',
@@ -349,7 +348,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'public_bucket_allows_listing',
title: 'Public Bucket Allows Listing',
- icon: <Box className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <BoxIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: ({ projectRef, metadata }) => {
const bucketId = (metadata as Record<string, string | undefined> | undefined)?.bucket_id
return `/project/${projectRef}/storage/files/buckets/${encodeURIComponent(bucketId ?? metadata?.name ?? '')}`
@@ -361,7 +360,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'pg_graphql_anon_table_exposed',
title: 'Public Can See Object in GraphQL Schema',
- icon: <Eye className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <EyeIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: ({ projectRef, metadata }) =>
`/project/${projectRef}/editor?schema=${encodeURIComponent(metadata?.schema ?? '')}&table=${encodeURIComponent(metadata?.name ?? '')}`,
linkText: 'View object',
@@ -371,7 +370,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'pg_graphql_authenticated_table_exposed',
title: 'Signed-In Users Can See Object in GraphQL Schema',
- icon: <Eye className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <EyeIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: ({ projectRef, metadata }) =>
`/project/${projectRef}/editor?schema=${encodeURIComponent(metadata?.schema ?? '')}&table=${encodeURIComponent(metadata?.name ?? '')}`,
linkText: 'View object',
@@ -403,7 +402,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'instance_db_down',
title: 'Database process is down',
- icon: <Database className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <DatabaseIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: ({ projectRef }) => `/project/${projectRef}/logs/postgres-logs`,
linkText: 'View database logs',
docsLink: `${DOCS_URL}/guides/platform/troubleshooting`,
@@ -412,7 +411,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'db_not_reachable',
title: 'Database not usable',
- icon: <Server className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <ServerIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: ({ projectRef }) => `/project/${projectRef}/database/settings`,
linkText: 'View connection settings',
docsLink: `${DOCS_URL}/guides/database/connecting-to-postgres`,
@@ -421,7 +420,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'db_connection_limit_reached',
title: 'Database connection limit reached',
- icon: <Gauge className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <GaugeIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: ({ projectRef }) => `/project/${projectRef}/observability/connections`,
linkText: 'View connections',
docsLink: `${DOCS_URL}/guides/database/connection-management`,
@@ -430,7 +429,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'log_data_api_error_rate_high',
title: 'Data API error rate is persistently high',
- icon: <Activity className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <ActivityIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: ({ projectRef }) => `/project/${projectRef}/logs/edge-logs`,
linkText: 'View logs',
docsLink: `${DOCS_URL}/guides/platform/troubleshooting`,
@@ -439,7 +438,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'log_auth_error_rate_high',
title: 'Auth error rate is persistently high',
- icon: <Activity className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <ActivityIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: ({ projectRef }) => `/project/${projectRef}/logs/edge-logs`,
linkText: 'View logs',
docsLink: `${DOCS_URL}/guides/platform/troubleshooting`,
@@ -448,7 +447,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'log_storage_error_rate_high',
title: 'Storage error rate is persistently high',
- icon: <Activity className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <ActivityIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: ({ projectRef }) => `/project/${projectRef}/logs/edge-logs`,
linkText: 'View logs',
docsLink: `${DOCS_URL}/guides/platform/troubleshooting`,
@@ -457,7 +456,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'log_edge_function_error_rate_high',
title: 'Edge Function error rate is persistently high',
- icon: <Activity className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <ActivityIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: ({ projectRef }) => `/project/${projectRef}/logs/edge-logs`,
linkText: 'View logs',
docsLink: `${DOCS_URL}/guides/platform/troubleshooting`,
@@ -466,7 +465,7 @@ export const lintInfoMap: LintInfo[] = [
{
name: 'instance_alert_firing',
title: 'Infrastructure alerts firing',
- icon: <AlertTriangle className="text-foreground-muted" size={15} strokeWidth={1.5} />,
+ icon: <AlertTriangleIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />,
link: ({ projectRef }) => `/project/${projectRef}/settings/infrastructure`,
linkText: 'View infrastructure',
docsLink: `${DOCS_URL}/guides/platform/troubleshooting`,
@@ -518,15 +517,15 @@ export const LintCTA = ({
export const EntityTypeIcon = ({ type }: { type: string | undefined }) => {
switch (type) {
case 'table':
- return <Table2 className="text-foreground-muted" size={15} strokeWidth={1} />
+ return <Table2Icon className="text-foreground-muted" size={15} strokeWidth={1} />
case 'view':
- return <Eye className="text-foreground-muted" size={15} strokeWidth={1.5} />
+ return <EyeIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />
case 'auth':
- return <Lock className="text-foreground-muted" size={15} strokeWidth={1.5} />
+ return <LockIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />
case 'health':
- return <Activity className="text-foreground-muted" size={15} strokeWidth={1.5} />
+ return <ActivityIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />
default:
- return <Box className="text-foreground-muted" size={15} strokeWidth={1.5} />
+ return <BoxIcon className="text-foreground-muted" size={15} strokeWidth={1.5} />
}
}
@@ -546,7 +545,7 @@ export const NoIssuesFound = ({ level }: { level: string }) => {
const noun = level === LINTER_LEVELS.ERROR ? 'errors' : 'warnings'
return (
<div className="absolute top-28 px-6 flex flex-col items-center justify-center w-full gap-y-2">
- <TextSearch className="text-foreground-muted" strokeWidth={1} />
+ <TextSearchIcon className="text-foreground-muted" strokeWidth={1} />
<div className="text-center">
<p className="text-foreground">No {noun} detected</p>
<p className="text-foreground-light">
diff --git a/apps/studio/components/interfaces/Linter/LinterDataGrid.tsx b/apps/studio/components/interfaces/Linter/LinterDataGrid.tsx
index 274ddf66273..a4d2e9de458 100644
--- a/apps/studio/components/interfaces/Linter/LinterDataGrid.tsx
+++ b/apps/studio/components/interfaces/Linter/LinterDataGrid.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useRef } from 'react'
import DataGrid, { Column, DataGridHandle, Row } from 'react-data-grid'
@@ -198,7 +198,7 @@ export const LinterDataGrid = ({
<ShortcutTooltip shortcutId={SHORTCUT_IDS.ADVISORS_CLOSE_DETAIL} side="left">
<Button
variant="text"
- icon={<X />}
+ icon={<XIcon />}
onClick={handleSidepanelClose}
aria-label="Close lint details panel"
/>
diff --git a/apps/studio/components/interfaces/Linter/LinterFilters.tsx b/apps/studio/components/interfaces/Linter/LinterFilters.tsx
index 5372f1fcea9..1d5c29db675 100644
--- a/apps/studio/components/interfaces/Linter/LinterFilters.tsx
+++ b/apps/studio/components/interfaces/Linter/LinterFilters.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { RefreshCw } from 'lucide-react'
+import { RefreshCwIcon } from 'lucide-react'
import { Button } from 'ui'
import { LINT_TABS, LINTER_LEVELS } from '@/components/interfaces/Linter/Linter.constants'
@@ -68,7 +68,9 @@ const LinterFilters = ({
disabled={isLoading}
onClick={onClickRefresh}
icon={
- <RefreshCw className={`text-foreground-light ${isLoading ? 'animate-spin' : ''}`} />
+ <RefreshCwIcon
+ className={`text-foreground-light ${isLoading ? 'animate-spin' : ''}`}
+ />
}
>
Refresh
diff --git a/apps/studio/components/interfaces/Linter/LinterPageFooter.tsx b/apps/studio/components/interfaces/Linter/LinterPageFooter.tsx
index 96ab7a19edf..617ce54bf5b 100644
--- a/apps/studio/components/interfaces/Linter/LinterPageFooter.tsx
+++ b/apps/studio/components/interfaces/Linter/LinterPageFooter.tsx
@@ -1,5 +1,5 @@
import { LOCAL_STORAGE_KEYS } from 'common'
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { Button, cn } from 'ui'
import { Markdown } from '../Markdown'
@@ -38,7 +38,7 @@ export const LinterPageFooter = ({
size="tiny"
onClick={() => setShowBottomSection(false)}
>
- <X size="14" />
+ <XIcon size="14" />
</Button>
<div
className={cn(hideDbInspectCTA ? 'w-[35%]' : 'w-[33%]', 'flex flex-col gap-y-1 text-sm')}
diff --git a/apps/studio/components/interfaces/LocalDropdown.tsx b/apps/studio/components/interfaces/LocalDropdown.tsx
index f8b9f41a506..8868f92b132 100644
--- a/apps/studio/components/interfaces/LocalDropdown.tsx
+++ b/apps/studio/components/interfaces/LocalDropdown.tsx
@@ -1,4 +1,4 @@
-import { FlaskConical, Settings } from 'lucide-react'
+import { FlaskConicalIcon, SettingsIcon } from 'lucide-react'
import { useTheme } from 'next-themes'
import Link from 'next/link'
import { useRouter } from 'next/router'
@@ -61,7 +61,7 @@ export const LocalDropdown = ({
}
}}
>
- <Settings size={14} strokeWidth={1.5} className="text-foreground-lighter" />
+ <SettingsIcon size={14} strokeWidth={1.5} className="text-foreground-lighter" />
Preferences
</Link>
</DropdownMenuItem>
@@ -70,7 +70,7 @@ export const LocalDropdown = ({
onClick={() => toggleFeaturePreviewModal(true)}
onSelect={() => toggleFeaturePreviewModal(true)}
>
- <FlaskConical size={14} strokeWidth={1.5} className="text-foreground-lighter" />
+ <FlaskConicalIcon size={14} strokeWidth={1.5} className="text-foreground-lighter" />
Feature previews
</DropdownMenuItem>
<DropdownMenuSeparator />
diff --git a/apps/studio/components/interfaces/LogDrains/AnimatedLogos.tsx b/apps/studio/components/interfaces/LogDrains/AnimatedLogos.tsx
index bd702294714..4869c84ba4d 100644
--- a/apps/studio/components/interfaces/LogDrains/AnimatedLogos.tsx
+++ b/apps/studio/components/interfaces/LogDrains/AnimatedLogos.tsx
@@ -1,5 +1,5 @@
import { Axiom, Datadog, Grafana, Last9, Otlp, Sentry } from 'icons'
-import { BracesIcon, Cloud, Server } from 'lucide-react'
+import { BracesIcon, CloudIcon, ServerIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { useEffect, useState } from 'react'
import { cn } from 'ui'
@@ -25,11 +25,11 @@ export const AnimatedLogos = ({ iconSize = 36, className }: AnimatedLogosProps)
{ id: 'otlp', name: 'OTLP', icon: <Otlp fill="currentColor" size={iconSize} /> },
{ id: 'datadog', name: 'Datadog', icon: <Datadog fill="currentColor" size={iconSize} /> },
{ id: 'loki', name: 'Loki', icon: <Grafana fill="currentColor" size={iconSize} /> },
- { id: 's3', name: 'Amazon S3', icon: <Cloud size={iconSize} /> },
+ { id: 's3', name: 'Amazon S3', icon: <CloudIcon size={iconSize} /> },
{ id: 'sentry', name: 'Sentry', icon: <Sentry fill="currentColor" size={iconSize} /> },
{ id: 'axiom', name: 'Axiom', icon: <Axiom fill="currentColor" size={iconSize} /> },
{ id: 'last9', name: 'Last9', icon: <Last9 fill="currentColor" size={iconSize} /> },
- { id: 'syslog', name: 'Syslog', icon: <Server size={iconSize} /> },
+ { id: 'syslog', name: 'Syslog', icon: <ServerIcon size={iconSize} /> },
]
useEffect(() => {
diff --git a/apps/studio/components/interfaces/LogDrains/LogDrains.constants.tsx b/apps/studio/components/interfaces/LogDrains/LogDrains.constants.tsx
index 5a10b1f2a71..67243ef1f9b 100644
--- a/apps/studio/components/interfaces/LogDrains/LogDrains.constants.tsx
+++ b/apps/studio/components/interfaces/LogDrains/LogDrains.constants.tsx
@@ -1,6 +1,6 @@
import { components } from 'api-types'
import { Axiom, Datadog, Grafana, Last9, Otlp, Sentry } from 'icons'
-import { BracesIcon, Cloud, Server } from 'lucide-react'
+import { BracesIcon, CloudIcon, ServerIcon } from 'lucide-react'
const iconProps = {
height: 24,
@@ -40,7 +40,7 @@ export const LOG_DRAIN_TYPES = [
value: 's3',
name: 'Amazon S3',
description: 'Forward logs to an S3 bucket',
- icon: <Cloud {...iconProps} />,
+ icon: <CloudIcon {...iconProps} />,
},
{
value: 'sentry',
@@ -66,7 +66,7 @@ export const LOG_DRAIN_TYPES = [
value: 'syslog',
name: 'Syslog',
description: 'Forward logs to a remote Syslog receiver using TCP or TLS, adhering to RFC 5424',
- icon: <Server {...iconProps} />,
+ icon: <ServerIcon {...iconProps} />,
},
] as const
diff --git a/apps/studio/components/interfaces/LogDrains/LogDrainsList.tsx b/apps/studio/components/interfaces/LogDrains/LogDrainsList.tsx
index 825d281bd83..77a81147a93 100644
--- a/apps/studio/components/interfaces/LogDrains/LogDrainsList.tsx
+++ b/apps/studio/components/interfaces/LogDrains/LogDrainsList.tsx
@@ -1,5 +1,5 @@
import { IS_PLATFORM } from 'common'
-import { MoreHorizontal, PlugZap, TrashIcon } from 'lucide-react'
+import { MoreHorizontalIcon, PlugZapIcon, TrashIcon } from 'lucide-react'
import { cloneElement, useEffect, useRef, useState } from 'react'
import {
Button,
@@ -148,13 +148,13 @@ export function LogDrainsList({
<Button
variant="text"
className="px-1 opacity-50 hover:opacity-100 bg-transparent! shrink-0"
- icon={<MoreHorizontal />}
+ icon={<MoreHorizontalIcon />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent className="max-w-[160px]" align="end">
{onTestDrain && (
<DropdownMenuItem onClick={() => onTestDrain(drain)}>
- <PlugZap className="h-4 w-4 mr-2" />
+ <PlugZapIcon className="h-4 w-4 mr-2" />
Test connection
</DropdownMenuItem>
)}
diff --git a/apps/studio/components/interfaces/LogDrains/OrgAuditLogDrains.tsx b/apps/studio/components/interfaces/LogDrains/OrgAuditLogDrains.tsx
index 669aab19020..f8f36633691 100644
--- a/apps/studio/components/interfaces/LogDrains/OrgAuditLogDrains.tsx
+++ b/apps/studio/components/interfaces/LogDrains/OrgAuditLogDrains.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { IS_PLATFORM, useParams } from 'common'
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { cloneElement, useState } from 'react'
import { toast } from 'sonner'
import {
@@ -168,7 +168,7 @@ export function OrgAuditLogDrains() {
variant="primary"
aria-label="Choose destination type"
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
- icon={<ChevronDown />}
+ icon={<ChevronDownIcon />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" side="bottom">
diff --git a/apps/studio/components/interfaces/MCP/Secrets/McpSecretsForm.tsx b/apps/studio/components/interfaces/MCP/Secrets/McpSecretsForm.tsx
index 18fc2b19471..c5e6d3ed162 100644
--- a/apps/studio/components/interfaces/MCP/Secrets/McpSecretsForm.tsx
+++ b/apps/studio/components/interfaces/MCP/Secrets/McpSecretsForm.tsx
@@ -1,5 +1,5 @@
import { zodResolver } from '@hookform/resolvers/zod'
-import { Eye, EyeOff, Lock } from 'lucide-react'
+import { EyeIcon, EyeOffIcon, LockIcon } from 'lucide-react'
import { useState } from 'react'
import { useForm, useWatch } from 'react-hook-form'
import {
@@ -81,7 +81,7 @@ export const McpSecretsForm = ({
aria-readonly
/>
<InputGroupAddon align="inline-end" className="pr-2">
- <Lock size={14} className="text-foreground-muted" aria-hidden />
+ <LockIcon size={14} className="text-foreground-muted" aria-hidden />
</InputGroupAddon>
</InputGroup>
</FormItemLayout>
@@ -121,7 +121,7 @@ export const McpSecretsForm = ({
className="size-6 shrink-0 p-0"
aria-pressed={isRevealed}
aria-label={isRevealed ? 'Hide secret value' : 'Show secret value'}
- icon={isRevealed ? <EyeOff /> : <Eye />}
+ icon={isRevealed ? <EyeOffIcon /> : <EyeIcon />}
onClick={() => setIsRevealed(!isRevealed)}
/>
</InputGroupAddon>
diff --git a/apps/studio/components/interfaces/Observability/DatabaseConnections/Activity.tsx b/apps/studio/components/interfaces/Observability/DatabaseConnections/Activity.tsx
index f3bf1b37f4c..fc929cb478c 100644
--- a/apps/studio/components/interfaces/Observability/DatabaseConnections/Activity.tsx
+++ b/apps/studio/components/interfaces/Observability/DatabaseConnections/Activity.tsx
@@ -1,5 +1,5 @@
import { isEqual } from 'lodash'
-import { Search, X } from 'lucide-react'
+import { SearchIcon, XIcon } from 'lucide-react'
import { Button, Card, Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from 'ui'
import { Input } from 'ui-patterns/DataInputs/Input'
import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
@@ -156,7 +156,7 @@ export const Activity = ({ live }: ActivityProps) => {
<div className="flex gap-2 flex-wrap">
<Input
size="tiny"
- icon={<Search />}
+ icon={<SearchIcon />}
placeholder="Search query"
className="w-56"
value={searchFilter}
@@ -222,7 +222,7 @@ export const Activity = ({ live }: ActivityProps) => {
<ButtonTooltip
variant="text"
className="px-1"
- icon={<X />}
+ icon={<XIcon />}
onClick={onResetFilters}
aria-label="Reset filters"
tooltip={{ content: { side: 'bottom', text: 'Reset filters' } }}
diff --git a/apps/studio/components/interfaces/Observability/DatabaseConnections/ActivityRow.tsx b/apps/studio/components/interfaces/Observability/DatabaseConnections/ActivityRow.tsx
index 5bcabe4be1e..0c0238547b9 100644
--- a/apps/studio/components/interfaces/Observability/DatabaseConnections/ActivityRow.tsx
+++ b/apps/studio/components/interfaces/Observability/DatabaseConnections/ActivityRow.tsx
@@ -1,4 +1,10 @@
-import { ChevronRight, CircleX, Minus, MoreVertical, StopCircle } from 'lucide-react'
+import {
+ ChevronRightIcon,
+ CircleXIcon,
+ MinusIcon,
+ MoreVerticalIcon,
+ StopCircleIcon,
+} from 'lucide-react'
import { parseAsString, useQueryState } from 'nuqs'
import { Fragment, useEffect, useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -238,7 +244,7 @@ export const ActivityRow = ({
variant="outline"
className="px-1 mr-3"
onClick={onExpand}
- icon={<ChevronRight className={cn('transition', expanded && 'rotate-90')} />}
+ icon={<ChevronRightIcon className={cn('transition', expanded && 'rotate-90')} />}
/>
)}
@@ -331,7 +337,7 @@ export const ActivityRow = ({
{durationSeconds !== null ? (
formatDuration(durationSeconds * 1000, 0)
) : (
- <Minus size={12} className="text-foreground-lighter" />
+ <MinusIcon size={12} className="text-foreground-lighter" />
)}
</p>
</TableCell>
@@ -426,7 +432,7 @@ export const ActivityRow = ({
)
})
) : (
- <Minus size={12} className="text-foreground-lighter" />
+ <MinusIcon size={12} className="text-foreground-lighter" />
)}
</TableCell>
@@ -437,7 +443,7 @@ export const ActivityRow = ({
aria-label="More actions"
variant="text"
className="px-1"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-44">
@@ -457,7 +463,7 @@ export const ActivityRow = ({
},
}}
>
- <CircleX size={12} />
+ <CircleXIcon size={12} />
<span>Cancel query</span>
</DropdownMenuItemTooltip>
@@ -474,7 +480,7 @@ export const ActivityRow = ({
},
}}
>
- <StopCircle size={12} />
+ <StopCircleIcon size={12} />
<span>Terminate session</span>
</DropdownMenuItemTooltip>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Observability/ObservabilityOverview.tsx b/apps/studio/components/interfaces/Observability/ObservabilityOverview.tsx
index c22ec181f5c..163a0cbf893 100644
--- a/apps/studio/components/interfaces/Observability/ObservabilityOverview.tsx
+++ b/apps/studio/components/interfaces/Observability/ObservabilityOverview.tsx
@@ -1,7 +1,7 @@
import { useQueryClient } from '@tanstack/react-query'
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { RefreshCw } from 'lucide-react'
+import { RefreshCwIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useCallback, useMemo, useState } from 'react'
import { Badge, Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -201,7 +201,7 @@ export const ObservabilityOverview = () => {
label="Refresh report"
side="bottom"
>
- <Button variant="outline" icon={<RefreshCw size={14} />} onClick={handleRefresh}>
+ <Button variant="outline" icon={<RefreshCwIcon size={14} />} onClick={handleRefresh}>
Refresh
</Button>
</ShortcutTooltip>
diff --git a/apps/studio/components/interfaces/Observability/ServiceHealthTable.tsx b/apps/studio/components/interfaces/Observability/ServiceHealthTable.tsx
index 564a99d49c7..7317da872ef 100644
--- a/apps/studio/components/interfaces/Observability/ServiceHealthTable.tsx
+++ b/apps/studio/components/interfaces/Observability/ServiceHealthTable.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight, HelpCircle } from 'lucide-react'
+import { ChevronRightIcon, HelpCircleIcon } from 'lucide-react'
import Link from 'next/link'
import {
Button,
@@ -131,7 +131,7 @@ const ServiceCell = ({
className="relative z-10 text-foreground-lighter hover:text-foreground-light transition-colors shrink-0"
aria-label={`About ${service.name}`}
>
- <HelpCircle size={12} />
+ <HelpCircleIcon size={12} />
</button>
</TooltipTrigger>
<TooltipContent side="top" className="max-w-xs">
@@ -163,7 +163,7 @@ const ServiceCell = ({
asChild
>
<Link href={reportUrl}>
- <ChevronRight size={14} strokeWidth={1.5} />
+ <ChevronRightIcon size={14} strokeWidth={1.5} />
</Link>
</Button>
</TooltipTrigger>
diff --git a/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx b/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx
index 7ed2d4f1a5f..adb3ffdcfcd 100644
--- a/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx
+++ b/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx
@@ -10,7 +10,7 @@ import {
import { useDebounce } from '@uidotdev/usehooks'
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { RefreshCw } from 'lucide-react'
+import { RefreshCwIcon } from 'lucide-react'
import { useEffect, useMemo, useRef, useState } from 'react'
import {
Alert,
@@ -284,7 +284,7 @@ export const AuditLogs = () => {
disabled={isLoading}
loading={isLoading || isRefetching}
className="w-7"
- icon={<RefreshCw />}
+ icon={<RefreshCwIcon />}
onClick={() => refetch()}
tooltip={{ content: { side: 'bottom', text: 'Refresh logs' } }}
/>
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx
index c76ae1ad672..da5266a2bf5 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import Link from 'next/link'
import { useMemo } from 'react'
import { Badge, cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -98,7 +98,7 @@ export const BillingMetric = ({
</p>
{usageMeta.available_in_plan && (
<span className="text-foreground-muted transition inline-block group-hover:transform group-hover:translate-x-0.5">
- <ChevronRight strokeWidth={1.5} size={16} className="transition" />
+ <ChevronRightIcon strokeWidth={1.5} size={16} className="transition" />
</span>
)}
</div>
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/ComputeMetric.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/ComputeMetric.tsx
index 07762f2f9da..1543647b364 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/ComputeMetric.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/ComputeMetric.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import Link from 'next/link'
import { useMemo } from 'react'
import { HoverCard, HoverCardContent, HoverCardTrigger } from 'ui'
@@ -52,7 +52,7 @@ export const ComputeMetric = ({
<p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">
{metric.name}
</p>
- <ChevronRight strokeWidth={1.5} size={16} className="transition" />
+ <ChevronRightIcon strokeWidth={1.5} size={16} className="transition" />
</div>
</Link>
<span className="text-sm">{usageLabel}</span>&nbsp;
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/BillingCustomerDataForm.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/BillingCustomerDataForm.tsx
index 88b3b2a23a6..43b7c00f04e 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/BillingCustomerDataForm.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingCustomerData/BillingCustomerDataForm.tsx
@@ -4,7 +4,7 @@ import type {
StripeAddressElementChangeEvent,
StripeAddressElementOptions,
} from '@stripe/stripe-js'
-import { Check, ChevronsUpDown, Info, X } from 'lucide-react'
+import { CheckIcon, ChevronsUpDownIcon, InfoIcon, XIcon } from 'lucide-react'
import { useEffect, useId, useMemo, useRef, useState } from 'react'
import { UseFormReturn, useWatch } from 'react-hook-form'
import {
@@ -128,7 +128,7 @@ export const BillingCustomerDataForm = ({
afterLabel={
<Tooltip>
<TooltipTrigger asChild>
- <Info size={14} className="text-foreground-lighter cursor-pointer" />
+ <InfoIcon size={14} className="text-foreground-lighter cursor-pointer" />
</TooltipTrigger>
<TooltipContent side="right" className="max-w-xs text-left">
If you are an individual, no need to add a Tax ID. If you are a business below
@@ -153,7 +153,10 @@ export const BillingCustomerDataForm = ({
!selectedTaxId && 'text-muted'
)}
iconRight={
- <ChevronsUpDown className="h-4 w-4 shrink-0 opacity-50" strokeWidth={1.5} />
+ <ChevronsUpDownIcon
+ className="h-4 w-4 shrink-0 opacity-50"
+ strokeWidth={1.5}
+ />
}
>
{selectedTaxId
@@ -182,7 +185,7 @@ export const BillingCustomerDataForm = ({
setShowTaxIDsPopover(false)
}}
>
- <Check
+ <CheckIcon
className={cn(
'mr-2 h-4 w-4',
selectedTaxId?.name === option.name ? 'opacity-100' : 'opacity-0'
@@ -222,7 +225,7 @@ export const BillingCustomerDataForm = ({
<Button
variant="text"
className="px-1"
- icon={<X />}
+ icon={<XIcon />}
disabled={disabled}
onClick={() => onRemoveTaxId()}
/>
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx
index ff59657a02b..d46a7926eee 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/CostControl.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useFlag, useParams } from 'common'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import { useTheme } from 'next-themes'
import Image from 'next/image'
import Link from 'next/link'
@@ -78,7 +78,7 @@ export const CostControl = () => {
>
<div className="flex items-center space-x-2 opacity-50 hover:opacity-100 transition">
<p className="text-sm m-0">Spend cap</p>
- <ExternalLink size={16} strokeWidth={1.5} />
+ <ExternalLinkIcon size={16} strokeWidth={1.5} />
</div>
</Link>
</div>
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx
index c29db6d377f..91eff0cd4ab 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { ChevronRight, ExternalLink } from 'lucide-react'
+import { ChevronRightIcon, ExternalLinkIcon } from 'lucide-react'
import { useTheme } from 'next-themes'
import Image from 'next/image'
import Link from 'next/link'
@@ -150,7 +150,7 @@ export const SpendCapSidePanel = () => {
<SheetContent showClose={false} size="lg" className="flex flex-col gap-0">
<SheetHeader className="flex items-center justify-between w-full">
<SheetTitle>Spend cap</SheetTitle>
- <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLinkIcon strokeWidth={1.5} />}>
<Link
href={`${DOCS_URL}/guides/platform/cost-control#spend-cap`}
target="_blank"
@@ -171,7 +171,7 @@ export const SpendCapSidePanel = () => {
<Collapsible open={showUsageCosts} onOpenChange={setShowUsageCosts}>
<CollapsibleTrigger asChild>
<div className="flex items-center space-x-2 cursor-pointer">
- <ChevronRight
+ <ChevronRightIcon
strokeWidth={1.5}
size={16}
className={showUsageCosts ? 'rotate-90' : ''}
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/CreditCodeRedemption.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/CreditCodeRedemption.tsx
index 569bc1ce0a4..34c732e8f6c 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/CreditCodeRedemption.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/CreditCodeRedemption.tsx
@@ -1,7 +1,7 @@
import HCaptcha from '@hcaptcha/react-hcaptcha'
import { zodResolver } from '@hookform/resolvers/zod'
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Calendar, Info, PartyPopper } from 'lucide-react'
+import { CalendarIcon, InfoIcon, PartyPopperIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useEffect, useRef, useState } from 'react'
@@ -218,7 +218,7 @@ export const CreditCodeRedemption = ({
{!!codeRedemptionResult ? (
<div className="p-8">
<div className="text-center flex items-center justify-center">
- <PartyPopper strokeWidth={1} className="h-14 w-14" />
+ <PartyPopperIcon strokeWidth={1} className="h-14 w-14" />
</div>
<div className="text-center">
@@ -235,7 +235,7 @@ export const CreditCodeRedemption = ({
{codeRedemptionResult.credits_expire_at && (
<div className="mt-2 flex items-center justify-center gap-2 text-sm text-muted-foreground bg-muted/50 py-3 px-8 rounded-lg">
- <Calendar className="h-4 w-4" />
+ <CalendarIcon className="h-4 w-4" />
<span>
Your credits expire on{' '}
<TimestampInfo
@@ -250,7 +250,7 @@ export const CreditCodeRedemption = ({
{!!redemptionNotice && (
<div className="mt-2 flex items-center justify-center gap-2 text-sm text-muted-foreground bg-muted/50 py-3 px-8 rounded-lg">
- <Info className="h-4 w-4 shrink-0" />
+ <InfoIcon className="h-4 w-4 shrink-0" />
<span>{redemptionNotice}</span>
</div>
)}
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/CreditTopUp.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/CreditTopUp.tsx
index 8481e00fae7..11e399864f1 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/CreditTopUp.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/CreditTopUp.tsx
@@ -5,7 +5,7 @@ import { loadStripe, PaymentIntentResult } from '@stripe/stripe-js'
import { PermissionAction, SupportCategories } from '@supabase/shared-types/out/constants'
import { useQueryClient } from '@tanstack/react-query'
import { useDebounce } from '@uidotdev/usehooks'
-import { AlertCircle, Info } from 'lucide-react'
+import { AlertCircleIcon, InfoIcon } from 'lucide-react'
import { useTheme } from 'next-themes'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { SubmitHandler, useForm, useWatch } from 'react-hook-form'
@@ -355,7 +355,7 @@ export const CreditTopUp = ({ slug }: { slug: string | undefined }) => {
{paymentIntentConfirmation && paymentIntentConfirmation.error && (
<Alert variant="destructive">
- <AlertCircle className="h-4 w-4" />
+ <AlertCircleIcon className="h-4 w-4" />
<AlertTitle>Error confirming payment</AlertTitle>
<AlertDescription>{paymentIntentConfirmation.error.message}</AlertDescription>
</Alert>
@@ -364,7 +364,7 @@ export const CreditTopUp = ({ slug }: { slug: string | undefined }) => {
{paymentIntentConfirmation?.paymentIntent &&
paymentIntentConfirmation.paymentIntent.status === 'processing' && (
<Alert variant="default">
- <Info className="h-4 w-4" />
+ <InfoIcon className="h-4 w-4" />
<AlertTitle>Payment processing</AlertTitle>
<AlertDescription>
Your payment is processing and we are waiting for a confirmation from your
@@ -376,7 +376,7 @@ export const CreditTopUp = ({ slug }: { slug: string | undefined }) => {
{errorInitiatingTopUp && (
<Alert variant="destructive">
- <AlertCircle className="h-4 w-4" />
+ <AlertCircleIcon className="h-4 w-4" />
<AlertTitle>Error topping up balance</AlertTitle>
<AlertDescription>{errorInitiatingTopUp.message}</AlertDescription>
</Alert>
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx
index 7f275ae2f0d..93137616243 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Restriction.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import { usePathname } from 'next/navigation'
import { Alert, AlertDescription, AlertTitle, Button, CriticalIcon, WarningIcon } from 'ui'
@@ -88,7 +88,7 @@ export const Restriction = () => {
<Link href={`/org/${org?.slug}/usage`}>View usage</Link>
</Button>
)}
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<a href={`${DOCS_URL}/guides/platform/cost-control#spend-cap`}>About spend cap</a>
</Button>
</div>
@@ -131,7 +131,7 @@ export const Restriction = () => {
</Button>
)}
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<a href={`${DOCS_URL}/guides/platform/billing-faq#fair-use-policy`}>
About Fair Use Policy
</a>
@@ -172,7 +172,7 @@ export const Restriction = () => {
<Link href={`/org/${org?.slug}/usage`}>View usage</Link>
</Button>
)}
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<a href={`${DOCS_URL}/guides/platform/billing-faq#fair-use-policy`}>
About Fair Use Policy
</a>
@@ -212,7 +212,7 @@ export const Restriction = () => {
<Link href={`/org/${org?.slug}/usage`}>View usage</Link>
</Button>
)}
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<a href={`${DOCS_URL}/guides/platform/billing-faq#fair-use-policy`}>
About Fair Use Policy
</a>
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/DowngradeModal.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/DowngradeModal.tsx
index 13160f9235c..0514d645c31 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/DowngradeModal.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/DowngradeModal.tsx
@@ -1,4 +1,4 @@
-import { MinusCircle, PauseCircle } from 'lucide-react'
+import { MinusCircleIcon, PauseCircleIcon } from 'lucide-react'
import { useMemo } from 'react'
import { plans as subscriptionsPlans } from 'shared-data/plans'
import {
@@ -144,12 +144,12 @@ export const DowngradeModal = ({
<ul className="mt-4 space-y-5 text-sm">
<li className="flex items-center gap-3">
- <PauseCircle size={18} />
+ <PauseCircleIcon size={18} />
<span>Projects will be paused after a week of inactivity</span>
</li>
<li className="flex items-center gap-3 mb-2">
- <MinusCircle size={18} />
+ <MinusCircleIcon size={18} />
<span>Add ons from all projects under this organization will be removed.</span>
</li>
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx
index a97f34d8aac..9121fb9de86 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/EnterpriseCard.tsx
@@ -1,4 +1,4 @@
-import { Check } from 'lucide-react'
+import { CheckIcon } from 'lucide-react'
import { motion, type Variants } from 'motion/react'
import { PricingInformation } from 'shared-data'
import { Button, cn } from 'ui'
@@ -72,7 +72,7 @@ export const EnterpriseCard = ({ plan, isCurrentPlan, variants }: EnterpriseCard
key={typeof feature === 'string' ? feature : feature[0]}
className="flex items-center py-2 first:mt-0"
>
- <Check className="text-primary h-4 w-4" aria-hidden="true" strokeWidth={3} />
+ <CheckIcon className="text-primary h-4 w-4" aria-hidden="true" strokeWidth={3} />
<span className="text-foreground mb-0 ml-3 ">
{typeof feature === 'string' ? feature : feature[0]}
</span>
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/InvoiceEstimateTooltip.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/InvoiceEstimateTooltip.tsx
index 17745d5bb46..70d543a9511 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/InvoiceEstimateTooltip.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/InvoiceEstimateTooltip.tsx
@@ -1,4 +1,4 @@
-import { HelpCircle } from 'lucide-react'
+import { HelpCircleIcon } from 'lucide-react'
import Link from 'next/link'
import {
cn,
@@ -37,7 +37,7 @@ export const InvoiceEstimateTooltip = ({
return (
<HoverCard openDelay={50} closeDelay={50}>
<HoverCardTrigger>
- <HelpCircle size={12} />
+ <HelpCircleIcon size={12} />
</HoverCardTrigger>
<HoverCardContent side="right" align="start" className="w-[400px] -translate-y-6">
<h4 className="font-medium">Your new monthly invoice</h4>
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PaymentMethodSelection.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PaymentMethodSelection.tsx
index 8f0d0343519..66a683cd578 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PaymentMethodSelection.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PaymentMethodSelection.tsx
@@ -2,7 +2,7 @@ import HCaptcha from '@hcaptcha/react-hcaptcha'
import { Elements } from '@stripe/react-stripe-js'
import { loadStripe, PaymentMethod, StripeElementsOptions } from '@stripe/stripe-js'
import { useParams } from 'common'
-import { Loader, Plus } from 'lucide-react'
+import { LoaderIcon, PlusIcon } from 'lucide-react'
import { useTheme } from 'next-themes'
import {
forwardRef,
@@ -313,7 +313,7 @@ const PaymentMethodSelection = forwardRef(function PaymentMethodSelection(
<div>
{isLoading || isCustomerProfileLoading ? (
<div className="flex items-center px-4 py-2 space-x-4 border rounded-md border-strong bg-surface-200">
- <Loader className="animate-spin" size={14} />
+ <LoaderIcon className="animate-spin" size={14} />
<p className="text-sm text-foreground-light">Retrieving payment methods</p>
</div>
) : paymentMethods?.data && paymentMethods?.data.length > 0 && !setupNewPaymentMethod ? (
@@ -358,7 +358,7 @@ const PaymentMethodSelection = forwardRef(function PaymentMethodSelection(
})}
<SelectItem value="new">
<div className="flex gap-2">
- <Plus size={16} />
+ <PlusIcon size={16} />
<p className="transition text-foreground-light group-hover:text-foreground">
Add new payment method
</p>
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanCard.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanCard.tsx
index 045f1f77ce3..77f3f8831d3 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanCard.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanCard.tsx
@@ -1,5 +1,5 @@
import { isArray } from 'lodash'
-import { Check } from 'lucide-react'
+import { CheckIcon } from 'lucide-react'
import { motion, type Variants } from 'motion/react'
import type { PricingInformation } from 'shared-data'
import { Button, cn } from 'ui'
@@ -166,7 +166,7 @@ export function PlanCard({
>
<div className="flex items-center">
<div className="flex w-5">
- <Check className="h-4 w-4 text-primary" aria-hidden="true" strokeWidth={3} />
+ <CheckIcon className="h-4 w-4 text-primary" aria-hidden="true" strokeWidth={3} />
</div>
<span className="text-foreground">
{typeof feature === 'string' ? feature : feature[0]}
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdatePanelShell.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdatePanelShell.tsx
index 142f1089bfb..8de72efb13c 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdatePanelShell.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdatePanelShell.tsx
@@ -1,4 +1,4 @@
-import { ArrowLeft, ExternalLink } from 'lucide-react'
+import { ArrowLeftIcon, ExternalLinkIcon } from 'lucide-react'
import { motion } from 'motion/react'
import type { ReactNode } from 'react'
import { Button } from 'ui'
@@ -30,7 +30,7 @@ export function PlanUpdateFullScreenShell({
>
<Button
variant="text"
- icon={<ArrowLeft />}
+ icon={<ArrowLeftIcon />}
onClick={onClose}
className="fixed top-4 left-4 z-10"
>
@@ -40,14 +40,14 @@ export function PlanUpdateFullScreenShell({
<Button
asChild
variant="text"
- iconRight={<ExternalLink />}
+ iconRight={<ExternalLinkIcon />}
className="hidden sm:inline-flex"
>
<a href="https://supabase.com/pricing#faq" target="_blank" rel="noreferrer">
Pricing FAQ
</a>
</Button>
- <Button asChild iconRight={<ExternalLink />}>
+ <Button asChild iconRight={<ExternalLinkIcon />}>
<a href="https://supabase.com/pricing#compare-plans" target="_blank" rel="noreferrer">
Compare plans
</a>
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/SubscriptionPlanUpdateDialog.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/SubscriptionPlanUpdateDialog.tsx
index af4f8760da7..d94fbf016bc 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/SubscriptionPlanUpdateDialog.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/SubscriptionPlanUpdateDialog.tsx
@@ -1,7 +1,7 @@
import { Elements } from '@stripe/react-stripe-js'
import { loadStripe, PaymentIntentResult, StripeElementsOptions } from '@stripe/stripe-js'
import { useParams } from 'common'
-import { Check, InfoIcon } from 'lucide-react'
+import { CheckIcon, InfoIcon } from 'lucide-react'
import { useTheme } from 'next-themes'
import Link from 'next/link'
import { useMemo, useRef, useState } from 'react'
@@ -565,7 +565,7 @@ export const SubscriptionPlanUpdateDialog = ({
className="flex items-center gap-2"
>
<div className="w-4">
- <Check className="h-3 w-3 text-primary" strokeWidth={3} />
+ <CheckIcon className="h-3 w-3 text-primary" strokeWidth={3} />
</div>
<div className="text-sm">
<p>{typeof feature === 'string' ? feature : feature[0]}</p>
diff --git a/apps/studio/components/interfaces/Organization/Documents/CustomDocument.tsx b/apps/studio/components/interfaces/Organization/Documents/CustomDocument.tsx
index 0d2fce1c7da..58fed61c88f 100644
--- a/apps/studio/components/interfaces/Organization/Documents/CustomDocument.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/CustomDocument.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import { Button } from 'ui'
import {
@@ -25,7 +25,7 @@ export const CustomDocument = ({ doc }: CustomDocumentProps) => {
</ScaffoldSectionDetail>
<ScaffoldSectionContent>
<div className="@lg:flex items-center justify-center h-full">
- <Button asChild iconRight={<ExternalLink />}>
+ <Button asChild iconRight={<ExternalLinkIcon />}>
<a download href={doc.action.url} target="_blank" rel="noreferrer noopener">
{doc.action.text}
</a>
diff --git a/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx b/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx
index a5f42e84dd2..271332f8cc1 100644
--- a/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/HIPAA.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import { Button } from 'ui'
import {
@@ -32,7 +32,7 @@ export const HIPAA = () => {
</ScaffoldSectionDetail>
<ScaffoldSectionContent>
<div className="@lg:flex items-center justify-center h-full">
- <Button asChild iconRight={<ExternalLink />}>
+ <Button asChild iconRight={<ExternalLinkIcon />}>
<a
href="https://forms.supabase.com/hipaa2"
target="_blank"
diff --git a/apps/studio/components/interfaces/Organization/Documents/ISO27001.tsx b/apps/studio/components/interfaces/Organization/Documents/ISO27001.tsx
index 93dd2c7d8f7..0140ea82db5 100644
--- a/apps/studio/components/interfaces/Organization/Documents/ISO27001.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/ISO27001.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Download } from 'lucide-react'
+import { DownloadIcon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import { Button } from 'ui'
@@ -81,7 +81,7 @@ export const ISO27001 = () => {
</div>
) : (
<div className="@lg:flex items-center justify-center h-full">
- <Button icon={<Download />} onClick={handleDownloadClick} disabled={!slug}>
+ <Button icon={<DownloadIcon />} onClick={handleDownloadClick} disabled={!slug}>
Download ISO 27001 Certificate
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx b/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx
index 523b5004261..ed6468b4518 100644
--- a/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/SOC2.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Download } from 'lucide-react'
+import { DownloadIcon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import { Button } from 'ui'
@@ -79,7 +79,7 @@ export const SOC2 = () => {
</div>
) : (
<div className="@lg:flex items-center justify-center h-full">
- <Button icon={<Download />} onClick={handleDownloadClick} disabled={!slug}>
+ <Button icon={<DownloadIcon />} onClick={handleDownloadClick} disabled={!slug}>
Download SOC2 Type 2 Report
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Organization/Documents/SecurityQuestionnaire.tsx b/apps/studio/components/interfaces/Organization/Documents/SecurityQuestionnaire.tsx
index 96a0ab7ac2f..205ec5b558c 100644
--- a/apps/studio/components/interfaces/Organization/Documents/SecurityQuestionnaire.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/SecurityQuestionnaire.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Download } from 'lucide-react'
+import { DownloadIcon } from 'lucide-react'
import Link from 'next/link'
import { toast } from 'sonner'
import { Button } from 'ui'
@@ -78,7 +78,7 @@ export const SecurityQuestionnaire = () => {
</div>
) : (
<div className="@lg:flex items-center justify-center h-full">
- <Button icon={<Download />} onClick={handleDownloadClick} disabled={!slug}>
+ <Button icon={<DownloadIcon />} onClick={handleDownloadClick} disabled={!slug}>
Download Questionnaire
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Organization/Documents/TIA.tsx b/apps/studio/components/interfaces/Organization/Documents/TIA.tsx
index 48354dd3680..c82028aecf0 100644
--- a/apps/studio/components/interfaces/Organization/Documents/TIA.tsx
+++ b/apps/studio/components/interfaces/Organization/Documents/TIA.tsx
@@ -1,4 +1,4 @@
-import { Download } from 'lucide-react'
+import { DownloadIcon } from 'lucide-react'
import { Button } from 'ui'
import {
@@ -24,7 +24,7 @@ export const TIA = () => {
</ScaffoldSectionDetail>
<ScaffoldSectionContent>
<div className="@lg:flex items-center justify-center h-full">
- <Button asChild iconRight={<Download />}>
+ <Button asChild iconRight={<DownloadIcon />}>
<a
href="https://supabase.com/downloads/docs/Supabase+TIA+250314.pdf"
target="_blank"
diff --git a/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx b/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx
index 5ef62a7a3e3..66d9da6412f 100644
--- a/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx
+++ b/apps/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx
@@ -1,5 +1,11 @@
import dayjs from 'dayjs'
-import { ChevronLeft, ChevronRight, FileText, Receipt, ScrollText } from 'lucide-react'
+import {
+ ChevronLeftIcon,
+ ChevronRightIcon,
+ FileTextIcon,
+ ReceiptIcon,
+ ScrollTextIcon,
+} from 'lucide-react'
import { useEffect, useState } from 'react'
import { useInView } from 'react-intersection-observer'
import { toast } from 'sonner'
@@ -181,7 +187,11 @@ export const InvoicesSettings = () => {
return (
<TableRow key={x.id}>
<TableCell className="w-2">
- <FileText aria-hidden="true" size={16} className="text-foreground-muted" />
+ <FileTextIcon
+ aria-hidden="true"
+ size={16}
+ className="text-foreground-muted"
+ />
</TableCell>
<TableCell>
<p>{dayjs(x.period_end * 1000).format('MMM DD, YYYY')}</p>
@@ -214,7 +224,7 @@ export const InvoicesSettings = () => {
<ButtonTooltip
variant="outline"
className="w-7"
- icon={<ScrollText size={16} strokeWidth={1.5} />}
+ icon={<ScrollTextIcon size={16} strokeWidth={1.5} />}
aria-label="Download invoice"
disabled={!hasInvoicePdf}
onClick={() => fetchInvoice(x.id)}
@@ -232,7 +242,7 @@ export const InvoicesSettings = () => {
<ButtonTooltip
variant="outline"
className="w-7"
- icon={<Receipt size={16} strokeWidth={1.5} />}
+ icon={<ReceiptIcon size={16} strokeWidth={1.5} />}
aria-label="Download receipt"
onClick={() => fetchReceipt(x.id)}
tooltip={{ content: { side: 'bottom', text: 'Download receipt' } }}
@@ -258,14 +268,14 @@ export const InvoicesSettings = () => {
</p>
<div className="flex items-center gap-x-2" aria-label="Pagination">
<Button
- icon={<ChevronLeft />}
+ icon={<ChevronLeftIcon />}
aria-label="Previous page"
size="tiny"
disabled={page === 1}
onClick={async () => setPage(page - 1)}
/>
<Button
- icon={<ChevronRight />}
+ icon={<ChevronRightIcon />}
aria-label="Next page"
size="tiny"
disabled={page * PAGE_LIMIT >= (count ?? 0)}
diff --git a/apps/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx b/apps/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx
index b70a55e997f..3335af15ed8 100644
--- a/apps/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx
+++ b/apps/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx
@@ -4,7 +4,7 @@ import type { PaymentIntentResult, PaymentMethod, StripeElementsOptions } from '
import { loadStripe } from '@stripe/stripe-js'
import { useDebounce } from '@uidotdev/usehooks'
import { groupBy } from 'lodash'
-import { HelpCircle } from 'lucide-react'
+import { HelpCircleIcon } from 'lucide-react'
import { useTheme } from 'next-themes'
import { useRouter } from 'next/router'
import { parseAsBoolean, parseAsString, useQueryStates } from 'nuqs'
@@ -504,7 +504,7 @@ export const NewOrgForm = ({
label={
<div className="flex space-x-2 text-sm items-center">
<span>Spend Cap</span>
- <HelpCircle
+ <HelpCircleIcon
size={16}
strokeWidth={1.5}
className="transition opacity-50 cursor-pointer hover:opacity-100"
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx
index 8ac3572f54b..b2706e6c565 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx
@@ -1,5 +1,5 @@
import { OAuthScope } from '@supabase/shared-types/out/constants'
-import { Check, ChevronDown } from 'lucide-react'
+import { CheckIcon, ChevronDownIcon } from 'lucide-react'
import { useTheme } from 'next-themes'
import { useMemo, useState } from 'react'
import {
@@ -54,7 +54,7 @@ export const ScopeSection = ({
return (
<div className="first:border-t border-b flex flex-row space-x-1 text-sm text-foreground-light py-2 px-1">
<div className="pt-0.5">
- <Check className="size-4 text-primary" strokeWidth={1.5} />
+ <CheckIcon className="size-4 text-primary" strokeWidth={1.5} />
</div>
<div>
<span className="font-semibold text-foreground">{permissions}</span> {description}
@@ -299,7 +299,7 @@ export const AuthorizeRequesterDetails = ({
<Collapsible open={showDetails} onOpenChange={setShowDetails} className="mt-2 space-y-2">
<CollapsibleTrigger className={PERMISSION_DETAILS_TRIGGER_CLASSNAME}>
<span>{showDetails ? 'Hide detailed permissions' : 'Show detailed permissions'}</span>
- <ChevronDown
+ <ChevronDownIcon
className={cn('size-3.5 transition-transform', showDetails && 'rotate-180')}
/>
</CollapsibleTrigger>
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx
index dda5360aa9d..b6d60f45770 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/AuthorizedAppRow.tsx
@@ -1,4 +1,4 @@
-import { Trash } from 'lucide-react'
+import { TrashIcon } from 'lucide-react'
import { Button, TableCell, TableRow } from 'ui'
import { TimestampInfo } from 'ui-patterns/TimestampInfo'
@@ -43,7 +43,7 @@ export const AuthorizedAppRow = ({ app, onSelectRevoke }: AuthorizedAppRowProps)
/>
</TableCell>
<TableCell className="text-right">
- <Button icon={<Trash />} className="px-1" onClick={() => onSelectRevoke()} />
+ <Button icon={<TrashIcon />} className="px-1" onClick={() => onSelectRevoke()} />
</TableCell>
</TableRow>
)
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/Consent/AuthorizingAsCard.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/Consent/AuthorizingAsCard.tsx
index bef7263772e..51afd148510 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/Consent/AuthorizingAsCard.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/Consent/AuthorizingAsCard.tsx
@@ -1,4 +1,4 @@
-import { LogOut } from 'lucide-react'
+import { LogOutIcon } from 'lucide-react'
import { ButtonTooltip } from '@/components/ui/ButtonTooltip'
import { OAuthAppsAuthorizeRequest } from '@/data/oauth-apps/types'
@@ -26,7 +26,7 @@ export const AuthorizingAsCard = ({
<ButtonTooltip
variant="text"
size="tiny"
- icon={<LogOut size={14} />}
+ icon={<LogOutIcon size={14} />}
className="shrink-0 size-6 px-0 text-foreground-light hover:text-foreground"
aria-label="Sign out"
aria-describedby={undefined}
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/DeleteAppModal.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/DeleteAppModal.tsx
index b79b9fdc108..32f7c3aa71b 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/DeleteAppModal.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/DeleteAppModal.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Lock } from 'lucide-react'
+import { LockIcon } from 'lucide-react'
import { toast } from 'sonner'
import {
AlertDialog,
@@ -49,7 +49,7 @@ export const DeleteAppModal = ({ selectedApp, onClose }: DeleteAppModalProps) =>
/>
<ul className="space-y-5">
<li className="flex gap-3 text-sm">
- <Lock size={14} className="shrink-0" />
+ <LockIcon size={14} className="shrink-0" />
<div>
<strong>Before you remove this application, consider:</strong>
<ul className="space-y-2 mt-2">
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx
index 06b7ec61985..29ba31c79ca 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Edit, MoreVertical, Trash } from 'lucide-react'
+import { EditIcon, MoreVerticalIcon, TrashIcon } from 'lucide-react'
import {
Button,
DropdownMenu,
@@ -68,7 +68,7 @@ export const OAuthAppRow = ({ app, onSelectEdit, onSelectDelete }: OAuthAppRowPr
<TableCell className="text-right">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button icon={<MoreVertical />} className="px-1" />
+ <Button icon={<MoreVerticalIcon />} className="px-1" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" side="bottom" className="w-32">
<Tooltip>
@@ -81,7 +81,7 @@ export const OAuthAppRow = ({ app, onSelectEdit, onSelectDelete }: OAuthAppRowPr
if (canUpdateOAuthApps) onSelectEdit()
}}
>
- <Edit size={16} />
+ <EditIcon size={16} />
<p>Edit app</p>
</DropdownMenuItem>
</TooltipTrigger>
@@ -102,7 +102,7 @@ export const OAuthAppRow = ({ app, onSelectEdit, onSelectDelete }: OAuthAppRowPr
if (canDeleteOAuthApps) onSelectDelete()
}}
>
- <Trash size={16} />
+ <TrashIcon size={16} />
<p>Delete app</p>
</DropdownMenuItem>
</TooltipTrigger>
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppsAuthorizedRow.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppsAuthorizedRow.tsx
index df27f9fb3ca..557d3347e1e 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppsAuthorizedRow.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppsAuthorizedRow.tsx
@@ -1,4 +1,4 @@
-import { Lock, MoreVertical, X } from 'lucide-react'
+import { LockIcon, MoreVerticalIcon, XIcon } from 'lucide-react'
import { useRef, useState } from 'react'
import {
Button,
@@ -74,7 +74,7 @@ export const OAuthAppsAuthorizedRow = ({
<DropdownMenuTrigger asChild>
<Button
ref={menuTriggerRef}
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
className="px-1"
aria-label="Manage app"
aria-describedby={undefined}
@@ -86,7 +86,7 @@ export const OAuthAppsAuthorizedRow = ({
<DropdownMenuContent align="end" side="bottom" className="w-40">
<DialogTrigger asChild>
<DropdownMenuItem className="gap-x-2" onClick={() => setDialogContent('grants')}>
- <Lock size={14} />
+ <LockIcon size={14} />
View grants
</DropdownMenuItem>
</DialogTrigger>
@@ -94,7 +94,7 @@ export const OAuthAppsAuthorizedRow = ({
{canRevoke && (
<DialogTrigger asChild>
<DropdownMenuItem className="gap-x-2" onClick={() => setDialogContent('revoke')}>
- <X size={14} />
+ <XIcon size={14} />
Revoke grants
</DropdownMenuItem>
</DialogTrigger>
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppsMemberGrantsDialogContent.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppsMemberGrantsDialogContent.tsx
index f2e5233aca9..fd8ae0a7ba8 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppsMemberGrantsDialogContent.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthAppsMemberGrantsDialogContent.tsx
@@ -1,6 +1,6 @@
import { useIntersectionObserver } from '@uidotdev/usehooks'
import { useParams } from 'common'
-import { Building, User } from 'lucide-react'
+import { BuildingIcon, UserIcon } from 'lucide-react'
import { ComponentProps, useEffect, useMemo } from 'react'
import {
Button,
@@ -119,7 +119,7 @@ export const OAuthAppsMemberGrantsDialogContent = ({
const GrantAccordionItem = ({ grant }: { grant: OAuthGrantItem }) => {
const isOrganizationBound = grant.kind === 'organization_bound'
const permissionCount = grant.approved_scopes.length
- const Icon = isOrganizationBound ? Building : User
+ const Icon = isOrganizationBound ? BuildingIcon : UserIcon
const projectsSummary =
grant.projects == null
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/SecretRow.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/SecretRow.tsx
index 53f9b14f709..cb5f16c54bd 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/SecretRow.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/OAuthSecrets/SecretRow.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { Check, Key, Trash } from 'lucide-react'
+import { CheckIcon, KeyIcon, TrashIcon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import { cn } from 'ui'
@@ -57,11 +57,11 @@ export const SecretRow = ({ secret, appId }: SecretRowProps) => {
)}
>
<div className="flex flex-row gap-6 items-center">
- <Key size={16} strokeWidth={2} />
+ <KeyIcon size={16} strokeWidth={2} />
<div className="flex flex-col gap-1">
<div className="flex items-center gap-2">
<div className="flex items-center gap-2">
- {isNew && <Check size={14} className="text-primary" strokeWidth={3} />}
+ {isNew && <CheckIcon size={14} className="text-primary" strokeWidth={3} />}
<p className="font-mono text-sm">
{isNew ? secret.client_secret : `${secret.client_secret_alias}${'*'.repeat(36)}`}
</p>
@@ -88,7 +88,7 @@ export const SecretRow = ({ secret, appId }: SecretRowProps) => {
<div className="flex items-center gap-2">
<ButtonTooltip
className="w-7"
- icon={<Trash />}
+ icon={<TrashIcon />}
disabled={!appId || !canManageSecrets || isLast}
onClick={() => setShowDeleteModal(true)}
tooltip={{
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx
index 69c14946c9d..1052343ac8a 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/Scopes.tsx
@@ -1,5 +1,5 @@
import { OAuthScope } from '@supabase/shared-types/out/constants'
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { Dispatch, PropsWithChildren, SetStateAction } from 'react'
import {
Button,
@@ -76,7 +76,7 @@ const Scope = ({
</div>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button iconRight={<ChevronDown />}>
+ <Button iconRight={<ChevronDownIcon />}>
<p>{accessDescription}</p>
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
index 143205936b5..096a2e1552f 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
@@ -1,7 +1,7 @@
import { zodResolver } from '@hookform/resolvers/zod'
import type { OAuthScope } from '@supabase/shared-types/out/constants'
import { useFlag, useParams } from 'common'
-import { Edit, Upload } from 'lucide-react'
+import { EditIcon, UploadIcon } from 'lucide-react'
import { ChangeEvent, useEffect, useRef, useState } from 'react'
import { Control, SubmitHandler, useFieldArray, useForm, useWatch } from 'react-hook-form'
import { toast } from 'sonner'
@@ -325,7 +325,7 @@ export const PublishAppSidePanel = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button className="px-1">
- <Edit />
+ <EditIcon />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" side="bottom">
@@ -360,7 +360,7 @@ export const PublishAppSidePanel = ({
uploadButtonRef.current?.click()
}}
>
- <Upload size={18} strokeWidth={1.5} className="text-foreground" />
+ <UploadIcon size={18} strokeWidth={1.5} className="text-foreground" />
<p className="text-xs text-foreground-light">Upload logo</p>
</div>
)}
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/PublishableApps.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/PublishableApps.tsx
index 92a2ca67b34..09da6d3cea6 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/PublishableApps.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/PublishableApps.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Check, X } from 'lucide-react'
+import { CheckIcon, XIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import {
Button,
@@ -156,7 +156,7 @@ export const PublishableApps = () => {
<div className="absolute top-4 right-4">
<Button
variant="text"
- icon={<X size={18} />}
+ icon={<XIcon size={18} />}
className="px-1"
onClick={() => setCreatedApp(undefined)}
aria-label="Cancel"
@@ -165,7 +165,7 @@ export const PublishableApps = () => {
<div className="w-full space-y-4">
<div className="flex flex-col gap-0">
<div className="flex items-center gap-2">
- <Check size={14} className="text-primary" strokeWidth={3} />
+ <CheckIcon size={14} className="text-primary" strokeWidth={3} />
<p className="text-sm">You've created your new OAuth application.</p>
</div>
<p className="text-sm text-foreground-light">
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/RevokeAppModal.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/RevokeAppModal.tsx
index 47784797f7d..f687e08f55a 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/RevokeAppModal.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/RevokeAppModal.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Lock } from 'lucide-react'
+import { LockIcon } from 'lucide-react'
import { toast } from 'sonner'
import {
AlertDialog,
@@ -59,7 +59,7 @@ export const RevokeAppModal = ({
/>
<div className="space-y-5">
<div className="flex gap-2 text-sm">
- <Lock size={14} className="shrink-0" />
+ <LockIcon size={14} className="shrink-0" />
<div>
<strong>Before you remove this app, consider:</strong>
<ul className="space-y-2 mt-2">
diff --git a/apps/studio/components/interfaces/Organization/OrganizationCard.tsx b/apps/studio/components/interfaces/Organization/OrganizationCard.tsx
index 32dbb9554f7..c59758ca4b3 100644
--- a/apps/studio/components/interfaces/Organization/OrganizationCard.tsx
+++ b/apps/studio/components/interfaces/Organization/OrganizationCard.tsx
@@ -1,5 +1,5 @@
import { useIsMFAEnabled } from 'common'
-import { Boxes, Lock, Plus } from 'lucide-react'
+import { BoxesIcon, LockIcon, PlusIcon } from 'lucide-react'
import Link from 'next/link'
import { Fragment, type ReactNode } from 'react'
import { cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -41,7 +41,7 @@ export const OrganizationCard = ({
'flex items-center min-h-[70px] [&>div]:w-full [&>div]:items-center max-h-min',
className
)}
- icon={<Boxes size={18} strokeWidth={1} className="text-foreground" />}
+ icon={<BoxesIcon size={18} strokeWidth={1} className="text-foreground" />}
title={organization.name}
onClick={onClick}
description={
@@ -63,7 +63,7 @@ export const OrganizationCard = ({
{isMfaRequired && (
<Tooltip>
<TooltipTrigger className="cursor-default">
- <Lock size={12} />
+ <LockIcon size={12} />
</TooltipTrigger>
<TooltipContent side="bottom" className={!isUserMFAEnabled ? 'w-80' : ''}>
MFA enforced
@@ -109,7 +109,7 @@ export const CreateOrganizationCard = ({
'flex items-center min-h-[70px] [&>div]:w-full [&>div]:items-center max-h-min',
'border-dashed shadow-none transition-colors group-hover:border-default group-hover:bg-surface-200'
)}
- icon={<Plus size={18} strokeWidth={1} className="text-foreground" />}
+ icon={<PlusIcon size={18} strokeWidth={1} className="text-foreground" />}
title={label}
/>
)
diff --git a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/AppsList/AppsList.tsx b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/AppsList/AppsList.tsx
index 9743025e82f..d7d1072e230 100644
--- a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/AppsList/AppsList.tsx
+++ b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/AppsList/AppsList.tsx
@@ -1,4 +1,4 @@
-import { AppWindow, Plus } from 'lucide-react'
+import { AppWindowIcon, PlusIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import { toast } from 'sonner'
import { Button } from 'ui'
@@ -71,18 +71,18 @@ export function AppsList({ onCreateApp, createShortcutId }: AppsListProps) {
<AppsListLoading />
) : apps.length === 0 ? (
<EmptyStatePresentational
- icon={AppWindow}
+ icon={AppWindowIcon}
title="No private apps yet"
description="Create a private app to generate scoped access tokens for your organization."
>
{createShortcutId ? (
<Shortcut id={createShortcutId} onTrigger={onCreateApp} side="bottom">
- <Button variant="primary" icon={<Plus size={14} />} onClick={onCreateApp}>
+ <Button variant="primary" icon={<PlusIcon size={14} />} onClick={onCreateApp}>
Create app
</Button>
</Shortcut>
) : (
- <Button variant="primary" icon={<Plus size={14} />} onClick={onCreateApp}>
+ <Button variant="primary" icon={<PlusIcon size={14} />} onClick={onCreateApp}>
Create app
</Button>
)}
diff --git a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/AppsList/AppsListTable.tsx b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/AppsList/AppsListTable.tsx
index 5842cf144d2..18b4200e73a 100644
--- a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/AppsList/AppsListTable.tsx
+++ b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/AppsList/AppsListTable.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { ArrowUpCircle, Key, MoreVertical, Trash } from 'lucide-react'
+import { ArrowUpCircleIcon, KeyIcon, MoreVerticalIcon, TrashIcon } from 'lucide-react'
import {
Badge,
Button,
@@ -80,16 +80,16 @@ export function AppsListTable({
<TableCell className="text-right">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button icon={<MoreVertical size={14} />} className="w-7" />
+ <Button icon={<MoreVerticalIcon size={14} />} className="w-7" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" side="bottom" className="w-44">
<DropdownMenuItem className="gap-x-2" onClick={() => onViewApp(app)}>
- <Key size={14} />
+ <KeyIcon size={14} />
View permissions
</DropdownMenuItem>
{!isInstalled && (
<DropdownMenuItem className="gap-x-2" onClick={() => onPromoteApp(app)}>
- <ArrowUpCircle size={14} />
+ <ArrowUpCircleIcon size={14} />
Promote to installed
</DropdownMenuItem>
)}
@@ -98,7 +98,7 @@ export function AppsListTable({
className="text-destructive! gap-x-2"
onClick={() => onDeleteApp(app)}
>
- <Trash size={14} />
+ <TrashIcon size={14} />
Delete
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/CreateAppSheet/CreateAppSheet.tsx b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/CreateAppSheet/CreateAppSheet.tsx
index 8e468725954..5f82fe0f4e4 100644
--- a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/CreateAppSheet/CreateAppSheet.tsx
+++ b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/CreateAppSheet/CreateAppSheet.tsx
@@ -1,5 +1,5 @@
import type { components } from 'api-types'
-import { Copy, Download, Key, Plus, RotateCcw, X } from 'lucide-react'
+import { CopyIcon, DownloadIcon, KeyIcon, PlusIcon, RotateCcwIcon, XIcon } from 'lucide-react'
import { useEffect, useRef, useState } from 'react'
import { toast } from 'sonner'
import {
@@ -184,7 +184,7 @@ export function CreateAppSheet({ visible, onClose, onCreated }: CreateAppSheetPr
<Button
size="tiny"
className="p-1"
- icon={<RotateCcw size={16} />}
+ icon={<RotateCcwIcon size={16} />}
onClick={() => setSelectedPermissions([])}
disabled={isLoading}
/>
@@ -195,7 +195,7 @@ export function CreateAppSheet({ visible, onClose, onCreated }: CreateAppSheetPr
modal
>
<PopoverTrigger asChild>
- <Button size="tiny" icon={<Plus size={14} />} disabled={isLoading}>
+ <Button size="tiny" icon={<PlusIcon size={14} />} disabled={isLoading}>
Add permission
</Button>
</PopoverTrigger>
@@ -219,7 +219,7 @@ export function CreateAppSheet({ visible, onClose, onCreated }: CreateAppSheetPr
onCheckedChange={() => toggle(perm.id)}
onClick={(e) => e.stopPropagation()}
/>
- <Key size={12} className="text-foreground-lighter" />
+ <KeyIcon size={12} className="text-foreground-lighter" />
<span className="font-medium text-foreground">
{perm.label}
</span>
@@ -260,7 +260,7 @@ export function CreateAppSheet({ visible, onClose, onCreated }: CreateAppSheetPr
variant="text"
size="tiny"
className="p-1"
- icon={<X size={16} />}
+ icon={<XIcon size={16} />}
disabled={isLoading}
onClick={() =>
setSelectedPermissions((prev) => prev.filter((p) => p !== id))
@@ -311,14 +311,14 @@ export function CreateAppSheet({ visible, onClose, onCreated }: CreateAppSheetPr
<div className="flex items-center gap-2">
<Button
size="tiny"
- icon={<Copy size={12} />}
+ icon={<CopyIcon size={12} />}
onClick={() => copy(generatedKey.private_key, { withToast: true })}
>
Copy
</Button>
<Button
size="tiny"
- icon={<Download size={12} />}
+ icon={<DownloadIcon size={12} />}
onClick={() => {
const blob = new Blob([generatedKey.private_key], {
type: 'text/plain',
diff --git a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/ViewAppSheet/ViewAppSheet.tsx b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/ViewAppSheet/ViewAppSheet.tsx
index 47a46945a3b..36a07c5c71b 100644
--- a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/ViewAppSheet/ViewAppSheet.tsx
+++ b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/ViewAppSheet/ViewAppSheet.tsx
@@ -1,4 +1,4 @@
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import { Button, cn, ScrollArea, Sheet, SheetContent, SheetHeader } from 'ui'
@@ -68,7 +68,7 @@ export function ViewAppSheet({ app, visible, onClose, onDeleted }: ViewAppSheetP
className={cn('flex flex-row justify-between gap-x-4 items-center border-b')}
>
<p className="truncate font-medium">{app?.name}</p>
- <Button variant="text" icon={<X size={16} />} className="px-1" onClick={onClose} />
+ <Button variant="text" icon={<XIcon size={16} />} className="px-1" onClick={onClose} />
</SheetHeader>
<ScrollArea className="flex-1 max-h-[calc(100vh-60px)]">
diff --git a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/ViewAppSheet/ViewAppSheetInfo.tsx b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/ViewAppSheet/ViewAppSheetInfo.tsx
index 41a180bcd91..747d3142ed1 100644
--- a/apps/studio/components/interfaces/Organization/PrivateApps/Apps/ViewAppSheet/ViewAppSheetInfo.tsx
+++ b/apps/studio/components/interfaces/Organization/PrivateApps/Apps/ViewAppSheet/ViewAppSheetInfo.tsx
@@ -1,5 +1,5 @@
import { formatDistanceToNow } from 'date-fns'
-import { Check, Copy } from 'lucide-react'
+import { CheckIcon, CopyIcon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import {
@@ -44,9 +44,9 @@ function CopyableId({ id, label }: { id: string; label: string }) {
>
<span className="truncate">{id}</span>
{isCopied ? (
- <Check size={12} strokeWidth={1.25} className="text-primary shrink-0" />
+ <CheckIcon size={12} strokeWidth={1.25} className="text-primary shrink-0" />
) : (
- <Copy
+ <CopyIcon
size={12}
strokeWidth={1.25}
className="opacity-0 group-hover:opacity-100 transition-opacity shrink-0"
diff --git a/apps/studio/components/interfaces/Organization/ProjectClaim/benefits.tsx b/apps/studio/components/interfaces/Organization/ProjectClaim/benefits.tsx
index d0f89b5b944..29f2206441d 100644
--- a/apps/studio/components/interfaces/Organization/ProjectClaim/benefits.tsx
+++ b/apps/studio/components/interfaces/Organization/ProjectClaim/benefits.tsx
@@ -1,4 +1,4 @@
-import { CheckCircle2 } from 'lucide-react'
+import { CheckCircle2Icon } from 'lucide-react'
import { Button } from 'ui'
import { ProjectClaimLayout } from './layout'
@@ -28,7 +28,7 @@ export const ProjectClaimBenefits = ({
<h3 className="">Why manage your database project on Supabase?</h3>
<ul className="space-y-3">
<li className="flex space-x-2">
- <CheckCircle2 className="text-primary w-5 h-5" />
+ <CheckCircle2Icon className="text-primary w-5 h-5" />
<span>
<span className="text-foreground-light">Excellent Technical Support</span>
<span className="block text-foreground-lighter">
@@ -38,7 +38,7 @@ export const ProjectClaimBenefits = ({
</span>
</li>
<li className="flex space-x-2">
- <CheckCircle2 className="text-primary w-5 h-5" />
+ <CheckCircle2Icon className="text-primary w-5 h-5" />
<span>
<span className="text-foreground-light">Unrestricted usage.</span>
<span className="block text-foreground-lighter">
@@ -48,7 +48,7 @@ export const ProjectClaimBenefits = ({
</span>
</li>
<li className="flex space-x-2">
- <CheckCircle2 className="text-primary w-5 h-5" />
+ <CheckCircle2Icon className="text-primary w-5 h-5" />
<span>
<span className="text-foreground-light">Visibility into your data.</span>
<span className="block text-foreground-lighter">
@@ -58,7 +58,7 @@ export const ProjectClaimBenefits = ({
</span>
</li>
<li className="flex space-x-2">
- <CheckCircle2 className="text-primary w-5 h-5" />
+ <CheckCircle2Icon className="text-primary w-5 h-5" />
<span>
<span className="text-foreground-light">Observability and easy debugging.</span>
<span className="block text-foreground-lighter">
@@ -68,7 +68,7 @@ export const ProjectClaimBenefits = ({
</li>
<li className="flex space-x-2">
<div>
- <CheckCircle2 className="text-primary w-5 h-5" />
+ <CheckCircle2Icon className="text-primary w-5 h-5" />
</div>
<span>
<span className="text-foreground-light">Easy Compute Scaling.</span>
diff --git a/apps/studio/components/interfaces/Organization/ProjectClaim/confirm.tsx b/apps/studio/components/interfaces/Organization/ProjectClaim/confirm.tsx
index 64f357152ee..66475a60573 100644
--- a/apps/studio/components/interfaces/Organization/ProjectClaim/confirm.tsx
+++ b/apps/studio/components/interfaces/Organization/ProjectClaim/confirm.tsx
@@ -1,6 +1,6 @@
import { OAuthScope } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { CheckCircle2, ChevronRight, ChevronsLeftRight } from 'lucide-react'
+import { CheckCircle2Icon, ChevronRightIcon, ChevronsLeftRightIcon } from 'lucide-react'
import Image from 'next/image'
import { useRouter } from 'next/router'
import { toast } from 'sonner'
@@ -92,7 +92,7 @@ export const ProjectClaimConfirm = ({
<div className="flex items-center justify-center w-28 relative">
<div className="h-0.5 w-full border-2 border-dashed border-stronger" />
<div className="rounded-full border flex items-center justify-center h-10 w-full shadow-xs">
- <ChevronsLeftRight className="text-muted-foreground" size={24} />
+ <ChevronsLeftRightIcon className="text-muted-foreground" size={24} />
</div>
<div className="h-0.5 w-full border-2 border-dashed border-stronger z-10" />
</div>
@@ -117,7 +117,7 @@ export const ProjectClaimConfirm = ({
<ul className="space-y-3">
<li className="flex space-x-2">
<span>
- <CheckCircle2 className="text-primary h-5 w-5" />
+ <CheckCircle2Icon className="text-primary h-5 w-5" />
</span>
<span>
The project will be transferred to your Supabase organization{' '}
@@ -133,7 +133,7 @@ export const ProjectClaimConfirm = ({
</li>
<li className="flex space-x-2">
<span>
- <CheckCircle2 className="text-primary h-5 w-5" />
+ <CheckCircle2Icon className="text-primary h-5 w-5" />
</span>
<span>
<span className="text-foreground">{requester?.name}</span> will receive API access
@@ -143,7 +143,7 @@ export const ProjectClaimConfirm = ({
</li>
<li className="flex space-x-2">
<span>
- <CheckCircle2 className="text-primary h-5 w-5" />
+ <CheckCircle2Icon className="text-primary h-5 w-5" />
</span>
<span>
You'll be responsible for maintaining the project, which may include additional
@@ -175,7 +175,7 @@ export const ProjectClaimConfirm = ({
</span>
</p>
- <ChevronRight
+ <ChevronRightIcon
size={16}
className="text-foreground-light transition-all group-data-open:rotate-90 w-20"
strokeWidth={1}
diff --git a/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx b/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx
index f14e64e22b9..65d9ee37ee1 100644
--- a/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx
+++ b/apps/studio/components/interfaces/Organization/SSO/SSOConfig.tsx
@@ -1,5 +1,5 @@
import { zodResolver } from '@hookform/resolvers/zod'
-import { Trash } from 'lucide-react'
+import { TrashIcon } from 'lucide-react'
import { useEffect, useEffectEvent, useState } from 'react'
import { SubmitHandler, useForm, useWatch } from 'react-hook-form'
import { toast } from 'sonner'
@@ -371,7 +371,7 @@ export const SSOConfig = () => {
{!!ssoConfig && (
<Button
variant="danger"
- icon={<Trash />}
+ icon={<TrashIcon />}
onClick={() => setIsDeleteModalVisible(true)}
disabled={isCreating || isUpdating || isDeleting}
>
diff --git a/apps/studio/components/interfaces/Organization/SSO/SSODomains.tsx b/apps/studio/components/interfaces/Organization/SSO/SSODomains.tsx
index e42e34e9d2d..f5aafedc99d 100644
--- a/apps/studio/components/interfaces/Organization/SSO/SSODomains.tsx
+++ b/apps/studio/components/interfaces/Organization/SSO/SSODomains.tsx
@@ -1,4 +1,4 @@
-import { Plus, Trash } from 'lucide-react'
+import { PlusIcon, TrashIcon } from 'lucide-react'
import { useFieldArray, useForm } from 'react-hook-form'
import { Button, FormControl, FormField, FormItem, FormMessage, Input } from 'ui'
import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
@@ -51,7 +51,7 @@ export const SSODomains = ({ form }: { form: ReturnType<typeof useForm<SSOConfig
/>
<Button
- icon={<Trash size={12} />}
+ icon={<TrashIcon size={12} />}
className="h-[34px] w-[34px]"
onClick={() => remove(idx)}
/>
@@ -59,7 +59,7 @@ export const SSODomains = ({ form }: { form: ReturnType<typeof useForm<SSOConfig
))}
<div>
<Button
- icon={<Plus className="w-4 h-4" />}
+ icon={<PlusIcon className="w-4 h-4" />}
size="tiny"
onClick={() => append({ value: '' })}
>
diff --git a/apps/studio/components/interfaces/Organization/SSO/SSOMetadata.tsx b/apps/studio/components/interfaces/Organization/SSO/SSOMetadata.tsx
index beab3363d94..94f06129f9d 100644
--- a/apps/studio/components/interfaces/Organization/SSO/SSOMetadata.tsx
+++ b/apps/studio/components/interfaces/Organization/SSO/SSOMetadata.tsx
@@ -1,4 +1,4 @@
-import { Upload } from 'lucide-react'
+import { UploadIcon } from 'lucide-react'
import { useEffect, useRef, useState } from 'react'
import { useForm } from 'react-hook-form'
import {
@@ -109,7 +109,7 @@ export const SSOMetadata = ({
onChange={handleFileChange}
/>
<Button
- icon={<Upload className="w-4 h-4" />}
+ icon={<UploadIcon className="w-4 h-4" />}
onClick={() => fileInputRef.current?.click()}
>
Upload XML
diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx
index c9976e5bed0..26636a8301d 100644
--- a/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx
+++ b/apps/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx
@@ -1,7 +1,7 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { UserPlus } from 'lucide-react'
+import { UserPlusIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { useForm, useWatch } from 'react-hook-form'
import { toast } from 'sonner'
@@ -288,7 +288,7 @@ export const InviteMemberButton = () => {
<ButtonTooltip
variant="primary"
disabled={isInviteDisabled}
- icon={<UserPlus size={14} />}
+ icon={<UserPlusIcon size={14} />}
className="pointer-events-auto grow md:grow-0"
onClick={() => setIsOpen(true)}
tooltip={{
diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx
index 80dc5bfe9cd..cc2a2c61636 100644
--- a/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx
+++ b/apps/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useIsLoggedIn, useParams } from 'common'
-import { MoreVertical, Redo2, Trash } from 'lucide-react'
+import { MoreVerticalIcon, Redo2Icon, TrashIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import { toast } from 'sonner'
import {
@@ -197,7 +197,7 @@ export const MemberActions = ({ member }: MemberActionsProps) => {
className="px-1.5"
disabled={isLoading}
loading={isLoading}
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-40">
@@ -215,7 +215,7 @@ export const MemberActions = ({ member }: MemberActionsProps) => {
},
}}
>
- <Redo2 size={14} />
+ <Redo2Icon size={14} />
<p>Resend invitation</p>
</DropdownMenuItemTooltip>
@@ -232,7 +232,7 @@ export const MemberActions = ({ member }: MemberActionsProps) => {
},
}}
>
- <Trash size={14} />
+ <TrashIcon size={14} />
<p>Cancel invitation</p>
</DropdownMenuItemTooltip>
</>
@@ -249,7 +249,7 @@ export const MemberActions = ({ member }: MemberActionsProps) => {
},
}}
>
- <Trash size={12} />
+ <TrashIcon size={12} />
<p>Remove member</p>
</DropdownMenuItemTooltip>
)
diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/MemberRow.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/MemberRow.tsx
index 8f1d7688cb9..8bd7abefdf9 100644
--- a/apps/studio/components/interfaces/Organization/TeamSettings/MemberRow.tsx
+++ b/apps/studio/components/interfaces/Organization/TeamSettings/MemberRow.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ArrowRight, Check, ChevronRight, X } from 'lucide-react'
+import { ArrowRightIcon, CheckIcon, ChevronRightIcon, XIcon } from 'lucide-react'
import Link from 'next/link'
import { memo, useMemo } from 'react'
import {
@@ -134,9 +134,9 @@ export const MemberRow = memo(function MemberRow({
<Tooltip>
<TooltipTrigger>
{member.mfa_enabled ? (
- <Check className="text-primary" strokeWidth={2} size={16} />
+ <CheckIcon className="text-primary" strokeWidth={2} size={16} />
) : (
- <X className="text-foreground-muted" strokeWidth={1.5} size={16} />
+ <XIcon className="text-foreground-muted" strokeWidth={1.5} size={16} />
)}
</TooltipTrigger>
<TooltipContent side="bottom" className="max-w-70 text-center">
@@ -163,7 +163,7 @@ export const MemberRow = memo(function MemberRow({
<p className="text-foreground-light whitespace-nowrap">{roleName}</p>
{hasProjectScopedRoles && (
<>
- <ChevronRight className="text-foreground-muted/50 shrink-0" size={14} />
+ <ChevronRightIcon className="text-foreground-muted/50 shrink-0" size={14} />
{projectsApplied.length === 1 ? (
<span
className="text-foreground-light truncate"
@@ -196,7 +196,7 @@ export const MemberRow = memo(function MemberRow({
<span className="text-xs truncate max-w-[60%]">{name}</span>
<span className="text-xs text-foreground flex items-center gap-x-1 opacity-0 group-hover:opacity-100 transition">
Go to project
- <ArrowRight size={14} />
+ <ArrowRightIcon size={14} />
</span>
</Link>
))}
diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx
index 6ad5c2f811b..326229be13d 100644
--- a/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx
+++ b/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { partition } from 'lodash'
-import { AlertCircle } from 'lucide-react'
+import { AlertCircleIcon } from 'lucide-react'
import { useCallback, useMemo, useState } from 'react'
import { Card, cn } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -202,7 +202,7 @@ export const MembersView = ({ searchString, mfaFilter }: MembersViewProps) => {
{isFiltering && filteredMembers.length === 0 && (
<div className="flex items-center gap-x-3 p-4">
- <AlertCircle size={16} strokeWidth={2} className="text-foreground-lighter" />
+ <AlertCircleIcon size={16} strokeWidth={2} className="text-foreground-lighter" />
<p className="text-foreground-lighter text-sm">
{searchString.length > 0
? `No members matched the search query "${searchString}"`
diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx
index f655b8e4249..c1ad236ec1a 100644
--- a/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx
+++ b/apps/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx
@@ -1,6 +1,6 @@
import { useDebounce } from '@uidotdev/usehooks'
import { useParams } from 'common'
-import { Search } from 'lucide-react'
+import { SearchIcon } from 'lucide-react'
import { parseAsStringEnum, useQueryState } from 'nuqs'
import { useState } from 'react'
import { cn, Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue } from 'ui'
@@ -73,7 +73,7 @@ export const TeamSettings = () => {
<Input
size="tiny"
autoComplete="off"
- icon={<Search />}
+ icon={<SearchIcon />}
value={searchString}
onChange={(e) => setSearchString(e.target.value)}
name="email"
diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesPanel.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesPanel.tsx
index b57a713e1c7..23f0847858e 100644
--- a/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesPanel.tsx
+++ b/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesPanel.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { isEqual } from 'lodash'
-import { ChevronDown, X } from 'lucide-react'
+import { ChevronDownIcon, XIcon } from 'lucide-react'
import { useEffect, useMemo, useState } from 'react'
import {
Alert,
@@ -218,7 +218,10 @@ export const UpdateRolesPanel = ({ visible, member, onClose }: UpdateRolesPanelP
? `This member only has access to ${numberOfProjectsWithAccess} project${numberOfProjectsWithAccess > 1 ? 's' : ''}`
: `This member will only have access to ${numberOfProjectsWithAccess} project${numberOfProjectsWithAccess > 1 ? 's' : ''}`}
</span>
- <ChevronDown size={14} className="transition group-data-open:-rotate-180" />
+ <ChevronDownIcon
+ size={14}
+ className="transition group-data-open:-rotate-180"
+ />
</CollapsibleTrigger>
<CollapsibleContent className="text-foreground-light text-sm px-4">
<p>
@@ -324,7 +327,7 @@ export const UpdateRolesPanel = ({ visible, member, onClose }: UpdateRolesPanelP
variant="text"
disabled={!canRemoveRole}
className="px-1"
- icon={<X />}
+ icon={<XIcon />}
onClick={() => onRemoveProject(project?.ref)}
tooltip={{
content: {
diff --git a/apps/studio/components/interfaces/Organization/Usage/ActiveCompute.tsx b/apps/studio/components/interfaces/Organization/Usage/ActiveCompute.tsx
index 2a9cf734625..d83d5ef04d2 100644
--- a/apps/studio/components/interfaces/Organization/Usage/ActiveCompute.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/ActiveCompute.tsx
@@ -1,4 +1,4 @@
-import { BarChart2 } from 'lucide-react'
+import { BarChart2Icon } from 'lucide-react'
import { useMemo } from 'react'
import { GenericSkeletonLoader } from 'ui-patterns/ShimmeringLoader'
@@ -87,7 +87,7 @@ const ActiveCompute = ({ orgDailyStats, isLoadingOrgDailyStats }: ComputeProps)
<Panel>
<Panel.Content>
<div className="flex flex-col items-center justify-center">
- <BarChart2 className="text-foreground-light mb-2" />
+ <BarChart2Icon className="text-foreground-light mb-2" />
<p className="text-sm">No data in period</p>
<p className="text-sm text-foreground-light">May take up to one hour to show</p>
</div>
diff --git a/apps/studio/components/interfaces/Organization/Usage/Compute.tsx b/apps/studio/components/interfaces/Organization/Usage/Compute.tsx
index e32af374af8..002e46c73ae 100644
--- a/apps/studio/components/interfaces/Organization/Usage/Compute.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/Compute.tsx
@@ -1,4 +1,4 @@
-import { BarChart2 } from 'lucide-react'
+import { BarChart2Icon } from 'lucide-react'
import { useMemo } from 'react'
import { GenericSkeletonLoader } from 'ui-patterns/ShimmeringLoader'
@@ -135,7 +135,7 @@ const Compute = ({ orgDailyStats, isLoadingOrgDailyStats }: ComputeProps) => {
<Panel>
<Panel.Content>
<div className="flex flex-col items-center justify-center">
- <BarChart2 className="text-foreground-light mb-2" />
+ <BarChart2Icon className="text-foreground-light mb-2" />
<p className="text-sm">No data in period</p>
<p className="text-sm text-foreground-light">May take up to one hour to show</p>
</div>
diff --git a/apps/studio/components/interfaces/Organization/Usage/SectionContent.tsx b/apps/studio/components/interfaces/Organization/Usage/SectionContent.tsx
index 0ecc47cc47b..215e9e711ca 100644
--- a/apps/studio/components/interfaces/Organization/Usage/SectionContent.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/SectionContent.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import { PropsWithChildren } from 'react'
import { Badge } from 'ui'
@@ -48,7 +48,7 @@ export const SectionContent = ({
<Link href={link.url} target="_blank" rel="noreferrer">
<div className="inline-flex items-center space-x-2 text-foreground-light hover:text-foreground transition">
<p className="text-sm">{link.name}</p>
- <ExternalLink size={16} strokeWidth={1.5} />
+ <ExternalLinkIcon size={16} strokeWidth={1.5} />
</div>
</Link>
</div>
diff --git a/apps/studio/components/interfaces/Organization/Usage/Usage.tsx b/apps/studio/components/interfaces/Organization/Usage/Usage.tsx
index abb2e55de33..da57c8be7a7 100644
--- a/apps/studio/components/interfaces/Organization/Usage/Usage.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/Usage.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { ChartArea, Check, ChevronDown } from 'lucide-react'
+import { ChartAreaIcon, CheckIcon, ChevronDownIcon } from 'lucide-react'
import Link from 'next/link'
import { useQueryState } from 'nuqs'
import { useMemo, useState } from 'react'
@@ -125,7 +125,7 @@ export const Usage = () => {
return (
<div className="flex flex-1 items-center justify-center p-6">
<HighAvailabilityDisabledEmptyState
- icon={ChartArea}
+ icon={ChartAreaIcon}
title="Usage unavailable on High Availability projects"
description="Usage insights for High Availability projects are coming soon."
/>
@@ -192,7 +192,9 @@ export const Usage = () => {
aria-expanded={open}
aria-controls={listboxId}
className="justify-between w-[180px]"
- iconRight={<ChevronDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />}
+ iconRight={
+ <ChevronDownIcon className="ml-2 h-4 w-4 shrink-0 opacity-50" />
+ }
>
{!selectedProject ? 'All projects' : selectedProject?.name}
</Button>
@@ -205,7 +207,7 @@ export const Usage = () => {
<span className={cn('truncate', isSelected ? 'max-w-60' : 'max-w-64')}>
{project.name}
</span>
- {isSelected && <Check size={16} />}
+ {isSelected && <CheckIcon size={16} />}
</div>
)
}}
@@ -223,7 +225,7 @@ export const Usage = () => {
}}
>
All projects
- {!selectedProjectRef && <Check size={16} />}
+ {!selectedProjectRef && <CheckIcon size={16} />}
</CommandItem>
</CommandGroup>
)}
diff --git a/apps/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx b/apps/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx
index 7638c79f081..ddf23fc0289 100644
--- a/apps/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx
@@ -1,4 +1,4 @@
-import { AlertTriangle, BarChart2 } from 'lucide-react'
+import { AlertTriangleIcon, BarChart2Icon } from 'lucide-react'
import Link from 'next/link'
import { useMemo } from 'react'
import { Button, cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -104,7 +104,7 @@ const AttributeUsage = ({
<TooltipTrigger asChild>
{usageRatio >= 1 ? (
<div className="flex items-center space-x-2 min-w-[115px] cursor-help">
- <AlertTriangle
+ <AlertTriangleIcon
size={14}
strokeWidth={2}
className={exceededLimitStyle}
@@ -114,7 +114,7 @@ const AttributeUsage = ({
) : (
usageRatio >= USAGE_APPROACHING_THRESHOLD && (
<div className="flex items-center space-x-2 min-w-[115px] cursor-help">
- <AlertTriangle
+ <AlertTriangleIcon
size={14}
strokeWidth={2}
className="text-amber-900"
@@ -239,7 +239,7 @@ const AttributeUsage = ({
<Panel>
<Panel.Content>
<div className="flex flex-col items-center justify-center">
- <BarChart2 className="text-foreground-light mb-2" />
+ <BarChart2Icon className="text-foreground-light mb-2" />
<p className="text-sm">No data in period</p>
<p className="text-sm text-foreground-light">
May take up to 24 hours to show
diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsx
index d121e0031b0..986b66f2123 100644
--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsx
+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsx
@@ -1,4 +1,4 @@
-import { Copy, RotateCcw } from 'lucide-react'
+import { CopyIcon, RotateCcwIcon } from 'lucide-react'
import {
Badge,
Button,
@@ -151,7 +151,7 @@ export const PlatformWebhooksDeliveryDetailsSheet = ({
>
<Button
variant="text"
- icon={<Copy size={14} />}
+ icon={<CopyIcon size={14} />}
onClick={() => onCopy(deliveryEventPayload, 'event payload')}
>
Copy
@@ -194,7 +194,7 @@ export const PlatformWebhooksDeliveryDetailsSheet = ({
>
<Button
variant="text"
- icon={<Copy size={14} />}
+ icon={<CopyIcon size={14} />}
onClick={() => onCopy(deliveryResponsePayload, 'response payload')}
>
Copy
@@ -219,7 +219,10 @@ export const PlatformWebhooksDeliveryDetailsSheet = ({
id={SHORTCUT_IDS.PLATFORM_WEBHOOKS_RETRY_DELIVERY}
onTrigger={() => onRetryDelivery(retryableDelivery.id)}
>
- <Button icon={<RotateCcw />} onClick={() => onRetryDelivery(retryableDelivery.id)}>
+ <Button
+ icon={<RotateCcwIcon />}
+ onClick={() => onRetryDelivery(retryableDelivery.id)}
+ >
Retry delivery
</Button>
</Shortcut>
diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointDetails.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointDetails.tsx
index cccafaa19b0..5a135605e04 100644
--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointDetails.tsx
+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointDetails.tsx
@@ -8,7 +8,13 @@ import {
type PaginationState,
type SortingState,
} from '@tanstack/react-table'
-import { ChevronLeft, ChevronRight, Copy, RotateCcw, Search } from 'lucide-react'
+import {
+ ChevronLeftIcon,
+ ChevronRightIcon,
+ CopyIcon,
+ RotateCcwIcon,
+ SearchIcon,
+} from 'lucide-react'
import { useEffect, useRef, useState, type ReactNode } from 'react'
import {
Badge,
@@ -118,7 +124,7 @@ const DELIVERY_COLUMNS: ColumnDef<WebhookDelivery>[] = [
<ButtonTooltip
size="tiny"
className="w-7 shrink-0 hit-area-2"
- icon={<RotateCcw />}
+ icon={<RotateCcwIcon />}
aria-label={`Retry ${row.original.id}`}
tooltip={{ content: { side: 'top', text: 'Retry' } }}
onClick={(event) => {
@@ -131,7 +137,7 @@ const DELIVERY_COLUMNS: ColumnDef<WebhookDelivery>[] = [
<Button
size="tiny"
className="w-7 shrink-0 hit-area-2 invisible pointer-events-none"
- icon={<RotateCcw />}
+ icon={<RotateCcwIcon />}
aria-hidden
tabIndex={-1}
/>
@@ -210,7 +216,7 @@ export const PlatformWebhooksEndpointDetails = ({
variant="text"
size="tiny"
className="mt-0.5 shrink-0 h-5 w-5 p-0"
- icon={<Copy size={12} />}
+ icon={<CopyIcon size={12} />}
aria-label="Copy endpoint URL"
onClick={onCopyUrl}
/>
@@ -268,7 +274,7 @@ export const PlatformWebhooksEndpointDetails = ({
ref={deliverySearchRef}
placeholder="Search deliveries"
size="tiny"
- icon={<Search />}
+ icon={<SearchIcon />}
value={deliverySearch}
className="w-full lg:w-52"
onChange={(event) => onDeliverySearchChange(event.target.value)}
@@ -354,7 +360,7 @@ export const PlatformWebhooksEndpointDetails = ({
</p>
<div className="flex items-center gap-x-2" aria-label="Pagination">
<Button
- icon={<ChevronLeft />}
+ icon={<ChevronLeftIcon />}
className="w-7 hit-area-2"
aria-label="Previous page"
size="tiny"
@@ -362,7 +368,7 @@ export const PlatformWebhooksEndpointDetails = ({
onClick={() => table.previousPage()}
/>
<Button
- icon={<ChevronRight />}
+ icon={<ChevronRightIcon />}
className="w-7 hit-area-2"
aria-label="Next page"
size="tiny"
diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointList.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointList.tsx
index 9e2f096e89d..bc918515464 100644
--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointList.tsx
+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointList.tsx
@@ -1,4 +1,12 @@
-import { ChevronRight, Eye, MoreVertical, Plus, Search, Trash2, Webhook } from 'lucide-react'
+import {
+ ChevronRightIcon,
+ EyeIcon,
+ MoreVerticalIcon,
+ PlusIcon,
+ SearchIcon,
+ Trash2Icon,
+ WebhookIcon,
+} from 'lucide-react'
import { useRouter } from 'next/router'
import { useMemo, useRef, useState } from 'react'
import {
@@ -110,7 +118,7 @@ export const PlatformWebhooksEndpointList = ({
ref={searchInputRef}
placeholder="Search endpoints"
size="tiny"
- icon={<Search />}
+ icon={<SearchIcon />}
value={search}
className="w-full lg:w-52"
onChange={(event) => onSearchChange(event.target.value)}
@@ -122,7 +130,7 @@ export const PlatformWebhooksEndpointList = ({
label="New endpoint"
onTrigger={onCreateEndpoint}
>
- <Button variant="primary" icon={<Plus />} onClick={onCreateEndpoint}>
+ <Button variant="primary" icon={<PlusIcon />} onClick={onCreateEndpoint}>
New endpoint
</Button>
</Shortcut>
@@ -130,7 +138,7 @@ export const PlatformWebhooksEndpointList = ({
{filteredEndpoints.length === 0 ? (
<EmptyStatePresentational
- icon={Webhook}
+ icon={WebhookIcon}
title="No endpoints yet"
description="Create an endpoint to start receiving webhook deliveries."
>
@@ -213,7 +221,7 @@ export const PlatformWebhooksEndpointList = ({
>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button icon={<MoreVertical />} className="w-7 hit-area-2" />
+ <Button icon={<MoreVerticalIcon />} className="w-7 hit-area-2" />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-40">
<DropdownMenuItem
@@ -222,7 +230,7 @@ export const PlatformWebhooksEndpointList = ({
onViewEndpoint(endpoint.id)
}}
>
- <Eye size={14} />
+ <EyeIcon size={14} />
<span>View details</span>
</DropdownMenuItem>
@@ -230,12 +238,12 @@ export const PlatformWebhooksEndpointList = ({
className="gap-x-2"
onClick={() => onDeleteEndpoint(endpoint.id)}
>
- <Trash2 size={14} />
+ <Trash2Icon size={14} />
<span>Delete</span>
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
- <ChevronRight
+ <ChevronRightIcon
aria-hidden={true}
size={14}
className="text-foreground-muted/60"
diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx
index 92ea686ea6f..9f7dcfafc20 100644
--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx
+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx
@@ -1,5 +1,5 @@
import { zodResolver } from '@hookform/resolvers/zod'
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { useEffect, useMemo, useState } from 'react'
import { useForm, useWatch } from 'react-hook-form'
import {
@@ -549,7 +549,7 @@ export const PlatformWebhooksEndpointSheet = ({
{allSelected ? 'Clear all' : 'Select all'}
</span>
)}
- <ChevronDown className="h-4 w-4 shrink-0 transition-transform duration-200 group-data-open:rotate-180" />
+ <ChevronDownIcon className="h-4 w-4 shrink-0 transition-transform duration-200 group-data-open:rotate-180" />
</div>
</div>
</AccordionTrigger>
diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksPage.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksPage.tsx
index 14b0a8b431d..e88507ba19e 100644
--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksPage.tsx
+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksPage.tsx
@@ -1,5 +1,5 @@
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { EllipsisVertical, Pencil, RotateCw, Send, Trash2 } from 'lucide-react'
+import { EllipsisVerticalIcon, PencilIcon, RotateCwIcon, SendIcon, Trash2Icon } from 'lucide-react'
import { useRouter } from 'next/router'
import { parseAsString, parseAsStringLiteral, useQueryState } from 'nuqs'
import { useEffect, useMemo, useState } from 'react'
@@ -448,7 +448,7 @@ export const PlatformWebhooksPage = ({ scope, endpointId }: PlatformWebhooksPage
options={{ enabled: !isEndpointSheetOpen }}
>
<Button
- icon={<Pencil size={14} />}
+ icon={<PencilIcon size={14} />}
onClick={() => {
setEditEnabledOverride(null)
setPanel('edit')
@@ -459,25 +459,25 @@ export const PlatformWebhooksPage = ({ scope, endpointId }: PlatformWebhooksPage
</Shortcut>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button icon={<EllipsisVertical />} className="w-7" />
+ <Button icon={<EllipsisVerticalIcon />} className="w-7" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" side="bottom" className="w-48">
<DropdownMenuItem className="gap-x-2" onClick={handleSendTestEvent}>
- <Send size={14} className="text-foreground-lighter" />
+ <SendIcon size={14} className="text-foreground-lighter" />
<span>Send test event</span>
</DropdownMenuItem>
<DropdownMenuItem
className="gap-x-2"
onClick={() => setShowRegenerateSecretConfirm(true)}
>
- <RotateCw size={14} className="text-foreground-lighter" />
+ <RotateCwIcon size={14} className="text-foreground-lighter" />
<span>Regenerate secret</span>
</DropdownMenuItem>
<DropdownMenuItem
className="gap-x-2"
onClick={() => setEndpointIdPendingDelete(selectedEndpoint.id)}
>
- <Trash2 size={14} className="text-foreground-lighter" />
+ <Trash2Icon size={14} className="text-foreground-lighter" />
<span>Delete endpoint</span>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Project/APIKeys.tsx b/apps/studio/components/interfaces/Project/APIKeys.tsx
index da544374048..ad712208bef 100644
--- a/apps/studio/components/interfaces/Project/APIKeys.tsx
+++ b/apps/studio/components/interfaces/Project/APIKeys.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { JwtSecretUpdateStatus } from '@supabase/shared-types/out/events'
import { useParams } from 'common'
-import { Loader } from 'lucide-react'
+import { LoaderIcon } from 'lucide-react'
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
import { Input } from 'ui-patterns/DataInputs/Input'
@@ -102,7 +102,7 @@ export const APIKeys = () => {
) : showJwtLoading ? (
<CardContent>
<div className="flex items-center justify-center py-4 space-x-2">
- <Loader className="animate-spin" size={16} strokeWidth={1.5} />
+ <LoaderIcon className="animate-spin" size={16} strokeWidth={1.5} />
<p className="text-sm text-foreground-light">JWT secret is being updated</p>
</div>
</CardContent>
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx
index cdb62a17f6f..a15809cddde 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Entities.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Download } from 'lucide-react'
+import { DownloadIcon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import { Button } from 'ui'
@@ -47,7 +47,7 @@ export const Entities = ({ language }: ContentProps) => {
<Button
disabled={isGeneratingTypes}
loading={isGeneratingTypes}
- icon={<Download strokeWidth={1.5} />}
+ icon={<DownloadIcon strokeWidth={1.5} />}
onClick={onClickGenerateTypes}
>
Generate and download types
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx
index cbc5bf4eaa6..69b8f93e1b6 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Copy } from 'lucide-react'
+import { CopyIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { Button, copyToClipboard } from 'ui'
import { Input } from 'ui-patterns/DataInputs/Input'
@@ -61,7 +61,7 @@ export const Introduction = ({ showKeys, language, apikey, endpoint }: ContentPr
actions={[
<Button
key="copy"
- icon={<Copy />}
+ icon={<CopyIcon />}
onClick={() => {
setCopied('anon')
copyToClipboard(anonApiKey ?? 'SUPABASE_CLIENT_ANON_KEY')
@@ -101,7 +101,7 @@ export const Introduction = ({ showKeys, language, apikey, endpoint }: ContentPr
actions={[
<Button
key="copy"
- icon={<Copy />}
+ icon={<CopyIcon />}
onClick={() => {
setCopied('service')
copyToClipboard(serviceApiKey)
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx
index 2a2b7f3fa31..16b7beab97e 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Book, BookOpen } from 'lucide-react'
+import { BookIcon, BookOpenIcon } from 'lucide-react'
import Link from 'next/link'
import { Fragment, type ReactNode } from 'react'
import SVG from 'react-inlinesvg'
@@ -124,7 +124,7 @@ export const FirstLevelNav = (): ReactNode => {
GraphiQL
</Link>
</Button>
- <Button block asChild variant="text" size="small" icon={<BookOpen />}>
+ <Button block asChild variant="text" size="small" icon={<BookOpenIcon />}>
<Link
href={`${DOCS_URL}/guides/graphql`}
target="_blank"
@@ -137,12 +137,12 @@ export const FirstLevelNav = (): ReactNode => {
</div>
<div className="px-2 py-4">
- <Button block asChild variant="text" size="small" icon={<Book />}>
+ <Button block asChild variant="text" size="small" icon={<BookIcon />}>
<Link href={`${DOCS_URL}`} target="_blank" rel="noreferrer" className="justify-start!">
Documentation
</Link>
</Button>
- <Button block asChild variant="text" size="small" icon={<BookOpen />}>
+ <Button block asChild variant="text" size="small" icon={<BookOpenIcon />}>
<Link
href={`${DOCS_URL}/guides/api`}
target="_blank"
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/LanguageSelector.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/LanguageSelector.tsx
index d9952478c54..cba03876898 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/LanguageSelector.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/LanguageSelector.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown, Terminal } from 'lucide-react'
+import { ChevronDownIcon, TerminalIcon } from 'lucide-react'
import { useState } from 'react'
import {
Button,
@@ -45,11 +45,11 @@ const LanguageSelector = ({ simplifiedVersion = false }: LanguageSelectorProps)
width="14"
/>
) : (
- <Terminal size={14} strokeWidth={2.5} />
+ <TerminalIcon size={14} strokeWidth={2.5} />
)
) : undefined
}
- iconRight={!simplifiedVersion && <ChevronDown size={14} strokeWidth={2} />}
+ iconRight={!simplifiedVersion && <ChevronDownIcon size={14} strokeWidth={2} />}
>
{!simplifiedVersion
? `Language: ${snap.docsLanguage === 'js' ? 'Javascript' : 'Bash'}`
diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.Layout.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.Layout.tsx
index 5cb6f023569..ff680dd0c1d 100644
--- a/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.Layout.tsx
+++ b/apps/studio/components/interfaces/ProjectAPIDocs/SecondLevelNav.Layout.tsx
@@ -1,4 +1,4 @@
-import { ChevronLeft, Code } from 'lucide-react'
+import { ChevronLeftIcon, CodeIcon } from 'lucide-react'
import { useMemo, useState, type PropsWithChildren, type ReactNode } from 'react'
import {
Alert,
@@ -96,7 +96,7 @@ const NavTitle = ({ title, category }: NavTitleProps) => {
return (
<div className="flex items-center space-x-2 mb-2">
- <Button variant="text" icon={<ChevronLeft />} className="px-1" onClick={handleBack} />
+ <Button variant="text" icon={<ChevronLeftIcon />} className="px-1" onClick={handleBack} />
<p className="text-sm text-foreground-light capitalize">{title}</p>
</div>
)
@@ -118,7 +118,7 @@ const ResourcePicker = ({ category, resource, renderResourceList }: ResourcePick
<Button
size="small"
className="w-full justify-between gap-2"
- iconRight={<Code className="rotate-90" />}
+ iconRight={<CodeIcon className="rotate-90" />}
>
<span className="truncate">{resource ?? 'Select a resource'}</span>
</Button>
diff --git a/apps/studio/components/interfaces/ProjectCreation/DisabledWarningDueToIncident.tsx b/apps/studio/components/interfaces/ProjectCreation/DisabledWarningDueToIncident.tsx
index 75d021084f0..a3d644182ca 100644
--- a/apps/studio/components/interfaces/ProjectCreation/DisabledWarningDueToIncident.tsx
+++ b/apps/studio/components/interfaces/ProjectCreation/DisabledWarningDueToIncident.tsx
@@ -1,4 +1,4 @@
-import { AlertCircle } from 'lucide-react'
+import { AlertCircleIcon } from 'lucide-react'
import InformationBox from '@/components/ui/InformationBox'
import Panel from '@/components/ui/Panel'
@@ -11,7 +11,7 @@ export const DisabledWarningDueToIncident = ({ title }: DisabledWarningDueToInci
return (
<Panel.Content className="pb-8">
<InformationBox
- icon={<AlertCircle size={20} strokeWidth={1.5} />}
+ icon={<AlertCircleIcon size={20} strokeWidth={1.5} />}
defaultVisibility={true}
hideCollapse
title={title}
diff --git a/apps/studio/components/interfaces/ProjectCreation/RegionSelector.tsx b/apps/studio/components/interfaces/ProjectCreation/RegionSelector.tsx
index 82b414a2eea..1cd19240ebf 100644
--- a/apps/studio/components/interfaces/ProjectCreation/RegionSelector.tsx
+++ b/apps/studio/components/interfaces/ProjectCreation/RegionSelector.tsx
@@ -1,5 +1,5 @@
import { useFeatureFlags, useFlag, useParams } from 'common'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useEffect, useRef, useState } from 'react'
import { UseFormReturn } from 'react-hook-form'
import type { CloudProvider } from 'shared-data'
@@ -296,7 +296,7 @@ export const RegionSelector = ({
>
{!!dbRegion && (
<div className="flex items-center gap-x-3">
- {isLoading && <Loader2 size={14} className="animate-spin" />}
+ {isLoading && <Loader2Icon size={14} className="animate-spin" />}
{selectedRegion?.code && (
<RegionFlag className="w-5" region={selectedRegion.code} />
)}
diff --git a/apps/studio/components/interfaces/ProjectHome/ActivityStats.tsx b/apps/studio/components/interfaces/ProjectHome/ActivityStats.tsx
index 54ffa80873e..6b53117a4df 100644
--- a/apps/studio/components/interfaces/ProjectHome/ActivityStats.tsx
+++ b/apps/studio/components/interfaces/ProjectHome/ActivityStats.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { Archive, Cpu, Database, GitBranch, Github } from 'lucide-react'
+import { ArchiveIcon, CpuIcon, DatabaseIcon, GitBranchIcon, GithubIcon } from 'lucide-react'
import { useMemo } from 'react'
import { cn, Skeleton } from 'ui'
import { TimestampInfo } from 'ui-patterns/TimestampInfo'
@@ -159,7 +159,7 @@ export const ActivityStats = () => {
<SingleStat
href={getInfrastructurePath(ref)}
- icon={<Cpu size={18} strokeWidth={1.5} className="text-foreground" />}
+ icon={<CpuIcon size={18} strokeWidth={1.5} className="text-foreground" />}
label={<span>Compute size</span>}
value={
<div className="flex items-center gap-x-2 gap-y-1 flex-wrap">
@@ -181,7 +181,7 @@ export const ActivityStats = () => {
<SingleStat
href={integrationsPath}
- icon={<Github size={18} strokeWidth={1.5} className="text-foreground" />}
+ icon={<GithubIcon size={18} strokeWidth={1.5} className="text-foreground" />}
label={<span>GitHub</span>}
value={
isLoadingGithubConnections ? (
@@ -200,7 +200,7 @@ export const ActivityStats = () => {
<DisableInteraction disabled={isHighAvailability} aria-disabled={isHighAvailability}>
<SingleStat
href={isHighAvailability ? undefined : `/project/${ref}/branches`}
- icon={<GitBranch size={18} strokeWidth={1.5} className="text-foreground" />}
+ icon={<GitBranchIcon size={18} strokeWidth={1.5} className="text-foreground" />}
label={<span>{isDefaultProject ? 'Recent branch' : 'Branch Created'}</span>}
trackingProperties={{
stat_type: 'branches',
@@ -221,7 +221,7 @@ export const ActivityStats = () => {
<SingleStat
href={`/project/${ref}/database/migrations`}
- icon={<Database size={18} strokeWidth={1.5} className="text-foreground" />}
+ icon={<DatabaseIcon size={18} strokeWidth={1.5} className="text-foreground" />}
label={<span>Last migration</span>}
trackingProperties={{
stat_type: 'migrations',
@@ -246,7 +246,7 @@ export const ActivityStats = () => {
<SingleStat
href={`/project/${ref}/database/backups/scheduled`}
- icon={<Archive size={18} strokeWidth={1.5} className="text-foreground" />}
+ icon={<ArchiveIcon size={18} strokeWidth={1.5} className="text-foreground" />}
label={<span>Last backup</span>}
trackingProperties={{
stat_type: 'backups',
diff --git a/apps/studio/components/interfaces/ProjectHome/AdvisorSection.tsx b/apps/studio/components/interfaces/ProjectHome/AdvisorSection.tsx
index ab0cc097140..82bbd7c8b65 100644
--- a/apps/studio/components/interfaces/ProjectHome/AdvisorSection.tsx
+++ b/apps/studio/components/interfaces/ProjectHome/AdvisorSection.tsx
@@ -1,5 +1,5 @@
import { useFlag, useParams } from 'common'
-import { Shield } from 'lucide-react'
+import { ShieldIcon } from 'lucide-react'
import { useCallback, useMemo } from 'react'
import {
AiIconAnimation,
@@ -253,7 +253,7 @@ function EmptyState({ canShowHealthAdvisor }: { canShowHealthAdvisor: boolean })
return (
<Card className="bg-transparent h-64">
<CardContent className="flex flex-col items-center justify-center gap-2 p-16 h-full">
- <Shield size={20} strokeWidth={1.5} className="text-foreground-muted" />
+ <ShieldIcon size={20} strokeWidth={1.5} className="text-foreground-muted" />
<p className="text-sm text-foreground-light text-center">
{canShowHealthAdvisor
? 'No security, performance or health issues found'
diff --git a/apps/studio/components/interfaces/ProjectHome/ConnectSection.config.tsx b/apps/studio/components/interfaces/ProjectHome/ConnectSection.config.tsx
index b3d6e7ddfff..a362cd17043 100644
--- a/apps/studio/components/interfaces/ProjectHome/ConnectSection.config.tsx
+++ b/apps/studio/components/interfaces/ProjectHome/ConnectSection.config.tsx
@@ -1,4 +1,11 @@
-import { Box, Cable, Database, KeyRound, Server, Sparkles } from 'lucide-react'
+import {
+ BoxIcon,
+ CableIcon,
+ DatabaseIcon,
+ KeyRoundIcon,
+ ServerIcon,
+ SparklesIcon,
+} from 'lucide-react'
import type { ReactNode } from 'react'
import type { ConnectMode } from '../ConnectSheet/Connect.types'
@@ -19,41 +26,41 @@ export const CONNECT_ACTIONS: ConnectAction[] = [
mode: 'framework',
heading: 'Framework',
subheading: 'Use a client library',
- icon: <Box size={16} strokeWidth={1.5} />,
+ icon: <BoxIcon size={16} strokeWidth={1.5} />,
},
{
id: 'server',
mode: 'server',
heading: 'Server',
subheading: 'Build APIs',
- icon: <Server size={16} strokeWidth={1.5} />,
+ icon: <ServerIcon size={16} strokeWidth={1.5} />,
},
{
id: 'direct',
mode: 'direct',
heading: 'Direct',
subheading: 'Connection string',
- icon: <Database size={16} strokeWidth={1.5} />,
+ icon: <DatabaseIcon size={16} strokeWidth={1.5} />,
},
{
id: 'orm',
mode: 'orm',
heading: 'ORM',
subheading: 'Third-party library',
- icon: <Cable size={16} strokeWidth={1.5} />,
+ icon: <CableIcon size={16} strokeWidth={1.5} />,
},
{
id: 'mcp',
mode: 'mcp',
heading: 'MCP',
subheading: 'Connect your agent',
- icon: <Sparkles size={16} strokeWidth={1.5} />,
+ icon: <SparklesIcon size={16} strokeWidth={1.5} />,
},
{
id: 'api_keys',
heading: 'API Keys',
subheading: 'Manage project keys',
- icon: <KeyRound size={16} strokeWidth={1.5} />,
+ icon: <KeyRoundIcon size={16} strokeWidth={1.5} />,
href: '/project/[ref]/settings/api-keys',
requiresActiveProject: false,
},
diff --git a/apps/studio/components/interfaces/ProjectHome/ConnectSection.tsx b/apps/studio/components/interfaces/ProjectHome/ConnectSection.tsx
index 1bf15867cc5..17e3d0a6b92 100644
--- a/apps/studio/components/interfaces/ProjectHome/ConnectSection.tsx
+++ b/apps/studio/components/interfaces/ProjectHome/ConnectSection.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { parseAsBoolean, parseAsString, useQueryState } from 'nuqs'
import { useEffect, useRef } from 'react'
@@ -106,7 +106,7 @@ export const ConnectSection = () => {
<p className="text-sm">{action.heading}</p>
<p className="text-sm text-foreground-lighter">{action.subheading}</p>
</div>
- <ChevronRight
+ <ChevronRightIcon
size={16}
className="shrink-0 text-foreground-lighter group-hover:text-foreground xl:hidden"
/>
diff --git a/apps/studio/components/interfaces/ProjectHome/CustomReportSection.tsx b/apps/studio/components/interfaces/ProjectHome/CustomReportSection.tsx
index af6bfd14ea3..427ab7144e3 100644
--- a/apps/studio/components/interfaces/ProjectHome/CustomReportSection.tsx
+++ b/apps/studio/components/interfaces/ProjectHome/CustomReportSection.tsx
@@ -11,7 +11,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
import { keepPreviousData } from '@tanstack/react-query'
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { Plus, RefreshCw } from 'lucide-react'
+import { PlusIcon, RefreshCwIcon } from 'lucide-react'
import type { CSSProperties, DragEvent, ReactNode } from 'react'
import { useCallback, useEffect, useMemo, useState } from 'react'
import { toast } from 'sonner'
@@ -375,7 +375,7 @@ export function CustomReportSection() {
<div className="flex items-center gap-x-2">
{layout.length > 0 && (
<ButtonTooltip
- icon={<RefreshCw className={isRefreshing ? 'animate-spin' : ''} />}
+ icon={<RefreshCwIcon className={isRefreshing ? 'animate-spin' : ''} />}
className="w-7"
disabled={isRefreshing}
tooltip={{ content: { side: 'bottom', text: 'Refresh report' } }}
@@ -386,7 +386,7 @@ export function CustomReportSection() {
<SnippetDropdown
projectRef={ref}
onSelect={handleSelectSnippet}
- trigger={<Button icon={<Plus />}>Add block</Button>}
+ trigger={<Button icon={<PlusIcon />}>Add block</Button>}
side="bottom"
align="end"
autoFocus
@@ -413,7 +413,7 @@ export function CustomReportSection() {
<SnippetDropdown
projectRef={ref}
onSelect={handleSelectSnippet}
- trigger={<Button iconRight={<Plus size={14} />}>Add your first block</Button>}
+ trigger={<Button iconRight={<PlusIcon size={14} />}>Add your first block</Button>}
side="bottom"
align="center"
autoFocus
diff --git a/apps/studio/components/interfaces/ProjectHome/HighAvailabilityBadge.tsx b/apps/studio/components/interfaces/ProjectHome/HighAvailabilityBadge.tsx
index 23b98a466bc..e3c2739ab3e 100644
--- a/apps/studio/components/interfaces/ProjectHome/HighAvailabilityBadge.tsx
+++ b/apps/studio/components/interfaces/ProjectHome/HighAvailabilityBadge.tsx
@@ -1,4 +1,4 @@
-import { ArrowRight } from 'lucide-react'
+import { ArrowRightIcon } from 'lucide-react'
import Link from 'next/link'
import { cn, HoverCard, HoverCardContent, HoverCardTrigger, Separator } from 'ui'
@@ -48,7 +48,7 @@ export function HighAvailabilityBadge({ size = 'default' }: HighAvailabilityBadg
className="mt-1 inline-flex items-center gap-1 text-xs text-foreground-lighter transition-colors hover:text-foreground"
>
Read more
- <ArrowRight size={12} strokeWidth={1.5} />
+ <ArrowRightIcon size={12} strokeWidth={1.5} />
</Link>
</div>
</HoverCardContent>
diff --git a/apps/studio/components/interfaces/ProjectHome/MakeReportSnippetPublicModal.tsx b/apps/studio/components/interfaces/ProjectHome/MakeReportSnippetPublicModal.tsx
index 5940bcee2c6..fb3648b0ef5 100644
--- a/apps/studio/components/interfaces/ProjectHome/MakeReportSnippetPublicModal.tsx
+++ b/apps/studio/components/interfaces/ProjectHome/MakeReportSnippetPublicModal.tsx
@@ -1,4 +1,4 @@
-import { Eye, Unlock } from 'lucide-react'
+import { EyeIcon, UnlockIcon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
@@ -77,11 +77,11 @@ export const MakeReportSnippetPublicModal = ({
>
<ul className="text-sm text-foreground-light space-y-5">
<li className="flex gap-3 items-center">
- <Eye size={16} />
+ <EyeIcon size={16} />
<span>Project members will have read-only access to this snippet.</span>
</li>
<li className="flex gap-3 items-center">
- <Unlock size={16} />
+ <UnlockIcon size={16} />
<span>Project members can duplicate it to their personal snippets.</span>
</li>
</ul>
diff --git a/apps/studio/components/interfaces/ProjectHome/NotebooksSection.tsx b/apps/studio/components/interfaces/ProjectHome/NotebooksSection.tsx
index e176f993a9e..c5c671f6a13 100644
--- a/apps/studio/components/interfaces/ProjectHome/NotebooksSection.tsx
+++ b/apps/studio/components/interfaces/ProjectHome/NotebooksSection.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { NotebookText, Plus } from 'lucide-react'
+import { NotebookTextIcon, PlusIcon } from 'lucide-react'
import { AiIconAnimation, Badge, Button } from 'ui'
import { Row } from 'ui-patterns/Row'
import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
@@ -44,7 +44,7 @@ export const NotebooksSection = () => {
{!isPending && (
<div className="flex justify-between items-center mb-6">
<h2>Notebooks</h2>
- <Button icon={<Plus />} onClick={() => createNotebook()}>
+ <Button icon={<PlusIcon />} onClick={() => createNotebook()}>
New notebook
</Button>
</div>
@@ -94,7 +94,7 @@ function NotebookCard({
return (
<HomeCard
href={`/project/${projectRef}/explorer/notebook/${notebook.id}`}
- icon={<NotebookText size={16} strokeWidth={1.5} className="text-foreground-light" />}
+ icon={<NotebookTextIcon size={16} strokeWidth={1.5} className="text-foreground-light" />}
label="NOTEBOOK"
title={notebook.name}
description={notebook.description?.trim()}
@@ -132,7 +132,7 @@ function EmptyState({ onCreateNotebook }: { onCreateNotebook: () => void }) {
<p className="text-sm text-foreground-light mb-4">
Save queries and notes together to revisit and share
</p>
- <Button iconRight={<Plus size={14} />} onClick={onCreateNotebook}>
+ <Button iconRight={<PlusIcon size={14} />} onClick={onCreateNotebook}>
Create your first notebook
</Button>
</div>
diff --git a/apps/studio/components/interfaces/ProjectHome/PlanUsageCard.tsx b/apps/studio/components/interfaces/ProjectHome/PlanUsageCard.tsx
index c3d3635c668..f2db0ae7e60 100644
--- a/apps/studio/components/interfaces/ProjectHome/PlanUsageCard.tsx
+++ b/apps/studio/components/interfaces/ProjectHome/PlanUsageCard.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import Link from 'next/link'
import { cn } from 'ui'
@@ -149,7 +149,7 @@ const CompactMetricRow = ({
<span className="text-muted"> / </span>
<span className="text-foreground-lighter">{formatted.limit}</span>
</span>
- <ChevronRight
+ <ChevronRightIcon
size={12}
strokeWidth={1.5}
className="text-foreground w-0 ml-0 opacity-0 overflow-hidden group-hover/row:w-3 group-hover/row:ml-1 group-hover/row:opacity-100 transition-all"
diff --git a/apps/studio/components/interfaces/ProjectHome/ProjectConnectionPopover.tsx b/apps/studio/components/interfaces/ProjectHome/ProjectConnectionPopover.tsx
index 854383c090b..d851c917707 100644
--- a/apps/studio/components/interfaces/ProjectHome/ProjectConnectionPopover.tsx
+++ b/apps/studio/components/interfaces/ProjectHome/ProjectConnectionPopover.tsx
@@ -1,5 +1,13 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Check, ChevronDown, Copy, Database, KeyRound, Link2, Terminal } from 'lucide-react'
+import {
+ CheckIcon,
+ ChevronDownIcon,
+ CopyIcon,
+ DatabaseIcon,
+ KeyRoundIcon,
+ Link2Icon,
+ TerminalIcon,
+} from 'lucide-react'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useEffect, useMemo, useState } from 'react'
import {
@@ -103,7 +111,7 @@ export const ProjectConnectionPopover = ({ projectRef }: ProjectConnectionPopove
? 'Loading project URL...'
: (projectUrl ?? 'Project URL unavailable'),
disabled: isLoadingApiUrl || !projectUrl,
- icon: Link2,
+ icon: Link2Icon,
},
...(showPublishableKey
? [
@@ -121,7 +129,7 @@ export const ProjectConnectionPopover = ({ projectRef }: ProjectConnectionPopove
isLoadingKeys ||
!canReadAPIKeys ||
!publishableKey?.api_key,
- icon: KeyRound,
+ icon: KeyRoundIcon,
},
]
: []),
@@ -134,14 +142,14 @@ export const ProjectConnectionPopover = ({ projectRef }: ProjectConnectionPopove
? 'Loading connection string...'
: directConnectionString || 'Connection string unavailable',
disabled: isLoadingDatabases || !directConnectionString,
- icon: Database,
+ icon: DatabaseIcon,
},
{
label: 'CLI setup commands',
value: cliCommands,
displayValue: cliCommands.replace(/\n/g, ' - '),
disabled: !projectRef,
- icon: Terminal,
+ icon: TerminalIcon,
},
]
: []),
@@ -183,7 +191,7 @@ export const ProjectConnectionPopover = ({ projectRef }: ProjectConnectionPopove
<Button
size="tiny"
iconRight={
- <ChevronDown
+ <ChevronDownIcon
size={14}
className={cn('transition-transform', open && 'rotate-180')}
/>
@@ -228,7 +236,7 @@ export const ProjectConnectionPopover = ({ projectRef }: ProjectConnectionPopove
copiedItem === item.label && 'opacity-100 text-primary'
)}
>
- {copiedItem === item.label ? <Check size={14} /> : <Copy size={14} />}
+ {copiedItem === item.label ? <CheckIcon size={14} /> : <CopyIcon size={14} />}
</div>
</DropdownMenuItem>
)
diff --git a/apps/studio/components/interfaces/ProjectHome/ServiceStatus.tsx b/apps/studio/components/interfaces/ProjectHome/ServiceStatus.tsx
index 7bf36414ed6..253d1093fcc 100644
--- a/apps/studio/components/interfaces/ProjectHome/ServiceStatus.tsx
+++ b/apps/studio/components/interfaces/ProjectHome/ServiceStatus.tsx
@@ -1,6 +1,12 @@
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { AlertTriangle, CheckCircle2, ChevronRight, Loader2, MinusCircle } from 'lucide-react'
+import {
+ AlertTriangleIcon,
+ CheckCircle2Icon,
+ ChevronRightIcon,
+ Loader2Icon,
+ MinusCircleIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { cn, HoverCard, HoverCardContent, HoverCardTrigger, InfoIcon } from 'ui'
@@ -28,10 +34,10 @@ const iconProps = {
size: 18,
strokeWidth: 1.5,
}
-const LoaderIcon = () => <Loader2 {...iconProps} className="animate-spin" />
-const AlertIcon = () => <AlertTriangle {...iconProps} />
-const CheckIcon = () => <CheckCircle2 {...iconProps} className="text-primary" />
-const DisabledIcon = () => <MinusCircle {...iconProps} className="text-foreground-lighter" />
+const LoaderIcon = () => <Loader2Icon {...iconProps} className="animate-spin" />
+const AlertIcon = () => <AlertTriangleIcon {...iconProps} />
+const CheckIcon = () => <CheckCircle2Icon {...iconProps} className="text-primary" />
+const DisabledIcon = () => <MinusCircleIcon {...iconProps} className="text-foreground-lighter" />
export const StatusIcon = ({
isLoading,
@@ -319,7 +325,7 @@ export const ServiceStatus = () => {
icon={
// Spinner only while the overall project is in COMING_UP; otherwise show 6-dot grid
isProjectComingUp ? (
- <Loader2 className="animate-spin" size={18} />
+ <Loader2Icon className="animate-spin" size={18} />
) : (
<div className="grid grid-cols-3 gap-1">
{services.map((service, index) => (
@@ -388,7 +394,7 @@ export const ServiceStatus = () => {
{serviceInfo}
<div className="flex items-center gap-x-1 transition opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100">
<span className="text-xs text-foreground">View logs</span>
- <ChevronRight size={14} className="text-foreground" />
+ <ChevronRightIcon size={14} className="text-foreground" />
</div>
</Link>
)
diff --git a/apps/studio/components/interfaces/ProjectHome/SnippetDropdown.tsx b/apps/studio/components/interfaces/ProjectHome/SnippetDropdown.tsx
index b528055631e..c0903830540 100644
--- a/apps/studio/components/interfaces/ProjectHome/SnippetDropdown.tsx
+++ b/apps/studio/components/interfaces/ProjectHome/SnippetDropdown.tsx
@@ -1,6 +1,6 @@
import { keepPreviousData } from '@tanstack/react-query'
import { useDebounce, useIntersectionObserver } from '@uidotdev/usehooks'
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import { ReactNode, useEffect, useMemo, useRef, useState } from 'react'
import {
Command,
@@ -149,7 +149,7 @@ export const SnippetDropdown = ({
}}
>
<div className="w-full flex items-center gap-2">
- <Plus size={14} strokeWidth={1.5} />
+ <PlusIcon size={14} strokeWidth={1.5} />
<p>Create snippet</p>
</div>
</CommandItem>
diff --git a/apps/studio/components/interfaces/QueryInsights/QueryInsightsChart/QueryInsightsChart.tsx b/apps/studio/components/interfaces/QueryInsights/QueryInsightsChart/QueryInsightsChart.tsx
index b2e4d3e18f7..ec9b7c8dff6 100644
--- a/apps/studio/components/interfaces/QueryInsights/QueryInsightsChart/QueryInsightsChart.tsx
+++ b/apps/studio/components/interfaces/QueryInsights/QueryInsightsChart/QueryInsightsChart.tsx
@@ -1,4 +1,4 @@
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useTheme } from 'next-themes'
import { useMemo, useState } from 'react'
import {
@@ -149,7 +149,7 @@ export const QueryInsightsChart = ({
<div className="w-full h-[180px] px-0">
{isLoading ? (
<div className="flex items-center justify-center h-full">
- <Loader2 size={20} className="animate-spin text-foreground-lighter" />
+ <Loader2Icon size={20} className="animate-spin text-foreground-lighter" />
</div>
) : data.length === 0 ? (
<div className="flex items-center justify-center h-full">
diff --git a/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsDetailSheet.tsx b/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsDetailSheet.tsx
index 3701ec8f254..cbb98c749a0 100644
--- a/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsDetailSheet.tsx
+++ b/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsDetailSheet.tsx
@@ -1,4 +1,4 @@
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import {
AiIconAnimation,
Button,
@@ -111,7 +111,7 @@ export const QueryInsightsDetailSheet = ({
<TabsContent value="explain" className="mt-0 grow min-h-0 flex flex-col overflow-hidden">
{explainLoadingQuery ? (
<div className="px-6 py-4 flex items-center gap-2 text-sm text-foreground-light">
- <Loader2 size={14} className="animate-spin" /> Running EXPLAIN ANALYZE...
+ <Loader2Icon size={14} className="animate-spin" /> Running EXPLAIN ANALYZE...
</div>
) : activeSheetRow && explainResults[activeSheetRow.query]?.length > 0 ? (
<>
diff --git a/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.constants.ts b/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.constants.ts
index 56d0fc34441..97becd52f15 100644
--- a/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.constants.ts
+++ b/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.constants.ts
@@ -1,4 +1,4 @@
-import { CircleAlert, Lightbulb } from 'lucide-react'
+import { CircleAlertIcon, LightbulbIcon } from 'lucide-react'
import type { LucideIcon } from 'lucide-react'
export const ISSUE_DOT_COLORS: Record<
@@ -23,9 +23,9 @@ export const ISSUE_DOT_COLORS: Record<
}
export const ISSUE_ICONS: Record<string, LucideIcon> = {
- error: CircleAlert,
- index: Lightbulb,
- slow: CircleAlert,
+ error: CircleAlertIcon,
+ index: LightbulbIcon,
+ slow: CircleAlertIcon,
}
export const QUERY_INSIGHTS_EXPLORER_COLUMNS = [
diff --git a/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.tsx b/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.tsx
index 0e9025e3fbe..3dfdcf81d26 100644
--- a/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.tsx
+++ b/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsTable.tsx
@@ -1,7 +1,7 @@
import { safeSql, type SafeSqlFragment } from '@supabase/pg-meta'
import { wrapWithRollback } from '@supabase/pg-meta/src/query'
import { useParams } from 'common'
-import { Search, TextSearch, X } from 'lucide-react'
+import { SearchIcon, TextSearchIcon, XIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { parseAsArrayOf, parseAsString, useQueryStates } from 'nuqs'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
@@ -384,7 +384,7 @@ export const QueryInsightsTable = ({
<Input
size="tiny"
autoComplete="off"
- icon={<Search className="h-4 w-4" />}
+ icon={<SearchIcon className="h-4 w-4" />}
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
name="search"
@@ -397,7 +397,7 @@ export const QueryInsightsTable = ({
key="clear"
size="tiny"
variant="text"
- icon={<X className="h-4 w-4" />}
+ icon={<XIcon className="h-4 w-4" />}
onClick={() => setSearchQuery('')}
className="p-0 h-5 w-5"
/>
@@ -478,7 +478,7 @@ export const QueryInsightsTable = ({
},
noRowsFallback: (
<div className="absolute top-20 px-6 flex flex-col items-center justify-center w-full gap-y-2">
- <TextSearch className="text-foreground-muted" strokeWidth={1} />
+ <TextSearchIcon className="text-foreground-muted" strokeWidth={1} />
<div className="text-center">
<p className="text-foreground">No issues found</p>
<p className="text-foreground-light">
@@ -534,7 +534,7 @@ export const QueryInsightsTable = ({
},
noRowsFallback: (
<div className="absolute top-20 px-6 flex flex-col items-center justify-center w-full gap-y-2">
- <TextSearch className="text-foreground-muted" strokeWidth={1} />
+ <TextSearchIcon className="text-foreground-muted" strokeWidth={1} />
<div className="text-center">
<p className="text-foreground">No queries found</p>
<p className="text-foreground-light">
diff --git a/apps/studio/components/interfaces/QueryInsights/hooks/useQueryInsightsTableColumns.tsx b/apps/studio/components/interfaces/QueryInsights/hooks/useQueryInsightsTableColumns.tsx
index d7e0b451d94..cbe33731664 100644
--- a/apps/studio/components/interfaces/QueryInsights/hooks/useQueryInsightsTableColumns.tsx
+++ b/apps/studio/components/interfaces/QueryInsights/hooks/useQueryInsightsTableColumns.tsx
@@ -1,4 +1,11 @@
-import { ArrowDown, ArrowRight, ArrowUp, ChevronDown, ExternalLink, ScanSearch } from 'lucide-react'
+import {
+ ArrowDownIcon,
+ ArrowRightIcon,
+ ArrowUpIcon,
+ ChevronDownIcon,
+ ExternalLinkIcon,
+ ScanSearchIcon,
+} from 'lucide-react'
import { useMemo, type RefObject } from 'react'
import { type Column, type DataGridHandle } from 'react-data-grid'
import {
@@ -89,7 +96,7 @@ export function useQueryInsightsTableColumns({
variant="text"
size="tiny"
className="p-1 h-5 w-5 shrink-0"
- icon={<ChevronDown size={14} className="text-foreground-muted" />}
+ icon={<ChevronDownIcon size={14} className="text-foreground-muted" />}
onClick={(e) => e.stopPropagation()}
/>
</DropdownMenuTrigger>
@@ -101,7 +108,7 @@ export function useQueryInsightsTableColumns({
sort?.column === col.id && sort?.order === 'asc' && 'text-foreground'
)}
>
- <ArrowUp size={14} />
+ <ArrowUpIcon size={14} />
Sort Ascending
</DropdownMenuItem>
<DropdownMenuItem
@@ -111,7 +118,7 @@ export function useQueryInsightsTableColumns({
sort?.column === col.id && sort?.order === 'desc' && 'text-foreground'
)}
>
- <ArrowDown size={14} />
+ <ArrowDownIcon size={14} />
Sort Descending
</DropdownMenuItem>
</DropdownMenuContent>
@@ -161,7 +168,7 @@ export function useQueryInsightsTableColumns({
/>
<ButtonTooltip
tooltip={{ content: { text: 'Query details' } }}
- icon={<ArrowRight size={14} />}
+ icon={<ArrowRightIcon size={14} />}
size="tiny"
onClick={(e: React.MouseEvent) => {
e.stopPropagation()
@@ -368,7 +375,7 @@ export function useQueryInsightsTableColumns({
</div>
<ButtonTooltip
tooltip={{ content: { text: 'Query details' } }}
- icon={<ArrowRight size={14} />}
+ icon={<ArrowRightIcon size={14} />}
size="tiny"
onClick={(e: React.MouseEvent) => {
e.stopPropagation()
@@ -523,12 +530,12 @@ export function useQueryInsightsTableColumns({
size="tiny"
aria-label="More index actions"
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
- icon={<ChevronDown size={12} />}
+ icon={<ChevronDownIcon size={12} />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-40">
<DropdownMenuItem onClick={() => handleGoToLogs()} className="gap-2">
- <ExternalLink size={14} />
+ <ExternalLinkIcon size={14} />
Go to Logs
</DropdownMenuItem>
<DropdownMenuItem
@@ -538,7 +545,7 @@ export function useQueryInsightsTableColumns({
}}
className="gap-2"
>
- <ScanSearch size={14} />
+ <ScanSearchIcon size={14} />
Explain
</DropdownMenuItem>
</DropdownMenuContent>
@@ -555,14 +562,14 @@ export function useQueryInsightsTableColumns({
additionalDropdownItems={[
{
label: 'Go to Logs',
- icon: <ExternalLink size={14} />,
+ icon: <ExternalLinkIcon size={14} />,
onClick: () => handleGoToLogs(),
},
...(row.issueType === 'slow'
? [
{
label: 'Explain',
- icon: <ScanSearch size={14} />,
+ icon: <ScanSearchIcon size={14} />,
onClick: () => {
setSelectedTriageRow(props.rowIdx)
setSheetView('explain')
diff --git a/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/IndexSuggestionIcon.tsx b/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/IndexSuggestionIcon.tsx
index 4766e8a5ae7..97e76389b44 100644
--- a/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/IndexSuggestionIcon.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/IndexSuggestionIcon.tsx
@@ -1,4 +1,4 @@
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { MouseEvent, useState } from 'react'
import {
Button,
@@ -80,7 +80,7 @@ export const IndexSuggestionIcon = ({
className="cursor-pointer"
>
{isCreatingIndex ? (
- <Loader2 size={16} className="animate-spin text-foreground-light" />
+ <Loader2Icon size={16} className="animate-spin text-foreground-light" />
) : (
<WarningIcon />
)}
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryDetail.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryDetail.tsx
index 664d5bb0612..3b2c9f8a86c 100644
--- a/apps/studio/components/interfaces/QueryPerformance/QueryDetail.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/QueryDetail.tsx
@@ -1,4 +1,4 @@
-import { ChevronsUpDown, Lightbulb } from 'lucide-react'
+import { ChevronsUpDownIcon, LightbulbIcon } from 'lucide-react'
import dynamic from 'next/dynamic'
import { useEffect, useState } from 'react'
import { Alert, AlertDescription, AlertTitle, Button, cn, FloatingPlate } from 'ui'
@@ -107,7 +107,7 @@ export const QueryDetail = ({ selectedRow, onClickViewSuggestion, onClose }: Que
variant="default"
className="mt-2 border-brand-400 bg-alternative [&>svg]:p-0.5 [&>svg]:bg-transparent [&>svg]:text-primary"
>
- <Lightbulb />
+ <LightbulbIcon />
<AlertTitle>Suggested optimization: Add an index</AlertTitle>
<AlertDescription>
Adding an index will help this query execute faster
@@ -131,7 +131,7 @@ export const QueryDetail = ({ selectedRow, onClickViewSuggestion, onClose }: Que
<Button
type="button"
className="rounded-full"
- icon={<ChevronsUpDown />}
+ icon={<ChevronsUpDownIcon />}
aria-expanded={isExpanded}
aria-controls="query-detail-sql-panel"
onClick={() => setIsExpanded(!isExpanded)}
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx
index 5f64a08d9f6..ca04dd0c731 100644
--- a/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx
@@ -1,4 +1,4 @@
-import { Check, Lightbulb, Table2 } from 'lucide-react'
+import { CheckIcon, LightbulbIcon, Table2Icon } from 'lucide-react'
import { useEffect, useState } from 'react'
import {
Accordion,
@@ -258,7 +258,7 @@ export const QueryIndexes = ({
className="flex items-center gap-x-4 bg-surface-100 border first:rounded-tl first:rounded-tr border-b-0 last:border-b last:rounded-b px-2 py-2"
>
<div className="flex items-center gap-x-2">
- <Table2 size={14} className="text-foreground-light" />
+ <Table2Icon size={14} className="text-foreground-light" />
<span className="text-xs font-mono text-foreground-light">
{index.schema}.{index.table}
</span>
@@ -300,7 +300,7 @@ export const QueryIndexes = ({
/>
) : (index_statements ?? []).length === 0 ? (
<Alert className="[&>svg]:rounded-full">
- <Check />
+ <CheckIcon />
<AlertTitle>This query is optimized</AlertTitle>
<AlertDescription>
Recommendations for indexes will show here
@@ -313,7 +313,7 @@ export const QueryIndexes = ({
variant="default"
className="border-brand-400 bg-alternative [&>svg]:p-0.5 [&>svg]:bg-transparent [&>svg]:text-primary my-3"
>
- <Lightbulb />
+ <LightbulbIcon />
<AlertTitle>
We have {index_statements.length} index recommendation
{index_statements.length > 1 ? 's' : ''}
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPanel.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPanel.tsx
index 66dc6290e9f..8fe9f990673 100644
--- a/apps/studio/components/interfaces/QueryPerformance/QueryPanel.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/QueryPanel.tsx
@@ -1,5 +1,5 @@
import { InformationCircleIcon } from '@heroicons/react/16/solid'
-import { ArrowDown, ArrowUp } from 'lucide-react'
+import { ArrowDownIcon, ArrowUpIcon } from 'lucide-react'
import { PropsWithChildren } from 'react'
import { cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -69,9 +69,9 @@ export const QueryPanelScoreSection = ({
{before !== undefined && !hideArrowMarkers && (
<div className="flex items-center gap-x-1">
{after > before ? (
- <ArrowUp size={14} className="text-warning" />
+ <ArrowUpIcon size={14} className="text-warning" />
) : (
- <ArrowDown size={14} className="text-primary" />
+ <ArrowDownIcon size={14} className="text-primary" />
)}
{before !== 0 && !isNaN(before) && isFinite(before) && (
<span
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
index 88e3c31a83b..a5ff0ead649 100644
--- a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
@@ -1,5 +1,11 @@
import { useParams } from 'common'
-import { ArrowDown, ArrowRight, ArrowUp, ChevronDown, TextSearch } from 'lucide-react'
+import {
+ ArrowDownIcon,
+ ArrowRightIcon,
+ ArrowUpIcon,
+ ChevronDownIcon,
+ TextSearchIcon,
+} from 'lucide-react'
import { parseAsArrayOf, parseAsJson, parseAsString, useQueryStates } from 'nuqs'
import { UIEvent, useCallback, useEffect, useMemo, useRef, useState } from 'react'
import DataGrid, { Column, DataGridHandle, Row } from 'react-data-grid'
@@ -133,7 +139,7 @@ export const QueryPerformanceGrid = ({
variant="text"
size="tiny"
className="p-1 h-5 w-5 shrink-0"
- icon={<ChevronDown size={14} className="text-foreground-muted" />}
+ icon={<ChevronDownIcon size={14} className="text-foreground-muted" />}
onClick={(e) => e.stopPropagation()}
/>
</DropdownMenuTrigger>
@@ -147,7 +153,7 @@ export const QueryPerformanceGrid = ({
sort?.column === col.id && sort?.order === 'asc' && 'text-foreground'
)}
>
- <ArrowUp size={14} />
+ <ArrowUpIcon size={14} />
Sort Ascending
</DropdownMenuItem>
<DropdownMenuItem
@@ -159,7 +165,7 @@ export const QueryPerformanceGrid = ({
sort?.column === col.id && sort?.order === 'desc' && 'text-foreground'
)}
>
- <ArrowDown size={14} />
+ <ArrowDownIcon size={14} />
Sort Descending
</DropdownMenuItem>
</DropdownMenuContent>
@@ -197,7 +203,7 @@ export const QueryPerformanceGrid = ({
{onCurrentSelectQuery && (
<ButtonTooltip
tooltip={{ content: { text: 'Query details' } }}
- icon={<ArrowRight size={14} />}
+ icon={<ArrowRightIcon size={14} />}
size="tiny"
onClick={(e) => {
e.stopPropagation()
@@ -565,7 +571,7 @@ export const QueryPerformanceGrid = ({
</div>
) : (
<div className="absolute top-20 px-6 flex flex-col items-center justify-center w-full gap-y-2">
- <TextSearch className="text-foreground-muted" strokeWidth={1} />
+ <TextSearchIcon className="text-foreground-muted" strokeWidth={1} />
<div className="text-center">
<p className="text-foreground">No queries detected</p>
<p className="text-foreground-light">
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceMetrics.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceMetrics.tsx
index cf6966ee7c2..e1e8dcd9d48 100644
--- a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceMetrics.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceMetrics.tsx
@@ -1,4 +1,4 @@
-import { Info } from 'lucide-react'
+import { InfoIcon } from 'lucide-react'
import { parseAsJson, useQueryStates } from 'nuqs'
import React, { useMemo } from 'react'
import { cn, Skeleton, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -76,7 +76,7 @@ export const QueryPerformanceMetrics = () => {
e.stopPropagation()
}}
>
- <Info size={12} />
+ <InfoIcon size={12} />
</button>
</TooltipTrigger>
<TooltipContent side="top" align="start" className="max-w-xs text-xs">
@@ -97,7 +97,7 @@ export const QueryPerformanceMetrics = () => {
e.stopPropagation()
}}
>
- <Info size={12} />
+ <InfoIcon size={12} />
</button>
</TooltipTrigger>
<TooltipContent side="top" align="start" className="max-w-xs text-xs">
diff --git a/apps/studio/components/interfaces/QueryPerformance/SqlMonacoBlock.tsx b/apps/studio/components/interfaces/QueryPerformance/SqlMonacoBlock.tsx
index d62214a3fd6..64564a2978b 100644
--- a/apps/studio/components/interfaces/QueryPerformance/SqlMonacoBlock.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/SqlMonacoBlock.tsx
@@ -1,4 +1,4 @@
-import { Check, Copy } from 'lucide-react'
+import { CheckIcon, CopyIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import { Button, cn, copyToClipboard, FloatingPlate } from 'ui'
@@ -39,7 +39,7 @@ export const SqlMonacoBlock = ({ value, wrapperClassName }: SqlMonacoBlockProps)
<FloatingPlate className="absolute right-2 top-2 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 transition-opacity">
<Button
className="px-1.5"
- icon={copied ? <Check /> : <Copy />}
+ icon={copied ? <CheckIcon /> : <CopyIcon />}
onClick={() => handleCopy(content)}
>
{copied ? 'Copied' : ''}
diff --git a/apps/studio/components/interfaces/QueryPerformance/WithStatements/WithStatements.tsx b/apps/studio/components/interfaces/QueryPerformance/WithStatements/WithStatements.tsx
index b61f35aa71f..896def51f9b 100644
--- a/apps/studio/components/interfaces/QueryPerformance/WithStatements/WithStatements.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/WithStatements/WithStatements.tsx
@@ -1,6 +1,6 @@
import { safeSql } from '@supabase/pg-meta/src/pg-format'
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { RefreshCw, RotateCcw, X } from 'lucide-react'
+import { RefreshCwIcon, RotateCcwIcon, XIcon } from 'lucide-react'
import { parseAsString, useQueryStates } from 'nuqs'
import { useEffect, useMemo, useState } from 'react'
import { toast } from 'sonner'
@@ -212,7 +212,7 @@ export const WithStatements = ({
<Button
aria-label="Refresh"
size="tiny"
- icon={<RefreshCw />}
+ icon={<RefreshCwIcon />}
onClick={handleRefresh}
className="w-[26px]"
/>
@@ -225,7 +225,7 @@ export const WithStatements = ({
<Button
aria-label="Reset report"
size="tiny"
- icon={<RotateCcw />}
+ icon={<RotateCcwIcon />}
onClick={() => setShowResetgPgStatStatements(true)}
className="w-[26px]"
/>
@@ -266,7 +266,7 @@ export const WithStatements = ({
size="tiny"
onClick={() => setShowBottomSection(false)}
>
- <X size="14" />
+ <XIcon size="14" />
</Button>
<div className="w-[33%] flex flex-col gap-y-1 text-sm">
<p>Reset report</p>
diff --git a/apps/studio/components/interfaces/QueryPerformance/components/FilterInput.tsx b/apps/studio/components/interfaces/QueryPerformance/components/FilterInput.tsx
index 4ff48ec0ef4..d840ad5c3a0 100644
--- a/apps/studio/components/interfaces/QueryPerformance/components/FilterInput.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/components/FilterInput.tsx
@@ -1,4 +1,4 @@
-import { Search, X } from 'lucide-react'
+import { SearchIcon, XIcon } from 'lucide-react'
import { Button } from 'ui'
import { Input } from 'ui-patterns/DataInputs/Input'
@@ -16,7 +16,7 @@ export const FilterInput = ({ value, onChange, placeholder, className }: FilterI
<Input
size="tiny"
autoComplete="off"
- icon={<Search />}
+ icon={<SearchIcon />}
value={value}
onChange={(e) => onChange(e.target.value)}
onKeyDown={onSearchInputEscape(value, onChange)}
@@ -30,7 +30,7 @@ export const FilterInput = ({ value, onChange, placeholder, className }: FilterI
key="clear"
size="tiny"
variant="text"
- icon={<X />}
+ icon={<XIcon />}
onClick={() => onChange('')}
className="p-0 h-5 w-5"
/>
diff --git a/apps/studio/components/interfaces/QueryPerformance/components/FilterPill.tsx b/apps/studio/components/interfaces/QueryPerformance/components/FilterPill.tsx
index 994a0be4993..c00d9c2ea11 100644
--- a/apps/studio/components/interfaces/QueryPerformance/components/FilterPill.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/components/FilterPill.tsx
@@ -1,4 +1,4 @@
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from 'ui'
interface FilterPillProps {
@@ -20,7 +20,7 @@ export const FilterPill = ({ label, value, onClear }: FilterPillProps) => {
onClear(e)
}}
>
- <X size={14} className="text-foreground-light hover:text-foreground" />
+ <XIcon size={14} className="text-foreground-light hover:text-foreground" />
</TooltipTrigger>
<TooltipContent side="bottom">Clear {label.toLowerCase()} filter</TooltipContent>
</Tooltip>
diff --git a/apps/studio/components/interfaces/QueryPerformance/components/IndexAdvisorFilter.tsx b/apps/studio/components/interfaces/QueryPerformance/components/IndexAdvisorFilter.tsx
index 8994f2308a0..b381dd832bb 100644
--- a/apps/studio/components/interfaces/QueryPerformance/components/IndexAdvisorFilter.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/components/IndexAdvisorFilter.tsx
@@ -1,4 +1,4 @@
-import { Lightbulb, X } from 'lucide-react'
+import { LightbulbIcon, XIcon } from 'lucide-react'
import { Button, cn } from 'ui'
interface IndexAdvisorFilterProps {
@@ -13,10 +13,13 @@ export const IndexAdvisorFilter = ({ isActive, onToggle }: IndexAdvisorFilterPro
size="tiny"
className={cn(isActive ? 'bg-surface-300' : 'border-dashed')}
onClick={onToggle}
- iconRight={isActive ? <X size={14} /> : undefined}
+ iconRight={isActive ? <XIcon size={14} /> : undefined}
>
<span className="flex items-center gap-x-2">
- <Lightbulb size={12} className={isActive ? 'text-warning' : 'text-foreground-lighter'} />
+ <LightbulbIcon
+ size={12}
+ className={isActive ? 'text-warning' : 'text-foreground-lighter'}
+ />
<span>Index Advisor</span>
</span>
</Button>
diff --git a/apps/studio/components/interfaces/QueryPerformance/components/SortIndicator.tsx b/apps/studio/components/interfaces/QueryPerformance/components/SortIndicator.tsx
index 406a46d1931..17163976e68 100644
--- a/apps/studio/components/interfaces/QueryPerformance/components/SortIndicator.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/components/SortIndicator.tsx
@@ -1,4 +1,4 @@
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from 'ui'
interface SortIndicatorProps {
@@ -14,7 +14,7 @@ export const SortIndicator = ({ sort, onClearSort }: SortIndicatorProps) => {
</p>
<Tooltip>
<TooltipTrigger onClick={onClearSort}>
- <X size={14} className="text-foreground-light hover:text-foreground" />
+ <XIcon size={14} className="text-foreground-light hover:text-foreground" />
</TooltipTrigger>
<TooltipContent side="bottom">Clear sort</TooltipContent>
</Tooltip>
diff --git a/apps/studio/components/interfaces/QuerySources/DatabaseParametersSubMenu.tsx b/apps/studio/components/interfaces/QuerySources/DatabaseParametersSubMenu.tsx
index 16c7e3a09ba..e286b35e3f2 100644
--- a/apps/studio/components/interfaces/QuerySources/DatabaseParametersSubMenu.tsx
+++ b/apps/studio/components/interfaces/QuerySources/DatabaseParametersSubMenu.tsx
@@ -1,5 +1,5 @@
import { IS_PLATFORM, useParams } from 'common'
-import { Check, Plus } from 'lucide-react'
+import { CheckIcon, PlusIcon } from 'lucide-react'
import Link from 'next/link'
import {
DropdownMenuItem,
@@ -66,7 +66,7 @@ export const DatabaseParametersSubMenu = ({
onClick={() => onIdentifierChange(database.identifier)}
>
<span>{databaseLabel(database.identifier, database.region, projectRef)}</span>
- {database.identifier === selectedDatabaseId && <Check size={14} />}
+ {database.identifier === selectedDatabaseId && <CheckIcon size={14} />}
</DropdownMenuItem>
)
})}
@@ -75,7 +75,7 @@ export const DatabaseParametersSubMenu = ({
<DropdownMenuSeparator />
<DropdownMenuItem asChild className="gap-x-2">
<Link href={newReplicaURL}>
- <Plus size={14} strokeWidth={1.5} />
+ <PlusIcon size={14} strokeWidth={1.5} />
Create a new read replica
</Link>
</DropdownMenuItem>
diff --git a/apps/studio/components/interfaces/QuerySources/LogsTimeRangeSubMenu.tsx b/apps/studio/components/interfaces/QuerySources/LogsTimeRangeSubMenu.tsx
index ebbd12a185a..dc9086e7bea 100644
--- a/apps/studio/components/interfaces/QuerySources/LogsTimeRangeSubMenu.tsx
+++ b/apps/studio/components/interfaces/QuerySources/LogsTimeRangeSubMenu.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { Check, Lock } from 'lucide-react'
+import { CheckIcon, LockIcon } from 'lucide-react'
import {
DropdownMenuItem,
DropdownMenuSeparator,
@@ -68,9 +68,9 @@ export const LogsTimeRangeSubMenu = ({
>
<span>{helper.text}</span>
{isLocked ? (
- <Lock size={14} className="text-foreground-lighter" />
+ <LockIcon size={14} className="text-foreground-lighter" />
) : (
- isSelected && <Check size={14} />
+ isSelected && <CheckIcon size={14} />
)}
</DropdownMenuItem>
)
@@ -78,7 +78,7 @@ export const LogsTimeRangeSubMenu = ({
<DropdownMenuSeparator />
<DropdownMenuItem className="justify-between" onClick={onOpenCustomRange}>
<span>Custom range…</span>
- {isCustomRange && <Check size={14} />}
+ {isCustomRange && <CheckIcon size={14} />}
</DropdownMenuItem>
</DropdownMenuSubContent>
</DropdownMenuSub>
diff --git a/apps/studio/components/interfaces/QuerySources/QuerySourceIcon.tsx b/apps/studio/components/interfaces/QuerySources/QuerySourceIcon.tsx
index 1ecc039e09d..5d5a6cda6d8 100644
--- a/apps/studio/components/interfaces/QuerySources/QuerySourceIcon.tsx
+++ b/apps/studio/components/interfaces/QuerySources/QuerySourceIcon.tsx
@@ -1,4 +1,4 @@
-import { Database, ScrollText } from 'lucide-react'
+import { DatabaseIcon, ScrollTextIcon } from 'lucide-react'
import type { QuerySourceTag } from '@/data/query-sources/query-source-registry'
@@ -11,5 +11,5 @@ export const QuerySourceIcon = ({
}) => {
const props = { className, size: 16, strokeWidth: 2 }
- return source === 'logs' ? <ScrollText {...props} /> : <Database {...props} />
+ return source === 'logs' ? <ScrollTextIcon {...props} /> : <DatabaseIcon {...props} />
}
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/AnimatedCursors.tsx b/apps/studio/components/interfaces/Realtime/Inspector/AnimatedCursors.tsx
index 5bc69ac4b59..81c9d65cc1a 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/AnimatedCursors.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/AnimatedCursors.tsx
@@ -1,4 +1,4 @@
-import { MousePointer2 } from 'lucide-react'
+import { MousePointer2Icon } from 'lucide-react'
import { motion } from 'motion/react'
import { useEffect, useState } from 'react'
@@ -42,7 +42,7 @@ export const AnimatedCursors = () => {
}}
style={{ width: 20, height: 20 }}
>
- <MousePointer2 size={20} />
+ <MousePointer2Icon size={20} />
</motion.div>
<motion.div
className="absolute text-primary"
@@ -54,7 +54,7 @@ export const AnimatedCursors = () => {
}}
style={{ width: 20, height: 20 }}
>
- <MousePointer2 size={20} />
+ <MousePointer2Icon size={20} />
</motion.div>
</div>
)
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/ChooseChannelPopover.tsx b/apps/studio/components/interfaces/Realtime/Inspector/ChooseChannelPopover.tsx
index 8a2bb65fc47..4224df0c5ce 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/ChooseChannelPopover.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/ChooseChannelPopover.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { IS_PLATFORM } from 'common'
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { Dispatch, SetStateAction, useState } from 'react'
import { useForm } from 'react-hook-form'
import {
@@ -97,7 +97,7 @@ export const ChooseChannelPopover = ({
const channelPopoverTrigger = (
<PopoverTrigger asChild>
- <Button className="rounded-r-none" size="tiny" iconRight={<ChevronDown />}>
+ <Button className="rounded-r-none" size="tiny" iconRight={<ChevronDownIcon />}>
<p
className="max-w-[120px] truncate"
title={config.channelName.length > 0 ? config.channelName : ''}
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/Header.tsx b/apps/studio/components/interfaces/Realtime/Inspector/Header.tsx
index 7379168c221..728b3bffce7 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/Header.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/Header.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { IS_PLATFORM } from 'common'
-import { PlayCircle, StopCircle } from 'lucide-react'
+import { PlayCircleIcon, StopCircleIcon } from 'lucide-react'
import { Dispatch, SetStateAction, useCallback } from 'react'
import { Button } from 'ui'
@@ -68,7 +68,7 @@ export const Header = ({
variant={config.enabled ? 'warning' : 'primary'}
className="rounded-l-none border-l-0"
disabled={!canToggleListening}
- icon={config.enabled ? <StopCircle size="16" /> : <PlayCircle size="16" />}
+ icon={config.enabled ? <StopCircleIcon size="16" /> : <PlayCircleIcon size="16" />}
onClick={handleToggleListening}
>
{config.enabled ? `Stop listening` : `Start listening`}
@@ -95,7 +95,7 @@ export const Header = ({
variant={config.enabled ? 'warning' : 'primary'}
className="rounded-l-none border-l-0"
disabled
- icon={config.enabled ? <StopCircle size="16" /> : <PlayCircle size="16" />}
+ icon={config.enabled ? <StopCircleIcon size="16" /> : <PlayCircleIcon size="16" />}
onClick={handleToggleListening}
tooltip={{
content: {
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/MessageSelection.tsx b/apps/studio/components/interfaces/Realtime/Inspector/MessageSelection.tsx
index 20c9ba5ef70..7d8d8fed229 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/MessageSelection.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/MessageSelection.tsx
@@ -1,4 +1,4 @@
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { useMemo } from 'react'
import { toast } from 'sonner'
import { Button, cn, copyToClipboard } from 'ui'
@@ -104,7 +104,7 @@ const MessageSelection = ({ log, onClose }: MessageSelectionProps) => {
className="cursor-pointer transition hover:text-scale-1200 h-8 w-8 px-0 py-0 flex items-center justify-center"
onClick={onClose}
>
- <X size={14} strokeWidth={2} className="text-scale-900" />
+ <XIcon size={14} strokeWidth={2} className="text-scale-900" />
</Button>
</div>
<div className="h-px w-full bg-scale-600 rounded-sm" />
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx b/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx
index 1c30f3cec67..bfab35273ea 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/MessagesTable.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import { isEqual } from 'lodash'
-import { ExternalLink, Loader2, Megaphone } from 'lucide-react'
+import { ExternalLinkIcon, Loader2Icon, MegaphoneIcon } from 'lucide-react'
import Link from 'next/link'
import { useEffect, useState } from 'react'
import DataGrid, { Row } from 'react-data-grid'
@@ -86,7 +86,7 @@ const NoResultAlert = ({
</p>
</div>
<Link href={`/project/${ref}/realtime/inspector`} target="_blank" rel="noreferrer">
- <Button iconRight={<ExternalLink />}>Open inspector</Button>
+ <Button iconRight={<ExternalLinkIcon />}>Open inspector</Button>
</Link>
</div>
@@ -100,7 +100,7 @@ const NoResultAlert = ({
<p className="text-foreground-lighter text-xs">Tables must have realtime enabled</p>
</div>
<Link href={`/project/${ref}/database/publications`} target="_blank" rel="noreferrer">
- <Button iconRight={<ExternalLink />}>Publications settings</Button>
+ <Button iconRight={<ExternalLinkIcon />}>Publications settings</Button>
</Link>
</div>
<div className="w-full px-5 py-4 items-center gap-4 inline-flex rounded-b-md bg-studio">
@@ -163,7 +163,7 @@ const MessagesTable = ({
{enabled && (
<div className="w-full h-9 px-4 bg-surface-100 items-center inline-flex justify-between text-foreground-light">
<div className="inline-flex gap-2.5 text-xs">
- <Loader2 size="16" aria-hidden="true" className="animate-spin" />
+ <Loader2Icon size="16" aria-hidden="true" className="animate-spin" />
<div>Listening</div>
<div aria-hidden="true">•</div>
<div>
@@ -175,7 +175,7 @@ const MessagesTable = ({
</div>
</div>
<ShortcutTooltip shortcutId={SHORTCUT_IDS.INSPECTOR_BROADCAST} side="bottom">
- <Button onClick={showSendMessage} icon={<Megaphone strokeWidth={1.5} />}>
+ <Button onClick={showSendMessage} icon={<MegaphoneIcon strokeWidth={1.5} />}>
<span>Broadcast a message</span>
</Button>
</ShortcutTooltip>
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/TableSelector.tsx b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/TableSelector.tsx
index 99661a9ab32..890e14d95ed 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/TableSelector.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/TableSelector.tsx
@@ -1,5 +1,5 @@
import { debounce } from 'lodash'
-import { Check, Code, Loader } from 'lucide-react'
+import { CheckIcon, CodeIcon, LoaderIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import {
Alert,
@@ -83,9 +83,9 @@ const TableSelector = ({
variant="outline"
disabled={isLoading}
className={`w-full [&>span]:w-full ${size === 'small' ? 'py-1.5' : ''}`}
- icon={isLoading ? <Loader className="animate-spin" size={12} /> : null}
+ icon={isLoading ? <LoaderIcon className="animate-spin" size={12} /> : null}
iconRight={
- <Code className="text-foreground-light rotate-90" strokeWidth={2} size={12} />
+ <CodeIcon className="text-foreground-light rotate-90" strokeWidth={2} size={12} />
}
>
{initiallyLoaded ? (
@@ -106,7 +106,7 @@ const TableSelector = ({
<CommandList>
{isLoading && (
<div className="flex items-center justify-center space-x-2 px-3 py-2">
- <Loader className="animate-spin" size={12} />
+ <LoaderIcon className="animate-spin" size={12} />
<p className="flex text-xs text-light">Loading tables...</p>
</div>
)}
@@ -143,7 +143,7 @@ const TableSelector = ({
>
<span>All tables</span>
{selectedSchemaName === '*' && (
- <Check className="text-primary" strokeWidth={2} />
+ <CheckIcon className="text-primary" strokeWidth={2} />
)}
</CommandItem>
)}
@@ -162,7 +162,7 @@ const TableSelector = ({
>
<span>{table.name}</span>
{selectedSchemaName === table.name && (
- <Check className="text-primary" strokeWidth={2} />
+ <CheckIcon className="text-primary" strokeWidth={2} />
)}
</CommandItem>
))}
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx
index d7cae509e7b..178fb68daf2 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeFilterPopover/index.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { PlusCircle } from 'lucide-react'
+import { PlusCircleIcon } from 'lucide-react'
import Link from 'next/link'
import { Dispatch, SetStateAction, useEffect, useState } from 'react'
import {
@@ -88,7 +88,7 @@ export const RealtimeFilterPopover = ({
const filterPopoverTrigger = (
<PopoverTrigger asChild>
<Button
- icon={<PlusCircle size="16" />}
+ icon={<PlusCircleIcon size="16" />}
variant={isFiltered ? 'primary' : 'dashed'}
className={cn('rounded-full px-1 text-xs h-[26px]')}
size="small"
diff --git a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeMessageColumnRenderer.tsx b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeMessageColumnRenderer.tsx
index bdd35356033..f43da951ec3 100644
--- a/apps/studio/components/interfaces/Realtime/Inspector/RealtimeMessageColumnRenderer.tsx
+++ b/apps/studio/components/interfaces/Realtime/Inspector/RealtimeMessageColumnRenderer.tsx
@@ -1,4 +1,4 @@
-import { AlertTriangle } from 'lucide-react'
+import { AlertTriangleIcon } from 'lucide-react'
import { Column } from 'react-data-grid'
import { cn, IconBroadcast, IconDatabaseChanges, IconPresence } from 'ui'
@@ -10,7 +10,7 @@ const ICONS = {
PRESENCE: <IconPresence size="xlarge" />,
BROADCAST: <IconBroadcast size="xlarge" />,
POSTGRES: <IconDatabaseChanges size="xlarge" />,
- SYSTEM: <AlertTriangle size="20" strokeWidth={1} />,
+ SYSTEM: <AlertTriangleIcon size="20" strokeWidth={1} />,
}
export const ColumnRenderer: Column<LogData, unknown>[] = [
diff --git a/apps/studio/components/interfaces/Reports/MetricOptions.tsx b/apps/studio/components/interfaces/Reports/MetricOptions.tsx
index 2b94973b772..fcf16178dd0 100644
--- a/apps/studio/components/interfaces/Reports/MetricOptions.tsx
+++ b/apps/studio/components/interfaces/Reports/MetricOptions.tsx
@@ -1,6 +1,6 @@
import { useDebounce } from '@uidotdev/usehooks'
import { useParams } from 'common'
-import { Home, Plus } from 'lucide-react'
+import { HomeIcon, PlusIcon } from 'lucide-react'
import { useState } from 'react'
import {
Command,
@@ -79,7 +79,7 @@ export const MetricOptions = ({ config, handleChartSelection }: MetricOptionsPro
return (
<DropdownMenuSub key={cat.key}>
<DropdownMenuSubTrigger className="space-x-2">
- {cat.icon ? cat.icon() : <Home size={14} />}
+ {cat.icon ? cat.icon() : <HomeIcon size={14} />}
<p>{cat.label}</p>
</DropdownMenuSubTrigger>
<DropdownMenuPortal>
@@ -178,7 +178,7 @@ export const MetricOptions = ({ config, handleChartSelection }: MetricOptionsPro
}}
>
<div className="w-full flex items-center gap-2">
- <Plus size={14} strokeWidth={1.5} />
+ <PlusIcon size={14} strokeWidth={1.5} />
<p>Create snippet</p>
</div>
</CommandItem>
diff --git a/apps/studio/components/interfaces/Reports/ReportBlock/ChartBlock.tsx b/apps/studio/components/interfaces/Reports/ReportBlock/ChartBlock.tsx
index 2680ed131f9..f5cee4e6bb6 100644
--- a/apps/studio/components/interfaces/Reports/ReportBlock/ChartBlock.tsx
+++ b/apps/studio/components/interfaces/Reports/ReportBlock/ChartBlock.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { Activity, BarChartIcon, Loader2 } from 'lucide-react'
+import { ActivityIcon, BarChartIcon, Loader2Icon } from 'lucide-react'
import { useRouter } from 'next/router'
import { ReactNode, useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { Bar, BarChart, CartesianGrid, Line, LineChart, XAxis, YAxis } from 'recharts'
@@ -228,7 +228,7 @@ export const ChartBlock = ({
size="tiny"
disabled={loading}
className="w-7 h-7"
- icon={chartStyle === 'bar' ? <Activity /> : <BarChartIcon />}
+ icon={chartStyle === 'bar' ? <ActivityIcon /> : <BarChartIcon />}
onClick={() => {
const style = chartStyle === 'bar' ? 'line' : 'bar'
if (onUpdateChartConfig) onUpdateChartConfig({ chart: { chart_type: style } })
@@ -266,7 +266,7 @@ export const ChartBlock = ({
>
{loading ? (
<div className="flex grow w-full flex-col items-center justify-center gap-y-2 px-4">
- <Loader2 size={18} className="animate-spin text-border-strong" />
+ <Loader2Icon size={18} className="animate-spin text-border-strong" />
<p className="text-xs text-foreground-lighter text-center">Loading data for {label}</p>
</div>
) : chartData === undefined ? (
diff --git a/apps/studio/components/interfaces/Reports/ReportBlock/LogsSnippetReportBlock.tsx b/apps/studio/components/interfaces/Reports/ReportBlock/LogsSnippetReportBlock.tsx
index c6114a47613..98b7c8d15a6 100644
--- a/apps/studio/components/interfaces/Reports/ReportBlock/LogsSnippetReportBlock.tsx
+++ b/apps/studio/components/interfaces/Reports/ReportBlock/LogsSnippetReportBlock.tsx
@@ -1,4 +1,4 @@
-import { ScrollText } from 'lucide-react'
+import { ScrollTextIcon } from 'lucide-react'
import { ReactNode } from 'react'
import { ReportBlockContainer } from './ReportBlockContainer'
@@ -19,7 +19,7 @@ export const LogsSnippetReportBlock = ({ label, actions }: LogsSnippetReportBloc
draggable
showDragHandle
loading={false}
- icon={<ScrollText size={14} className="text-foreground-muted" />}
+ icon={<ScrollTextIcon size={14} className="text-foreground-muted" />}
label={label}
actions={actions}
>
diff --git a/apps/studio/components/interfaces/Reports/ReportBlock/ReportBlock.tsx b/apps/studio/components/interfaces/Reports/ReportBlock/ReportBlock.tsx
index 93d00b32219..ebae409896f 100644
--- a/apps/studio/components/interfaces/Reports/ReportBlock/ReportBlock.tsx
+++ b/apps/studio/components/interfaces/Reports/ReportBlock/ReportBlock.tsx
@@ -1,7 +1,7 @@
import { acceptUntrustedSql, safeSql } from '@supabase/pg-meta'
import { useQuery } from '@tanstack/react-query'
import { useParams } from 'common'
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { toast } from 'sonner'
@@ -163,7 +163,7 @@ export const ReportBlock = ({
!disableUpdate ? (
<ButtonTooltip
variant="text"
- icon={<X />}
+ icon={<XIcon />}
className="w-7 h-7"
onClick={() => onRemoveChart({ metric: { key: item.attribute } })}
tooltip={{ content: { side: 'bottom', text: 'Remove chart' } }}
@@ -198,7 +198,7 @@ export const ReportBlock = ({
actions={
<ButtonTooltip
variant="text"
- icon={<X />}
+ icon={<XIcon />}
className="w-7 h-7"
onClick={() => onRemoveChart({ metric: { key: item.attribute } })}
tooltip={{ content: { side: 'bottom', text: 'Remove chart' } }}
@@ -219,7 +219,7 @@ export const ReportBlock = ({
!disableUpdate ? (
<ButtonTooltip
variant="text"
- icon={<X />}
+ icon={<XIcon />}
className="h-7 w-7"
onClick={() => onRemoveChart({ metric: { key: item.attribute } })}
tooltip={{ content: { side: 'bottom', text: 'Remove chart' } }}
@@ -235,7 +235,7 @@ export const ReportBlock = ({
!disableUpdate ? (
<ButtonTooltip
variant="text"
- icon={<X />}
+ icon={<XIcon />}
className="w-7 h-7"
onClick={() => onRemoveChart({ metric: { key: item.attribute } })}
tooltip={{ content: { side: 'bottom', text: 'Remove chart' } }}
@@ -258,7 +258,7 @@ export const ReportBlock = ({
!disableUpdate ? (
<ButtonTooltip
variant="text"
- icon={<X />}
+ icon={<XIcon />}
className="w-7 h-7"
onClick={() => onRemoveChart({ metric: { key: item.attribute } })}
tooltip={{ content: { side: 'bottom', text: 'Remove chart' } }}
diff --git a/apps/studio/components/interfaces/Reports/ReportBlock/ReportBlockContainer.tsx b/apps/studio/components/interfaces/Reports/ReportBlock/ReportBlockContainer.tsx
index d14e2862687..428287c1f54 100644
--- a/apps/studio/components/interfaces/Reports/ReportBlock/ReportBlockContainer.tsx
+++ b/apps/studio/components/interfaces/Reports/ReportBlock/ReportBlockContainer.tsx
@@ -1,4 +1,4 @@
-import { Code, GripHorizontal } from 'lucide-react'
+import { CodeIcon, GripHorizontalIcon } from 'lucide-react'
import { DragEvent, PropsWithChildren, ReactNode } from 'react'
import { cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -51,11 +51,11 @@ export const ReportBlockContainer = ({
)}
>
{showDragHandle ? (
- <GripHorizontal size={16} strokeWidth={1.5} />
+ <GripHorizontalIcon size={16} strokeWidth={1.5} />
) : icon ? (
icon
) : (
- <Code size={16} strokeWidth={1.5} className="text-foreground-muted" />
+ <CodeIcon size={16} strokeWidth={1.5} className="text-foreground-muted" />
)}
<div className={cn('flex items-center gap-2 flex-1 min-w-0 transition-opacity')}>
<h3 className="heading-meta truncate">{label}</h3>
diff --git a/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx b/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx
index 3061e1c1512..8792b4a98c0 100644
--- a/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx
+++ b/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx
@@ -1,6 +1,13 @@
import { useParams } from 'common'
import { Auth, Realtime, Storage } from 'icons'
-import { ChevronDown, Database, Network, Plus, RefreshCw, X } from 'lucide-react'
+import {
+ ChevronDownIcon,
+ DatabaseIcon,
+ NetworkIcon,
+ PlusIcon,
+ RefreshCwIcon,
+ XIcon,
+} from 'lucide-react'
import { ComponentProps, useCallback, useEffect, useState } from 'react'
import SVG from 'react-inlinesvg'
import {
@@ -57,7 +64,7 @@ const PRODUCT_FILTERS = [
filterKey: 'request.path',
filterValue: '/rest',
label: 'Data API (PostgREST)',
- icon: Database,
+ icon: DatabaseIcon,
},
{
key: 'auth',
@@ -239,7 +246,7 @@ const ReportFilterBar = ({
>
<Button
disabled={isLoading}
- icon={<RefreshCw className={isLoading ? 'animate-spin' : ''} />}
+ icon={<RefreshCwIcon className={isLoading ? 'animate-spin' : ''} />}
className="w-7"
onClick={() => onRefresh()}
/>
@@ -265,7 +272,7 @@ const ReportFilterBar = ({
<DropdownMenuTrigger asChild>
<Button
className="inline-flex flex-row gap-2"
- iconRight={<ChevronDown size={14} />}
+ iconRight={<ChevronDownIcon size={14} />}
>
<span>
{currentProductFilter === null ? 'All Requests' : currentProductFilter.label}
@@ -275,7 +282,7 @@ const ReportFilterBar = ({
</ShortcutTooltip>
<DropdownMenuContent side="bottom" align="start">
<DropdownMenuItem onClick={() => handleProductFilterChange(null)}>
- <Network size={14} strokeWidth={1.5} className="mr-2" />
+ <NetworkIcon size={14} strokeWidth={1.5} className="mr-2" />
All Requests
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -329,7 +336,7 @@ const ReportFilterBar = ({
size="tiny"
className="p-0! space-x-0!"
onClick={() => onRemoveFilters([filter])}
- icon={<X className="text-foreground-light" />}
+ icon={<XIcon className="text-foreground-light" />}
>
<span className="sr-only">Remove</span>
</Button>
@@ -342,7 +349,7 @@ const ReportFilterBar = ({
open={showAdder ? false : undefined}
>
<PopoverTrigger asChild>
- <Button size="tiny" icon={<Plus className={`text-foreground-light `} />}>
+ <Button size="tiny" icon={<PlusIcon className={`text-foreground-light `} />}>
Add filter
</Button>
</PopoverTrigger>
diff --git a/apps/studio/components/interfaces/Reports/ReportWidget.tsx b/apps/studio/components/interfaces/Reports/ReportWidget.tsx
index bc70c63998d..37c8b8ca457 100644
--- a/apps/studio/components/interfaces/Reports/ReportWidget.tsx
+++ b/apps/studio/components/interfaces/Reports/ReportWidget.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ExternalLink, HelpCircle } from 'lucide-react'
+import { ExternalLinkIcon, HelpCircleIcon } from 'lucide-react'
import { NextRouter, useRouter } from 'next/router'
import { ReactNode } from 'react'
import { Button, cn, Loading, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -48,7 +48,7 @@ const ReportWidget = (props: ReportWidgetProps) => {
{props?.tooltip && (
<Tooltip>
<TooltipTrigger>
- <HelpCircle className="text-foreground-light" size={14} strokeWidth={1.5} />
+ <HelpCircleIcon className="text-foreground-light" size={14} strokeWidth={1.5} />
</TooltipTrigger>
<TooltipContent side="bottom">{props.tooltip}</TooltipContent>
</Tooltip>
@@ -60,7 +60,7 @@ const ReportWidget = (props: ReportWidgetProps) => {
<Tooltip>
<TooltipTrigger asChild>
<Button
- icon={<ExternalLink />}
+ icon={<ExternalLinkIcon />}
className="px-1"
onClick={() => {
const isDbQueryType = props.queryType === 'db'
diff --git a/apps/studio/components/interfaces/Reports/Reports.tsx b/apps/studio/components/interfaces/Reports/Reports.tsx
index 05f9951baec..cf1551cbc99 100644
--- a/apps/studio/components/interfaces/Reports/Reports.tsx
+++ b/apps/studio/components/interfaces/Reports/Reports.tsx
@@ -2,7 +2,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useQueryClient } from '@tanstack/react-query'
import { useParams } from 'common'
import { groupBy, isEqual, isNull } from 'lodash'
-import { Plus, RefreshCw, Save } from 'lucide-react'
+import { PlusIcon, RefreshCwIcon, SaveIcon } from 'lucide-react'
import { DragEvent, useEffect, useState } from 'react'
import { toast } from 'sonner'
import { Button, cn, DropdownMenu, DropdownMenuContent, DropdownMenuTrigger, LogoLoader } from 'ui'
@@ -391,7 +391,7 @@ const Reports = () => {
</Button>
<Button
variant="primary"
- icon={<Save />}
+ icon={<SaveIcon />}
loading={isSaving}
onClick={() => onSaveReport()}
>
@@ -423,7 +423,7 @@ const Reports = () => {
<div className="flex items-center gap-x-2">
<DocsButton href={OBSERVABILITY_DOCS_HREFS.customReport} topic={reportTitle} />
<ButtonTooltip
- icon={<RefreshCw className={isRefreshing ? 'animate-spin' : ''} />}
+ icon={<RefreshCwIcon className={isRefreshing ? 'animate-spin' : ''} />}
className="w-7"
disabled={isRefreshing}
tooltip={{ content: { side: 'bottom', text: 'Refresh report' } }}
@@ -432,7 +432,7 @@ const Reports = () => {
{canUpdateReport ? (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button icon={<Plus />}>
+ <Button icon={<PlusIcon />}>
<span>Add block</span>
</Button>
</DropdownMenuTrigger>
@@ -443,7 +443,7 @@ const Reports = () => {
) : (
<ButtonTooltip
disabled
- icon={<Plus />}
+ icon={<PlusIcon />}
tooltip={{
content: {
side: 'bottom',
@@ -472,7 +472,7 @@ const Reports = () => {
{canUpdateReport ? (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button iconRight={<Plus size={14} />}>Add your first chart</Button>
+ <Button iconRight={<PlusIcon size={14} />}>Add your first chart</Button>
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="center">
<MetricOptions config={config} handleChartSelection={handleChartSelection} />
diff --git a/apps/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx b/apps/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx
index 686f1899c76..e2d14bffddc 100644
--- a/apps/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx
+++ b/apps/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx
@@ -1,6 +1,6 @@
import { geoCentroid } from 'd3-geo'
import sumBy from 'lodash/sumBy'
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import { useTheme } from 'next-themes'
import Link from 'next/link'
import { Fragment, useRef, useState, type ReactNode } from 'react'
@@ -354,7 +354,7 @@ const RouteTdContent = (datum: RouteTdContentProps) => (
<div className="flex gap-2 items-center">
<Button asChild variant="text" className=" py-0! p-1!" title="Show more route details">
<span>
- <ChevronRight
+ <ChevronRightIcon
size={14}
className="transition data-open-parent:rotate-90 data-closed-parent:rotate-0"
/>
diff --git a/apps/studio/components/interfaces/Reports/v2/ReportChartV2.tsx b/apps/studio/components/interfaces/Reports/v2/ReportChartV2.tsx
index 7a4cab08538..782a1e48b62 100644
--- a/apps/studio/components/interfaces/Reports/v2/ReportChartV2.tsx
+++ b/apps/studio/components/interfaces/Reports/v2/ReportChartV2.tsx
@@ -1,5 +1,5 @@
import { useQuery } from '@tanstack/react-query'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useState } from 'react'
import { Card, CardContent, cn } from 'ui'
@@ -150,7 +150,7 @@ export const ReportChartV2 = ({
)}
>
{isLoadingChart ? (
- <Loader2 className="size-5 animate-spin text-foreground-light" />
+ <Loader2Icon className="size-5 animate-spin text-foreground-light" />
) : isErrorState ? (
<p className="text-sm text-foreground-light text-center h-full flex items-center justify-center">
Error loading chart data
diff --git a/apps/studio/components/interfaces/Reports/v2/ReportSectionHeader.tsx b/apps/studio/components/interfaces/Reports/v2/ReportSectionHeader.tsx
index 35a01d4f9c4..94e49ec869e 100644
--- a/apps/studio/components/interfaces/Reports/v2/ReportSectionHeader.tsx
+++ b/apps/studio/components/interfaces/Reports/v2/ReportSectionHeader.tsx
@@ -1,4 +1,4 @@
-import { Check, Link } from 'lucide-react'
+import { CheckIcon, LinkIcon } from 'lucide-react'
import { useState } from 'react'
import { copyToClipboard } from 'ui'
@@ -33,7 +33,7 @@ export const ReportSectionHeader = ({ id, title, description }: ReportSectionHea
<h3 className="text-foreground text-lg font-medium">{title}</h3>
<ButtonTooltip
variant="text"
- icon={copiedLink === id ? <Check size={14} /> : <Link size={14} />}
+ icon={copiedLink === id ? <CheckIcon size={14} /> : <LinkIcon size={14} />}
className="w-7 h-7 opacity-0 group-hover:opacity-100 transition-opacity"
tooltip={{
content: {
diff --git a/apps/studio/components/interfaces/Reports/v2/ReportsNumericFilter.tsx b/apps/studio/components/interfaces/Reports/v2/ReportsNumericFilter.tsx
index 86efb5b81fe..92ad23eba55 100644
--- a/apps/studio/components/interfaces/Reports/v2/ReportsNumericFilter.tsx
+++ b/apps/studio/components/interfaces/Reports/v2/ReportsNumericFilter.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import {
Button,
@@ -119,7 +119,7 @@ export const ReportsNumericFilter = ({
{ 'border-solid': isActive },
className
)}
- iconRight={<ChevronDown size={14} />}
+ iconRight={<ChevronDownIcon size={14} />}
>
<span>
{label}
diff --git a/apps/studio/components/interfaces/Reports/v2/ReportsSelectFilter.tsx b/apps/studio/components/interfaces/Reports/v2/ReportsSelectFilter.tsx
index dbb142abc14..8705e45b035 100644
--- a/apps/studio/components/interfaces/Reports/v2/ReportsSelectFilter.tsx
+++ b/apps/studio/components/interfaces/Reports/v2/ReportsSelectFilter.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import {
Button,
@@ -85,7 +85,7 @@ export const ReportsSelectFilter = ({
{ 'border-solid': isActive },
className
)}
- iconRight={<ChevronDown size={14} />}
+ iconRight={<ChevronDownIcon size={14} />}
>
<span>
{label}
diff --git a/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx b/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx
index 0d839907c33..96ae2be9571 100644
--- a/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx
+++ b/apps/studio/components/interfaces/RoleImpersonationSelector/RoleImpersonationPopover.tsx
@@ -1,5 +1,5 @@
import { RoleImpersonationSelector } from '.'
-import { ChevronDown, User as IconUser } from 'lucide-react'
+import { ChevronDownIcon, UserIcon } from 'lucide-react'
import { useState } from 'react'
import { Button, cn, Popover, PopoverContent, PopoverTrigger } from 'ui'
@@ -55,7 +55,7 @@ export const RoleImpersonationPopover = ({
</span>
</>
)}
- <ChevronDown className="text-muted" strokeWidth={1} size={12} />
+ <ChevronDownIcon className="text-muted" strokeWidth={1} size={12} />
</div>
</Button>
</PopoverTrigger>
@@ -80,7 +80,7 @@ const UserRoleButtonSection = ({ user }: { user: User }) => {
<img className="rounded-full w-[18px] h-[18px]" src={avatarUrl} alt={displayName} />
) : (
<div className="rounded-full w-[18px] h-[18px] bg-surface-100 border flex items-center justify-center text-light">
- <IconUser size={12} strokeWidth={2} />
+ <UserIcon size={12} strokeWidth={2} />
</div>
)}
<span className="truncate max-w-[84px]">{displayName}</span>
@@ -92,7 +92,7 @@ const ExternalAuthButtonSection = ({ sub }: { sub: string }) => {
return (
<div className="flex gap-1 items-center pl-0.5 pr-1.5 h-[21px] bg-surface-200 rounded-full overflow-hidden">
<div className="rounded-full w-[18px] h-[18px] bg-surface-100 border flex items-center justify-center text-light">
- <IconUser size={12} strokeWidth={2} />
+ <UserIcon size={12} strokeWidth={2} />
</div>
<span className="truncate max-w-[84px]">{sub}</span>
</div>
diff --git a/apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx b/apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx
index 8687ac77883..f7690e58392 100644
--- a/apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx
+++ b/apps/studio/components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx
@@ -1,6 +1,6 @@
import { keepPreviousData } from '@tanstack/react-query'
import { useDebounce } from '@uidotdev/usehooks'
-import { ChevronsUpDown, User as IconUser, Loader2, X } from 'lucide-react'
+import { ChevronsUpDownIcon, Loader2Icon, UserIcon, XIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import { toast } from 'sonner'
import {
@@ -386,7 +386,7 @@ const ImpersonationControl = ({
variant="text"
className="px-1"
aria-label="Stop impersonating user"
- icon={<X size={14} />}
+ icon={<XIcon size={14} />}
onClick={stopImpersonating}
disabled={isImpersonateLoading}
loading={isImpersonateLoading}
@@ -431,7 +431,7 @@ const ImpersonationControl = ({
aria-label="Find user"
aria-expanded={isUserComboboxOpen}
className="w-full justify-between"
- iconRight={<ChevronsUpDown className="shrink-0 text-foreground-muted" size={14} />}
+ iconRight={<ChevronsUpDownIcon className="shrink-0 text-foreground-muted" size={14} />}
>
Email, name, or ID
</Button>
@@ -446,7 +446,7 @@ const ImpersonationControl = ({
<CommandList className="max-h-52">
{(isLoading || isSearching) && (
<div className="flex items-center justify-center gap-2 px-3 py-2">
- <Loader2 className="animate-spin" size={14} />
+ <Loader2Icon className="animate-spin" size={14} />
<span className="text-xs text-foreground-light">Loading users…</span>
</div>
)}
@@ -473,7 +473,7 @@ const ImpersonationControl = ({
}}
className="gap-2"
>
- <IconUser size={14} className="shrink-0 text-foreground-lighter" />
+ <UserIcon size={14} className="shrink-0 text-foreground-lighter" />
<span className="min-w-0 flex-1 truncate">
{emailOrPhone || userDisplayName || user.id}
</span>
diff --git a/apps/studio/components/interfaces/RoleImpersonationSelector/index.tsx b/apps/studio/components/interfaces/RoleImpersonationSelector/index.tsx
index 6ea39c373c4..b9d17d8f6da 100644
--- a/apps/studio/components/interfaces/RoleImpersonationSelector/index.tsx
+++ b/apps/studio/components/interfaces/RoleImpersonationSelector/index.tsx
@@ -1,4 +1,4 @@
-import { Check, Database, UserCheck, UserX } from 'lucide-react'
+import { CheckIcon, DatabaseIcon, UserCheckIcon, UserXIcon } from 'lucide-react'
import { Separator, ToggleGroup, ToggleGroupItem } from 'ui'
import { UserImpersonationSelector } from './UserImpersonationSelector'
@@ -67,30 +67,30 @@ export const RoleImpersonationSelectorInterface = (
>
<ToggleGroupItem value="service_role" className="w-full justify-between text-left">
<span className="flex min-w-0 items-center gap-3">
- <Database size={16} strokeWidth={1.5} className="shrink-0" />
+ <DatabaseIcon size={16} strokeWidth={1.5} className="shrink-0" />
<span className="flex min-w-0 flex-col items-start">
<span>{serviceRoleLabel}</span>
<span className="text-xs font-normal text-foreground-lighter">Superuser</span>
</span>
</span>
- {selectedOption === 'service_role' && <Check size={14} />}
+ {selectedOption === 'service_role' && <CheckIcon size={14} />}
</ToggleGroupItem>
<ToggleGroupItem value="anon" className="w-full justify-between text-left">
<span className="flex min-w-0 items-center gap-3">
- <UserX size={16} strokeWidth={1.5} className="shrink-0" />
+ <UserXIcon size={16} strokeWidth={1.5} className="shrink-0" />
<span className="flex min-w-0 flex-col items-start">
<span>Anonymous</span>
<span className="text-xs font-normal text-foreground-lighter">Not logged in</span>
</span>
</span>
- {selectedOption === 'anon' && <Check size={14} />}
+ {selectedOption === 'anon' && <CheckIcon size={14} />}
</ToggleGroupItem>
{!disallowAuthenticatedOption && (
<ToggleGroupItem value="authenticated" className="w-full justify-between text-left">
<span className="flex min-w-0 items-center gap-3">
- <UserCheck size={16} strokeWidth={1.5} className="shrink-0" />
+ <UserCheckIcon size={16} strokeWidth={1.5} className="shrink-0" />
<span className="flex min-w-0 flex-col items-start">
<span>Authenticated</span>
<span className="text-xs font-normal text-foreground-lighter">
@@ -98,7 +98,7 @@ export const RoleImpersonationSelectorInterface = (
</span>
</span>
</span>
- {selectedOption === 'authenticated' && <Check size={14} />}
+ {selectedOption === 'authenticated' && <CheckIcon size={14} />}
</ToggleGroupItem>
)}
</ToggleGroup>
diff --git a/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx b/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx
index a0002227a38..52550168756 100644
--- a/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/DownloadSnippetModal.tsx
@@ -1,5 +1,5 @@
import { snakeCase } from 'lodash'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import { useState } from 'react'
import {
@@ -153,14 +153,14 @@ export const DownloadSnippetModal = ({ id, ...props }: DownloadSnippetModalProps
<DialogSection>
<div className="flex items-center justify-start gap-x-2">
{selectedSnippet.docLink && (
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<Link href={selectedSnippet.docLink.href} target="_blank" rel="noreferrer">
{selectedSnippet.docLink.label}
</Link>
</Button>
)}
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<Link href={CLI_DOCS_URL} target="_blank" rel="noreferrer">
About CLI
</Link>
diff --git a/apps/studio/components/interfaces/SQLEditor/MoveQueryModal.tsx b/apps/studio/components/interfaces/SQLEditor/MoveQueryModal.tsx
index 8486cdb3d00..3196baaa9a7 100644
--- a/apps/studio/components/interfaces/SQLEditor/MoveQueryModal.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/MoveQueryModal.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { IS_PLATFORM, useParams } from 'common'
-import { Check, Code, Plus } from 'lucide-react'
+import { CheckIcon, CodeIcon, PlusIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useEffect, useState } from 'react'
import { useForm } from 'react-hook-form'
@@ -233,7 +233,7 @@ export const MoveQueryModal = ({ visible, snippets = [], onClose }: MoveQueryMod
size="small"
className="pr-2 justify-between"
iconRight={
- <Code
+ <CodeIcon
className="text-foreground-light rotate-90"
strokeWidth={2}
size={12}
@@ -272,7 +272,7 @@ export const MoveQueryModal = ({ visible, snippets = [], onClose }: MoveQueryMod
snippets[0].folder_id === null &&
` (Current)`}
</span>
- {selectedId === 'root' && <Check size={14} />}
+ {selectedId === 'root' && <CheckIcon size={14} />}
</CommandItem>
{folders?.map((folder) => (
<CommandItem
@@ -294,7 +294,7 @@ export const MoveQueryModal = ({ visible, snippets = [], onClose }: MoveQueryMod
snippets[0].folder_id === folder.id &&
` (Current)`}
</span>
- {folder.id === selectedId && <Check size={14} />}
+ {folder.id === selectedId && <CheckIcon size={14} />}
</CommandItem>
))}
</ScrollArea>
@@ -312,7 +312,7 @@ export const MoveQueryModal = ({ visible, snippets = [], onClose }: MoveQueryMod
setSelectedId('new-folder')
}}
>
- <Plus size={14} strokeWidth={1.5} />
+ <PlusIcon size={14} strokeWidth={1.5} />
<p>New folder</p>
</CommandItem>
</CommandGroup>
diff --git a/apps/studio/components/interfaces/SQLEditor/SQLEditorEditorPanel.tsx b/apps/studio/components/interfaces/SQLEditor/SQLEditorEditorPanel.tsx
index 16b5cc101ea..cf128ac1b16 100644
--- a/apps/studio/components/interfaces/SQLEditor/SQLEditorEditorPanel.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/SQLEditorEditorPanel.tsx
@@ -1,5 +1,5 @@
import { acceptUntrustedSql } from '@supabase/pg-meta'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import dynamic from 'next/dynamic'
import { useCallback } from 'react'
import { cn } from 'ui'
@@ -176,7 +176,7 @@ function LoadingSpinner() {
return (
<div className="overflow-y-auto h-full">
<div className="flex h-full w-full items-center justify-center">
- <Loader2 className="animate-spin text-primary" />
+ <Loader2Icon className="animate-spin text-primary" />
</div>
</div>
)
diff --git a/apps/studio/components/interfaces/SQLEditor/SQLEditorLayout.tsx b/apps/studio/components/interfaces/SQLEditor/SQLEditorLayout.tsx
index ec46e44ce2a..1c94a8ab5d2 100644
--- a/apps/studio/components/interfaces/SQLEditor/SQLEditorLayout.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/SQLEditorLayout.tsx
@@ -1,6 +1,6 @@
import { acceptUntrustedSql, untrustedSql } from '@supabase/pg-meta'
import { LOCAL_STORAGE_KEYS } from 'common'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useCallback } from 'react'
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from 'ui'
@@ -115,7 +115,7 @@ const SQLEditorResultsPanel = () => {
return isLoading ? (
<div className="flex h-full w-full items-center justify-center">
- <Loader2 className="animate-spin text-primary" />
+ <Loader2Icon className="animate-spin text-primary" />
</div>
) : (
<UtilityPanel
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/AutosaveStatus.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/AutosaveStatus.tsx
index 2391bdc4400..5d754489e5b 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/AutosaveStatus.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/AutosaveStatus.tsx
@@ -1,5 +1,5 @@
import { LOCAL_STORAGE_KEYS } from 'common'
-import { PowerOff } from 'lucide-react'
+import { PowerOffIcon } from 'lucide-react'
import { Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import {
@@ -49,7 +49,7 @@ export const AutosaveStatus = ({ id }: AutosaveStatusProps) => {
size="tiny"
className="px-1"
aria-label="Disable autosave"
- icon={<PowerOff size={14} className="text-foreground-light" />}
+ icon={<PowerOffIcon size={14} className="text-foreground-light" />}
onClick={() => {
track('sql_editor_autosave_disable_clicked')
selectFeaturePreview(LOCAL_STORAGE_KEYS.UI_PREVIEW_SQL_EDITOR_MANUAL_SAVE)
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ChartConfig.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ChartConfig.tsx
index 572378706d2..9c776f08dca 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ChartConfig.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/ChartConfig.tsx
@@ -1,6 +1,6 @@
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
import dayjs from 'dayjs'
-import { ArrowUpDown, X } from 'lucide-react'
+import { ArrowUpDownIcon, XIcon } from 'lucide-react'
import Link from 'next/link'
import { useMemo } from 'react'
import {
@@ -172,7 +172,7 @@ export const ChartConfig = ({
size="tiny"
onClick={onFlip}
disabled={!canFlip}
- icon={<ArrowUpDown size="15" className="text-foreground-lighter" />}
+ icon={<ArrowUpDownIcon size="15" className="text-foreground-lighter" />}
tooltip={{
content: {
side: 'bottom',
@@ -195,7 +195,7 @@ export const ChartConfig = ({
onClick={() => setAcknowledged(true)}
className="absolute top-3 right-3 opacity-30 group-hover:opacity-100 transition-opacity"
>
- <X size={14} className="text-foreground-light" />
+ <XIcon size={14} className="text-foreground-light" />
</TooltipTrigger>
<TooltipContent side="bottom">Dismiss</TooltipContent>
</Tooltip>
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/QuerySourceMenu/QuerySourceMenu.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/QuerySourceMenu/QuerySourceMenu.tsx
index 7d318f4053c..38c109506f5 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/QuerySourceMenu/QuerySourceMenu.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/QuerySourceMenu/QuerySourceMenu.tsx
@@ -1,5 +1,5 @@
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { Check, ChevronDown } from 'lucide-react'
+import { CheckIcon, ChevronDownIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import {
Button,
@@ -105,7 +105,7 @@ export const QuerySourceMenu = ({ id, runSource, canCreateLogsSnippet }: QuerySo
<Button
aria-label={`Query source: ${QUERY_SOURCE_LABELS[currentSource]}`}
icon={<QuerySourceIcon source={currentSource} className="text-foreground-light" />}
- iconRight={<ChevronDown size={14} className="text-foreground-light" />}
+ iconRight={<ChevronDownIcon size={14} className="text-foreground-light" />}
>
{QUERY_SOURCE_LABELS[currentSource]}
</Button>
@@ -124,7 +124,7 @@ export const QuerySourceMenu = ({ id, runSource, canCreateLogsSnippet }: QuerySo
<QuerySourceIcon source={source._tag} className="text-foreground-light" />
{QUERY_SOURCE_LABELS[source._tag]}
</span>
- {currentSource === source._tag && <Check size={14} />}
+ {currentSource === source._tag && <CheckIcon size={14} />}
</DropdownMenuItem>
))}
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/RunButton.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/RunButton.tsx
index 6fdaae2365e..226a3fa5a0e 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/RunButton.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/RunButton.tsx
@@ -1,4 +1,4 @@
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { KeyboardShortcut } from 'ui'
import { ButtonTooltip } from '@/components/ui/ButtonTooltip'
@@ -35,7 +35,7 @@ export const SqlRunButton = ({
data-testid="sql-run-button"
iconRight={
isExecuting ? (
- <Loader2 className="animate-spin" size={10} strokeWidth={1.5} />
+ <Loader2Icon className="animate-spin" size={10} strokeWidth={1.5} />
) : (
<KeyboardShortcut keys={['Meta', 'Enter']} variant="inline" />
)
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/SaveButton.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/SaveButton.tsx
index 87fd2c52911..7e97631e707 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/SaveButton.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/SaveButton.tsx
@@ -1,4 +1,4 @@
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { Button, KeyboardShortcut } from 'ui'
import { hasUnsavedChanges, isSaving } from '@/state/sql-editor/sql-editor-lifecycle'
@@ -26,7 +26,7 @@ export const SqlSaveButton = ({ id, className }: SqlSaveButtonProps) => {
data-testid="sql-save-button"
iconRight={
saving ? (
- <Loader2 className="animate-spin" size={10} strokeWidth={1.5} />
+ <Loader2Icon className="animate-spin" size={10} strokeWidth={1.5} />
) : (
<KeyboardShortcut keys={['Meta', 's']} variant="inline" />
)
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsx
index cec1d4017f4..0b6757dfac9 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsx
@@ -1,5 +1,5 @@
import { usePrevious } from '@uidotdev/usehooks'
-import { AlertCircle, Check, Loader2, RefreshCcw } from 'lucide-react'
+import { AlertCircleIcon, CheckIcon, Loader2Icon, RefreshCcwIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -50,7 +50,7 @@ const SavingIndicator = ({ id }: SavingIndicatorProps) => {
<Button
variant="text"
size="tiny"
- icon={<RefreshCcw className="text-gray-1100" strokeWidth={2} />}
+ icon={<RefreshCcwIcon className="text-gray-1100" strokeWidth={2} />}
onClick={retry}
>
Retry
@@ -59,14 +59,14 @@ const SavingIndicator = ({ id }: SavingIndicatorProps) => {
{showSavedText ? (
<Tooltip>
<TooltipTrigger>
- <Check className="text-primary" size={14} strokeWidth={3} />
+ <CheckIcon className="text-primary" size={14} strokeWidth={3} />
</TooltipTrigger>
<TooltipContent side="bottom">All changes saved</TooltipContent>
</Tooltip>
) : saving ? (
<Tooltip>
<TooltipTrigger>
- <Loader2 className="animate-spin" size={14} strokeWidth={2} />
+ <Loader2Icon className="animate-spin" size={14} strokeWidth={2} />
</TooltipTrigger>
<TooltipContent>Saving changes...</TooltipContent>
</Tooltip>
@@ -74,7 +74,7 @@ const SavingIndicator = ({ id }: SavingIndicatorProps) => {
snippetIsOwned ? (
<Tooltip>
<TooltipTrigger>
- <AlertCircle className="text-red-900" size={14} strokeWidth={2} />
+ <AlertCircleIcon className="text-red-900" size={14} strokeWidth={2} />
</TooltipTrigger>
<TooltipContent>Failed to save changes</TooltipContent>
</Tooltip>
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx
index 1f632ef9ad4..94e26d801d6 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx
@@ -1,6 +1,13 @@
import { Hotkey } from '@tanstack/react-hotkeys'
import { LOCAL_STORAGE_KEYS, useFlag, useParams } from 'common'
-import { AlignLeft, Check, ChevronDown, Heart, Keyboard, MoreVertical } from 'lucide-react'
+import {
+ AlignLeftIcon,
+ CheckIcon,
+ ChevronDownIcon,
+ HeartIcon,
+ KeyboardIcon,
+ MoreVerticalIcon,
+} from 'lucide-react'
import { toast } from 'sonner'
import {
Button,
@@ -117,7 +124,7 @@ export const UtilityActions = ({
aria-label="More actions"
data-testid="sql-editor-utility-actions"
className={cn('px-1', isAiOpen ? 'block 2xl:hidden' : 'hidden')}
- icon={<MoreVertical className="text-foreground-light" />}
+ icon={<MoreVerticalIcon className="text-foreground-light" />}
/>
</DropdownMenuTrigger>
</TooltipTrigger>
@@ -126,16 +133,16 @@ export const UtilityActions = ({
<DropdownMenuContent className="w-48">
<DropdownMenuItem className="justify-between" onClick={toggleIntellisense}>
<span className="flex items-center gap-x-2">
- <Keyboard size={14} className="text-foreground-light" />
+ <KeyboardIcon size={14} className="text-foreground-light" />
Intellisense enabled
</span>
- {intellisenseEnabled && <Check className="text-primary" size={16} />}
+ {intellisenseEnabled && <CheckIcon className="text-primary" size={16} />}
</DropdownMenuItem>
{IS_PLATFORM && (
<>
<DropdownMenuSeparator />
<DropdownMenuItem className="gap-x-2" onClick={() => saveFavorite(id, !isFavorite)}>
- <Heart
+ <HeartIcon
size={14}
strokeWidth={2}
className={
@@ -160,7 +167,7 @@ export const UtilityActions = ({
}}
>
<span className="flex items-center gap-x-2">
- <AlignLeft size={14} strokeWidth={2} className="text-foreground-light" />
+ <AlignLeftIcon size={14} strokeWidth={2} className="text-foreground-light" />
Prettify SQL
</span>
{formatKeys && <KeyboardShortcut keys={formatKeys} />}
@@ -176,7 +183,7 @@ export const UtilityActions = ({
<Button
variant="text"
className="px-1"
- icon={<Keyboard className="text-foreground-light" />}
+ icon={<KeyboardIcon className="text-foreground-light" />}
aria-label="Enable Intellisense"
/>
</DropdownMenuTrigger>
@@ -186,7 +193,7 @@ export const UtilityActions = ({
<DropdownMenuContent className="w-48">
<DropdownMenuItem className="justify-between" onClick={toggleIntellisense}>
Intellisense enabled
- {intellisenseEnabled && <Check className="text-primary" size={16} />}
+ {intellisenseEnabled && <CheckIcon className="text-primary" size={16} />}
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
@@ -200,7 +207,7 @@ export const UtilityActions = ({
size="tiny"
onClick={() => saveFavorite(id, false)}
className="px-1"
- icon={<Heart className="fill-primary-bright stroke-none" />}
+ icon={<HeartIcon className="fill-primary-bright stroke-none" />}
aria-label="Remove from favorites"
/>
) : (
@@ -209,7 +216,7 @@ export const UtilityActions = ({
size="tiny"
onClick={() => saveFavorite(id, true)}
className="px-1"
- icon={<Heart className="fill-none stroke-foreground-light" />}
+ icon={<HeartIcon className="fill-none stroke-foreground-light" />}
aria-label="Add to favorites"
/>
)}
@@ -225,7 +232,7 @@ export const UtilityActions = ({
onClick={prettifyQuery}
disabled={isLogs}
className="px-1"
- icon={<AlignLeft strokeWidth={2} className="text-foreground-light" />}
+ icon={<AlignLeftIcon strokeWidth={2} className="text-foreground-light" />}
aria-label="Prettify SQL"
tooltip={{
content: {
@@ -270,7 +277,7 @@ export const UtilityActions = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button iconRight={<ChevronDown size={14} className="text-foreground-light" />}>
+ <Button iconRight={<ChevronDownIcon size={14} className="text-foreground-light" />}>
<span className="text-foreground-light">Limit</span>{' '}
{ROWS_PER_PAGE_OPTIONS.find((opt) => opt.value === sessionSnap.limit)?.label}
</Button>
diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx
index 1f24875a615..c88b08ae227 100644
--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx
+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ExternalLink, Loader2 } from 'lucide-react'
+import { ExternalLinkIcon, Loader2Icon } from 'lucide-react'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { forwardRef } from 'react'
import { Button, cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -41,7 +41,7 @@ export const UtilityTabResults = forwardRef<HTMLDivElement, UtilityTabResultsPro
if (isExecuting) {
return (
<div className="flex items-center gap-x-4 px-6 py-4 bg-table-header-light in-data-[theme*=dark]:bg-table-header-dark">
- <Loader2 size={14} className="animate-spin" />
+ <Loader2Icon size={14} className="animate-spin" />
<p className="m-0 border-0 font-mono text-sm">Running...</p>
</div>
)
@@ -114,7 +114,7 @@ export const UtilityTabResults = forwardRef<HTMLDivElement, UtilityTabResultsPro
className={cn(InlineLinkClassName, 'flex items-center gap-x-1')}
>
connecting to your database directly
- <ExternalLink size={12} />
+ <ExternalLinkIcon size={12} />
</span>
.
</p>
diff --git a/apps/studio/components/interfaces/Settings/API/DataApiEnableSwitchStates.tsx b/apps/studio/components/interfaces/Settings/API/DataApiEnableSwitchStates.tsx
index d166636c097..4f1c55c3c79 100644
--- a/apps/studio/components/interfaces/Settings/API/DataApiEnableSwitchStates.tsx
+++ b/apps/studio/components/interfaces/Settings/API/DataApiEnableSwitchStates.tsx
@@ -1,4 +1,4 @@
-import { AlertCircle } from 'lucide-react'
+import { AlertCircleIcon } from 'lucide-react'
import { Alert, AlertTitle, CardContent } from 'ui'
import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
@@ -11,7 +11,7 @@ export const DataApiEnableSwitchLoading = () => (
export const DataApiEnableSwitchError = () => (
<Alert variant="destructive">
- <AlertCircle size={16} />
+ <AlertCircleIcon size={16} />
<AlertTitle>Failed to retrieve Data API settings</AlertTitle>
</Alert>
)
diff --git a/apps/studio/components/interfaces/Settings/API/DataApiProjectUrlCard.tsx b/apps/studio/components/interfaces/Settings/API/DataApiProjectUrlCard.tsx
index e6e59078fc0..33160e053d6 100644
--- a/apps/studio/components/interfaces/Settings/API/DataApiProjectUrlCard.tsx
+++ b/apps/studio/components/interfaces/Settings/API/DataApiProjectUrlCard.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { AlertCircle } from 'lucide-react'
+import { AlertCircleIcon } from 'lucide-react'
import { parseAsString, useQueryState } from 'nuqs'
import { useEffect, useEffectEvent } from 'react'
import { Alert, AlertTitle } from 'ui'
@@ -93,7 +93,7 @@ export const DataApiProjectUrlCard = () => {
</div>
) : isError ? (
<Alert variant="destructive">
- <AlertCircle size={16} />
+ <AlertCircleIcon size={16} />
<AlertTitle>Failed to retrieve project URL</AlertTitle>
</Alert>
) : (
diff --git a/apps/studio/components/interfaces/Settings/API/ExposedFunctionSelector.tsx b/apps/studio/components/interfaces/Settings/API/ExposedFunctionSelector.tsx
index ad401bccaff..9f927f21fd6 100644
--- a/apps/studio/components/interfaces/Settings/API/ExposedFunctionSelector.tsx
+++ b/apps/studio/components/interfaces/Settings/API/ExposedFunctionSelector.tsx
@@ -1,6 +1,6 @@
import { keepPreviousData, useInfiniteQuery, useQuery } from '@tanstack/react-query'
import { useDebounce, useIntersectionObserver } from '@uidotdev/usehooks'
-import { Check, ChevronsUpDown, CircleAlert, Info } from 'lucide-react'
+import { CheckIcon, ChevronsUpDownIcon, CircleAlertIcon, InfoIcon } from 'lucide-react'
import { useEffect, useMemo, useRef, useState } from 'react'
import {
Button,
@@ -117,7 +117,7 @@ export const ExposedFunctionSelector = ({
disabled={disabled}
className="w-full [&>span]:w-full pr-1! space-x-1"
iconRight={
- <ChevronsUpDown className="text-foreground-muted" strokeWidth={2} size={14} />
+ <ChevronsUpDownIcon className="text-foreground-muted" strokeWidth={2} size={14} />
}
aria-label="Select functions"
// Tooltip repeats the label; the description would read the name twice
@@ -226,7 +226,9 @@ export const ExposedFunctionSelector = ({
>
<div className="w-full flex items-center gap-x-2">
<div className="w-4 shrink-0 flex items-center justify-center">
- {isExposed && <Check size={16} className="text-primary shrink-0" />}
+ {isExposed && (
+ <CheckIcon size={16} className="text-primary shrink-0" />
+ )}
{!isSchemaExposed && (
<Tooltip>
<TooltipTrigger asChild>
@@ -236,7 +238,7 @@ export const ExposedFunctionSelector = ({
aria-label="Schema not exposed"
className="inline-flex items-center text-foreground-muted hover:text-foreground-light"
>
- <Info size={14} />
+ <InfoIcon size={14} />
</button>
</TooltipTrigger>
<TooltipContent side="left" className="max-w-[320px] text-xs">
@@ -268,7 +270,7 @@ export const ExposedFunctionSelector = ({
: 'text-foreground-muted'
)}
>
- <CircleAlert size={14} />
+ <CircleAlertIcon size={14} />
</div>
</TooltipTrigger>
<TooltipContent
diff --git a/apps/studio/components/interfaces/Settings/API/ExposedSchemaSelector.tsx b/apps/studio/components/interfaces/Settings/API/ExposedSchemaSelector.tsx
index fc7e822bdb8..7397a2e8bf4 100644
--- a/apps/studio/components/interfaces/Settings/API/ExposedSchemaSelector.tsx
+++ b/apps/studio/components/interfaces/Settings/API/ExposedSchemaSelector.tsx
@@ -1,4 +1,4 @@
-import { Check, ChevronsUpDown } from 'lucide-react'
+import { CheckIcon, ChevronsUpDownIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import {
Button,
@@ -116,7 +116,7 @@ export const ExposedSchemaSelector = ({
size="small"
className="w-full [&>span]:w-full pr-1! space-x-1"
iconRight={
- <ChevronsUpDown className="text-foreground-muted" strokeWidth={2} size={14} />
+ <ChevronsUpDownIcon className="text-foreground-muted" strokeWidth={2} size={14} />
}
aria-label="Select schemas"
// Tooltip repeats the label; the description would read the name twice
@@ -177,7 +177,7 @@ export const ExposedSchemaSelector = ({
>
<div className="w-full flex flex-col">
<div className="w-full flex items-center gap-x-2">
- <Check size={16} className="text-primary shrink-0" />
+ <CheckIcon size={16} className="text-primary shrink-0" />
<span className="truncate">{schema}</span>
</div>
{internalSchemasCannotExpose.has(schema) ? (
@@ -208,7 +208,7 @@ export const ExposedSchemaSelector = ({
<div
className={cn('w-full flex items-center gap-x-2', !isExposed && 'ml-6')}
>
- {isExposed && <Check size={16} className="text-primary shrink-0" />}
+ {isExposed && <CheckIcon size={16} className="text-primary shrink-0" />}
<span className="truncate">{schema.name}</span>
</div>
</CommandItem>
diff --git a/apps/studio/components/interfaces/Settings/API/ExposedTableSelector.tsx b/apps/studio/components/interfaces/Settings/API/ExposedTableSelector.tsx
index 78c5fb7e972..2879558e577 100644
--- a/apps/studio/components/interfaces/Settings/API/ExposedTableSelector.tsx
+++ b/apps/studio/components/interfaces/Settings/API/ExposedTableSelector.tsx
@@ -1,6 +1,6 @@
import { keepPreviousData, useInfiniteQuery, useQuery } from '@tanstack/react-query'
import { useDebounce, useIntersectionObserver } from '@uidotdev/usehooks'
-import { Check, ChevronsUpDown, CircleAlert, Info } from 'lucide-react'
+import { CheckIcon, ChevronsUpDownIcon, CircleAlertIcon, InfoIcon } from 'lucide-react'
import { useEffect, useMemo, useRef, useState } from 'react'
import {
Button,
@@ -111,7 +111,7 @@ export const ExposedTableSelector = ({
disabled={disabled}
className="w-full [&>span]:w-full pr-1! space-x-1"
iconRight={
- <ChevronsUpDown className="text-foreground-muted" strokeWidth={2} size={14} />
+ <ChevronsUpDownIcon className="text-foreground-muted" strokeWidth={2} size={14} />
}
aria-label="Select tables"
// Tooltip repeats the label; the description would read the name twice
@@ -220,7 +220,9 @@ export const ExposedTableSelector = ({
>
<div className="w-full flex items-center gap-x-2">
<div className="w-4 shrink-0 flex items-center justify-center">
- {isExposed && <Check size={16} className="text-primary shrink-0" />}
+ {isExposed && (
+ <CheckIcon size={16} className="text-primary shrink-0" />
+ )}
{!isSchemaExposed && (
<Tooltip>
<TooltipTrigger asChild>
@@ -230,7 +232,7 @@ export const ExposedTableSelector = ({
aria-label="Schema not exposed"
className="inline-flex items-center text-foreground-muted hover:text-foreground-light"
>
- <Info size={14} />
+ <InfoIcon size={14} />
</button>
</TooltipTrigger>
<TooltipContent side="left" className="max-w-[320px] text-xs">
@@ -262,7 +264,7 @@ export const ExposedTableSelector = ({
: 'text-foreground-muted'
)}
>
- <CircleAlert size={14} />
+ <CircleAlertIcon size={14} />
</div>
</TooltipTrigger>
<TooltipContent
diff --git a/apps/studio/components/interfaces/Settings/API/HardenAPIModal.tsx b/apps/studio/components/interfaces/Settings/API/HardenAPIModal.tsx
index 128ea3d804a..d3f17181756 100644
--- a/apps/studio/components/interfaces/Settings/API/HardenAPIModal.tsx
+++ b/apps/studio/components/interfaces/Settings/API/HardenAPIModal.tsx
@@ -1,4 +1,4 @@
-import { Check } from 'lucide-react'
+import { CheckIcon } from 'lucide-react'
import { toast } from 'sonner'
import {
Alert,
@@ -136,7 +136,7 @@ export const HardenAPIModal = ({ visible, onClose }: HardenAPIModalProps) => {
className="py-4 px-5"
icon={
hasAPISchema && isAPISchemaExposed ? (
- <Check size={16} className="text-primary" />
+ <CheckIcon size={16} className="text-primary" />
) : undefined
}
>
@@ -214,7 +214,9 @@ export const HardenAPIModal = ({ visible, onClose }: HardenAPIModalProps) => {
<DialogDisclosure>
<DialogDisclosureTrigger
className="py-4 px-5"
- icon={!isPublicSchemaExposed ? <Check size={16} className="text-primary" /> : undefined}
+ icon={
+ !isPublicSchemaExposed ? <CheckIcon size={16} className="text-primary" /> : undefined
+ }
>
2. Remove the <code className="text-code-inline">public</code> schema from the exposed
schemas
diff --git a/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx b/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx
index c150f1bdd19..81f05cc9387 100644
--- a/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx
+++ b/apps/studio/components/interfaces/Settings/API/PostgrestConfig.tsx
@@ -3,7 +3,7 @@ import { safeSql } from '@supabase/pg-meta'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useQuery, useQueryClient } from '@tanstack/react-query'
import { useParams } from 'common'
-import { Lock } from 'lucide-react'
+import { LockIcon } from 'lucide-react'
import { useCallback, useEffect, useMemo, useState } from 'react'
import { useForm } from 'react-hook-form'
import { toast } from 'sonner'
@@ -678,7 +678,7 @@ export const PostgrestConfig = () => {
description="Expose a custom schema instead of the public schema"
>
<div className="flex gap-2 items-center justify-end">
- <Button icon={<Lock />} onClick={() => setShowModal(true)}>
+ <Button icon={<LockIcon />} onClick={() => setShowModal(true)}>
Harden Data API
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Settings/API/ServiceList.tsx b/apps/studio/components/interfaces/Settings/API/ServiceList.tsx
index c7a92150e60..533896e7188 100644
--- a/apps/studio/components/interfaces/Settings/API/ServiceList.tsx
+++ b/apps/studio/components/interfaces/Settings/API/ServiceList.tsx
@@ -1,4 +1,4 @@
-import { AlertCircle } from 'lucide-react'
+import { AlertCircleIcon } from 'lucide-react'
import { Alert, AlertTitle } from 'ui'
import { PostgrestConfig } from './PostgrestConfig'
@@ -13,7 +13,7 @@ export const ServiceList = () => {
<ScaffoldSection isFullWidth id="api-settings" className="gap-6 py-0!">
{!isLoading && project?.status !== PROJECT_STATUS.ACTIVE_HEALTHY ? (
<Alert variant="destructive">
- <AlertCircle size={16} />
+ <AlertCircleIcon size={16} />
<AlertTitle>API settings are unavailable as the project is not active</AlertTitle>
</Alert>
) : (
diff --git a/apps/studio/components/interfaces/Settings/API/UnsafeEntitiesConfirmModal.tsx b/apps/studio/components/interfaces/Settings/API/UnsafeEntitiesConfirmModal.tsx
index 7fad3486f1a..bd9d24a0e46 100644
--- a/apps/studio/components/interfaces/Settings/API/UnsafeEntitiesConfirmModal.tsx
+++ b/apps/studio/components/interfaces/Settings/API/UnsafeEntitiesConfirmModal.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight, ChevronUp } from 'lucide-react'
+import { ChevronRightIcon, ChevronUpIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import { Button, Collapsible, CollapsibleContent, CollapsibleTrigger } from 'ui'
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
@@ -163,7 +163,7 @@ const EntityList = ({ entities }: { entities: Array<ExposedEntity> }) => {
className="px-0 h-auto text-xs text-foreground-lighter hover:text-foreground"
>
<div className="flex items-center gap-1">
- {open ? <ChevronUp size={12} /> : <ChevronRight size={12} />}
+ {open ? <ChevronUpIcon size={12} /> : <ChevronRightIcon size={12} />}
<span>{open ? 'Show less' : `Show ${hiddenEntities.length} more`}</span>
</div>
</Button>
diff --git a/apps/studio/components/interfaces/Settings/Addons/Addons.tsx b/apps/studio/components/interfaces/Settings/Addons/Addons.tsx
index b5f50619380..6c22f1d951f 100644
--- a/apps/studio/components/interfaces/Settings/Addons/Addons.tsx
+++ b/apps/studio/components/interfaces/Settings/Addons/Addons.tsx
@@ -1,6 +1,6 @@
import { SupportCategories } from '@supabase/shared-types/out/constants'
import { useFlag, useParams } from 'common'
-import { Lock } from 'lucide-react'
+import { LockIcon } from 'lucide-react'
import { useTheme } from 'next-themes'
import Image from 'next/image'
import {
@@ -282,7 +282,7 @@ export const Addons = () => {
{!canOpenIPv4 && ipv4DisabledReason && (
<Tooltip>
<TooltipTrigger>
- <Lock strokeWidth={1.5} className="text-foreground-light" size={16} />
+ <LockIcon strokeWidth={1.5} className="text-foreground-light" size={16} />
</TooltipTrigger>
<TooltipContent>{ipv4DisabledReason}</TooltipContent>
</Tooltip>
@@ -332,7 +332,7 @@ export const Addons = () => {
{!canOpenPITR && pitrDisabledReason && (
<Tooltip>
<TooltipTrigger>
- <Lock strokeWidth={1.5} className="text-foreground-light" size={16} />
+ <LockIcon strokeWidth={1.5} className="text-foreground-light" size={16} />
</TooltipTrigger>
<TooltipContent>{pitrDisabledReason}</TooltipContent>
</Tooltip>
@@ -388,7 +388,7 @@ export const Addons = () => {
{!canOpenCustomDomain && customDomainDisabledReason && (
<Tooltip>
<TooltipTrigger>
- <Lock strokeWidth={1.5} className="text-foreground-light" size={16} />
+ <LockIcon strokeWidth={1.5} className="text-foreground-light" size={16} />
</TooltipTrigger>
<TooltipContent>{customDomainDisabledReason}</TooltipContent>
</Tooltip>
diff --git a/apps/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx b/apps/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx
index 8e6564eaf9c..09179e9c736 100644
--- a/apps/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx
+++ b/apps/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useFlag, useParams } from 'common'
-import { AlertCircle } from 'lucide-react'
+import { AlertCircleIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { toast } from 'sonner'
import {
@@ -131,7 +131,7 @@ const CustomDomainSidePanel = () => {
selectedCustomDomain !== undefined &&
customDomainsDisabledDueToQuota && (
<Alert variant="default" className="mb-2">
- <AlertCircle className="h-4 w-4" />
+ <AlertCircleIcon className="h-4 w-4" />
<AlertTitle>Adding new custom domains temporarily disabled</AlertTitle>
<AlertDescription className="flex flex-col gap-3">
We are working with our upstream DNS provider before we are able to sign up new
diff --git a/apps/studio/components/interfaces/Settings/Database/BannedIPs.tsx b/apps/studio/components/interfaces/Settings/Database/BannedIPs.tsx
index ed01b76b1ec..05c7eaa92f2 100644
--- a/apps/studio/components/interfaces/Settings/Database/BannedIPs.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/BannedIPs.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Globe } from 'lucide-react'
+import { GlobeIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import { toast } from 'sonner'
import { Badge, Card, CardContent, Skeleton } from 'ui'
@@ -146,7 +146,7 @@ export const BannedIPs = () => {
ipList.banned_ipv4_addresses.map((ip) => (
<CardContent key={ip} className="flex items-center justify-between">
<div className="flex items-center space-x-5">
- <Globe size={16} className="text-foreground-lighter" />
+ <GlobeIcon size={16} className="text-foreground-lighter" />
<p className="text-sm font-mono">{ip}</p>
{ip === userIPAddress && <Badge>Your IP address</Badge>}
</div>
diff --git a/apps/studio/components/interfaces/Settings/Database/DatabaseReadOnlyAlert.tsx b/apps/studio/components/interfaces/Settings/Database/DatabaseReadOnlyAlert.tsx
index 54e82ebfc63..b14e166e852 100644
--- a/apps/studio/components/interfaces/Settings/Database/DatabaseReadOnlyAlert.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/DatabaseReadOnlyAlert.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { AlertTriangle, ExternalLink } from 'lucide-react'
+import { AlertTriangleIcon, ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import { useState } from 'react'
import { Alert, AlertDescription, AlertTitle, Button } from 'ui'
@@ -25,7 +25,7 @@ export const DatabaseReadOnlyAlert = () => {
<>
{isReadOnlyMode && (
<Alert variant="destructive">
- <AlertTriangle />
+ <AlertTriangleIcon />
<AlertTitle>
Project is in read-only mode and database is no longer accepting write requests
</AlertTitle>
@@ -60,7 +60,7 @@ export const DatabaseReadOnlyAlert = () => {
</AlertDescription>
<div className="mt-4 flex items-center space-x-2">
<Button onClick={() => setShowConfirmationModal(true)}>Disable read-only mode</Button>
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<a
href={`${DOCS_URL}/guides/platform/database-size#disabling-read-only-mode`}
target="_blank"
diff --git a/apps/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx b/apps/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx
index 800dce887ae..c392f3b2685 100644
--- a/apps/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx
@@ -1,10 +1,10 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { ExternalLink, Info } from 'lucide-react'
+import { ExternalLinkIcon, InfoIcon } from 'lucide-react'
import Link from 'next/link'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { toast } from 'sonner'
-import { Alert, AlertDescription, AlertTitle, Button, InfoIcon } from 'ui'
+import { Alert, AlertDescription, AlertTitle, Button, InfoIcon as StatusInfoIcon } from 'ui'
import {
PageSection,
PageSectionContent,
@@ -141,7 +141,7 @@ export const DiskSizeConfiguration = ({ disabled = false }: DiskSizeConfiguratio
{reportsAll && (
<div className="col-span-2 mt-4">
- <Button asChild iconRight={<ExternalLink size={14} />}>
+ <Button asChild iconRight={<ExternalLinkIcon size={14} />}>
<Link
href={`/project/${projectRef}/reports/database#database-size-report`}
>
@@ -154,7 +154,7 @@ export const DiskSizeConfiguration = ({ disabled = false }: DiskSizeConfiguratio
<div className="col-span-8">
<Alert>
- <Info size={16} />
+ <InfoIcon size={16} />
<AlertTitle>Importing a lot of data?</AlertTitle>
<AlertDescription>
<Markdown
@@ -179,7 +179,7 @@ Read more about [disk management](${DOCS_URL}/guides/platform/database-size#disk
</div>
) : (
<Alert>
- <InfoIcon />
+ <StatusInfoIcon />
<AlertTitle>
{hasAccessToDiskSizeConfig === false
? 'Disk size configuration is not available for projects on the Free Plan'
diff --git a/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsx b/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsx
index 01ef7d240f4..639a87faa6f 100644
--- a/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsx
@@ -2,7 +2,7 @@ import { zodResolver } from '@hookform/resolvers/zod'
import { SupportCategories } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { ExternalLink, Info } from 'lucide-react'
+import { ExternalLinkIcon, InfoIcon } from 'lucide-react'
import Link from 'next/link'
import { SetStateAction, useEffect, useMemo } from 'react'
import { SubmitHandler, useForm } from 'react-hook-form'
@@ -23,10 +23,10 @@ import {
FormControl,
FormField,
FormInputGroupInput,
- InfoIcon,
InputGroup,
InputGroupAddon,
InputGroupText,
+ InfoIcon as StatusInfoIcon,
WarningIcon,
} from 'ui'
import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
@@ -179,7 +179,7 @@ const DiskSizeConfigurationModal = ({
<>
<DialogSection className="w-full space-y-4">
<Alert variant={isAbleToResizeDatabase ? 'default' : 'warning'}>
- <Info size={16} />
+ <InfoIcon size={16} />
<AlertTitle>This operation is only possible every 4 hours</AlertTitle>
<AlertDescription>
<div className="mb-4">
@@ -191,7 +191,7 @@ const DiskSizeConfigurationModal = ({
'DD MMM YYYY, HH:mm (ZZ)'
)}. You can resize your database again in approximately ${formattedTimeTillNextAvailableResize}`}
</div>
- <Button asChild iconRight={<ExternalLink size={14} />}>
+ <Button asChild iconRight={<ExternalLinkIcon size={14} />}>
<Link href={`${DOCS_URL}/guides/platform/database-size#disk-management`}>
Read more about disk management
</Link>
@@ -241,7 +241,7 @@ const DiskSizeConfigurationModal = ({
</>
) : (
<Alert className="border-none">
- <InfoIcon />
+ <StatusInfoIcon />
<AlertTitle>
{hasAccessToDiskModifications === false
? 'Disk size configuration is not available for projects on the Free Plan'
diff --git a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessConfiguration.tsx b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessConfiguration.tsx
index 1bb16ef0642..1580985b5e0 100644
--- a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessConfiguration.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessConfiguration.tsx
@@ -1,6 +1,6 @@
import { PermissionAction, SupportCategories } from '@supabase/shared-types/out/constants'
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import Link from 'next/link'
import { parseAsBoolean, parseAsString, useQueryState } from 'nuqs'
import { useEffect, useMemo, useState } from 'react'
@@ -431,7 +431,7 @@ export const JitDbAccessConfiguration = () => {
>
<div className="flex w-fit shrink-0 items-center justify-end gap-2">
{(isLoadingConfiguration || isUpdatingJitDbAccess) && (
- <Loader2
+ <Loader2Icon
className="animate-spin text-foreground-muted/50"
strokeWidth={2}
size={16}
diff --git a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRulesTable.tsx b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRulesTable.tsx
index 89600ab1529..263985b89dc 100644
--- a/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRulesTable.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/JitDatabaseAccess/JitDbAccessRulesTable.tsx
@@ -1,4 +1,4 @@
-import { EllipsisVertical, Pencil, Plus, Trash2 } from 'lucide-react'
+import { EllipsisVerticalIcon, PencilIcon, PlusIcon, Trash2Icon } from 'lucide-react'
import {
Badge,
Button,
@@ -83,7 +83,7 @@ export function JitDbAccessRulesTable({
<Tooltip>
<TooltipTrigger asChild>
<span className="inline-flex">
- <Button icon={<Plus />} onClick={onAddRule} disabled={addDisabled}>
+ <Button icon={<PlusIcon />} onClick={onAddRule} disabled={addDisabled}>
Add rule
</Button>
</span>
@@ -166,7 +166,7 @@ export function JitDbAccessRulesTable({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- icon={<EllipsisVertical />}
+ icon={<EllipsisVerticalIcon />}
aria-label="More actions"
size="tiny"
className="w-7 hit-area-2"
@@ -182,7 +182,7 @@ export function JitDbAccessRulesTable({
}}
disabled={!canUpdate || disableActions}
>
- <Pencil size={14} className="text-foreground-lighter" />
+ <PencilIcon size={14} className="text-foreground-lighter" />
Edit
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -194,7 +194,7 @@ export function JitDbAccessRulesTable({
}}
disabled={!canUpdate || disableActions}
>
- <Trash2 size={14} className="text-foreground-lighter" />
+ <Trash2Icon size={14} className="text-foreground-lighter" />
Delete
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx
index efa8a8f50de..f69b4b0ae64 100644
--- a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { useParams } from 'common'
-import { HelpCircle } from 'lucide-react'
+import { HelpCircleIcon } from 'lucide-react'
import { useEffect } from 'react'
import { useForm, useWatch } from 'react-hook-form'
import { toast } from 'sonner'
@@ -200,7 +200,7 @@ const AddRestrictionModal = ({
<p>CIDR Block Size</p>
<Tooltip>
<TooltipTrigger>
- <HelpCircle size="14" strokeWidth={2} />
+ <HelpCircleIcon size="14" strokeWidth={2} />
</TooltipTrigger>
<TooltipContent side="bottom" className="w-80">
Classless inter-domain routing (CIDR) notation is the notation used to
diff --git a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx
index d6112f596ea..0907bcbe781 100644
--- a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { AlertCircle, ChevronDown, Globe, Lock } from 'lucide-react'
+import { AlertCircleIcon, ChevronDownIcon, GlobeIcon, LockIcon } from 'lucide-react'
import { useState } from 'react'
import {
Badge,
@@ -155,7 +155,7 @@ export const NetworkRestrictions = () => {
<Button
variant="primary"
disabled={isSectionDisabled}
- iconRight={<ChevronDown size={14} />}
+ iconRight={<ChevronDownIcon size={14} />}
>
Add restriction
</Button>
@@ -212,7 +212,7 @@ export const NetworkRestrictions = () => {
<div className="flex items-center justify-between">
<div className="space-y-2">
<div className="flex items-center space-x-2">
- <AlertCircle
+ <AlertCircleIcon
size={20}
strokeWidth={1.5}
className="text-foreground-light"
@@ -266,7 +266,7 @@ export const NetworkRestrictions = () => {
) : isDisallowedAll ? (
<CardContent className="flex items-center justify-between">
<div className="flex items-start space-x-4">
- <Lock size={20} className="text-foreground-light" strokeWidth={1.5} />
+ <LockIcon size={20} className="text-foreground-light" strokeWidth={1.5} />
<div className="space-y-1">
<p className="text-foreground-light text-sm">
Your database <span className="text-amber-900 opacity-80">cannot</span> be
@@ -323,7 +323,7 @@ export const NetworkRestrictions = () => {
return (
<div key={ip} className="py-4 flex items-center justify-between">
<div className="flex items-center space-x-5">
- <Globe size={16} className="text-foreground-lighter" />
+ <GlobeIcon size={16} className="text-foreground-lighter" />
<Badge>{ipv4Restrictions.includes(ip) ? 'IPv4' : 'IPv6'}</Badge>
<p className="text-sm font-mono">{ip}</p>
</div>
diff --git a/apps/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx b/apps/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx
index 0714bfee41c..f3754ce74f1 100644
--- a/apps/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import { template } from 'lodash'
-import { Download, Loader2 } from 'lucide-react'
+import { DownloadIcon, Loader2Icon } from 'lucide-react'
import { useMemo, useState } from 'react'
import { toast } from 'sonner'
import { Button, Card, CardContent, Switch, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -153,7 +153,7 @@ export const SSLConfiguration = () => {
>
<div className="flex items-center justify-end mt-2.5 space-x-2">
{(isLoading || isSubmitting) && (
- <Loader2
+ <Loader2Icon
aria-hidden="true"
className="animate-spin motion-reduce:animate-none"
strokeWidth={1.5}
@@ -222,7 +222,7 @@ export const SSLConfiguration = () => {
{!hasSSLCertificate ? (
<ButtonTooltip
disabled
- icon={<Download />}
+ icon={<DownloadIcon />}
tooltip={{
content: {
side: 'bottom',
@@ -233,7 +233,7 @@ export const SSLConfiguration = () => {
Download certificate
</ButtonTooltip>
) : (
- <Button icon={<Download />}>
+ <Button icon={<DownloadIcon />}>
<a href={sslCertificateUrl}>Download certificate</a>
</Button>
)}
diff --git a/apps/studio/components/interfaces/Settings/General/ComplianceConfig/ProjectComplianceMode.tsx b/apps/studio/components/interfaces/Settings/General/ComplianceConfig/ProjectComplianceMode.tsx
index a5213b1b05a..c2059613525 100644
--- a/apps/studio/components/interfaces/Settings/General/ComplianceConfig/ProjectComplianceMode.tsx
+++ b/apps/studio/components/interfaces/Settings/General/ComplianceConfig/ProjectComplianceMode.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { toast } from 'sonner'
import { Card, CardContent, Switch, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -91,7 +91,7 @@ export const ComplianceConfig = () => {
</div>
<div className="flex items-center justify-end space-x-2">
{(isLoading || isSubmitting) && (
- <Loader2 className="animate-spin" strokeWidth={1.5} size={16} />
+ <Loader2Icon className="animate-spin" strokeWidth={1.5} size={16} />
)}
{isError && (
<AlertError error={error} subject="Failed to retrieve project settings" />
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx
index 2afffd1f012..bbfc084725e 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx
@@ -1,6 +1,6 @@
import { SupportCategories } from '@supabase/shared-types/out/constants'
import { useFlag, useParams } from 'common'
-import { AlertCircle } from 'lucide-react'
+import { AlertCircleIcon } from 'lucide-react'
import { Card, CardContent } from 'ui'
import {
PageSection,
@@ -140,7 +140,7 @@ export const CustomDomainConfig = () => {
<Card>
<CardContent className="space-y-6">
<div className="flex items-center justify-center space-x-2 py-8">
- <AlertCircle size={16} strokeWidth={1.5} />
+ <AlertCircleIcon size={16} strokeWidth={1.5} />
<p className="text-sm text-foreground-light">
Failed to retrieve custom domain configuration. Please try again later or{' '}
<SupportLink
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx
index ae3282f90bc..c4638b7c770 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx
@@ -1,4 +1,4 @@
-import { Trash } from 'lucide-react'
+import { TrashIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { toast } from 'sonner'
import { Button, Checkbox } from 'ui'
@@ -65,7 +65,7 @@ export const CustomDomainDelete = ({ projectRef, customDomain }: CustomDomainDel
<DocsButton href={`${DOCS_URL}/guides/platform/custom-domains`} />
<Button
variant="danger"
- icon={<Trash />}
+ icon={<TrashIcon />}
onClick={() => setIsDeleteConfirmModalVisible(true)}
>
Delete custom domain
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
index bb8f2fd2787..d7d9a345e8b 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { AlertCircle, RefreshCw } from 'lucide-react'
+import { AlertCircleIcon, RefreshCwIcon } from 'lucide-react'
import { useEffect } from 'react'
import { toast } from 'sonner'
import { Alert, AlertDescription, AlertTitle, Button, WarningIcon } from 'ui'
@@ -159,7 +159,7 @@ export const CustomDomainVerify = () => {
{customDomain?.ssl.status === 'pending_deployment' && (
<div className="flex items-center justify-center space-x-2 py-8">
- <AlertCircle size={16} strokeWidth={1.5} />
+ <AlertCircleIcon size={16} strokeWidth={1.5} />
<p className="text-sm text-foreground-light">
SSL certificate is being deployed. Please wait a few minutes and try again.
</p>
@@ -180,7 +180,7 @@ export const CustomDomainVerify = () => {
</Button>
<Button
variant="primary"
- icon={<RefreshCw />}
+ icon={<RefreshCwIcon />}
onClick={onReverifyCustomDomain}
loading={!isValidating && isReverifyLoading}
disabled={isDeleting || isReverifyLoading || isValidating}
diff --git a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/DNSTableHeaders.tsx b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/DNSTableHeaders.tsx
index 2c860fa0715..aa552576bdf 100644
--- a/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/DNSTableHeaders.tsx
+++ b/apps/studio/components/interfaces/Settings/General/CustomDomainConfig/DNSTableHeaders.tsx
@@ -1,4 +1,4 @@
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
export type DNSTableHeaderProps = {
display: string
@@ -29,7 +29,7 @@ export const DNSTableHeaders = ({ display }: DNSTableHeaderProps) => {
// If we have not detected SSL TXT records ask the user to (re)validate
return (
<div className="flex items-center gap-2">
- <Loader2 size={14} className="animate-spin" />
+ <Loader2Icon size={14} className="animate-spin" />
<p className="text-sm text-foreground-light">
Validating custom domain and TLS configuration...
</p>
diff --git a/apps/studio/components/interfaces/Settings/General/DashboardPreferences.tsx b/apps/studio/components/interfaces/Settings/General/DashboardPreferences.tsx
index 30d2926360f..ae4948b17d6 100644
--- a/apps/studio/components/interfaces/Settings/General/DashboardPreferences.tsx
+++ b/apps/studio/components/interfaces/Settings/General/DashboardPreferences.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { HelpCircle } from 'lucide-react'
+import { HelpCircleIcon } from 'lucide-react'
import { useForm } from 'react-hook-form'
import { toast } from 'sonner'
import {
@@ -169,7 +169,7 @@ const DashboardQueriesDialog = () => {
return (
<Dialog>
<DialogTrigger className="ml-1 translate-y-0.5">
- <HelpCircle size={14} className="hover:text-foreground transition" />
+ <HelpCircleIcon size={14} className="hover:text-foreground transition" />
</DialogTrigger>
<DialogContent aria-describedby={undefined}>
<DialogHeader>
diff --git a/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx b/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx
index 3ee6613ef22..bc679bdf96e 100644
--- a/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx
+++ b/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { CirclePause } from 'lucide-react'
+import { CirclePauseIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useState } from 'react'
import { toast } from 'sonner'
@@ -97,7 +97,7 @@ export const PauseProjectButton = () => {
return (
<>
<ButtonTooltip
- icon={<CirclePause />}
+ icon={<CirclePauseIcon />}
onClick={() => setIsModalOpen(true)}
loading={isPausing}
disabled={buttonDisabled}
diff --git a/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx b/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx
index b8c550ff733..dc876c7e4e0 100644
--- a/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx
+++ b/apps/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { useFlag, useParams } from 'common'
-import { AlertCircle, AlertTriangle } from 'lucide-react'
+import { AlertCircleIcon, AlertTriangleIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useEffect, useState } from 'react'
@@ -173,7 +173,7 @@ export const ProjectUpgradeAlert = () => {
{/* @ts-ignore */}
{(data?.potential_breaking_changes ?? []).length > 0 && (
<Alert variant="destructive" title="Breaking changes">
- <AlertCircle className="h-4 w-4" strokeWidth={2} />
+ <AlertCircleIcon className="h-4 w-4" strokeWidth={2} />
<AlertTitle>Breaking changes</AlertTitle>
<AlertDescription className="flex flex-col gap-3">
<p>
@@ -200,7 +200,7 @@ export const ProjectUpgradeAlert = () => {
variant="warning"
title="Custom Postgres roles using md5 authentication have been detected"
>
- <AlertTriangle className="h-4 w-4" strokeWidth={2} />
+ <AlertTriangleIcon className="h-4 w-4" strokeWidth={2} />
<AlertTitle>
Custom Postgres roles will not work automatically after upgrade
</AlertTitle>
diff --git a/apps/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx b/apps/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx
index 68213ca961d..b356f7c7116 100644
--- a/apps/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx
+++ b/apps/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useFlag } from 'common'
-import { ChevronDown, RefreshCw } from 'lucide-react'
+import { ChevronDownIcon, RefreshCwIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useState } from 'react'
import { toast } from 'sonner'
@@ -133,7 +133,7 @@ export const RestartServerButton = () => {
type="button"
aria-label="Choose restart type"
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
- icon={<ChevronDown />}
+ icon={<ChevronDownIcon />}
disabled={!canRestartProject}
/>
</DropdownMenuTrigger>
@@ -159,7 +159,7 @@ export const RestartServerButton = () => {
</div>
) : (
<Button
- icon={<RefreshCw />}
+ icon={<RefreshCwIcon />}
className="w-full @lg:w-auto"
disabled={isLoading}
onClick={() => {
diff --git a/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx b/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx
index 9e5c1e23eba..cdf9002019f 100644
--- a/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx
+++ b/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useQueryClient } from '@tanstack/react-query'
import { useFlag } from 'common'
-import { Loader, Shield, Wrench } from 'lucide-react'
+import { LoaderIcon, ShieldIcon, WrenchIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { toast } from 'sonner'
import {
@@ -127,7 +127,7 @@ export const TransferProjectButton = () => {
<ul className="mt-4 space-y-5 text-sm">
<li className="flex gap-4">
<span className="shrink-0 mt-1">
- <Loader />
+ <LoaderIcon />
</span>
<div>
<p className="font-bold">Possible downtime</p>
@@ -140,7 +140,7 @@ export const TransferProjectButton = () => {
<li className="flex gap-4">
<span className="shrink-0 mt-1">
- <Shield />
+ <ShieldIcon />
</span>
<div>
<p className="font-bold">Permissions</p>
@@ -153,7 +153,7 @@ export const TransferProjectButton = () => {
<li className="flex gap-4">
<span className="shrink-0 mt-1">
- <Wrench size={24} className="shrink-0" />
+ <WrenchIcon size={24} className="shrink-0" />
</span>
<div>
<p className="font-bold">Features</p>
diff --git a/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsx b/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsx
index e0ce64bfec4..83d44924176 100644
--- a/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsx
+++ b/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsx
@@ -1,4 +1,4 @@
-import { Truck } from 'lucide-react'
+import { TruckIcon } from 'lucide-react'
import { Card, CardContent } from 'ui'
import {
PageSection,
@@ -28,7 +28,7 @@ export const TransferProjectPanel = () => {
<CardContent>
<div className="flex flex-col @lg:flex-row @lg:justify-between @lg:items-center gap-4">
<div className="flex space-x-4">
- <Truck className="mt-1" />
+ <TruckIcon className="mt-1" />
<div className="space-y-1 xl:max-w-lg">
<p className="text-sm">Transfer project to another organization</p>
<p className="text-sm text-foreground-light">
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/Edge.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/Edge.tsx
index 993f2cac35d..e8861f9e4f2 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/Edge.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/Edge.tsx
@@ -1,6 +1,6 @@
import { BaseEdge, Edge, EdgeLabelRenderer, getSmoothStepPath, type EdgeProps } from '@xyflow/react'
import { useParams } from 'common'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { EdgeData } from './InstanceConfiguration.constants'
@@ -63,7 +63,7 @@ export const SmoothstepEdge = ({
}}
>
{isLoading ? (
- <Loader2 size={12} className="animate-spin" />
+ <Loader2Icon size={12} className="animate-spin" />
) : (
<p className="font-mono text-xs">{lagValue}s</p>
)}
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/HaInstanceConfiguration.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/HaInstanceConfiguration.tsx
index 8c31ccb71ea..c8b0bd59d73 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/HaInstanceConfiguration.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/HaInstanceConfiguration.tsx
@@ -1,6 +1,6 @@
import { useQuery } from '@tanstack/react-query'
import { useParams } from 'common'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useMemo } from 'react'
import { EmptyStatePresentational } from 'ui-patterns/EmptyStatePresentational'
@@ -91,7 +91,7 @@ export const HaInstanceConfiguration = () => {
{isPending ? (
<>
<span className="sr-only">Loading cluster topology...</span>
- <Loader2
+ <Loader2Icon
aria-hidden="true"
className="motion-safe:animate-spin text-foreground-light"
/>
@@ -99,7 +99,7 @@ export const HaInstanceConfiguration = () => {
) : (
<EmptyStatePresentational
icon={
- <Loader2
+ <Loader2Icon
size={24}
strokeWidth={1.5}
aria-hidden="true"
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/HaInstanceNode.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/HaInstanceNode.tsx
index 8ce3f52c735..d8925d0db99 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/HaInstanceNode.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/HaInstanceNode.tsx
@@ -1,5 +1,12 @@
import { Handle, Node, NodeProps, Position } from '@xyflow/react'
-import { Database, DatabaseBackup, HelpCircle, Layers, Loader2, Network } from 'lucide-react'
+import {
+ DatabaseBackupIcon,
+ DatabaseIcon,
+ HelpCircleIcon,
+ LayersIcon,
+ Loader2Icon,
+ NetworkIcon,
+} from 'lucide-react'
import { Badge, cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { ComputeMetricsFooter } from './ComputeMetricsFooter'
@@ -49,7 +56,7 @@ export const MultigatewayNode = ({ data }: NodeProps<Node<MultigatewayNodeData>>
<div className="flex items-start p-3 gap-x-4" style={{ width: NODE_CARD_WIDTH }}>
<div className="flex gap-x-3">
<div className="min-w-8 h-8 bg-blue-600 border border-blue-800 rounded-md flex items-center justify-center">
- <Network aria-hidden="true" size={16} />
+ <NetworkIcon aria-hidden="true" size={16} />
</div>
<div className="flex flex-col gap-y-0.5">
<p className="text-sm">Multigateway</p>
@@ -88,7 +95,7 @@ export const HaPrimaryNode = ({ data }: NodeProps<Node<HaPoolerNodeData>>) => {
<div className="flex items-start justify-between p-3" style={{ width: NODE_CARD_WIDTH }}>
<div className="flex gap-x-3">
<div className="w-8 h-8 bg-brand-500 border border-brand-600 rounded-md flex items-center justify-center">
- <Database aria-hidden="true" size={16} />
+ <DatabaseIcon aria-hidden="true" size={16} />
</div>
<div className="flex flex-col gap-y-0.5">
<div className="flex items-center gap-x-2">
@@ -144,9 +151,9 @@ export const HaReplicaNode = ({ data }: NodeProps<Node<HaPoolerNodeData>>) => {
)}
>
{status === 'coming_up' ? (
- <Loader2 aria-hidden="true" className="motion-safe:animate-spin" size={16} />
+ <Loader2Icon aria-hidden="true" className="motion-safe:animate-spin" size={16} />
) : (
- <DatabaseBackup aria-hidden="true" size={16} />
+ <DatabaseBackupIcon aria-hidden="true" size={16} />
)}
</div>
<div className="flex flex-col gap-y-0.5">
@@ -171,13 +178,13 @@ export const HaShardNode = ({ data }: NodeProps<Node<HaShardNodeData>>) => {
return (
<div className="relative h-full w-full rounded-md border border-default bg-surface-100/25">
<div className="pointer-events-auto absolute top-3 left-3 flex items-center gap-x-2 rounded-full border border-default bg-surface-100 pl-3 pr-2 py-1">
- <Layers aria-hidden="true" size={14} className="text-foreground-light" />
+ <LayersIcon aria-hidden="true" size={14} className="text-foreground-light" />
<p className="text-sm">{name}</p>
<Tooltip>
{/* Renders a button so the explanation is keyboard reachable */}
<TooltipTrigger className="flex items-center gap-x-1 text-sm text-foreground-light">
Automatic failover
- <HelpCircle aria-hidden="true" size={14} />
+ <HelpCircleIcon aria-hidden="true" size={14} />
</TooltipTrigger>
<TooltipContent side="bottom" className="max-w-72 text-center">
If the primary database fails, a replica in this shard is automatically promoted to take
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx
index 8ff13f36b16..da9d8aa8652 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceConfiguration.tsx
@@ -1,7 +1,7 @@
import { Edge, ReactFlowProvider } from '@xyflow/react'
import { useParams } from 'common'
import { partition } from 'lodash'
-import { Globe2, Loader2, Network } from 'lucide-react'
+import { Globe2Icon, Loader2Icon, NetworkIcon } from 'lucide-react'
import { useEffect, useMemo, useState } from 'react'
import { Button, FloatingPlate, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -167,7 +167,7 @@ const InstanceConfigurationUI = () => {
{(isLoading || isLoadingProject) && (
<div role="status">
<span className="sr-only">Loading infrastructure...</span>
- <Loader2
+ <Loader2Icon
aria-hidden="true"
className="motion-safe:animate-spin text-foreground-light"
/>
@@ -183,7 +183,7 @@ const InstanceConfigurationUI = () => {
<Tooltip>
<TooltipTrigger asChild>
<Button
- icon={<Network size={15} />}
+ icon={<NetworkIcon size={15} />}
className={`rounded-r-none transition motion-reduce:transition-none ${
view === 'flow' ? 'opacity-100' : 'opacity-50'
}`}
@@ -201,7 +201,7 @@ const InstanceConfigurationUI = () => {
<Tooltip>
<TooltipTrigger asChild>
<Button
- icon={<Globe2 size={15} />}
+ icon={<Globe2Icon size={15} />}
className={`rounded-l-none transition motion-reduce:transition-none ${
view === 'map' ? 'opacity-100' : 'opacity-50'
}`}
@@ -245,7 +245,10 @@ export const InstanceConfiguration = () => {
return (
<div role="status" className="h-full w-full flex items-center justify-center">
<span className="sr-only">Loading infrastructure...</span>
- <Loader2 aria-hidden="true" className="motion-safe:animate-spin text-foreground-light" />
+ <Loader2Icon
+ aria-hidden="true"
+ className="motion-safe:animate-spin text-foreground-light"
+ />
</div>
)
}
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceNode.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceNode.tsx
index 5a20b9637dd..801b5c4936a 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceNode.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceNode.tsx
@@ -1,7 +1,13 @@
import { Handle, Node, NodeProps, Position } from '@xyflow/react'
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { Database, DatabaseBackup, HelpCircle, Loader2, MoreVertical } from 'lucide-react'
+import {
+ DatabaseBackupIcon,
+ DatabaseIcon,
+ HelpCircleIcon,
+ Loader2Icon,
+ MoreVerticalIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { parseAsBoolean, parseAsString, useQueryStates } from 'nuqs'
import { toast } from 'sonner'
@@ -59,7 +65,7 @@ export const LoadBalancerNode = ({ data }: NodeProps<Node<LoadBalancerData>>) =>
>
<div className="flex gap-x-3">
<div className="min-w-8 h-8 bg-blue-600 border border-blue-800 rounded-md flex items-center justify-center">
- <Database size={16} />
+ <DatabaseIcon size={16} />
</div>
<div className="flex flex-col gap-y-0.5">
<p className="text-sm">API Load Balancer</p>
@@ -71,7 +77,7 @@ export const LoadBalancerNode = ({ data }: NodeProps<Node<LoadBalancerData>>) =>
</div>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="text" icon={<MoreVertical />} className="px-1" />
+ <Button variant="text" icon={<MoreVerticalIcon />} className="px-1" />
</DropdownMenuTrigger>
<DropdownMenuContent className="w-40" side="bottom" align="end">
<DropdownMenuItem asChild className="gap-x-2">
@@ -111,7 +117,7 @@ export const PrimaryNode = ({ data }: NodeProps<Node<PrimaryNodeData>>) => {
>
<div className="flex gap-x-3">
<div className="w-8 h-8 bg-brand-500 border border-brand-600 rounded-md flex items-center justify-center">
- <Database size={16} />
+ <DatabaseIcon size={16} />
</div>
<div className="flex flex-col gap-y-0.5">
<p className="text-sm">Primary Database</p>
@@ -232,9 +238,9 @@ export const ReplicaNode = ({ data }: NodeProps<Node<ReplicaNodeData>>) => {
)}
>
{isInTransition ? (
- <Loader2 className="animate-spin" size={16} />
+ <Loader2Icon className="animate-spin" size={16} />
) : (
- <DatabaseBackup size={16} />
+ <DatabaseBackupIcon size={16} />
)}
</div>
<div className="flex flex-col gap-y-0.5">
@@ -253,7 +259,7 @@ export const ReplicaNode = ({ data }: NodeProps<Node<ReplicaNodeData>>) => {
<Badge variant="destructive">Init failed</Badge>
<Tooltip>
<TooltipTrigger>
- <HelpCircle size={16} />
+ <HelpCircleIcon size={16} />
</TooltipTrigger>
<TooltipContent
side="bottom"
@@ -349,7 +355,7 @@ export const ReplicaNode = ({ data }: NodeProps<Node<ReplicaNodeData>>) => {
</div>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="text" icon={<MoreVertical />} className="px-1" />
+ <Button variant="text" icon={<MoreVerticalIcon />} className="px-1" />
</DropdownMenuTrigger>
<DropdownMenuContent className="w-40" side="bottom" align="end">
<DropdownMenuItem
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx
index 39cf26f6697..56c05b3a72f 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx
@@ -1,7 +1,7 @@
import { useParams } from 'common'
import dayjs from 'dayjs'
import { partition, uniqBy } from 'lodash'
-import { MoreVertical } from 'lucide-react'
+import { MoreVerticalIcon } from 'lucide-react'
import Link from 'next/link'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useCallback, useEffect, useState } from 'react'
@@ -299,7 +299,7 @@ const MapView = () => {
{database.identifier !== ref && (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="text" icon={<MoreVertical />} className="px-1" />
+ <Button variant="text" icon={<MoreVerticalIcon />} className="px-1" />
</DropdownMenuTrigger>
<DropdownMenuContent className="w-40" side="bottom" align="end">
<DropdownMenuItem
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaDetails.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaDetails.tsx
index dbfd54f7857..689b0ec93fc 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaDetails.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaDetails.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { BarChart2 } from 'lucide-react'
+import { BarChart2Icon } from 'lucide-react'
import { useMemo } from 'react'
import { AWS_REGIONS } from 'shared-data'
import { Card, CardContent, CardHeader, CardTitle } from 'ui'
@@ -94,7 +94,7 @@ export const ReadReplicaDetails = () => {
isEmpty={chartData.length === 0}
emptyState={
<ChartEmptyState
- icon={<BarChart2 size={16} />}
+ icon={<BarChart2Icon size={16} />}
title="No data to show"
description="It may take up to 24 hours for data to refresh"
/>
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaRow.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaRow.tsx
index 330978e5306..b825af92344 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaRow.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicaRow.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { Database as DatabaseIcon } from 'icons'
-import { Loader2, Minus, MoreVertical, RotateCcw, Trash } from 'lucide-react'
+import { Loader2Icon, MinusIcon, MoreVerticalIcon, RotateCcwIcon, TrashIcon } from 'lucide-react'
import Link from 'next/link'
import { useMemo, useState } from 'react'
import { AWS_REGIONS } from 'shared-data'
@@ -92,13 +92,13 @@ export const ReadReplicaRow = ({ replica, onUpdateReplica }: ReadReplicaRow) =>
>
{statusLabel}
</Badge>
- {isInTransition && <Loader2 className="animate-spin w-3 h-3" />}
+ {isInTransition && <Loader2Icon className="animate-spin w-3 h-3" />}
</div>
</TableCell>
<TableCell>
{isErrorLag || status !== REPLICA_STATUS.ACTIVE_HEALTHY ? (
- <Minus size={18} className="text-foreground-lighter" />
+ <MinusIcon size={18} className="text-foreground-lighter" />
) : isLoadingLag ? (
<ShimmeringLoader />
) : (
@@ -113,7 +113,7 @@ export const ReadReplicaRow = ({ replica, onUpdateReplica }: ReadReplicaRow) =>
</Button>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button icon={<MoreVertical />} className="w-7" />
+ <Button icon={<MoreVerticalIcon />} className="w-7" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-52">
<DropdownMenuItem
@@ -121,7 +121,7 @@ export const ReadReplicaRow = ({ replica, onUpdateReplica }: ReadReplicaRow) =>
disabled={status !== 'ACTIVE_HEALTHY'}
onClick={() => setShowConfirmRestart(true)}
>
- <RotateCcw size={14} />
+ <RotateCcwIcon size={14} />
<span>Restart replica</span>
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -130,7 +130,7 @@ export const ReadReplicaRow = ({ replica, onUpdateReplica }: ReadReplicaRow) =>
disabled={status === 'GOING_DOWN'}
onClick={() => setShowConfirmDrop(true)}
>
- <Trash size={14} />
+ <TrashIcon size={14} />
<span>Drop replica</span>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicasSection.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicasSection.tsx
index 429b5281cfc..0c15c690ce0 100644
--- a/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicasSection.tsx
+++ b/apps/studio/components/interfaces/Settings/Infrastructure/ReadReplicas/ReadReplicasSection.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { Database } from 'icons'
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useEffect, useState } from 'react'
import { Button, Card, CardContent, Table, TableBody, TableHead, TableHeader, TableRow } from 'ui'
@@ -98,7 +98,7 @@ export const ReadReplicasSection = ({ onRecommendCompute }: ReadReplicasSectionP
<Button
type="button"
variant="primary"
- icon={<Plus />}
+ icon={<PlusIcon />}
onClick={() => setAddReplica(true)}
>
Add read replica
@@ -150,7 +150,7 @@ export const ReadReplicasSection = ({ onRecommendCompute }: ReadReplicasSectionP
description="All reads and writes currently go to the primary."
>
{!isHighAvailability && (
- <Button type="button" icon={<Plus />} onClick={() => setAddReplica(true)}>
+ <Button type="button" icon={<PlusIcon />} onClick={() => setAddReplica(true)}>
Add read replica
</Button>
)}
diff --git a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkAttentionAdmonition.tsx b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkAttentionAdmonition.tsx
index 154908934f5..b6b3e47f283 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkAttentionAdmonition.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkAttentionAdmonition.tsx
@@ -1,4 +1,4 @@
-import { SquareArrowOutUpRight } from 'lucide-react'
+import { SquareArrowOutUpRightIcon } from 'lucide-react'
import Link from 'next/link'
import { Button } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -26,7 +26,7 @@ export function AWSPrivateLinkAttentionAdmonition({
className={className}
actions={
copy.shouldShowAcceptLink && (
- <Button className="w-min" icon={<SquareArrowOutUpRight />} asChild>
+ <Button className="w-min" icon={<SquareArrowOutUpRightIcon />} asChild>
<Link
target="_blank"
rel="noopener noreferrer"
diff --git a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkSection.tsx b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkSection.tsx
index d3aa0c272ac..29c302fce29 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkSection.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/AWSPrivateLink/AWSPrivateLinkSection.tsx
@@ -1,4 +1,4 @@
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import {
@@ -126,7 +126,7 @@ export const AWSPrivateLinkSection = () => {
<div className={cn(promptPlanUpgrade && 'opacity-25 pointer-events-none')}>
<div className="flex items-center justify-between mb-3">
<h3 className="text-sm font-medium text-foreground">Connections</h3>
- <Button icon={<Plus />} onClick={onAddAccount}>
+ <Button icon={<PlusIcon />} onClick={onAddAccount}>
Add connection
</Button>
</div>
diff --git a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
index 249b8c8b448..8918bf92a4e 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { useState } from 'react'
import { useForm, useWatch } from 'react-hook-form'
@@ -534,7 +534,7 @@ export const GitHubIntegrationConnectionForm = ({
</FormControl>
<div className="absolute top-2.5 right-3 flex items-center gap-2">
{isCheckingBranch && (
- <Loader2 size={14} className="animate-spin" />
+ <Loader2Icon size={14} className="animate-spin" />
)}
</div>
</div>
diff --git a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubRepositoryField.tsx b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubRepositoryField.tsx
index def429b9010..80ebb4873d6 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubRepositoryField.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubRepositoryField.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown, PlusIcon, RefreshCw } from 'lucide-react'
+import { ChevronDownIcon, PlusIcon, RefreshCwIcon } from 'lucide-react'
import { useMemo, useState, type ComponentProps, type ReactNode } from 'react'
import { useWatch, type FieldValues, type Path, type UseFormReturn } from 'react-hook-form'
import {
@@ -137,7 +137,7 @@ export const GitHubRepositoryField = <TFormValues extends FieldValues>({
className="justify-start h-[34px] w-full [&>div:last-child]:ml-auto"
disabled={disabled || isLoading}
loading={!!gitHubAuthorization && isLoading}
- iconRight={<ChevronDown />}
+ iconRight={<ChevronDownIcon />}
>
{selectedRepository?.name ||
selectedRepositoryName ||
@@ -205,7 +205,7 @@ export const GitHubRepositoryField = <TFormValues extends FieldValues>({
openInstallGitHubIntegrationWindow('authorize', refetch)
}}
>
- <RefreshCw size={16} className="mt-0.5 shrink-0" />
+ <RefreshCwIcon size={16} className="mt-0.5 shrink-0" />
<div className="text-xs text-foreground-light">
Re-authorize GitHub with SSO to show all repositories
</div>
diff --git a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubStatus.tsx b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubStatus.tsx
index 337adeed3f7..2a534bc709d 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubStatus.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubStatus.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { AlertCircle, ArrowUpRight, CheckCircle2 } from 'lucide-react'
+import { AlertCircleIcon, ArrowUpRightIcon, CheckCircle2Icon } from 'lucide-react'
import Image from 'next/image'
import Link from 'next/link'
import { HoverCard, HoverCardContent, HoverCardTrigger } from 'ui'
@@ -45,7 +45,7 @@ export const GitHubStatus = () => {
>
<div className="w-full flex items-center justify-between">
<h3 className="text-sm">GitHub connection</h3>
- <ArrowUpRight strokeWidth={1} className="h-4 w-4" />
+ <ArrowUpRightIcon strokeWidth={1} className="h-4 w-4" />
</div>
<p className="mt-0.5 text-xs text-foreground-lighter flex items-center gap-2">
{isConnected ? (
@@ -84,9 +84,9 @@ export const GitHubStatus = () => {
<div className="flex flex-col gap-2 text-xs text-foreground-light">
<div className="flex items-center gap-2">
{hasGitBranchSync ? (
- <CheckCircle2 size={12} className="text-brand-600" />
+ <CheckCircle2Icon size={12} className="text-brand-600" />
) : (
- <AlertCircle size={12} className="text-warning" />
+ <AlertCircleIcon size={12} className="text-warning" />
)}
<span>
{hasGitBranchSync
@@ -96,9 +96,9 @@ export const GitHubStatus = () => {
</div>
<div className="flex items-center gap-2">
{hasAutomaticBranching ? (
- <CheckCircle2 size={12} className="text-brand-600" />
+ <CheckCircle2Icon size={12} className="text-brand-600" />
) : (
- <AlertCircle size={12} className="text-warning" />
+ <AlertCircleIcon size={12} className="text-warning" />
)}
<span>
{hasAutomaticBranching
diff --git a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx
index e1f03081552..4e053db0028 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/GithubIntegration/GithubSection.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useCallback, useMemo } from 'react'
import { toast } from 'sonner'
@@ -159,7 +159,7 @@ export const GitHubSection = ({ isProjectScoped = false }: { isProjectScoped?: b
onClick={onAddGitHubConnection}
showNode={false}
disabled={!canCreateGitHubConnection}
- icon={<Plus />}
+ icon={<PlusIcon />}
>
Add connection
</EmptyIntegrationConnection>
@@ -203,7 +203,7 @@ function GitHubOrgEmptyState({ disabled, onClick }: { disabled: boolean; onClick
>
{disabled ? (
<ButtonTooltip
- icon={<Plus />}
+ icon={<PlusIcon />}
size="tiny"
disabled
tooltip={{
@@ -216,7 +216,7 @@ function GitHubOrgEmptyState({ disabled, onClick }: { disabled: boolean; onClick
Add connection
</ButtonTooltip>
) : (
- <Button icon={<Plus />} size="tiny" type="button" onClick={onClick}>
+ <Button icon={<PlusIcon />} size="tiny" type="button" onClick={onClick}>
Add connection
</Button>
)}
diff --git a/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx b/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx
index d2abba8e69b..c029e879c49 100644
--- a/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx
+++ b/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { ChevronDown, ExternalLink } from 'lucide-react'
+import { ChevronDownIcon, ExternalLinkIcon } from 'lucide-react'
import { useCallback, useMemo } from 'react'
import { toast } from 'sonner'
import { Button, cn, Collapsible, CollapsibleContent, CollapsibleTrigger } from 'ui'
@@ -195,7 +195,7 @@ export const VercelSection = ({ isProjectScoped = false }: { isProjectScoped?: b
<Button
className="group"
iconRight={
- <ChevronDown className="transition-transform group-data-[state=open]:rotate-180" />
+ <ChevronDownIcon className="transition-transform group-data-[state=open]:rotate-180" />
}
>
Edit
@@ -233,7 +233,7 @@ export const VercelSection = ({ isProjectScoped = false }: { isProjectScoped?: b
showNode={false}
disabled={isBranch}
href={integrationUrl}
- icon={<ExternalLink />}
+ icon={<ExternalLinkIcon />}
disabledTooltip="Install the Vercel integration on your project's main branch"
>
Install Vercel integration
diff --git a/apps/studio/components/interfaces/Settings/Logs/ErrorCodeDialog.tsx b/apps/studio/components/interfaces/Settings/Logs/ErrorCodeDialog.tsx
index e09b2316887..b9599a16a0b 100644
--- a/apps/studio/components/interfaces/Settings/Logs/ErrorCodeDialog.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/ErrorCodeDialog.tsx
@@ -1,4 +1,4 @@
-import { AlertTriangle } from 'lucide-react'
+import { AlertTriangleIcon } from 'lucide-react'
import {
Alert,
AlertDescription,
@@ -99,7 +99,7 @@ const ErrorExplanation = ({
const ErrorState = ({ refetch }: { refetch?: () => void }) => (
<Alert variant="warning">
- <AlertTriangle />
+ <AlertTriangleIcon />
<AlertTitle>Lookup failed</AlertTitle>
<AlertDescription>
<p>Failed to look up error code help info</p>
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogSelection.tsx b/apps/studio/components/interfaces/Settings/Logs/LogSelection.tsx
index b0ef9ed89a0..cab76b69386 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogSelection.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogSelection.tsx
@@ -1,4 +1,4 @@
-import { Check, Copy, MousePointerClick, X } from 'lucide-react'
+import { CheckIcon, CopyIcon, MousePointerClickIcon, XIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { Button, cn, copyToClipboard, Tabs, TabsContent, TabsList, TabsTrigger } from 'ui'
import { CodeBlock } from 'ui-patterns/CodeBlock'
@@ -110,7 +110,7 @@ const LogSelection = ({ log, onClose, queryType, isLoading, error }: LogSelectio
text: isLoading ? 'Loading log...' : 'Copy as JSON',
},
}}
- icon={showCopied ? <Check /> : <Copy />}
+ icon={showCopied ? <CheckIcon /> : <CopyIcon />}
onClick={() => {
setShowCopied(true)
copyToClipboard(JSON.stringify(log, null, 2))
@@ -118,7 +118,7 @@ const LogSelection = ({ log, onClose, queryType, isLoading, error }: LogSelectio
/>
<Button variant="text" onClick={onClose}>
- <X size={14} strokeWidth={2} />
+ <XIcon size={14} strokeWidth={2} />
</Button>
</div>
</TabsList>
@@ -173,7 +173,7 @@ function LogDetailEmptyState({
<div className="relative flex h-4 w-32 items-center rounded-sm border border-control px-2">
<div className="h-0.5 w-2/3 rounded-full bg-surface-300"></div>
<div className="absolute right-1 -bottom-4">
- <MousePointerClick size="24" strokeWidth={1} />
+ <MousePointerClickIcon size="24" strokeWidth={1} />
</div>
</div>
<div className="flex flex-col gap-1">
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx b/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx
index f26d55e9197..3e7096be687 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { IS_PLATFORM, useParams } from 'common'
-import { Copy, Eye, EyeOff, Play } from 'lucide-react'
+import { CopyIcon, EyeIcon, EyeOffIcon, PlayIcon } from 'lucide-react'
import { Key, ReactNode, useCallback, useEffect, useMemo, useRef, useState } from 'react'
import DataGrid, {
Column,
@@ -500,7 +500,10 @@ export const LogTable = ({
{showHistogramToggle && (
<div className="flex items-center gap-2">
- <Button icon={isHistogramShowing ? <Eye /> : <EyeOff />} onClick={onHistogramToggle}>
+ <Button
+ icon={isHistogramShowing ? <EyeIcon /> : <EyeOffIcon />}
+ onClick={onHistogramToggle}
+ >
Histogram
</Button>
</div>
@@ -529,7 +532,7 @@ export const LogTable = ({
variant="primary"
disabled={!hasEditorValue}
onClick={onRun}
- iconRight={<Play size={12} />}
+ iconRight={<PlayIcon size={12} />}
loading={isLoading}
>
Run
@@ -614,7 +617,7 @@ export const LogTable = ({
}
}}
>
- <Copy size={14} />
+ <CopyIcon size={14} />
<span className="text-xs">Copy event message</span>
</ContextMenuItem>
</ContextMenuContent>
diff --git a/apps/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx b/apps/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx
index 6899eb113d9..961eb40c306 100644
--- a/apps/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { Clock, HistoryIcon, Lock } from 'lucide-react'
+import { ClockIcon, HistoryIcon, LockIcon } from 'lucide-react'
import type { PropsWithChildren } from 'react'
import { useCallback, useEffect, useMemo, useState } from 'react'
import {
@@ -286,7 +286,7 @@ export const LogsDatePicker = ({
const triggerButton = (
<PopoverTrigger asChild>
- <Button icon={<Clock size={12} />} {...buttonTriggerProps}>
+ <Button icon={<ClockIcon size={12} />} {...buttonTriggerProps}>
{value.isHelper ? value.text : formatDateRange(value.from, value.to)}
</Button>
</PopoverTrigger>
@@ -326,7 +326,7 @@ export const LogsDatePicker = ({
/>
{helper.text}
{showHelperBadge(helper) ? (
- <Lock size={12} className="text-foreground-muted" />
+ <LockIcon size={12} className="text-foreground-muted" />
) : null}
</Label>
))}
diff --git a/apps/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx b/apps/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx
index 4678c0b83f9..05fae303115 100644
--- a/apps/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { SqlEditor } from 'icons'
-import { Edit, Trash } from 'lucide-react'
+import { EditIcon, TrashIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { parseAsString, useQueryStates } from 'nuqs'
import { useState } from 'react'
@@ -93,7 +93,7 @@ export const SavedQueriesItem = ({ item }: SavedQueriesItemProps) => {
dropdownItems={
<>
<DropdownMenuItem onClick={() => setShowUpdateModal(true)}>
- <Edit size={14} className="mr-2" />
+ <EditIcon size={14} className="mr-2" />
Edit query
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -102,7 +102,7 @@ export const SavedQueriesItem = ({ item }: SavedQueriesItemProps) => {
setShowConfirmModal(true)
}}
>
- <Trash size={14} className="mr-2" />
+ <TrashIcon size={14} className="mr-2" />
Delete query
</DropdownMenuItem>
</>
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx b/apps/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx
index 196e17f1302..90e6c3b8547 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx
@@ -5,7 +5,7 @@
*/
import dayjs from 'dayjs'
-import { AlertCircle, Info } from 'lucide-react'
+import { AlertCircleIcon, InfoIcon } from 'lucide-react'
import React from 'react'
import { cn } from 'ui'
@@ -154,7 +154,7 @@ export const SeverityFormatter = ({
return (
<Layout className="gap-1">
<div className=" p-0.5 rounded-sm text-red-900!">
- <AlertCircle size={14} strokeWidth={2} />
+ <AlertCircleIcon size={14} strokeWidth={2} />
</div>
<span className="text-red-900! block! titlecase">{text}</span>
</Layout>
@@ -167,7 +167,7 @@ export const SeverityFormatter = ({
return (
<Layout className="gap-1">
<div className=" p-0.5 rounded-sm text-blue-900!">
- <AlertCircle size={14} strokeWidth={2} />
+ <AlertCircleIcon size={14} strokeWidth={2} />
</div>
<span className="text-blue-900! block! titlecase">{text}</span>
</Layout>
@@ -178,7 +178,7 @@ export const SeverityFormatter = ({
return (
<Layout className="gap-1">
<div className=" p-0.5 rounded-sm text-blue-900!">
- <Info size={14} strokeWidth={2} />
+ <InfoIcon size={14} strokeWidth={2} />
</div>
<span className="text-blue-900! block! titlecase">{text}</span>
</Layout>
@@ -190,7 +190,7 @@ export const SeverityFormatter = ({
return (
<Layout className="gap-1">
<div className=" p-0.5 rounded-sm text-amber-900!">
- <AlertCircle size={14} strokeWidth={2} />
+ <AlertCircleIcon size={14} strokeWidth={2} />
</div>
<span className="text-amber-900! block! titlecase">{text}</span>
</Layout>
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx b/apps/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx
index 9a7990961eb..be9591d9c25 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { Rewind } from 'lucide-react'
+import { RewindIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { PropsWithChildren, useEffect, useRef, useState } from 'react'
import { Button } from 'ui'
@@ -327,7 +327,7 @@ export const LogsPreviewer = ({
<ShortcutTooltip shortcutId={SHORTCUT_IDS.LOGS_PREVIEW_LOAD_OLDER} side="top">
<Button
onClick={loadOlder}
- icon={<Rewind />}
+ icon={<RewindIcon />}
loading={isLoadingOlder}
disabled={isLoadingOlder}
>
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx b/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
index 740fd03b061..100108d8c86 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
@@ -1,5 +1,12 @@
import { useFlag, useParams } from 'common'
-import { BookOpen, Check, ChevronDown, ChevronsUpDown, Copy, ExternalLink } from 'lucide-react'
+import {
+ BookOpenIcon,
+ CheckIcon,
+ ChevronDownIcon,
+ ChevronsUpDownIcon,
+ CopyIcon,
+ ExternalLinkIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { ReactNode, useEffect, useState } from 'react'
import { logConstants } from 'shared-data'
@@ -136,7 +143,7 @@ export const LogsQueryPanel = ({
<div className="flex items-center gap-2">
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button iconRight={<ChevronDown />}>Insert source</Button>
+ <Button iconRight={<ChevronDownIcon />}>Insert source</Button>
</DropdownMenuTrigger>
<DropdownMenuContent
side="bottom"
@@ -159,7 +166,7 @@ export const LogsQueryPanel = ({
{logsTemplates && (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button iconRight={<ChevronDown />}>Templates</Button>
+ <Button iconRight={<ChevronDownIcon />}>Templates</Button>
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="start">
{templates
@@ -236,7 +243,7 @@ export const LogsQueryPanel = ({
<Sheet open={showReference} onOpenChange={setShowReference}>
<SheetTrigger asChild>
- <Button variant="text" icon={<BookOpen />} className="px-2">
+ <Button variant="text" icon={<BookOpenIcon />} className="px-2">
<span>Field Reference</span>
</Button>
</SheetTrigger>
@@ -266,7 +273,7 @@ export const LogsQueryPanel = ({
className="text-primary"
>
unnesting joins
- <ExternalLink
+ <ExternalLinkIcon
size="14"
className="ml-1 inline translate-y-[-2px]"
strokeWidth={1.5}
@@ -284,7 +291,9 @@ export const LogsQueryPanel = ({
size={'small'}
aria-expanded={open}
className="w-full justify-between"
- iconRight={<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />}
+ iconRight={
+ <ChevronsUpDownIcon className="ml-2 h-4 w-4 shrink-0 opacity-50" />
+ }
>
{value ? selectedSchema?.name : 'Select source...'}
</Button>
@@ -304,7 +313,7 @@ export const LogsQueryPanel = ({
setOpen(false)
}}
>
- <Check
+ <CheckIcon
className={cn(
'mr-2 h-4 w-4',
selectedSchema?.reference === schema.reference
@@ -380,14 +389,14 @@ const Field = ({
{isCopied ? (
<Tooltip>
<TooltipTrigger>
- <Check size={14} strokeWidth={3} className="text-primary" />
+ <CheckIcon size={14} strokeWidth={3} className="text-primary" />
</TooltipTrigger>
<TooltipContent side="bottom">Copied</TooltipContent>
</Tooltip>
) : (
<Tooltip>
<TooltipTrigger>
- <Copy size={14} strokeWidth={1.5} />
+ <CopyIcon size={14} strokeWidth={1.5} />
</TooltipTrigger>
<TooltipContent side="bottom">Copy value</TooltipContent>
</Tooltip>
diff --git a/apps/studio/components/interfaces/Settings/Logs/LogsTableEmptyState.tsx b/apps/studio/components/interfaces/Settings/Logs/LogsTableEmptyState.tsx
index 6e58cb212a0..5b2e81e82fa 100644
--- a/apps/studio/components/interfaces/Settings/Logs/LogsTableEmptyState.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/LogsTableEmptyState.tsx
@@ -1,4 +1,4 @@
-import { Search } from 'lucide-react'
+import { SearchIcon } from 'lucide-react'
const EmptyStateRow = () => {
return (
@@ -19,7 +19,7 @@ export function LogsTableEmptyState({
<EmptyStateRow />
<EmptyStateRow />
<EmptyStateRow />
- <Search size={30} className="absolute right-3 -bottom-2 text-foreground-lighter" />
+ <SearchIcon size={30} className="absolute right-3 -bottom-2 text-foreground-lighter" />
</div>
<div className="flex flex-col gap-1 px-5">
<h3 className="text-lg text-foreground">{title}</h3>
diff --git a/apps/studio/components/interfaces/Settings/Logs/MultiSelectActionBar.tsx b/apps/studio/components/interfaces/Settings/Logs/MultiSelectActionBar.tsx
index 855484d2f9d..5105ecaabfd 100644
--- a/apps/studio/components/interfaces/Settings/Logs/MultiSelectActionBar.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/MultiSelectActionBar.tsx
@@ -1,4 +1,4 @@
-import { Check, ChevronDown, Copy, X as XIcon } from 'lucide-react'
+import { CheckIcon, ChevronDownIcon, CopyIcon, XIcon } from 'lucide-react'
import {
Button,
DropdownMenu,
@@ -63,26 +63,30 @@ export function MultiSelectActionBar({
<Button
size="tiny"
icon={
- copiedFormat ? <Check size={12} className="text-primary" /> : <Copy size={12} />
+ copiedFormat ? (
+ <CheckIcon size={12} className="text-primary" />
+ ) : (
+ <CopyIcon size={12} />
+ )
}
- iconRight={<ChevronDown size={11} />}
+ iconRight={<ChevronDownIcon size={11} />}
>
{copiedFormat ? 'Copied!' : 'Copy'}
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-60">
<DropdownMenuItem onClick={() => onCopy('json')} className="gap-x-2">
- <Copy size={13} />
+ <CopyIcon size={13} />
<p>Copy as JSON</p>
<ShortcutBadge shortcutId={SHORTCUT_IDS.RESULTS_COPY_JSON} className="ml-auto" />
</DropdownMenuItem>
<DropdownMenuItem onClick={() => onCopy('markdown')} className="gap-x-2">
- <Copy size={13} />
+ <CopyIcon size={13} />
<p>Copy as Markdown</p>
<ShortcutBadge shortcutId={SHORTCUT_IDS.RESULTS_COPY_MARKDOWN} className="ml-auto" />
</DropdownMenuItem>
<DropdownMenuItem onClick={() => onCopy('csv')} className="gap-x-2">
- <Copy size={13} />
+ <CopyIcon size={13} />
<p>Copy as CSV</p>
<ShortcutBadge shortcutId={SHORTCUT_IDS.RESULTS_COPY_CSV} className="ml-auto" />
</DropdownMenuItem>
diff --git a/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx b/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx
index d172a3787d4..c9f4d71e087 100644
--- a/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Eye, EyeOff, RefreshCw, Search, Terminal, X } from 'lucide-react'
+import { EyeIcon, EyeOffIcon, RefreshCwIcon, SearchIcon, TerminalIcon, XIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useEffect, useState, type RefObject } from 'react'
@@ -151,7 +151,7 @@ export const PreviewFilterPanel = ({
/>
</ShortcutTooltip>
<InputGroupAddon>
- <Search />
+ <SearchIcon />
</InputGroupAddon>
<InputGroupAddon align="inline-end">
<div className="flex items-center gap-x-1">
@@ -176,7 +176,7 @@ export const PreviewFilterPanel = ({
handleInputSearch('')
}}
>
- <X />
+ <XIcon />
</InputGroupButton>
</TooltipTrigger>
<TooltipContent side="bottom">Clear search</TooltipContent>
@@ -202,7 +202,7 @@ export const PreviewFilterPanel = ({
</div>
</div>
)}
- <RefreshCw />
+ <RefreshCwIcon />
</div>
}
loading={isLoading}
@@ -258,7 +258,7 @@ export const PreviewFilterPanel = ({
<ShortcutTooltip shortcutId={SHORTCUT_IDS.LOGS_PREVIEW_TOGGLE_CHART} side="bottom">
<Button
onClick={() => onToggleEventChart()}
- icon={isShowingEventChart ? <Eye /> : <EyeOff />}
+ icon={isShowingEventChart ? <EyeIcon /> : <EyeOffIcon />}
>
Chart
</Button>
@@ -279,7 +279,7 @@ export const PreviewFilterPanel = ({
<div className="flex items-center justify-center gap-x-2">
<Tooltip>
<TooltipTrigger asChild>
- <Button asChild className="px-1.5" icon={<Terminal />}>
+ <Button asChild className="px-1.5" icon={<TerminalIcon />}>
<Link href={queryUrl} />
</Button>
</TooltipTrigger>
diff --git a/apps/studio/components/interfaces/Settings/Logs/RecentQueriesItem.tsx b/apps/studio/components/interfaces/Settings/Logs/RecentQueriesItem.tsx
index 62c93b2d8d7..52f005e58c4 100644
--- a/apps/studio/components/interfaces/Settings/Logs/RecentQueriesItem.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/RecentQueriesItem.tsx
@@ -1,4 +1,4 @@
-import { Play } from 'lucide-react'
+import { PlayIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { Button } from 'ui'
@@ -24,7 +24,7 @@ const RecentQueriesItem: React.FC<Props> = ({ item }) => {
<Table.td className="text-right">
<Button
variant="primary"
- iconRight={<Play size={10} />}
+ iconRight={<PlayIcon size={10} />}
onClick={() =>
router.push(`/project/${ref}/logs/explorer?q=${encodeURIComponent(item.unchecked_sql)}`)
}
diff --git a/apps/studio/components/interfaces/Settings/Logs/SidebarV2/SidebarItem.tsx b/apps/studio/components/interfaces/Settings/Logs/SidebarV2/SidebarItem.tsx
index e03093adf65..8c84d473e7f 100644
--- a/apps/studio/components/interfaces/Settings/Logs/SidebarV2/SidebarItem.tsx
+++ b/apps/studio/components/interfaces/Settings/Logs/SidebarV2/SidebarItem.tsx
@@ -1,4 +1,4 @@
-import { MoreHorizontal } from 'lucide-react'
+import { MoreHorizontalIcon } from 'lucide-react'
import Link from 'next/link'
import { type MouseEventHandler } from 'react'
import { Button, cn, DropdownMenu, DropdownMenuContent, DropdownMenuTrigger } from 'ui'
@@ -42,7 +42,7 @@ export function LogsSidebarItem({ label, icon, dropdownItems, href, isActive, on
variant="text"
title="Actions"
className="space-x-0 h-7 px-1.5 opacity-0 group-hover:opacity-100 bg-transparent! data-open:opacity-100"
- icon={<MoreHorizontal size={14} />}
+ icon={<MoreHorizontalIcon size={14} />}
>
<div className="sr-only">Actions</div>
</Button>
diff --git a/apps/studio/components/interfaces/Sidebar.tsx b/apps/studio/components/interfaces/Sidebar.tsx
index b64a41b823e..2ab3f7af56e 100644
--- a/apps/studio/components/interfaces/Sidebar.tsx
+++ b/apps/studio/components/interfaces/Sidebar.tsx
@@ -1,7 +1,15 @@
import { LOCAL_STORAGE_KEYS, useFlag, useIsMFAEnabled, useParams } from 'common'
import { Home } from 'icons'
import { isUndefined } from 'lodash'
-import { Blocks, Boxes, ChartArea, PanelLeftDashed, Receipt, Settings, Users } from 'lucide-react'
+import {
+ BlocksIcon,
+ BoxesIcon,
+ ChartAreaIcon,
+ PanelLeftDashedIcon,
+ ReceiptIcon,
+ SettingsIcon,
+ UsersIcon,
+} from 'lucide-react'
import { AnimatePresence, motion, MotionProps } from 'motion/react'
import Link from 'next/link'
import { useRouter } from 'next/router'
@@ -98,7 +106,7 @@ export const Sidebar = ({ className, ...props }: SidebarProps) => {
<Button
variant="text"
className={`w-min px-1.5 mx-0.5 ${sidebarBehaviour === 'open' ? 'px-2!' : ''}`}
- icon={<PanelLeftDashed size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />}
+ icon={<PanelLeftDashedIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />}
aria-label="Sidebar control"
/>
</DropdownMenuTrigger>
@@ -418,28 +426,28 @@ const OrganizationLinks = () => {
label: 'Projects',
href: `/org/${organizationSlug}`,
key: 'projects',
- icon: <Boxes size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <BoxesIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
shortcutId: SHORTCUT_IDS.NAV_ORG_PROJECTS,
},
{
label: 'Team',
href: `/org/${organizationSlug}/team`,
key: 'team',
- icon: <Users size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <UsersIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
shortcutId: SHORTCUT_IDS.NAV_ORG_TEAM,
},
{
label: 'Integrations',
href: `/org/${organizationSlug}/integrations`,
key: 'integrations',
- icon: <Blocks size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <BlocksIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
shortcutId: SHORTCUT_IDS.NAV_ORG_INTEGRATIONS,
},
{
label: 'Usage',
href: `/org/${organizationSlug}/usage`,
key: 'usage',
- icon: <ChartArea size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <ChartAreaIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
shortcutId: SHORTCUT_IDS.NAV_ORG_USAGE,
},
...(showBilling
@@ -448,7 +456,7 @@ const OrganizationLinks = () => {
label: 'Billing',
href: `/org/${organizationSlug}/billing`,
key: 'billing',
- icon: <Receipt size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <ReceiptIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
shortcutId: SHORTCUT_IDS.NAV_ORG_BILLING,
},
]
@@ -457,7 +465,7 @@ const OrganizationLinks = () => {
label: 'Organization Settings',
href: `/org/${organizationSlug}/general`,
key: 'settings',
- icon: <Settings size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <SettingsIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
shortcutId: SHORTCUT_IDS.NAV_ORG_SETTINGS,
},
]
diff --git a/apps/studio/components/interfaces/SignIn/ResetPasswordForm.tsx b/apps/studio/components/interfaces/SignIn/ResetPasswordForm.tsx
index ad60b6950d3..34ae7fc55ee 100644
--- a/apps/studio/components/interfaces/SignIn/ResetPasswordForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/ResetPasswordForm.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { useParams } from 'common'
-import { Eye, EyeOff } from 'lucide-react'
+import { EyeIcon, EyeOffIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useState } from 'react'
import { useForm, useWatch } from 'react-hook-form'
@@ -80,7 +80,7 @@ export const ResetPasswordForm = () => {
disabled={form.formState.isSubmitting}
actions={
<Button
- icon={currentPasswordHidden ? <Eye /> : <EyeOff />}
+ icon={currentPasswordHidden ? <EyeIcon /> : <EyeOffIcon />}
className="w-7"
onClick={() => setCurrentPasswordHidden((prev) => !prev)}
/>
@@ -111,7 +111,7 @@ export const ResetPasswordForm = () => {
autoComplete="new-password"
actions={
<Button
- icon={passwordHidden ? <Eye /> : <EyeOff />}
+ icon={passwordHidden ? <EyeIcon /> : <EyeOffIcon />}
className="w-7"
onClick={() => setPasswordHidden((prev) => !prev)}
/>
diff --git a/apps/studio/components/interfaces/SignIn/SignInForm.tsx b/apps/studio/components/interfaces/SignIn/SignInForm.tsx
index ac85aefc03f..1852641ae24 100644
--- a/apps/studio/components/interfaces/SignIn/SignInForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/SignInForm.tsx
@@ -3,7 +3,7 @@ import { zodResolver } from '@hookform/resolvers/zod'
import type { AuthError } from '@supabase/supabase-js'
import { useQueryClient } from '@tanstack/react-query'
import { useAuthError } from 'common'
-import { Eye, EyeOff } from 'lucide-react'
+import { EyeIcon, EyeOffIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useEffect, useRef, useState } from 'react'
@@ -187,7 +187,7 @@ export const SignInForm = () => {
title={passwordHidden ? `Show password` : `Hide password`}
aria-label={passwordHidden ? `Show password` : `Hide password`}
className="absolute right-1 top-1 px-1.5"
- icon={passwordHidden ? <Eye /> : <EyeOff />}
+ icon={passwordHidden ? <EyeIcon /> : <EyeOffIcon />}
disabled={isSubmitting}
onClick={() => setPasswordHidden((prev) => !prev)}
/>
diff --git a/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx b/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx
index 7e9da128c79..1df18f47fca 100644
--- a/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx
@@ -2,7 +2,7 @@ import { zodResolver } from '@hookform/resolvers/zod'
import type { Factor } from '@supabase/supabase-js'
import { useQueryClient } from '@tanstack/react-query'
import { useAuthError, useFlag, useParams } from 'common'
-import { Lock } from 'lucide-react'
+import { LockIcon } from 'lucide-react'
import Link from 'next/link'
import { useSearchParams } from 'next/navigation'
import { useRouter } from 'next/router'
@@ -183,7 +183,7 @@ export const SignInMfaForm = ({ context = 'sign-in' }: SignInMfaFormProps) => {
<FormControl>
<div className="relative">
<div className="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-foreground-light [&_svg]:stroke-[1.5] [&_svg]:h-[20px] [&_svg]:w-[20px]">
- <Lock />
+ <LockIcon />
</div>
<Input
id="code"
diff --git a/apps/studio/components/interfaces/SignIn/SignInPartner.tsx b/apps/studio/components/interfaces/SignIn/SignInPartner.tsx
index 4ddbef11b93..5187661b365 100644
--- a/apps/studio/components/interfaces/SignIn/SignInPartner.tsx
+++ b/apps/studio/components/interfaces/SignIn/SignInPartner.tsx
@@ -1,4 +1,4 @@
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useEffect } from 'react'
@@ -48,7 +48,7 @@ export const SignInPartner = () => {
return (
<div className="relative mx-auto w-full flex flex-col items-center justify-center gap-y-6">
- <Loader2 className="animate-spin" />
+ <Loader2Icon className="animate-spin" />
<h2 className="text-lg text-center">Signing in to Supabase Dashboard</h2>
<p className="text-xs text-foreground-lighter text-center max-w-[220px] sm:max-w-full">
By continuing, you agree to Supabase’s{' '}
diff --git a/apps/studio/components/interfaces/SignIn/SignInSSOForm.tsx b/apps/studio/components/interfaces/SignIn/SignInSSOForm.tsx
index 18e278a8aa5..b2c6617c030 100644
--- a/apps/studio/components/interfaces/SignIn/SignInSSOForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/SignInSSOForm.tsx
@@ -1,7 +1,7 @@
import HCaptcha from '@hcaptcha/react-hcaptcha'
import { zodResolver } from '@hookform/resolvers/zod'
import { useQueryClient } from '@tanstack/react-query'
-import { Lock } from 'lucide-react'
+import { LockIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useRef, useState } from 'react'
@@ -147,7 +147,7 @@ export const SignInWithSSOButton = () => {
return (
<LastSignInWrapper type="sso">
- <Button asChild block size="large" variant="outline" icon={<Lock />}>
+ <Button asChild block size="large" variant="outline" icon={<LockIcon />}>
<Link href={{ pathname: '/sign-in-sso', query: router.query }}>Continue with SSO</Link>
</Button>
</LastSignInWrapper>
diff --git a/apps/studio/components/interfaces/SignIn/SignUpForm.tsx b/apps/studio/components/interfaces/SignIn/SignUpForm.tsx
index 8dda979e629..a11488cff23 100644
--- a/apps/studio/components/interfaces/SignIn/SignUpForm.tsx
+++ b/apps/studio/components/interfaces/SignIn/SignUpForm.tsx
@@ -1,6 +1,6 @@
import HCaptcha from '@hcaptcha/react-hcaptcha'
import { zodResolver } from '@hookform/resolvers/zod'
-import { Eye, EyeOff } from 'lucide-react'
+import { EyeIcon, EyeOffIcon } from 'lucide-react'
import { motion } from 'motion/react'
import { useRouter } from 'next/router'
import { parseAsString, useQueryStates } from 'nuqs'
@@ -193,7 +193,7 @@ export const SignUpForm = ({ onSuccess }: { onSuccess?: () => void }) => {
title={passwordHidden ? `Show password` : `Hide password`}
aria-label={passwordHidden ? `Show password` : `Hide password`}
className="absolute right-1 top-1 px-1.5"
- icon={passwordHidden ? <Eye /> : <EyeOff />}
+ icon={passwordHidden ? <EyeIcon /> : <EyeOffIcon />}
disabled={isSubmitting}
onClick={() => setPasswordHidden((prev) => !prev)}
/>
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CopyEnvButton.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CopyEnvButton.tsx
index 949d5bd483f..0de2eecba51 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CopyEnvButton.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CopyEnvButton.tsx
@@ -1,4 +1,4 @@
-import { Copy } from 'lucide-react'
+import { CopyIcon } from 'lucide-react'
import { useCallback, useState } from 'react'
import { toast } from 'sonner'
import { Button, copyToClipboard } from 'ui'
@@ -39,7 +39,7 @@ export const CopyEnvButton = ({
}, [serverOptions, values])
return (
- <Button loading={isLoading} icon={<Copy />} onClick={onCopy}>
+ <Button loading={isLoading} icon={<CopyIcon />} onClick={onCopy}>
Copy all
</Button>
)
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableInstructions.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableInstructions.tsx
index cc8c3d86eb3..e05a47d41cb 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableInstructions.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableInstructions.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Eye, EyeOff } from 'lucide-react'
+import { EyeIcon, EyeOffIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import {
Accordion,
@@ -211,7 +211,7 @@ export const CreateTableInstructions = ({
className="w-7"
loading={isFetchingSecretValues}
onClick={() => setShowKeys(!showKeys)}
- icon={showKeys ? <EyeOff /> : <Eye />}
+ icon={showKeys ? <EyeOffIcon /> : <EyeIcon />}
tooltip={{
content: {
side: 'bottom',
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableInstructionsDialog.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableInstructionsDialog.tsx
index b9d9e6b60f7..5b9ddd3cf76 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableInstructionsDialog.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableInstructionsDialog.tsx
@@ -1,5 +1,5 @@
import { useFlag } from 'common'
-import { ChevronDown, Plus } from 'lucide-react'
+import { ChevronDownIcon, PlusIcon } from 'lucide-react'
import { useState } from 'react'
import {
Button,
@@ -29,7 +29,7 @@ export const CreateTableInstructionsDialog = () => {
<div className="flex items-center">
<Button
variant="primary"
- icon={<Plus />}
+ icon={<PlusIcon />}
className={cn(
enableCreationOfTablesFromDashboard &&
'rounded-r-none hover:z-10 focus-visible:z-10 focus-visible:rounded-r-sm'
@@ -48,7 +48,7 @@ export const CreateTableInstructionsDialog = () => {
variant="primary"
aria-label="More table creation options"
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
- icon={<ChevronDown />}
+ icon={<ChevronDownIcon />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-48" align="end">
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableSheet.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableSheet.tsx
index a2d72ca0260..71192404644 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableSheet.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/CreateTable/CreateTableSheet.tsx
@@ -1,6 +1,6 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { useParams } from 'common'
-import { Plus, X } from 'lucide-react'
+import { PlusIcon, XIcon } from 'lucide-react'
import { useState } from 'react'
import { Control, SubmitHandler, useFieldArray, useForm, useWatch } from 'react-hook-form'
import { toast } from 'sonner'
@@ -178,7 +178,7 @@ export const CreateTableSheet = ({ open, onOpenChange }: CreateTableSheetProps)
{namespaces.length > 0 && <SelectSeparator />}
<SelectItem value={NEW_NAMESPACE_MARKER}>
<div className="flex items-center gap-x-2">
- <Plus size={14} />
+ <PlusIcon size={14} />
<p>Create a new namespace</p>
</div>
</SelectItem>
@@ -223,7 +223,7 @@ export const CreateTableSheet = ({ open, onOpenChange }: CreateTableSheetProps)
<div className="flex items-center justify-between">
<p className="text-sm">Columns</p>
<Button
- icon={<Plus />}
+ icon={<PlusIcon />}
onClick={() => appendColumn({ name: '', type: 'string' })}
>
Add column
@@ -330,7 +330,7 @@ const ColumnRow = ({ control, idx, isCreating, onRemove }: ColumnRowProps) => {
aria-label="Remove"
variant="text"
size="tiny"
- icon={<X strokeWidth={1.5} size={14} />}
+ icon={<XIcon strokeWidth={1.5} size={14} />}
className="w-6 h-6"
onClick={onRemove}
/>
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/DecryptedReadOnlyInput.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/DecryptedReadOnlyInput.tsx
index 03debdf7ffc..3e7d6eec363 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/DecryptedReadOnlyInput.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/DecryptedReadOnlyInput.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ExternalLink, Eye, EyeOff, Loader } from 'lucide-react'
+import { ExternalLinkIcon, EyeIcon, EyeOffIcon, LoaderIcon } from 'lucide-react'
import Link from 'next/link'
import { useState } from 'react'
import { Button, CardContent, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -58,7 +58,7 @@ export const DecryptedReadOnlyInput = ({
rel="noreferrer noopener"
href={`/project/${ref}/integrations/vault/secrets?search=${value}`}
>
- <ExternalLink
+ <ExternalLinkIcon
size={14}
className="text-foreground-lighter hover:text-foreground transition"
/>
@@ -82,14 +82,14 @@ export const DecryptedReadOnlyInput = ({
secureEntry ? (
isLoading ? (
<div className="flex items-center justify-center">
- <Button disabled className="w-7" icon={<Loader className="animate-spin" />} />
+ <Button disabled className="w-7" icon={<LoaderIcon className="animate-spin" />} />
</div>
) : (
<div className="flex items-center justify-center">
<Button
className="w-7"
loading={showHidden && isDecryptedValueLoading}
- icon={showHidden ? <Eye /> : <EyeOff />}
+ icon={showHidden ? <EyeIcon /> : <EyeOffIcon />}
onClick={() => setShowHidden(!showHidden)}
/>
</div>
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/TableRowComponent.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/TableRowComponent.tsx
index 3a088212579..0c9b8117dec 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/TableRowComponent.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/TableRowComponent.tsx
@@ -2,7 +2,15 @@ import { components } from 'api-types'
import { useParams } from 'common'
import { SqlEditor, TableEditor } from 'icons'
import { uniq } from 'lodash'
-import { Eye, Loader2, MoreVertical, Pause, Play, Table2, Trash } from 'lucide-react'
+import {
+ EyeIcon,
+ Loader2Icon,
+ MoreVerticalIcon,
+ PauseIcon,
+ PlayIcon,
+ Table2Icon,
+ TrashIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { useMemo, useState } from 'react'
import { toast } from 'sonner'
@@ -303,7 +311,7 @@ export const TableRowComponent = ({ table, schema, namespace }: TableRowComponen
<TableCell className="min-w-[120px]">
<div className="flex items-center gap-x-3">
<div className="w-5 flex justify-center items-center">
- <Table2 size={16} />
+ <Table2Icon size={16} />
</div>
<p>{table.name}</p>
</div>
@@ -315,7 +323,7 @@ export const TableRowComponent = ({ table, schema, namespace }: TableRowComponen
<TooltipTrigger asChild>
<div className="flex items-center gap-x-2">
{isLoadingPipelineStatus ? (
- <Loader2 size={12} className="animate-spin text-foreground-lighter" />
+ <Loader2Icon size={12} className="animate-spin text-foreground-lighter" />
) : isPipelineRunning ? (
<DotPing
animate={isReplicating}
@@ -348,7 +356,7 @@ export const TableRowComponent = ({ table, schema, namespace }: TableRowComponen
<>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button className="w-7" icon={<MoreVertical />} />
+ <Button className="w-7" icon={<MoreVerticalIcon />} />
</DropdownMenuTrigger>
<DropdownMenuContent side="bottom" align="end" className="w-fit min-w-[180px]">
@@ -359,7 +367,7 @@ export const TableRowComponent = ({ table, schema, namespace }: TableRowComponen
<Link
href={`/project/${projectRef}/database/pipelines/${pipeline?.id}?search=${inferredPostgresTable.schema}.${inferredPostgresTable.name}`}
>
- <Eye size={12} className="text-foreground-lighter" />
+ <EyeIcon size={12} className="text-foreground-lighter" />
<p>View pipeline</p>
</Link>
</DropdownMenuItem>
@@ -369,7 +377,7 @@ export const TableRowComponent = ({ table, schema, namespace }: TableRowComponen
className="flex items-center gap-x-2"
onClick={() => setShowStopReplicationModal(true)}
>
- <Pause size={12} className="text-foreground-lighter" />
+ <PauseIcon size={12} className="text-foreground-lighter" />
<p>Disable replication</p>
</DropdownMenuItem>
) : (
@@ -377,7 +385,7 @@ export const TableRowComponent = ({ table, schema, namespace }: TableRowComponen
className="flex items-center gap-x-2"
onClick={() => setShowStartReplicationModal(true)}
>
- <Play size={12} className="text-foreground-lighter" />
+ <PlayIcon size={12} className="text-foreground-lighter" />
<p>Enable replication</p>
</DropdownMenuItem>
)}
@@ -396,7 +404,7 @@ export const TableRowComponent = ({ table, schema, namespace }: TableRowComponen
},
}}
>
- <Trash size={12} className="text-foreground-lighter" />
+ <TrashIcon size={12} className="text-foreground-lighter" />
<p>Delete table</p>
</DropdownMenuItemTooltip>
</DropdownMenuContent>
@@ -411,7 +419,7 @@ export const TableRowComponent = ({ table, schema, namespace }: TableRowComponen
<Button
loading={isDeletingNamespaceTable}
className="w-7"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-fit min-w-[180px]">
@@ -419,7 +427,7 @@ export const TableRowComponent = ({ table, schema, namespace }: TableRowComponen
className="flex items-center gap-x-2"
onClick={() => setShowRemoveTableModal(true)}
>
- <Trash size={12} className="text-foreground-lighter" />
+ <TrashIcon size={12} className="text-foreground-lighter" />
<p>Delete table</p>
</DropdownMenuItem>
</DropdownMenuContent>
@@ -451,7 +459,7 @@ export const TableRowComponent = ({ table, schema, namespace }: TableRowComponen
<InsertDataDialog table={table.name} fdwTable={x} />
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button className="w-7" icon={<MoreVertical />} />
+ <Button className="w-7" icon={<MoreVerticalIcon />} />
</DropdownMenuTrigger>
<DropdownMenuContent className="w-fit min-w-[180px]" align="end">
<DropdownMenuItem asChild className="flex items-center gap-x-2">
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/index.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/index.tsx
index 45b9684a32d..c79218bbfda 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/index.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/NamespaceWithTables/index.tsx
@@ -1,5 +1,13 @@
import { useParams } from 'common'
-import { ChevronRight, Info, Loader2, MoreVertical, Plus, RefreshCw, Trash } from 'lucide-react'
+import {
+ ChevronRightIcon,
+ InfoIcon,
+ Loader2Icon,
+ MoreVerticalIcon,
+ PlusIcon,
+ RefreshCwIcon,
+ TrashIcon,
+} from 'lucide-react'
import { useEffect, useMemo, useState } from 'react'
import { toast } from 'sonner'
import {
@@ -241,7 +249,7 @@ export const NamespaceWithTables = ({
{!HIDE_REPLICATION_USER_FLOW && validSchema && (
<>
- <ChevronRight size={12} className="text-foreground-muted" />
+ <ChevronRightIcon size={12} className="text-foreground-muted" />
<Tooltip>
<TooltipTrigger
asChild
@@ -255,7 +263,7 @@ export const NamespaceWithTables = ({
}
>
{displaySchema}
- {tables.length === 0 && <Info size={12} />}
+ {tables.length === 0 && <InfoIcon size={12} />}
</span>
</TooltipTrigger>
<TooltipContent side="bottom">
@@ -271,7 +279,7 @@ export const NamespaceWithTables = ({
<Tooltip>
<TooltipTrigger>
<div className="flex items-center gap-x-2 text-foreground-lighter">
- <Loader2 size={14} className="animate-spin" />
+ <Loader2Icon size={14} className="animate-spin" />
<p className="text-sm">
Connecting {publicationTablesNotSyncedToNamespaceTables.length} table
{publicationTablesNotSyncedToNamespaceTables.length > 1 ? 's' : ''}
@@ -301,14 +309,14 @@ export const NamespaceWithTables = ({
) : null}
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button className="w-7" icon={<MoreVertical />} />
+ <Button className="w-7" icon={<MoreVerticalIcon />} />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-fit min-w-[180px]">
<DropdownMenuItem
className="flex items-center gap-x-2"
onClick={() => setShowConfirmDeleteNamespace(true)}
>
- <Trash size={12} className="text-foreground-lighter" />
+ <TrashIcon size={12} className="text-foreground-lighter" />
<p>Delete namespace</p>
</DropdownMenuItem>
</DropdownMenuContent>
@@ -318,7 +326,7 @@ export const NamespaceWithTables = ({
<Button
variant={schema ? 'default' : 'warning'}
size="tiny"
- icon={schema ? <RefreshCw /> : <Plus size={14} />}
+ icon={schema ? <RefreshCwIcon /> : <PlusIcon size={14} />}
onClick={() => (schema ? rescanNamespace() : setImportForeignSchemaShown(true))}
loading={isImportingForeignSchema || isLoadingNamespaceTables}
>
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/index.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/index.tsx
index a8d50d0cc6f..8223b140fe4 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/index.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/AnalyticsBucketDetails/index.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { uniq } from 'lodash'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useRouter } from 'next/router'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useEffect, useMemo, useState } from 'react'
@@ -187,7 +187,7 @@ export const AnalyticBucketDetails = () => {
) : isPollingForData ? (
<EmptyStatePresentational
icon={
- <Loader2
+ <Loader2Icon
size={24}
strokeWidth={1.5}
className="animate-spin text-foreground-muted"
diff --git a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/index.tsx b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/index.tsx
index b2a987ad33a..035f7f801d3 100644
--- a/apps/studio/components/interfaces/Storage/AnalyticsBuckets/index.tsx
+++ b/apps/studio/components/interfaces/Storage/AnalyticsBuckets/index.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { AnalyticsBucket as AnalyticsBucketIcon } from 'icons'
-import { ChevronRight, Search } from 'lucide-react'
+import { ChevronRightIcon, SearchIcon } from 'lucide-react'
import { useRouter } from 'next/navigation'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useState } from 'react'
@@ -111,7 +111,7 @@ export const AnalyticsBuckets = () => {
placeholder="Search for a bucket"
value={filterString}
onChange={(e) => setFilterString(e.target.value)}
- icon={<Search />}
+ icon={<SearchIcon />}
/>
<CreateBucketButton onClick={() => setVisible(true)} />
</div>
@@ -181,7 +181,7 @@ export const AnalyticsBuckets = () => {
<TableCell>
<div className="flex justify-end items-center h-full">
- <ChevronRight
+ <ChevronRightIcon
size={14}
className="text-foreground-muted/60"
/>
diff --git a/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerColumn.tsx b/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerColumn.tsx
index 9b0f7e770f8..d487f11d70b 100644
--- a/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerColumn.tsx
+++ b/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerColumn.tsx
@@ -3,7 +3,7 @@ import { useInfiniteQuery, useQueryClient } from '@tanstack/react-query'
import { useDebounce } from '@uidotdev/usehooks'
import { useParams } from 'common'
import { compact, get, sum, uniqBy } from 'lodash'
-import { Upload } from 'lucide-react'
+import { UploadIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { DragEventHandler, useCallback, useMemo, useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -80,7 +80,7 @@ const DragOverOverlay = ({
className="w-3/4 h-32 border-2 border-dashed border-muted rounded-md flex flex-col items-center justify-center p-6 pointer-events-none"
style={{ backgroundColor: 'rgba(0,0,0,0.4)' }}
>
- <Upload className="text-white pointer-events-none" size={20} strokeWidth={2} />
+ <UploadIcon className="text-white pointer-events-none" size={20} strokeWidth={2} />
<p className="text-center text-sm text-white mt-2 pointer-events-none">
Drop your files to upload to this folder
</p>
diff --git a/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerHeader.tsx b/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerHeader.tsx
index e851762ac4f..2180cbaaf03 100644
--- a/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerHeader.tsx
+++ b/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerHeader.tsx
@@ -2,15 +2,15 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useQueryClient } from '@tanstack/react-query'
import { useParams } from 'common'
import {
- ArrowLeft,
- Check,
- ChevronRight,
- Columns,
- List,
- RefreshCw,
- Search,
- Upload,
- X,
+ ArrowLeftIcon,
+ CheckIcon,
+ ChevronRightIcon,
+ ColumnsIcon,
+ ListIcon,
+ RefreshCwIcon,
+ SearchIcon,
+ UploadIcon,
+ XIcon,
} from 'lucide-react'
import { useRef, useState, type ChangeEvent } from 'react'
import {
@@ -88,7 +88,7 @@ const HeaderBreadcrumbs = ({
return (
<div className="flex shrink-0 items-center" key={`${crumb.index}-${crumb.name}`}>
{idx !== 0 && (
- <ChevronRight size={14} strokeWidth={2} className="text-foreground-muted mx-1" />
+ <ChevronRightIcon size={14} strokeWidth={2} className="text-foreground-muted mx-1" />
)}
{isEllipsis ? (
<span className="max-w-24 truncate text-sm text-foreground-light">{crumb.name}</span>
@@ -217,7 +217,7 @@ export const BucketFilePickerHeader = () => {
{breadcrumbs.length > 0 && (
<>
<Button
- icon={<ArrowLeft size={16} strokeWidth={2} />}
+ icon={<ArrowLeftIcon size={16} strokeWidth={2} />}
size="tiny"
variant="text"
className="shrink-0 px-1"
@@ -239,7 +239,7 @@ export const BucketFilePickerHeader = () => {
<div className="flex shrink-0 items-center space-x-1 px-2">
<Button
size="tiny"
- icon={<RefreshCw />}
+ icon={<RefreshCwIcon />}
variant="text"
loading={isRefreshing}
onClick={refreshData}
@@ -253,9 +253,9 @@ export const BucketFilePickerHeader = () => {
variant="text"
icon={
view === 'LIST' ? (
- <List size={16} strokeWidth={2} />
+ <ListIcon size={16} strokeWidth={2} />
) : (
- <Columns size={16} strokeWidth={2} />
+ <ColumnsIcon size={16} strokeWidth={2} />
)
}
>
@@ -268,7 +268,7 @@ export const BucketFilePickerHeader = () => {
<div className="flex items-center justify-between w-full">
<p>{option.name}</p>
{view === option.key && (
- <Check size={16} className="text-primary" strokeWidth={2} />
+ <CheckIcon size={16} className="text-primary" strokeWidth={2} />
)}
</div>
</DropdownMenuItem>
@@ -282,7 +282,7 @@ export const BucketFilePickerHeader = () => {
<div className="flex items-center justify-between w-full">
<p>{option.name}</p>
{sortBy === option.key && (
- <Check size={16} className="text-primary" strokeWidth={2} />
+ <CheckIcon size={16} className="text-primary" strokeWidth={2} />
)}
</div>
</DropdownMenuItem>
@@ -300,7 +300,7 @@ export const BucketFilePickerHeader = () => {
<div className="flex items-center justify-between w-full">
<p>{option.name}</p>
{sortByOrder === option.key && (
- <Check size={16} className="text-primary" strokeWidth={2} />
+ <CheckIcon size={16} className="text-primary" strokeWidth={2} />
)}
</div>
</DropdownMenuItem>
@@ -317,7 +317,7 @@ export const BucketFilePickerHeader = () => {
<input ref={uploadButtonRef} type="file" multiple onChange={handleFilesUpload} />
</div>
<ButtonTooltip
- icon={<Upload size={16} strokeWidth={2} />}
+ icon={<UploadIcon size={16} strokeWidth={2} />}
variant="text"
disabled={!canUpdateStorage}
loading={isUploading}
@@ -342,13 +342,13 @@ export const BucketFilePickerHeader = () => {
size="tiny"
autoFocus
className="w-52"
- icon={<Search />}
+ icon={<SearchIcon />}
actions={[
<Button
key="cancel"
size="tiny"
variant="text"
- icon={<X />}
+ icon={<XIcon />}
onClick={onCancelSearch}
className="p-0 h-5 w-5"
/>,
@@ -360,7 +360,7 @@ export const BucketFilePickerHeader = () => {
/>
) : (
<Button
- icon={<Search />}
+ icon={<SearchIcon />}
size="tiny"
variant="text"
className="px-1"
diff --git a/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerHeaderSelection.tsx b/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerHeaderSelection.tsx
index 02a3969b96d..1d89debe222 100644
--- a/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerHeaderSelection.tsx
+++ b/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerHeaderSelection.tsx
@@ -1,4 +1,4 @@
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { Button } from 'ui'
import { useBucketFilePickerStateSnapshot } from './BucketFilePickerState'
@@ -9,7 +9,7 @@ export const BucketFilePickerHeaderSelection = () => {
return (
<div className="z-10 flex h-[40px] items-center rounded-t-md bg-brand-400 px-2 py-1 shadow in-data-[theme*=dark]:bg-brand-500">
<Button
- icon={<X size={16} strokeWidth={2} />}
+ icon={<XIcon size={16} strokeWidth={2} />}
variant="text"
onClick={() => clearSelectedItems()}
aria-label="Clear selected items"
diff --git a/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerPreviewPane.tsx b/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerPreviewPane.tsx
index 742b2312ae6..40e3f920d66 100644
--- a/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerPreviewPane.tsx
+++ b/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerPreviewPane.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { AlertCircle, LoaderCircle, X } from 'lucide-react'
+import { AlertCircleIcon, LoaderCircleIcon, XIcon } from 'lucide-react'
import SVG from 'react-inlinesvg'
import { Button } from 'ui'
@@ -31,7 +31,11 @@ const PreviewFile = ({ item }: { item: StorageItemWithColumn }) => {
if (isLoading) {
return (
<div className="flex h-full w-full items-center justify-center text-foreground-lighter">
- <LoaderCircle size={14} strokeWidth={2} className="animate-spin text-foreground-lighter" />
+ <LoaderCircleIcon
+ size={14}
+ strokeWidth={2}
+ className="animate-spin text-foreground-lighter"
+ />
</div>
)
}
@@ -139,7 +143,7 @@ export const PreviewPane = ({ onSelect }: { onSelect: (url: string) => void }) =
Select
</Button>
<div className="text-foreground-lighter transition-colors hover:text-foreground">
- <X
+ <XIcon
className="cursor-pointer"
size={14}
strokeWidth={2}
@@ -161,7 +165,7 @@ export const PreviewPane = ({ onSelect }: { onSelect: (url: string) => void }) =
<h5 className="wrap-break-word text-base text-foreground">{file.name}</h5>
{file.isCorrupted && (
<div className="flex items-center space-x-2">
- <AlertCircle size={14} strokeWidth={2} className="text-foreground-light" />
+ <AlertCircleIcon size={14} strokeWidth={2} className="text-foreground-light" />
<p className="text-sm text-foreground-light">
File is corrupted, please delete and reupload this file again
</p>
diff --git a/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerRow.tsx b/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerRow.tsx
index a43544d17cf..3b773207abe 100644
--- a/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerRow.tsx
+++ b/apps/studio/components/interfaces/Storage/BucketFilePickerDialog/BucketFilePickerRow.tsx
@@ -1,4 +1,4 @@
-import { AlertCircle, LoaderCircle } from 'lucide-react'
+import { AlertCircleIcon, LoaderCircleIcon } from 'lucide-react'
import type { CSSProperties, MouseEvent } from 'react'
import { Checkbox, cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -101,7 +101,7 @@ export const BucketFilePickerRow = ({
{item.isCorrupted && (
<Tooltip>
<TooltipTrigger>
- <AlertCircle size={18} strokeWidth={2} className="text-foreground-light" />
+ <AlertCircleIcon size={18} strokeWidth={2} className="text-foreground-light" />
</TooltipTrigger>
<TooltipContent side="bottom">
File is corrupted, please delete and reupload again.
@@ -129,7 +129,7 @@ export const BucketFilePickerRow = ({
}
>
{item.status === STORAGE_ROW_STATUS.LOADING && (
- <LoaderCircle
+ <LoaderCircleIcon
className={`animate-spin text-foreground-lighter ${view === STORAGE_VIEWS.LIST ? 'invisible' : ''}`}
size={14}
strokeWidth={2}
diff --git a/apps/studio/components/interfaces/Storage/BucketVersioningPill.tsx b/apps/studio/components/interfaces/Storage/BucketVersioningPill.tsx
index dca1a44b77b..758ec41aee1 100644
--- a/apps/studio/components/interfaces/Storage/BucketVersioningPill.tsx
+++ b/apps/studio/components/interfaces/Storage/BucketVersioningPill.tsx
@@ -1,4 +1,4 @@
-import { FileStack } from 'lucide-react'
+import { FileStackIcon } from 'lucide-react'
import { Badge, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { getBucketVersioningState } from './StorageVersioning.constants'
@@ -36,7 +36,7 @@ export const BucketVersioningPill = ({ bucket, showPrefix = true }: BucketVersio
<TooltipTrigger asChild>
<span tabIndex={0} className="shrink-0">
<Badge variant={variant}>
- <FileStack size={12} aria-hidden />
+ <FileStackIcon size={12} aria-hidden />
{showPrefix ? `Versioning ${state.toLowerCase()}` : state}
</Badge>
</span>
diff --git a/apps/studio/components/interfaces/Storage/BucketsPickerDialog/BucketTableRow.tsx b/apps/studio/components/interfaces/Storage/BucketsPickerDialog/BucketTableRow.tsx
index 5cb3e449229..0f09095fedf 100644
--- a/apps/studio/components/interfaces/Storage/BucketsPickerDialog/BucketTableRow.tsx
+++ b/apps/studio/components/interfaces/Storage/BucketsPickerDialog/BucketTableRow.tsx
@@ -1,5 +1,5 @@
import { FilesBucket as FilesBucketIcon } from 'icons'
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import { KeyboardEventHandler, MouseEventHandler } from 'react'
import { Badge, cn, TableCell, TableRow, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -114,7 +114,11 @@ export const BucketTableRow = ({
{!isDisabled && (
<>
<div className="flex justify-end items-center h-full">
- <ChevronRight aria-hidden={true} size={14} className="text-foreground-muted/60" />
+ <ChevronRightIcon
+ aria-hidden={true}
+ size={14}
+ className="text-foreground-muted/60"
+ />
</div>
<button tabIndex={-1} className="sr-only">
Go to bucket details
diff --git a/apps/studio/components/interfaces/Storage/BucketsPickerDialog/BucketsPicker.tsx b/apps/studio/components/interfaces/Storage/BucketsPickerDialog/BucketsPicker.tsx
index dcd6c0e09f9..2c2f5b2262d 100644
--- a/apps/studio/components/interfaces/Storage/BucketsPickerDialog/BucketsPicker.tsx
+++ b/apps/studio/components/interfaces/Storage/BucketsPickerDialog/BucketsPicker.tsx
@@ -1,6 +1,6 @@
import { useDebounce } from '@uidotdev/usehooks'
import { useParams } from 'common'
-import { ArrowDownNarrowWide, Search } from 'lucide-react'
+import { ArrowDownNarrowWideIcon, SearchIcon } from 'lucide-react'
import { useCallback, useMemo, useState } from 'react'
import {
Button,
@@ -114,11 +114,11 @@ export const BucketsPicker = ({
placeholder="Search for a bucket"
value={filterString}
onChange={(e) => setFilterString(e.target.value)}
- icon={<Search />}
+ icon={<SearchIcon />}
/>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button icon={<ArrowDownNarrowWide />}>
+ <Button icon={<ArrowDownNarrowWideIcon />}>
Sorted by {sortBucket === 'alphabetical' ? 'name' : 'created at'}
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/Storage/FilesBuckets/BucketTable.tsx b/apps/studio/components/interfaces/Storage/FilesBuckets/BucketTable.tsx
index e2ac8c2ac1c..370f01ae8f0 100644
--- a/apps/studio/components/interfaces/Storage/FilesBuckets/BucketTable.tsx
+++ b/apps/studio/components/interfaces/Storage/FilesBuckets/BucketTable.tsx
@@ -1,5 +1,5 @@
import { FilesBucket as FilesBucketIcon } from 'icons'
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import { useRouter } from 'next/navigation'
import {
Badge,
@@ -188,7 +188,7 @@ export const BucketTableRow = ({
<BucketTableCell>
<div className="flex justify-end items-center h-full">
- <ChevronRight aria-hidden={true} size={14} className="text-foreground-muted/60" />
+ <ChevronRightIcon aria-hidden={true} size={14} className="text-foreground-muted/60" />
</div>
<button tabIndex={-1} className="sr-only">
Go to bucket details
diff --git a/apps/studio/components/interfaces/Storage/FilesBuckets/index.tsx b/apps/studio/components/interfaces/Storage/FilesBuckets/index.tsx
index 4121162da80..0f23ffbc56a 100644
--- a/apps/studio/components/interfaces/Storage/FilesBuckets/index.tsx
+++ b/apps/studio/components/interfaces/Storage/FilesBuckets/index.tsx
@@ -1,6 +1,6 @@
import { useDebounce } from '@uidotdev/usehooks'
import { useParams } from 'common'
-import { ArrowDownNarrowWide, RefreshCw, Search } from 'lucide-react'
+import { ArrowDownNarrowWideIcon, RefreshCwIcon, SearchIcon } from 'lucide-react'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useCallback, useMemo, useRef, useState } from 'react'
import {
@@ -139,12 +139,12 @@ export const FilesBuckets = () => {
placeholder="Search for a bucket"
value={filterString}
onChange={(e) => setFilterString(e.target.value)}
- icon={<Search />}
+ icon={<SearchIcon />}
/>
</ShortcutTooltip>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button icon={<ArrowDownNarrowWide />}>
+ <Button icon={<ArrowDownNarrowWideIcon />}>
Sorted by {sortBucket === 'alphabetical' ? 'name' : 'created at'}
</Button>
</DropdownMenuTrigger>
@@ -167,7 +167,7 @@ export const FilesBuckets = () => {
side="bottom"
>
<Button
- icon={<RefreshCw />}
+ icon={<RefreshCwIcon />}
loading={isFetchingBuckets}
onClick={handleRefresh}
>
diff --git a/apps/studio/components/interfaces/Storage/NewBucketButton.tsx b/apps/studio/components/interfaces/Storage/NewBucketButton.tsx
index 4a9b39b2183..3361ffd4690 100644
--- a/apps/studio/components/interfaces/Storage/NewBucketButton.tsx
+++ b/apps/studio/components/interfaces/Storage/NewBucketButton.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import { MouseEventHandler } from 'react'
import { ButtonTooltip } from '@/components/ui/ButtonTooltip'
@@ -18,7 +18,7 @@ export const CreateBucketButton = ({
size="tiny"
variant="primary"
className="w-fit"
- icon={<Plus size={14} />}
+ icon={<PlusIcon size={14} />}
disabled={!canCreateBuckets}
onClick={onClick}
tooltip={{
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/ArchivedFilePreviewPane.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/ArchivedFilePreviewPane.tsx
index 1f4e8e99a41..7f9e545396e 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/ArchivedFilePreviewPane.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/ArchivedFilePreviewPane.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import dayjs from 'dayjs'
-import { RotateCcw, Trash2, X } from 'lucide-react'
+import { RotateCcwIcon, Trash2Icon, XIcon } from 'lucide-react'
import { useState } from 'react'
import { toast } from 'sonner'
import { Badge, Button } from 'ui'
@@ -166,7 +166,7 @@ export const ArchivedFilePreviewPane = () => {
onClick={clearArchivedSelection}
aria-label="Close preview"
>
- <X size={14} />
+ <XIcon size={14} />
</Button>
</div>
@@ -209,7 +209,7 @@ export const ArchivedFilePreviewPane = () => {
<ButtonTooltip
variant="outline"
size="tiny"
- icon={<RotateCcw size={14} />}
+ icon={<RotateCcwIcon size={14} />}
loading={isRestoring}
disabled={!canUpdateFiles}
onClick={() => handleRestore()}
@@ -227,7 +227,7 @@ export const ArchivedFilePreviewPane = () => {
<ButtonTooltip
variant="outline"
size="tiny"
- icon={<Trash2 size={14} />}
+ icon={<Trash2Icon size={14} />}
disabled={!canUpdateFiles}
onClick={() => setIsPurgeConfirmVisible(true)}
tooltip={{
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/ArchivedVersionRestoreWidget.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/ArchivedVersionRestoreWidget.tsx
index eec85638e0f..ab87934f0b1 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/ArchivedVersionRestoreWidget.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/ArchivedVersionRestoreWidget.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { RotateCcw, X } from 'lucide-react'
+import { RotateCcwIcon, XIcon } from 'lucide-react'
import type { ArchivedVersionRow } from './archivedVersions.utils'
import { FilePreview } from './FilePreview'
@@ -28,7 +28,7 @@ export const ArchivedVersionRestoreWidget = ({
}: ArchivedVersionRestoreWidgetProps) => (
<div className="space-y-3 border-b border-overlay bg-brand-200/30 p-3">
<div className="flex items-center gap-x-1.5">
- <RotateCcw size={13} className="shrink-0 text-brand" />
+ <RotateCcwIcon size={13} className="shrink-0 text-brand" />
<p className="truncate text-sm font-medium text-foreground">
Restore version {shortVersion(version.versionId)}?
</p>
@@ -39,7 +39,7 @@ export const ArchivedVersionRestoreWidget = ({
onClick={onDismiss}
aria-label="Cancel restore"
>
- <X size={13} />
+ <XIcon size={13} />
</button>
</div>
@@ -60,7 +60,7 @@ export const ArchivedVersionRestoreWidget = ({
<ButtonTooltip
variant="primary"
block
- icon={<RotateCcw size={14} />}
+ icon={<RotateCcwIcon size={14} />}
loading={isRestoring}
disabled={!canUpdateFiles}
onClick={onRestore}
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/ArchivedVersionRow.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/ArchivedVersionRow.tsx
index aaebc460578..f4f3d96139e 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/ArchivedVersionRow.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/ArchivedVersionRow.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { MoreVertical, RotateCcw, Trash2 } from 'lucide-react'
+import { MoreVerticalIcon, RotateCcwIcon, Trash2Icon } from 'lucide-react'
import {
Badge,
Button,
@@ -84,7 +84,7 @@ export const ArchivedVersionRow = ({
variant="text"
size="tiny"
className="px-1.5"
- icon={<MoreVertical size={14} />}
+ icon={<MoreVerticalIcon size={14} />}
aria-label={`Actions for version ${shortVersion(version.versionId)}`}
/>
</DropdownMenuTrigger>
@@ -94,7 +94,7 @@ export const ArchivedVersionRow = ({
disabled={!canUpdateFiles || isRestoring}
onClick={onRestore}
>
- <RotateCcw size={14} />
+ <RotateCcwIcon size={14} />
Restore as current
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -103,7 +103,7 @@ export const ArchivedVersionRow = ({
disabled={!canUpdateFiles || isDeleting}
className="gap-x-2 text-destructive focus:text-destructive"
>
- <Trash2 size={14} />
+ <Trash2Icon size={14} />
Delete permanently
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerColumn.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerColumn.tsx
index ebbe8262e91..912e2f065b7 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerColumn.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerColumn.tsx
@@ -1,6 +1,13 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { get, noop, sum, uniqBy } from 'lodash'
-import { ChevronsDown, ChevronsUp, Copy, Eye, FolderPlus, Upload } from 'lucide-react'
+import {
+ ChevronsDownIcon,
+ ChevronsUpIcon,
+ CopyIcon,
+ EyeIcon,
+ FolderPlusIcon,
+ UploadIcon,
+} from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -57,7 +64,7 @@ const DragOverOverlay = ({ isOpen, onDragLeave, onDrop, folderIsEmpty }: any) =>
className="w-3/4 h-32 border-2 border-dashed border-muted rounded-md flex flex-col items-center justify-center p-6 pointer-events-none"
style={{ backgroundColor: 'rgba(0,0,0,0.4)' }}
>
- <Upload className="text-white pointer-events-none" size={20} />
+ <UploadIcon className="text-white pointer-events-none" size={20} />
<p className="text-center text-sm text-white mt-2 pointer-events-none">
Drop your files to upload to this folder
</p>
@@ -347,19 +354,19 @@ export const FileExplorerColumn = ({
{canUpdateStorage && (
<>
<ContextMenuItem className="gap-x-2" onSelect={onSelectCreateFolder}>
- <FolderPlus size={14} />
+ <FolderPlusIcon size={14} />
<span className="text-xs">New folder</span>
</ContextMenuItem>
<ContextMenuSeparator />
</>
)}
<ContextMenuItem className="gap-x-2" onSelect={onSelectAllItems}>
- <Copy size={14} />
+ <CopyIcon size={14} />
<span className="text-xs">Select all items</span>
</ContextMenuItem>
<ContextMenuSub>
<ContextMenuSubTrigger className="gap-x-2">
- <Eye size={14} />
+ <EyeIcon size={14} />
<span className="text-xs">View</span>
</ContextMenuSubTrigger>
<ContextMenuSubContent>
@@ -373,7 +380,7 @@ export const FileExplorerColumn = ({
</ContextMenuSub>
<ContextMenuSub>
<ContextMenuSubTrigger className="gap-x-2">
- <ChevronsDown size={14} />
+ <ChevronsDownIcon size={14} />
<span className="text-xs">Sort by</span>
</ContextMenuSubTrigger>
<ContextMenuSubContent>
@@ -393,7 +400,7 @@ export const FileExplorerColumn = ({
</ContextMenuSub>
<ContextMenuSub>
<ContextMenuSubTrigger className="gap-x-2">
- <ChevronsUp size={14} />
+ <ChevronsUpIcon size={14} />
<span className="text-xs">Sort by order</span>
</ContextMenuSubTrigger>
<ContextMenuSubContent>
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsx
index d51b9a15d6c..73e53c0fa53 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsx
@@ -1,16 +1,16 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { compact, isEqual, noop } from 'lodash'
import {
- ArrowLeft,
- Check,
- Columns,
- Edit2,
- FolderPlus,
- List,
- RefreshCw,
- Search,
- Upload,
- X,
+ ArrowLeftIcon,
+ CheckIcon,
+ ColumnsIcon,
+ Edit2Icon,
+ FolderPlusIcon,
+ ListIcon,
+ RefreshCwIcon,
+ SearchIcon,
+ UploadIcon,
+ XIcon,
} from 'lucide-react'
import {
useEffect,
@@ -293,7 +293,7 @@ export const FileExplorerHeader = ({
variant="outline"
aria-label="Go up one level"
className="w-7 shrink-0 px-1"
- icon={<ArrowLeft size={14} />}
+ icon={<ArrowLeftIcon size={14} />}
onClick={() => {
setIsPathDialogOpen(false)
onSelectBack()
@@ -304,7 +304,7 @@ export const FileExplorerHeader = ({
ref={searchInputRef}
size="tiny"
className="w-52"
- icon={<Search />}
+ icon={<SearchIcon />}
actions={
itemSearchString.length > 0
? [
@@ -312,7 +312,7 @@ export const FileExplorerHeader = ({
key="cancel"
size="tiny"
variant="text"
- icon={<X />}
+ icon={<XIcon />}
onClick={onCancelSearch}
className="p-0 h-5 w-5"
/>,
@@ -332,7 +332,7 @@ export const FileExplorerHeader = ({
{view === STORAGE_VIEWS.COLUMNS && (
<Button
size="tiny"
- icon={<Edit2 />}
+ icon={<Edit2Icon />}
variant="outline"
aria-label="Navigate"
className="w-7 px-1"
@@ -343,7 +343,7 @@ export const FileExplorerHeader = ({
<ShortcutTooltip shortcutId={SHORTCUT_IDS.STORAGE_EXPLORER_REFRESH} side="bottom">
<Button
size="tiny"
- icon={<RefreshCw />}
+ icon={<RefreshCwIcon />}
variant="outline"
aria-label="Reload"
className="w-7 px-1"
@@ -359,7 +359,7 @@ export const FileExplorerHeader = ({
size="tiny"
aria-label="View options"
className="w-7 px-1"
- icon={view === 'LIST' ? <List size={16} /> : <Columns size={16} />}
+ icon={view === 'LIST' ? <ListIcon size={16} /> : <ColumnsIcon size={16} />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-40 min-w-0">
@@ -367,7 +367,7 @@ export const FileExplorerHeader = ({
<DropdownMenuItem key={option.key} onClick={() => setView(option.key)}>
<div className="flex items-center justify-between w-full">
<p>{option.name}</p>
- {view === option.key && <Check size={16} className="text-primary" />}
+ {view === option.key && <CheckIcon size={16} className="text-primary" />}
</div>
</DropdownMenuItem>
))}
@@ -379,7 +379,9 @@ export const FileExplorerHeader = ({
<DropdownMenuItem key={option.key} onClick={() => setSortBy(option.key)}>
<div className="flex items-center justify-between w-full">
<p>{option.name}</p>
- {sortBy === option.key && <Check size={16} className="text-primary" />}
+ {sortBy === option.key && (
+ <CheckIcon size={16} className="text-primary" />
+ )}
</div>
</DropdownMenuItem>
))}
@@ -396,7 +398,7 @@ export const FileExplorerHeader = ({
<div className="flex items-center justify-between w-full">
<p>{option.name}</p>
{sortByOrder === option.key && (
- <Check size={16} className="text-primary" />
+ <CheckIcon size={16} className="text-primary" />
)}
</div>
</DropdownMenuItem>
@@ -409,7 +411,7 @@ export const FileExplorerHeader = ({
<DropdownMenuItem onClick={() => setShowArchivedInline(!showArchivedInline)}>
<div className="flex items-center justify-between w-full">
<p>Show archived</p>
- {showArchivedInline && <Check size={16} className="text-brand" />}
+ {showArchivedInline && <CheckIcon size={16} className="text-brand" />}
</div>
</DropdownMenuItem>
</>
@@ -428,7 +430,7 @@ export const FileExplorerHeader = ({
open={!canUpdateStorage ? false : undefined}
>
<ButtonTooltip
- icon={<FolderPlus size={16} />}
+ icon={<FolderPlusIcon size={16} />}
variant="outline"
disabled={!canUpdateStorage || breadcrumbs.length === 0}
onClick={() => addNewFolderPlaceholder(-1)}
@@ -450,7 +452,7 @@ export const FileExplorerHeader = ({
open={!canUpdateStorage ? false : undefined}
>
<ButtonTooltip
- icon={<Upload size={16} />}
+ icon={<UploadIcon size={16} />}
variant="primary"
disabled={!canUpdateStorage || breadcrumbs.length === 0}
onClick={onSelectUpload}
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeaderSelection.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeaderSelection.tsx
index 00e07f8b7b5..a1ea00a9474 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeaderSelection.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeaderSelection.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Archive, Download, Move, Trash2, X } from 'lucide-react'
+import { ArchiveIcon, DownloadIcon, MoveIcon, Trash2Icon, XIcon } from 'lucide-react'
import { Button } from 'ui'
import { isVersioningActive } from '../StorageVersioning.constants'
@@ -40,7 +40,7 @@ export const FileExplorerHeaderSelection = () => {
<ShortcutTooltip shortcutId={SHORTCUT_IDS.STORAGE_EXPLORER_DOWNLOAD_SELECTED} side="bottom">
<Button
size="tiny"
- icon={<Download size={12} />}
+ icon={<DownloadIcon size={12} />}
onClick={async () => {
if (selectedItems.length === 1) {
await downloadFile(selectedItems[0])
@@ -60,7 +60,7 @@ export const FileExplorerHeaderSelection = () => {
>
<ButtonTooltip
size="tiny"
- icon={canArchive ? <Archive size={12} /> : <Trash2 size={12} />}
+ icon={canArchive ? <ArchiveIcon size={12} /> : <Trash2Icon size={12} />}
disabled={!canUpdateFiles}
onClick={() => setSelectedItemsToDelete(selectedItems)}
tooltip={{
@@ -78,7 +78,9 @@ export const FileExplorerHeaderSelection = () => {
{canArchive && (
<ButtonTooltip
size="tiny"
- icon={<Trash2 size={12} className={canUpdateFiles ? 'text-destructive' : undefined} />}
+ icon={
+ <Trash2Icon size={12} className={canUpdateFiles ? 'text-destructive' : undefined} />
+ }
disabled={!canUpdateFiles}
onClick={() => setItemsToPurge(selectedItems)}
tooltip={{
@@ -101,7 +103,7 @@ export const FileExplorerHeaderSelection = () => {
>
<ButtonTooltip
size="tiny"
- icon={<Move size={12} />}
+ icon={<MoveIcon size={12} />}
disabled={!canUpdateFiles}
onClick={() => setSelectedItemsToMove(selectedItems)}
tooltip={{
@@ -118,7 +120,7 @@ export const FileExplorerHeaderSelection = () => {
<Button
variant="text"
size="tiny"
- icon={<X size={12} />}
+ icon={<XIcon size={12} />}
title="Clear selection"
className="px-1.5 text-foreground-lighter hover:text-foreground"
onClick={() => clearSelectedItems()}
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRow.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRow.tsx
index 93086b67720..1c362d84079 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRow.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRow.tsx
@@ -1,18 +1,18 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { find, isEmpty, isEqual } from 'lodash'
import {
- AlertCircle,
- Archive,
- Copy,
- Download,
- Edit,
- Link2,
- LoaderCircle,
- MoreVertical,
- Move,
- RotateCcw,
- Trash2,
- Upload,
+ AlertCircleIcon,
+ ArchiveIcon,
+ CopyIcon,
+ DownloadIcon,
+ EditIcon,
+ Link2Icon,
+ LoaderCircleIcon,
+ MoreVerticalIcon,
+ MoveIcon,
+ RotateCcwIcon,
+ Trash2Icon,
+ UploadIcon,
} from 'lucide-react'
import type { CSSProperties, ReactNode } from 'react'
import { toast } from 'sonner'
@@ -83,11 +83,11 @@ const ArchivedRowIcon = ({ name, onOpen }: { name: string; onOpen?: () => void }
}}
className={cn(ARCHIVED_ICON_CLASS, 'focus-ring rounded-sm')}
>
- <Archive size={16} strokeWidth={ICON_STROKE_WIDTH} aria-hidden />
+ <ArchiveIcon size={16} strokeWidth={ICON_STROKE_WIDTH} aria-hidden />
</button>
) : (
<span className={ARCHIVED_ICON_CLASS}>
- <Archive size={16} strokeWidth={ICON_STROKE_WIDTH} aria-hidden />
+ <ArchiveIcon size={16} strokeWidth={ICON_STROKE_WIDTH} aria-hidden />
<span className="sr-only">Archived</span>
</span>
)}
@@ -100,7 +100,7 @@ const RowActionsMenu = ({ name, options }: { name: string; options: RowOption[]
<DropdownMenu>
<DropdownMenuTrigger className="focus-ring rounded-sm">
<div className="storage-row-menu opacity-0">
- <MoreVertical size={16} />
+ <MoreVerticalIcon size={16} />
<span className="sr-only">{name} actions</span>
</div>
</DropdownMenuTrigger>
@@ -239,12 +239,12 @@ export const FileExplorerRow = ({
const copyPathOptions: RowOption[] = [
{
name: 'Copy relative path',
- icon: <Copy size={12} className="text-foreground-light" />,
+ icon: <CopyIcon size={12} className="text-foreground-light" />,
onClick: () => copyStoragePath(openedFolders, itemWithColumnIndex),
},
{
name: 'Copy link',
- icon: <Link2 size={12} className="text-foreground-light" />,
+ icon: <Link2Icon size={12} className="text-foreground-light" />,
onClick: () =>
copyStorageExplorerUrl({
openedFolders,
@@ -262,14 +262,14 @@ export const FileExplorerRow = ({
? [
{
name: 'Rename',
- icon: <Edit size={12} className="text-foreground-light" />,
+ icon: <EditIcon size={12} className="text-foreground-light" />,
onClick: () => setSelectedItemToRename(itemWithColumnIndex),
},
]
: []),
{
name: 'Download',
- icon: <Download size={12} className="text-foreground-light" />,
+ icon: <DownloadIcon size={12} className="text-foreground-light" />,
onClick: () => downloadFolder(itemWithColumnIndex),
},
...copyPathOptions,
@@ -281,9 +281,9 @@ export const FileExplorerRow = ({
// bucket the whole prefix is archived rather than removed.
name: isActivelyVersioning ? 'Archive' : 'Delete',
icon: isActivelyVersioning ? (
- <Archive size={12} className="text-foreground-light" />
+ <ArchiveIcon size={12} className="text-foreground-light" />
) : (
- <Trash2 size={12} className="text-foreground-light" />
+ <Trash2Icon size={12} className="text-foreground-light" />
),
onClick: () => setSelectedItemsToDelete([itemWithColumnIndex]),
},
@@ -291,7 +291,7 @@ export const FileExplorerRow = ({
? [
{
name: 'Delete permanently',
- icon: <Trash2 size={12} className="text-destructive" />,
+ icon: <Trash2Icon size={12} className="text-destructive" />,
onClick: () => setItemsToPurge([itemWithColumnIndex]),
},
]
@@ -306,7 +306,7 @@ export const FileExplorerRow = ({
? [
{
name: 'Get URL',
- icon: <Copy size={12} className="text-foreground-light" />,
+ icon: <CopyIcon size={12} className="text-foreground-light" />,
onClick: () => {
onCopyUrl(itemWithColumnIndex.path!)
},
@@ -315,7 +315,7 @@ export const FileExplorerRow = ({
: [
{
name: 'Get URL',
- icon: <Copy size={12} className="text-foreground-light" />,
+ icon: <CopyIcon size={12} className="text-foreground-light" />,
children: [
{
name: 'Expire in 1 week',
@@ -341,7 +341,7 @@ export const FileExplorerRow = ({
]),
{
name: 'Download',
- icon: <Download size={12} className="text-foreground-light" />,
+ icon: <DownloadIcon size={12} className="text-foreground-light" />,
onClick: () => downloadFile(itemWithColumnIndex),
},
...copyPathOptions,
@@ -349,17 +349,17 @@ export const FileExplorerRow = ({
? [
{
name: 'Rename',
- icon: <Edit size={12} className="text-foreground-light" />,
+ icon: <EditIcon size={12} className="text-foreground-light" />,
onClick: () => setSelectedItemToRename(itemWithColumnIndex),
},
{
name: 'Move',
- icon: <Move size={12} className="text-foreground-light" />,
+ icon: <MoveIcon size={12} className="text-foreground-light" />,
onClick: () => setSelectedItemsToMove([itemWithColumnIndex]),
},
{
name: isActivelyVersioning ? 'Upload new version' : 'Replace file',
- icon: <Upload size={12} className="text-foreground-light" />,
+ icon: <UploadIcon size={12} className="text-foreground-light" />,
onClick: onReplaceFile,
},
{ name: 'Separator', icon: undefined, onClick: undefined },
@@ -373,9 +373,9 @@ export const FileExplorerRow = ({
// On a versioned bucket this is a soft delete, so it reads as Archive.
name: isActivelyVersioning ? 'Archive' : 'Delete',
icon: isActivelyVersioning ? (
- <Archive size={12} className="text-foreground-light" />
+ <ArchiveIcon size={12} className="text-foreground-light" />
) : (
- <Trash2 size={12} className="text-foreground-light" />
+ <Trash2Icon size={12} className="text-foreground-light" />
),
onClick: () => setSelectedItemsToDelete([itemWithColumnIndex]),
},
@@ -383,7 +383,7 @@ export const FileExplorerRow = ({
? [
{
name: 'Delete permanently',
- icon: <Trash2 size={12} className="text-destructive" />,
+ icon: <Trash2Icon size={12} className="text-destructive" />,
onClick: () => setItemsToPurge([itemWithColumnIndex]),
},
]
@@ -441,13 +441,13 @@ export const FileExplorerRow = ({
: [
{
name: 'Restore',
- icon: <RotateCcw size={12} className="text-foreground-light" />,
+ icon: <RotateCcwIcon size={12} className="text-foreground-light" />,
onClick: handleRestoreArchived,
},
{ name: 'Separator', icon: undefined, onClick: undefined },
{
name: 'Delete permanently',
- icon: <Trash2 size={12} className="text-destructive" />,
+ icon: <Trash2Icon size={12} className="text-destructive" />,
onClick: () => setItemsToPurge([itemWithColumnIndex]),
},
]
@@ -569,7 +569,7 @@ export const FileExplorerRow = ({
{item.isCorrupted && (
<Tooltip>
<TooltipTrigger>
- <AlertCircle size={18} className="text-foreground-light" />
+ <AlertCircleIcon size={18} className="text-foreground-light" />
</TooltipTrigger>
<TooltipContent side="bottom">
File is corrupted, please delete and reupload again.
@@ -597,7 +597,7 @@ export const FileExplorerRow = ({
}
>
{item.status === STORAGE_ROW_STATUS.LOADING ? (
- <LoaderCircle
+ <LoaderCircleIcon
className={`animate-spin text-foreground-lighter ${view === STORAGE_VIEWS.LIST ? 'invisible' : ''}`}
size={14}
/>
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/FilePreview.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/FilePreview.tsx
index 679e293dcd7..7dcc42ed047 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/FilePreview.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/FilePreview.tsx
@@ -1,4 +1,4 @@
-import { LoaderCircle } from 'lucide-react'
+import { LoaderCircleIcon } from 'lucide-react'
import SVG from 'react-inlinesvg'
import { useFetchFileUrlQuery } from './useFetchFileUrlQuery'
@@ -54,7 +54,7 @@ export const FilePreview = ({ path, mimeType, size, versionId }: FilePreviewProp
if (isPending) {
return (
<div className="flex h-full w-full items-center justify-center text-foreground-lighter">
- <LoaderCircle size={14} className="animate-spin text-foreground-lighter" />
+ <LoaderCircleIcon size={14} className="animate-spin text-foreground-lighter" />
</div>
)
}
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsFolderPicker.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsFolderPicker.tsx
index 00d6f302ff4..4bcd5efe901 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsFolderPicker.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsFolderPicker.tsx
@@ -1,6 +1,6 @@
import { useInfiniteQuery, useQuery } from '@tanstack/react-query'
import { useDebounce } from '@uidotdev/usehooks'
-import { ArrowLeft, Search, X } from 'lucide-react'
+import { ArrowLeftIcon, SearchIcon, XIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import { Button } from 'ui'
import { Input } from 'ui-patterns/DataInputs/Input'
@@ -113,14 +113,14 @@ export const MoveItemsFolderPicker = ({
variant="outline"
aria-label="Go up one level"
className="w-7 shrink-0 px-1"
- icon={<ArrowLeft size={14} />}
+ icon={<ArrowLeftIcon size={14} />}
disabled={isRoot}
onClick={() => handleNavigate(pathSegments.slice(0, -1))}
/>
<Input
size="tiny"
className="w-52 shrink-0"
- icon={<Search />}
+ icon={<SearchIcon />}
placeholder={`Search folders in ${bucketName}...`}
type="text"
value={searchString}
@@ -134,7 +134,7 @@ export const MoveItemsFolderPicker = ({
size="tiny"
variant="text"
aria-label="Clear search"
- icon={<X />}
+ icon={<XIcon />}
className="h-5 w-5 p-0"
onClick={() => setSearchString('')}
/>,
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsFolderPickerRow.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsFolderPickerRow.tsx
index b4e9c3ad3d1..6b2c34b76a2 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsFolderPickerRow.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/MoveItemsFolderPickerRow.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import type { CSSProperties } from 'react'
import { cn } from 'ui'
@@ -65,7 +65,7 @@ export const FolderPickerRow = ({
{location}
</span>
)}
- <ChevronRight size={14} className="shrink-0 text-foreground-lighter" />
+ <ChevronRightIcon size={14} className="shrink-0 text-foreground-lighter" />
</button>
</div>
)
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewPane.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewPane.tsx
index 51383dd00e2..ec9ad58089d 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewPane.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewPane.tsx
@@ -1,6 +1,15 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useQuery } from '@tanstack/react-query'
-import { AlertCircle, Archive, ChevronDown, Copy, Download, Trash2, Upload, X } from 'lucide-react'
+import {
+ AlertCircleIcon,
+ ArchiveIcon,
+ ChevronDownIcon,
+ CopyIcon,
+ DownloadIcon,
+ Trash2Icon,
+ UploadIcon,
+ XIcon,
+} from 'lucide-react'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useRef, useState, type ReactNode } from 'react'
import { toast } from 'sonner'
@@ -129,7 +138,7 @@ const CurrentFilePreview = ({
</div>
{file.isCorrupted && (
<div className="mt-1 flex items-center gap-x-1.5">
- <AlertCircle size={12} className="shrink-0 text-foreground-light" />
+ <AlertCircleIcon size={12} className="shrink-0 text-foreground-light" />
<p className="text-xs text-foreground-light">File is corrupted</p>
</div>
)}
@@ -139,7 +148,7 @@ const CurrentFilePreview = ({
<ButtonTooltip
variant="outline"
className="px-2"
- icon={<Download size={14} />}
+ icon={<DownloadIcon size={14} />}
disabled={file.isCorrupted}
onClick={onDownload}
tooltip={{ content: { side: 'top', text: 'Download current' } }}
@@ -151,7 +160,7 @@ const CurrentFilePreview = ({
<Button
variant="outline"
size="tiny"
- icon={<Copy size={14} />}
+ icon={<CopyIcon size={14} />}
disabled={file.isCorrupted}
onClick={() => onCopyUrl(file.path!)}
>
@@ -163,8 +172,8 @@ const CurrentFilePreview = ({
<Button
variant="outline"
size="tiny"
- icon={<Copy size={14} />}
- iconRight={<ChevronDown size={14} />}
+ icon={<CopyIcon size={14} />}
+ iconRight={<ChevronDownIcon size={14} />}
disabled={file.isCorrupted}
aria-label={`Get URL for ${file.name}`}
>
@@ -193,7 +202,7 @@ const CurrentFilePreview = ({
variant="outline"
size="tiny"
className="rounded-r-none"
- icon={<Archive size={14} />}
+ icon={<ArchiveIcon size={14} />}
onClick={onDelete}
>
Archive
@@ -204,7 +213,7 @@ const CurrentFilePreview = ({
variant="outline"
size="tiny"
className="-ml-px shrink-0 rounded-l-none border-l-transparent px-1.5"
- icon={<ChevronDown size={14} />}
+ icon={<ChevronDownIcon size={14} />}
aria-label="More delete options"
/>
</DropdownMenuTrigger>
@@ -214,7 +223,7 @@ const CurrentFilePreview = ({
onClick={onPurge}
>
<div className="flex items-center space-x-1 text-foreground">
- <Trash2 size={14} className="shrink-0 text-destructive" />
+ <Trash2Icon size={14} className="shrink-0 text-destructive" />
<p>Delete permanently</p>
</div>
<p className="block text-foreground-light">
@@ -230,7 +239,7 @@ const CurrentFilePreview = ({
<ButtonTooltip
variant="outline"
size="tiny"
- icon={<Trash2 size={14} />}
+ icon={<Trash2Icon size={14} />}
onClick={onDelete}
tooltip={{ content: { side: 'top', text: 'Delete file' } }}
>
@@ -360,7 +369,7 @@ export const PreviewPane = () => {
onClick={clearPreviewedFile}
aria-label="Close preview"
>
- <X size={14} />
+ <XIcon size={14} />
</Button>
</div>
@@ -389,7 +398,7 @@ export const PreviewPane = () => {
<ButtonTooltip
variant="outline"
className="px-2"
- icon={<Upload size={14} />}
+ icon={<UploadIcon size={14} />}
onClick={onReplaceFile}
aria-label={replaceLabel}
tooltip={{ content: { side: 'top', text: replaceLabel } }}
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewSection.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewSection.tsx
index 6af9e1408df..c9ef8704c77 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewSection.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/PreviewSection.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import { useState, type ReactNode } from 'react'
import { cn, Collapsible, CollapsibleContent, CollapsibleTrigger } from 'ui'
@@ -31,7 +31,7 @@ export const PreviewSection = ({
<span className="text-xs font-normal text-foreground-lighter">{count}</span>
)}
</span>
- <ChevronRight
+ <ChevronRightIcon
size={14}
className={cn('text-foreground-lighter transition-transform', isOpen && 'rotate-90')}
/>
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/VersionCompareWidget.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/VersionCompareWidget.tsx
index 3ee9e54ad1c..c640e89cb15 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/VersionCompareWidget.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/VersionCompareWidget.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { ArrowRight, RotateCcw, X } from 'lucide-react'
+import { ArrowRightIcon, RotateCcwIcon, XIcon } from 'lucide-react'
import { Button } from 'ui'
import { FilePreview } from './FilePreview'
@@ -27,7 +27,7 @@ export const VersionCompareWidget = ({
}: VersionCompareWidgetProps) => (
<div className="space-y-3 border-b border-overlay bg-brand-200/30 p-3">
<div className="flex items-center gap-x-1.5">
- <RotateCcw size={13} className="shrink-0 text-brand" />
+ <RotateCcwIcon size={13} className="shrink-0 text-brand" />
<p className="truncate text-sm font-medium text-foreground">
Restore v.{selectedVersion.versionId}?
</p>
@@ -38,7 +38,7 @@ export const VersionCompareWidget = ({
onClick={onDismiss}
aria-label="Cancel comparison"
>
- <X size={13} />
+ <XIcon size={13} />
</button>
</div>
@@ -57,7 +57,7 @@ export const VersionCompareWidget = ({
{dayjs(selectedVersion.createdAt).format('MMM D')} · {formatBytes(selectedVersion.size)}
</p>
</div>
- <ArrowRight size={14} className="shrink-0 text-foreground-lighter" />
+ <ArrowRightIcon size={14} className="shrink-0 text-foreground-lighter" />
<div className="flex-1 space-y-1.5">
<div className="flex h-24 items-center justify-center overflow-hidden rounded-md border border-overlay bg-surface-200">
{/* No `versionId`, so the endpoint resolves the current version. */}
@@ -72,7 +72,7 @@ export const VersionCompareWidget = ({
<Button
variant="primary"
block
- icon={<RotateCcw size={14} />}
+ icon={<RotateCcwIcon size={14} />}
loading={isRestoring}
onClick={onRestore}
>
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/VersionHistory.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/VersionHistory.tsx
index a38512d0806..d79e1b61bed 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/VersionHistory.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/VersionHistory.tsx
@@ -1,6 +1,6 @@
import { useQuery } from '@tanstack/react-query'
import dayjs from 'dayjs'
-import { MoreVertical, RotateCcw, Trash2 } from 'lucide-react'
+import { MoreVerticalIcon, RotateCcwIcon, Trash2Icon } from 'lucide-react'
import { useMemo, useState } from 'react'
import { toast } from 'sonner'
import {
@@ -110,7 +110,7 @@ const VersionActionsMenu = ({
variant="text"
size="tiny"
className="px-1.5"
- icon={<MoreVertical size={14} />}
+ icon={<MoreVerticalIcon size={14} />}
aria-label={isDeleteMarker ? 'Actions for delete marker' : `Actions for version ${label}`}
/>
</DropdownMenuTrigger>
@@ -119,7 +119,7 @@ const VersionActionsMenu = ({
{!isDeleteMarker && (
<>
<DropdownMenuItem className="gap-x-2" disabled={isRestoring} onClick={onRestore}>
- <RotateCcw size={14} />
+ <RotateCcwIcon size={14} />
Restore as current
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -129,7 +129,7 @@ const VersionActionsMenu = ({
onClick={onDelete}
className="gap-x-2 text-destructive focus:text-destructive"
>
- <Trash2 size={14} />
+ <Trash2Icon size={14} />
{isDeleteMarker ? 'Delete marker permanently' : 'Delete permanently'}
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/VersionHistoryPolicyRow.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/VersionHistoryPolicyRow.tsx
index c9ad9b0ca23..ab22e4faea2 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/VersionHistoryPolicyRow.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/VersionHistoryPolicyRow.tsx
@@ -1,4 +1,4 @@
-import { Info } from 'lucide-react'
+import { InfoIcon } from 'lucide-react'
import type { ReactNode } from 'react'
import { Button, cn, HoverCard, HoverCardContent, HoverCardTrigger } from 'ui'
@@ -88,7 +88,7 @@ export const VersionHistoryPolicyRow = ({
{hasExpiryDays && !hasCap && (
<span className="font-mono text-xs text-foreground-lighter">— no retention cap</span>
)}
- <Info size={13} className="text-foreground-lighter" />
+ <InfoIcon size={13} className="text-foreground-lighter" />
</button>
</HoverCardTrigger>
<HoverCardContent side="top" className="w-72 space-y-1.5 text-xs">
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/VersionThumbnail.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/VersionThumbnail.tsx
index b4d4c599b47..ab55cae086c 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/VersionThumbnail.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/VersionThumbnail.tsx
@@ -1,4 +1,4 @@
-import { Archive, File, Film, Image as ImageIcon, Music, RotateCcw } from 'lucide-react'
+import { ArchiveIcon, FileIcon, FilmIcon, ImageIcon, MusicIcon, RotateCcwIcon } from 'lucide-react'
import { cn } from 'ui'
import { useFetchFileUrlQuery } from './useFetchFileUrlQuery'
@@ -12,12 +12,12 @@ const MimeTypeIcon = ({ mimeType, size }: { mimeType?: string; size: number }) =
return <ImageIcon size={size} className="text-foreground-lighter" />
}
if (mimeType?.includes('audio')) {
- return <Music size={size} className="text-foreground-lighter" />
+ return <MusicIcon size={size} className="text-foreground-lighter" />
}
if (mimeType?.includes('video')) {
- return <Film size={size} className="text-foreground-lighter" />
+ return <FilmIcon size={size} className="text-foreground-lighter" />
}
- return <File size={size} className="text-foreground-lighter" />
+ return <FileIcon size={size} className="text-foreground-lighter" />
}
/** Falls back to the generic icon while the URL is in flight or if it fails. */
@@ -88,9 +88,9 @@ export const VersionThumbnail = ({
{canShowImage && (
<ThumbnailImage path={path} versionId={versionId} mimeType={mimeType} size={size} />
)}
- {!canShowImage && isCurrent && <RotateCcw size={size} className="text-brand" />}
+ {!canShowImage && isCurrent && <RotateCcwIcon size={size} className="text-brand" />}
{!canShowImage && !isCurrent && isDeleteMarker && (
- <Archive size={size} className="text-foreground-muted" />
+ <ArchiveIcon size={size} className="text-foreground-muted" />
)}
{!canShowImage && !isCurrent && !isDeleteMarker && (
<MimeTypeIcon mimeType={mimeType} size={size} />
diff --git a/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditor/PolicyDefinition.tsx b/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditor/PolicyDefinition.tsx
index b5e40edcdd1..03e591b0cf1 100644
--- a/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditor/PolicyDefinition.tsx
+++ b/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditor/PolicyDefinition.tsx
@@ -1,6 +1,6 @@
import { usePrevious } from '@uidotdev/usehooks'
import { noop } from 'lodash'
-import { HelpCircle } from 'lucide-react'
+import { HelpCircleIcon } from 'lucide-react'
import { useEffect } from 'react'
import { Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -42,7 +42,7 @@ const PolicyDefinition = ({
</label>
<Tooltip>
<TooltipTrigger>
- <HelpCircle className="text-foreground-light" size={16} strokeWidth={1.5} />
+ <HelpCircleIcon className="text-foreground-light" size={16} strokeWidth={1.5} />
</TooltipTrigger>
<TooltipContent side="bottom">
@@ -85,7 +85,7 @@ const PolicyDefinition = ({
</label>
<Tooltip>
<TooltipTrigger>
- <HelpCircle className="text-foreground-light" size={16} strokeWidth={1.5} />
+ <HelpCircleIcon className="text-foreground-light" size={16} strokeWidth={1.5} />
</TooltipTrigger>
<TooltipContent side="bottom">
diff --git a/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditorModal/PolicyEditorModalTitle.tsx b/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditorModal/PolicyEditorModalTitle.tsx
index 4bca40f1706..742171eca8e 100644
--- a/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditorModal/PolicyEditorModalTitle.tsx
+++ b/apps/studio/components/interfaces/Storage/StoragePolicies/PolicyEditorModal/PolicyEditorModalTitle.tsx
@@ -1,5 +1,5 @@
import { noop } from 'lodash'
-import { ChevronLeft, FlaskConical } from 'lucide-react'
+import { ChevronLeftIcon, FlaskConicalIcon } from 'lucide-react'
import { Button } from 'ui'
import { POLICY_MODAL_VIEWS } from './PolicyEditorModal.constants'
@@ -42,7 +42,7 @@ export const PolicyEditorModalTitle = ({
onClick={onSelectBackFromTemplates}
className="cursor-pointer text-foreground-lighter transition-colors hover:text-foreground"
>
- <ChevronLeft strokeWidth={2} size={14} />
+ <ChevronLeftIcon strokeWidth={2} size={14} />
</span>
<h4>Select a template to use for your new policy</h4>
</div>
@@ -56,7 +56,7 @@ export const PolicyEditorModalTitle = ({
</h4>
<div className="flex items-center gap-x-2 pr-6">
{showAssistantPreview && view === POLICY_MODAL_VIEWS.EDITOR && (
- <Button icon={<FlaskConical />} onClick={onToggleFeaturePreviewModal}>
+ <Button icon={<FlaskConicalIcon />} onClick={onToggleFeaturePreviewModal}>
Try Supabase Assistant
</Button>
)}
diff --git a/apps/studio/components/interfaces/Storage/StoragePolicies/PolicySelection.tsx b/apps/studio/components/interfaces/Storage/StoragePolicies/PolicySelection.tsx
index 70bb07db414..909d6231b2b 100644
--- a/apps/studio/components/interfaces/Storage/StoragePolicies/PolicySelection.tsx
+++ b/apps/studio/components/interfaces/Storage/StoragePolicies/PolicySelection.tsx
@@ -1,5 +1,5 @@
import { noop } from 'lodash'
-import { Edit, ExternalLink, FlaskConical, Grid } from 'lucide-react'
+import { EditIcon, ExternalLinkIcon, FlaskConicalIcon, GridIcon } from 'lucide-react'
import { Alert, AlertDescription, AlertTitle, Button, DialogSection } from 'ui'
import CardButton from '@/components/ui/CardButton'
@@ -36,7 +36,7 @@ export const PolicySelection = ({
rounded-sm bg-foreground text-background
"
>
- <Grid size={14} strokeWidth={2} />
+ <GridIcon size={14} strokeWidth={2} />
</div>
</div>
}
@@ -54,7 +54,7 @@ export const PolicySelection = ({
rounded-sm bg-foreground text-background
"
>
- <Edit size={14} strokeWidth={2} />
+ <EditIcon size={14} strokeWidth={2} />
</div>
</div>
}
@@ -65,14 +65,14 @@ export const PolicySelection = ({
{showAssistantPreview && onToggleFeaturePreviewModal !== undefined && (
<Alert>
- <FlaskConical />
+ <FlaskConicalIcon />
<AlertTitle>Try the new Supabase Assistant for RLS policies</AlertTitle>
<AlertDescription>
Create RLS policies for your tables with the help of AI
</AlertDescription>
<div className="flex items-center gap-x-2 mt-3">
<Button onClick={onToggleFeaturePreviewModal}>Toggle feature preview</Button>
- <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLinkIcon strokeWidth={1.5} />}>
<a
href="https://supabase.com/blog/studio-introducing-assistant#introducing-the-supabase-assistant"
target="_blank"
diff --git a/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesBucketsSection.tsx b/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesBucketsSection.tsx
index b9650073a87..c6903acbfe8 100644
--- a/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesBucketsSection.tsx
+++ b/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePoliciesBucketsSection.tsx
@@ -1,5 +1,5 @@
import { useVirtualizer } from '@tanstack/react-virtual'
-import { ChevronUp, Search, X } from 'lucide-react'
+import { ChevronUpIcon, SearchIcon, XIcon } from 'lucide-react'
import {
forwardRef,
useEffect,
@@ -75,7 +75,7 @@ export const BucketsPolicies = ({
'focus-ring'
)}
>
- <ChevronUp size={14} className={cn(!expanded && 'rotate-180', 'transition')} />
+ <ChevronUpIcon size={14} className={cn(!expanded && 'rotate-180', 'transition')} />
</CollapsibleTrigger>
</PageSectionMeta>
<CollapsibleContent>
@@ -94,14 +94,14 @@ export const BucketsPolicies = ({
const str = e.target.value
setSearch(str)
}}
- icon={<Search />}
+ icon={<SearchIcon />}
actions={
search ? (
<Button
size="tiny"
variant="text"
className="p-0 h-5 w-5"
- icon={<X />}
+ icon={<XIcon />}
onClick={() => setSearch('')}
/>
) : null
diff --git a/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicyEditorModalTitle.tsx b/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicyEditorModalTitle.tsx
index 137403b1580..16a3104bee5 100644
--- a/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicyEditorModalTitle.tsx
+++ b/apps/studio/components/interfaces/Storage/StoragePolicies/StoragePolicyEditorModalTitle.tsx
@@ -1,5 +1,5 @@
import { noop } from 'lodash'
-import { ChevronLeft, X } from 'lucide-react'
+import { ChevronLeftIcon, XIcon } from 'lucide-react'
import { Dialog as DialogPrimitive } from 'radix-ui'
import { cn } from 'ui'
@@ -36,7 +36,7 @@ export const StoragePolicyEditorModalTitle = ({
'hit-area-6'
)}
>
- <ChevronLeft strokeWidth={2} size={14} />
+ <ChevronLeftIcon strokeWidth={2} size={14} />
<span className="sr-only">Back</span>
</button>
<span>Select a template to use for your new policy</span>
@@ -55,7 +55,7 @@ export const StoragePolicyEditorModalTitle = ({
'hit-area-6'
)}
>
- <X size={16} />
+ <XIcon size={16} />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>
</div>
diff --git a/apps/studio/components/interfaces/Storage/StorageRowIcon.tsx b/apps/studio/components/interfaces/Storage/StorageRowIcon.tsx
index 72e0392bfd9..e1967e83ce1 100644
--- a/apps/studio/components/interfaces/Storage/StorageRowIcon.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageRowIcon.tsx
@@ -1,5 +1,12 @@
import { FilesBucket as FilesBucketIcon } from 'icons'
-import { File, Film, FolderOpen, Image as ImageIcon, LoaderCircle, Music } from 'lucide-react'
+import {
+ FileIcon,
+ FilmIcon,
+ FolderOpenIcon,
+ ImageIcon,
+ LoaderCircleIcon,
+ MusicIcon,
+} from 'lucide-react'
import { STORAGE_ROW_STATUS, STORAGE_ROW_TYPES, STORAGE_VIEWS } from './Storage.constants'
@@ -22,7 +29,7 @@ export const StorageRowIcon = ({
}: StorageRowIconProps) => {
if (view === STORAGE_VIEWS.LIST && status === STORAGE_ROW_STATUS.LOADING) {
return (
- <LoaderCircle
+ <LoaderCircleIcon
size={14}
strokeWidth={ICON_STROKE_WIDTH}
className="animate-spin text-foreground-lighter"
@@ -32,7 +39,11 @@ export const StorageRowIcon = ({
if (fileType === STORAGE_ROW_TYPES.FOLDER) {
return isOpened ? (
- <FolderOpen size={16} strokeWidth={ICON_STROKE_WIDTH} className="text-foreground-lighter" />
+ <FolderOpenIcon
+ size={16}
+ strokeWidth={ICON_STROKE_WIDTH}
+ className="text-foreground-lighter"
+ />
) : (
<FilesBucketIcon
size={16}
@@ -49,12 +60,16 @@ export const StorageRowIcon = ({
}
if (mimeType?.includes('audio')) {
- return <Music size={16} strokeWidth={ICON_STROKE_WIDTH} className="text-foreground-lighter" />
+ return (
+ <MusicIcon size={16} strokeWidth={ICON_STROKE_WIDTH} className="text-foreground-lighter" />
+ )
}
if (mimeType?.includes('video')) {
- return <Film size={16} strokeWidth={ICON_STROKE_WIDTH} className="text-foreground-lighter" />
+ return (
+ <FilmIcon size={16} strokeWidth={ICON_STROKE_WIDTH} className="text-foreground-lighter" />
+ )
}
- return <File size={16} strokeWidth={ICON_STROKE_WIDTH} className="text-foreground-lighter" />
+ return <FileIcon size={16} strokeWidth={ICON_STROKE_WIDTH} className="text-foreground-lighter" />
}
diff --git a/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsx b/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsx
index 90fe0ebb353..ee7f8d9ad59 100644
--- a/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageSettings/CreateCredentialModal.tsx
@@ -1,7 +1,7 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import { useState } from 'react'
import { useForm } from 'react-hook-form'
import {
@@ -89,7 +89,7 @@ export const CreateCredentialModal = ({ visible, onOpenChange }: CreateCredentia
<TooltipTrigger asChild>
<DialogTrigger asChild>
<Button
- icon={<Plus size={14} />}
+ icon={<PlusIcon size={14} />}
disabled={disableCreation}
className="pointer-events-auto"
>
diff --git a/apps/studio/components/interfaces/Storage/StorageSettings/StorageCredItem.tsx b/apps/studio/components/interfaces/Storage/StorageSettings/StorageCredItem.tsx
index 31e324d0b6d..1102a64e64b 100644
--- a/apps/studio/components/interfaces/Storage/StorageSettings/StorageCredItem.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageSettings/StorageCredItem.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { differenceInDays } from 'date-fns'
-import { MoreVertical, TrashIcon } from 'lucide-react'
+import { MoreVerticalIcon, TrashIcon } from 'lucide-react'
import {
Button,
DropdownMenu,
@@ -62,7 +62,7 @@ export const StorageCredItem = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
- icon={<MoreVertical size={14} strokeWidth={1} />}
+ icon={<MoreVerticalIcon size={14} strokeWidth={1} />}
variant="text"
className="px-1.5 text-foreground-lighter hover:text-foreground"
/>
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorTableSheet.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorTableSheet.tsx
index 80a016e717f..88b29473b6d 100644
--- a/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorTableSheet.tsx
+++ b/apps/studio/components/interfaces/Storage/VectorBuckets/CreateVectorTableSheet.tsx
@@ -1,7 +1,7 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { literal, safeSql } from '@supabase/pg-meta'
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Plus, Trash2 } from 'lucide-react'
+import { PlusIcon, Trash2Icon } from 'lucide-react'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useEffect } from 'react'
import { SubmitHandler, useFieldArray, useForm } from 'react-hook-form'
@@ -202,7 +202,7 @@ export const CreateVectorTableSheet = ({ bucketName }: CreateVectorTableSheetPro
size="tiny"
variant="primary"
className="w-fit"
- icon={<Plus size={14} />}
+ icon={<PlusIcon size={14} />}
disabled={!canCreateBuckets}
onClick={() => setVisible(true)}
tooltip={{
@@ -376,7 +376,7 @@ export const CreateVectorTableSheet = ({ bucketName }: CreateVectorTableSheetPro
variant="text"
className="w-[34px] h-[34px]" // Match the height of the input
size="tiny"
- icon={<Trash2 size={12} />}
+ icon={<Trash2Icon size={12} />}
onClick={() => remove(index)}
/>
</div>
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketTableExamplesSheet.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketTableExamplesSheet.tsx
index a748789c3ae..945eb77f7d1 100644
--- a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketTableExamplesSheet.tsx
+++ b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/VectorBucketTableExamplesSheet.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import { SqlEditor } from 'icons'
-import { ChevronDown, ListPlus } from 'lucide-react'
+import { ChevronDownIcon, ListPlusIcon } from 'lucide-react'
import Link from 'next/link'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useState } from 'react'
@@ -58,7 +58,7 @@ export const VectorBucketTableExamplesSheet = ({ index }: VectorBucketTableExamp
<Sheet open={open} onOpenChange={setOpen}>
{/* Move into overflow menu after vectors added */}
<SheetTrigger asChild>
- <Button icon={<ListPlus size={12} className="text-foreground-lighter" />}>
+ <Button icon={<ListPlusIcon size={12} className="text-foreground-lighter" />}>
Insert vectors
</Button>
</SheetTrigger>
@@ -219,7 +219,7 @@ const result = await index.putVectors({
Language
</span>
<Button
- iconRight={<ChevronDown size={14} strokeWidth={2} />}
+ iconRight={<ChevronDownIcon size={14} strokeWidth={2} />}
className="rounded-l-none"
>
{language === 'javascript' ? 'JavaScript' : 'SQL'}
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/index.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/index.tsx
index 43b0d7b3b4a..8a710a7fc2c 100644
--- a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/index.tsx
+++ b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/index.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { SqlEditor, TableEditor } from 'icons'
-import { MoreVertical, Search, Trash2 } from 'lucide-react'
+import { MoreVerticalIcon, SearchIcon, Trash2Icon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { parseAsBoolean, parseAsString, useQueryState } from 'nuqs'
@@ -131,7 +131,7 @@ export const VectorBucketDetails = () => {
placeholder="Search for a table"
value={filterString}
onChange={(e) => setFilterString(e.target.value)}
- icon={<Search />}
+ icon={<SearchIcon />}
className="w-48"
/>
<div className="flex items-center gap-x-2">
@@ -223,7 +223,7 @@ export const VectorBucketDetails = () => {
<Button
aria-label="More options"
className="w-7"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
onClick={(e) => e.stopPropagation()}
/>
</DropdownMenuTrigger>
@@ -270,7 +270,7 @@ export const VectorBucketDetails = () => {
setSelectedTableIdToDelete(index.indexName)
}}
>
- <Trash2 size={12} className="text-foreground-lighter" />
+ <Trash2Icon size={12} className="text-foreground-lighter" />
<p>Delete table</p>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/index.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/index.tsx
index 492168504f1..9e373b17f6c 100644
--- a/apps/studio/components/interfaces/Storage/VectorBuckets/index.tsx
+++ b/apps/studio/components/interfaces/Storage/VectorBuckets/index.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { VectorBucket as VectorBucketIcon } from 'icons'
-import { ChevronRight, Search } from 'lucide-react'
+import { ChevronRightIcon, SearchIcon } from 'lucide-react'
import { useRouter } from 'next/navigation'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useState } from 'react'
@@ -81,7 +81,7 @@ export const VectorsBuckets = () => {
placeholder="Search for a bucket"
value={filterString}
onChange={(e) => setFilterString(e.target.value)}
- icon={<Search />}
+ icon={<SearchIcon />}
/>
<CreateBucketButton onClick={() => setVisible(true)} />
@@ -152,7 +152,7 @@ export const VectorsBuckets = () => {
</TableCell>
<TableCell>
<div className="flex justify-end items-center h-full">
- <ChevronRight
+ <ChevronRightIcon
size={14}
className="text-foreground-muted/60"
/>
diff --git a/apps/studio/components/interfaces/Support/AIAssistantOption.tsx b/apps/studio/components/interfaces/Support/AIAssistantOption.tsx
index 1e7df2683f5..f00ea2f589c 100644
--- a/apps/studio/components/interfaces/Support/AIAssistantOption.tsx
+++ b/apps/studio/components/interfaces/Support/AIAssistantOption.tsx
@@ -1,4 +1,4 @@
-import { MessageSquare } from 'lucide-react'
+import { MessageSquareIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import Link from 'next/link'
import { useCallback, useEffect, useState } from 'react'
@@ -83,7 +83,7 @@ export const AIAssistantOption = ({
<div className="relative grow flex flex-col gap-3 w-[400px]">
<div className="flex items-start gap-3 pl-12">
<div className="w-8 h-8 rounded-full bg-background-surface-300 flex items-center justify-center">
- <MessageSquare size={16} className="text-foreground-lighter" />
+ <MessageSquareIcon size={16} className="text-foreground-lighter" />
</div>
<div className="flex-1 bg-background-surface-200 rounded-lg p-4 max-w-[280px]">
<p className="text-sm text-foreground-lighter">
diff --git a/apps/studio/components/interfaces/Support/AttachmentUpload.tsx b/apps/studio/components/interfaces/Support/AttachmentUpload.tsx
index bcb7791fddb..5747b2ae3eb 100644
--- a/apps/studio/components/interfaces/Support/AttachmentUpload.tsx
+++ b/apps/studio/components/interfaces/Support/AttachmentUpload.tsx
@@ -1,7 +1,7 @@
// End of third-party imports
import { compact } from 'lodash'
-import { FileCode, Plus, X } from 'lucide-react'
+import { FileCodeIcon, PlusIcon, XIcon } from 'lucide-react'
import {
useCallback,
useEffect,
@@ -28,7 +28,7 @@ const removeAttachmentButtonClassName = cn(
)
const RemoveAttachmentIcon = () => (
- <X
+ <XIcon
aria-hidden="true"
strokeWidth={3}
className="pointer-events-none absolute left-1/2 top-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2 text-contrast"
@@ -211,7 +211,7 @@ export function AttachmentUploadDisplay({
<Tooltip>
<TooltipTrigger className="cursor-default" onClick={(e) => e.preventDefault()}>
<div className="flex flex-col items-center justify-center gap-y-1">
- <FileCode className="text-foreground-light" size={16} />
+ <FileCodeIcon className="text-foreground-light" size={16} />
<p className="text-[10px] font-mono text-foreground-light tracking-wide leading-none">
HAR
</p>
@@ -263,7 +263,7 @@ export function AttachmentUploadDisplay({
)}
onClick={addFile}
>
- <Plus strokeWidth={2} size={20} />
+ <PlusIcon strokeWidth={2} size={20} />
</button>
)}
</div>
diff --git a/apps/studio/components/interfaces/Support/ClientLibraryInfo.tsx b/apps/studio/components/interfaces/Support/ClientLibraryInfo.tsx
index f006b8eafdc..6710c643e3a 100644
--- a/apps/studio/components/interfaces/Support/ClientLibraryInfo.tsx
+++ b/apps/studio/components/interfaces/Support/ClientLibraryInfo.tsx
@@ -1,7 +1,7 @@
// End of third-party imports
import { CLIENT_LIBRARIES } from 'common/constants'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import type { UseFormReturn } from 'react-hook-form'
import {
@@ -100,7 +100,7 @@ const LibrarySuggestions = ({ library }: LibrarySuggestionsProps) => {
</p>
</div>
<div>
- <Button asChild icon={<ExternalLink size={14} strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLinkIcon size={14} strokeWidth={1.5} />}>
<Link href={lib.url} target="_blank" rel="noreferrer">
View GitHub issues
</Link>
@@ -120,7 +120,7 @@ const LibrarySuggestions = ({ library }: LibrarySuggestionsProps) => {
<p className="text-sm text-foreground-light">For any issues about our API</p>
</div>
<div>
- <Button asChild icon={<ExternalLink size={14} strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLinkIcon size={14} strokeWidth={1.5} />}>
<Link href="https://github.com/supabase/supabase" target="_blank" rel="noreferrer">
View GitHub issues
</Link>
diff --git a/apps/studio/components/interfaces/Support/DashboardLogsToggle.tsx b/apps/studio/components/interfaces/Support/DashboardLogsToggle.tsx
index 3aa8056790b..e49c9d71056 100644
--- a/apps/studio/components/interfaces/Support/DashboardLogsToggle.tsx
+++ b/apps/studio/components/interfaces/Support/DashboardLogsToggle.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import type { UseFormReturn } from 'react-hook-form'
import {
@@ -59,7 +59,7 @@ export function DashboardLogsToggle({
'group flex items-center gap-x-1 group-data-open:text-foreground hover:text-foreground transition'
}
>
- <ChevronRight
+ <ChevronRightIcon
size={14}
className="transition-all group-data-open:rotate-90 text-foreground-muted -ml-1"
/>
diff --git a/apps/studio/components/interfaces/Support/DocsSuggestions.tsx b/apps/studio/components/interfaces/Support/DocsSuggestions.tsx
index 33a7fd3a4b3..73dbe8b6961 100644
--- a/apps/studio/components/interfaces/Support/DocsSuggestions.tsx
+++ b/apps/studio/components/interfaces/Support/DocsSuggestions.tsx
@@ -1,5 +1,5 @@
import { useDocsSearch, type DocsSearchResult } from 'common'
-import { Book, Github, Loader2 } from 'lucide-react'
+import { BookIcon, GithubIcon, Loader2Icon } from 'lucide-react'
import { cn } from 'ui'
import { useChangedSync } from '@/hooks/misc/useChanged'
@@ -45,7 +45,7 @@ export function DocsSuggestions({ searchString }: DocsSuggestionsProps) {
function DocsSuggestions_Loading() {
return (
<div className="flex items-center gap-2 text-sm text-foreground-light">
- <Loader2 className="animate-spin" size={14} />
+ <Loader2Icon className="animate-spin" size={14} />
<span>Searching for relevant resources...</span>
</div>
)
@@ -72,9 +72,9 @@ function DocsSuggestions_Results({ results, isStale }: DocsSuggestions_ResultsPr
return (
<li key={page.id} className="flex items-center gap-x-1">
{page.type === 'github-discussions' ? (
- <Github size={16} className="text-foreground-muted" />
+ <GithubIcon size={16} className="text-foreground-muted" />
) : (
- <Book size={16} className="text-foreground-muted" />
+ <BookIcon size={16} className="text-foreground-muted" />
)}
<a
href={page.type === 'github-discussions' ? page.path : `${DOCS_URL}${page.path}`}
diff --git a/apps/studio/components/interfaces/Support/IPV4SuggestionAlert.tsx b/apps/studio/components/interfaces/Support/IPV4SuggestionAlert.tsx
index 7b660f24159..6402ef80b3c 100644
--- a/apps/studio/components/interfaces/Support/IPV4SuggestionAlert.tsx
+++ b/apps/studio/components/interfaces/Support/IPV4SuggestionAlert.tsx
@@ -1,11 +1,11 @@
-import { ExternalLink, HelpCircle } from 'lucide-react'
+import { ExternalLinkIcon, HelpCircleIcon } from 'lucide-react'
import Link from 'next/link'
import { Alert, AlertDescription, AlertTitle, Button } from 'ui'
export const IPV4SuggestionAlert = () => {
return (
<Alert variant="default">
- <HelpCircle strokeWidth={2} />
+ <HelpCircleIcon strokeWidth={2} />
<AlertTitle>Connection issues?</AlertTitle>
<AlertDescription className="grid gap-3">
<p>
@@ -17,7 +17,7 @@ export const IPV4SuggestionAlert = () => {
questions.
</p>
<p>
- <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLinkIcon strokeWidth={1.5} />}>
<Link
target="_blank"
rel="noreferrer"
diff --git a/apps/studio/components/interfaces/Support/IncidentAdmonition.tsx b/apps/studio/components/interfaces/Support/IncidentAdmonition.tsx
index cae79d7d889..3ec25da7a2e 100644
--- a/apps/studio/components/interfaces/Support/IncidentAdmonition.tsx
+++ b/apps/studio/components/interfaces/Support/IncidentAdmonition.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import Link from 'next/link'
import { Button } from 'ui'
@@ -34,7 +34,7 @@ export function IncidentAdmonition({
title={title}
description={description}
actions={
- <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLinkIcon strokeWidth={1.5} />}>
<Link href={statusPageUrl} target="_blank" rel="noreferrer">
Status page
</Link>
diff --git a/apps/studio/components/interfaces/Support/LinkSupportTicketForm.tsx b/apps/studio/components/interfaces/Support/LinkSupportTicketForm.tsx
index 813ba728648..0a43483077b 100644
--- a/apps/studio/components/interfaces/Support/LinkSupportTicketForm.tsx
+++ b/apps/studio/components/interfaces/Support/LinkSupportTicketForm.tsx
@@ -1,5 +1,5 @@
import { zodResolver } from '@hookform/resolvers/zod'
-import { Link2 } from 'lucide-react'
+import { Link2Icon } from 'lucide-react'
import { useEffect } from 'react'
import type { SubmitHandler } from 'react-hook-form'
import { useForm, useWatch } from 'react-hook-form'
@@ -168,7 +168,7 @@ export const LinkSupportTicketForm = ({
variant="primary"
type="submit"
size="large"
- icon={<Link2 />}
+ icon={<Link2Icon />}
loading={isPending}
>
Link support ticket to account
diff --git a/apps/studio/components/interfaces/Support/LinkSupportTicketPage.tsx b/apps/studio/components/interfaces/Support/LinkSupportTicketPage.tsx
index b9a56876a62..2d7476a2bf8 100644
--- a/apps/studio/components/interfaces/Support/LinkSupportTicketPage.tsx
+++ b/apps/studio/components/interfaces/Support/LinkSupportTicketPage.tsx
@@ -1,4 +1,4 @@
-import { Check, Mail } from 'lucide-react'
+import { CheckIcon, MailIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useState } from 'react'
@@ -58,9 +58,9 @@ function LinkSupportTicketSuccess() {
<div className="w-full flex flex-col items-center">
<div className="flex flex-col items-center gap-y-4 py-8">
<div className="relative">
- <Mail strokeWidth={1.5} size={60} className="text-primary" />
+ <MailIcon strokeWidth={1.5} size={60} className="text-primary" />
<div className="h-6 w-6 rounded-full bg-brand-default absolute bottom-1 -right-1.5 flex items-center justify-center">
- <Check strokeWidth={4} size={16} className="text-contrast" />
+ <CheckIcon strokeWidth={4} size={16} className="text-contrast" />
</div>
</div>
<div className="flex items-center flex-col gap-y-2 text-center">
diff --git a/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx b/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
index 016686c0572..97d0605c680 100644
--- a/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
+++ b/apps/studio/components/interfaces/Support/ProjectAndPlanInfo.tsx
@@ -1,7 +1,7 @@
// End of third-party imports
import { useParams } from 'common'
-import { Check, ChevronsUpDown, ExternalLink } from 'lucide-react'
+import { CheckIcon, ChevronsUpDownIcon, ExternalLinkIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import Link from 'next/link'
import type { UseFormReturn } from 'react-hook-form'
@@ -89,7 +89,7 @@ function ProjectSelector({ form, orgSlug, projectRef }: ProjectSelectorProps) {
aria-controls={listboxId}
size="small"
className="justify-between"
- iconRight={<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />}
+ iconRight={<ChevronsUpDownIcon className="ml-2 h-4 w-4 shrink-0 opacity-50" />}
>
{!!orgSlug && isLoading ? (
<ShimmeringLoader className="w-44 py-2" />
@@ -110,7 +110,7 @@ function ProjectSelector({ form, orgSlug, projectRef }: ProjectSelectorProps) {
setOpen(false)
}}
>
- {field.value === NO_PROJECT_MARKER && <Check size={16} />}
+ {field.value === NO_PROJECT_MARKER && <CheckIcon size={16} />}
<p className={cn(field.value !== NO_PROJECT_MARKER && 'ml-6')}>
No specific project
</p>
@@ -205,7 +205,7 @@ export const PlanExpectationInfoContent = ({
Upgrade plan
</Link>
</Button>
- <Button asChild size="tiny" icon={<ExternalLink />}>
+ <Button asChild size="tiny" icon={<ExternalLinkIcon />}>
<Link href="https://supabase.com/contact/enterprise" target="_blank" rel="noreferrer">
Enquire about Enterprise
</Link>
diff --git a/apps/studio/components/interfaces/Support/SubjectAndSuggestionsInfo.tsx b/apps/studio/components/interfaces/Support/SubjectAndSuggestionsInfo.tsx
index c1bf234e13b..c217820cf96 100644
--- a/apps/studio/components/interfaces/Support/SubjectAndSuggestionsInfo.tsx
+++ b/apps/studio/components/interfaces/Support/SubjectAndSuggestionsInfo.tsx
@@ -1,7 +1,7 @@
// End of third-party imports
import { SupportCategories } from '@supabase/shared-types/out/constants'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import type { UseFormReturn } from 'react-hook-form'
import { FormControl, FormField, Input } from 'ui'
@@ -64,7 +64,7 @@ function GitHubDiscussionSuggestion({ subject }: GitHubDiscussionSuggestionProps
className="flex items-center gap-x-1 underline hover:text-foreground transition"
>
GitHub discussions
- <ExternalLink size={14} strokeWidth={2} />
+ <ExternalLinkIcon size={14} strokeWidth={2} />
</Link>
for a quick answer
</p>
diff --git a/apps/studio/components/interfaces/Support/Success.tsx b/apps/studio/components/interfaces/Support/Success.tsx
index 84f7e073150..e74feb8af5c 100644
--- a/apps/studio/components/interfaces/Support/Success.tsx
+++ b/apps/studio/components/interfaces/Support/Success.tsx
@@ -1,4 +1,4 @@
-import { Check } from 'lucide-react'
+import { CheckIcon } from 'lucide-react'
import Link from 'next/link'
import { Button, IconDiscord } from 'ui'
@@ -42,7 +42,7 @@ export const Success = ({
return (
<div className="flex w-full flex-col items-center gap-4 px-4 py-4 text-center">
- <Check strokeWidth={1.5} size={24} className="text-primary" />
+ <CheckIcon strokeWidth={1.5} size={24} className="text-primary" />
<div className="flex max-w-[620px] flex-col items-center gap-2">
<h3 className="text-xl">Support request sent</h3>
diff --git a/apps/studio/components/interfaces/Support/SupportAccessToggle.tsx b/apps/studio/components/interfaces/Support/SupportAccessToggle.tsx
index 0d3ba10a5df..829dbde23e4 100644
--- a/apps/studio/components/interfaces/Support/SupportAccessToggle.tsx
+++ b/apps/studio/components/interfaces/Support/SupportAccessToggle.tsx
@@ -1,6 +1,6 @@
// End of third-party imports
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import Link from 'next/link'
import type { UseFormReturn } from 'react-hook-form'
import {
@@ -51,7 +51,7 @@ export function SupportAccessToggle({ form, align = 'left', className }: Support
'group flex items-center gap-x-1 group-data-open:text-foreground hover:text-foreground transition'
}
>
- <ChevronRight
+ <ChevronRightIcon
size={14}
className="transition-all group-data-open:rotate-90 text-foreground-muted -ml-1"
/>
diff --git a/apps/studio/components/interfaces/Support/SupportAssistantSuccessCard.tsx b/apps/studio/components/interfaces/Support/SupportAssistantSuccessCard.tsx
index 064b55e557f..dcd5fb9c2d4 100644
--- a/apps/studio/components/interfaces/Support/SupportAssistantSuccessCard.tsx
+++ b/apps/studio/components/interfaces/Support/SupportAssistantSuccessCard.tsx
@@ -1,4 +1,4 @@
-import { ArrowUpRight } from 'lucide-react'
+import { ArrowUpRightIcon } from 'lucide-react'
import dynamic from 'next/dynamic'
import {
AiIconAnimation,
@@ -60,7 +60,7 @@ function SupportAssistantSuccessCardLoadingShell({ className }: { className?: st
<CardDescription>Assistant may be able to help</CardDescription>
</div>
</div>
- <ArrowUpRight
+ <ArrowUpRightIcon
size={14}
strokeWidth={1.5}
className="shrink-0 text-foreground-lighter transition-colors group-hover:text-foreground"
diff --git a/apps/studio/components/interfaces/Support/SupportForm.utils.tsx b/apps/studio/components/interfaces/Support/SupportForm.utils.tsx
index 7bc5fe26737..59ff65f25ea 100644
--- a/apps/studio/components/interfaces/Support/SupportForm.utils.tsx
+++ b/apps/studio/components/interfaces/Support/SupportForm.utils.tsx
@@ -8,7 +8,7 @@ import {
} from 'common'
import dayjs from 'dayjs'
import { partition } from 'lodash'
-import { Book, Github, Hash, MessageSquare } from 'lucide-react'
+import { BookIcon, GithubIcon, HashIcon, MessageSquareIcon } from 'lucide-react'
import {
createLoader,
createParser,
@@ -74,9 +74,9 @@ export function getPageIcon(page: Page) {
case PageType.Markdown:
case PageType.Reference:
case PageType.Integration:
- return <Book strokeWidth={1.5} className="mr-0! w-4! h-4!" />
+ return <BookIcon strokeWidth={1.5} className="mr-0! w-4! h-4!" />
case PageType.GithubDiscussion:
- return <Github strokeWidth={1.5} className="mr-0! w-4! h-4!" />
+ return <GithubIcon strokeWidth={1.5} className="mr-0! w-4! h-4!" />
default:
throw new Error(`Unknown page type '${page.type}'`)
}
@@ -87,9 +87,9 @@ export function getPageSectionIcon(page: Page) {
case PageType.Markdown:
case PageType.Reference:
case PageType.Integration:
- return <Hash strokeWidth={1.5} className="mr-0! w-4! h-4!" />
+ return <HashIcon strokeWidth={1.5} className="mr-0! w-4! h-4!" />
case PageType.GithubDiscussion:
- return <MessageSquare strokeWidth={1.5} className="mr-0! w-4! h-4!" />
+ return <MessageSquareIcon strokeWidth={1.5} className="mr-0! w-4! h-4!" />
default:
throw new Error(`Unknown page type '${page.type}'`)
}
diff --git a/apps/studio/components/interfaces/Support/SupportFormPage.tsx b/apps/studio/components/interfaces/Support/SupportFormPage.tsx
index f665841c7b6..589ecdc048b 100644
--- a/apps/studio/components/interfaces/Support/SupportFormPage.tsx
+++ b/apps/studio/components/interfaces/Support/SupportFormPage.tsx
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/nextjs'
-import { Loader2, Wrench } from 'lucide-react'
+import { Loader2Icon, WrenchIcon } from 'lucide-react'
import Link from 'next/link'
import { useCallback, useReducer, type Dispatch, type PropsWithChildren } from 'react'
import type { UseFormReturn } from 'react-hook-form'
@@ -143,7 +143,7 @@ function SupportFormHeader() {
</div>
<div className="flex items-center gap-x-3">
- <Button asChild icon={<Wrench />}>
+ <Button asChild icon={<WrenchIcon />}>
<Link
href={`${DOCS_URL}/guides/troubleshooting?products=platform`}
target="_blank"
@@ -158,7 +158,7 @@ function SupportFormHeader() {
asChild
icon={
isLoading ? (
- <Loader2 className="animate-spin" />
+ <Loader2Icon className="animate-spin" />
) : (
<div
className={cn(
diff --git a/apps/studio/components/interfaces/Support/SupportSidebarForm.tsx b/apps/studio/components/interfaces/Support/SupportSidebarForm.tsx
index 3bd871bd4d0..4258db20605 100644
--- a/apps/studio/components/interfaces/Support/SupportSidebarForm.tsx
+++ b/apps/studio/components/interfaces/Support/SupportSidebarForm.tsx
@@ -1,6 +1,6 @@
import * as Sentry from '@sentry/nextjs'
import { useFlag } from 'common'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import Link from 'next/link'
import { useCallback, useReducer } from 'react'
import { toast } from 'sonner'
@@ -136,7 +136,7 @@ export function SupportFormStatusButton() {
size="tiny"
icon={
isLoading ? (
- <Loader2 className="animate-spin" />
+ <Loader2Icon className="animate-spin" />
) : (
<div
className={cn(
diff --git a/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx b/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx
index d1eca19ecc0..31ed81b6334 100644
--- a/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import { toast } from 'sonner'
import { Alert, AlertDescription, AlertTitle, Button, Checkbox } from 'ui'
@@ -303,7 +303,7 @@ const DeleteConfirmationDialogs = ({
recursively.
</AlertTitle>
<AlertDescription>
- <Button asChild size="tiny" icon={<ExternalLink />}>
+ <Button asChild size="tiny" icon={<ExternalLinkIcon />}>
<Link
href="https://www.postgresql.org/docs/current/ddl-depend.html"
target="_blank"
@@ -364,7 +364,7 @@ const DeleteConfirmationDialogs = ({
recursively.
</AlertDescription>
<AlertDescription className="mt-4">
- <Button asChild size="tiny" icon={<ExternalLink />}>
+ <Button asChild size="tiny" icon={<ExternalLinkIcon />}>
<Link
href="https://www.postgresql.org/docs/current/ddl-depend.html"
target="_blank"
@@ -497,7 +497,7 @@ const DropEntityConfirmationModal = ({
recursively.
</AlertDescription>
<AlertDescription className="mt-4">
- <Button asChild size="tiny" icon={<ExternalLink />}>
+ <Button asChild size="tiny" icon={<ExternalLinkIcon />}>
<Link
href="https://www.postgresql.org/docs/current/ddl-depend.html"
target="_blank"
diff --git a/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx b/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
index 4fe13121d74..eddb86b4e83 100644
--- a/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
@@ -1,7 +1,14 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import { Realtime } from 'icons'
-import { BookOpenText, Lightbulb, Lock, MoreVertical, PlusCircle, Unlock } from 'lucide-react'
+import {
+ BookOpenTextIcon,
+ LightbulbIcon,
+ LockIcon,
+ MoreVerticalIcon,
+ PlusCircleIcon,
+ UnlockIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useState } from 'react'
@@ -210,7 +217,7 @@ export const GridHeaderActions = ({ table, isRefetching }: GridHeaderActionsProp
<ButtonTooltip
asChild
className="group"
- icon={<PlusCircle strokeWidth={1.5} className="text-foreground-muted" />}
+ icon={<PlusCircleIcon strokeWidth={1.5} className="text-foreground-muted" />}
tooltip={{
content: {
side: 'bottom',
@@ -242,7 +249,7 @@ export const GridHeaderActions = ({ table, isRefetching }: GridHeaderActionsProp
</span>
</div>
) : (
- <PlusCircle strokeWidth={1.5} />
+ <PlusCircleIcon strokeWidth={1.5} />
)
}
>
@@ -255,13 +262,13 @@ export const GridHeaderActions = ({ table, isRefetching }: GridHeaderActionsProp
) : tableHasLints ? (
<Popover modal={false} open={showWarning} onOpenChange={setShowWarning}>
<PopoverTrigger asChild>
- <Button variant="danger" icon={<Lock strokeWidth={1.5} />}>
+ <Button variant="danger" icon={<LockIcon strokeWidth={1.5} />}>
RLS disabled
</Button>
</PopoverTrigger>
<PopoverContent className="w-80 text-sm" align="end">
<h4 className="flex items-center gap-2">
- <Lock size={16} /> Row Level Security (RLS)
+ <LockIcon size={16} /> Row Level Security (RLS)
</h4>
<div className="grid gap-2 mt-4 text-foreground-light text-xs">
<p>
@@ -298,13 +305,13 @@ export const GridHeaderActions = ({ table, isRefetching }: GridHeaderActionsProp
{isMaterializedView && materializedViewHasLints && (
<Popover modal={false}>
<PopoverTrigger asChild>
- <Button variant="warning" icon={<Unlock strokeWidth={1.5} />}>
+ <Button variant="warning" icon={<UnlockIcon strokeWidth={1.5} />}>
Materialized View in API
</Button>
</PopoverTrigger>
<PopoverContent className="min-w-[395px] text-sm" align="end">
<h3 className="flex items-center gap-2">
- <Unlock size={16} /> Secure your Materialized View
+ <UnlockIcon size={16} /> Secure your Materialized View
</h3>
<div className="grid gap-2 mt-4 text-foreground-light text-sm">
<p>
@@ -344,13 +351,13 @@ export const GridHeaderActions = ({ table, isRefetching }: GridHeaderActionsProp
{isForeignTable && table.schema === 'public' && (
<Popover modal={false} open={showWarning} onOpenChange={setShowWarning}>
<PopoverTrigger asChild>
- <Button variant="warning" icon={<Unlock strokeWidth={1.5} />}>
+ <Button variant="warning" icon={<UnlockIcon strokeWidth={1.5} />}>
Unprotected Data API access
</Button>
</PopoverTrigger>
<PopoverContent className="min-w-[395px] text-sm" align="end">
<h3 className="flex items-center gap-2">
- <Unlock size={16} /> Secure Foreign table
+ <UnlockIcon size={16} /> Secure Foreign table
</h3>
<div className="grid gap-2 mt-4 text-foreground-light text-sm">
<p>
@@ -381,7 +388,7 @@ export const GridHeaderActions = ({ table, isRefetching }: GridHeaderActionsProp
<TooltipTrigger asChild>
<DropdownMenuTrigger asChild>
<Button
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
className="h-7 w-7"
aria-label={`More options for ${table.name}`}
/>
@@ -398,7 +405,7 @@ export const GridHeaderActions = ({ table, isRefetching }: GridHeaderActionsProp
)}
{doesHaveAutoGeneratedAPIDocs && (
<DropdownMenuItem className="gap-x-2" onClick={() => onViewAPIDocs()}>
- <BookOpenText size={14} />
+ <BookOpenTextIcon size={14} />
<span>View API docs</span>
</DropdownMenuItem>
)}
@@ -409,7 +416,7 @@ export const GridHeaderActions = ({ table, isRefetching }: GridHeaderActionsProp
className="gap-x-2"
onClick={() => setIndexAdvisorDialogOpen(true)}
>
- <Lightbulb size={14} />
+ <LightbulbIcon size={14} />
<span>Enable Index Advisor</span>
</DropdownMenuItem>
</>
diff --git a/apps/studio/components/interfaces/TableGridEditor/InsertButton.tsx b/apps/studio/components/interfaces/TableGridEditor/InsertButton.tsx
index 73b27d1d818..4ff032fc17d 100644
--- a/apps/studio/components/interfaces/TableGridEditor/InsertButton.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/InsertButton.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { ArrowUp, ChevronDown, FileText } from 'lucide-react'
+import { ArrowUpIcon, ChevronDownIcon, FileTextIcon } from 'lucide-react'
import {
Button,
cn,
@@ -56,7 +56,7 @@ export const InsertButton = () => {
data-testid="table-editor-insert-new-row"
variant="primary"
size="tiny"
- icon={<ChevronDown strokeWidth={1.5} />}
+ icon={<ChevronDownIcon strokeWidth={1.5} />}
>
Insert
</Button>
@@ -120,8 +120,8 @@ export const InsertButton = () => {
}}
>
<div className="relative shrink-0 w-4">
- <FileText size={18} strokeWidth={1.5} className="translate-x-[-2px]" />
- <ArrowUp
+ <FileTextIcon size={18} strokeWidth={1.5} className="translate-x-[-2px]" />
+ <ArrowUpIcon
className={cn(
'transition duration-200 absolute bottom-0 right-0 translate-y-1 opacity-0 bg-brand-400 rounded-full',
'group-data-highlighted:translate-y-0 group-data-highlighted:text-primary group-data-highlighted:opacity-100'
diff --git a/apps/studio/components/interfaces/TableGridEditor/SecurityDefinerViewPopover.tsx b/apps/studio/components/interfaces/TableGridEditor/SecurityDefinerViewPopover.tsx
index 557a4eb39a8..aacf1f2c5c7 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SecurityDefinerViewPopover.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SecurityDefinerViewPopover.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Unlock } from 'lucide-react'
+import { UnlockIcon } from 'lucide-react'
import Link from 'next/link'
import { Button, Popover, PopoverContent, PopoverTrigger } from 'ui'
@@ -17,13 +17,13 @@ export const SecurityDefinerViewPopover = ({
return (
<Popover modal={false}>
<PopoverTrigger asChild>
- <Button variant="warning" icon={<Unlock strokeWidth={1.5} />}>
+ <Button variant="warning" icon={<UnlockIcon strokeWidth={1.5} />}>
Security Definer view
</Button>
</PopoverTrigger>
<PopoverContent className="min-w-[395px] text-sm" align="end">
<h4 className="flex items-center gap-2">
- <Unlock size={14} /> Secure your view
+ <UnlockIcon size={14} /> Secure your view
</h4>
<div className="grid gap-2 mt-2 text-foreground-light text-sm">
<p>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
index a4995932a23..9207f3d5132 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
@@ -1,7 +1,7 @@
import { safeSql } from '@supabase/pg-meta'
import { useParams } from 'common'
import { isEmpty, noop } from 'lodash'
-import { ExternalLink, Plus } from 'lucide-react'
+import { ExternalLinkIcon, PlusIcon } from 'lucide-react'
import Link from 'next/link'
import { useEffect, useState } from 'react'
import {
@@ -300,7 +300,7 @@ export const ColumnEditor = ({
className="lg:col-span-4!"
description={
<div className="space-y-2">
- <Button asChild icon={<Plus />}>
+ <Button asChild icon={<PlusIcon />}>
<Link
target="_blank"
rel="noreferrer"
@@ -309,7 +309,7 @@ export const ColumnEditor = ({
Create enum types
</Link>
</Button>
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<Link
target="_blank"
rel="noreferrer"
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
index c0187b7a6e5..7eec8ff26f4 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx
@@ -1,5 +1,13 @@
import { noop } from 'lodash'
-import { Calendar, Check, ExternalLink, Hash, ListPlus, ToggleRight, Type } from 'lucide-react'
+import {
+ CalendarIcon,
+ CheckIcon,
+ ExternalLinkIcon,
+ HashIcon,
+ ListPlusIcon,
+ ToggleRightIcon,
+ TypeIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { ReactNode, useId, useState } from 'react'
import {
@@ -102,11 +110,11 @@ const ColumnType = ({
const inferIcon = (type: string) => {
switch (type) {
case 'number':
- return <Hash size={14} className="text-foreground" strokeWidth={1.5} />
+ return <HashIcon size={14} className="text-foreground" strokeWidth={1.5} />
case 'time':
- return <Calendar size={14} className="text-foreground" strokeWidth={1.5} />
+ return <CalendarIcon size={14} className="text-foreground" strokeWidth={1.5} />
case 'text':
- return <Type size={14} className="text-foreground" strokeWidth={1.5} />
+ return <TypeIcon size={14} className="text-foreground" strokeWidth={1.5} />
case 'json':
return (
<div className="text-foreground" style={{ padding: '0px 1px' }}>
@@ -120,9 +128,9 @@ const ColumnType = ({
</div>
)
case 'bool':
- return <ToggleRight size={14} className="text-foreground" strokeWidth={1.5} />
+ return <ToggleRightIcon size={14} className="text-foreground" strokeWidth={1.5} />
default:
- return <ListPlus size={16} className="text-foreground" strokeWidth={1.5} />
+ return <ListPlusIcon size={16} className="text-foreground" strokeWidth={1.5} />
}
}
@@ -232,7 +240,7 @@ const ColumnType = ({
<span className="text-foreground-lighter">{option.description}</span>
</div>
<span className="absolute right-3 top-2">
- {isSelected ? <Check className="text-primary" size={14} /> : ''}
+ {isSelected ? <CheckIcon className="text-primary" size={14} /> : ''}
</span>
</CommandItem>
)
@@ -261,7 +269,11 @@ const ColumnType = ({
>
<div className="flex items-center gap-2">
<div>
- <ListPlus size={16} className="text-foreground" strokeWidth={1.5} />
+ <ListPlusIcon
+ size={16}
+ className="text-foreground"
+ strokeWidth={1.5}
+ />
</div>
<span className="text-foreground">
{option.format.replaceAll('"', '')}
@@ -276,7 +288,7 @@ const ColumnType = ({
)}
{isSelected && (
<span className="absolute right-3 top-2">
- <Check className="text-primary" size={14} />
+ <CheckIcon className="text-primary" size={14} />
</span>
)}
</div>
@@ -307,7 +319,7 @@ const ColumnType = ({
specific use case.
</p>
<div className="flex items-center space-x-2 mt-3">
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<Link href={recommendation.reference} target="_blank" rel="noreferrer">
Read more
</Link>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
index 570e89c883c..e14866dde0a 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx
@@ -6,7 +6,7 @@
// the component over to the UI library
import { noop } from 'lodash'
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { useEffect, useRef, useState } from 'react'
import {
DropdownMenu,
@@ -112,7 +112,11 @@ const InputWithSuggestions = ({
content: { text: 'Choose a suggested value for this column', side: 'bottom' },
}}
>
- <ChevronDown className="text-foreground-lighter" strokeWidth={1.5} size={16} />
+ <ChevronDownIcon
+ className="text-foreground-lighter"
+ strokeWidth={1.5}
+ size={16}
+ />
</ButtonTooltip>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
index dde428549c2..91a30d17b77 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx
@@ -1,7 +1,7 @@
import { FOREIGN_KEY_CASCADE_ACTION } from '@supabase/pg-meta'
import type { PGTable } from '@supabase/pg-meta'
import { sortBy } from 'lodash'
-import { ArrowRight, HelpCircle, Loader2, X } from 'lucide-react'
+import { ArrowRightIcon, HelpCircleIcon, Loader2Icon, XIcon } from 'lucide-react'
import { Fragment, useEffect, useMemo, useState } from 'react'
import {
Alert,
@@ -316,7 +316,7 @@ export const ForeignKeySelector = ({
<SidePanel.Content>
<div className="py-6 space-y-6">
<InformationBox
- icon={<HelpCircle size={20} strokeWidth={1.5} />}
+ icon={<HelpCircleIcon size={20} strokeWidth={1.5} />}
title="What are foreign keys?"
description={`Foreign keys help maintain referential integrity of your data by ensuring that no
one can insert rows into the table that do not have a matching entry to another
@@ -380,7 +380,7 @@ export const ForeignKeySelector = ({
<>
{isLoadingSelectedTable ? (
<div className="flex py-6 flex-col items-center justify-center space-y-2">
- <Loader2 size={14} className="animate-spin" />
+ <Loader2Icon size={14} className="animate-spin" />
<p className="text-sm text-foreground-light">Loading table columns</p>
</div>
) : (
@@ -441,7 +441,7 @@ export const ForeignKeySelector = ({
</Select>
</div>
<div className="col-span-1 flex justify-center items-center">
- <ArrowRight />
+ <ArrowRightIcon />
</div>
<div className="col-span-4">
<Select
@@ -474,7 +474,7 @@ export const ForeignKeySelector = ({
<div className="col-span-1 flex justify-end items-center">
<Button
className="px-1"
- icon={<X />}
+ icon={<XIcon />}
disabled={fk.columns.length === 1}
onClick={() => onRemoveColumn(idx)}
/>
@@ -530,7 +530,7 @@ export const ForeignKeySelector = ({
<li key={`type-error-${idx}`}>
<div className="flex items-center gap-x-1">
<code className="text-code-inline">{x.source}</code>{' '}
- <ArrowRight size={14} />{' '}
+ <ArrowRightIcon size={14} />{' '}
{displayColumnType(
x.targetType,
x.targetTypeSchema,
@@ -552,7 +552,7 @@ export const ForeignKeySelector = ({
<SidePanel.Separator />
<InformationBox
- icon={<HelpCircle size="20" strokeWidth={1.5} />}
+ icon={<HelpCircleIcon size="20" strokeWidth={1.5} />}
title="Which action is most appropriate?"
description={
<>
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 6bdd4520560..5f41e3e13e0 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx
@@ -1,6 +1,6 @@
import { FOREIGN_KEY_CASCADE_ACTION } from '@supabase/pg-meta'
import { isEqual } from 'lodash'
-import { HelpCircle } from 'lucide-react'
+import { HelpCircleIcon } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { getForeignKeyCascadeAction } from '../ColumnEditor/ColumnEditor.utils'
@@ -88,7 +88,7 @@ export const generateCascadeActionDescription = (
<span className="text-foreground-light">{actionName}</span>
<Tooltip>
<TooltipTrigger className="translate-y-[3px] mx-1">
- <HelpCircle className="text-foreground-light" size={16} strokeWidth={1.5} />
+ <HelpCircleIcon className="text-foreground-light" size={16} strokeWidth={1.5} />
</TooltipTrigger>
<TooltipContent side="bottom" className="w-80">
This is similar to no action, but the restrict check cannot be deferred till later in
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/AddRowOperationItem.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/AddRowOperationItem.tsx
index b1d1aa86e9b..0936c574206 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/AddRowOperationItem.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/AddRowOperationItem.tsx
@@ -1,5 +1,5 @@
import { useQueryClient } from '@tanstack/react-query'
-import { Undo2 } from 'lucide-react'
+import { Undo2Icon } from 'lucide-react'
import { Card, CardContent, CardHeader } from 'ui'
import { formatOperationItemValue } from './OperationQueueSidePanel.utils'
@@ -64,7 +64,7 @@ export const AddRowOperationItem = ({
variant="text"
aria-label="Discard change"
className="w-7"
- icon={<Undo2 />}
+ icon={<Undo2Icon />}
onClick={handleDelete}
tooltip={{
content: {
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/DeleteRowOperationItem.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/DeleteRowOperationItem.tsx
index 7b9098b64f0..2caca26eda3 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/DeleteRowOperationItem.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/DeleteRowOperationItem.tsx
@@ -1,5 +1,5 @@
import { useQueryClient } from '@tanstack/react-query'
-import { Undo2 } from 'lucide-react'
+import { Undo2Icon } from 'lucide-react'
import { Card, CardContent, CardHeader } from 'ui'
import { formatOperationItemValue } from './OperationQueueSidePanel.utils'
@@ -64,7 +64,7 @@ export const DeleteRowOperationItem = ({
variant="text"
aria-label="Discard change"
className="w-7"
- icon={<Undo2 />}
+ icon={<Undo2Icon />}
onClick={handleDelete}
tooltip={{
content: {
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/OperationItem.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/OperationItem.tsx
index 50941e9fca7..b786d6dd83f 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/OperationItem.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/OperationQueueSidePanel/OperationItem.tsx
@@ -1,5 +1,5 @@
import { useQueryClient } from '@tanstack/react-query'
-import { Undo2 } from 'lucide-react'
+import { Undo2Icon } from 'lucide-react'
import { Card, CardContent, CardHeader } from 'ui'
import { formatOperationItemValue } from './OperationQueueSidePanel.utils'
@@ -61,7 +61,7 @@ export const OperationItem = ({ operationId, tableId, content }: OperationItemPr
variant="text"
aria-label="Discard change"
className="px-1.5"
- icon={<Undo2 />}
+ icon={<Undo2Icon />}
onClick={handleDelete}
tooltip={{
content: {
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/DateTimeInput/index.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/DateTimeInput/index.tsx
index ce79d2a17ef..0d1b8a9cf74 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/DateTimeInput/index.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/DateTimeInput/index.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { Edit } from 'lucide-react'
+import { EditIcon } from 'lucide-react'
import { ReactNode } from 'react'
import {
DropdownMenu,
@@ -69,7 +69,7 @@ export const DateTimeInput = ({
{!disabled && (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <InputGroupButton variant="default" icon={<Edit />} className="px-1.5" />
+ <InputGroupButton variant="default" icon={<EditIcon />} className="px-1.5" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-28 pointer-events-auto">
{isNullable && (
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 b7c4836a2be..a36d21a1fad 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx
@@ -1,6 +1,6 @@
import { keepPreviousData } from '@tanstack/react-query'
import { useParams } from 'common'
-import { Loader2, X } from 'lucide-react'
+import { Loader2Icon, XIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { Button, SidePanel, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -171,7 +171,7 @@ export const ForeignRowSelector = ({
<div className="flex items-center gap-x-4">
{isSaving && (
<div className="flex items-center gap-x-2">
- <Loader2 className="animate-spin" size={12} />
+ <Loader2Icon className="animate-spin" size={12} />
<p className="text-xs text-foreground-light">Saving</p>
</div>
)}
@@ -179,7 +179,7 @@ export const ForeignRowSelector = ({
<TooltipTrigger asChild>
<Button
variant="text"
- icon={<X />}
+ icon={<XIcon />}
className="w-7"
onClick={closePanel}
aria-label="Close panel"
@@ -196,7 +196,7 @@ export const ForeignRowSelector = ({
<div className="h-full">
{isLoading && (
<div className="flex h-full py-6 flex-col items-center justify-center space-y-2">
- <Loader2 size={14} className="animate-spin" />
+ <Loader2Icon size={14} className="animate-spin" />
<p className="text-sm text-foreground-light">Loading rows</p>
</div>
)}
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/Pagination.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/Pagination.tsx
index 5fc1abd4724..f13565f957b 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/Pagination.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/Pagination.tsx
@@ -1,4 +1,4 @@
-import { ArrowLeft, ArrowRight, Loader } from 'lucide-react'
+import { ArrowLeftIcon, ArrowRightIcon, LoaderIcon } from 'lucide-react'
import { Button } from 'ui'
export interface PaginationProps {
@@ -28,10 +28,10 @@ const Pagination = ({
return (
<div className="flex items-center gap-2">
- {isLoading && <Loader size={14} className="animate-spin" />}
+ {isLoading && <LoaderIcon size={14} className="animate-spin" />}
<Button
- icon={<ArrowLeft />}
+ icon={<ArrowLeftIcon />}
variant="outline"
disabled={page <= 1 || isLoading}
onClick={onPreviousPage}
@@ -40,7 +40,7 @@ const Pagination = ({
/>
<Button
- icon={<ArrowRight />}
+ icon={<ArrowRightIcon />}
variant="outline"
disabled={hasRunOutOfRows || isLoading}
onClick={onNextPage}
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx
index 6902aa0f1b2..0eb01d7bef3 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx
@@ -1,4 +1,4 @@
-import { Key } from 'lucide-react'
+import { KeyIcon } from 'lucide-react'
import DataGrid, { Column } from 'react-data-grid'
import { Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -24,7 +24,7 @@ const columnRender = (name: string, isPrimaryKey = false) => {
<Tooltip>
<TooltipTrigger>
<div className="text-primary">
- <Key size={14} strokeWidth={2} />
+ <KeyIcon size={14} strokeWidth={2} />
</div>
</TooltipTrigger>
<TooltipContent side="bottom">Primary key</TooltipContent>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
index 6704c06902c..0e08d93c5fc 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
@@ -1,5 +1,5 @@
import { includes, noop } from 'lodash'
-import { Edit, Expand, Eye } from 'lucide-react'
+import { EditIcon, ExpandIcon, EyeIcon } from 'lucide-react'
import {
DropdownMenu,
DropdownMenuContent,
@@ -154,7 +154,7 @@ export const InputField = ({
{isEditable && (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <InputGroupButton variant="default" icon={<Edit />} className="px-1.5" />
+ <InputGroupButton variant="default" icon={<EditIcon />} className="px-1.5" />
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-28">
{field.isNullable && (
@@ -217,7 +217,7 @@ export const InputField = ({
<InputGroupButton
data-testid={`${field.name}-field-actions`}
variant="default"
- icon={<Edit />}
+ icon={<EditIcon />}
className="ml-auto px-1.5"
/>
</DropdownMenuTrigger>
@@ -278,7 +278,7 @@ export const InputField = ({
<InputGroupButton
variant="default"
type="button"
- icon={isEditable ? <Edit /> : <Expand />}
+ icon={isEditable ? <EditIcon /> : <ExpandIcon />}
className="px-1.5"
onClick={() => onEditJson({ column: field.name, value: field.value })}
/>
@@ -408,7 +408,7 @@ export const InputField = ({
variant="default"
type="button"
onClick={() => onEditJson({ column: field.name, value: field.value })}
- icon={isEditable ? <Edit /> : <Eye />}
+ icon={isEditable ? <EditIcon /> : <EyeIcon />}
>
{isEditable ? 'Edit' : 'View'}
</InputGroupButton>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownBreadCrumbs.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownBreadCrumbs.tsx
index 078fdf693c7..3a6f94a1c56 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownBreadCrumbs.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownBreadCrumbs.tsx
@@ -1,5 +1,5 @@
import { last } from 'lodash'
-import { ChevronRight, Home } from 'lucide-react'
+import { ChevronRightIcon, HomeIcon } from 'lucide-react'
interface DrilldownBreadCrumbsProps {
breadcrumbs: string[]
@@ -14,7 +14,7 @@ const DrilldownBreadCrumbs = ({
}: DrilldownBreadCrumbsProps) => {
return (
<div className="flex items-center space-x-2">
- <Home
+ <HomeIcon
size={16}
strokeWidth={2}
onClick={() => resetBreadcrumbs()}
@@ -23,7 +23,7 @@ const DrilldownBreadCrumbs = ({
{breadcrumbs.length > 0 &&
breadcrumbs.map((crumb) => (
<div className="flex items-center space-x-2" key={crumb}>
- <ChevronRight size={16} strokeWidth={2} />
+ <ChevronRightIcon size={16} strokeWidth={2} />
{crumb === last(breadcrumbs) ? (
<p className="font-mono text-xs">{crumb}</p>
) : (
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx
index 924da75f4c8..ccaf725c33e 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx
@@ -1,5 +1,5 @@
import { isNull, noop } from 'lodash'
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import type { Dictionary } from '@/types'
@@ -57,7 +57,7 @@ const DrilldownPane = ({ pane, jsonData, activeKey, onSelectKey = noop }: Drilld
key === activeKey ? 'opacity-100' : 'opacity-50'
} group-hover:opacity-100 transition`}
>
- <ChevronRight strokeWidth={2} size={16} />
+ <ChevronRightIcon strokeWidth={2} size={16} />
</div>
</div>
))}
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/index.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/index.tsx
index cb3728358c4..6689ba77787 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/index.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/index.tsx
@@ -1,7 +1,7 @@
import type { OnMount } from '@monaco-editor/react'
import { MAX_CHARACTERS } from '@supabase/pg-meta/src/query/table-row-query'
import { useParams } from 'common'
-import { AlignLeft } from 'lucide-react'
+import { AlignLeftIcon } from 'lucide-react'
import { useCallback, useEffect, useState } from 'react'
import { toast } from 'sonner'
import { Button, cn, SidePanel } from 'ui'
@@ -163,7 +163,7 @@ export const JsonEditor = ({
<div className="flex items-center gap-x-2">
{view === 'edit' && (
<ButtonTooltip
- icon={<AlignLeft />}
+ icon={<AlignLeftIcon />}
className="px-1"
onClick={() => prettify()}
tooltip={{ content: { side: 'bottom', text: 'Prettify JSON' } }}
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetFileUpload.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetFileUpload.tsx
index 79a2ef10477..96611778b59 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetFileUpload.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetFileUpload.tsx
@@ -1,4 +1,4 @@
-import { FileText, Loader } from 'lucide-react'
+import { FileTextIcon, LoaderIcon } from 'lucide-react'
import { DragEvent, useCallback, useRef, useState, type ChangeEvent } from 'react'
import { Button, cn } from 'ui'
@@ -118,7 +118,7 @@ function FileDetails({ file, parseProgress, removeFile }: FileDetailsProps) {
)}
>
<div className="flex items-center space-x-2">
- <FileText size={14} strokeWidth={1.5} />
+ <FileTextIcon size={14} strokeWidth={1.5} />
<p className="text-sm text-foreground">{file.name}</p>
</div>
{parseProgress === 100 ? (
@@ -127,7 +127,7 @@ function FileDetails({ file, parseProgress, removeFile }: FileDetailsProps) {
</Button>
) : (
<div className="flex w-3/5 items-center space-x-2">
- <Loader className="h-4 w-4 animate-spin" />
+ <LoaderIcon className="h-4 w-4 animate-spin" />
<SparkBar
value={parseProgress}
max={100}
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsx
index 32be6e32f3e..e2c2bf4d668 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { useState } from 'react'
import { Button, cn, Collapsible, CollapsibleContent, CollapsibleTrigger, SidePanel } from 'ui'
import { MultiSelector } from 'ui-patterns/multi-select'
@@ -35,7 +35,7 @@ const SpreadsheetImportConfiguration = ({
variant="text"
aria-label="Toggle import configuration"
icon={
- <ChevronDown
+ <ChevronDownIcon
size={18}
strokeWidth={2}
className={cn('text-foreground-light', expandConfiguration && 'rotate-180')}
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.utils.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.utils.tsx
index 5e15239c8e1..22db6aa5258 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.utils.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.utils.tsx
@@ -1,6 +1,6 @@
import dayjs from 'dayjs'
import { has } from 'lodash'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import Papa from 'papaparse'
import { toast } from 'sonner'
@@ -272,7 +272,7 @@ export function flagInvalidFileImport(file: File): boolean {
<div className="space-y-1">
<p>The dashboard currently only supports importing of CSVs below 100MB.</p>
<p>For bulk data loading, we recommend doing so directly through the database.</p>
- <Button asChild icon={<ExternalLink />} className="mt-2!">
+ <Button asChild icon={<ExternalLinkIcon />} className="mt-2!">
<Link
href={`${DOCS_URL}/guides/database/tables#bulk-data-loading`}
target="_blank"
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx
index 2b1ae0abcfd..67f6fde7a10 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx
@@ -1,4 +1,4 @@
-import { AlertCircle, ArrowRight, ChevronDown, ChevronRight } from 'lucide-react'
+import { AlertCircleIcon, ArrowRightIcon, ChevronDownIcon, ChevronRightIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import {
Alert,
@@ -86,7 +86,7 @@ export const SpreadsheetImportPreview = ({
<Button
variant="text"
icon={
- <ChevronDown
+ <ChevronDownIcon
size={18}
strokeWidth={2}
className={cn('text-foreground-light', expandPreview && 'rotate-180')}
@@ -124,7 +124,7 @@ export const SpreadsheetImportPreview = ({
/>
) : (
<div className="flex items-center justify-center py-4 border border-control rounded-md space-x-2">
- <AlertCircle size={16} strokeWidth={1.5} className="text-foreground-light" />
+ <AlertCircleIcon size={16} strokeWidth={1.5} className="text-foreground-light" />
<p className="text-sm text-foreground-light">
{previewHeaders.length === 0
? 'No headers have been selected'
@@ -185,7 +185,7 @@ export const SpreadsheetImportPreview = ({
aria-controls={`${key}-panel`}
aria-labelledby={`${key}-summary`}
>
- <ChevronRight
+ <ChevronRightIcon
size={14}
className={cn('transform transition-transform', {
'rotate-90': isExpanded,
@@ -200,7 +200,7 @@ export const SpreadsheetImportPreview = ({
<p className="text-sm">{error.message}</p>
{errorData?.__parsed_extra && (
<>
- <ArrowRight size={14} aria-hidden="true" />
+ <ArrowRightIcon size={14} aria-hidden="true" />
<p className="text-sm">Extra field(s):</p>
<ul className="ml-2 list-disc">
{errorData.__parsed_extra.map((value: string, i: number) => (
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ApiAccessToggle.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ApiAccessToggle.tsx
index dd6203b8921..c5089489205 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ApiAccessToggle.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ApiAccessToggle.tsx
@@ -1,5 +1,5 @@
import { useQuery } from '@tanstack/react-query'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import {
useCallback,
@@ -329,7 +329,7 @@ export const ApiAccessToggle = ({
disabled={isDisabled}
/>
) : (
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<Link
target="_blank"
rel="noopener noreferrer"
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx
index d6dbaba2076..d2e9528a547 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx
@@ -1,6 +1,6 @@
import { useSortable } from '@dnd-kit/sortable'
import { CSS } from '@dnd-kit/utilities'
-import { GripVertical, Link, Plus, Settings, X } from 'lucide-react'
+import { GripVerticalIcon, LinkIcon, PlusIcon, SettingsIcon, XIcon } from 'lucide-react'
import { useState } from 'react'
import {
Badge,
@@ -155,7 +155,7 @@ export const Column = ({
{...listeners}
tabIndex={0}
className="w-6.5 px-0 cursor-grab text-foreground"
- icon={<GripVertical size={16} strokeWidth={2} />}
+ icon={<GripVerticalIcon size={16} strokeWidth={2} />}
aria-label={`Move column ${column.name}`}
/>
</TooltipTrigger>
@@ -188,7 +188,7 @@ export const Column = ({
onClick={() => onEditForeignKey()}
aria-label={`Add foreign key for ${column.name}`}
>
- <Link size={14} strokeWidth={1.5} />
+ <LinkIcon size={14} strokeWidth={1.5} />
</Button>
</TooltipTrigger>
<TooltipContent side="bottom">Reference a column in another table</TooltipContent>
@@ -204,7 +204,7 @@ export const Column = ({
className="w-6.5 px-0 mr-0.5"
aria-label={`Edit ${column.name} foreign keys`}
>
- <Link size={14} strokeWidth={1.5} />
+ <LinkIcon size={14} strokeWidth={1.5} />
</Button>
</PopoverTrigger>
</TooltipTrigger>
@@ -277,7 +277,7 @@ export const Column = ({
onSelect={() => onEditForeignKey()}
onClick={() => onEditForeignKey()}
>
- <Plus size={14} strokeWidth={1.5} />
+ <PlusIcon size={14} strokeWidth={1.5} />
<p>Add foreign key relation</p>
</CommandItem>
</CommandGroup>
@@ -356,7 +356,7 @@ export const Column = ({
</div>
)}
<div className="text-foreground-light transition-colors group-hover:text-foreground">
- <Settings size={16} strokeWidth={1.75} />
+ <SettingsIcon size={16} strokeWidth={1.75} />
</div>
</>
}
@@ -468,7 +468,7 @@ export const Column = ({
aria-label={`Remove column ${column.name}`}
className="w-6.5 px-0 cursor-pointer"
onClick={() => onRemoveColumn()}
- icon={<X size={16} strokeWidth={1.75} />}
+ icon={<XIcon size={16} strokeWidth={1.75} />}
/>
</TooltipTrigger>
<TooltipContent side="bottom">Remove this column from the table</TooltipContent>
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
index bb89bded055..e6069b357da 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx
@@ -14,7 +14,7 @@ import {
verticalListSortingStrategy,
} from '@dnd-kit/sortable'
import { isEmpty, noop, partition } from 'lodash'
-import { Edit, ExternalLink, HelpCircle, Key, Trash } from 'lucide-react'
+import { EditIcon, ExternalLinkIcon, HelpCircleIcon, KeyIcon, TrashIcon } from 'lucide-react'
import { useState } from 'react'
import {
Alert,
@@ -169,7 +169,7 @@ export const ColumnManagement = ({
<div className="flex items-center justify-between w-full">
<h5>Columns</h5>
<div className="flex items-center gap-x-2">
- <Button asChild icon={<ExternalLink size={12} strokeWidth={2} />}>
+ <Button asChild icon={<ExternalLinkIcon size={12} strokeWidth={2} />}>
<a
href={`${DOCS_URL}/guides/database/tables#data-types`}
target="_blank"
@@ -183,10 +183,10 @@ export const ColumnManagement = ({
<div className="py-3 border-r" />
{hasImportContent ? (
<div className="flex items-center gap-x-2">
- <Button icon={<Edit />} onClick={onSelectImportData}>
+ <Button icon={<EditIcon />} onClick={onSelectImportData}>
Edit content
</Button>
- <Button variant="danger" icon={<Trash />} onClick={onClearImportContent}>
+ <Button variant="danger" icon={<TrashIcon />} onClick={onClearImportContent}>
Remove content
</Button>
</div>
@@ -226,7 +226,7 @@ export const ColumnManagement = ({
{primaryKeyColumns.length > 1 && (
<InformationBox
block
- icon={<Key size={16} />}
+ icon={<KeyIcon size={16} />}
title="Composite primary key selected"
description="The columns that you've selected will be grouped as a primary key, and will serve as the unique identifier for the rows in your table"
/>
@@ -249,7 +249,11 @@ export const ColumnManagement = ({
aria-label="Show help for column Name"
className="w-6.5 px-0"
icon={
- <HelpCircle size={15} strokeWidth={1.5} className="text-foreground-lighter" />
+ <HelpCircleIcon
+ size={15}
+ strokeWidth={1.5}
+ className="text-foreground-lighter"
+ />
}
/>
</TooltipTrigger>
@@ -271,7 +275,11 @@ export const ColumnManagement = ({
aria-label="Show help for column Default value"
className="w-6.5 px-0"
icon={
- <HelpCircle size={15} strokeWidth={1.5} className="text-foreground-lighter" />
+ <HelpCircleIcon
+ size={15}
+ strokeWidth={1.5}
+ className="text-foreground-lighter"
+ />
}
/>
</TooltipTrigger>
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 683c4ab9e37..792116cb99c 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ArrowRight } from 'lucide-react'
+import { ArrowRightIcon } from 'lucide-react'
import Link from 'next/link'
import SVG from 'react-inlinesvg'
import { Badge, Button, cn } from 'ui'
@@ -94,7 +94,7 @@ export const ForeignKeyRow = ({
>
{x.source || '[column_name]'}
</code>
- <ArrowRight size={16} />
+ <ArrowRightIcon size={16} />
<code className="text-code-inline">
{foreignKey.schema}.{foreignKey.table}.{x.target}
</code>
diff --git a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/LogOverview.tsx b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/LogOverview.tsx
index 932b528934a..93f29fe7c83 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/LogOverview.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/LogOverview.tsx
@@ -1,4 +1,4 @@
-import { Clock } from 'lucide-react'
+import { ClockIcon } from 'lucide-react'
import type { ComponentType, ReactNode } from 'react'
import { LogFields } from '../components/LogFields'
@@ -28,7 +28,7 @@ function RequestOverview({ children, ...props }: LogOverviewProps & { children:
<DetailSectionHeader
title="Request started"
className="border-b"
- icon={Clock}
+ icon={ClockIcon}
summary={timestamp === null ? undefined : new Date(timestamp).toLocaleString()}
/>
<MemoizedNetworkBlock {...props} />
diff --git a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/PostgresFlowDetail.tsx b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/PostgresFlowDetail.tsx
index 00e4736c3a3..da7eb7495ec 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/PostgresFlowDetail.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/PostgresFlowDetail.tsx
@@ -1,5 +1,5 @@
import { Table } from '@tanstack/react-table'
-import { Cable, ChevronDown, Clock, Database } from 'lucide-react'
+import { CableIcon, ChevronDownIcon, ClockIcon, DatabaseIcon } from 'lucide-react'
import { memo } from 'react'
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from 'ui'
@@ -73,14 +73,18 @@ export const PostgresFlowDetail = memo(function PostgresFlowDetail({
<DetailSectionHeader
title="Request started"
className="border-b"
- icon={Clock}
+ icon={ClockIcon}
summary={formattedTime ?? undefined}
/>
<Collapsible defaultOpen className="border-b">
<CollapsibleTrigger className="w-full flex items-center justify-between pr-4 [&[data-state=open]>svg]:-rotate-180! transition hover:bg-surface-100">
- <DetailSectionHeader title="Postgres" icon={Database} />
- <ChevronDown className="transition-transform duration-200" strokeWidth={1.5} size={14} />
+ <DetailSectionHeader title="Postgres" icon={DatabaseIcon} />
+ <ChevronDownIcon
+ className="transition-transform duration-200"
+ strokeWidth={1.5}
+ size={14}
+ />
</CollapsibleTrigger>
<CollapsibleContent>
{postgresPrimaryFields.map((field) => (
@@ -99,8 +103,12 @@ export const PostgresFlowDetail = memo(function PostgresFlowDetail({
<Collapsible defaultOpen className="border-b">
<CollapsibleTrigger className="w-full flex items-center justify-between pr-4 [&[data-state=open]>svg]:-rotate-180! transition hover:bg-surface-100">
- <DetailSectionHeader title="Connection & Session Details" icon={Cable} />
- <ChevronDown className="transition-transform duration-200" strokeWidth={1.5} size={14} />
+ <DetailSectionHeader title="Connection & Session Details" icon={CableIcon} />
+ <ChevronDownIcon
+ className="transition-transform duration-200"
+ strokeWidth={1.5}
+ size={14}
+ />
</CollapsibleTrigger>
<CollapsibleContent>
{postgresDetailsFields.map((field) => (
@@ -119,7 +127,7 @@ export const PostgresFlowDetail = memo(function PostgresFlowDetail({
<DetailSectionHeader
title="Operation result"
- icon={Clock}
+ icon={ClockIcon}
className="border-b"
summary={
severity ? (
diff --git a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/ServiceFlowPanelControls.tsx b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/ServiceFlowPanelControls.tsx
index fe4ad74d4fe..83f16968ebb 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/ServiceFlowPanelControls.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/ServiceFlowPanelControls.tsx
@@ -1,4 +1,11 @@
-import { Check, ChevronDown, ChevronUp, PanelBottom, PanelRight, X } from 'lucide-react'
+import {
+ CheckIcon,
+ ChevronDownIcon,
+ ChevronUpIcon,
+ PanelBottomIcon,
+ PanelRightIcon,
+ XIcon,
+} from 'lucide-react'
import {
Button,
DropdownMenu,
@@ -62,7 +69,7 @@ export const ServiceFlowPanelControls = ({
disabled={!prevId}
onClick={onPrev}
className="px-1"
- icon={<ChevronUp />}
+ icon={<ChevronUpIcon />}
/>
</Shortcut>
@@ -79,7 +86,7 @@ export const ServiceFlowPanelControls = ({
disabled={!nextId}
onClick={onNext}
className="px-1"
- icon={<ChevronDown />}
+ icon={<ChevronDownIcon />}
/>
</Shortcut>
@@ -88,24 +95,24 @@ export const ServiceFlowPanelControls = ({
<ButtonTooltip
variant="text"
className="px-1"
- icon={dock === 'bottom' ? <PanelBottom /> : <PanelRight />}
+ icon={dock === 'bottom' ? <PanelBottomIcon /> : <PanelRightIcon />}
tooltip={{ content: { side: 'top', text: 'Dock side' } }}
/>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-40" align="end">
<DropdownMenuItem className="justify-between" onClick={() => setDock('bottom')}>
<div className="flex items-center gap-x-2">
- <PanelBottom size={14} />
+ <PanelBottomIcon size={14} />
<span>Dock to bottom</span>
</div>
- {dock === 'bottom' && <Check size={14} className="text-primary" />}
+ {dock === 'bottom' && <CheckIcon size={14} className="text-primary" />}
</DropdownMenuItem>
<DropdownMenuItem className="justify-between" onClick={() => setDock('right')}>
<div className="flex items-center gap-x-2">
- <PanelRight size={14} />
+ <PanelRightIcon size={14} />
<span>Dock to right</span>
</div>
- {dock === 'right' && <Check size={14} className="text-primary" />}
+ {dock === 'right' && <CheckIcon size={14} className="text-primary" />}
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
@@ -122,7 +129,7 @@ export const ServiceFlowPanelControls = ({
variant="text"
onClick={onClose}
className="px-1"
- icon={<X />}
+ icon={<XIcon />}
/>
</Shortcut>
</div>
diff --git a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/config/blockConfigs.ts b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/config/blockConfigs.ts
index ffdc3ff347c..5947a4a0ace 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/config/blockConfigs.ts
+++ b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/config/blockConfigs.ts
@@ -1,15 +1,15 @@
import {
- Cable,
- Code,
- Globe,
- HardDrive,
- Lock,
- MonitorDot,
- PackageOpen,
- ReceiptText,
- Server,
- ShieldCheck,
- Zap,
+ CableIcon,
+ CodeIcon,
+ GlobeIcon,
+ HardDriveIcon,
+ LockIcon,
+ MonitorDotIcon,
+ PackageOpenIcon,
+ ReceiptTextIcon,
+ ServerIcon,
+ ShieldCheckIcon,
+ ZapIcon,
} from 'lucide-react'
import { BlockConfig } from '../components/shared/Block'
@@ -36,18 +36,18 @@ import {
export const authBlockConfig: BlockConfig = {
title: 'Authentication',
- icon: Lock,
+ icon: LockIcon,
primaryFields: authPrimaryFields,
}
export const postgrestBlockConfig: BlockConfig = {
title: 'Data API',
- icon: Server,
+ icon: ServerIcon,
primaryFields: postgrestPrimaryFields,
sections: [
{
title: 'Response Details',
- icon: ReceiptText,
+ icon: ReceiptTextIcon,
fields: postgrestResponseFields,
},
],
@@ -55,7 +55,7 @@ export const postgrestBlockConfig: BlockConfig = {
export const networkBlockConfig: BlockConfig = {
title: 'Network',
- icon: Globe,
+ icon: GlobeIcon,
primaryFields: networkPrimaryFields,
sections: [
{
@@ -76,12 +76,12 @@ export const networkBlockConfig: BlockConfig = {
},
{
title: 'Authorization',
- icon: ShieldCheck,
+ icon: ShieldCheckIcon,
fields: authorizationFields,
},
{
title: 'Tech Details',
- icon: MonitorDot,
+ icon: MonitorDotIcon,
fields: techDetailsFields,
},
],
@@ -89,12 +89,12 @@ export const networkBlockConfig: BlockConfig = {
export const edgeFunctionBlockConfig: BlockConfig = {
title: 'Edge Function',
- icon: Zap,
+ icon: ZapIcon,
primaryFields: edgeFunctionPrimaryFields,
sections: [
{
title: 'Function Details',
- icon: Code,
+ icon: CodeIcon,
fields: edgeFunctionDetailsFields,
},
],
@@ -102,12 +102,12 @@ export const edgeFunctionBlockConfig: BlockConfig = {
export const storageBlockConfig: BlockConfig = {
title: 'Storage',
- icon: HardDrive,
+ icon: HardDriveIcon,
primaryFields: storagePrimaryFields,
sections: [
{
title: 'Storage Details',
- icon: PackageOpen,
+ icon: PackageOpenIcon,
fields: storageDetailsFields,
},
],
@@ -119,7 +119,7 @@ export const postgresBlockConfig: BlockConfig = {
sections: [
{
title: 'Connection & Session Details',
- icon: Cable,
+ icon: CableIcon,
fields: postgresDetailsFields,
},
],
diff --git a/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.tsx b/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.tsx
index a7a9c6974e5..8a84a655533 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.tsx
@@ -13,7 +13,7 @@ import {
VisibilityState,
} from '@tanstack/react-table'
import { IS_PLATFORM, LOCAL_STORAGE_KEYS, useFeatureFlags, useFlag, useParams } from 'common'
-import { Loader2, PanelLeftClose, PanelLeftOpen } from 'lucide-react'
+import { Loader2Icon, PanelLeftCloseIcon, PanelLeftOpenIcon } from 'lucide-react'
import { useQueryStates } from 'nuqs'
import { useEffect, useMemo, useRef, useState } from 'react'
import {
@@ -449,7 +449,7 @@ export const UnifiedLogs = () => {
<Button
size="tiny"
variant="text"
- icon={isFilterBarOpen ? <PanelLeftClose /> : <PanelLeftOpen />}
+ icon={isFilterBarOpen ? <PanelLeftCloseIcon /> : <PanelLeftOpenIcon />}
onClick={() => setIsFilterBarOpen((prev) => !prev)}
className="hidden w-[26px] sm:flex"
aria-label={isFilterBarOpen ? 'Hide filters' : 'Show filters'}
@@ -485,7 +485,7 @@ export const UnifiedLogs = () => {
{isLoading ? (
<div className="h-[60px] flex items-center justify-center">
- <Loader2 size={14} className="animate-spin text-foreground-lighter" />
+ <Loader2Icon size={14} className="animate-spin text-foreground-lighter" />
</div>
) : (
<TimelineChart
diff --git a/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogsBanner.tsx b/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogsBanner.tsx
index 92d0b326e9c..27f7900ad6b 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogsBanner.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogsBanner.tsx
@@ -1,5 +1,5 @@
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { CircleHelpIcon, Undo2, X } from 'lucide-react'
+import { CircleHelpIcon, Undo2Icon, XIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { Badge, Button, cn } from 'ui'
@@ -56,7 +56,7 @@ export function UnifiedLogsBanner({ className = 'mx-4 mt-4' }: UnifiedLogsBanner
</p>
<ButtonTooltip
className="shrink-0 px-1.5"
- icon={<Undo2 />}
+ icon={<Undo2Icon />}
onClick={onSwitchBack}
tooltip={{ content: { side: 'bottom', text: 'Switch back' } }}
/>
@@ -72,7 +72,7 @@ export function UnifiedLogsBanner({ className = 'mx-4 mt-4' }: UnifiedLogsBanner
<Button
variant="text"
size="tiny"
- icon={<X size={14} strokeWidth={1.5} />}
+ icon={<XIcon size={14} strokeWidth={1.5} />}
onClick={() => setIsDismissed(true)}
className="opacity-75 hover:opacity-100 -mt-1 -mr-1 px-1"
aria-label="Dismiss banner"
diff --git a/apps/studio/components/interfaces/UnifiedLogs/components/DownloadLogsButton.tsx b/apps/studio/components/interfaces/UnifiedLogs/components/DownloadLogsButton.tsx
index b9381704532..497d8c5e187 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/components/DownloadLogsButton.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/components/DownloadLogsButton.tsx
@@ -1,6 +1,6 @@
import { IS_PLATFORM, useParams } from 'common'
import saveAs from 'file-saver'
-import { Download, Settings } from 'lucide-react'
+import { DownloadIcon, SettingsIcon } from 'lucide-react'
import Link from 'next/link'
import { usePathname } from 'next/navigation'
import Papa from 'papaparse'
@@ -105,7 +105,7 @@ export const DownloadLogsButton = ({ searchParameters }: DownloadLogsButtonProps
<DropdownMenuTrigger asChild>
<Button
className="w-[26px]"
- icon={<Download className="text-foreground" />}
+ icon={<DownloadIcon className="text-foreground" />}
aria-label="Download logs"
/>
</DropdownMenuTrigger>
@@ -114,17 +114,17 @@ export const DownloadLogsButton = ({ searchParameters }: DownloadLogsButtonProps
{isLogs && IS_PLATFORM && (
<DropdownMenuItem asChild className="gap-x-2">
<Link href={`/project/${ref}/settings/log-drains`}>
- <Settings size={14} />
+ <SettingsIcon size={14} />
<p>Add a Log Drain</p>
</Link>
</DropdownMenuItem>
)}
<DropdownMenuItem onClick={() => setSelectedFormat('csv')} className="gap-x-2">
- <Download size={14} />
+ <DownloadIcon size={14} />
<p>Download as CSV</p>
</DropdownMenuItem>
<DropdownMenuItem onClick={() => setSelectedFormat('json')} className="gap-x-2">
- <Download size={14} />
+ <DownloadIcon size={14} />
<p>Download as JSON</p>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/interfaces/UnifiedLogs/components/LogFields.tsx b/apps/studio/components/interfaces/UnifiedLogs/components/LogFields.tsx
index 0f990747ba4..92312e93b3a 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/components/LogFields.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/components/LogFields.tsx
@@ -1,5 +1,5 @@
import type { Table } from '@tanstack/react-table'
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { Button, Collapsible, CollapsibleContent, CollapsibleTrigger } from 'ui'
import { LogFieldRow } from './LogFieldRow'
@@ -85,7 +85,7 @@ export function LogFields<TData>({
<Button
variant="text"
className="px-1 [&[data-state=open]_svg]:rotate-180"
- icon={<ChevronDown size={12} />}
+ icon={<ChevronDownIcon size={12} />}
aria-label={`Expand ${key}`}
/>
</CollapsibleTrigger>
diff --git a/apps/studio/components/interfaces/UnifiedLogs/components/LogTypeIcon.tsx b/apps/studio/components/interfaces/UnifiedLogs/components/LogTypeIcon.tsx
index f10b562d448..0c1512570c5 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/components/LogTypeIcon.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/components/LogTypeIcon.tsx
@@ -1,5 +1,5 @@
import { Auth, Compute, EdgeFunctions, Realtime, Storage } from 'icons'
-import { Box, Cable, Code2, Database, Network } from 'lucide-react'
+import { BoxIcon, CableIcon, Code2Icon, DatabaseIcon, NetworkIcon } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { type LOG_TYPES } from '../UnifiedLogs.constants'
@@ -11,20 +11,20 @@ interface LogTypeIconProps {
className?: string
}
-type IconComponent = typeof Box | typeof Auth
+type IconComponent = typeof BoxIcon | typeof Auth
// [Alaister]: commented out types coming in the future
// edge: Globe,
const ICON_MAP: Partial<Record<(typeof LOG_TYPES)[number], IconComponent>> = {
- postgrest: Code2,
+ postgrest: Code2Icon,
auth: Auth,
'edge function': EdgeFunctions,
- postgres: Database,
+ postgres: DatabaseIcon,
storage: Storage,
realtime: Realtime,
- supavisor: Cable,
- pgbouncer: Cable,
- multigres: Network,
+ supavisor: CableIcon,
+ pgbouncer: CableIcon,
+ multigres: NetworkIcon,
compute: Compute,
}
@@ -34,7 +34,7 @@ export const LogTypeIcon = ({
strokeWidth = 1.5,
className,
}: LogTypeIconProps) => {
- const Icon = ICON_MAP[type] ?? Box
+ const Icon = ICON_MAP[type] ?? BoxIcon
return (
<Tooltip>
diff --git a/apps/studio/components/interfaces/UnifiedLogs/components/LogsFilterBar.tsx b/apps/studio/components/interfaces/UnifiedLogs/components/LogsFilterBar.tsx
index ea94f258867..a373d0a46f9 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/components/LogsFilterBar.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/components/LogsFilterBar.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { LoaderCircle, Search } from 'lucide-react'
+import { LoaderCircleIcon, SearchIcon } from 'lucide-react'
import { parseAsString, useQueryState } from 'nuqs'
import { useEffect, useEffectEvent, useRef, useState } from 'react'
import {
@@ -163,9 +163,9 @@ export const LogsFilterBar = () => {
isLoading={isFetching}
icon={
isFetching ? (
- <LoaderCircle className="h-4 w-4 animate-spin text-foreground-muted opacity-50" />
+ <LoaderCircleIcon className="h-4 w-4 animate-spin text-foreground-muted opacity-50" />
) : (
- <Search className="text-foreground-muted w-4 h-4 sticky" />
+ <SearchIcon className="text-foreground-muted w-4 h-4 sticky" />
)
}
/>
diff --git a/apps/studio/components/interfaces/UnifiedLogs/components/LogsListPanel.tsx b/apps/studio/components/interfaces/UnifiedLogs/components/LogsListPanel.tsx
index fb007f1b223..eb542d693fe 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/components/LogsListPanel.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/components/LogsListPanel.tsx
@@ -1,5 +1,5 @@
import type { Row } from '@tanstack/react-table'
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { useState } from 'react'
import { Button, cn, ResizableHandle, ResizablePanel } from 'ui'
@@ -31,7 +31,9 @@ export const LogsListPanel = ({ selectedRow }: { selectedRow?: Row<ColumnSchema>
</div>
<Button
onClick={() => setOpenState(!open)}
- icon={<ChevronDown className={cn('w-4 h-4', !open ? 'rotate-180' : 'rotate-0')} />}
+ icon={
+ <ChevronDownIcon className={cn('w-4 h-4', !open ? 'rotate-180' : 'rotate-0')} />
+ }
>
{open ? 'Close' : 'Open'}
</Button>
diff --git a/apps/studio/components/interfaces/UnifiedLogs/components/UserLogFilterControl.tsx b/apps/studio/components/interfaces/UnifiedLogs/components/UserLogFilterControl.tsx
index f69725913f7..a11f8c74c02 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/components/UserLogFilterControl.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/components/UserLogFilterControl.tsx
@@ -1,7 +1,7 @@
import { keepPreviousData } from '@tanstack/react-query'
import { useDebounce } from '@uidotdev/usehooks'
import { useParams } from 'common'
-import { Loader2, Search, X } from 'lucide-react'
+import { Loader2Icon, SearchIcon, XIcon } from 'lucide-react'
import { parseAsString, useQueryState } from 'nuqs'
import { useMemo, useState } from 'react'
import { AccordionContent, AccordionItem, AccordionTrigger, Button, Checkbox, cn, Label } from 'ui'
@@ -60,7 +60,7 @@ export const UserLogFilterControl = () => {
<Button
type="button"
variant="outline"
- icon={<X />}
+ icon={<XIcon />}
className="h-5 rounded-full px-1.5 py-1 font-mono text-[10px] [&>span]:translate-y-[-0.6px] space-x-1"
aria-label="Clear user filter"
onClick={(e) => {
@@ -76,10 +76,10 @@ export const UserLogFilterControl = () => {
<div className="p-1 grid gap-2">
<InputWithAddons
placeholder="Search by email or id"
- leading={<Search size={14} className="text-foreground-lighter" />}
+ leading={<SearchIcon size={14} className="text-foreground-lighter" />}
containerClassName="h-8 rounded-sm"
value={search}
- trailing={isFetching ? <Loader2 size={12} className="animate-spin" /> : undefined}
+ trailing={isFetching ? <Loader2Icon size={12} className="animate-spin" /> : undefined}
onChange={(e) => setSearch(e.target.value)}
/>
diff --git a/apps/studio/components/interfaces/UserDropdown.tsx b/apps/studio/components/interfaces/UserDropdown.tsx
index eaafa14c205..0335c43efb5 100644
--- a/apps/studio/components/interfaces/UserDropdown.tsx
+++ b/apps/studio/components/interfaces/UserDropdown.tsx
@@ -1,5 +1,5 @@
import { useDevToolbar } from 'dev-tools'
-import { FlaskConical, Loader2, ScrollText, User2 } from 'lucide-react'
+import { FlaskConicalIcon, Loader2Icon, ScrollTextIcon, User2Icon } from 'lucide-react'
import { useTheme } from 'next-themes'
import Link from 'next/link'
import { useRouter } from 'next/router'
@@ -73,7 +73,7 @@ export function UserDropdown({
>
{isLoading ? (
<div className="w-full h-full flex items-center justify-center">
- <Loader2 className="animate-spin text-foreground-lighter" size={16} />
+ <Loader2Icon className="animate-spin text-foreground-lighter" size={16} />
</div>
) : (
<ProfileImage alt={username} src={avatarUrl} className="w-8 h-8 rounded-md" />
@@ -118,7 +118,7 @@ export function UserDropdown({
}
}}
>
- <User2 size={14} strokeWidth={1.5} className="text-foreground-lighter" />
+ <User2Icon size={14} strokeWidth={1.5} className="text-foreground-lighter" />
Account
</Link>
</DropdownMenuItem>
@@ -126,7 +126,7 @@ export function UserDropdown({
className="flex gap-2 cursor-pointer"
onClick={() => toggleFeaturePreviewModal(true)}
>
- <FlaskConical size={14} strokeWidth={1.5} className="text-foreground-lighter" />
+ <FlaskConicalIcon size={14} strokeWidth={1.5} className="text-foreground-lighter" />
Feature previews
</DropdownMenuItem>
<DropdownMenuItem className="flex gap-2 cursor-pointer" asChild>
@@ -135,7 +135,7 @@ export function UserDropdown({
target="_blank"
rel="noopener noreferrer"
>
- <ScrollText size={14} strokeWidth={1.5} className="text-foreground-lighter" />
+ <ScrollTextIcon size={14} strokeWidth={1.5} className="text-foreground-lighter" />
Changelog
</Link>
</DropdownMenuItem>
diff --git a/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx b/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx
index b261b149af5..cb02bc1326b 100644
--- a/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx
+++ b/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx
@@ -1,4 +1,4 @@
-import { ArrowLeft } from 'lucide-react'
+import { ArrowLeftIcon } from 'lucide-react'
import Link from 'next/link'
import { PropsWithChildren, ReactNode } from 'react'
import { cn } from 'ui'
@@ -68,7 +68,7 @@ export const SidebarContent = ({
href={backToDashboardURL}
className="flex text-sm flex-row gap-2 items-center text-foreground-lighter focus-visible:text-foreground hover:text-foreground"
>
- <ArrowLeft strokeWidth={1.5} size={16} />
+ <ArrowLeftIcon strokeWidth={1.5} size={16} />
Back to dashboard
</Link>
</div>
diff --git a/apps/studio/components/layouts/AdvisorsLayout/AdvisorsMenu.utils.tsx b/apps/studio/components/layouts/AdvisorsLayout/AdvisorsMenu.utils.tsx
index 5460a912f0e..ff2c89c18b4 100644
--- a/apps/studio/components/layouts/AdvisorsLayout/AdvisorsMenu.utils.tsx
+++ b/apps/studio/components/layouts/AdvisorsLayout/AdvisorsMenu.utils.tsx
@@ -1,5 +1,5 @@
import { useFlag, useParams } from 'common'
-import { ArrowUpRight } from 'lucide-react'
+import { ArrowUpRightIcon } from 'lucide-react'
import { useIsAdvisorRulesEnabled } from '@/components/interfaces/App/FeaturePreview/FeaturePreviewContext'
import type {
@@ -51,7 +51,7 @@ export const generateAdvisorsMenu = ({
key: 'query-performance',
url: `/project/${ref}/observability/query-performance`,
items: [],
- rightIcon: <ArrowUpRight size={14} strokeWidth={1.5} className="h-4 w-4" />,
+ rightIcon: <ArrowUpRightIcon size={14} strokeWidth={1.5} className="h-4 w-4" />,
},
]
diff --git a/apps/studio/components/layouts/AppLayout/AdvisorButton.tsx b/apps/studio/components/layouts/AppLayout/AdvisorButton.tsx
index f64f9511e3e..3bda676a87d 100644
--- a/apps/studio/components/layouts/AppLayout/AdvisorButton.tsx
+++ b/apps/studio/components/layouts/AppLayout/AdvisorButton.tsx
@@ -1,4 +1,4 @@
-import { Lightbulb } from 'lucide-react'
+import { LightbulbIcon } from 'lucide-react'
import { useMemo } from 'react'
import { cn } from 'ui'
@@ -65,7 +65,7 @@ export const AdvisorButton = ({ projectRef }: { projectRef?: string }) => {
},
}}
>
- <Lightbulb
+ <LightbulbIcon
size={16}
strokeWidth={1.5}
className={cn(
diff --git a/apps/studio/components/layouts/AppLayout/AppLayoutDropdown.tsx b/apps/studio/components/layouts/AppLayout/AppLayoutDropdown.tsx
index 7104f3398fe..b9a6d7f1427 100644
--- a/apps/studio/components/layouts/AppLayout/AppLayoutDropdown.tsx
+++ b/apps/studio/components/layouts/AppLayout/AppLayoutDropdown.tsx
@@ -1,4 +1,4 @@
-import { AlertCircle, ChevronsUpDown } from 'lucide-react'
+import { AlertCircleIcon, ChevronsUpDownIcon } from 'lucide-react'
import Link from 'next/link'
import { forwardRef, type ReactNode } from 'react'
import { Button, cn, Popover, PopoverContent, PopoverTrigger } from 'ui'
@@ -10,7 +10,7 @@ interface AppLayoutDropdownErrorProps {
export function AppLayoutDropdownError({ message }: AppLayoutDropdownErrorProps) {
return (
<div className="flex items-center space-x-2 text-amber-900">
- <AlertCircle size={16} strokeWidth={1.5} />
+ <AlertCircleIcon size={16} strokeWidth={1.5} />
<p className="text-sm">{message}</p>
</div>
)
@@ -28,7 +28,7 @@ export const AppLayoutDropdownTriggerButton = forwardRef<
ref={ref}
size="tiny"
className={cn('px-1.5 py-4 [&_svg]:w-5 [&_svg]:h-5 ml-1', className)}
- iconRight={<ChevronsUpDown strokeWidth={1.5} />}
+ iconRight={<ChevronsUpDownIcon strokeWidth={1.5} />}
{...props}
variant="text"
/>
diff --git a/apps/studio/components/layouts/AppLayout/BranchDropdownCommandContent.tsx b/apps/studio/components/layouts/AppLayout/BranchDropdownCommandContent.tsx
index 25739d72ee9..d3cfbc83c97 100644
--- a/apps/studio/components/layouts/AppLayout/BranchDropdownCommandContent.tsx
+++ b/apps/studio/components/layouts/AppLayout/BranchDropdownCommandContent.tsx
@@ -1,4 +1,4 @@
-import { ListTree, Plus } from 'lucide-react'
+import { ListTreeIcon, PlusIcon } from 'lucide-react'
import Link from 'next/link'
import {
Button,
@@ -52,7 +52,7 @@ export function BranchDropdownCommandContent({
size="small"
asChild
block
- icon={<ListTree size={14} strokeWidth={1.5} />}
+ icon={<ListTreeIcon size={14} strokeWidth={1.5} />}
>
<Link
href={`/project/${projectRef}/branches`}
@@ -71,7 +71,7 @@ export function BranchDropdownCommandContent({
onClose()
onCreateBranch()
}}
- icon={<Plus size={14} strokeWidth={1.5} />}
+ icon={<PlusIcon size={14} strokeWidth={1.5} />}
>
Create branch
</Button>
@@ -126,7 +126,7 @@ export function BranchDropdownCommandContent({
}}
>
<div className="w-full flex items-center gap-2">
- <Plus size={14} strokeWidth={1.5} />
+ <PlusIcon size={14} strokeWidth={1.5} />
<p>Create branch</p>
</div>
</CommandItem>
@@ -138,7 +138,7 @@ export function BranchDropdownCommandContent({
onClose()
}}
>
- <ListTree size={14} strokeWidth={1.5} />
+ <ListTreeIcon size={14} strokeWidth={1.5} />
<p>Manage branches</p>
</CommandItemLink>
</CommandGroup>
diff --git a/apps/studio/components/layouts/AppLayout/BranchLink.tsx b/apps/studio/components/layouts/AppLayout/BranchLink.tsx
index 232de90dfc0..dd093af4021 100644
--- a/apps/studio/components/layouts/AppLayout/BranchLink.tsx
+++ b/apps/studio/components/layouts/AppLayout/BranchLink.tsx
@@ -1,4 +1,4 @@
-import { Check, Shield } from 'lucide-react'
+import { CheckIcon, ShieldIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { sanitizeRoute } from './ProjectDropdown.utils'
@@ -33,10 +33,10 @@ export function BranchLink({ branch, isSelected, onClose }: BranchLinkProps) {
}}
>
<p className="truncate w-60 flex items-center gap-1" title={branch.name}>
- {branch.is_default && <Shield size={14} className="text-amber-900" />}
+ {branch.is_default && <ShieldIcon size={14} className="text-amber-900" />}
{branch.name}
</p>
- {isSelected && <Check size={14} strokeWidth={1.5} />}
+ {isSelected && <CheckIcon size={14} strokeWidth={1.5} />}
</CommandItemLink>
)
}
diff --git a/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingPITRNotice.tsx b/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingPITRNotice.tsx
index 978943e7cfc..7c37d7e93c4 100644
--- a/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingPITRNotice.tsx
+++ b/apps/studio/components/layouts/AppLayout/EnableBranchingButton/BranchingPITRNotice.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Clock } from 'lucide-react'
+import { ClockIcon } from 'lucide-react'
import Link from 'next/link'
import { Button } from 'ui'
@@ -21,7 +21,7 @@ export const BranchingPITRNotice = () => {
<div className="flex flex-row gap-4">
<div>
<figure className="w-10 h-10 rounded-md border flex items-center justify-center">
- <Clock className="text-warning-700" size={20} strokeWidth={2} />
+ <ClockIcon className="text-warning-700" size={20} strokeWidth={2} />
</figure>
</div>
<div className="flex grow items-center justify-between gap-4">
diff --git a/apps/studio/components/layouts/AppLayout/OrgCommandItem.tsx b/apps/studio/components/layouts/AppLayout/OrgCommandItem.tsx
index 226e6612353..70ce5a0089e 100644
--- a/apps/studio/components/layouts/AppLayout/OrgCommandItem.tsx
+++ b/apps/studio/components/layouts/AppLayout/OrgCommandItem.tsx
@@ -1,4 +1,4 @@
-import { Check } from 'lucide-react'
+import { CheckIcon } from 'lucide-react'
import { cn } from 'ui'
import { CommandItemLink } from '@/components/ui/CommandItemLink'
@@ -39,7 +39,7 @@ export function OrgCommandItem({
<span>{org.name}</span>
<PartnerIcon organization={org} />
</div>
- {org.slug === selectedSlug && <Check size={16} />}
+ {org.slug === selectedSlug && <CheckIcon size={16} />}
</CommandItemLink>
)
}
diff --git a/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx b/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx
index 95ababa6939..d7654ee9b0b 100644
--- a/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx
+++ b/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Boxes } from 'lucide-react'
+import { BoxesIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useState } from 'react'
import { Badge, cn } from 'ui'
@@ -78,7 +78,7 @@ export const OrganizationDropdown = ({
linkHref={slug ? `/org/${slug}` : '/organizations'}
linkContent={
<>
- <Boxes size={14} strokeWidth={1.5} className="text-foreground-lighter" />
+ <BoxesIcon size={14} strokeWidth={1.5} className="text-foreground-lighter" />
<span
className={cn(
'md:max-w-32 lg:max-w-none truncate hidden md:block',
diff --git a/apps/studio/components/layouts/AppLayout/OrganizationDropdownCommandContent.tsx b/apps/studio/components/layouts/AppLayout/OrganizationDropdownCommandContent.tsx
index aa4fce8d874..5e65af9f010 100644
--- a/apps/studio/components/layouts/AppLayout/OrganizationDropdownCommandContent.tsx
+++ b/apps/studio/components/layouts/AppLayout/OrganizationDropdownCommandContent.tsx
@@ -1,4 +1,4 @@
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import Link from 'next/link'
import {
Button,
@@ -67,7 +67,7 @@ export function OrganizationDropdownCommandContent({
</Link>
</Button>
{organizationCreationEnabled && (
- <Button block size="small" asChild icon={<Plus size={14} strokeWidth={1.5} />}>
+ <Button block size="small" asChild icon={<PlusIcon size={14} strokeWidth={1.5} />}>
<Link
href="/new"
className="text-xs text-foreground-light hover:text-foreground"
@@ -120,7 +120,7 @@ export function OrganizationDropdownCommandContent({
className="cursor-pointer w-full gap-2"
onSelect={onClose}
>
- <Plus size={14} strokeWidth={1.5} />
+ <PlusIcon size={14} strokeWidth={1.5} />
<p>New organization</p>
</CommandItemLink>
</CommandGroup>
diff --git a/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsx b/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsx
index fd64fd601fc..0202d469845 100644
--- a/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsx
+++ b/apps/studio/components/layouts/AppLayout/ProjectDropdown.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Box, Plus } from 'lucide-react'
+import { BoxIcon, PlusIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import type { ComponentProps } from 'react'
@@ -41,7 +41,7 @@ function ProjectDropdownNewProjectActions({
if (embedded) {
return (
- <Button block size="small" asChild icon={<Plus size={14} strokeWidth={1.5} />}>
+ <Button block size="small" asChild icon={<PlusIcon size={14} strokeWidth={1.5} />}>
<Link
href={href}
onClick={onClose}
@@ -56,7 +56,7 @@ function ProjectDropdownNewProjectActions({
return (
<CommandGroup>
<CommandItemLink href={href} className="cursor-pointer w-full gap-2" onSelect={onClose}>
- <Plus size={14} strokeWidth={1.5} />
+ <PlusIcon size={14} strokeWidth={1.5} />
<p>New project</p>
</CommandItemLink>
</CommandGroup>
@@ -86,7 +86,7 @@ function ProjectDropdownPlatformView({
return (
<div className="flex items-center shrink-0">
<Link href={`/project/${projectRef}`} className="flex items-center gap-2 shrink-0 text-sm">
- <Box size={14} strokeWidth={1.5} className="text-foreground-lighter" />
+ <BoxIcon size={14} strokeWidth={1.5} className="text-foreground-lighter" />
<span title={projectName} className="text-foreground max-w-32 lg:max-w-64 truncate">
{projectName}
</span>
diff --git a/apps/studio/components/layouts/AppLayout/ProjectRowLink.tsx b/apps/studio/components/layouts/AppLayout/ProjectRowLink.tsx
index 80112176202..0c2e50ec877 100644
--- a/apps/studio/components/layouts/AppLayout/ProjectRowLink.tsx
+++ b/apps/studio/components/layouts/AppLayout/ProjectRowLink.tsx
@@ -1,4 +1,4 @@
-import { Check } from 'lucide-react'
+import { CheckIcon } from 'lucide-react'
import { Badge, cn } from 'ui'
import PartnerIcon from '@/components/ui/PartnerIcon'
@@ -31,7 +31,7 @@ export function ProjectRowLink({ project, selectedRef }: ProjectRowLinkProps) {
{isPaused && <Badge className="ml-2">Paused</Badge>}
<PartnerIcon organization={{ managed_by: managedBy }} />
</span>
- {isSelected && <Check size={16} />}
+ {isSelected && <CheckIcon size={16} />}
</div>
)
}
diff --git a/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts b/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts
index 632611d1292..f80a4f01965 100644
--- a/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts
+++ b/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts
@@ -1,5 +1,5 @@
import { useFlag, useParams } from 'common'
-import { ArrowUpRight } from 'lucide-react'
+import { ArrowUpRightIcon } from 'lucide-react'
import { createElement } from 'react'
import type { ProductMenuGroup } from '@/components/ui/ProductMenu/ProductMenu.types'
@@ -7,7 +7,7 @@ import { useIsFeatureEnabled } from '@/hooks/misc/useIsFeatureEnabled'
import { IS_PLATFORM } from '@/lib/constants'
import { SHORTCUT_IDS } from '@/state/shortcuts/registry'
-const ExternalLinkIcon = createElement(ArrowUpRight, { strokeWidth: 1, className: 'h-4 w-4' })
+const ExternalLinkIcon = createElement(ArrowUpRightIcon, { strokeWidth: 1, className: 'h-4 w-4' })
export interface GenerateAuthMenuOptions {
ref?: string
diff --git a/apps/studio/components/layouts/DatabaseLayout/Database.Commands.tsx b/apps/studio/components/layouts/DatabaseLayout/Database.Commands.tsx
index d3ccb8da7b7..241f22ea6a1 100644
--- a/apps/studio/components/layouts/DatabaseLayout/Database.Commands.tsx
+++ b/apps/studio/components/layouts/DatabaseLayout/Database.Commands.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Blocks, Code, Database, History, Search } from 'lucide-react'
+import { BlocksIcon, CodeIcon, DatabaseIcon, HistoryIcon, SearchIcon } from 'lucide-react'
import type { CommandOptions } from 'ui-patterns/CommandMenu'
import { useRegisterCommands } from 'ui-patterns/CommandMenu'
import { IRouteCommand } from 'ui-patterns/CommandMenu/internal/types'
@@ -25,7 +25,7 @@ export function useDatabaseGotoCommands(options?: CommandOptions) {
id: 'run-sql',
name: 'Run SQL',
route: `/project/${ref}/sql/new`,
- icon: () => <Code />,
+ icon: () => <CodeIcon />,
},
],
{
@@ -132,43 +132,43 @@ export function useDatabaseGotoCommands(options?: CommandOptions) {
id: 'run-schema-visualizer',
name: 'View your schemas',
route: `/project/${ref}/database/schemas`,
- icon: () => <Search />,
+ icon: () => <SearchIcon />,
},
{
id: 'run-view-database-functions',
name: 'View and create functions',
route: `/project/${ref}/database/functions`,
- icon: () => <Database />,
+ icon: () => <DatabaseIcon />,
},
{
id: 'run-view-database-triggers',
name: 'View and create triggers',
route: `/project/${ref}/database/triggers`,
- icon: () => <Database />,
+ icon: () => <DatabaseIcon />,
},
{
id: 'run-view-database-enumerated-types',
name: 'View and create enumerated types',
route: `/project/${ref}/database/types`,
- icon: () => <Database />,
+ icon: () => <DatabaseIcon />,
},
{
id: 'run-view-database-extensions',
name: 'View your extensions',
route: `/project/${ref}/database/extensions`,
- icon: () => <Blocks />,
+ icon: () => <BlocksIcon />,
},
{
id: 'run-view-database-indexes',
name: 'View and create indexes',
route: `/project/${ref}/database/indexes`,
- icon: () => <Database />,
+ icon: () => <DatabaseIcon />,
},
{
id: 'run-view-database-policies',
name: 'View and create RLS policies',
route: `/project/${ref}/database/policies`,
- icon: () => <Database />,
+ icon: () => <DatabaseIcon />,
},
...(databaseRoles
? [
@@ -176,7 +176,7 @@ export function useDatabaseGotoCommands(options?: CommandOptions) {
id: 'run-view-database-roles',
name: 'View your roles',
route: `/project/${ref}/database/roles`,
- icon: () => <Database />,
+ icon: () => <DatabaseIcon />,
} as IRouteCommand,
]
: []),
@@ -184,13 +184,13 @@ export function useDatabaseGotoCommands(options?: CommandOptions) {
id: 'run-view-database-backups',
name: 'View your backups',
route: `/project/${ref}/database/backups/scheduled`,
- icon: () => <Database />,
+ icon: () => <DatabaseIcon />,
},
{
id: 'run-view-database-migrations',
name: 'View your migrations',
route: `/project/${ref}/database/migrations`,
- icon: () => <History />,
+ icon: () => <HistoryIcon />,
},
],
{
diff --git a/apps/studio/components/layouts/EdgeFunctionsLayout/EdgeFunctionDetailsLayout.tsx b/apps/studio/components/layouts/EdgeFunctionsLayout/EdgeFunctionDetailsLayout.tsx
index 02a221510c3..49b61f24fac 100644
--- a/apps/studio/components/layouts/EdgeFunctionsLayout/EdgeFunctionDetailsLayout.tsx
+++ b/apps/studio/components/layouts/EdgeFunctionsLayout/EdgeFunctionDetailsLayout.tsx
@@ -3,7 +3,7 @@ import { BlobReader, BlobWriter, ZipWriter } from '@zip.js/zip.js'
import { IS_PLATFORM, useParams } from 'common'
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
-import { Clock, Download, FileArchive, Send } from 'lucide-react'
+import { ClockIcon, DownloadIcon, FileArchiveIcon, SendIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import React, { useEffect, useState, type PropsWithChildren } from 'react'
@@ -286,7 +286,7 @@ const EdgeFunctionDetailsLayout = ({
open={isDownloadOpen ? false : undefined}
>
<PopoverTrigger asChild>
- <Button icon={<Download />}>Download</Button>
+ <Button icon={<DownloadIcon />}>Download</Button>
</PopoverTrigger>
</ShortcutTooltip>
<PopoverContent align="end" className="p-0">
@@ -310,7 +310,7 @@ const EdgeFunctionDetailsLayout = ({
<Button
variant="text"
className="w-min hover:bg-transparent"
- icon={<FileArchive />}
+ icon={<FileArchiveIcon />}
onClick={downloadFunction}
>
Download as ZIP
@@ -323,7 +323,7 @@ const EdgeFunctionDetailsLayout = ({
shortcutId={SHORTCUT_IDS.FUNCTION_DETAIL_OPEN_TEST}
side="bottom"
>
- <Button icon={<Send />} onClick={openTestSheet}>
+ <Button icon={<SendIcon />} onClick={openTestSheet}>
Test
</Button>
</ShortcutTooltip>
@@ -373,7 +373,11 @@ const EdgeFunctionDetailsLayout = ({
>
<HoverCardTrigger asChild>
<button type="button" tabIndex={0} className="flex items-center gap-2 group">
- <Clock size={16} strokeWidth={1.5} className="text-foreground-lighter" />
+ <ClockIcon
+ size={16}
+ strokeWidth={1.5}
+ className="text-foreground-lighter"
+ />
<span className="transition text-foreground-light group-hover:text-foreground underline decoration-dotted decoration-foreground-muted underline-offset-4">
{updatedRelative ?? 'Deploy status unavailable'}
</span>
diff --git a/apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.constants.tsx b/apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.constants.tsx
index aa7947cb73f..8275406139c 100644
--- a/apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.constants.tsx
+++ b/apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.constants.tsx
@@ -1,4 +1,4 @@
-import { MessageSquare, NotebookText } from 'lucide-react'
+import { MessageSquareIcon, NotebookTextIcon } from 'lucide-react'
import { motion } from 'motion/react'
import { type ComponentType, type PropsWithChildren } from 'react'
import { cn } from 'ui'
@@ -18,10 +18,10 @@ export const EXPLORER_SECTIONS: Array<{
{
type: 'notebook',
label: 'Notebooks',
- icon: NotebookText,
+ icon: NotebookTextIcon,
searchPlaceholder: 'Search notebooks',
},
- { type: 'chat', label: 'Chats', icon: MessageSquare, searchPlaceholder: 'Search chats' },
+ { type: 'chat', label: 'Chats', icon: MessageSquareIcon, searchPlaceholder: 'Search chats' },
]
export const rowClassName = (isActive: boolean) =>
diff --git a/apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.tsx b/apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.tsx
index 4270f9a652f..4299065ba87 100644
--- a/apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.tsx
+++ b/apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.tsx
@@ -1,4 +1,10 @@
-import { Home, MessageCirclePlus, NotebookText, Plus, SquareCode } from 'lucide-react'
+import {
+ HomeIcon,
+ MessageCirclePlusIcon,
+ NotebookTextIcon,
+ PlusIcon,
+ SquareCodeIcon,
+} from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { ComponentProps, ReactNode, useEffect, useEffectEvent, useState } from 'react'
import {
@@ -135,7 +141,7 @@ const HomeTabButton = () => {
'data-[state=active]:border-b-background-dash-sidebar dark:data-[state=active]:border-b-background-surface-100'
)}
>
- <Home
+ <HomeIcon
size={14}
strokeWidth={1.5}
className="text-foreground-lighter transition-colors group-hover:text-foreground-light group-data-[state=active]:text-foreground"
@@ -161,7 +167,7 @@ const NewTabButton = () => {
animate={{ opacity: 1, scale: 1, x: 0 }}
transition={{ duration: 0.2 }}
>
- <Plus
+ <PlusIcon
size={16}
strokeWidth={1.5}
className="text-foreground-lighter hover:text-foreground-light"
@@ -170,15 +176,15 @@ const NewTabButton = () => {
</DropdownMenuTrigger>
<DropdownMenuContent className="w-40" align="end">
<DropdownMenuItem className="gap-x-2" onClick={() => createQuery()}>
- <SquareCode size={14} />
+ <SquareCodeIcon size={14} />
<span>Run SQL</span>
</DropdownMenuItem>
<DropdownMenuItem className="gap-x-2" onClick={() => createNotebook()}>
- <NotebookText size={14} />
+ <NotebookTextIcon size={14} />
<span>New notebook</span>
</DropdownMenuItem>
<DropdownMenuItem className="gap-x-2" onClick={() => createChat()}>
- <MessageCirclePlus size={14} />
+ <MessageCirclePlusIcon size={14} />
<span>New chat</span>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/layouts/ExplorerLayout/ExplorerNavHeader.tsx b/apps/studio/components/layouts/ExplorerLayout/ExplorerNavHeader.tsx
index 962bbc99a6f..009dcdc42f1 100644
--- a/apps/studio/components/layouts/ExplorerLayout/ExplorerNavHeader.tsx
+++ b/apps/studio/components/layouts/ExplorerLayout/ExplorerNavHeader.tsx
@@ -1,4 +1,4 @@
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import type { ReactNode } from 'react'
import { EXPLORER_SECTIONS, type ExplorerResourceType } from './ExplorerLayout.constants'
@@ -37,7 +37,7 @@ const ExplorerResourceAction = ({ type }: { type: ExplorerResourceType }) => {
variant="outline"
aria-label={`New ${type}`}
className="size-7 shrink-0 px-0"
- icon={<Plus />}
+ icon={<PlusIcon />}
tooltip={{ content: { side: 'bottom', text: `New ${type}` } }}
onClick={() => {
if (type === 'notebook') createNotebook()
diff --git a/apps/studio/components/layouts/ExplorerLayout/ExplorerNavHome.tsx b/apps/studio/components/layouts/ExplorerLayout/ExplorerNavHome.tsx
index 1bc68aa29ce..88dafe6ffde 100644
--- a/apps/studio/components/layouts/ExplorerLayout/ExplorerNavHome.tsx
+++ b/apps/studio/components/layouts/ExplorerLayout/ExplorerNavHome.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ChevronRight, Plus, SquareCode } from 'lucide-react'
+import { ChevronRightIcon, PlusIcon, SquareCodeIcon } from 'lucide-react'
import { motion } from 'motion/react'
import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
@@ -63,9 +63,9 @@ export const ExplorerNavHome = ({
className={rowClassName(false)}
onClick={() => createQuery()}
>
- <SquareCode size={14} className="shrink-0" />
+ <SquareCodeIcon size={14} className="shrink-0" />
<span className="flex-1 text-left">Run SQL</span>
- <Plus size={14} className="shrink-0 text-foreground-muted" />
+ <PlusIcon size={14} className="shrink-0 text-foreground-muted" />
</button>
{EXPLORER_SECTIONS.map(({ type, label, icon: Icon }) => {
return (
@@ -87,7 +87,7 @@ export const ExplorerNavHome = ({
) : (
<span className="text-xs text-foreground-lighter">{chats.length}</span>
)}
- <ChevronRight size={14} className="shrink-0 text-foreground-muted" />
+ <ChevronRightIcon size={14} className="shrink-0 text-foreground-muted" />
</button>
)
})}
diff --git a/apps/studio/components/layouts/ExplorerLayout/ExplorerNavItem.tsx b/apps/studio/components/layouts/ExplorerLayout/ExplorerNavItem.tsx
index ffef717c140..db622dcc2ed 100644
--- a/apps/studio/components/layouts/ExplorerLayout/ExplorerNavItem.tsx
+++ b/apps/studio/components/layouts/ExplorerLayout/ExplorerNavItem.tsx
@@ -1,4 +1,4 @@
-import { MessageSquare, NotebookText, Trash } from 'lucide-react'
+import { MessageSquareIcon, NotebookTextIcon, TrashIcon } from 'lucide-react'
import Link from 'next/link'
import { type CSSProperties } from 'react'
import { cn, ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger } from 'ui'
@@ -36,9 +36,12 @@ export const ExplorerNavItem = ({
onDoubleClick={onDoubleClick}
>
{type === 'notebook' ? (
- <NotebookText size={14} className={cn('shrink-0', isActive && 'text-foreground')} />
+ <NotebookTextIcon size={14} className={cn('shrink-0', isActive && 'text-foreground')} />
) : (
- <MessageSquare size={14} className={cn('shrink-0', isActive && 'text-foreground')} />
+ <MessageSquareIcon
+ size={14}
+ className={cn('shrink-0', isActive && 'text-foreground')}
+ />
)}
<span className="flex-1 truncate text-left">{name}</span>
{!!description && (
@@ -48,7 +51,7 @@ export const ExplorerNavItem = ({
</ContextMenuTrigger>
<ContextMenuContent>
<ContextMenuItem className="gap-x-2" onSelect={onSelectDelete}>
- <Trash size={14} />
+ <TrashIcon size={14} />
<span>Delete {type}</span>
</ContextMenuItem>
</ContextMenuContent>
diff --git a/apps/studio/components/layouts/ExplorerLayout/ExplorerPreferencesDropdown.tsx b/apps/studio/components/layouts/ExplorerLayout/ExplorerPreferencesDropdown.tsx
index cd667d354da..cd2be3ab08f 100644
--- a/apps/studio/components/layouts/ExplorerLayout/ExplorerPreferencesDropdown.tsx
+++ b/apps/studio/components/layouts/ExplorerLayout/ExplorerPreferencesDropdown.tsx
@@ -1,4 +1,4 @@
-import { MoreVertical } from 'lucide-react'
+import { MoreVerticalIcon } from 'lucide-react'
import {
DropdownMenu,
DropdownMenuContent,
@@ -25,7 +25,7 @@ export const ExplorerPreferencesDropdown = () => {
variant="outline"
aria-label="Explorer preferences"
className="size-7 shrink-0 px-0"
- icon={<MoreVertical size={14} strokeWidth={1.5} />}
+ icon={<MoreVerticalIcon size={14} strokeWidth={1.5} />}
tooltip={{ content: { side: 'bottom', text: 'Explorer preferences' } }}
/>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/layouts/InterstitialLayout.tsx b/apps/studio/components/layouts/InterstitialLayout.tsx
index b3eab9435b9..2ad0ef44cd6 100644
--- a/apps/studio/components/layouts/InterstitialLayout.tsx
+++ b/apps/studio/components/layouts/InterstitialLayout.tsx
@@ -1,4 +1,4 @@
-import { ArrowRightLeft } from 'lucide-react'
+import { ArrowRightLeftIcon } from 'lucide-react'
import { motion, useReducedMotion } from 'motion/react'
import type { PropsWithChildren, ReactNode } from 'react'
import { Card, CardContent, CardHeader, cn } from 'ui'
@@ -127,7 +127,7 @@ export const LogoBox = ({ children, className }: { children: ReactNode; classNam
export const LogoPair = ({ left, right }: { left: ReactNode; right: ReactNode }) => (
<div className="flex items-center justify-center gap-2.5">
{left}
- <ArrowRightLeft className="size-4 text-foreground-muted" />
+ <ArrowRightLeftIcon className="size-4 text-foreground-muted" />
{right}
</div>
)
diff --git a/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx b/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx
index f162423c0be..032bb9c0745 100644
--- a/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx
+++ b/apps/studio/components/layouts/LogsLayout/LogsSidebarMenuV2.tsx
@@ -1,5 +1,5 @@
import { IS_PLATFORM, useParams } from 'common'
-import { ChevronRight, Plus } from 'lucide-react'
+import { ChevronRightIcon, PlusIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import React, { useState } from 'react'
@@ -38,7 +38,7 @@ export function SidebarCollapsible({
return (
<Collapsible defaultOpen={defaultOpen}>
<CollapsibleTrigger className="flex items-center gap-x-2 px-4 [&[data-state=open]>svg]:rotate-90! pb-2">
- <ChevronRight
+ <ChevronRightIcon
size={16}
className={'text-foreground-light transition-transform duration-200'}
/>
@@ -233,7 +233,7 @@ export function LogsSidebarMenuV2() {
<ButtonTooltip
asChild
- icon={<Plus className="text-foreground" />}
+ icon={<PlusIcon className="text-foreground" />}
className="w-[26px]"
tooltip={{ content: { text: 'New query', side: 'bottom' } }}
>
diff --git a/apps/studio/components/layouts/Navigation/FloatingMobileToolbar/FloatingMobileToolbar.tsx b/apps/studio/components/layouts/Navigation/FloatingMobileToolbar/FloatingMobileToolbar.tsx
index 2646a52a052..9be315538e6 100644
--- a/apps/studio/components/layouts/Navigation/FloatingMobileToolbar/FloatingMobileToolbar.tsx
+++ b/apps/studio/components/layouts/Navigation/FloatingMobileToolbar/FloatingMobileToolbar.tsx
@@ -1,5 +1,5 @@
import { useParams, useViewport } from 'common'
-import { Menu, Search, X } from 'lucide-react'
+import { MenuIcon, SearchIcon, XIcon } from 'lucide-react'
import { AnimatePresence } from 'motion/react'
import { useRef } from 'react'
import { Button, cn, KeyboardShortcut } from 'ui'
@@ -80,7 +80,7 @@ export const FloatingMobileToolbar = ({ hideMobileMenu }: { hideMobileMenu?: boo
}}
onClick={handleSearchClick}
>
- <Search size={16} strokeWidth={1} />
+ <SearchIcon size={16} strokeWidth={1} />
</ButtonTooltip>
<span key="help" data-sidebar-id={SIDEBAR_KEYS.HELP_PANEL}>
<HelpButton />
@@ -107,7 +107,7 @@ export const FloatingMobileToolbar = ({ hideMobileMenu }: { hideMobileMenu?: boo
'flex lg:hidden mr-1 rounded-md min-w-[30px] w-[30px] h-[30px] data-open:bg-overlay-hover/30',
!sheet.isMenuOpen && 'bg-surface-300!'
)}
- icon={<Menu className={cn(sheet.isMenuOpen && 'text-background')} />}
+ icon={<MenuIcon className={cn(sheet.isMenuOpen && 'text-background')} />}
onClick={sheet.handleMenuClick}
/>
)}
@@ -125,7 +125,7 @@ export const FloatingMobileToolbar = ({ hideMobileMenu }: { hideMobileMenu?: boo
'rounded-full',
!sheet.isSheetOpen && 'hidden'
)}
- icon={<X />}
+ icon={<XIcon />}
onClick={sheet.handleClose}
/>
</AnimatePresence>
diff --git a/apps/studio/components/layouts/Navigation/LayoutHeader/AdminStudioButton.tsx b/apps/studio/components/layouts/Navigation/LayoutHeader/AdminStudioButton.tsx
index c894e5c29e4..7fb30104d76 100644
--- a/apps/studio/components/layouts/Navigation/LayoutHeader/AdminStudioButton.tsx
+++ b/apps/studio/components/layouts/Navigation/LayoutHeader/AdminStudioButton.tsx
@@ -1,5 +1,5 @@
import { useFlag, useParams } from 'common'
-import { Wrench } from 'lucide-react'
+import { WrenchIcon } from 'lucide-react'
import Link from 'next/link'
import { ButtonTooltip } from '@/components/ui/ButtonTooltip'
@@ -17,7 +17,7 @@ export const AdminStudioButton = () => {
<ButtonTooltip
asChild
className="rounded-full w-[26px] h-[26px]"
- icon={<Wrench size={16} strokeWidth={1.5} />}
+ icon={<WrenchIcon size={16} strokeWidth={1.5} />}
tooltip={{
content: {
text: 'Open in Admin Studio',
diff --git a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
index e9d9e3f0e84..cbc7cb9b3b2 100644
--- a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
+++ b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
@@ -1,5 +1,5 @@
import { IS_PLATFORM } from 'common'
-import { Lightbulb, TriangleAlert } from 'lucide-react'
+import { LightbulbIcon, TriangleAlertIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useState } from 'react'
import { Button, Popover, PopoverContent, PopoverSeparator, PopoverTrigger } from 'ui'
@@ -67,7 +67,7 @@ export const FeedbackDropdown = ({ className }: { className?: string }) => {
<div className="grid grid-cols-2 gap-3">
<Button className="h-32" onClick={() => setStage('issue-options')}>
<div className="grid gap-1.5 text-center">
- <TriangleAlert size="28" className="mx-auto text-destructive-600" />
+ <TriangleAlertIcon size="28" className="mx-auto text-destructive-600" />
<div className="flex flex-col items-center">
<span className="text-base">Issue</span>
<span className="text-xs text-foreground-lighter">with my project</span>
@@ -76,7 +76,7 @@ export const FeedbackDropdown = ({ className }: { className?: string }) => {
</Button>
<Button className="h-32" onClick={() => setStage('widget')}>
<div className="grid gap-1.5 text-center">
- <Lightbulb size="28" className="mx-auto text-warning" />
+ <LightbulbIcon size="28" className="mx-auto text-warning" />
<div className="flex flex-col items-center">
<span className="text-base">Idea</span>
<span className="text-xs text-foreground-lighter">to improve Supabase</span>
diff --git a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx
index be7363171f1..adff4ff957a 100644
--- a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx
+++ b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx
@@ -1,7 +1,7 @@
import { useDebounce } from '@uidotdev/usehooks'
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
import { toPng } from 'html-to-image'
-import { Camera, CircleCheck, Image as ImageIcon, Upload, X } from 'lucide-react'
+import { CameraIcon, CircleCheckIcon, ImageIcon, UploadIcon, XIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { useRouter } from 'next/router'
import { ChangeEvent, useEffect, useRef, useState } from 'react'
@@ -169,7 +169,7 @@ export const FeedbackWidget = ({ onClose, onSwitchToIssueOptions }: FeedbackWidg
const ThanksMessageView = () => (
<>
<div className="py-6 px-4 grid gap-4 text-center text-foreground-light">
- <CircleCheck className="mx-auto text-brand-500" size={24} />
+ <CircleCheckIcon className="mx-auto text-brand-500" size={24} />
<div className="flex flex-col gap-1">
<p className="text-foreground text-base">Your feedback has been sent. Thanks!</p>
<p className="text-sm text-balance">
@@ -264,7 +264,7 @@ export const FeedbackWidget = ({ onClose, onSwitchToIssueOptions }: FeedbackWidg
setScreenshot(null)
}}
>
- <X size={8} strokeWidth={3} />
+ <XIcon size={8} strokeWidth={3} />
</button>
</div>
) : (
@@ -285,7 +285,7 @@ export const FeedbackWidget = ({ onClose, onSwitchToIssueOptions }: FeedbackWidg
if (uploadButtonRef.current) (uploadButtonRef.current as any).click()
}}
>
- <Upload size={14} />
+ <UploadIcon size={14} />
Upload screenshot
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -294,7 +294,7 @@ export const FeedbackWidget = ({ onClose, onSwitchToIssueOptions }: FeedbackWidg
key="capture-screenshot"
onSelect={() => captureScreenshot()}
>
- <Camera size={14} />
+ <CameraIcon size={14} />
Capture screenshot
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/layouts/Navigation/LayoutHeader/LayoutHeader.tsx b/apps/studio/components/layouts/Navigation/LayoutHeader/LayoutHeader.tsx
index 0aede59b03d..bf67cf64913 100644
--- a/apps/studio/components/layouts/Navigation/LayoutHeader/LayoutHeader.tsx
+++ b/apps/studio/components/layouts/Navigation/LayoutHeader/LayoutHeader.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { ChevronLeft } from 'lucide-react'
+import { ChevronLeftIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import Link from 'next/link'
import { useRouter } from 'next/router'
@@ -109,7 +109,7 @@ export const LayoutHeader = ({
onClick={() => track('header_back_to_dashboard_clicked')}
className="flex items-center justify-center border-none bg-transparent! rounded-md min-w-[30px] w-[30px] h-[30px] text-foreground-lighter hover:text-foreground transition-colors"
>
- <ChevronLeft strokeWidth={1.5} size={16} />
+ <ChevronLeftIcon strokeWidth={1.5} size={16} />
</Link>
</div>
)}
diff --git a/apps/studio/components/layouts/Navigation/LayoutHeader/MergeRequestButton.tsx b/apps/studio/components/layouts/Navigation/LayoutHeader/MergeRequestButton.tsx
index 0bc91dedd7d..2627b9ad8a4 100644
--- a/apps/studio/components/layouts/Navigation/LayoutHeader/MergeRequestButton.tsx
+++ b/apps/studio/components/layouts/Navigation/LayoutHeader/MergeRequestButton.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { GitMerge } from 'lucide-react'
+import { GitMergeIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { toast } from 'sonner'
@@ -75,7 +75,7 @@ export const MergeRequestButton = () => {
{hasReviewRequested && (
<span className="w-1 h-1 absolute top-0 right-0 rounded-full bg-primary-bright" />
)}
- <GitMerge size={16} strokeWidth={1.5} />
+ <GitMergeIcon size={16} strokeWidth={1.5} />
</div>
}
/>
diff --git a/apps/studio/components/layouts/Navigation/NavigationBar/MobileNavigationBar.tsx b/apps/studio/components/layouts/Navigation/NavigationBar/MobileNavigationBar.tsx
index c3bda812f84..04645125ada 100644
--- a/apps/studio/components/layouts/Navigation/NavigationBar/MobileNavigationBar.tsx
+++ b/apps/studio/components/layouts/Navigation/NavigationBar/MobileNavigationBar.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ChevronLeft, Menu } from 'lucide-react'
+import { ChevronLeftIcon, MenuIcon } from 'lucide-react'
import Link from 'next/link'
import { useState } from 'react'
import { Button, cn } from 'ui'
@@ -53,7 +53,7 @@ export const MobileNavigationBar = ({
href={backToDashboardURL}
className="flex items-center justify-center bg-transparent! rounded-md min-w-[30px] w-[30px] h-[30px] border text-foreground-lighter hover:text-foreground transition-colors"
>
- <ChevronLeft strokeWidth={1.5} size={16} />
+ <ChevronLeftIcon strokeWidth={1.5} size={16} />
</Link>
</div>
)}
@@ -76,7 +76,7 @@ export const MobileNavigationBar = ({
aria-label="Open menu"
title="Menu dropdown button"
className="flex lg:hidden border-default bg-surface-100/75 text-foreground-light rounded-md min-w-[30px] w-[30px] h-[30px] data-open:bg-overlay-hover/30"
- icon={<Menu />}
+ icon={<MenuIcon />}
onClick={() => openMenu()}
/>
)}
diff --git a/apps/studio/components/layouts/Navigation/NavigationBar/NavigationBar.utils.tsx b/apps/studio/components/layouts/Navigation/NavigationBar/NavigationBar.utils.tsx
index f453ecba0f3..ba8f9352e10 100644
--- a/apps/studio/components/layouts/Navigation/NavigationBar/NavigationBar.utils.tsx
+++ b/apps/studio/components/layouts/Navigation/NavigationBar/NavigationBar.utils.tsx
@@ -9,7 +9,7 @@ import {
Storage,
TableEditor,
} from 'icons'
-import { Blocks, Lightbulb, List, Settings, Telescope } from 'lucide-react'
+import { BlocksIcon, LightbulbIcon, ListIcon, SettingsIcon, TelescopeIcon } from 'lucide-react'
import {
useIsExplorerEnabled,
@@ -213,7 +213,7 @@ export const generateOtherRoutes = (
key: 'advisors',
label: 'Advisors',
disabled: !isProjectActive,
- icon: <Lightbulb size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <LightbulbIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/advisors/security`),
shortcutId: SHORTCUT_IDS.NAV_ADVISORS,
},
@@ -223,7 +223,7 @@ export const generateOtherRoutes = (
key: 'observability',
label: 'Observability',
disabled: !isProjectActive,
- icon: <Telescope size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <TelescopeIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
link:
ref &&
(isProjectBuilding
@@ -241,7 +241,7 @@ export const generateOtherRoutes = (
key: 'logs',
label: 'Logs',
disabled: false,
- icon: <List size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <ListIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
link:
ref &&
(unifiedLogsEnabled ? `/project/${ref}/logs` : `/project/${ref}/logs/explorer`),
@@ -253,7 +253,7 @@ export const generateOtherRoutes = (
key: 'integrations',
label: 'Integrations',
disabled: !isProjectActive,
- icon: <Blocks size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <BlocksIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/integrations`),
shortcutId: SHORTCUT_IDS.NAV_INTEGRATIONS,
},
@@ -280,7 +280,7 @@ export const generateSettingsRoutes = (ref?: string): Route[] => {
{
key: 'settings',
label: 'Project Settings',
- icon: <Settings size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <SettingsIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
link: ref && `/project/${ref}/settings/general`,
disabled: false,
shortcutId: SHORTCUT_IDS.NAV_SETTINGS,
diff --git a/apps/studio/components/layouts/Navigation/NavigationBar/OrgSelector.tsx b/apps/studio/components/layouts/Navigation/NavigationBar/OrgSelector.tsx
index 297666376f7..483bc98a739 100644
--- a/apps/studio/components/layouts/Navigation/NavigationBar/OrgSelector.tsx
+++ b/apps/studio/components/layouts/Navigation/NavigationBar/OrgSelector.tsx
@@ -1,5 +1,5 @@
import { useBreakpoint, useParams } from 'common'
-import { Boxes, ChevronsUpDown, Plus } from 'lucide-react'
+import { BoxesIcon, ChevronsUpDownIcon, PlusIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useState } from 'react'
import {
@@ -70,12 +70,12 @@ export function OrgSelector() {
</div>
{selectedOrganization && (
<div className="flex items-center gap-1 truncate text-foreground-light leading-tight text-xs">
- <Boxes className="shrink-0 size-3" strokeWidth={1.5} />
+ <BoxesIcon className="shrink-0 size-3" strokeWidth={1.5} />
<span>{projectsLabel}</span>
</div>
)}
</div>
- <ChevronsUpDown
+ <ChevronsUpDownIcon
strokeWidth={1}
className="ml-auto text-foreground-light md:hidden md:group-hover:block w-4! h-4!"
/>
@@ -145,7 +145,7 @@ export function OrgSelector() {
className="cursor-pointer w-full gap-2"
onSelect={() => setOpen(false)}
>
- <Plus size={14} strokeWidth={1.5} />
+ <PlusIcon size={14} strokeWidth={1.5} />
<p>New organization</p>
</CommandItemLink>
</CommandGroup>
diff --git a/apps/studio/components/layouts/Navigation/NavigationBar/OrgSelectorSheet.tsx b/apps/studio/components/layouts/Navigation/NavigationBar/OrgSelectorSheet.tsx
index dc568074039..ec478670662 100644
--- a/apps/studio/components/layouts/Navigation/NavigationBar/OrgSelectorSheet.tsx
+++ b/apps/studio/components/layouts/Navigation/NavigationBar/OrgSelectorSheet.tsx
@@ -1,4 +1,4 @@
-import { Boxes } from 'lucide-react'
+import { BoxesIcon } from 'lucide-react'
import { SheetHeader, SheetTitle, Tabs, TabsContent, TabsList, TabsTrigger } from 'ui'
import MobileSheetNav from 'ui-patterns/MobileSheetNav/MobileSheetNav'
@@ -42,7 +42,7 @@ export function OrgSelectorSheet({
value="organization"
className="text-xs flex flex-col items-center gap-1.5 px-4 py-3 data-[state=active]:border-0"
>
- <Boxes className="shrink-0" size={16} strokeWidth={1.5} />
+ <BoxesIcon className="shrink-0" size={16} strokeWidth={1.5} />
<span className="truncate max-w-full text-xs leading-tight" title={orgLabel}>
{orgLabel}
</span>
diff --git a/apps/studio/components/layouts/Navigation/NavigationBar/ProjectBranchSelectorSheet.tsx b/apps/studio/components/layouts/Navigation/NavigationBar/ProjectBranchSelectorSheet.tsx
index 0c356df248b..b8b554d3fc2 100644
--- a/apps/studio/components/layouts/Navigation/NavigationBar/ProjectBranchSelectorSheet.tsx
+++ b/apps/studio/components/layouts/Navigation/NavigationBar/ProjectBranchSelectorSheet.tsx
@@ -1,4 +1,4 @@
-import { Box, Boxes, GitBranch } from 'lucide-react'
+import { BoxesIcon, BoxIcon, GitBranchIcon } from 'lucide-react'
import { cn, SheetHeader, SheetTitle, Tabs, TabsContent, TabsList } from 'ui'
import MobileSheetNav from 'ui-patterns/MobileSheetNav/MobileSheetNav'
@@ -48,22 +48,22 @@ export function ProjectBranchSelectorSheet({
orgLabel && {
value: 'organization' as const,
label: orgLabel,
- icon: Boxes,
+ icon: BoxesIcon,
},
projectLabel && {
value: 'project' as const,
label: projectLabel,
- icon: Box,
+ icon: BoxIcon,
},
branchLabel && {
value: 'branch' as const,
label: branchLabel,
- icon: GitBranch,
+ icon: GitBranchIcon,
},
].filter(Boolean) as Array<{
value: 'organization' | 'project' | 'branch'
label: string
- icon: typeof Boxes
+ icon: typeof BoxesIcon
}>
const defaultTab =
diff --git a/apps/studio/components/layouts/Navigation/NavigationBar/ProjectBranchSelectorTrigger.tsx b/apps/studio/components/layouts/Navigation/NavigationBar/ProjectBranchSelectorTrigger.tsx
index d2c4ad5c491..b49fbd9c9ac 100644
--- a/apps/studio/components/layouts/Navigation/NavigationBar/ProjectBranchSelectorTrigger.tsx
+++ b/apps/studio/components/layouts/Navigation/NavigationBar/ProjectBranchSelectorTrigger.tsx
@@ -1,4 +1,4 @@
-import { ChevronsUpDown, GitBranch } from 'lucide-react'
+import { ChevronsUpDownIcon, GitBranchIcon } from 'lucide-react'
import { forwardRef } from 'react'
import { cn, SidebarMenuButton } from 'ui'
@@ -46,12 +46,12 @@ export const ProjectBranchSelectorTrigger = forwardRef<
isBranch ? 'text-foreground-lighter' : 'text-warning'
)}
>
- <GitBranch className="shrink-0 size-3" strokeWidth={1.5} />
+ <GitBranchIcon className="shrink-0 size-3" strokeWidth={1.5} />
<span className="truncate min-w-0 leading-tight text-xs">{branchDisplayName}</span>
</div>
</div>
- <ChevronsUpDown
+ <ChevronsUpDownIcon
strokeWidth={1.5}
className="ml-auto text-foreground-lighter w-4! h-4! md:hidden md:group-hover:flex"
/>
diff --git a/apps/studio/components/layouts/ObservabilityLayout/ObservabilityMenu.tsx b/apps/studio/components/layouts/ObservabilityLayout/ObservabilityMenu.tsx
index 7ddba0adc39..07872ef958c 100644
--- a/apps/studio/components/layouts/ObservabilityLayout/ObservabilityMenu.tsx
+++ b/apps/studio/components/layouts/ObservabilityLayout/ObservabilityMenu.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useState } from 'react'
@@ -124,7 +124,7 @@ export const ObservabilityMenu = () => {
{customReportItems.length > 0 && (
<ButtonTooltip
size="tiny"
- icon={<Plus />}
+ icon={<PlusIcon />}
disabled={!canCreateCustomReport}
className="flex items-center justify-center h-6 w-6 absolute top-0 -right-1"
onClick={() => {
@@ -166,7 +166,7 @@ export const ObservabilityMenu = () => {
description="Create and save custom reports to track your project metrics"
actions={
<ButtonTooltip
- icon={<Plus />}
+ icon={<PlusIcon />}
disabled={!canCreateCustomReport}
onClick={() => {
setShowNewReportModal(true)
diff --git a/apps/studio/components/layouts/ObservabilityLayout/ObservabilityMenuItem.tsx b/apps/studio/components/layouts/ObservabilityLayout/ObservabilityMenuItem.tsx
index 488db9f776d..46cc88f3e5d 100644
--- a/apps/studio/components/layouts/ObservabilityLayout/ObservabilityMenuItem.tsx
+++ b/apps/studio/components/layouts/ObservabilityLayout/ObservabilityMenuItem.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Edit2, MoreVertical, Trash } from 'lucide-react'
+import { Edit2Icon, MoreVerticalIcon, TrashIcon } from 'lucide-react'
import Link from 'next/link'
import {
Button,
@@ -66,7 +66,7 @@ export const ObservabilityMenuItem = ({
aria-label="More actions"
variant="text"
className="px-0.5 h-[20px] opacity-50 hover:opacity-100"
- icon={<MoreVertical size={12} strokeWidth={2} />}
+ icon={<MoreVerticalIcon size={12} strokeWidth={2} />}
onClick={(e) => {
e.preventDefault()
e.stopPropagation()
@@ -82,7 +82,7 @@ export const ObservabilityMenuItem = ({
onSelectEdit()
}}
>
- <Edit2 size={12} />
+ <Edit2Icon size={12} />
<div>Rename report</div>
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -94,7 +94,7 @@ export const ObservabilityMenuItem = ({
onSelectDelete()
}}
>
- <Trash size={12} />
+ <TrashIcon size={12} />
<div>Delete report</div>
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/layouts/OrganizationLayout.tsx b/apps/studio/components/layouts/OrganizationLayout.tsx
index e674a869c60..96d6553947c 100644
--- a/apps/studio/components/layouts/OrganizationLayout.tsx
+++ b/apps/studio/components/layouts/OrganizationLayout.tsx
@@ -1,5 +1,5 @@
import { LOCAL_STORAGE_KEYS } from 'common'
-import { ExternalLink, XIcon } from 'lucide-react'
+import { ExternalLinkIcon, XIcon } from 'lucide-react'
import Head from 'next/head'
import { useRouter } from 'next/router'
import type { PropsWithChildren } from 'react'
@@ -151,7 +151,7 @@ const OrganizationLayoutContent = ({
</div>
<div className="flex items-center gap-2">
{selectedRedirectQuery?.data?.url && (
- <Button asChild iconRight={<ExternalLink />}>
+ <Button asChild iconRight={<ExternalLinkIcon />}>
<a href={selectedRedirectQuery.data.url} target="_blank" rel="noopener noreferrer">
Manage
</a>
diff --git a/apps/studio/components/layouts/PageLayout/PageHeader.tsx b/apps/studio/components/layouts/PageLayout/PageHeader.tsx
index 8ce76429861..6d20ac311ac 100644
--- a/apps/studio/components/layouts/PageLayout/PageHeader.tsx
+++ b/apps/studio/components/layouts/PageLayout/PageHeader.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ChevronLeft } from 'lucide-react'
+import { ChevronLeftIcon } from 'lucide-react'
import Link from 'next/link'
import { Fragment, ReactNode } from 'react'
import {
@@ -63,7 +63,7 @@ export const PageHeader = ({
<BreadcrumbLink asChild className="flex items-center gap-2">
<Link href={!!ref ? item.href.replace('[ref]', ref) : item.href}>
{breadcrumbs.length === 1 && !isCompact && (
- <ChevronLeft size={16} strokeWidth={1.5} />
+ <ChevronLeftIcon size={16} strokeWidth={1.5} />
)}
{item.label}
</Link>
@@ -71,7 +71,7 @@ export const PageHeader = ({
) : (
<BreadcrumbPageItem className="flex items-center gap-2">
{breadcrumbs.length === 1 && (
- <ChevronLeft size={16} strokeWidth={1.5} />
+ <ChevronLeftIcon size={16} strokeWidth={1.5} />
)}
{item.label}
</BreadcrumbPageItem>
diff --git a/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx b/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx
index 4363321c07a..bcc2a3b0e46 100644
--- a/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/BuildingState.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ArrowRight, Loader2 } from 'lucide-react'
+import { ArrowRightIcon, Loader2Icon } from 'lucide-react'
import Link from 'next/link'
import { useEffect } from 'react'
import { Badge, Button } from 'ui'
@@ -67,7 +67,7 @@ const BuildingState = () => {
<h1 className="text-3xl">{project?.name}</h1>
<Badge>
<div className="flex items-center gap-2">
- <Loader2 className="animate-spin" size={12} />
+ <Loader2Icon className="animate-spin" size={12} />
<span>
{project.status === PROJECT_STATUS.UNKNOWN
? 'Initiating project set up'
@@ -174,7 +174,7 @@ const ChecklistItem = ({ description }: any) => {
return (
<li className="my-3 flex flex-wrap space-x-3">
<div className="mt-0.5">
- <ArrowRight className="text-foreground-lighter" size={14} />
+ <ArrowRightIcon className="text-foreground-lighter" size={14} />
</div>
<div className="flex-1">{description}</div>
</li>
diff --git a/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx b/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx
index a76cc86545d..304171e95e2 100644
--- a/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/ConnectingState.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ExternalLink, Loader, Monitor, Server } from 'lucide-react'
+import { ExternalLinkIcon, LoaderIcon, MonitorIcon, ServerIcon } from 'lucide-react'
import Link from 'next/link'
import { useEffect, useRef } from 'react'
import { Badge, Button } from 'ui'
@@ -58,7 +58,7 @@ const ConnectingState = ({ project }: ConnectingStateProps) => {
<div>
<Badge variant="success">
<div className="flex items-center gap-2">
- <Loader className="animate-spin" size={12} />
+ <LoaderIcon className="animate-spin" size={12} />
<span>Connecting to project</span>
</div>
</Badge>
@@ -69,13 +69,13 @@ const ConnectingState = ({ project }: ConnectingStateProps) => {
<div className="mx-auto flex max-w-[300px] items-center justify-center">
<div>
<div className="flex items-center justify-center w-12 h-12 rounded-md border">
- <Monitor className="text-foreground-light" size={30} strokeWidth={1.5} />
+ <MonitorIcon className="text-foreground-light" size={30} strokeWidth={1.5} />
</div>
</div>
<ShimmerLine active />
<div>
<div className="flex items-center justify-center w-12 h-12 rounded-md border">
- <Server className="text-foreground-light" size={30} strokeWidth={1.5} />
+ <ServerIcon className="text-foreground-light" size={30} strokeWidth={1.5} />
</div>
</div>
</div>
@@ -92,7 +92,7 @@ const ConnectingState = ({ project }: ConnectingStateProps) => {
<Button asChild>
<Link href={getInfrastructurePath(ref)}>Check database health</Link>
</Button>
- <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLinkIcon strokeWidth={1.5} />}>
<Link
href={`${DOCS_URL}/guides/troubleshooting?products=platform#unable-to-connect-to-your-supabase-project`}
className="translate-y-px"
diff --git a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/MobileMenuContent.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/MobileMenuContent.tsx
index e56031ccb13..9daf425843f 100644
--- a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/MobileMenuContent.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/MobileMenuContent.tsx
@@ -2,7 +2,7 @@
import { useFlag, useParams } from 'common'
import { Home } from 'icons'
-import { ChevronLeft } from 'lucide-react'
+import { ChevronLeftIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import React, { useMemo } from 'react'
import { Button, cn, Separator, SheetTitle, SidebarGroup, SidebarMenu } from 'ui'
@@ -143,7 +143,7 @@ export function MobileMenuContent({
<Button
variant="text"
className="p-1! justify-start"
- icon={<ChevronLeft size={20} />}
+ icon={<ChevronLeftIcon size={20} />}
onClick={handleBackToTop}
aria-label="Back to menu"
block
diff --git a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/OrgMenuContent.tsx b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/OrgMenuContent.tsx
index b753d3b076e..721fc9500b7 100644
--- a/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/OrgMenuContent.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/LayoutHeader/MobileMenuContent/OrgMenuContent.tsx
@@ -1,7 +1,15 @@
'use client'
import { useIsMFAEnabled, useParams } from 'common'
-import { Blocks, Boxes, ChartArea, ChevronLeft, Receipt, Settings, Users } from 'lucide-react'
+import {
+ BlocksIcon,
+ BoxesIcon,
+ ChartAreaIcon,
+ ChevronLeftIcon,
+ ReceiptIcon,
+ SettingsIcon,
+ UsersIcon,
+} from 'lucide-react'
import { useRouter } from 'next/router'
import React, { useMemo } from 'react'
import { Button, cn, SidebarGroup, SidebarMenu } from 'ui'
@@ -64,25 +72,25 @@ export function OrgMenuContent({ onCloseSheet }: OrgMenuContentProps) {
label: 'Projects',
href: `/org/${organizationSlug}`,
key: 'projects',
- icon: <Boxes size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <BoxesIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
},
{
label: 'Team',
href: `/org/${organizationSlug}/team`,
key: 'team',
- icon: <Users size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <UsersIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
},
{
label: 'Integrations',
href: `/org/${organizationSlug}/integrations`,
key: 'integrations',
- icon: <Blocks size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <BlocksIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
},
{
label: 'Usage',
href: `/org/${organizationSlug}/usage`,
key: 'usage',
- icon: <ChartArea size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <ChartAreaIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
},
...(showBilling
? [
@@ -90,7 +98,7 @@ export function OrgMenuContent({ onCloseSheet }: OrgMenuContentProps) {
label: 'Billing',
href: `/org/${organizationSlug}/billing`,
key: 'billing',
- icon: <Receipt size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <ReceiptIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
},
]
: []),
@@ -98,7 +106,7 @@ export function OrgMenuContent({ onCloseSheet }: OrgMenuContentProps) {
label: 'Organization settings',
href: `/org/${organizationSlug}/general`,
key: 'settings',
- icon: <Settings size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
+ icon: <SettingsIcon size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,
},
],
[organizationSlug, showBilling]
@@ -123,7 +131,7 @@ export function OrgMenuContent({ onCloseSheet }: OrgMenuContentProps) {
<Button
variant="text"
className="p-1! justify-start"
- icon={<ChevronLeft size={20} />}
+ icon={<ChevronLeftIcon size={20} />}
onClick={handleBackToTop}
aria-label="Back to menu"
block
diff --git a/apps/studio/components/layouts/ProjectLayout/PauseFailedState.tsx b/apps/studio/components/layouts/ProjectLayout/PauseFailedState.tsx
index a242be1b432..846151da1cc 100644
--- a/apps/studio/components/layouts/ProjectLayout/PauseFailedState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/PauseFailedState.tsx
@@ -1,6 +1,6 @@
import { PermissionAction, SupportCategories } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Download, MoreVertical, Trash } from 'lucide-react'
+import { DownloadIcon, MoreVerticalIcon, TrashIcon } from 'lucide-react'
import { useState } from 'react'
import {
Button,
@@ -103,7 +103,7 @@ export const PauseFailedState = () => {
</SupportLink>
</Button>
<ButtonTooltip
- icon={<Download />}
+ icon={<DownloadIcon />}
disabled={isLoadingBackups}
loading={isDownloading || isLoadingBackups}
tooltip={{
@@ -118,7 +118,7 @@ export const PauseFailedState = () => {
</ButtonTooltip>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button className="px-1.5" icon={<MoreVertical />} />
+ <Button className="px-1.5" icon={<MoreVerticalIcon />} />
</DropdownMenuTrigger>
<DropdownMenuContent className="w-72" align="end">
<DropdownMenuItemTooltip
@@ -135,7 +135,7 @@ export const PauseFailedState = () => {
}}
>
<div className="translate-y-0.5">
- <Trash size={14} />
+ <TrashIcon size={14} />
</div>
<div className="">
<p>Delete project</p>
diff --git a/apps/studio/components/layouts/ProjectLayout/PausedState/DownloadBackupsSection.tsx b/apps/studio/components/layouts/ProjectLayout/PausedState/DownloadBackupsSection.tsx
index 8cd448c4516..c16bce3ed9c 100644
--- a/apps/studio/components/layouts/ProjectLayout/PausedState/DownloadBackupsSection.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/PausedState/DownloadBackupsSection.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { Database, Storage } from 'icons'
-import { ChevronDown, Download } from 'lucide-react'
+import { ChevronDownIcon, DownloadIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { toast } from 'sonner'
import {
@@ -124,7 +124,7 @@ export const DownloadBackupsSection = () => {
</div>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button icon={<Download />} iconRight={<ChevronDown />}>
+ <Button icon={<DownloadIcon />} iconRight={<ChevronDownIcon />}>
Download backups
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/layouts/ProjectLayout/PausedState/PauseDisabledState.tsx b/apps/studio/components/layouts/ProjectLayout/PausedState/PauseDisabledState.tsx
index ab60e5398e8..24bee3ce24a 100644
--- a/apps/studio/components/layouts/ProjectLayout/PausedState/PauseDisabledState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/PausedState/PauseDisabledState.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import { Admonition } from 'ui-patterns/Admonition'
import { TimestampInfo } from 'ui-patterns/TimestampInfo'
@@ -51,7 +51,7 @@ export const PauseDisabledState = () => {
<p className="leading-normal! mb-1!">Recovery options:</p>
<ul className="flex flex-col gap-y-0.5">
<li className="flex items-center gap-x-2">
- <ExternalLink size={14} />
+ <ExternalLinkIcon size={14} />
<InlineLink
href={`${DOCS_URL}/guides/platform/migrating-within-supabase/dashboard-restore`}
>
@@ -59,7 +59,7 @@ export const PauseDisabledState = () => {
</InlineLink>
</li>
<li className="flex items-center gap-x-2">
- <ExternalLink size={14} />
+ <ExternalLinkIcon size={14} />
<InlineLink href={`${DOCS_URL}/guides/local-development/restoring-downloaded-backup`}>
Restore the backup on your local machine
</InlineLink>
diff --git a/apps/studio/components/layouts/ProjectLayout/PausedState/ProjectPausedState.tsx b/apps/studio/components/layouts/ProjectLayout/PausedState/ProjectPausedState.tsx
index b2940cba282..f13eefb6d18 100644
--- a/apps/studio/components/layouts/ProjectLayout/PausedState/ProjectPausedState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/PausedState/ProjectPausedState.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { PauseCircle } from 'lucide-react'
+import { PauseCircleIcon } from 'lucide-react'
import Link from 'next/link'
import { Button, Card, CardContent, CardFooter } from 'ui'
import { GenericSkeletonLoader } from 'ui-patterns/ShimmeringLoader'
@@ -48,7 +48,11 @@ export const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {
return (
<Card className="w-full max-w-160 mx-auto">
<CardContent>
- <PauseCircle size={48} strokeWidth={1} className="text-foreground-lighter shrink-0 mb-4" />
+ <PauseCircleIcon
+ size={48}
+ strokeWidth={1}
+ className="text-foreground-lighter shrink-0 mb-4"
+ />
<div className="flex-1">
<div>
<h2 className="mb-4">Project "{project?.name}" is paused</h2>
diff --git a/apps/studio/components/layouts/ProjectLayout/PausingState.tsx b/apps/studio/components/layouts/ProjectLayout/PausingState.tsx
index 48e5e332191..b11670b8893 100644
--- a/apps/studio/components/layouts/ProjectLayout/PausingState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/PausingState.tsx
@@ -1,6 +1,6 @@
import { SupportCategories } from '@supabase/shared-types/out/constants'
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { Circle, Loader } from 'lucide-react'
+import { CircleIcon, LoaderIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { Badge, Button } from 'ui'
@@ -83,7 +83,7 @@ export const PausingState = ({ project }: PausingStateProps) => {
<div>
<Badge>
<div className="flex items-center gap-2">
- <Loader className="animate-spin" size={12} />
+ <LoaderIcon className="animate-spin" size={12} />
<span>Pausing project</span>
</div>
</Badge>
@@ -94,9 +94,9 @@ export const PausingState = ({ project }: PausingStateProps) => {
<div className="grid w-[380px] gap-4">
<div className="relative mx-auto max-w-[300px]">
<div className="absolute flex h-full w-full items-center justify-center">
- <Loader className="animate-spin" size={20} strokeWidth={2} />
+ <LoaderIcon className="animate-spin" size={20} strokeWidth={2} />
</div>
- <Circle className="text-foreground-lighter" size={50} strokeWidth={1.5} />
+ <CircleIcon className="text-foreground-lighter" size={50} strokeWidth={1.5} />
</div>
<p className="text-center">Pausing {project.name}</p>
<p className="text-center text-sm text-foreground-light">
diff --git a/apps/studio/components/layouts/ProjectLayout/ResizingState.tsx b/apps/studio/components/layouts/ProjectLayout/ResizingState.tsx
index 94ac6662c50..be2fdb7b91e 100644
--- a/apps/studio/components/layouts/ProjectLayout/ResizingState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/ResizingState.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useProjectDetailQuery } from '@/data/projects/project-detail-query'
import { PROJECT_STATUS } from '@/lib/constants'
@@ -25,7 +25,7 @@ export const ResizingState = () => {
<div className="space-y-6 py-6">
<div className="flex px-8 space-x-8">
<div className="mt-1">
- <Loader2 className="animate-spin text-foreground-light" size={18} />
+ <Loader2Icon className="animate-spin text-foreground-light" size={18} />
</div>
<div className="flex flex-col gap-1">
<p>Resizing project</p>
diff --git a/apps/studio/components/layouts/ProjectLayout/RestartingState.tsx b/apps/studio/components/layouts/ProjectLayout/RestartingState.tsx
index a78c5c813ec..543f51f3f91 100644
--- a/apps/studio/components/layouts/ProjectLayout/RestartingState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/RestartingState.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useProjectDetailQuery } from '@/data/projects/project-detail-query'
import { PROJECT_STATUS } from '@/lib/constants'
@@ -25,7 +25,7 @@ const RestartingState = () => {
<div className="space-y-6 py-6">
<div className="flex px-8 space-x-8">
<div className="mt-1">
- <Loader2 className="animate-spin" size={18} />
+ <Loader2Icon className="animate-spin" size={18} />
</div>
<div className="space-y-1">
<p>Restarting...</p>
diff --git a/apps/studio/components/layouts/ProjectLayout/RestoreFailedState.tsx b/apps/studio/components/layouts/ProjectLayout/RestoreFailedState.tsx
index 0ee426f49c7..a5446fc36ae 100644
--- a/apps/studio/components/layouts/ProjectLayout/RestoreFailedState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/RestoreFailedState.tsx
@@ -1,6 +1,6 @@
import { PermissionAction, SupportCategories } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { Download, MoreVertical, Trash } from 'lucide-react'
+import { DownloadIcon, MoreVerticalIcon, TrashIcon } from 'lucide-react'
import { useState } from 'react'
import {
Button,
@@ -104,7 +104,7 @@ export const RestoreFailedState = () => {
</Button>
<ButtonTooltip
- icon={<Download />}
+ icon={<DownloadIcon />}
disabled={isLoadingBackups}
loading={isDownloading || isLoadingBackups}
tooltip={{
@@ -120,7 +120,7 @@ export const RestoreFailedState = () => {
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button className="w-7" icon={<MoreVertical />} />
+ <Button className="w-7" icon={<MoreVerticalIcon />} />
</DropdownMenuTrigger>
<DropdownMenuContent className="w-72" align="end">
<DropdownMenuItemTooltip
@@ -137,7 +137,7 @@ export const RestoreFailedState = () => {
}}
>
<div className="translate-y-0.5">
- <Trash size={14} />
+ <TrashIcon size={14} />
</div>
<div className="">
<p>Delete project</p>
diff --git a/apps/studio/components/layouts/ProjectLayout/RestoringState.tsx b/apps/studio/components/layouts/ProjectLayout/RestoringState.tsx
index c1baf9c1eeb..2bdb8173f9e 100644
--- a/apps/studio/components/layouts/ProjectLayout/RestoringState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/RestoringState.tsx
@@ -1,6 +1,6 @@
import { SupportCategories } from '@supabase/shared-types/out/constants'
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { CheckCircle, Download, Loader } from 'lucide-react'
+import { CheckCircleIcon, DownloadIcon, LoaderIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { Button } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -125,7 +125,7 @@ export const RestoringState = () => {
<div className="space-y-6 pt-6">
<div className="flex px-8 space-x-8">
<div className="mt-1">
- <CheckCircle className="text-primary" size={18} strokeWidth={2} />
+ <CheckCircleIcon className="text-primary" size={18} strokeWidth={2} />
</div>
<div className="space-y-1">
<p>Restoration complete!</p>
@@ -150,7 +150,7 @@ export const RestoringState = () => {
<div className="space-y-6 py-6">
<div className="flex px-8 space-x-8">
<div className="mt-1">
- <Loader className="animate-spin" size={18} />
+ <LoaderIcon className="animate-spin" size={18} />
</div>
<div className="space-y-1">
<p>Restoration in progress</p>
@@ -187,7 +187,7 @@ export const RestoringState = () => {
</div>
<div className="border-t border-overlay flex items-center justify-end py-4 px-8 gap-x-2">
<ButtonTooltip
- icon={<Download />}
+ icon={<DownloadIcon />}
loading={isDownloading}
disabled={logicalBackups.length === 0}
tooltip={{
diff --git a/apps/studio/components/layouts/ProjectLayout/UnhealthyState.tsx b/apps/studio/components/layouts/ProjectLayout/UnhealthyState.tsx
index 8372fd67c9d..97ede758b6a 100644
--- a/apps/studio/components/layouts/ProjectLayout/UnhealthyState.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/UnhealthyState.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { AlertTriangle } from 'lucide-react'
+import { AlertTriangleIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useState } from 'react'
import { toast } from 'sonner'
@@ -54,7 +54,7 @@ export const UnhealthyState = () => {
<div className="space-y-6 py-6">
<div className="flex px-8 space-x-8">
<div className="mt-1">
- <AlertTriangle className="text-warning" size={18} strokeWidth={1.5} />
+ <AlertTriangleIcon className="text-warning" size={18} strokeWidth={1.5} />
</div>
<div className="flex flex-col gap-3">
<div className="space-y-1">
diff --git a/apps/studio/components/layouts/ProjectLayout/UpgradingState/index.tsx b/apps/studio/components/layouts/ProjectLayout/UpgradingState/index.tsx
index fb672258e3c..5b8a86e3c82 100644
--- a/apps/studio/components/layouts/ProjectLayout/UpgradingState/index.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/UpgradingState/index.tsx
@@ -3,13 +3,13 @@ import { DatabaseUpgradeProgress, DatabaseUpgradeStatus } from '@supabase/shared
import { useParams } from 'common'
import dayjs from 'dayjs'
import {
- AlertCircle,
- CheckCircle,
- Circle,
- Loader,
- Maximize2,
- Minimize2,
- Settings,
+ AlertCircleIcon,
+ CheckCircleIcon,
+ CircleIcon,
+ LoaderIcon,
+ Maximize2Icon,
+ Minimize2Icon,
+ SettingsIcon,
} from 'lucide-react'
import { useSearchParams } from 'next/navigation'
import { useState } from 'react'
@@ -79,7 +79,7 @@ export const UpgradingState = () => {
{isCompleted ? (
<div className="grid gap-4">
<div className="relative mx-auto max-w-[300px]">
- <CheckCircle className="text-primary" size={40} strokeWidth={1.5} />
+ <CheckCircleIcon className="text-primary" size={40} strokeWidth={1.5} />
</div>
<div className="space-y-2">
<p className="text-center">Upgrade completed!</p>
@@ -102,7 +102,7 @@ export const UpgradingState = () => {
) : isFailed ? (
<div className="grid gap-4">
<div className="relative mx-auto max-w-[300px]">
- <AlertCircle className="text-amber-900" size={40} strokeWidth={1.5} />
+ <AlertCircleIcon className="text-amber-900" size={40} strokeWidth={1.5} />
</div>
<div className="space-y-2">
<p className="text-center">We ran into an issue while upgrading your project</p>
@@ -138,9 +138,9 @@ export const UpgradingState = () => {
<div className="grid w-[480px] gap-4">
<div className="relative mx-auto max-w-[300px]">
<div className="absolute flex items-center justify-center w-full h-full">
- <Settings className="animate-spin" size={20} strokeWidth={2} />
+ <SettingsIcon className="animate-spin" size={20} strokeWidth={2} />
</div>
- <Circle className="text-foreground-lighter" size={50} strokeWidth={1.5} />
+ <CircleIcon className="text-foreground-lighter" size={50} strokeWidth={1.5} />
</div>
<div className="space-y-2">
{isPerformingFullPhysicalBackup ? (
@@ -169,14 +169,14 @@ export const UpgradingState = () => {
style={{ maxHeight: isExpanded ? '500px' : '110px' }}
>
{isExpanded ? (
- <Minimize2
+ <Minimize2Icon
size={14}
strokeWidth={2}
className="absolute z-10 cursor-pointer top-3 right-3"
onClick={() => setIsExpanded(false)}
/>
) : (
- <Maximize2
+ <Maximize2Icon
size={14}
strokeWidth={2}
className="absolute z-10 cursor-pointer top-3 right-3"
@@ -204,7 +204,7 @@ export const UpgradingState = () => {
<div key={message.key} className="flex items-center space-x-4">
{isCurrent ? (
<div className="flex items-center justify-center w-5 h-5 rounded-full">
- <Loader
+ <LoaderIcon
size={20}
className="animate-spin text-foreground-light"
strokeWidth={2}
diff --git a/apps/studio/components/layouts/ProjectNeedsSecuring/ProjectNeedsSecuringView.tsx b/apps/studio/components/layouts/ProjectNeedsSecuring/ProjectNeedsSecuringView.tsx
index 9500020b190..0b796c3d5c0 100644
--- a/apps/studio/components/layouts/ProjectNeedsSecuring/ProjectNeedsSecuringView.tsx
+++ b/apps/studio/components/layouts/ProjectNeedsSecuring/ProjectNeedsSecuringView.tsx
@@ -1,4 +1,4 @@
-import { ArrowRight, Check, ExternalLink, Lightbulb, X } from 'lucide-react'
+import { ArrowRightIcon, CheckIcon, ExternalLinkIcon, LightbulbIcon, XIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useMemo } from 'react'
@@ -54,9 +54,9 @@ import { useSidebarManagerSnapshot } from '@/state/sidebar-manager-state'
const StatusCell = ({ enabled, label }: { enabled: boolean; label: string }) => (
<div className="flex items-center gap-2 text-sm">
{enabled ? (
- <Check size={14} className="text-primary" aria-hidden="true" />
+ <CheckIcon size={14} className="text-primary" aria-hidden="true" />
) : (
- <X size={14} className="text-destructive" aria-hidden="true" />
+ <XIcon size={14} className="text-destructive" aria-hidden="true" />
)}
<span>{label}</span>
</div>
@@ -103,7 +103,7 @@ export const ProjectNeedsSecuringView = ({
<PageHeaderMeta>
<PageHeaderIcon>
<div className="shrink-0 w-14 h-14 relative bg-destructive-200 border border-destructive-400 rounded-md flex items-center justify-center">
- <Lightbulb size={20} strokeWidth={1.5} className="text-destructive" />
+ <LightbulbIcon size={20} strokeWidth={1.5} className="text-destructive" />
</div>
</PageHeaderIcon>
<PageHeaderSummary>
@@ -111,7 +111,7 @@ export const ProjectNeedsSecuringView = ({
<PageHeaderDescription>{formatRlsDescription(issueCount)}</PageHeaderDescription>
</PageHeaderSummary>
<PageHeaderAside>
- <Button asChild variant="text" iconRight={<ArrowRight />}>
+ <Button asChild variant="text" iconRight={<ArrowRightIcon />}>
<Link
href={`/project/${projectRef}`}
onClick={() => {
@@ -170,7 +170,7 @@ export const ProjectNeedsSecuringView = ({
rel="noreferrer"
aria-label="Open Data API settings"
>
- <ExternalLink size={14} aria-hidden="true" />
+ <ExternalLinkIcon size={14} aria-hidden="true" />
</Link>
</Button_Shadcn_>
</div>
diff --git a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsx b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsx
index 5c5b68c8b63..031753d9167 100644
--- a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsx
+++ b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsx
@@ -1,5 +1,5 @@
import { useFlag, useParams } from 'common'
-import { ArrowUpRight } from 'lucide-react'
+import { ArrowUpRightIcon } from 'lucide-react'
import { useIsPlatformWebhooksEnabled } from '@/components/interfaces/App/FeaturePreview/FeaturePreviewContext'
import { getInfrastructurePath } from '@/components/interfaces/Settings/Infrastructure/Infrastructure.utils'
@@ -82,14 +82,14 @@ export const useGenerateSettingsMenu = () => {
key: 'api',
url: `/project/${ref}/integrations/data_api/overview`,
items: [],
- rightIcon: <ArrowUpRight strokeWidth={1} className="h-4 w-4" />,
+ rightIcon: <ArrowUpRightIcon strokeWidth={1} className="h-4 w-4" />,
},
{
name: 'Vault',
key: 'vault',
url: `/project/${ref}/integrations/vault/overview`,
items: [],
- rightIcon: <ArrowUpRight strokeWidth={1} className="h-4 w-4" />,
+ rightIcon: <ArrowUpRightIcon strokeWidth={1} className="h-4 w-4" />,
label: 'Beta',
},
],
@@ -213,7 +213,7 @@ export const useGenerateSettingsMenu = () => {
key: 'api',
url: `/project/${ref}/integrations/data_api/overview`,
items: [],
- rightIcon: <ArrowUpRight strokeWidth={1} className="h-4 w-4" />,
+ rightIcon: <ArrowUpRightIcon strokeWidth={1} className="h-4 w-4" />,
disabled: !isProjectActive,
isLoading: isPending,
},
@@ -222,7 +222,7 @@ export const useGenerateSettingsMenu = () => {
key: 'vault',
url: `/project/${ref}/integrations/vault/overview`,
items: [],
- rightIcon: <ArrowUpRight strokeWidth={1} className="h-4 w-4" />,
+ rightIcon: <ArrowUpRightIcon strokeWidth={1} className="h-4 w-4" />,
label: 'Beta',
disabled: !isProjectActive,
isLoading: isPending,
@@ -239,7 +239,7 @@ export const useGenerateSettingsMenu = () => {
key: 'subscription',
url: `/org/${organization?.slug}/billing`,
items: [],
- rightIcon: <ArrowUpRight strokeWidth={1} className="h-4 w-4" />,
+ rightIcon: <ArrowUpRightIcon strokeWidth={1} className="h-4 w-4" />,
},
]
: []),
@@ -248,7 +248,7 @@ export const useGenerateSettingsMenu = () => {
key: 'usage',
url: `/org/${organization?.slug}/usage?projectRef=${ref}`,
items: [],
- rightIcon: <ArrowUpRight strokeWidth={1} className="h-4 w-4" />,
+ rightIcon: <ArrowUpRightIcon strokeWidth={1} className="h-4 w-4" />,
},
],
},
diff --git a/apps/studio/components/layouts/SQLEditorLayout/PrivateSqlSnippetEmpty.tsx b/apps/studio/components/layouts/SQLEditorLayout/PrivateSqlSnippetEmpty.tsx
index ab5610689bb..a446e3ded6b 100644
--- a/apps/studio/components/layouts/SQLEditorLayout/PrivateSqlSnippetEmpty.tsx
+++ b/apps/studio/components/layouts/SQLEditorLayout/PrivateSqlSnippetEmpty.tsx
@@ -1,4 +1,4 @@
-import { Pointer } from 'lucide-react'
+import { PointerIcon } from 'lucide-react'
import { TreeViewItem } from 'ui'
import { InnerSideBarEmptyPanel } from 'ui-patterns/InnerSideMenu'
@@ -15,7 +15,7 @@ export const EmptyPrivateQueriesPanel = () => (
<div className="absolute inset-0 bg-linear-to-r from-transparent from-50% to-100% to-background-surface-100 dark:to-background-surface-75" />
</div>
<div className="absolute left-[128px] bottom-[21px] text-foreground-muted z-10 pointer-events-none">
- <Pointer size={16} className="text-foreground-light" strokeWidth={1.5} />
+ <PointerIcon size={16} className="text-foreground-light" strokeWidth={1.5} />
</div>
{[...Array(4)].map((_, i) => (
<div className="border-l pointer-events-none" key={`dummy-${i + 1}`}>
diff --git a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx
index a6f92847ac6..4f0ed55c613 100644
--- a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx
+++ b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useDebounce } from '@uidotdev/usehooks'
import { LOCAL_STORAGE_KEYS, useFlag, useParams } from 'common'
-import { FilePlus, FolderPlus, Plus, ScrollText, X } from 'lucide-react'
+import { FilePlusIcon, FolderPlusIcon, PlusIcon, ScrollTextIcon, XIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useEffect, useState } from 'react'
@@ -121,7 +121,7 @@ export const SQLEditorMenu = () => {
setShowSearch(false)
}}
>
- <X size={18} />
+ <XIcon size={18} />
</TooltipTrigger>
<TooltipContent>Clear search</TooltipContent>
</Tooltip>
@@ -146,7 +146,7 @@ export const SQLEditorMenu = () => {
<DropdownMenuTrigger asChild>
<Button
data-testid="sql-editor-new-query-button"
- icon={<Plus className="text-foreground" />}
+ icon={<PlusIcon className="text-foreground" />}
className="w-[26px]"
aria-label="Create a new query"
/>
@@ -156,17 +156,17 @@ export const SQLEditorMenu = () => {
</Tooltip>
<DropdownMenuContent align="end" side="bottom" className="w-48">
<DropdownMenuItem className="gap-x-2" onClick={() => handleNewQuery()}>
- <FilePlus size={14} />
+ <FilePlusIcon size={14} />
Create a new snippet
</DropdownMenuItem>
{canCreateLogsSnippet && (
<DropdownMenuItem className="gap-x-2" onClick={() => handleNewQuery('logs')}>
- <ScrollText size={14} />
+ <ScrollTextIcon size={14} />
Create a new logs query
</DropdownMenuItem>
)}
<DropdownMenuItem className="gap-x-2" onClick={() => createNewFolder()}>
- <FolderPlus size={14} />
+ <FolderPlusIcon size={14} />
Create a new folder
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/ReferenceSnippetsSection.tsx b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/ReferenceSnippetsSection.tsx
index ab7eed3532b..3d4015dbdfe 100644
--- a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/ReferenceSnippetsSection.tsx
+++ b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/ReferenceSnippetsSection.tsx
@@ -1,5 +1,5 @@
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { BookText } from 'lucide-react'
+import { BookTextIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import {
InnerSideMenuCollapsible,
@@ -51,7 +51,7 @@ export function ReferenceSnippetsSection() {
href={`/project/${ref}/sql/${pageId}`}
className="capitalize"
>
- <BookText size={16} className="text-foreground-muted" />
+ <BookTextIcon size={16} className="text-foreground-muted" />
{pageId}
</InnerSideMenuDataItem>
)
diff --git a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorNav.tsx b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorNav.tsx
index 0a3eb0c034b..6bf556e52ff 100644
--- a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorNav.tsx
+++ b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorNav.tsx
@@ -1,6 +1,6 @@
import { keepPreviousData } from '@tanstack/react-query'
import { IS_PLATFORM, LOCAL_STORAGE_KEYS, useFlag, useParams } from 'common'
-import { Heart } from 'lucide-react'
+import { HeartIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useEffect, useMemo, useState } from 'react'
import { toast } from 'sonner'
@@ -608,7 +608,7 @@ export const SQLEditorNav = ({ sort = 'inserted_at' }: SQLEditorNavProps) => {
description={
<>
Save a query to favorites for easy accessibility by clicking the{' '}
- <Heart size={12} className="inline-block relative align-center -top-px" />{' '}
+ <HeartIcon size={12} className="inline-block relative align-center -top-px" />{' '}
icon.
</>
}
diff --git a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorTreeViewItem.tsx b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorTreeViewItem.tsx
index dfb2560c9c6..88cb82e4963 100644
--- a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorTreeViewItem.tsx
+++ b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SQLEditorTreeViewItem.tsx
@@ -3,16 +3,16 @@ import { keepPreviousData } from '@tanstack/react-query'
import { IS_PLATFORM } from 'common'
import { useParams } from 'common/hooks/useParams'
import {
- Copy,
- Download,
- Edit,
- ExternalLink,
- Heart,
- Lock,
- Move,
- Plus,
- Share,
- Trash,
+ CopyIcon,
+ DownloadIcon,
+ EditIcon,
+ ExternalLinkIcon,
+ HeartIcon,
+ LockIcon,
+ MoveIcon,
+ PlusIcon,
+ ShareIcon,
+ TrashIcon,
} from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
@@ -297,7 +297,7 @@ export const SQLEditorTreeViewItem = ({
onSelect={() => onSelectCreate()}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Plus size={14} />
+ <PlusIcon size={14} />
Create new snippet
</ContextMenuItem>
)}
@@ -307,7 +307,7 @@ export const SQLEditorTreeViewItem = ({
onSelect={() => onSelectRename()}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Edit size={14} />
+ <EditIcon size={14} />
Rename folder
</ContextMenuItem>
)}
@@ -319,7 +319,7 @@ export const SQLEditorTreeViewItem = ({
onSelect={() => onSelectDelete()}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Trash size={14} />
+ <TrashIcon size={14} />
Delete folder
</ContextMenuItem>
</>
@@ -333,7 +333,7 @@ export const SQLEditorTreeViewItem = ({
onSelect={() => onSelectMove()}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Move size={14} />
+ <MoveIcon size={14} />
Move selected queries
</ContextMenuItem>
)}
@@ -344,7 +344,7 @@ export const SQLEditorTreeViewItem = ({
onSelect={() => onSelectDelete()}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Trash size={14} />
+ <TrashIcon size={14} />
Delete selected queries
</ContextMenuItem>
)}
@@ -361,7 +361,7 @@ export const SQLEditorTreeViewItem = ({
rel="noreferrer"
href={`/project/${projectRef}/sql/${element.id}`}
>
- <ExternalLink size={14} />
+ <ExternalLinkIcon size={14} />
Open in new tab
</Link>
</ContextMenuItem>
@@ -372,7 +372,7 @@ export const SQLEditorTreeViewItem = ({
onSelect={() => onSelectRename()}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Edit size={14} />
+ <EditIcon size={14} />
Rename query
</ContextMenuItem>
)}
@@ -382,7 +382,7 @@ export const SQLEditorTreeViewItem = ({
onSelect={() => onSelectMove()}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Move size={14} />
+ <MoveIcon size={14} />
Move query
</ContextMenuItem>
)}
@@ -395,7 +395,7 @@ export const SQLEditorTreeViewItem = ({
onSelect={() => onSelectShare()}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Share size={14} />
+ <ShareIcon size={14} />
Share query with team
</ContextMenuItem>
)}
@@ -405,7 +405,7 @@ export const SQLEditorTreeViewItem = ({
onSelect={() => onSelectUnshare()}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Lock size={14} />
+ <LockIcon size={14} />
Unshare query with team
</ContextMenuItem>
)}
@@ -415,7 +415,7 @@ export const SQLEditorTreeViewItem = ({
onSelect={() => onSelectDuplicate()}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Copy size={14} />
+ <CopyIcon size={14} />
Duplicate query
</ContextMenuItem>
)}
@@ -425,7 +425,7 @@ export const SQLEditorTreeViewItem = ({
onSelect={() => onToggleFavorite()}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Heart
+ <HeartIcon
size={14}
className={cn(
isFavorite
@@ -444,7 +444,7 @@ export const SQLEditorTreeViewItem = ({
onSelect={() => onSelectDownload()}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Download size={14} />
+ <DownloadIcon size={14} />
Export query
</ContextMenuItem>
)}
@@ -452,7 +452,7 @@ export const SQLEditorTreeViewItem = ({
<>
<ContextMenuSeparator />
<ContextMenuItem className="gap-x-2" onSelect={() => onSelectDelete()}>
- <Trash size={14} />
+ <TrashIcon size={14} />
Delete query
</ContextMenuItem>
</>
diff --git a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SearchList.tsx b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SearchList.tsx
index a9a9c89f336..ebe8699be01 100644
--- a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SearchList.tsx
+++ b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/SearchList.tsx
@@ -1,6 +1,6 @@
import { keepPreviousData } from '@tanstack/react-query'
import { useFlag, useParams } from 'common'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { useMemo, useState } from 'react'
import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
@@ -109,7 +109,7 @@ export const SearchList = ({ search }: SearchListProps) => {
<div className="flex flex-col grow">
{isLoadingCounts && (
<div className="px-4 py-1 pb-2.5">
- <Loader2 className="animate-spin" size={14} />
+ <Loader2Icon className="animate-spin" size={14} />
</div>
)}
{!isLoadingCounts && hasCounts && (
diff --git a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/ShareSnippetModal.tsx b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/ShareSnippetModal.tsx
index c060121ab1f..2d8df413420 100644
--- a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/ShareSnippetModal.tsx
+++ b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/ShareSnippetModal.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Eye, Unlock } from 'lucide-react'
+import { EyeIcon, UnlockIcon } from 'lucide-react'
import { toast } from 'sonner'
import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'
@@ -87,11 +87,11 @@ export const ShareSnippetModal = ({
>
<ul className="text-sm text-foreground-light space-y-5">
<li className="flex gap-3 items-center">
- <Eye size={16} />
+ <EyeIcon size={16} />
<span>Project members will have read-only access to this query.</span>
</li>
<li className="flex gap-3 items-center">
- <Unlock size={16} />
+ <UnlockIcon size={16} />
<span>Anyone will be able to duplicate it to their personal snippets.</span>
</li>
</ul>
diff --git a/apps/studio/components/layouts/SQLEditorLayout/SqlEditor.Commands.tsx b/apps/studio/components/layouts/SQLEditorLayout/SqlEditor.Commands.tsx
index e1b5d4ec6e9..1ecb1aba76e 100644
--- a/apps/studio/components/layouts/SQLEditorLayout/SqlEditor.Commands.tsx
+++ b/apps/studio/components/layouts/SQLEditorLayout/SqlEditor.Commands.tsx
@@ -2,7 +2,7 @@ import type { PGColumn } from '@supabase/pg-meta'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useDebounce, useIntersectionObserver } from '@uidotdev/usehooks'
import { useParams } from 'common'
-import { AlertTriangle, Code, Loader2, Table2 } from 'lucide-react'
+import { AlertTriangleIcon, CodeIcon, Loader2Icon, Table2Icon } from 'lucide-react'
import { useRouter } from 'next/navigation'
import { useEffect, useRef, useState } from 'react'
import { cn, CommandGroup, CommandItem, CommandList } from 'ui'
@@ -76,7 +76,7 @@ export function useSnippetCommands() {
{
id: 'run-snippet',
name: 'Run snippet...',
- icon: () => <Code />,
+ icon: () => <CodeIcon />,
action: () => setPage(SNIPPET_PAGE_NAME),
},
],
@@ -135,7 +135,7 @@ function LoadingState() {
return (
<div className="p-6">
<p className="text-center">
- <Loader2 className="inline-block mr-2 animate-spin" />
+ <Loader2Icon className="inline-block mr-2 animate-spin" />
Loading...
</p>
</div>
@@ -146,7 +146,7 @@ function ErrorState() {
return (
<div className="p-6">
<p className="text-center">
- <AlertTriangle className="inline-block mr-2" />
+ <AlertTriangleIcon className="inline-block mr-2" />
Couldn&apos;t load snippets
</p>
</div>
@@ -288,7 +288,7 @@ export function useQueryTableCommands(options?: CommandOptions) {
{
id: 'query-table',
name: 'Query a table...',
- icon: () => <Table2 />,
+ icon: () => <Table2Icon />,
action: () => setPage(QUERY_TABLE_PAGE_NAME),
},
],
@@ -386,7 +386,7 @@ function TableSelector() {
<div className="flex items-center gap-x-2">
{isFetchingNextTablesPage ? (
<span className="flex items-center gap-2">
- <Loader2 size={14} className="animate-spin" /> Loading...
+ <Loader2Icon size={14} className="animate-spin" /> Loading...
</span>
) : (
<span>
diff --git a/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx b/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
index 07fe3ca7637..1569685bb8e 100644
--- a/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
+++ b/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx
@@ -1,5 +1,13 @@
import { useFlag, useParams } from 'common'
-import { Copy, Download, Edit, Globe, Lock, MoreVertical, Trash } from 'lucide-react'
+import {
+ CopyIcon,
+ DownloadIcon,
+ EditIcon,
+ GlobeIcon,
+ LockIcon,
+ MoreVerticalIcon,
+ TrashIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { type CSSProperties } from 'react'
import { toast } from 'sonner'
@@ -245,7 +253,7 @@ export const EntityListItem = ({
<Button
variant="text"
className="w-6 h-6"
- icon={<MoreVertical size={14} strokeWidth={2} />}
+ icon={<MoreVerticalIcon size={14} strokeWidth={2} />}
onClick={(e) => e.preventDefault()}
aria-label={`More options for ${entity.name}`}
/>
@@ -262,7 +270,7 @@ export const EntityListItem = ({
copyToClipboard(entity.name)
}}
>
- <Copy size={12} className="shrink-0" />
+ <CopyIcon size={12} className="shrink-0" />
<span>Copy name</span>
</DropdownMenuItem>
@@ -299,7 +307,7 @@ export const EntityListItem = ({
}
}}
>
- <Copy size={12} className="shrink-0" />
+ <CopyIcon size={12} className="shrink-0" />
<span>Copy table schema</span>
</DropdownMenuItem>
)}
@@ -341,7 +349,7 @@ export const EntityListItem = ({
}
}}
>
- <Copy size={12} className="shrink-0" />
+ <CopyIcon size={12} className="shrink-0" />
<span>Copy definition</span>
</DropdownMenuItem>
)}
@@ -358,7 +366,7 @@ export const EntityListItem = ({
snap.onEditTable()
}}
>
- <Edit size={12} className="shrink-0" />
+ <EditIcon size={12} className="shrink-0" />
<span>Edit table</span>
</DropdownMenuItem>
<DropdownMenuItem
@@ -369,7 +377,7 @@ export const EntityListItem = ({
snap.onDuplicateTable()
}}
>
- <Copy size={12} className="shrink-0" />
+ <CopyIcon size={12} className="shrink-0" />
<span>Duplicate table</span>
</DropdownMenuItem>
<DropdownMenuItem key="view-policies" className="space-x-2" asChild>
@@ -377,14 +385,14 @@ export const EntityListItem = ({
key="view-policies"
href={`/project/${projectRef}/database/policies?schema=${encodeURIComponent(selectedSchema ?? '')}&search=${encodeURIComponent(String(entity.id))}`}
>
- <Lock size={12} className="shrink-0" />
+ <LockIcon size={12} className="shrink-0" />
<span>View policies</span>
</Link>
</DropdownMenuItem>
<DropdownMenuSub>
<DropdownMenuSubTrigger className="gap-x-2">
- <Download size={12} className="shrink-0" />
+ <DownloadIcon size={12} className="shrink-0" />
Export data
</DropdownMenuSubTrigger>
<DropdownMenuSubContent>
@@ -430,7 +438,7 @@ export const EntityListItem = ({
snap.onDeleteTable()
}}
>
- <Trash size={12} className="shrink-0" />
+ <TrashIcon size={12} className="shrink-0" />
<span>Delete table</span>
</DropdownMenuItem>
</>
@@ -442,7 +450,7 @@ export const EntityListItem = ({
<DropdownMenuSub>
<DropdownMenuSubTrigger className="gap-x-2">
- <Download size={12} className="shrink-0" />
+ <DownloadIcon size={12} className="shrink-0" />
Export data
</DropdownMenuSubTrigger>
<DropdownMenuSubContent>
@@ -478,7 +486,7 @@ export const EntityListItem = ({
snap.onDeleteView()
}}
>
- <Trash size={12} className="shrink-0" />
+ <TrashIcon size={12} className="shrink-0" />
<span>Delete view</span>
</DropdownMenuItem>
</>
@@ -490,7 +498,7 @@ export const EntityListItem = ({
<DropdownMenuSub>
<DropdownMenuSubTrigger className="gap-x-2">
- <Download size={12} className="shrink-0" />
+ <DownloadIcon size={12} className="shrink-0" />
Export data
</DropdownMenuSubTrigger>
<DropdownMenuSubContent>
@@ -526,7 +534,7 @@ export const EntityListItem = ({
snap.onDeleteMaterializedView()
}}
>
- <Trash size={12} className="shrink-0" />
+ <TrashIcon size={12} className="shrink-0" />
<span>Delete view</span>
</DropdownMenuItem>
</>
@@ -633,7 +641,7 @@ const EntityTooltipTrigger = ({
return (
<Tooltip>
<TooltipTrigger className="min-w-4" aria-label="Table exposed via Data API">
- <Globe size={14} strokeWidth={1} className="text-foreground-lighter" />
+ <GlobeIcon size={14} strokeWidth={1} className="text-foreground-lighter" />
</TooltipTrigger>
<TooltipContent side="right" className="max-w-52">
This table can be accessed via the Data API but no RLS policies exist so no data will be
@@ -649,7 +657,7 @@ const EntityTooltipTrigger = ({
return (
<Tooltip>
<TooltipTrigger className="min-w-4" aria-label="Table exposed via Data API">
- <Globe size={14} strokeWidth={1} className="text-foreground-lighter" />
+ <GlobeIcon size={14} strokeWidth={1} className="text-foreground-lighter" />
</TooltipTrigger>
<TooltipContent side="right">This table can be accessed via the Data API</TooltipContent>
</Tooltip>
diff --git a/apps/studio/components/layouts/TableEditorLayout/TableEditor.Commands.tsx b/apps/studio/components/layouts/TableEditorLayout/TableEditor.Commands.tsx
index 41e3ef211c8..4db874338fe 100644
--- a/apps/studio/components/layouts/TableEditorLayout/TableEditor.Commands.tsx
+++ b/apps/studio/components/layouts/TableEditorLayout/TableEditor.Commands.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Table2 } from 'lucide-react'
+import { Table2Icon } from 'lucide-react'
import type { CommandOptions } from 'ui-patterns/CommandMenu'
import { useRegisterCommands } from 'ui-patterns/CommandMenu'
@@ -18,7 +18,7 @@ export function useProjectLevelTableEditorCommands(options?: CommandOptions) {
id: 'create-table',
name: 'Create new table',
route: `/project/${ref}/editor?create=table`,
- icon: () => <Table2 />,
+ icon: () => <Table2Icon />,
},
],
{
@@ -42,7 +42,7 @@ export function useTableEditorGotoCommands(options?: CommandOptions) {
id: 'view-tables',
name: 'View your tables',
route: `/project/${ref}/editor`,
- icon: () => <Table2 />,
+ icon: () => <Table2Icon />,
},
],
{
diff --git a/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
index be3a545b185..367cf784c86 100644
--- a/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
+++ b/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { keepPreviousData } from '@tanstack/react-query'
import { useParams } from 'common'
-import { Filter, Plus } from 'lucide-react'
+import { FilterIcon, PlusIcon } from 'lucide-react'
import { useCallback, useEffect, useMemo, useState } from 'react'
import { Button, Checkbox, Label, Popover, PopoverContent, PopoverTrigger } from 'ui'
import {
@@ -194,7 +194,7 @@ export const TableEditorMenu = () => {
name="New table"
disabled={!canCreateTables}
size="tiny"
- icon={<Plus size={14} strokeWidth={1.5} className="text-foreground-muted" />}
+ icon={<PlusIcon size={14} strokeWidth={1.5} className="text-foreground-muted" />}
className="justify-start"
onClick={() => snap.onAddTable()}
tooltip={{
@@ -247,7 +247,7 @@ export const TableEditorMenu = () => {
<ButtonTooltip
className="h-[32px] md:h-[28px] px-1.5"
variant={hasFiltersApplied ? 'default' : 'dashed'}
- icon={<Filter />}
+ icon={<FilterIcon />}
aria-label="Filter"
tooltip={{ content: { side: 'bottom', text: 'Filter' } }}
/>
diff --git a/apps/studio/components/layouts/TableEditorLayout/TableMenuEmptyState.tsx b/apps/studio/components/layouts/TableEditorLayout/TableMenuEmptyState.tsx
index 3cf482e491e..4d740cf2645 100644
--- a/apps/studio/components/layouts/TableEditorLayout/TableMenuEmptyState.tsx
+++ b/apps/studio/components/layouts/TableEditorLayout/TableMenuEmptyState.tsx
@@ -1,4 +1,4 @@
-import { Pointer } from 'lucide-react'
+import { PointerIcon } from 'lucide-react'
import { cn, TreeViewItemVariant } from 'ui'
import { InnerSideBarEmptyPanel } from 'ui-patterns/InnerSideMenu'
@@ -18,7 +18,7 @@ export const TableMenuEmptyState = () => {
<div className="absolute inset-0 bg-linear-to-r from-transparent from-50% to-100% to-background-surface-100 dark:to-background-surface-75" />
</div>
<div className="absolute left-[150px] bottom-[21px] text-foreground-muted z-10 pointer-events-none">
- <Pointer size={16} className="text-foreground-light" strokeWidth={1.5} />
+ <PointerIcon size={16} className="text-foreground-light" strokeWidth={1.5} />
</div>
{[...Array(4)].map((_, i) => (
<div className="border-l pointer-events-none" key={`some-${i}`}>
diff --git a/apps/studio/components/layouts/Tabs/CollapseButton.tsx b/apps/studio/components/layouts/Tabs/CollapseButton.tsx
index 89aafc488f0..62dbd49ea8d 100644
--- a/apps/studio/components/layouts/Tabs/CollapseButton.tsx
+++ b/apps/studio/components/layouts/Tabs/CollapseButton.tsx
@@ -1,5 +1,5 @@
import { useBreakpoint } from 'common'
-import { PanelLeftClose, PanelLeftOpen } from 'lucide-react'
+import { PanelLeftCloseIcon, PanelLeftOpenIcon } from 'lucide-react'
import { cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { useAppStateSnapshot } from '@/state/app-state'
@@ -29,7 +29,7 @@ export function CollapseButton({ hideTabs }: { hideTabs: boolean }) {
>
{showSidebar ? (
<>
- <PanelLeftClose
+ <PanelLeftCloseIcon
size={16}
strokeWidth={1.5}
className="text-foreground-lighter hover:text-foreground-light"
@@ -38,7 +38,7 @@ export function CollapseButton({ hideTabs }: { hideTabs: boolean }) {
</>
) : (
<>
- <PanelLeftOpen
+ <PanelLeftOpenIcon
size={16}
strokeWidth={1.5}
className="text-foreground-lighter hover:text-foreground-light"
diff --git a/apps/studio/components/layouts/Tabs/NewTab.tsx b/apps/studio/components/layouts/Tabs/NewTab.tsx
index 99834b94e32..053ae02ebe7 100644
--- a/apps/studio/components/layouts/Tabs/NewTab.tsx
+++ b/apps/studio/components/layouts/Tabs/NewTab.tsx
@@ -1,4 +1,4 @@
-import { Table2 } from 'lucide-react'
+import { Table2Icon } from 'lucide-react'
import { Badge, Button, Card, CardContent, CardHeader, CardTitle } from 'ui'
import { useEditorType } from '../editors/EditorsLayout.hooks'
@@ -31,7 +31,7 @@ export function NewTab() {
? []
: [
{
- icon: <Table2 className="h-4 w-4 text-foreground" strokeWidth={1.5} />,
+ icon: <Table2Icon className="h-4 w-4 text-foreground" strokeWidth={1.5} />,
title: 'Create a table',
description: 'Design and create a new database table',
bgColor: 'bg-blue-500',
diff --git a/apps/studio/components/layouts/Tabs/SortableTab.tsx b/apps/studio/components/layouts/Tabs/SortableTab.tsx
index af604094d36..b3041ef400f 100644
--- a/apps/studio/components/layouts/Tabs/SortableTab.tsx
+++ b/apps/studio/components/layouts/Tabs/SortableTab.tsx
@@ -1,6 +1,6 @@
import { useSortable } from '@dnd-kit/sortable'
import { CSS } from '@dnd-kit/utilities'
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { useMemo, type KeyboardEvent } from 'react'
import { cn, TabsTrigger } from 'ui'
@@ -164,7 +164,7 @@ export const SortableTab = ({
'cursor-pointer'
)}
>
- <X size={12} className="text-foreground-light" />
+ <XIcon size={12} className="text-foreground-light" />
</button>
)}
</div>
diff --git a/apps/studio/components/layouts/Tabs/Tabs.tsx b/apps/studio/components/layouts/Tabs/Tabs.tsx
index 830b64d2683..e1d44fd3c8b 100644
--- a/apps/studio/components/layouts/Tabs/Tabs.tsx
+++ b/apps/studio/components/layouts/Tabs/Tabs.tsx
@@ -8,7 +8,7 @@ import {
} from '@dnd-kit/core'
import { horizontalListSortingStrategy, SortableContext } from '@dnd-kit/sortable'
import { useParams } from 'common'
-import { Plus, X } from 'lucide-react'
+import { PlusIcon, XIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { useRouter } from 'next/router'
import { ReactNode, useState } from 'react'
@@ -247,7 +247,7 @@ export const EditorTabs = ({
'hover:bg-surface-300 dark:hover:bg-surface-100'
)}
>
- <Plus size={16} strokeWidth={1.5} className={'text-foreground-lighter'} />
+ <PlusIcon size={16} strokeWidth={1.5} className={'text-foreground-lighter'} />
<div className="flex items-center gap-0">
<span>New</span>
</div>
@@ -279,7 +279,7 @@ export const EditorTabs = ({
'cursor-pointer'
)}
>
- <X size={12} className="text-foreground-light" />
+ <XIcon size={12} className="text-foreground-light" />
</button>
</div>
)}
@@ -298,7 +298,7 @@ export const EditorTabs = ({
animate={{ opacity: 1, scale: 1, x: 0 }}
transition={{ duration: 0.2 }}
>
- <Plus
+ <PlusIcon
size={16}
strokeWidth={1.5}
className="text-foreground-lighter hover:text-foreground-light"
diff --git a/apps/studio/components/to-be-cleaned/ListIcons.tsx b/apps/studio/components/to-be-cleaned/ListIcons.tsx
index a51daa5f062..f294264ce03 100644
--- a/apps/studio/components/to-be-cleaned/ListIcons.tsx
+++ b/apps/studio/components/to-be-cleaned/ListIcons.tsx
@@ -1,4 +1,4 @@
-import { Database } from 'lucide-react'
+import { DatabaseIcon } from 'lucide-react'
export const vercelIcon = (
<div className="flex items-center justify-center rounded-sm bg-black p-1">
@@ -15,6 +15,6 @@ export const vercelIcon = (
export const databaseIcon = (
<div className="flex items-center justify-center rounded-sm bg-green-500 p-1 in-data-[theme*=dark]:text-typography-body-dark ">
- <Database size={12} strokeWidth={2} />
+ <DatabaseIcon size={12} strokeWidth={2} />
</div>
)
diff --git a/apps/studio/components/to-be-cleaned/ProductEmptyState.tsx b/apps/studio/components/to-be-cleaned/ProductEmptyState.tsx
index f9339986b89..fc67b68acc1 100644
--- a/apps/studio/components/to-be-cleaned/ProductEmptyState.tsx
+++ b/apps/studio/components/to-be-cleaned/ProductEmptyState.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import { PropsWithChildren } from 'react'
import { Button } from 'ui'
@@ -64,7 +64,7 @@ const ProductEmptyState = ({
</ButtonTooltip>
) : null}
{infoButtonUrl && infoButtonLabel ? (
- <Button icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button icon={<ExternalLinkIcon strokeWidth={1.5} />}>
<a target="_blank" rel="noreferrer" href={infoButtonUrl}>
{infoButtonLabel}
</a>
diff --git a/apps/studio/components/ui/AIAssistantPanel/AIAssistant.prompts.ts b/apps/studio/components/ui/AIAssistantPanel/AIAssistant.prompts.ts
index b2711d99aa8..f9aea898a1f 100644
--- a/apps/studio/components/ui/AIAssistantPanel/AIAssistant.prompts.ts
+++ b/apps/studio/components/ui/AIAssistantPanel/AIAssistant.prompts.ts
@@ -1,10 +1,10 @@
import {
- BookOpen,
- Bug,
- Database,
- Gauge,
- NotebookText,
- ShieldCheck,
+ BookOpenIcon,
+ BugIcon,
+ DatabaseIcon,
+ GaugeIcon,
+ NotebookTextIcon,
+ ShieldCheckIcon,
type LucideIcon,
} from 'lucide-react'
@@ -17,17 +17,17 @@ export type ChatTemplate = {
export const CHAT_TEMPLATES: ChatTemplate[] = [
{
title: 'Generate sample data',
- icon: Database,
+ icon: DatabaseIcon,
initialMessage: 'Generate sample data for a blog with users, posts, and comments tables.',
},
{
title: 'Set up RLS policies',
- icon: ShieldCheck,
+ icon: ShieldCheckIcon,
initialMessage: 'Create RLS policies to ensure users can only access their own data.',
},
{
title: 'Build a notebook',
- icon: NotebookText,
+ icon: NotebookTextIcon,
initialMessage: 'Build me a notebook that tracks weekly signups and active users.',
},
]
@@ -35,17 +35,17 @@ export const CHAT_TEMPLATES: ChatTemplate[] = [
export const codeSnippetPrompts = [
{
title: 'Explain code',
- icon: BookOpen,
+ icon: BookOpenIcon,
prompt: 'Explain what this code does and how it works',
},
{
title: 'Improve code',
- icon: Gauge,
+ icon: GaugeIcon,
prompt: 'How can I improve this code for better performance and readability?',
},
{
title: 'Debug issues',
- icon: Bug,
+ icon: BugIcon,
prompt: 'Help me debug any potential issues with this code',
},
]
diff --git a/apps/studio/components/ui/AIAssistantPanel/AIAssistantChatSelector.tsx b/apps/studio/components/ui/AIAssistantPanel/AIAssistantChatSelector.tsx
index 10801a2a320..cd0f768c003 100644
--- a/apps/studio/components/ui/AIAssistantPanel/AIAssistantChatSelector.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/AIAssistantChatSelector.tsx
@@ -1,4 +1,4 @@
-import { Check, Edit, History, Plus, Trash, X } from 'lucide-react'
+import { CheckIcon, EditIcon, HistoryIcon, PlusIcon, TrashIcon, XIcon } from 'lucide-react'
import { useState } from 'react'
import {
Button,
@@ -103,7 +103,7 @@ export const AIAssistantChatSelector = ({
variant="text"
size="tiny"
className="h-7 w-7 p-0"
- icon={<History />}
+ icon={<HistoryIcon />}
/>
</PopoverTrigger>
</ShortcutTooltip>
@@ -152,7 +152,7 @@ export const AIAssistantChatSelector = ({
aria-label="Save chat name"
variant="text"
size="tiny"
- icon={<Check size={14} />}
+ icon={<CheckIcon size={14} />}
onClick={(e) => handleSaveEditChat(e)}
className="h-7 w-7"
/>
@@ -160,7 +160,7 @@ export const AIAssistantChatSelector = ({
aria-label="Cancel edit chat"
variant="text"
size="tiny"
- icon={<X size={14} />}
+ icon={<XIcon size={14} />}
onClick={(e) => handleCancelEditChat(e)}
className="h-7 w-7"
/>
@@ -168,7 +168,7 @@ export const AIAssistantChatSelector = ({
</div>
) : (
<>
- <Check
+ <CheckIcon
className={cn(
'mr-2 h-4 w-4 shrink-0',
snap.activeChatId === id ? 'opacity-100' : 'opacity-0'
@@ -184,7 +184,7 @@ export const AIAssistantChatSelector = ({
aria-label="Edit chat name"
variant="text"
size="tiny"
- icon={<Edit size={14} />}
+ icon={<EditIcon size={14} />}
onClick={(e) => handleStartEditChat(id, chat.name, e)}
className="h-6 w-6"
/>
@@ -193,7 +193,7 @@ export const AIAssistantChatSelector = ({
aria-label="Delete chat"
variant="text"
size="tiny"
- icon={<Trash size={14} />}
+ icon={<TrashIcon size={14} />}
onClick={(e) => handleDeleteChat(id, e)}
className="h-6 w-6"
/>
@@ -218,7 +218,7 @@ export const AIAssistantChatSelector = ({
}}
disabled={disabled}
>
- <Plus size={14} strokeWidth={1.5} />
+ <PlusIcon size={14} strokeWidth={1.5} />
<span>Start a new chat</span>
</CommandItem>
</CommandGroup>
diff --git a/apps/studio/components/ui/AIAssistantPanel/AIAssistantHeader.tsx b/apps/studio/components/ui/AIAssistantPanel/AIAssistantHeader.tsx
index 47b06e4f606..aefdde5e754 100644
--- a/apps/studio/components/ui/AIAssistantPanel/AIAssistantHeader.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/AIAssistantHeader.tsx
@@ -1,11 +1,11 @@
import {
- Clipboard,
- Edit,
- Maximize,
- MessageCirclePlus,
- MoreVertical,
- Settings,
- X,
+ ClipboardIcon,
+ EditIcon,
+ MaximizeIcon,
+ MessageCirclePlusIcon,
+ MoreVerticalIcon,
+ SettingsIcon,
+ XIcon,
} from 'lucide-react'
import { KeyboardEvent, useState } from 'react'
import { toast } from 'sonner'
@@ -136,7 +136,7 @@ export const AIAssistantHeader = ({
<Button
variant="text"
className="group min-w-0"
- iconRight={<Edit className="transition opacity-0 group-hover:opacity-100" />}
+ iconRight={<EditIcon className="transition opacity-0 group-hover:opacity-100" />}
onClick={() => {
setValue(snap.activeChat?.name)
setIsEditingName(true)
@@ -160,7 +160,7 @@ export const AIAssistantHeader = ({
variant="text"
aria-label="New chat"
size="tiny"
- icon={<MessageCirclePlus />}
+ icon={<MessageCirclePlusIcon />}
onClick={onNewChat}
className="h-7 w-7 p-0"
/>
@@ -175,7 +175,7 @@ export const AIAssistantHeader = ({
variant="text"
aria-label={maximiseLabel}
size="tiny"
- icon={<Maximize />}
+ icon={<MaximizeIcon />}
onClick={onSelectMaximise}
className={cn('h-7 w-7 p-0', !isExplorerEnabled && 'hidden md:flex')}
/>
@@ -186,7 +186,7 @@ export const AIAssistantHeader = ({
<ButtonTooltip
variant="text"
size="tiny"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
className="h-7 w-7 p-0"
disabled={isChatLoading}
tooltip={{ content: { side: 'bottom', text: 'More options' } }}
@@ -195,7 +195,7 @@ export const AIAssistantHeader = ({
<DropdownMenuContent align="end" className="w-60">
<DropdownMenuItem className="justify-between" onClick={handleCopyChatId}>
<div className="flex items-center gap-x-2">
- <Clipboard size={14} />
+ <ClipboardIcon size={14} />
<span>Copy chat ID</span>
</div>
<ShortcutPills
@@ -208,7 +208,7 @@ export const AIAssistantHeader = ({
onClick={() => setIsOptInModalOpen(true)}
>
<div className="flex items-center gap-x-2">
- <Settings size={14} />
+ <SettingsIcon size={14} />
<span>Permission settings</span>
</div>
<ShortcutPills
@@ -230,7 +230,7 @@ export const AIAssistantHeader = ({
variant="text"
className="w-7 h-7"
onClick={onCloseAssistant}
- icon={<X strokeWidth={1.5} />}
+ icon={<XIcon strokeWidth={1.5} />}
/>
</ShortcutTooltip>
</div>
diff --git a/apps/studio/components/ui/AIAssistantPanel/AIOnboarding.tsx b/apps/studio/components/ui/AIAssistantPanel/AIOnboarding.tsx
index e8896945bfe..2a29ccc1ee2 100644
--- a/apps/studio/components/ui/AIAssistantPanel/AIOnboarding.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/AIOnboarding.tsx
@@ -1,4 +1,4 @@
-import { MessageSquarePlus } from 'lucide-react'
+import { MessageSquarePlusIcon } from 'lucide-react'
import type { ReactNode } from 'react'
import { CHAT_TEMPLATES, codeSnippetPrompts } from './AIAssistant.prompts'
@@ -30,7 +30,7 @@ export const AIOnboarding = ({
if (hasSuggestions) {
templates = suggestionPrompts.map((suggestion) => ({
title: suggestion.label,
- icon: MessageSquarePlus,
+ icon: MessageSquarePlusIcon,
initialMessage: suggestion.description,
}))
} else if (sqlSnippets && sqlSnippets.length > 0) {
diff --git a/apps/studio/components/ui/AIAssistantPanel/AssistantChat.tsx b/apps/studio/components/ui/AIAssistantPanel/AssistantChat.tsx
index 7c396f12c5d..e76f11c9033 100644
--- a/apps/studio/components/ui/AIAssistantPanel/AssistantChat.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/AssistantChat.tsx
@@ -3,7 +3,7 @@ import { useChat } from '@ai-sdk/react'
import { lastAssistantMessageIsCompleteWithApprovalResponses } from 'ai'
import { LOCAL_STORAGE_KEYS, useFlag } from 'common'
import { useParams, useSearchParamsShallow } from 'common/hooks'
-import { Eraser, Pencil, X } from 'lucide-react'
+import { EraserIcon, PencilIcon, XIcon } from 'lucide-react'
import { AnimatePresence, motion, useReducedMotion } from 'motion/react'
import { Fragment, useCallback, useEffect, useMemo, useRef, useState, type ReactNode } from 'react'
import { Button, cn, KeyboardShortcut } from 'ui'
@@ -619,7 +619,7 @@ export const AssistantChat = ({
size="tiny"
onClick={handleClearMessages}
className="w-7 h-7"
- icon={<Eraser />}
+ icon={<EraserIcon />}
tooltip={{ content: { side: 'bottom', text: 'Clear messages' } }}
/>
</>
@@ -671,13 +671,13 @@ export const AssistantChat = ({
>
<div className="-translate-x-1/2 bg-alternative dark:bg-muted border rounded-md px-3 py-2 min-w-[180px] flex items-center justify-between gap-x-2">
<div className="flex items-center gap-x-2 text-sm text-foreground">
- <Pencil size={14} />
+ <PencilIcon size={14} />
<span>Editing message</span>
</div>
<ButtonTooltip
variant="outline"
size="tiny"
- icon={<X size={14} />}
+ icon={<XIcon size={14} />}
onClick={cancelEdit}
className="w-6 h-6 p-0"
title="Cancel editing"
diff --git a/apps/studio/components/ui/AIAssistantPanel/AssistantChatForm.tsx b/apps/studio/components/ui/AIAssistantPanel/AssistantChatForm.tsx
index b0991cbab34..aab9b0b5ac5 100644
--- a/apps/studio/components/ui/AIAssistantPanel/AssistantChatForm.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/AssistantChatForm.tsx
@@ -1,5 +1,5 @@
import { useBreakpoint } from 'common'
-import { ArrowUp, Loader2, Square } from 'lucide-react'
+import { ArrowUpIcon, Loader2Icon, SquareIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { ChangeEvent, FormEvent, forwardRef, KeyboardEvent, memo, ReactNode, useRef } from 'react'
import { Button, cn, ExpandingTextArea } from 'ui'
@@ -83,7 +83,7 @@ const AssistantChatFormComponent = forwardRef<HTMLFormElement, FormProps>(
isEditing = false,
selectedModel,
onSelectModel,
- submitIcon = <ArrowUp />,
+ submitIcon = <ArrowUpIcon />,
submitLabel = 'Send message',
secondaryAction,
...props
@@ -187,13 +187,17 @@ const AssistantChatFormComponent = forwardRef<HTMLFormElement, FormProps>(
<ButtonTooltip
variant="outline"
aria-label="Stop response"
- icon={<Square fill="currentColor" className="scale-75" />}
+ icon={<SquareIcon fill="currentColor" className="scale-75" />}
onClick={onStop}
className="w-7 h-7 rounded-full p-0 text-center flex items-center justify-center"
tooltip={{ content: { side: 'top', text: 'Stop response' } }}
/>
) : (
- <Loader2 size={22} className="animate-spin size-7 text-muted" strokeWidth={1} />
+ <Loader2Icon
+ size={22}
+ className="animate-spin size-7 text-muted"
+ strokeWidth={1}
+ />
)
) : (
<ButtonTooltip
diff --git a/apps/studio/components/ui/AIAssistantPanel/AssistantNotebookPreview.tsx b/apps/studio/components/ui/AIAssistantPanel/AssistantNotebookPreview.tsx
index aac3e2e589d..ef7488db6e1 100644
--- a/apps/studio/components/ui/AIAssistantPanel/AssistantNotebookPreview.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/AssistantNotebookPreview.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { NotebookText } from 'lucide-react'
+import { NotebookTextIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import { Button, cn } from 'ui'
@@ -86,7 +86,7 @@ export const AssistantNotebookPreview = ({
<div className={cn('flex w-full min-w-0 max-w-3xl mx-auto flex-col', className)}>
<ExplorerToolbar aria-label="Notebook toolbar">
<ExplorerToolbarIcon>
- <NotebookText size={16} strokeWidth={2} />
+ <NotebookTextIcon size={16} strokeWidth={2} />
</ExplorerToolbarIcon>
<ExplorerToolbarTitle>{title ?? FALLBACK_TITLE[mode]}</ExplorerToolbarTitle>
<ExplorerToolbarActions>
diff --git a/apps/studio/components/ui/AIAssistantPanel/AssistantNotebookPreviewCell.tsx b/apps/studio/components/ui/AIAssistantPanel/AssistantNotebookPreviewCell.tsx
index e4cad22c647..48b45b86f7d 100644
--- a/apps/studio/components/ui/AIAssistantPanel/AssistantNotebookPreviewCell.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/AssistantNotebookPreviewCell.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight, FileText, Loader2, SquareCode } from 'lucide-react'
+import { ChevronRightIcon, FileTextIcon, Loader2Icon, SquareCodeIcon } from 'lucide-react'
import {
cn,
Collapsible,
@@ -77,7 +77,7 @@ export const AssistantNotebookPreviewCell = ({
className="group flex w-full items-center gap-2 bg-muted px-3 py-2 text-left transition-colors hover:bg-accent"
>
{mode === 'update' && <ChangeGlyph marker={marker} />}
- <ChevronRight
+ <ChevronRightIcon
size={12}
className="shrink-0 text-foreground-lighter transition-transform group-data-[state=open]:rotate-90"
/>
@@ -95,7 +95,7 @@ export const AssistantNotebookPreviewCell = ({
{metadata.status === 'loading' ? (
<span className="flex items-center gap-1.5">
<span className="animate-spin">
- <Loader2 aria-hidden size={12} />
+ <Loader2Icon aria-hidden size={12} />
</span>
Loading database…
</span>
@@ -172,7 +172,7 @@ const ChangeGlyph = ({ marker }: { marker: ChangeMarker }) => {
/** Same icons the notebook tab uses for query vs markdown cells. */
const CellTypeIcon = ({ cell }: { cell: CellWire | AgentCell }) => {
- const Icon = cell._tag === 'markdown_cell' ? FileText : SquareCode
+ const Icon = cell._tag === 'markdown_cell' ? FileTextIcon : SquareCodeIcon
return <Icon aria-hidden size={14} className="shrink-0 text-foreground-muted" />
}
diff --git a/apps/studio/components/ui/AIAssistantPanel/CollapsibleCodeBlock.tsx b/apps/studio/components/ui/AIAssistantPanel/CollapsibleCodeBlock.tsx
index 505f3fa799d..d1217d3435a 100644
--- a/apps/studio/components/ui/AIAssistantPanel/CollapsibleCodeBlock.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/CollapsibleCodeBlock.tsx
@@ -1,4 +1,4 @@
-import { Code, X } from 'lucide-react'
+import { CodeIcon, XIcon } from 'lucide-react'
import { Button, cn, HoverCard, HoverCardContent, HoverCardTrigger } from 'ui'
import { CodeBlock, type CodeBlockProps } from 'ui-patterns/CodeBlock'
@@ -22,7 +22,7 @@ export const CollapsibleCodeBlock = ({ onRemove, ...props }: CollapsibleCodeBloc
<HoverCard>
<HoverCardTrigger asChild>
<div className="flex flex-1 items-center gap-2 text-foreground-light px-2 hover:text-foreground cursor-pointer overflow-hidden">
- <Code size={14} strokeWidth={1.5} />
+ <CodeIcon size={14} strokeWidth={1.5} />
<span className="text-xs font-mono flex-1 truncate pointer">{firstLine}...</span>
</div>
</HoverCardTrigger>
@@ -41,7 +41,7 @@ export const CollapsibleCodeBlock = ({ onRemove, ...props }: CollapsibleCodeBloc
size="tiny"
className="shrink-0 w-6 h-6"
onClick={onRemove}
- icon={<X size={14} />}
+ icon={<XIcon size={14} />}
/>
)}
</div>
diff --git a/apps/studio/components/ui/AIAssistantPanel/Confirm.tsx b/apps/studio/components/ui/AIAssistantPanel/Confirm.tsx
index aa76b19ec8b..bbbfc37b5ff 100644
--- a/apps/studio/components/ui/AIAssistantPanel/Confirm.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/Confirm.tsx
@@ -1,4 +1,4 @@
-import { Check, X } from 'lucide-react'
+import { CheckIcon, XIcon } from 'lucide-react'
import { type PropsWithChildren, type ReactNode } from 'react'
import { Button, cn } from 'ui'
@@ -49,8 +49,8 @@ export const ConfirmFooter = ({
)}
>
<div role="status" className="min-w-0 flex flex-1 items-center gap-2">
- {outcome === 'success' && <Check className="size-3.5 shrink-0 text-primary" />}
- {outcome === 'error' && <X className="size-3.5 shrink-0 text-destructive" />}
+ {outcome === 'success' && <CheckIcon className="size-3.5 shrink-0 text-primary" />}
+ {outcome === 'error' && <XIcon className="size-3.5 shrink-0 text-destructive" />}
<span>{message}</span>
</div>
{(showActions || action) && (
diff --git a/apps/studio/components/ui/AIAssistantPanel/Message.Actions.tsx b/apps/studio/components/ui/AIAssistantPanel/Message.Actions.tsx
index 597df537d14..a9112df3a9b 100644
--- a/apps/studio/components/ui/AIAssistantPanel/Message.Actions.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/Message.Actions.tsx
@@ -1,5 +1,13 @@
import { zodResolver } from '@hookform/resolvers/zod'
-import { Check, Copy, Pencil, Split, ThumbsDown, ThumbsUp, Trash2 } from 'lucide-react'
+import {
+ CheckIcon,
+ CopyIcon,
+ PencilIcon,
+ SplitIcon,
+ ThumbsDownIcon,
+ ThumbsUpIcon,
+ Trash2Icon,
+} from 'lucide-react'
import { useEffect, useState, type PropsWithChildren } from 'react'
import { useForm } from 'react-hook-form'
import {
@@ -35,7 +43,7 @@ function MessageActionsEdit({ onClick, tooltip }: { onClick: () => void; tooltip
return (
<ButtonTooltip
variant="text"
- icon={<Pencil size={14} strokeWidth={1.5} />}
+ icon={<PencilIcon size={14} strokeWidth={1.5} />}
onClick={onClick}
className="text-foreground-light hover:text-foreground p-1 rounded-sm"
aria-label={tooltip}
@@ -54,7 +62,7 @@ function MessageActionsDelete({ onClick }: { onClick: () => void }) {
return (
<ButtonTooltip
variant="text"
- icon={<Trash2 size={14} strokeWidth={1.5} />}
+ icon={<Trash2Icon size={14} strokeWidth={1.5} />}
tooltip={{ content: { side: 'bottom', text: 'Delete message' } }}
onClick={onClick}
className="text-foreground-light hover:text-foreground p-1 rounded-sm"
@@ -69,7 +77,7 @@ function MessageActionsBranch({ onClick }: { onClick: () => void }) {
return (
<ButtonTooltip
variant="text"
- icon={<Split size={14} strokeWidth={1.5} />}
+ icon={<SplitIcon size={14} strokeWidth={1.5} />}
onClick={onClick}
className="text-foreground-light hover:text-foreground p-1 rounded-sm"
title="Branch in new chat"
@@ -90,7 +98,9 @@ function MessageActionsCopy({ onClick }: { onClick: (onSuccess: () => void) => v
return (
<ButtonTooltip
variant="text"
- icon={copied ? <Check size={14} strokeWidth={2} /> : <Copy size={14} strokeWidth={1.5} />}
+ icon={
+ copied ? <CheckIcon size={14} strokeWidth={2} /> : <CopyIcon size={14} strokeWidth={1.5} />
+ }
onClick={() => onClick(() => setCopied(true))}
className="text-foreground-light hover:text-foreground p-1 rounded-sm"
title="Copy response"
@@ -115,7 +125,7 @@ function MessageActionsThumbsUp({
variant="text"
disabled={disabled}
icon={
- <ThumbsUp
+ <ThumbsUpIcon
size={14}
strokeWidth={1.5}
className={cn(
@@ -200,7 +210,7 @@ function MessageActionsThumbsDown({
title="Bad response"
aria-label="Bad response"
>
- <ThumbsDown
+ <ThumbsDownIcon
size={14}
strokeWidth={1.5}
className={cn(
diff --git a/apps/studio/components/ui/AIAssistantPanel/Message.Parts.tsx b/apps/studio/components/ui/AIAssistantPanel/Message.Parts.tsx
index 0f5dd87ed6a..82bb1d941f0 100644
--- a/apps/studio/components/ui/AIAssistantPanel/Message.Parts.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/Message.Parts.tsx
@@ -1,6 +1,6 @@
import { UIMessage as VercelMessage } from '@ai-sdk/react'
import { isToolUIPart, type TextUIPart, type ToolUIPart } from 'ai'
-import { BrainIcon, CheckIcon, CircleStop, Loader2, XIcon } from 'lucide-react'
+import { BrainIcon, CheckIcon, CircleStopIcon, Loader2Icon, XIcon } from 'lucide-react'
import { memo, type ReactNode } from 'react'
import { cn } from 'ui'
import { Markdown } from 'ui-patterns/Markdown'
@@ -62,7 +62,7 @@ function MessagePartText({ textPart }: { textPart: TextUIPart }) {
}
const COMPACT_STATUS_ICONS: Record<CompactPartStatus, ReactNode> = {
- running: <Loader2 strokeWidth={1.5} size={12} className="animate-spin" />,
+ running: <Loader2Icon strokeWidth={1.5} size={12} className="animate-spin" />,
done: <CheckIcon strokeWidth={1.5} size={12} className="text-foreground-muted" />,
failed: <XIcon strokeWidth={1.5} size={12} className="text-destructive" />,
}
@@ -95,7 +95,7 @@ function MessagePartCompact({ part, isActive }: { part: CompactPart; isActive?:
function ToolDisplayExecuteSqlLoading({ label = 'Writing SQL...' }: { label?: string }) {
return (
<div className="my-4 rounded-lg border bg-surface-75 heading-meta h-9 px-3 text-foreground-light flex items-center gap-2">
- <Loader2 className="w-4 h-4 animate-spin" />
+ <Loader2Icon className="w-4 h-4 animate-spin" />
{label}
</div>
)
@@ -171,7 +171,7 @@ function MessagePartDeployEdgeFunction({ toolPart }: { toolPart: ToolUIPart }) {
if (state === 'input-streaming') {
return (
<div className="my-4 rounded-lg border bg-surface-75 heading-meta h-9 px-3 text-foreground-light flex items-center gap-2">
- <Loader2 className="w-4 h-4 animate-spin" />
+ <Loader2Icon className="w-4 h-4 animate-spin" />
Writing Edge Function...
</div>
)
@@ -366,7 +366,7 @@ export const MessagePartSwitcher = memo(
if (!isActiveMessage && isIncompletePart) {
return (
<Tool
- icon={<CircleStop strokeWidth={1.5} size={12} className="text-foreground-muted" />}
+ icon={<CircleStopIcon strokeWidth={1.5} size={12} className="text-foreground-muted" />}
label={INTERRUPTED_LABEL}
>
{part.type === 'reasoning' ? part.text : undefined}
diff --git a/apps/studio/components/ui/AIAssistantPanel/MessagePartQueryLogs.tsx b/apps/studio/components/ui/AIAssistantPanel/MessagePartQueryLogs.tsx
index c3c1c3d81b7..465002b65da 100644
--- a/apps/studio/components/ui/AIAssistantPanel/MessagePartQueryLogs.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/MessagePartQueryLogs.tsx
@@ -1,5 +1,5 @@
import { type ToolUIPart } from 'ai'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { AssistantQueryCell } from './AssistantQueryCell'
import { useMessageInfoContext } from './Message.Context'
@@ -26,7 +26,7 @@ export function MessagePartQueryLogs({ toolPart }: { toolPart: QueryLogsToolPart
if (state === 'input-streaming' || state === 'input-available') {
return (
<div className="my-4 rounded-lg border bg-surface-75 heading-meta h-9 px-3 text-foreground-light flex items-center gap-2">
- <Loader2 className="w-4 h-4 animate-spin" />
+ <Loader2Icon className="w-4 h-4 animate-spin" />
Querying logs...
</div>
)
diff --git a/apps/studio/components/ui/AIAssistantPanel/ModelSelector.tsx b/apps/studio/components/ui/AIAssistantPanel/ModelSelector.tsx
index 5410167f27c..36f37b07bae 100644
--- a/apps/studio/components/ui/AIAssistantPanel/ModelSelector.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/ModelSelector.tsx
@@ -1,4 +1,4 @@
-import { Check, ChevronsUpDown } from 'lucide-react'
+import { CheckIcon, ChevronsUpDownIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useState } from 'react'
import {
@@ -57,7 +57,7 @@ export const ModelSelector = ({ selectedModel, onSelectModel }: ModelSelectorPro
<PopoverTrigger asChild>
<Button
className="text-foreground-light"
- iconRight={<ChevronsUpDown strokeWidth={1} size={12} />}
+ iconRight={<ChevronsUpDownIcon strokeWidth={1} size={12} />}
>
{selectedModel}
</Button>
@@ -89,7 +89,7 @@ export const ModelSelector = ({ selectedModel, onSelectModel }: ModelSelectorPro
</TooltipContent>
</Tooltip>
) : (
- selectedModel === m.id && <Check className="h-3.5 w-3.5" />
+ selectedModel === m.id && <CheckIcon className="h-3.5 w-3.5" />
)}
</CommandItem>
))}
diff --git a/apps/studio/components/ui/AIAssistantPanel/NotebookProposalRenderer.tsx b/apps/studio/components/ui/AIAssistantPanel/NotebookProposalRenderer.tsx
index 354197b2ca9..40858d2af01 100644
--- a/apps/studio/components/ui/AIAssistantPanel/NotebookProposalRenderer.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/NotebookProposalRenderer.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import Link from 'next/link'
import { useEffect, useEffectEvent, type PropsWithChildren, type ReactNode } from 'react'
import { Button } from 'ui'
@@ -459,7 +459,7 @@ function UpdateNotebookProposal({
if (isLoading) {
return (
<div className="my-4 rounded-lg border bg-surface-75 heading-meta h-9 px-3 text-foreground-light flex items-center gap-2">
- <Loader2 className="w-4 h-4 animate-spin" />
+ <Loader2Icon className="w-4 h-4 animate-spin" />
Loading notebook...
</div>
)
@@ -573,7 +573,7 @@ function DeleteNotebookProposal({
if (isLoading) {
return (
<div className="my-4 rounded-lg border bg-surface-75 heading-meta h-9 px-3 text-foreground-light flex items-center gap-2">
- <Loader2 className="w-4 h-4 animate-spin" />
+ <Loader2Icon className="w-4 h-4 animate-spin" />
Loading notebook...
</div>
)
diff --git a/apps/studio/components/ui/AIAssistantPanel/NotebookRunRenderer.tsx b/apps/studio/components/ui/AIAssistantPanel/NotebookRunRenderer.tsx
index cc4d893ff1b..28f763095de 100644
--- a/apps/studio/components/ui/AIAssistantPanel/NotebookRunRenderer.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/NotebookRunRenderer.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import { Button, cn } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
import { CodeBlock } from 'ui-patterns/CodeBlock'
@@ -89,7 +89,7 @@ export const NotebookRunRenderer = ({
>
{isLoading && (
<>
- <Loader2 className="w-4 h-4 animate-spin motion-reduce:animate-none" />
+ <Loader2Icon className="w-4 h-4 animate-spin motion-reduce:animate-none" />
Loading notebook...
</>
)}
diff --git a/apps/studio/components/ui/AIAssistantPanel/SnippetRow.tsx b/apps/studio/components/ui/AIAssistantPanel/SnippetRow.tsx
index 2f68ab7cf02..b123fb81f83 100644
--- a/apps/studio/components/ui/AIAssistantPanel/SnippetRow.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/SnippetRow.tsx
@@ -1,4 +1,4 @@
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import React from 'react'
import { Button, HoverCard, HoverCardContent, HoverCardTrigger } from 'ui'
import { CodeBlock } from 'ui-patterns/CodeBlock'
@@ -39,7 +39,7 @@ export const SnippetRow: React.FC<SnippetRowProps> = ({
onRemoveSnippet(idx)
}}
aria-label={`Remove snippet ${idx + 1}`}
- icon={<X strokeWidth={1.5} className="h-3! w-3!" />}
+ icon={<XIcon strokeWidth={1.5} className="h-3! w-3!" />}
/>
)}
</div>
diff --git a/apps/studio/components/ui/AIAssistantPanel/SupportAssistantSuccessCardContent.tsx b/apps/studio/components/ui/AIAssistantPanel/SupportAssistantSuccessCardContent.tsx
index 01313858bb5..e498931eb5b 100644
--- a/apps/studio/components/ui/AIAssistantPanel/SupportAssistantSuccessCardContent.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/SupportAssistantSuccessCardContent.tsx
@@ -1,5 +1,5 @@
import type { UIMessage as MessageType } from '@ai-sdk/react'
-import { ArrowUpRight } from 'lucide-react'
+import { ArrowUpRightIcon } from 'lucide-react'
import dynamic from 'next/dynamic'
import Link from 'next/link'
import { useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react'
@@ -159,7 +159,7 @@ export function SupportAssistantSuccessCardContent({
</div>
</CardHeader>
<CardContent>
- <Button asChild size="tiny" iconRight={<ArrowUpRight size={14} strokeWidth={1.5} />}>
+ <Button asChild size="tiny" iconRight={<ArrowUpRightIcon size={14} strokeWidth={1.5} />}>
<Link
href={`/project/${request.projectRef}?sidebar=ai-assistant&${ASSISTANT_HANDOFF_QUERY_PARAM}=${handoffToken}`}
onClick={() =>
@@ -205,7 +205,7 @@ export function SupportAssistantSuccessCardContent({
<CardDescription>Assistant may be able to help</CardDescription>
</div>
</div>
- <ArrowUpRight
+ <ArrowUpRightIcon
size={14}
strokeWidth={1.5}
className="shrink-0 text-foreground-lighter transition-colors group-hover:text-foreground"
diff --git a/apps/studio/components/ui/AIAssistantPanel/SupportRequestMessage.tsx b/apps/studio/components/ui/AIAssistantPanel/SupportRequestMessage.tsx
index 6bf96b8387d..8459d56a2f7 100644
--- a/apps/studio/components/ui/AIAssistantPanel/SupportRequestMessage.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/SupportRequestMessage.tsx
@@ -1,4 +1,4 @@
-import { Mail } from 'lucide-react'
+import { MailIcon } from 'lucide-react'
import {
parseSupportAssistantPrompt,
@@ -14,7 +14,7 @@ export function SupportRequestMessage({ request }: { request: ParsedSupportAssis
<div className="not-prose rounded-lg border bg-surface-75 p-4 text-sm text-foreground-light">
<div className="min-w-0 space-y-4">
<div className="space-y-4">
- <Mail size={16} strokeWidth={1.5} className="text-foreground-muted" />
+ <MailIcon size={16} strokeWidth={1.5} className="text-foreground-muted" />
<div className="space-y-1">
<p className="heading-default text-foreground">Support request submitted</p>
<p>
diff --git a/apps/studio/components/ui/AIAssistantPanel/elements/ToolGroup.tsx b/apps/studio/components/ui/AIAssistantPanel/elements/ToolGroup.tsx
index dfb9a9ab9b4..1c894e5b4bb 100644
--- a/apps/studio/components/ui/AIAssistantPanel/elements/ToolGroup.tsx
+++ b/apps/studio/components/ui/AIAssistantPanel/elements/ToolGroup.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight } from 'lucide-react'
+import { ChevronRightIcon } from 'lucide-react'
import type { PropsWithChildren, ReactNode } from 'react'
import { cn, Collapsible, CollapsibleContent, CollapsibleTrigger } from 'ui'
@@ -13,7 +13,7 @@ export function ToolGroup({ label, isActive = false, children }: ToolGroupProps)
return (
<Collapsible className="w-full max-w-3xl mx-auto my-4 first:mt-0 last:mb-0 text-foreground-lighter">
<CollapsibleTrigger className="group/tool-group flex items-center gap-2 w-full py-2 text-left">
- <ChevronRight
+ <ChevronRightIcon
strokeWidth={1.5}
size={12}
className="shrink-0 transition-transform duration-200 ease-out group-data-[state=open]/tool-group:rotate-90"
diff --git a/apps/studio/components/ui/AdvisorPanel/AdvisorFilters.tsx b/apps/studio/components/ui/AdvisorPanel/AdvisorFilters.tsx
index e5b2ee284d3..eb64b248a62 100644
--- a/apps/studio/components/ui/AdvisorPanel/AdvisorFilters.tsx
+++ b/apps/studio/components/ui/AdvisorPanel/AdvisorFilters.tsx
@@ -1,5 +1,5 @@
import { useFlag } from 'common'
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { z } from 'zod'
import { advisorCategoryLabels } from './AdvisorPanel.utils'
@@ -105,7 +105,7 @@ export const AdvisorFilters = ({
<ButtonTooltip
variant="text"
className="w-7 h-7 p-0 mr-3"
- icon={<X strokeWidth={1.5} />}
+ icon={<XIcon strokeWidth={1.5} />}
onClick={onClose}
tooltip={{ content: { side: 'bottom', text: 'Close Advisor Center' } }}
/>
diff --git a/apps/studio/components/ui/AdvisorPanel/AdvisorPanel.utils.ts b/apps/studio/components/ui/AdvisorPanel/AdvisorPanel.utils.ts
index efdd02e2efd..52a67a46513 100644
--- a/apps/studio/components/ui/AdvisorPanel/AdvisorPanel.utils.ts
+++ b/apps/studio/components/ui/AdvisorPanel/AdvisorPanel.utils.ts
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { Activity, Gauge, Inbox, Shield } from 'lucide-react'
+import { ActivityIcon, GaugeIcon, InboxIcon, ShieldIcon } from 'lucide-react'
import type { ElementType } from 'react'
import type { AdvisorItem, AdvisorLintItem, AdvisorNotificationItem } from './AdvisorPanel.types'
@@ -173,10 +173,10 @@ export const getAdvisorItemSecondaryText = (
}
export const advisorCategoryIcons: Record<AdvisorCategory, ElementType> = {
- security: Shield,
- performance: Gauge,
- health: Activity,
- messages: Inbox,
+ security: ShieldIcon,
+ performance: GaugeIcon,
+ health: ActivityIcon,
+ messages: InboxIcon,
}
export const advisorCategoryLabels: Record<AdvisorCategory, string> = {
diff --git a/apps/studio/components/ui/AdvisorPanel/AdvisorPanelBody.tsx b/apps/studio/components/ui/AdvisorPanel/AdvisorPanelBody.tsx
index 0e565780390..5d54cdd11ca 100644
--- a/apps/studio/components/ui/AdvisorPanel/AdvisorPanelBody.tsx
+++ b/apps/studio/components/ui/AdvisorPanel/AdvisorPanelBody.tsx
@@ -1,5 +1,5 @@
import { useFlag } from 'common'
-import { AlertTriangle, ChevronRight, Inbox } from 'lucide-react'
+import { AlertTriangleIcon, ChevronRightIcon, InboxIcon } from 'lucide-react'
import { Badge, Button, cn } from 'ui'
import { GenericSkeletonLoader } from 'ui-patterns/ShimmeringLoader'
@@ -21,7 +21,7 @@ const NoProjectNotice = () => {
const isHealthAdvisorEnabled = useFlag('healthAdvisor')
return (
<div className="absolute top-28 px-6 flex flex-col items-center justify-center w-full gap-y-2">
- <Inbox className="text-foreground-muted" strokeWidth={1} />
+ <InboxIcon className="text-foreground-muted" strokeWidth={1} />
<div className="text-center">
<p className="heading-default">Project required</p>
<p className="text-foreground-light text-sm">
@@ -82,7 +82,7 @@ export const AdvisorPanelBody = ({
if (isError) {
return (
<div className="h-full mx-4 flex flex-col items-center justify-center gap-y-2">
- <AlertTriangle className="text-destructive" />
+ <AlertTriangleIcon className="text-destructive" />
<div className="flex flex-col items-center justify-center">
<h4 className="text-base font-normal text-foreground-light">Error loading advisories</h4>
<p className="text-sm text-foreground-lighter">Please try again later.</p>
@@ -155,7 +155,7 @@ export const AdvisorPanelBody = ({
{severityLabels[item.severity]}
</Badge>
)}
- <ChevronRight
+ <ChevronRightIcon
size={16}
strokeWidth={1.5}
className="shrink-0 text-foreground-lighter"
diff --git a/apps/studio/components/ui/AdvisorPanel/AdvisorPanelHeader.tsx b/apps/studio/components/ui/AdvisorPanel/AdvisorPanelHeader.tsx
index 7af901f84e8..6208646f9b8 100644
--- a/apps/studio/components/ui/AdvisorPanel/AdvisorPanelHeader.tsx
+++ b/apps/studio/components/ui/AdvisorPanel/AdvisorPanelHeader.tsx
@@ -1,4 +1,4 @@
-import { ChevronLeft, X } from 'lucide-react'
+import { ChevronLeftIcon, XIcon } from 'lucide-react'
import { Badge } from 'ui'
import { TimestampInfo } from 'ui-patterns/TimestampInfo'
@@ -30,7 +30,7 @@ export const AdvisorPanelHeader = ({ selectedItem, onBack, onClose }: AdvisorPan
<ButtonTooltip
variant="text"
className="w-7 h-7 p-0 flex justify-center items-center"
- icon={<ChevronLeft size={16} strokeWidth={1.5} aria-hidden={true} />}
+ icon={<ChevronLeftIcon size={16} strokeWidth={1.5} aria-hidden={true} />}
onClick={onBack}
tooltip={{ content: { side: 'bottom', text: 'Back to list' } }}
/>
@@ -60,7 +60,7 @@ export const AdvisorPanelHeader = ({ selectedItem, onBack, onClose }: AdvisorPan
<ButtonTooltip
variant="text"
className="w-7 h-7 p-0"
- icon={<X strokeWidth={1.5} />}
+ icon={<XIcon strokeWidth={1.5} />}
onClick={onClose}
tooltip={{ content: { side: 'bottom', text: 'Close Advisor Center' } }}
/>
diff --git a/apps/studio/components/ui/AdvisorPanel/AdvisorSignalDetail.tsx b/apps/studio/components/ui/AdvisorPanel/AdvisorSignalDetail.tsx
index 9d5a316a099..8ce1bf6fb38 100644
--- a/apps/studio/components/ui/AdvisorPanel/AdvisorSignalDetail.tsx
+++ b/apps/studio/components/ui/AdvisorPanel/AdvisorSignalDetail.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { EyeOff, Globe } from 'lucide-react'
+import { EyeOffIcon, GlobeIcon } from 'lucide-react'
import Link from 'next/link'
import { Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -61,7 +61,7 @@ export const AdvisorSignalDetail = ({ item }: AdvisorSignalDetailProps) => {
<TooltipTrigger asChild>
<div className="flex items-center gap-2 px-2 py-0.5 bg-surface-200 border rounded-lg text-sm mb-6 w-fit">
<span className="flex items-center text-foreground-muted" aria-hidden="true">
- <Globe size={15} className="text-foreground-muted" />
+ <GlobeIcon size={15} className="text-foreground-muted" />
</span>
<span>{item.sourceData.ip}</span>
</div>
@@ -94,7 +94,7 @@ export const AdvisorSignalDetail = ({ item }: AdvisorSignalDetailProps) => {
</Link>
</Button>
))}
- <Button icon={<EyeOff size={14} strokeWidth={1.5} />} onClick={onDismissSignal}>
+ <Button icon={<EyeOffIcon size={14} strokeWidth={1.5} />} onClick={onDismissSignal}>
Dismiss
</Button>
</div>
diff --git a/apps/studio/components/ui/AdvisorPanel/EmptyAdvisor.tsx b/apps/studio/components/ui/AdvisorPanel/EmptyAdvisor.tsx
index 5f195753203..8176bfc02f7 100644
--- a/apps/studio/components/ui/AdvisorPanel/EmptyAdvisor.tsx
+++ b/apps/studio/components/ui/AdvisorPanel/EmptyAdvisor.tsx
@@ -1,4 +1,4 @@
-import { TextSearch } from 'lucide-react'
+import { TextSearchIcon } from 'lucide-react'
import { Button } from 'ui'
import type { AdvisorCategory } from '@/state/advisor-state'
@@ -57,7 +57,7 @@ export const EmptyAdvisor = ({
return (
<div className="h-full px-6 flex flex-col items-center justify-center w-full gap-y-2">
- <TextSearch className="text-foreground-muted" strokeWidth={1} />
+ <TextSearchIcon className="text-foreground-muted" strokeWidth={1} />
<div className="flex flex-col items-center gap-y-0.5 text-center">
<h3 className="heading-default">{heading}</h3>
<p className="text-foreground-light text-sm text-balance">{message}</p>
diff --git a/apps/studio/components/ui/AdvisorPanel/NotificationDetail.tsx b/apps/studio/components/ui/AdvisorPanel/NotificationDetail.tsx
index 41bd0323745..3155fb48041 100644
--- a/apps/studio/components/ui/AdvisorPanel/NotificationDetail.tsx
+++ b/apps/studio/components/ui/AdvisorPanel/NotificationDetail.tsx
@@ -1,4 +1,4 @@
-import { Archive, ArchiveRestoreIcon, ExternalLink } from 'lucide-react'
+import { ArchiveIcon, ArchiveRestoreIcon, ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import { Button } from 'ui'
@@ -79,7 +79,7 @@ export const NotificationDetail = ({ notification, onUpdateStatus }: Notificatio
? action.url.replace('[slug]', organization?.slug ?? data.org_slug ?? '_')
: action.url
return (
- <Button key={key} icon={<ExternalLink strokeWidth={1.5} />} asChild>
+ <Button key={key} icon={<ExternalLinkIcon strokeWidth={1.5} />} asChild>
<Link href={url} target="_blank" rel="noreferrer">
{action.label}
</Link>
@@ -104,7 +104,7 @@ export const NotificationDetail = ({ notification, onUpdateStatus }: Notificatio
</Button>
) : (
<Button
- icon={<Archive size={14} strokeWidth={1.5} />}
+ icon={<ArchiveIcon size={14} strokeWidth={1.5} />}
onClick={() => onUpdateStatus(notification.id, 'archived')}
>
Archive
diff --git a/apps/studio/components/ui/AiAssistantDropdown.tsx b/apps/studio/components/ui/AiAssistantDropdown.tsx
index bc9b352d0b2..963e4b8e5e9 100644
--- a/apps/studio/components/ui/AiAssistantDropdown.tsx
+++ b/apps/studio/components/ui/AiAssistantDropdown.tsx
@@ -1,6 +1,6 @@
import { AiAssistantSource } from 'common/telemetry-constants'
import { Chatgpt, Claude } from 'icons'
-import { Check, ChevronDown, Copy } from 'lucide-react'
+import { CheckIcon, ChevronDownIcon, CopyIcon } from 'lucide-react'
import Link from 'next/link'
import { ComponentProps, ReactNode, useEffect, useState } from 'react'
import {
@@ -151,12 +151,12 @@ export function AiAssistantDropdown({
size={size}
disabled={disabled}
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
- icon={<ChevronDown size={12} />}
+ icon={<ChevronDownIcon size={12} />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="w-44">
<DropdownMenuItem onClick={handleCopyPrompt} className="gap-2">
- {showCopied ? <Check size={14} className="text-primary" /> : <Copy size={14} />}
+ {showCopied ? <CheckIcon size={14} className="text-primary" /> : <CopyIcon size={14} />}
{showCopied ? 'Copied!' : copyLabel}
</DropdownMenuItem>
diff --git a/apps/studio/components/ui/AlphaNotice.tsx b/apps/studio/components/ui/AlphaNotice.tsx
index fdc2627c9f2..42b8de94592 100644
--- a/apps/studio/components/ui/AlphaNotice.tsx
+++ b/apps/studio/components/ui/AlphaNotice.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import Link from 'next/link'
import { PropsWithChildren } from 'react'
import { Badge, Button } from 'ui'
@@ -24,7 +24,7 @@ export const AlphaNotice = ({
type="note"
layout="horizontal"
actions={
- <Button asChild icon={<ExternalLink strokeWidth={1.5} />} className="mt-2">
+ <Button asChild icon={<ExternalLinkIcon strokeWidth={1.5} />} className="mt-2">
<Link target="_blank" rel="noopener noreferrer" href={feedbackUrl}>
Share feedback
</Link>
diff --git a/apps/studio/components/ui/AutoEnableRLSNotice.tsx b/apps/studio/components/ui/AutoEnableRLSNotice.tsx
index 2cb1070dc97..633760da79d 100644
--- a/apps/studio/components/ui/AutoEnableRLSNotice.tsx
+++ b/apps/studio/components/ui/AutoEnableRLSNotice.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { ShieldCheck, X } from 'lucide-react'
+import { ShieldCheckIcon, XIcon } from 'lucide-react'
import { useMemo, useState } from 'react'
import { toast } from 'sonner'
import {
@@ -68,7 +68,7 @@ export const AutoEnableRLSNotice = ({ iconOnly }: { iconOnly?: boolean }) => {
<>
<CreateEnsureRLSTriggerDialog />
<ButtonTooltip
- icon={<X />}
+ icon={<XIcon />}
variant="text"
className="w-6"
tooltip={{ content: { side: 'bottom', text: 'Dismiss' } }}
@@ -117,7 +117,7 @@ const CreateEnsureRLSTriggerDialog = ({ iconOnly }: { iconOnly?: boolean }) => {
<DialogTrigger asChild>
{iconOnly ? (
<ButtonTooltip
- icon={<ShieldCheck />}
+ icon={<ShieldCheckIcon />}
className="w-7"
tooltip={{ content: { side: 'bottom', text: 'Auto-enable RLS for new tables' } }}
/>
diff --git a/apps/studio/components/ui/BannerStack/BannerCard.tsx b/apps/studio/components/ui/BannerStack/BannerCard.tsx
index a18e1195044..4689ae8aa4c 100644
--- a/apps/studio/components/ui/BannerStack/BannerCard.tsx
+++ b/apps/studio/components/ui/BannerStack/BannerCard.tsx
@@ -1,4 +1,4 @@
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { Button, Card, CardContent, cn } from 'ui'
import { BASE_PATH } from '@/lib/constants'
@@ -35,7 +35,7 @@ export const BannerCard = ({ onDismiss, children, className }: BannerCardProps)
variant="text"
size="tiny"
type="button"
- icon={<X size={16} strokeWidth={1.5} />}
+ icon={<XIcon size={16} strokeWidth={1.5} />}
onClick={(e) => {
e.preventDefault()
onDismiss()
diff --git a/apps/studio/components/ui/BannerStack/Banners/BannerIndexAdvisor.tsx b/apps/studio/components/ui/BannerStack/Banners/BannerIndexAdvisor.tsx
index 50039a81112..b47eacc5ae8 100644
--- a/apps/studio/components/ui/BannerStack/Banners/BannerIndexAdvisor.tsx
+++ b/apps/studio/components/ui/BannerStack/Banners/BannerIndexAdvisor.tsx
@@ -1,6 +1,6 @@
import { LOCAL_STORAGE_KEYS } from 'common'
import { useParams } from 'common/hooks'
-import { Lightbulb } from 'lucide-react'
+import { LightbulbIcon } from 'lucide-react'
import { BannerCard } from '../BannerCard'
import { useBannerStack } from '../BannerStackProvider'
@@ -28,7 +28,7 @@ export const BannerIndexAdvisor = () => {
<div className="flex flex-col gap-y-4">
<div className="flex flex-col gap-y-2 items-start">
<div className="p-2 rounded-lg bg-warning-300 text-warning">
- <Lightbulb size={16} />
+ <LightbulbIcon size={16} />
</div>
</div>
<div className="flex flex-col gap-y-1 mb-2">
diff --git a/apps/studio/components/ui/CardButton.tsx b/apps/studio/components/ui/CardButton.tsx
index 1cc185c6ddc..27a425a5276 100644
--- a/apps/studio/components/ui/CardButton.tsx
+++ b/apps/studio/components/ui/CardButton.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight, Loader } from 'lucide-react'
+import { ChevronRightIcon, LoaderIcon } from 'lucide-react'
import Link from 'next/link'
import React, { cloneElement, PropsWithChildren } from 'react'
import { cn } from 'ui'
@@ -160,7 +160,13 @@ const CardButton = ({
group-hover:text-foreground
"
>
- {loading ? <Loader className="animate-spin" /> : !hideChevron ? <ChevronRight /> : <></>}
+ {loading ? (
+ <LoaderIcon className="animate-spin" />
+ ) : !hideChevron ? (
+ <ChevronRightIcon />
+ ) : (
+ <></>
+ )}
</div>
)}
</>
diff --git a/apps/studio/components/ui/Charts/ChartHeader.tsx b/apps/studio/components/ui/Charts/ChartHeader.tsx
index fb42f23c9db..114403ea1f6 100644
--- a/apps/studio/components/ui/Charts/ChartHeader.tsx
+++ b/apps/studio/components/ui/Charts/ChartHeader.tsx
@@ -1,10 +1,10 @@
import { useParams } from 'common'
import {
- Activity,
+ ActivityIcon,
BarChartIcon,
GitCommitHorizontalIcon,
InfoIcon,
- SquareTerminal,
+ SquareTerminalIcon,
} from 'lucide-react'
import Link from 'next/link'
import { useEffect, useState } from 'react'
@@ -289,7 +289,7 @@ export const ChartHeader = ({
}}
>
<Link href={`/project/${ref}/logs/explorer?q=${encodeURIComponent(sql)}`}>
- <SquareTerminal className="w-4 h-4 text-foreground-lighter" />
+ <SquareTerminalIcon className="w-4 h-4 text-foreground-lighter" />
</Link>
</ButtonTooltip>
) : null}
@@ -297,7 +297,7 @@ export const ChartHeader = ({
{!hideChartType && onChartStyleChange && (
<ButtonTooltip
className="px-1.5"
- icon={chartStyle === 'bar' ? <Activity /> : <BarChartIcon />}
+ icon={chartStyle === 'bar' ? <ActivityIcon /> : <BarChartIcon />}
onClick={() => onChartStyleChange(chartStyle === 'bar' ? 'line' : 'bar')}
tooltip={{
content: {
diff --git a/apps/studio/components/ui/Charts/ChartHighlightActions.tsx b/apps/studio/components/ui/Charts/ChartHighlightActions.tsx
index b881ad82120..a6808b14943 100644
--- a/apps/studio/components/ui/Charts/ChartHighlightActions.tsx
+++ b/apps/studio/components/ui/Charts/ChartHighlightActions.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { ArrowRight, SearchIcon } from 'lucide-react'
+import { ArrowRightIcon, SearchIcon } from 'lucide-react'
import { ReactNode, useEffect, useMemo, useState } from 'react'
import {
cn,
@@ -112,7 +112,7 @@ export const ChartHighlightActions = ({
>
<DropdownMenuLabel className="flex items-center justify-center text-foreground-light font-mono gap-x-2 text-xs">
<span>{formatChartDate(toFormattableDate(selectedRangeStart!), 'MMM D, H:mm')}</span>
- <ArrowRight size={10} />
+ <ArrowRightIcon size={10} />
<span>{formatChartDate(toFormattableDate(selectedRangeEnd!), 'MMM D, H:mm')}</span>
</DropdownMenuLabel>
<DropdownMenuSeparator className="my-0" />
diff --git a/apps/studio/components/ui/Charts/ComposedChartHandler.tsx b/apps/studio/components/ui/Charts/ComposedChartHandler.tsx
index 37ce5c10bc3..9026603bfe4 100644
--- a/apps/studio/components/ui/Charts/ComposedChartHandler.tsx
+++ b/apps/studio/components/ui/Charts/ComposedChartHandler.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { List, Loader2 } from 'lucide-react'
+import { ListIcon, Loader2Icon } from 'lucide-react'
import { useRouter } from 'next/router'
import React, { PropsWithChildren, useEffect, useMemo, useRef, useState } from 'react'
import { Card, cn, WarningIcon } from 'ui'
@@ -251,7 +251,7 @@ const ComposedChartHandler = ({
{
id: 'open-logs',
label: 'Open in Postgres Logs',
- icon: <List size={12} />,
+ icon: <ListIcon size={12} />,
onSelect: ({ start, end }) => {
const projectRef = ref as string
if (!projectRef) return
@@ -272,7 +272,7 @@ const ComposedChartHandler = ({
className
)}
>
- <Loader2 size={18} className="animate-spin text-border-strong" />
+ <Loader2Icon size={18} className="animate-spin text-border-strong" />
<p className="text-xs text-foreground-lighter">Loading data for {label}</p>
</Card>
)
diff --git a/apps/studio/components/ui/Charts/NoDataPlaceholder.tsx b/apps/studio/components/ui/Charts/NoDataPlaceholder.tsx
index c09ad190ded..8a6ef88a5e6 100644
--- a/apps/studio/components/ui/Charts/NoDataPlaceholder.tsx
+++ b/apps/studio/components/ui/Charts/NoDataPlaceholder.tsx
@@ -1,4 +1,4 @@
-import { BarChart2 } from 'lucide-react'
+import { BarChart2Icon } from 'lucide-react'
import { cn } from 'ui'
import { ChartHeader } from './ChartHeader'
@@ -51,7 +51,7 @@ const NoDataPlaceholder = ({
// extra 20 px for the x ticks
style={{ minHeight: minHeight + 20 }}
>
- <BarChart2 size={20} className="text-border-stronger" />
+ <BarChart2Icon size={20} className="text-border-stronger" />
<div className="px-1">
<p className="text-foreground-light text-xs">{message}</p>
{description && <p className="text-foreground-lighter text-xs">{description}</p>}
diff --git a/apps/studio/components/ui/Charts/ReportSettings.tsx b/apps/studio/components/ui/Charts/ReportSettings.tsx
index d67912a2566..a16c06066eb 100644
--- a/apps/studio/components/ui/Charts/ReportSettings.tsx
+++ b/apps/studio/components/ui/Charts/ReportSettings.tsx
@@ -1,4 +1,4 @@
-import { Settings } from 'lucide-react'
+import { SettingsIcon } from 'lucide-react'
import { useState } from 'react'
import { Label, Popover, PopoverContent, PopoverTrigger, Switch } from 'ui'
@@ -17,7 +17,7 @@ export const ReportSettings = ({ chartId }: ReportSettingsProps) => {
<Popover open={isOpen} onOpenChange={setIsOpen}>
<PopoverTrigger asChild>
<ButtonTooltip
- icon={<Settings />}
+ icon={<SettingsIcon />}
className="w-7"
tooltip={{ content: { side: 'bottom', text: 'Report settings' } }}
/>
diff --git a/apps/studio/components/ui/CodeEditor/CodeEditor.tsx b/apps/studio/components/ui/CodeEditor/CodeEditor.tsx
index ad3e522f2c9..e8d6b302408 100644
--- a/apps/studio/components/ui/CodeEditor/CodeEditor.tsx
+++ b/apps/studio/components/ui/CodeEditor/CodeEditor.tsx
@@ -1,6 +1,6 @@
import Editor, { EditorProps, Monaco, OnChange, OnMount, useMonaco } from '@monaco-editor/react'
import { merge, noop } from 'lodash'
-import { Loader2 } from 'lucide-react'
+import { Loader2Icon } from 'lucide-react'
import type { editor } from 'monaco-editor'
import { RefObject, useEffect, useRef, useState } from 'react'
import { cn } from 'ui'
@@ -266,7 +266,7 @@ export const CodeEditor = ({
value={value ?? undefined}
language={language}
defaultValue={defaultValue ?? undefined}
- loading={loading || <Loader2 className="animate-spin" strokeWidth={2} size={20} />}
+ loading={loading || <Loader2Icon className="animate-spin" strokeWidth={2} size={20} />}
options={optionsMerged}
onMount={handleMount}
onChange={onChangeContent}
diff --git a/apps/studio/components/ui/CopyButton.tsx b/apps/studio/components/ui/CopyButton.tsx
index 5049023954a..467af7acf72 100644
--- a/apps/studio/components/ui/CopyButton.tsx
+++ b/apps/studio/components/ui/CopyButton.tsx
@@ -1,4 +1,4 @@
-import { Check, Copy } from 'lucide-react'
+import { CheckIcon, CopyIcon } from 'lucide-react'
import { ComponentProps, forwardRef, useEffect, useState } from 'react'
import { Button, cn, copyToClipboard } from 'ui'
@@ -60,12 +60,12 @@ const CopyButton = forwardRef<HTMLButtonElement, CopyButtonProps>(
className={cn({ 'px-1.5': iconOnly }, className)}
icon={
showCopied ? (
- <Check
+ <CheckIcon
strokeWidth={2}
className={cn(variant === 'primary' ? 'text-inherit' : 'text-primary')}
/>
) : (
- (icon ?? <Copy />)
+ (icon ?? <CopyIcon />)
)
}
>
diff --git a/apps/studio/components/ui/DataGridResults/ResultCell.tsx b/apps/studio/components/ui/DataGridResults/ResultCell.tsx
index 03ced03814d..843af74a4f5 100644
--- a/apps/studio/components/ui/DataGridResults/ResultCell.tsx
+++ b/apps/studio/components/ui/DataGridResults/ResultCell.tsx
@@ -1,4 +1,4 @@
-import { Expand } from 'lucide-react'
+import { ExpandIcon } from 'lucide-react'
import { Button, FloatingPlate, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
import { formatCellValue, isLargeValue } from './DataGridResults.utils'
@@ -30,7 +30,7 @@ export const ResultCell = ({ column, value, onContextMenu, onExpand }: ResultCel
<Button
size="tiny"
className="px-1"
- icon={<Expand size={10} />}
+ icon={<ExpandIcon size={10} />}
aria-label="View full cell content"
onClick={(e) => {
e.stopPropagation()
diff --git a/apps/studio/components/ui/DataGridResults/index.tsx b/apps/studio/components/ui/DataGridResults/index.tsx
index fb7dccda9a8..8f8805091f4 100644
--- a/apps/studio/components/ui/DataGridResults/index.tsx
+++ b/apps/studio/components/ui/DataGridResults/index.tsx
@@ -1,4 +1,4 @@
-import { Copy, Expand } from 'lucide-react'
+import { CopyIcon, ExpandIcon } from 'lucide-react'
import { useCallback, useMemo, useRef, useState } from 'react'
import DataGrid, { CalculatedColumn, RenderCellProps } from 'react-data-grid'
import {
@@ -102,7 +102,7 @@ export const DataGridResults = ({ rows }: { rows: readonly ResultRow[] }) => {
}}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Copy size={12} />
+ <CopyIcon size={12} />
Copy cell content
</ContextMenuItem>
<ContextMenuItem
@@ -113,7 +113,7 @@ export const DataGridResults = ({ rows }: { rows: readonly ResultRow[] }) => {
}}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Expand size={12} />
+ <ExpandIcon size={12} />
View cell content
</ContextMenuItem>
</ContextMenuContent>
diff --git a/apps/studio/components/ui/DataTable/CollapsibleDetailSection.tsx b/apps/studio/components/ui/DataTable/CollapsibleDetailSection.tsx
index d65caa29aba..a43552de4fa 100644
--- a/apps/studio/components/ui/DataTable/CollapsibleDetailSection.tsx
+++ b/apps/studio/components/ui/DataTable/CollapsibleDetailSection.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import type { ReactNode } from 'react'
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from 'ui'
@@ -22,7 +22,7 @@ export const CollapsibleDetailSection = ({
<Collapsible defaultOpen={defaultOpen} className={className}>
<CollapsibleTrigger className="w-full flex items-center justify-between pr-4 [&[data-state=open]>svg]:-rotate-180! transition hover:bg-surface-100">
<DetailSectionHeader title={title} icon={icon} />
- <ChevronDown className="transition-transform duration-200" strokeWidth={1.5} size={14} />
+ <ChevronDownIcon className="transition-transform duration-200" strokeWidth={1.5} size={14} />
</CollapsibleTrigger>
<CollapsibleContent>{children}</CollapsibleContent>
</Collapsible>
diff --git a/apps/studio/components/ui/DataTable/DataTableColumn/DataTableColumnStatusCode.tsx b/apps/studio/components/ui/DataTable/DataTableColumn/DataTableColumnStatusCode.tsx
index 82bb7ffb229..fc308685bf2 100644
--- a/apps/studio/components/ui/DataTable/DataTableColumn/DataTableColumnStatusCode.tsx
+++ b/apps/studio/components/ui/DataTable/DataTableColumn/DataTableColumnStatusCode.tsx
@@ -1,4 +1,4 @@
-import { Minus } from 'lucide-react'
+import { MinusIcon } from 'lucide-react'
import { cn } from 'ui'
export const DataTableColumnStatusCode = ({
@@ -33,7 +33,7 @@ export const DataTableColumnStatusCode = ({
}
if (!value) {
- return <Minus className="h-4 w-4 text-muted-foreground/50" />
+ return <MinusIcon className="h-4 w-4 text-muted-foreground/50" />
}
return (
diff --git a/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsx b/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsx
index 8d7260e748e..09b2ac27485 100644
--- a/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsx
+++ b/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckbox.tsx
@@ -1,4 +1,4 @@
-import { Minus, Plus, Search } from 'lucide-react'
+import { MinusIcon, PlusIcon, SearchIcon } from 'lucide-react'
import { useQueryStates } from 'nuqs'
import { useState } from 'react'
import { Checkbox, cn, Label, Skeleton } from 'ui'
@@ -69,7 +69,7 @@ export function DataTableFilterCheckbox<TData>({
{options && options.length > 4 ? (
<InputWithAddons
placeholder="Search"
- leading={<Search size={14} className="text-foreground-lighter" />}
+ leading={<SearchIcon size={14} className="text-foreground-lighter" />}
containerClassName="h-8 rounded-sm"
value={inputValue}
onChange={(e) => setInputValue(e.target.value)}
@@ -136,7 +136,7 @@ export function DataTableFilterCheckbox<TData>({
'absolute top-2 right-10'
)}
>
- {isExpanded ? <Minus size={12} /> : <Plus size={12} />}
+ {isExpanded ? <MinusIcon size={12} /> : <PlusIcon size={12} />}
</button>
)}
<span className="shrink-0 flex items-center justify-center font-mono text-xs pr-2 group-hover:opacity-0">
diff --git a/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsx b/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsx
index 8170a8a306c..26c4a44ad0f 100644
--- a/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsx
+++ b/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterCheckboxAsync.tsx
@@ -1,4 +1,4 @@
-import { Loader2, Search } from 'lucide-react'
+import { Loader2Icon, SearchIcon } from 'lucide-react'
import { Checkbox, cn, Label } from 'ui'
import type { DataTableCheckboxFilterField } from '../DataTable.types'
@@ -31,10 +31,10 @@ export function DataTableFilterCheckboxAsync<TData>({
<div className="grid gap-2">
<InputWithAddons
placeholder="Search"
- leading={<Search size={14} className="text-foreground-lighter" />}
+ leading={<SearchIcon size={14} className="text-foreground-lighter" />}
containerClassName="h-8 rounded-sm"
value={inputValue}
- trailing={isFetching ? <Loader2 size={12} className="animate-spin" /> : undefined}
+ trailing={isFetching ? <Loader2Icon size={12} className="animate-spin" /> : undefined}
onChange={(e) => setInputValue(e.target.value)}
onKeyDown={onSearchInputEscape(inputValue, setInputValue)}
/>
@@ -46,7 +46,7 @@ export function DataTableFilterCheckboxAsync<TData>({
<div className="max-h-[215px] overflow-y-auto rounded-sm border border-border empty:border-none">
{filterOptions.length === 0 && isLoading ? (
<div className="flex items-center justify-center px-2 py-3 text-center">
- <Loader2 size={14} className="animate-spin" />
+ <Loader2Icon size={14} className="animate-spin" />
</div>
) : filterOptions.length === 0 && !isError ? (
<div className="flex items-center justify-center px-2 py-3 text-center">
diff --git a/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterInput.tsx b/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterInput.tsx
index 6a6908aff75..9f6b84b127b 100644
--- a/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterInput.tsx
+++ b/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterInput.tsx
@@ -1,4 +1,4 @@
-import { Search } from 'lucide-react'
+import { SearchIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { Label } from 'ui'
@@ -40,7 +40,7 @@ export function DataTableFilterInput<TData>({ value: _value }: DataTableInputFil
</Label>
<InputWithAddons
placeholder="Search"
- leading={<Search className="h-4 w-4" />}
+ leading={<SearchIcon className="h-4 w-4" />}
containerClassName="h-9 rounded-sm"
name={value}
id={value}
diff --git a/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterResetButton.tsx b/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterResetButton.tsx
index a08ef6c9426..da1cc0810df 100644
--- a/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterResetButton.tsx
+++ b/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterResetButton.tsx
@@ -1,4 +1,4 @@
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { Button } from 'ui'
import type { DataTableFilterField } from '../DataTable.types'
@@ -16,7 +16,7 @@ export function DataTableFilterResetButton<TData>({ value: _value }: DataTableFi
return (
<Button
variant="outline"
- icon={<X />}
+ icon={<XIcon />}
className="h-5 rounded-full px-1.5 py-1 font-mono text-[10px] [&>span]:translate-y-[-0.6px] space-x-1"
onClick={(e) => {
e.stopPropagation()
diff --git a/apps/studio/components/ui/DataTable/DataTableInfinite.tsx b/apps/studio/components/ui/DataTable/DataTableInfinite.tsx
index c2b77c2094c..ed09e12e94f 100644
--- a/apps/studio/components/ui/DataTable/DataTableInfinite.tsx
+++ b/apps/studio/components/ui/DataTable/DataTableInfinite.tsx
@@ -1,7 +1,7 @@
import { type FetchNextPageOptions } from '@tanstack/react-query'
import type { ColumnDef, Row, Table as TTable, VisibilityState } from '@tanstack/react-table'
import { flexRender } from '@tanstack/react-table'
-import { LoaderCircle } from 'lucide-react'
+import { LoaderCircleIcon } from 'lucide-react'
import { Fragment, KeyboardEvent, MouseEvent, ReactNode, UIEvent, useCallback, useRef } from 'react'
import { Button, cn, Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from 'ui'
import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
@@ -220,7 +220,9 @@ export function DataTableInfinite<TData, TValue, TMeta>({
onClick={() => fetchNextPage()}
size="tiny"
icon={
- isFetching ? <LoaderCircle className="mr-2 h-4 w-4 animate-spin" /> : null
+ isFetching ? (
+ <LoaderCircleIcon className="mr-2 h-4 w-4 animate-spin" />
+ ) : null
}
>
Load more
diff --git a/apps/studio/components/ui/DataTable/DataTableResetButton.tsx b/apps/studio/components/ui/DataTable/DataTableResetButton.tsx
index d49e929c290..7bb39112a3f 100644
--- a/apps/studio/components/ui/DataTable/DataTableResetButton.tsx
+++ b/apps/studio/components/ui/DataTable/DataTableResetButton.tsx
@@ -1,4 +1,4 @@
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { Button } from 'ui'
import { useDataTable } from './providers/DataTableProvider'
@@ -28,7 +28,7 @@ export function DataTableResetButton({ onReset }: DataTableResetButtonProps) {
label="Reset filters"
side="left"
>
- <Button size="tiny" onClick={reset} icon={<X />}>
+ <Button size="tiny" onClick={reset} icon={<XIcon />}>
Reset
</Button>
</ShortcutTooltip>
diff --git a/apps/studio/components/ui/DataTable/DataTableSheetRowAction.tsx b/apps/studio/components/ui/DataTable/DataTableSheetRowAction.tsx
index f5f71dbdf94..96859a947c3 100644
--- a/apps/studio/components/ui/DataTable/DataTableSheetRowAction.tsx
+++ b/apps/studio/components/ui/DataTable/DataTableSheetRowAction.tsx
@@ -1,14 +1,14 @@
import { Table } from '@tanstack/react-table'
import { endOfDay, endOfHour, startOfDay, startOfHour } from 'date-fns'
import {
- CalendarClock,
- CalendarDays,
- CalendarSearch,
- ChevronLeft,
- ChevronRight,
- Copy,
- Equal,
- Filter,
+ CalendarClockIcon,
+ CalendarDaysIcon,
+ CalendarSearchIcon,
+ ChevronLeftIcon,
+ ChevronRightIcon,
+ CopyIcon,
+ EqualIcon,
+ FilterIcon,
} from 'lucide-react'
import { ComponentPropsWithRef, useEffect, useState } from 'react'
import {
@@ -95,7 +95,7 @@ export function DataTableSheetRowAction<TData, TFields extends DataTableFilterFi
}}
className="flex items-center gap-2"
>
- <Filter size={12} />
+ <FilterIcon size={12} />
Add filter
</DropdownMenuItem>
)
@@ -110,7 +110,7 @@ export function DataTableSheetRowAction<TData, TFields extends DataTableFilterFi
}
className="flex items-center gap-2"
>
- <Filter size={12} />
+ <FilterIcon size={12} />
Add filter
</DropdownMenuItem>
)
@@ -122,7 +122,7 @@ export function DataTableSheetRowAction<TData, TFields extends DataTableFilterFi
className="flex items-center gap-2"
>
{/* FIXME: change icon as it is not clear */}
- <ChevronLeft size={12} />
+ <ChevronLeftIcon size={12} />
Less or equal than
</DropdownMenuItem>
<DropdownMenuItem
@@ -130,14 +130,14 @@ export function DataTableSheetRowAction<TData, TFields extends DataTableFilterFi
className="flex items-center gap-2"
>
{/* FIXME: change icon as it is not clear */}
- <ChevronRight size={12} />
+ <ChevronRightIcon size={12} />
Greater or equal than
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => column?.setFilterValue([value])}
className="flex items-center gap-2"
>
- <Equal size={12} />
+ <EqualIcon size={12} />
Equal to
</DropdownMenuItem>
</DropdownMenuGroup>
@@ -150,7 +150,7 @@ export function DataTableSheetRowAction<TData, TFields extends DataTableFilterFi
onClick={() => column?.setFilterValue([date])}
className="flex items-center gap-2"
>
- <CalendarSearch size={12} />
+ <CalendarSearchIcon size={12} />
Exact timestamp
</DropdownMenuItem>
<DropdownMenuItem
@@ -161,7 +161,7 @@ export function DataTableSheetRowAction<TData, TFields extends DataTableFilterFi
}}
className="flex items-center gap-2"
>
- <CalendarClock size={12} />
+ <CalendarClockIcon size={12} />
Same hour
</DropdownMenuItem>
<DropdownMenuItem
@@ -172,7 +172,7 @@ export function DataTableSheetRowAction<TData, TFields extends DataTableFilterFi
}}
className="flex items-center gap-2"
>
- <CalendarDays size={12} />
+ <CalendarDaysIcon size={12} />
Same day
</DropdownMenuItem>
</DropdownMenuGroup>
@@ -213,7 +213,7 @@ export function DataTableSheetRowAction<TData, TFields extends DataTableFilterFi
onSelect={() => copyToClipboard(String(value))}
className="flex items-center gap-2"
>
- <Copy size={12} />
+ <CopyIcon size={12} />
Copy {label}
</DropdownMenuItem>
</DropdownMenuContent>
diff --git a/apps/studio/components/ui/DataTable/DataTableViewOptions.tsx b/apps/studio/components/ui/DataTable/DataTableViewOptions.tsx
index ab2bb95b202..fdc9fec8ef1 100644
--- a/apps/studio/components/ui/DataTable/DataTableViewOptions.tsx
+++ b/apps/studio/components/ui/DataTable/DataTableViewOptions.tsx
@@ -1,4 +1,4 @@
-import { GripVertical, Settings2 } from 'lucide-react'
+import { GripVerticalIcon, Settings2Icon } from 'lucide-react'
import { useId, useMemo, useState } from 'react'
import {
Checkbox,
@@ -43,7 +43,7 @@ export function DataTableViewOptions() {
aria-expanded={open}
aria-controls={listboxId}
className="w-[26px]"
- icon={<Settings2 className="text-foreground" />}
+ icon={<Settings2Icon className="text-foreground" />}
tooltip={{ content: { side: 'bottom', text: 'Toggle column visibility' } }}
/>
</PopoverTrigger>
@@ -86,7 +86,7 @@ export function DataTableViewOptions() {
size="tiny"
className="ml-auto size-5 text-muted-foreground hover:text-foreground focus:bg-muted focus:text-foreground"
>
- <GripVertical className="size-4" aria-hidden="true" />
+ <GripVerticalIcon className="size-4" aria-hidden="true" />
</SortableDragHandle>
) : null}
</CommandItem>
diff --git a/apps/studio/components/ui/DataTable/LiveButton.tsx b/apps/studio/components/ui/DataTable/LiveButton.tsx
index a519539a942..3d4ac9562dd 100644
--- a/apps/studio/components/ui/DataTable/LiveButton.tsx
+++ b/apps/studio/components/ui/DataTable/LiveButton.tsx
@@ -1,5 +1,5 @@
import type { FetchPreviousPageOptions } from '@tanstack/react-query'
-import { CirclePause, CirclePlay } from 'lucide-react'
+import { CirclePauseIcon, CirclePlayIcon } from 'lucide-react'
import { useQueryStates } from 'nuqs'
import { useEffect } from 'react'
import { Button } from 'ui'
@@ -69,7 +69,9 @@ export function LiveButton({ fetchPreviousPage, searchParamsParser }: LiveButton
onClick={handleClick}
variant={live ? 'primary' : 'default'}
size="tiny"
- icon={live ? <CirclePause className="h-4 w-4" /> : <CirclePlay className="h-4 w-4" />}
+ icon={
+ live ? <CirclePauseIcon className="h-4 w-4" /> : <CirclePlayIcon className="h-4 w-4" />
+ }
>
Live
</Button>
diff --git a/apps/studio/components/ui/DataTable/RefreshButton.tsx b/apps/studio/components/ui/DataTable/RefreshButton.tsx
index 4f9e09b8087..78b3172fcc1 100644
--- a/apps/studio/components/ui/DataTable/RefreshButton.tsx
+++ b/apps/studio/components/ui/DataTable/RefreshButton.tsx
@@ -1,4 +1,4 @@
-import { LoaderCircle, RefreshCcw } from 'lucide-react'
+import { LoaderCircleIcon, RefreshCcwIcon } from 'lucide-react'
import { Button } from 'ui'
import { ButtonTooltip } from '../ButtonTooltip'
@@ -18,9 +18,9 @@ interface RefreshButtonProps {
export const RefreshButton = ({ isLoading, onRefresh, shortcutId }: RefreshButtonProps) => {
const icon = isLoading ? (
- <LoaderCircle className="text-foreground animate-spin" />
+ <LoaderCircleIcon className="text-foreground animate-spin" />
) : (
- <RefreshCcw className="text-foreground" />
+ <RefreshCcwIcon className="text-foreground" />
)
if (shortcutId) {
diff --git a/apps/studio/components/ui/DatabaseSelector.tsx b/apps/studio/components/ui/DatabaseSelector.tsx
index d34c61e8bf9..64e75c554bb 100644
--- a/apps/studio/components/ui/DatabaseSelector.tsx
+++ b/apps/studio/components/ui/DatabaseSelector.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { noop } from 'lodash'
-import { Check, ChevronDown, Loader2, Plus } from 'lucide-react'
+import { CheckIcon, ChevronDownIcon, Loader2Icon, PlusIcon } from 'lucide-react'
import { parseAsBoolean, useQueryState } from 'nuqs'
import { useEffect, useState } from 'react'
import {
@@ -95,8 +95,8 @@ export const DatabaseSelector = ({
</span>
)}
<Button
- icon={isLoading && <Loader2 className="animate-spin" />}
- iconRight={<ChevronDown strokeWidth={1.5} size={12} />}
+ icon={isLoading && <Loader2Icon className="animate-spin" />}
+ iconRight={<ChevronDownIcon strokeWidth={1.5} size={12} />}
{...buttonProps}
className={cn(
'justify-start',
@@ -149,7 +149,7 @@ export const DatabaseSelector = ({
>
<div className="w-full flex items-center justify-between">
<p>{option.name}</p>
- {option.id === selectedDatabaseId && <Check size={14} />}
+ {option.id === selectedDatabaseId && <CheckIcon size={14} />}
</div>
</CommandItem>
))}
@@ -210,7 +210,7 @@ export const DatabaseSelector = ({
? 'Primary database'
: `Read replica (${region} - ${id})`}
</p>
- {database.identifier === selectedDatabaseId && <Check size={16} />}
+ {database.identifier === selectedDatabaseId && <CheckIcon size={16} />}
</div>
</CommandItem>
)
@@ -228,7 +228,7 @@ export const DatabaseSelector = ({
setShowConnect(false)
}}
>
- <Plus size={14} strokeWidth={1.5} />
+ <PlusIcon size={14} strokeWidth={1.5} />
<p>Create a new read replica</p>
</CommandItemLink>
</CommandGroup>
diff --git a/apps/studio/components/ui/DatePicker/index.tsx b/apps/studio/components/ui/DatePicker/index.tsx
index a1ddf9b5a43..ddfe6d08a64 100644
--- a/apps/studio/components/ui/DatePicker/index.tsx
+++ b/apps/studio/components/ui/DatePicker/index.tsx
@@ -1,6 +1,6 @@
import { format } from 'date-fns'
import dayjs from 'dayjs'
-import { ArrowRight, Calendar } from 'lucide-react'
+import { ArrowRightIcon, CalendarIcon } from 'lucide-react'
import { ReactNode, useCallback, useEffect, useMemo, useState } from 'react'
import {
Button,
@@ -218,7 +218,7 @@ export function DatePicker({
<Button
title={triggerButtonTitle}
variant={triggerButtonVariant}
- icon={<Calendar />}
+ icon={<CalendarIcon />}
size={triggerButtonSize}
className={triggerButtonClassName}
>
@@ -265,7 +265,7 @@ export function DatePicker({
/>
</div>
<div className="flex items-center justify-center w-12 text-foreground-lighter">
- <ArrowRight strokeWidth={1.5} size={14} />
+ <ArrowRightIcon strokeWidth={1.5} size={14} />
</div>
</>
)}
diff --git a/apps/studio/components/ui/DateRangePicker.tsx b/apps/studio/components/ui/DateRangePicker.tsx
index 8d7931ca8aa..c9622cb9d79 100644
--- a/apps/studio/components/ui/DateRangePicker.tsx
+++ b/apps/studio/components/ui/DateRangePicker.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { ReactNode, useEffect, useState } from 'react'
import {
Button,
@@ -227,7 +227,7 @@ export const DateRangePicker = ({
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button iconRight={<ChevronDown />}>
+ <Button iconRight={<ChevronDownIcon />}>
<span>{timePeriod && options.find((x) => x.key === timePeriod)?.label}</span>
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/ui/DocsButton.tsx b/apps/studio/components/ui/DocsButton.tsx
index 45b5588c20e..c1f8b753a4c 100644
--- a/apps/studio/components/ui/DocsButton.tsx
+++ b/apps/studio/components/ui/DocsButton.tsx
@@ -1,4 +1,4 @@
-import { BookOpen } from 'lucide-react'
+import { BookOpenIcon } from 'lucide-react'
import { Button } from 'ui'
interface DocsButtonProps {
@@ -16,7 +16,7 @@ export const DocsButton = ({ href, abbrev = true, className, topic, label }: Doc
asChild
variant="default"
className={className}
- icon={<BookOpen />}
+ icon={<BookOpenIcon />}
onClick={(e) => e.stopPropagation()}
>
<a
diff --git a/apps/studio/components/ui/DownloadResultsButton.tsx b/apps/studio/components/ui/DownloadResultsButton.tsx
index fb1f01bd318..cac9b01b1e7 100644
--- a/apps/studio/components/ui/DownloadResultsButton.tsx
+++ b/apps/studio/components/ui/DownloadResultsButton.tsx
@@ -1,6 +1,6 @@
import { IS_PLATFORM, useParams } from 'common'
import saveAs from 'file-saver'
-import { ChevronDown, Copy, Download, Settings } from 'lucide-react'
+import { ChevronDownIcon, CopyIcon, DownloadIcon, SettingsIcon } from 'lucide-react'
import Link from 'next/link'
import { usePathname } from 'next/navigation'
import { useMemo } from 'react'
@@ -133,13 +133,13 @@ export const DownloadResultsButton = ({
variant={variant}
aria-label="Download results"
aria-describedby={undefined}
- icon={<Download />}
+ icon={<DownloadIcon />}
disabled={results.length === 0}
className="w-7"
tooltip={{ content: { side: 'bottom', text: 'Download results' } }}
/>
) : (
- <Button variant={variant} iconRight={<ChevronDown />} disabled={results.length === 0}>
+ <Button variant={variant} iconRight={<ChevronDownIcon />} disabled={results.length === 0}>
{text}
</Button>
)}
@@ -148,13 +148,13 @@ export const DownloadResultsButton = ({
{isLogs && IS_PLATFORM && (
<DropdownMenuItem asChild className="gap-x-2">
<Link href={`/project/${ref}/settings/log-drains`}>
- <Settings size={14} />
+ <SettingsIcon size={14} />
<p>Add a Log Drain</p>
</Link>
</DropdownMenuItem>
)}
<DropdownMenuItem onClick={copyAsMarkdown} className="gap-x-2">
- <Copy size={14} />
+ <CopyIcon size={14} />
<p>Copy as Markdown</p>
{enableCopyShortcuts && (
<span className="ml-auto">
@@ -163,7 +163,7 @@ export const DownloadResultsButton = ({
)}
</DropdownMenuItem>
<DropdownMenuItem onClick={copyAsJSON} className="gap-x-2">
- <Copy size={14} />
+ <CopyIcon size={14} />
<p>Copy as JSON</p>
{enableCopyShortcuts && (
<span className="ml-auto">
@@ -172,7 +172,7 @@ export const DownloadResultsButton = ({
)}
</DropdownMenuItem>
<DropdownMenuItem onClick={copyAsCSV} className="gap-x-2">
- <Copy size={14} />
+ <CopyIcon size={14} />
<p>Copy as CSV</p>
{enableCopyShortcuts && (
<span className="ml-auto">
@@ -181,7 +181,7 @@ export const DownloadResultsButton = ({
)}
</DropdownMenuItem>
<DropdownMenuItem className="gap-x-2" onClick={() => downloadAsCSV()}>
- <Download size={14} />
+ <DownloadIcon size={14} />
<p>Download CSV</p>
{enableCopyShortcuts && (
<span className="ml-auto">
diff --git a/apps/studio/components/ui/EdgeFunctionBlock/EdgeFunctionBlock.tsx b/apps/studio/components/ui/EdgeFunctionBlock/EdgeFunctionBlock.tsx
index 4f47d694494..38af733a1fe 100644
--- a/apps/studio/components/ui/EdgeFunctionBlock/EdgeFunctionBlock.tsx
+++ b/apps/studio/components/ui/EdgeFunctionBlock/EdgeFunctionBlock.tsx
@@ -1,4 +1,4 @@
-import { Code } from 'lucide-react'
+import { CodeIcon } from 'lucide-react'
import Link from 'next/link'
import type { DragEvent, ReactNode } from 'react'
import { Button, cn } from 'ui'
@@ -81,7 +81,7 @@ export const EdgeFunctionBlock = ({
return (
<ReportBlockContainer
tooltip={tooltip}
- icon={<Code size={16} strokeWidth={1.5} className="text-foreground-muted" />}
+ icon={<CodeIcon size={16} strokeWidth={1.5} className="text-foreground-muted" />}
label={label}
loading={isDeploying}
draggable={draggable}
diff --git a/apps/studio/components/ui/EditorPanel/EditorPanel.tsx b/apps/studio/components/ui/EditorPanel/EditorPanel.tsx
index af767e2deae..00c14675b99 100644
--- a/apps/studio/components/ui/EditorPanel/EditorPanel.tsx
+++ b/apps/studio/components/ui/EditorPanel/EditorPanel.tsx
@@ -4,14 +4,14 @@ import { useQueryClient } from '@tanstack/react-query'
import { useDebounce } from '@uidotdev/usehooks'
import { useParams } from 'common'
import {
- AlertCircle,
- Book,
- CheckCircle2,
- FolderOpen,
- Loader2,
- Maximize,
+ AlertCircleIcon,
+ BookIcon,
+ CheckCircle2Icon,
+ FolderOpenIcon,
+ Loader2Icon,
+ MaximizeIcon,
PlusIcon,
- X,
+ XIcon,
} from 'lucide-react'
import type { editor as MonacoEditor } from 'monaco-editor'
import { useRouter } from 'next/router'
@@ -367,7 +367,7 @@ export const EditorPanel = () => {
role="combobox"
aria-expanded={isSnippetsOpen}
className="w-7 h-7 p-0"
- icon={<FolderOpen size={14} />}
+ icon={<FolderOpenIcon size={14} />}
tooltip={{
content: {
side: 'bottom',
@@ -419,7 +419,7 @@ export const EditorPanel = () => {
role="combobox"
className="mr-2"
aria-expanded={isTemplatesOpen}
- icon={<Book size={14} />}
+ icon={<BookIcon size={14} />}
>
Templates
</Button>
@@ -473,7 +473,7 @@ export const EditorPanel = () => {
<ButtonTooltip
variant="text"
className="w-7 h-7 p-0"
- icon={<Maximize strokeWidth={1.5} />}
+ icon={<MaximizeIcon strokeWidth={1.5} />}
aria-label={isExplorerEnabled ? 'Open in Explorer' : 'Open in SQL editor'}
tooltip={{
content: {
@@ -488,7 +488,7 @@ export const EditorPanel = () => {
variant="text"
className="w-7 h-7 p-0"
onClick={handleClosePanel}
- icon={<X strokeWidth={1.5} />}
+ icon={<XIcon strokeWidth={1.5} />}
tooltip={{
content: {
side: 'bottom',
@@ -618,9 +618,9 @@ export const EditorPanel = () => {
saveStatus === 'idle' && 'text-foreground-light'
)}
>
- {isUpserting && <Loader2 size={13} className="animate-spin" />}
- {saveStatus === 'success' && <CheckCircle2 size={13} />}
- {saveStatus === 'error' && <AlertCircle size={13} />}
+ {isUpserting && <Loader2Icon size={13} className="animate-spin" />}
+ {saveStatus === 'success' && <CheckCircle2Icon size={13} />}
+ {saveStatus === 'error' && <AlertCircleIcon size={13} />}
<span>
{isUpserting
? 'Saving...'
diff --git a/apps/studio/components/ui/EntityTypeIcon.tsx b/apps/studio/components/ui/EntityTypeIcon.tsx
index 6e4b826c17f..712926a7f46 100644
--- a/apps/studio/components/ui/EntityTypeIcon.tsx
+++ b/apps/studio/components/ui/EntityTypeIcon.tsx
@@ -1,11 +1,11 @@
import {
- Eye,
- GitBranch,
- MessageSquare,
- NotebookText,
- ScrollText,
- SquareCode,
- Table2,
+ EyeIcon,
+ GitBranchIcon,
+ MessageSquareIcon,
+ NotebookTextIcon,
+ ScrollTextIcon,
+ SquareCodeIcon,
+ Table2Icon,
} from 'lucide-react'
import { cn, SQL_ICON } from 'ui'
@@ -26,7 +26,7 @@ export const LogsSnippetIcon = ({
strokeWidth?: number
className?: string
}) => (
- <ScrollText
+ <ScrollTextIcon
size={size}
strokeWidth={strokeWidth}
className={cn('transition-colors', className)}
@@ -93,7 +93,7 @@ export const EntityTypeIcon = ({
if (type === ENTITY_TYPE.TABLE) {
return (
- <Table2
+ <Table2Icon
size={size}
strokeWidth={strokeWidth}
className={cn(
@@ -106,12 +106,12 @@ export const EntityTypeIcon = ({
}
if (type === 'schema') {
- return <GitBranch size={size} strokeWidth={strokeWidth} />
+ return <GitBranchIcon size={size} strokeWidth={strokeWidth} />
}
if (type === ENTITY_TYPE.VIEW) {
return (
- <Eye
+ <EyeIcon
size={size}
strokeWidth={strokeWidth}
className={cn(
@@ -124,15 +124,15 @@ export const EntityTypeIcon = ({
}
if (type === 'notebook') {
- return <NotebookText size={size} strokeWidth={strokeWidth} className={''} />
+ return <NotebookTextIcon size={size} strokeWidth={strokeWidth} className={''} />
}
if (type === 'query') {
- return <SquareCode size={size} strokeWidth={strokeWidth} />
+ return <SquareCodeIcon size={size} strokeWidth={strokeWidth} />
}
if (type === 'chat') {
- return <MessageSquare size={size} strokeWidth={strokeWidth} />
+ return <MessageSquareIcon size={size} strokeWidth={strokeWidth} />
}
return (
diff --git a/apps/studio/components/ui/ErrorBoundary/ClientSideExceptionHandler.tsx b/apps/studio/components/ui/ErrorBoundary/ClientSideExceptionHandler.tsx
index 62a27d1b0ed..de9a909363b 100644
--- a/apps/studio/components/ui/ErrorBoundary/ClientSideExceptionHandler.tsx
+++ b/apps/studio/components/ui/ErrorBoundary/ClientSideExceptionHandler.tsx
@@ -1,6 +1,6 @@
import { SupportCategories } from '@supabase/shared-types/out/constants'
import { safeLocalStorage, safeSessionStorage } from 'common'
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { Button, cn } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -80,7 +80,7 @@ export const ClientSideExceptionHandler = ({
</Admonition>
<div className={cn('w-full mx-auto grid gap-2', 'grid-cols-2 sm:w-1/2')}>
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<SupportLink
queryParams={{
category: SupportCategories.DASHBOARD_BUG,
diff --git a/apps/studio/components/ui/ErrorBoundary/ErrorBoundary.tsx b/apps/studio/components/ui/ErrorBoundary/ErrorBoundary.tsx
index e11449476cd..3db88aeb1f3 100644
--- a/apps/studio/components/ui/ErrorBoundary/ErrorBoundary.tsx
+++ b/apps/studio/components/ui/ErrorBoundary/ErrorBoundary.tsx
@@ -1,5 +1,5 @@
import * as Sentry from '@sentry/nextjs'
-import { AlertCircle } from 'lucide-react'
+import { AlertCircleIcon } from 'lucide-react'
import { ErrorInfo } from 'react'
import { ErrorBoundary as ReactErrorBoundary } from 'react-error-boundary'
import { Alert, AlertDescription, AlertTitle, Button } from 'ui'
@@ -24,7 +24,7 @@ const ErrorFallback = ({
return (
<div className="p-4 bg-destructive-foreground h-full flex flex-col justify-center items-center">
<Alert variant="destructive">
- <AlertCircle />
+ <AlertCircleIcon />
<AlertTitle>{message}</AlertTitle>
<AlertDescription>We've been notified and will review and fix this issue.</AlertDescription>
<div className="mt-4 flex gap-2">
diff --git a/apps/studio/components/ui/ErrorBoundary/InsertBeforeRemoveChildErrorHandler.tsx b/apps/studio/components/ui/ErrorBoundary/InsertBeforeRemoveChildErrorHandler.tsx
index b7131872bb3..8d0a4efe068 100644
--- a/apps/studio/components/ui/ErrorBoundary/InsertBeforeRemoveChildErrorHandler.tsx
+++ b/apps/studio/components/ui/ErrorBoundary/InsertBeforeRemoveChildErrorHandler.tsx
@@ -1,5 +1,5 @@
import { SupportCategories } from '@supabase/shared-types/out/constants'
-import { Blocks, ExternalLink } from 'lucide-react'
+import { BlocksIcon, ExternalLinkIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { Button } from 'ui'
@@ -29,7 +29,7 @@ export const InsertBeforeRemoveChildErrorHandler = ({
<div className="flex flex-col gap-y-4 text-left py-2 w-full">
<div className="flex items-center gap-x-3">
<p className="text-lg font-bold">Sorry! A browser extension may have caused an error.</p>
- <Blocks className="text-foreground-lighter" />
+ <BlocksIcon className="text-foreground-lighter" />
</div>
<div className="flex flex-col gap-y-2">
@@ -54,7 +54,7 @@ export const InsertBeforeRemoveChildErrorHandler = ({
</div>
<div className="flex gap-x-2 justify-center items-center">
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<a
target="_blank"
rel="noreferrer"
diff --git a/apps/studio/components/ui/ErrorCodeTooltip/ErrorCodeTooltip.tsx b/apps/studio/components/ui/ErrorCodeTooltip/ErrorCodeTooltip.tsx
index ff0cb689841..abca47d109b 100644
--- a/apps/studio/components/ui/ErrorCodeTooltip/ErrorCodeTooltip.tsx
+++ b/apps/studio/components/ui/ErrorCodeTooltip/ErrorCodeTooltip.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import { useTheme } from 'next-themes'
import Image from 'next/image'
import { useState } from 'react'
@@ -117,7 +117,7 @@ export const ErrorCodeTooltip = ({ errorCode, service, children }: ErrorCodeTool
additionalDropdownItems={[
{
label: 'Go to Docs',
- icon: <ExternalLink size={14} />,
+ icon: <ExternalLinkIcon size={14} />,
href: docsUrl,
},
]}
diff --git a/apps/studio/components/ui/FeatureBanner.tsx b/apps/studio/components/ui/FeatureBanner.tsx
index 7e37e670b99..fd44a49d921 100644
--- a/apps/studio/components/ui/FeatureBanner.tsx
+++ b/apps/studio/components/ui/FeatureBanner.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common/hooks'
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { HTMLMotionProps, motion } from 'motion/react'
import { ReactNode } from 'react'
import { Button, cn } from 'ui'
@@ -76,7 +76,7 @@ export const FeatureBanner = ({
<Button
variant="text"
size="tiny"
- icon={<X size={16} strokeWidth={1.5} />}
+ icon={<XIcon size={16} strokeWidth={1.5} />}
onClick={() => setIsDismissed(true)}
className="opacity-75 px-1"
aria-label="Dismiss notification"
diff --git a/apps/studio/components/ui/FeaturePreviewBadge.tsx b/apps/studio/components/ui/FeaturePreviewBadge.tsx
index 5e7784e0693..d246bc7308a 100644
--- a/apps/studio/components/ui/FeaturePreviewBadge.tsx
+++ b/apps/studio/components/ui/FeaturePreviewBadge.tsx
@@ -1,4 +1,4 @@
-import { FlaskConical } from 'lucide-react'
+import { FlaskConicalIcon } from 'lucide-react'
import { Badge, cn } from 'ui'
import { useFeaturePreviewModal } from '@/components/interfaces/App/FeaturePreview/FeaturePreviewContext'
@@ -26,7 +26,7 @@ export const FeaturePreviewBadge = ({ featureKey, className }: FeaturePreviewBad
className
)}
>
- <FlaskConical size={8} strokeWidth={1.5} />
+ <FlaskConicalIcon size={8} strokeWidth={1.5} />
Preview
</Badge>
</button>
diff --git a/apps/studio/components/ui/FileExplorerAndEditor/FileExplorerAndEditorRow.tsx b/apps/studio/components/ui/FileExplorerAndEditor/FileExplorerAndEditorRow.tsx
index 7c18859609c..ef939955ef1 100644
--- a/apps/studio/components/ui/FileExplorerAndEditor/FileExplorerAndEditorRow.tsx
+++ b/apps/studio/components/ui/FileExplorerAndEditor/FileExplorerAndEditorRow.tsx
@@ -1,5 +1,5 @@
import { IS_PLATFORM } from 'common'
-import { Edit, File, Trash } from 'lucide-react'
+import { EditIcon, FileIcon, TrashIcon } from 'lucide-react'
import {
cn,
ContextMenu,
@@ -65,7 +65,7 @@ export const FileExplorerAndEditorRow = ({
? 'text-code_block-2'
: ''
)}
- icon={<File size={14} className="text-foreground-light shrink-0" />}
+ icon={<FileIcon size={14} className="text-foreground-light shrink-0" />}
isEditing={isEditing}
onEditSubmit={(value) => {
if (IS_PLATFORM && originalId !== null) {
@@ -108,7 +108,7 @@ export const FileExplorerAndEditorRow = ({
}}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Edit size={14} />
+ <EditIcon size={14} />
Rename file
</ContextMenuItem>
@@ -124,7 +124,7 @@ export const FileExplorerAndEditorRow = ({
}}
onFocusCapture={(e) => e.stopPropagation()}
>
- <Trash size={14} />
+ <TrashIcon size={14} />
Delete file
</ContextMenuItem>
</>
diff --git a/apps/studio/components/ui/FileExplorerAndEditor/index.tsx b/apps/studio/components/ui/FileExplorerAndEditor/index.tsx
index baeff77050b..a857cd091e3 100644
--- a/apps/studio/components/ui/FileExplorerAndEditor/index.tsx
+++ b/apps/studio/components/ui/FileExplorerAndEditor/index.tsx
@@ -1,5 +1,5 @@
import { IS_PLATFORM } from 'common'
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import { AnimatePresence, motion } from 'motion/react'
import { useCallback, useEffect, useState } from 'react'
import { toast } from 'sonner'
@@ -398,7 +398,7 @@ export const FileExplorerAndEditor = ({
Files
</h3>
{IS_PLATFORM && (
- <Button size="tiny" icon={<Plus size={14} />} onClick={addNewFile}>
+ <Button size="tiny" icon={<PlusIcon size={14} />} onClick={addNewFile}>
Add File
</Button>
)}
diff --git a/apps/studio/components/ui/FilterPopover.tsx b/apps/studio/components/ui/FilterPopover.tsx
index 1ec5d6dbc4f..2f659a950af 100644
--- a/apps/studio/components/ui/FilterPopover.tsx
+++ b/apps/studio/components/ui/FilterPopover.tsx
@@ -1,6 +1,6 @@
import { useIntersectionObserver } from '@uidotdev/usehooks'
import { noop } from 'lodash'
-import { ChevronDown, X } from 'lucide-react'
+import { ChevronDownIcon, XIcon } from 'lucide-react'
import { useEffect, useRef, useState } from 'react'
import {
Button,
@@ -185,7 +185,7 @@ export const FilterPopover = <T extends Record<string, any>>({
variant={buttonType ?? (activeOptions.length > 0 ? 'default' : 'dashed')}
onClick={() => setOpen(false)}
className={variant === 'rounded' ? 'rounded-full' : ''}
- iconRight={<ChevronDown />}
+ iconRight={<ChevronDownIcon />}
>
<div>
<span>{name}</span>
@@ -226,7 +226,7 @@ export const FilterPopover = <T extends Record<string, any>>({
placeholder="Search for a project..."
actions={
(search ?? '').length > 0 ? (
- <X size={14} className="cursor-pointer mr-1" onClick={() => setSearch('')} />
+ <XIcon size={14} className="cursor-pointer mr-1" onClick={() => setSearch('')} />
) : null
}
/>
diff --git a/apps/studio/components/ui/FunctionSelector.tsx b/apps/studio/components/ui/FunctionSelector.tsx
index fdeedb467c7..c89f7fe7398 100644
--- a/apps/studio/components/ui/FunctionSelector.tsx
+++ b/apps/studio/components/ui/FunctionSelector.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { uniqBy } from 'lodash'
-import { Check, Plus } from 'lucide-react'
+import { CheckIcon, PlusIcon } from 'lucide-react'
import { useState } from 'react'
import {
Alert,
@@ -147,7 +147,7 @@ const FunctionSelector = ({
>
<span>{func.name}</span>
{value === func.name && (
- <Check className="text-primary" size={14} strokeWidth={2} />
+ <CheckIcon className="text-primary" size={14} strokeWidth={2} />
)}
</CommandItem>
))}
@@ -160,7 +160,7 @@ const FunctionSelector = ({
className="cursor-pointer w-full gap-2"
onSelect={() => setOpen(false)}
>
- <Plus size={14} strokeWidth={1.5} />
+ <PlusIcon size={14} strokeWidth={1.5} />
<p>New function</p>
</CommandItemLink>
</CommandGroup>
diff --git a/apps/studio/components/ui/GlobalShortcuts/ShortcutsReferenceSheet.tsx b/apps/studio/components/ui/GlobalShortcuts/ShortcutsReferenceSheet.tsx
index 3dcd50f2f9d..46fe23fcf63 100644
--- a/apps/studio/components/ui/GlobalShortcuts/ShortcutsReferenceSheet.tsx
+++ b/apps/studio/components/ui/GlobalShortcuts/ShortcutsReferenceSheet.tsx
@@ -1,5 +1,5 @@
import { useHotkeyRegistrations, type SequenceRegistrationView } from '@tanstack/react-hotkeys'
-import { CircleX } from 'lucide-react'
+import { CircleXIcon } from 'lucide-react'
import { Fragment, useMemo, useState } from 'react'
import {
Button,
@@ -205,7 +205,7 @@ function ShortcutsReferenceSheetContent() {
aria-label="Clear search"
size="tiny"
variant="text"
- icon={<CircleX size={14} />}
+ icon={<CircleXIcon size={14} />}
onClick={() => setSearch('')}
className="h-5 w-5 p-0"
/>
diff --git a/apps/studio/components/ui/HelpPanel/HelpButton.tsx b/apps/studio/components/ui/HelpPanel/HelpButton.tsx
index 4390d6228a0..118b82ddc8a 100644
--- a/apps/studio/components/ui/HelpPanel/HelpButton.tsx
+++ b/apps/studio/components/ui/HelpPanel/HelpButton.tsx
@@ -1,4 +1,4 @@
-import { HelpCircle } from 'lucide-react'
+import { HelpCircleIcon } from 'lucide-react'
import { cn } from 'ui'
import { SIDEBAR_KEYS } from '@/components/layouts/ProjectLayout/LayoutSidebar/LayoutSidebarProvider'
@@ -26,7 +26,7 @@ export const HelpButton = () => {
}}
tooltip={{ content: { text: 'Help' } }}
>
- <HelpCircle
+ <HelpCircleIcon
size={16}
strokeWidth={1.5}
className={cn(
diff --git a/apps/studio/components/ui/HelpPanel/HelpOptionsList.tsx b/apps/studio/components/ui/HelpPanel/HelpOptionsList.tsx
index cdf9d48dfaa..1e8f11c5003 100644
--- a/apps/studio/components/ui/HelpPanel/HelpOptionsList.tsx
+++ b/apps/studio/components/ui/HelpPanel/HelpOptionsList.tsx
@@ -1,4 +1,4 @@
-import { Activity, BookOpen, ChevronRight, Mail, Wrench } from 'lucide-react'
+import { ActivityIcon, BookOpenIcon, ChevronRightIcon, MailIcon, WrenchIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import type { ReactNode } from 'react'
import SVG from 'react-inlinesvg'
@@ -79,13 +79,13 @@ export const HelpOptionsList = ({
onClick: onAssistantClick,
},
docs: {
- media: <BookOpen strokeWidth={1.5} size={14} />,
+ media: <BookOpenIcon strokeWidth={1.5} size={14} />,
title: 'Docs',
description: 'Browse guides, references, and product documentation.',
href: `${DOCS_URL}/`,
},
troubleshooting: {
- media: <Wrench strokeWidth={1.5} size={14} />,
+ media: <WrenchIcon strokeWidth={1.5} size={14} />,
title: 'Troubleshooting',
description: 'Find fixes for common platform issues and errors.',
href: `${DOCS_URL}/guides/troubleshooting?products=platform`,
@@ -97,13 +97,13 @@ export const HelpOptionsList = ({
href: DISCORD_URL,
},
status: {
- media: <Activity strokeWidth={1.5} size={14} />,
+ media: <ActivityIcon strokeWidth={1.5} size={14} />,
title: 'Supabase status',
description: 'Check incidents, maintenance, and uptime updates.',
href: STATUS_URL,
},
support: {
- media: <Mail strokeWidth={1.5} size={14} />,
+ media: <MailIcon strokeWidth={1.5} size={14} />,
title: 'Contact support',
description: 'Reach support for account and platform issues.',
onClick: handleSupportClick,
@@ -121,7 +121,7 @@ export const HelpOptionsList = ({
key={id}
className="!border-b"
media={option.media}
- meta={<ChevronRight strokeWidth={1.5} size={16} />}
+ meta={<ChevronRightIcon strokeWidth={1.5} size={16} />}
href={option.href}
target="_blank"
rel="noreferrer noopener"
diff --git a/apps/studio/components/ui/HelpPanel/HelpPanel.tsx b/apps/studio/components/ui/HelpPanel/HelpPanel.tsx
index c5f0a90da1b..c3fec6de751 100644
--- a/apps/studio/components/ui/HelpPanel/HelpPanel.tsx
+++ b/apps/studio/components/ui/HelpPanel/HelpPanel.tsx
@@ -1,5 +1,5 @@
import { IS_PLATFORM } from 'common'
-import { ChevronLeft, X } from 'lucide-react'
+import { ChevronLeftIcon, XIcon } from 'lucide-react'
import Image from 'next/image'
import { useRouter } from 'next/router'
import { useEffect, useState } from 'react'
@@ -58,7 +58,7 @@ export const HelpPanel = ({
variant="text"
className="h-7 w-7"
onClick={() => setView('home')}
- icon={<ChevronLeft strokeWidth={1.5} />}
+ icon={<ChevronLeftIcon strokeWidth={1.5} />}
tooltip={{ content: { side: 'bottom', text: 'Back' } }}
/>
)}
@@ -70,7 +70,7 @@ export const HelpPanel = ({
variant="text"
className="w-7 h-7"
onClick={() => closeSidebar(SIDEBAR_KEYS.HELP_PANEL)}
- icon={<X strokeWidth={1.5} />}
+ icon={<XIcon strokeWidth={1.5} />}
tooltip={{ content: { side: 'bottom', text: 'Close' } }}
/>
</div>
diff --git a/apps/studio/components/ui/HighAvailability/HighAvailabilityDisabledEmptyState.tsx b/apps/studio/components/ui/HighAvailability/HighAvailabilityDisabledEmptyState.tsx
index f1cc7df91b9..c9fe421344e 100644
--- a/apps/studio/components/ui/HighAvailability/HighAvailabilityDisabledEmptyState.tsx
+++ b/apps/studio/components/ui/HighAvailability/HighAvailabilityDisabledEmptyState.tsx
@@ -1,5 +1,5 @@
import type { LucideIcon } from 'lucide-react'
-import { Server } from 'lucide-react'
+import { ServerIcon } from 'lucide-react'
import type { ReactNode } from 'react'
import { cn } from 'ui'
import { EmptyStatePresentational } from 'ui-patterns/EmptyStatePresentational'
@@ -18,7 +18,7 @@ interface HighAvailabilityDisabledEmptyStateProps {
export function HighAvailabilityDisabledEmptyState({
title = DEFAULT_TITLE,
description = DEFAULT_DESCRIPTION,
- icon = Server,
+ icon = ServerIcon,
className,
}: HighAvailabilityDisabledEmptyStateProps) {
return (
diff --git a/apps/studio/components/ui/InformationBox.tsx b/apps/studio/components/ui/InformationBox.tsx
index 769c4371b60..7ab524c7365 100644
--- a/apps/studio/components/ui/InformationBox.tsx
+++ b/apps/studio/components/ui/InformationBox.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink, Maximize2, Minimize2 } from 'lucide-react'
+import { ExternalLinkIcon, Maximize2Icon, Minimize2Icon } from 'lucide-react'
import Link from 'next/link'
import { forwardRef, ReactNode, useState } from 'react'
import { Button } from 'ui'
@@ -57,9 +57,9 @@ const InformationBox = forwardRef<HTMLDivElement, InformationBoxProps>(
onClick={() => setIsExpanded(!isExpanded)}
>
{isExpanded ? (
- <Minimize2 size={14} strokeWidth={1.5} />
+ <Minimize2Icon size={14} strokeWidth={1.5} />
) : (
- <Maximize2 size={14} strokeWidth={1.5} />
+ <Maximize2Icon size={14} strokeWidth={1.5} />
)}
</div>
) : null}
@@ -75,7 +75,7 @@ const InformationBox = forwardRef<HTMLDivElement, InformationBoxProps>(
{url && (
<div>
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<Link href={url} target="_blank" rel="noreferrer">
{urlLabel}
</Link>
diff --git a/apps/studio/components/ui/Logs/ChartIntervalDropdown.tsx b/apps/studio/components/ui/Logs/ChartIntervalDropdown.tsx
index c3acd2612ce..0eabd8741ab 100644
--- a/apps/studio/components/ui/Logs/ChartIntervalDropdown.tsx
+++ b/apps/studio/components/ui/Logs/ChartIntervalDropdown.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import {
Button,
DropdownMenu,
@@ -48,7 +48,7 @@ export const ChartIntervalDropdown = ({
return (
<DropdownMenu open={open} onOpenChange={onOpenChange}>
<DropdownMenuTrigger asChild>
- <Button iconRight={<ChevronDown size={14} />}>
+ <Button iconRight={<ChevronDownIcon size={14} />}>
<span>{selectedInterval.label}</span>
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/ui/Logs/LogsExplorerHeader.tsx b/apps/studio/components/ui/Logs/LogsExplorerHeader.tsx
index 54da51c5bf8..2e213174515 100644
--- a/apps/studio/components/ui/Logs/LogsExplorerHeader.tsx
+++ b/apps/studio/components/ui/Logs/LogsExplorerHeader.tsx
@@ -1,5 +1,13 @@
import { useFlag, useParams } from 'common'
-import { BookOpen, Check, ChevronsUpDown, Copy, ExternalLink, List, X } from 'lucide-react'
+import {
+ BookOpenIcon,
+ CheckIcon,
+ ChevronsUpDownIcon,
+ CopyIcon,
+ ExternalLinkIcon,
+ ListIcon,
+ XIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { useState } from 'react'
import { logConstants } from 'shared-data'
@@ -55,7 +63,7 @@ const LogsExplorerHeader = ({ subtitle }: LogsExplorerHeaderProps) => {
<div className="flex flex-col md:flex-row md:items-center gap-3">
<div className="flex flex-row items-center gap-3">
<div className="flex h-6 w-6 items-center justify-center rounded-sm border border-brand-600 bg-brand-300 text-primary">
- <List size={14} strokeWidth={3} />
+ <ListIcon size={14} strokeWidth={3} />
</div>
<h1>Logs Explorer</h1>
@@ -74,7 +82,7 @@ const LogsExplorerHeader = ({ subtitle }: LogsExplorerHeaderProps) => {
variant="text"
className="px-1"
onClick={() => setShowReference(false)}
- icon={<X size={18} strokeWidth={1.5} />}
+ icon={<XIcon size={18} strokeWidth={1.5} />}
/>
</div>
}
@@ -83,7 +91,10 @@ const LogsExplorerHeader = ({ subtitle }: LogsExplorerHeaderProps) => {
onCancel={() => setShowReference(false)}
hideFooter
triggerElement={
- <Button onClick={() => setShowReference(true)} icon={<BookOpen strokeWidth={1.5} />}>
+ <Button
+ onClick={() => setShowReference(true)}
+ icon={<BookOpenIcon strokeWidth={1.5} />}
+ >
<span>Field Reference</span>
</Button>
}
@@ -109,7 +120,7 @@ const LogsExplorerHeader = ({ subtitle }: LogsExplorerHeaderProps) => {
className="text-primary"
>
unnesting joins
- <ExternalLink
+ <ExternalLinkIcon
size={14}
className="ml-1 inline translate-y-[-2px]"
strokeWidth={1.5}
@@ -128,7 +139,7 @@ const LogsExplorerHeader = ({ subtitle }: LogsExplorerHeaderProps) => {
size={'small'}
aria-expanded={open}
className="w-full justify-between"
- iconRight={<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />}
+ iconRight={<ChevronsUpDownIcon className="ml-2 h-4 w-4 shrink-0 opacity-50" />}
>
{selectedSchema?.name ?? 'Select source...'}
</Button>
@@ -148,7 +159,7 @@ const LogsExplorerHeader = ({ subtitle }: LogsExplorerHeaderProps) => {
setOpen(false)
}}
>
- <Check
+ <CheckIcon
className={cn(
'mr-2 h-4 w-4',
selectedSchema?.reference === schema.reference
@@ -218,7 +229,7 @@ const Field = ({
{isCopied ? (
<Tooltip>
<TooltipTrigger>
- <Check size={14} strokeWidth={3} className="text-primary" />
+ <CheckIcon size={14} strokeWidth={3} className="text-primary" />
</TooltipTrigger>
<TooltipContent side="bottom" className="font-sans">
Copied
@@ -227,7 +238,7 @@ const Field = ({
) : (
<Tooltip>
<TooltipTrigger>
- <Copy size={14} />
+ <CopyIcon size={14} />
</TooltipTrigger>
<TooltipContent side="bottom" className="font-sans">
Copy value
diff --git a/apps/studio/components/ui/OrganizationProjectSelector.tsx b/apps/studio/components/ui/OrganizationProjectSelector.tsx
index d834de38e34..877780d5684 100644
--- a/apps/studio/components/ui/OrganizationProjectSelector.tsx
+++ b/apps/studio/components/ui/OrganizationProjectSelector.tsx
@@ -1,6 +1,6 @@
import { keepPreviousData } from '@tanstack/react-query'
import { useDebounce, useIntersectionObserver } from '@uidotdev/usehooks'
-import { ChevronsUpDown, HelpCircle } from 'lucide-react'
+import { ChevronsUpDownIcon, HelpCircleIcon } from 'lucide-react'
import { ReactNode, useEffect, useId, useMemo, useRef, useState } from 'react'
import {
Button,
@@ -162,7 +162,7 @@ export const OrganizationProjectSelector = ({
<p className="text-xs text-foreground-lighter">Failed to retrieve projects</p>
<Tooltip>
<TooltipTrigger>
- <HelpCircle size={14} />
+ <HelpCircleIcon size={14} />
</TooltipTrigger>
<TooltipContent side="bottom">Error: {projectsError?.message}</TooltipContent>
</Tooltip>
@@ -281,7 +281,7 @@ export const OrganizationProjectSelector = ({
aria-expanded={open}
aria-controls={listboxId}
className="justify-between"
- iconRight={<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />}
+ iconRight={<ChevronsUpDownIcon className="ml-2 h-4 w-4 shrink-0 opacity-50" />}
>
{isLoadingProjects || isFetching ? (
<ShimmeringLoader className="w-44 py-2" />
diff --git a/apps/studio/components/ui/OrganizationProjectSelector/ProjectCommandItem.tsx b/apps/studio/components/ui/OrganizationProjectSelector/ProjectCommandItem.tsx
index a7c666b5be0..9856545e05d 100644
--- a/apps/studio/components/ui/OrganizationProjectSelector/ProjectCommandItem.tsx
+++ b/apps/studio/components/ui/OrganizationProjectSelector/ProjectCommandItem.tsx
@@ -1,4 +1,4 @@
-import { Check } from 'lucide-react'
+import { CheckIcon } from 'lucide-react'
import { ReactNode } from 'react'
import { cn, CommandItem } from 'ui'
@@ -45,9 +45,9 @@ export function ProjectCommandItem({
project.ref !== selectedRef && checkPosition === 'left' && 'ml-6'
)}
>
- {checkPosition === 'left' && project.ref === selectedRef && <Check size={16} />}
+ {checkPosition === 'left' && project.ref === selectedRef && <CheckIcon size={16} />}
{project.name}
- {checkPosition === 'right' && project.ref === selectedRef && <Check size={16} />}
+ {checkPosition === 'right' && project.ref === selectedRef && <CheckIcon size={16} />}
</div>
)}
</>
diff --git a/apps/studio/components/ui/Panel.tsx b/apps/studio/components/ui/Panel.tsx
index 0e9a92a8bf7..68a99b1830b 100644
--- a/apps/studio/components/ui/Panel.tsx
+++ b/apps/studio/components/ui/Panel.tsx
@@ -1,4 +1,4 @@
-import { Megaphone } from 'lucide-react'
+import { MegaphoneIcon } from 'lucide-react'
import { forwardRef, type PropsWithChildren, type ReactNode } from 'react'
import { Badge, Button, cn, Loading } from 'ui'
@@ -117,7 +117,7 @@ const PanelNotice = forwardRef<
variant={'default'}
className="rounded-r-none pr-2 shrink-0 gap-1.5 border-dashed bg-surface-400/0 text-foreground-lighter"
>
- <Megaphone size={16} strokeWidth={1.2} />
+ <MegaphoneIcon size={16} strokeWidth={1.2} />
<span className="text-foreground-lighter">{badgeLabel ?? 'Upcoming change'}</span>
</Badge>
<Badge
diff --git a/apps/studio/components/ui/PartnerManagedResource.tsx b/apps/studio/components/ui/PartnerManagedResource.tsx
index 0b8f8bf6464..0bd5db2605f 100644
--- a/apps/studio/components/ui/PartnerManagedResource.tsx
+++ b/apps/studio/components/ui/PartnerManagedResource.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import type { ReactNode } from 'react'
import { Alert, AlertTitle, Button } from 'ui'
@@ -86,7 +86,7 @@ function PartnerManagedResource({
{details && <div className="text-sm text-foreground-light text-center">{details}</div>}
{showCta && (
- <Button asChild iconRight={<ExternalLink />}>
+ <Button asChild iconRight={<ExternalLinkIcon />}>
<a href={ctaUrl} target="_blank" rel="noopener noreferrer">
{cta?.message || `View ${resource} on ${PARTNER_TO_NAME[managedBy]}`}
</a>
diff --git a/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx b/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx
index fd81395b8bb..4f53b6b37e3 100644
--- a/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx
+++ b/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { JwtSecretUpdateStatus } from '@supabase/shared-types/out/events'
import { IS_PLATFORM, useFlag, useParams } from 'common'
-import { AlertCircle, Loader2 } from 'lucide-react'
+import { AlertCircleIcon, Loader2Icon } from 'lucide-react'
import Link from 'next/link'
import { useMemo, useRef } from 'react'
import { toast } from 'sonner'
@@ -100,12 +100,12 @@ export const DisplayApiSettings = ({
>
{isLoading ? (
<div className="flex items-center justify-center py-8 space-x-2">
- <Loader2 className="animate-spin" size={16} strokeWidth={1.5} />
+ <Loader2Icon className="animate-spin" size={16} strokeWidth={1.5} />
<p className="text-sm text-foreground-light">Retrieving API keys</p>
</div>
) : !canReadAPIKeys ? (
<div className="flex items-center py-8 px-8 space-x-2">
- <AlertCircle size={16} strokeWidth={1.5} />
+ <AlertCircleIcon size={16} strokeWidth={1.5} />
<p className="text-sm text-foreground-light">
You don't have permission to view API keys. These keys restricted to users with higher
access levels.
@@ -113,14 +113,14 @@ export const DisplayApiSettings = ({
</div>
) : isProjectSettingsError || isJwtSecretUpdateStatusError ? (
<div className="flex items-center justify-center py-8 space-x-2">
- <AlertCircle size={16} strokeWidth={1.5} />
+ <AlertCircleIcon size={16} strokeWidth={1.5} />
<p className="text-sm text-foreground-light">
{isProjectSettingsError ? 'Failed to retrieve API keys' : 'Failed to update JWT secret'}
</p>
</div>
) : isApiKeysEmpty || isProjectSettingsLoading || isJwtSecretUpdateStatusLoading ? (
<div className="flex items-center justify-center py-8 space-x-2">
- <Loader2 className="animate-spin" size={16} strokeWidth={1.5} />
+ <Loader2Icon className="animate-spin" size={16} strokeWidth={1.5} />
<p className="text-sm text-foreground-light">
{isProjectSettingsLoading || isApiKeysEmpty
? 'Retrieving API keys'
diff --git a/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx b/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx
index 03560061924..0ff4788c4b1 100644
--- a/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx
+++ b/apps/studio/components/ui/ProjectUpgradeFailedBanner.tsx
@@ -2,7 +2,7 @@ import { SupportCategories } from '@supabase/shared-types/out/constants'
import { DatabaseUpgradeStatus } from '@supabase/shared-types/out/events'
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
import dayjs from 'dayjs'
-import { X } from 'lucide-react'
+import { XIcon } from 'lucide-react'
import { Button } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -70,7 +70,7 @@ export const ProjectUpgradeFailedBanner = () => {
</SupportLink>
</Button>
<ButtonTooltip
- icon={<X />}
+ icon={<XIcon />}
variant="text"
className="w-6"
tooltip={{ content: { side: 'bottom', text: 'Dismiss' } }}
diff --git a/apps/studio/components/ui/QueryBlock/BlockViewConfiguration.tsx b/apps/studio/components/ui/QueryBlock/BlockViewConfiguration.tsx
index c066835d470..ad76956e4cc 100644
--- a/apps/studio/components/ui/QueryBlock/BlockViewConfiguration.tsx
+++ b/apps/studio/components/ui/QueryBlock/BlockViewConfiguration.tsx
@@ -1,4 +1,4 @@
-import { BarChart2, Settings2, Table } from 'lucide-react'
+import { BarChart2Icon, Settings2Icon, TableIcon } from 'lucide-react'
import {
Checkbox,
Label,
@@ -43,7 +43,7 @@ export const BlockViewConfiguration = ({
id="help-popover-button"
variant="text"
className="px-1"
- icon={<Settings2 size={14} strokeWidth={1.5} />}
+ icon={<Settings2Icon size={14} strokeWidth={1.5} />}
tooltip={{ content: { side: 'bottom', text: 'View data' } }}
/>
</PopoverTrigger>
@@ -59,11 +59,11 @@ export const BlockViewConfiguration = ({
}}
>
<ToggleGroupItem className="w-full" value="table" aria-label="Show as table">
- <Table className="h-4 w-4" />
+ <TableIcon className="h-4 w-4" />
<p className="text-xs ml-2">As table</p>
</ToggleGroupItem>
<ToggleGroupItem className="w-full" value="chart" aria-label="Show as chart">
- <BarChart2 className="h-4 w-4" />
+ <BarChart2Icon className="h-4 w-4" />
<p className="text-xs ml-2">As chart</p>
</ToggleGroupItem>
</ToggleGroup>
diff --git a/apps/studio/components/ui/QueryBlock/EditQueryButton.tsx b/apps/studio/components/ui/QueryBlock/EditQueryButton.tsx
index 2f620af18ec..ed5585d683b 100644
--- a/apps/studio/components/ui/QueryBlock/EditQueryButton.tsx
+++ b/apps/studio/components/ui/QueryBlock/EditQueryButton.tsx
@@ -1,4 +1,4 @@
-import { Edit } from 'lucide-react'
+import { EditIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { ComponentProps } from 'react'
import {
@@ -56,7 +56,7 @@ export const EditQueryButton = ({
variant={variant}
size="tiny"
className={cn('w-7 h-7', className)}
- icon={<Edit size={14} strokeWidth={1.5} />}
+ icon={<EditIcon size={14} strokeWidth={1.5} />}
tooltip={tooltip}
onClick={() => {
editorPanelState.setActiveSnippetId(id)
@@ -71,7 +71,7 @@ export const EditQueryButton = ({
variant={variant}
size="tiny"
className={cn('w-7 h-7', className)}
- icon={<Edit size={14} strokeWidth={1.5} />}
+ icon={<EditIcon size={14} strokeWidth={1.5} />}
onClick={() => {
if (isInlineEditorEnabled) {
// This component needs to be updated to work with local EditorPanel state
@@ -96,7 +96,7 @@ export const EditQueryButton = ({
size="tiny"
disabled={!sql}
className={cn('w-7 h-7', className)}
- icon={<Edit size={14} strokeWidth={1.5} />}
+ icon={<EditIcon size={14} strokeWidth={1.5} />}
tooltip={!!sql ? tooltip : { content: { side: 'bottom', text: undefined } }}
/>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/ui/QueryBlock/QueryBlock.tsx b/apps/studio/components/ui/QueryBlock/QueryBlock.tsx
index 22ad52e3fe9..dac86aeff97 100644
--- a/apps/studio/components/ui/QueryBlock/QueryBlock.tsx
+++ b/apps/studio/components/ui/QueryBlock/QueryBlock.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { Code, Play } from 'lucide-react'
+import { CodeIcon, PlayIcon } from 'lucide-react'
import { DragEvent, ReactNode, useEffect, useMemo, useRef, useState } from 'react'
import { Bar, BarChart, CartesianGrid, Cell, Tooltip, XAxis, YAxis } from 'recharts'
import { Badge, Button, ChartContainer, ChartTooltipContent, cn } from 'ui'
@@ -171,7 +171,7 @@ export const QueryBlock = ({
variant="text"
size="tiny"
className="w-7 h-7"
- icon={<Code size={14} strokeWidth={1.5} />}
+ icon={<CodeIcon size={14} strokeWidth={1.5} />}
onClick={() => setShowSql(!showSql)}
tooltip={{
content: { side: 'bottom', text: showSql ? 'Hide query' : 'Show query' },
@@ -201,7 +201,7 @@ export const QueryBlock = ({
variant="text"
size="tiny"
className="w-7 h-7"
- icon={<Play size={14} strokeWidth={1.5} />}
+ icon={<PlayIcon size={14} strokeWidth={1.5} />}
loading={isExecuting}
disabled={isExecuting || disabled || !sql}
onClick={runSelect}
diff --git a/apps/studio/components/ui/ReactFlow/EdgeVisual.tsx b/apps/studio/components/ui/ReactFlow/EdgeVisual.tsx
index 58c56a66622..ba6e54629bc 100644
--- a/apps/studio/components/ui/ReactFlow/EdgeVisual.tsx
+++ b/apps/studio/components/ui/ReactFlow/EdgeVisual.tsx
@@ -1,4 +1,4 @@
-import { ArrowRight, Loader2, Square, X, type LucideIcon } from 'lucide-react'
+import { ArrowRightIcon, Loader2Icon, SquareIcon, XIcon, type LucideIcon } from 'lucide-react'
import { cn } from 'ui'
export interface ReplicationState {
@@ -29,7 +29,7 @@ export const getEdgeVisual = ({
}: ReplicationState): EdgeVisual => {
if (isFailed) {
return {
- Icon: X,
+ Icon: XIcon,
color: 'hsl(var(--destructive-default))',
opacity: 1,
dashArray: '5 5',
@@ -39,7 +39,7 @@ export const getEdgeVisual = ({
}
if (isComingUp) {
return {
- Icon: Loader2,
+ Icon: Loader2Icon,
color: 'var(--foreground-light)',
opacity: 1,
dashArray: '5',
@@ -50,7 +50,7 @@ export const getEdgeVisual = ({
}
if (isReplicating) {
return {
- Icon: ArrowRight,
+ Icon: ArrowRightIcon,
color: 'var(--primary-bright)',
opacity: 1,
dashArray: '5',
@@ -59,7 +59,7 @@ export const getEdgeVisual = ({
}
}
return {
- Icon: Square,
+ Icon: SquareIcon,
color: 'var(--foreground-lighter)',
opacity: 0.5,
dashArray: '5 5',
diff --git a/apps/studio/components/ui/Resource/ResourceItem.tsx b/apps/studio/components/ui/Resource/ResourceItem.tsx
index deb566d4980..6b5f9e34c8b 100644
--- a/apps/studio/components/ui/Resource/ResourceItem.tsx
+++ b/apps/studio/components/ui/Resource/ResourceItem.tsx
@@ -1,4 +1,4 @@
-import { ChevronRight, MoreVertical } from 'lucide-react'
+import { ChevronRightIcon, MoreVerticalIcon } from 'lucide-react'
import Link from 'next/link'
import { forwardRef, HTMLAttributes, KeyboardEvent, ReactNode } from 'react'
import {
@@ -70,7 +70,7 @@ export const ResourceItem = forwardRef<HTMLDivElement, ResourceItemProps>(
<Button
variant="text"
className="px-1"
- icon={<MoreVertical size={16} />}
+ icon={<MoreVerticalIcon size={16} />}
onClick={(e) => {
e.stopPropagation()
}}
@@ -91,7 +91,7 @@ export const ResourceItem = forwardRef<HTMLDivElement, ResourceItemProps>(
</DropdownMenuContent>
</DropdownMenu>
) : (
- onClick && <ChevronRight strokeWidth={1.5} size={16} />
+ onClick && <ChevronRightIcon strokeWidth={1.5} size={16} />
)}
</>
)
diff --git a/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx b/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx
index 57e6f4ab1e3..7f1bac0835b 100644
--- a/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx
+++ b/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx
@@ -1,5 +1,12 @@
import { useParams } from 'common'
-import { AlertTriangle, BookOpen, ChartLine, ChevronDown, Sparkles, Wrench } from 'lucide-react'
+import {
+ AlertTriangleIcon,
+ BookOpenIcon,
+ ChartLineIcon,
+ ChevronDownIcon,
+ SparklesIcon,
+ WrenchIcon,
+} from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { COMPUTE_DISK } from 'shared-data'
@@ -62,7 +69,7 @@ const TroubleshootMenuItem = ({
if (item.kind === 'ai') {
return (
<DropdownMenuItem className="flex items-center gap-x-2 cursor-pointer" onClick={onAskAI}>
- <Sparkles size={14} />
+ <SparklesIcon size={14} />
{item.menuLabel}
</DropdownMenuItem>
)
@@ -71,7 +78,7 @@ const TroubleshootMenuItem = ({
return (
<DropdownMenuItem asChild onClick={() => onTroubleshootClick(item)}>
<Link href={item.href} className="flex items-center gap-x-2 cursor-pointer">
- <ChartLine size={14} />
+ <ChartLineIcon size={14} />
{item.menuLabel}
</Link>
</DropdownMenuItem>
@@ -85,7 +92,7 @@ const TroubleshootMenuItem = ({
rel="noreferrer"
className="flex items-center gap-x-2 cursor-pointer"
>
- <BookOpen size={14} />
+ <BookOpenIcon size={14} />
{item.menuLabel}
</a>
</DropdownMenuItem>
@@ -273,7 +280,7 @@ export const ResourceExhaustionWarningBanner = () => {
'border-0 border-r-0 rounded-none [&>svg]:left-6 px-6 [&>svg]:w-[26px] [&>svg]:h-[26px]'
)}
>
- <AlertTriangle />
+ <AlertTriangleIcon />
<div className="">
<AlertTitle>{title}</AlertTitle>
<AlertDescription>{description}</AlertDescription>
@@ -282,7 +289,7 @@ export const ResourceExhaustionWarningBanner = () => {
{troubleshootItems.length >= 2 && (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button icon={<Wrench size={14} />} iconRight={<ChevronDown size={14} />}>
+ <Button icon={<WrenchIcon size={14} />} iconRight={<ChevronDownIcon size={14} />}>
Troubleshoot
</Button>
</DropdownMenuTrigger>
@@ -301,7 +308,7 @@ export const ResourceExhaustionWarningBanner = () => {
{soleTroubleshootItem?.kind === 'metrics' && (
<Button
asChild
- icon={<ChartLine size={14} />}
+ icon={<ChartLineIcon size={14} />}
onClick={() => handleTroubleshootClick(soleTroubleshootItem)}
>
<Link href={soleTroubleshootItem.href}>{soleTroubleshootItem.buttonLabel}</Link>
@@ -310,7 +317,7 @@ export const ResourceExhaustionWarningBanner = () => {
{soleTroubleshootItem?.kind === 'docs' && (
<Button
asChild
- icon={<BookOpen size={14} />}
+ icon={<BookOpenIcon size={14} />}
onClick={() => handleTroubleshootClick(soleTroubleshootItem)}
>
<a href={soleTroubleshootItem.href} target="_blank" rel="noreferrer">
diff --git a/apps/studio/components/ui/SchemaSelector.tsx b/apps/studio/components/ui/SchemaSelector.tsx
index cc1fd8a5fff..1396ed08101 100644
--- a/apps/studio/components/ui/SchemaSelector.tsx
+++ b/apps/studio/components/ui/SchemaSelector.tsx
@@ -1,5 +1,5 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
-import { Check, Plus } from 'lucide-react'
+import { CheckIcon, PlusIcon } from 'lucide-react'
import { ComponentPropsWithoutRef, forwardRef, useMemo, useState } from 'react'
import {
Alert,
@@ -192,7 +192,7 @@ export const SchemaSelector = forwardRef<HTMLDivElement, SchemaSelectorProps>(
>
<span>All schemas</span>
{selectedSchemaName === '*' && (
- <Check className="text-primary" strokeWidth={2} size={16} />
+ <CheckIcon className="text-primary" strokeWidth={2} size={16} />
)}
</CommandItem>
)}
@@ -211,7 +211,7 @@ export const SchemaSelector = forwardRef<HTMLDivElement, SchemaSelectorProps>(
>
<span>{schema.name}</span>
{selectedSchemaName === schema.name && (
- <Check className="text-primary" strokeWidth={2} size={16} />
+ <CheckIcon className="text-primary" strokeWidth={2} size={16} />
)}
</CommandItem>
))}
@@ -232,7 +232,7 @@ export const SchemaSelector = forwardRef<HTMLDivElement, SchemaSelectorProps>(
setOpen(false)
}}
>
- <Plus size={12} />
+ <PlusIcon size={12} />
Create a new schema
</CommandItem>
</CommandGroup>
diff --git a/apps/studio/components/ui/SortDropdown.tsx b/apps/studio/components/ui/SortDropdown.tsx
index 0e8f2d098bc..0d4efde5e69 100644
--- a/apps/studio/components/ui/SortDropdown.tsx
+++ b/apps/studio/components/ui/SortDropdown.tsx
@@ -1,4 +1,4 @@
-import { ArrowDownNarrowWide, ArrowDownWideNarrow } from 'lucide-react'
+import { ArrowDownNarrowWideIcon, ArrowDownWideNarrowIcon } from 'lucide-react'
import {
Button,
DropdownMenu,
@@ -29,7 +29,9 @@ export const SortDropdown = ({ options, value, setValue }: SortDropdownProps) =>
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button icon={sortOrder === 'desc' ? <ArrowDownWideNarrow /> : <ArrowDownNarrowWide />}>
+ <Button
+ icon={sortOrder === 'desc' ? <ArrowDownWideNarrowIcon /> : <ArrowDownNarrowWideIcon />}
+ >
Sorted by {columnLabel ?? sortColumn}
</Button>
</DropdownMenuTrigger>
diff --git a/apps/studio/components/ui/SortableSection.tsx b/apps/studio/components/ui/SortableSection.tsx
index d1822680921..19302df9a07 100644
--- a/apps/studio/components/ui/SortableSection.tsx
+++ b/apps/studio/components/ui/SortableSection.tsx
@@ -1,6 +1,6 @@
import { useDndMonitor } from '@dnd-kit/core'
import { useSortable } from '@dnd-kit/sortable'
-import { GripVertical } from 'lucide-react'
+import { GripVerticalIcon } from 'lucide-react'
import type { CSSProperties, PropsWithChildren, ReactNode } from 'react'
import { useEffect, useRef, useState } from 'react'
import { Button, cn, DropdownMenu, DropdownMenuTrigger } from 'ui'
@@ -100,7 +100,7 @@ export const SortableSection = ({
{...attributes}
{...listeners}
tabIndex={0}
- icon={<GripVertical />}
+ icon={<GripVerticalIcon />}
/>
</DropdownMenuTrigger>
{gripDropdownContent}
diff --git a/apps/studio/components/ui/org-selector.tsx b/apps/studio/components/ui/org-selector.tsx
index 0edf5f1e5f5..3cedd05b41d 100644
--- a/apps/studio/components/ui/org-selector.tsx
+++ b/apps/studio/components/ui/org-selector.tsx
@@ -1,4 +1,4 @@
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import Link from 'next/link'
import { parseAsString, useQueryState } from 'nuqs'
import { useMemo, useState } from 'react'
@@ -152,7 +152,7 @@ export function OrganizationSelector({
{organizations.length > maxOrgsToShow && !showAll && !search && (
<div className="flex justify-center py-2">
<Button
- icon={<ChevronDown className="w-4 h-4" />}
+ icon={<ChevronDownIcon className="w-4 h-4" />}
size="tiny"
onClick={() => {
setSearch('')
diff --git a/apps/studio/eslint.config.cjs b/apps/studio/eslint.config.cjs
index 608d018cc29..df0b9aad068 100644
--- a/apps/studio/eslint.config.cjs
+++ b/apps/studio/eslint.config.cjs
@@ -68,6 +68,14 @@ module.exports = defineConfig([
message: 'Use TanStackTableHeadSort from ui-patterns/Table instead.',
},
],
+ patterns: [
+ {
+ group: ['lucide-react'],
+ importNamePattern: '^(?!.*Icon$)(?!Lucide)(?!icons$)(?!create)',
+ message:
+ 'Import Lucide icons with the Icon suffix (e.g. `CheckIcon`, not `Check` or `Check as CheckIcon`).',
+ },
+ ],
},
],
'barrel-files/avoid-re-export-all': 'error',
diff --git a/apps/studio/lib/sign-in-destinations.tsx b/apps/studio/lib/sign-in-destinations.tsx
index adc76d703a4..0bc2ea0ccfe 100644
--- a/apps/studio/lib/sign-in-destinations.tsx
+++ b/apps/studio/lib/sign-in-destinations.tsx
@@ -1,4 +1,4 @@
-import { Terminal } from 'lucide-react'
+import { TerminalIcon } from 'lucide-react'
import type { ReactNode } from 'react'
/**
@@ -21,7 +21,7 @@ export type SignInDestination = {
const CLI_DESTINATION: SignInDestination = {
id: 'cli',
displayName: 'Supabase CLI',
- icon: <Terminal className="size-6 text-foreground" strokeWidth={2} />,
+ icon: <TerminalIcon className="size-6 text-foreground" strokeWidth={2} />,
}
// Statically-branded sign-in destinations. To add a new one, declare its config above and add it
diff --git a/apps/studio/pages/account/tokens.tsx b/apps/studio/pages/account/tokens.tsx
index d3d0de033cc..9badab5d9e4 100644
--- a/apps/studio/pages/account/tokens.tsx
+++ b/apps/studio/pages/account/tokens.tsx
@@ -1,5 +1,5 @@
import { useFlag } from 'common'
-import { ExternalLink, Search } from 'lucide-react'
+import { ExternalLinkIcon, SearchIcon } from 'lucide-react'
import { useState } from 'react'
import { Button } from 'ui'
import { Input } from 'ui-patterns/DataInputs/Input'
@@ -38,7 +38,7 @@ const UserAccessTokens: NextPageWithLayout = () => {
<Input
size="tiny"
autoComplete="off"
- icon={<Search size={12} />}
+ icon={<SearchIcon size={12} />}
value={searchString}
onChange={(e: React.ChangeEvent<HTMLInputElement>) => setSearchString(e.target.value)}
name="search"
@@ -46,12 +46,12 @@ const UserAccessTokens: NextPageWithLayout = () => {
placeholder="Filter tokens"
/>
<div className="flex items-center gap-x-2">
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<a href={`${DOCS_URL}/reference/api/introduction`} target="_blank" rel="noreferrer">
API Docs
</a>
</Button>
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<a href={`${DOCS_URL}/reference/cli/start`} target="_blank" rel="noreferrer">
CLI docs
</a>
diff --git a/apps/studio/pages/cli/login.tsx b/apps/studio/pages/cli/login.tsx
index 45a5afd1ffe..1e53ef8ba58 100644
--- a/apps/studio/pages/cli/login.tsx
+++ b/apps/studio/pages/cli/login.tsx
@@ -1,5 +1,5 @@
import { useIsLoggedIn, useParams } from 'common'
-import { Terminal } from 'lucide-react'
+import { TerminalIcon } from 'lucide-react'
import Head from 'next/head'
import Link from 'next/link'
import { useRouter } from 'next/router'
@@ -27,7 +27,7 @@ const PAGE_TITLE = buildStudioPageTitle({ section: 'Authorize CLI', brand: 'Supa
const CliLogo = () => (
<LogoBox className="bg-black">
- <Terminal className="size-6 text-white" strokeWidth={2} />
+ <TerminalIcon className="size-6 text-white" strokeWidth={2} />
</LogoBox>
)
diff --git a/apps/studio/pages/maintenance.tsx b/apps/studio/pages/maintenance.tsx
index 30606ceea4a..11c644d5354 100644
--- a/apps/studio/pages/maintenance.tsx
+++ b/apps/studio/pages/maintenance.tsx
@@ -1,4 +1,4 @@
-import { RefreshCw } from 'lucide-react'
+import { RefreshCwIcon } from 'lucide-react'
import { useTheme } from 'next-themes'
import Head from 'next/head'
import { useMemo } from 'react'
@@ -45,7 +45,11 @@ const MaintenancePage: NextPageWithLayout = () => {
<p className="text-sm text-foreground-lighter">
Reload the page to check if the maintenance window has ended
</p>
- <Button onClick={() => window.location.reload()} variant="primary" icon={<RefreshCw />}>
+ <Button
+ onClick={() => window.location.reload()}
+ variant="primary"
+ icon={<RefreshCwIcon />}
+ >
Reload
</Button>
</div>
diff --git a/apps/studio/pages/org/[slug]/private-apps/index.tsx b/apps/studio/pages/org/[slug]/private-apps/index.tsx
index 0d53e4d1414..7fcb8d7ec89 100644
--- a/apps/studio/pages/org/[slug]/private-apps/index.tsx
+++ b/apps/studio/pages/org/[slug]/private-apps/index.tsx
@@ -1,4 +1,4 @@
-import { Plus } from 'lucide-react'
+import { PlusIcon } from 'lucide-react'
import { useState } from 'react'
import { Button } from 'ui'
import { PageContainer } from 'ui-patterns/PageContainer'
@@ -68,7 +68,7 @@ function PrivateAppsContent() {
>
<Button
variant="primary"
- icon={<Plus size={14} />}
+ icon={<PlusIcon size={14} />}
onClick={() => setShowCreate(true)}
>
Create app
diff --git a/apps/studio/pages/organizations.tsx b/apps/studio/pages/organizations.tsx
index 89c7fddbda0..4f9b850c348 100644
--- a/apps/studio/pages/organizations.tsx
+++ b/apps/studio/pages/organizations.tsx
@@ -1,4 +1,4 @@
-import { Plus, Search } from 'lucide-react'
+import { PlusIcon, SearchIcon } from 'lucide-react'
import Head from 'next/head'
import Link from 'next/link'
import { useState } from 'react'
@@ -57,14 +57,14 @@ const OrganizationsPage: NextPageWithLayout = () => {
<Input
size="tiny"
placeholder="Search for an organization"
- icon={<Search />}
+ icon={<SearchIcon />}
className="w-full flex-1 md:w-64"
value={search}
onChange={(event) => setSearch(event.target.value)}
/>
{organizationCreationEnabled && (
- <Button asChild icon={<Plus />} variant="primary" className="w-min">
+ <Button asChild icon={<PlusIcon />} variant="primary" className="w-min">
<Link href={`/new`}>New organization</Link>
</Button>
)}
diff --git a/apps/studio/pages/partners/stripe/projects/login.tsx b/apps/studio/pages/partners/stripe/projects/login.tsx
index 509ed6540a9..8db9414ca90 100644
--- a/apps/studio/pages/partners/stripe/projects/login.tsx
+++ b/apps/studio/pages/partners/stripe/projects/login.tsx
@@ -1,6 +1,6 @@
import { useQuery } from '@tanstack/react-query'
import { useParams } from 'common'
-import { LogOut } from 'lucide-react'
+import { LogOutIcon } from 'lucide-react'
import Head from 'next/head'
import { useRouter } from 'next/router'
import { useEffect } from 'react'
@@ -179,7 +179,7 @@ export const StripeProjectsLoginPage: NextPageWithLayout = () => {
className="h-8 w-8 px-0"
onClick={() => signOut()}
icon={
- <LogOut size={16} strokeWidth={1.5} className="text-foreground-lighter" />
+ <LogOutIcon size={16} strokeWidth={1.5} className="text-foreground-lighter" />
}
tooltip={{
content: {
diff --git a/apps/studio/pages/project/[ref]/branches/merge-requests.tsx b/apps/studio/pages/project/[ref]/branches/merge-requests.tsx
index eb4a71b14f5..d5358942409 100644
--- a/apps/studio/pages/project/[ref]/branches/merge-requests.tsx
+++ b/apps/studio/pages/project/[ref]/branches/merge-requests.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
import { partition } from 'lodash'
-import { ArrowRight, GitMerge, MoreVertical, Shield, X } from 'lucide-react'
+import { ArrowRightIcon, GitMergeIcon, MoreVerticalIcon, ShieldIcon, XIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { PropsWithChildren } from 'react'
import { toast } from 'sonner'
@@ -184,7 +184,7 @@ const MergeRequestsPage: NextPageWithLayout = () => {
<div className="rounded-sm border rounded-lg bg-background px-6 py-4">
<div className="flex items-center justify-between">
<div className="flex items-center gap-2 text-sm text-foreground-light">
- <GitMerge strokeWidth={1.5} size={16} className="text-primary" />
+ <GitMergeIcon strokeWidth={1.5} size={16} className="text-primary" />
<span className="text-foreground">{currentBranch.name}</span>
last viewed
</div>
@@ -221,7 +221,7 @@ const MergeRequestsPage: NextPageWithLayout = () => {
label={
<div className="flex items-center gap-x-4">
{branch.name}
- <ArrowRight
+ <ArrowRightIcon
size={14}
strokeWidth={1.5}
className="text-foreground-lighter"
@@ -231,7 +231,7 @@ const MergeRequestsPage: NextPageWithLayout = () => {
<p className="text-foreground-lighter">#{branch.pr_number}</p>
) : (
<>
- <Shield
+ <ShieldIcon
size={14}
strokeWidth={1.5}
className="text-warning"
@@ -259,7 +259,7 @@ const MergeRequestsPage: NextPageWithLayout = () => {
aria-label="Manage merge request"
variant="text"
className="px-1"
- icon={<MoreVertical />}
+ icon={<MoreVerticalIcon />}
onClick={(e) => e.stopPropagation()}
/>
</DropdownMenuTrigger>
@@ -278,7 +278,7 @@ const MergeRequestsPage: NextPageWithLayout = () => {
handleCloseMergeRequest(branch)
}}
>
- <X size={14} /> Close this merge request
+ <XIcon size={14} /> Close this merge request
</DropdownMenuItem>
</Tooltip>
</DropdownMenuContent>
diff --git a/apps/studio/pages/project/[ref]/compute/index.tsx b/apps/studio/pages/project/[ref]/compute/index.tsx
index 38fc9a1786d..e7811adda7e 100644
--- a/apps/studio/pages/project/[ref]/compute/index.tsx
+++ b/apps/studio/pages/project/[ref]/compute/index.tsx
@@ -1,6 +1,6 @@
import { useQuery } from '@tanstack/react-query'
import { useParams } from 'common'
-import { ExternalLink, RefreshCw } from 'lucide-react'
+import { ExternalLinkIcon, RefreshCwIcon } from 'lucide-react'
import { useState } from 'react'
import { Button } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
@@ -83,7 +83,7 @@ const ComputePage: NextPageWithLayout = () => {
title={`You don't have access to ${PRODUCT_NAME} yet`}
description="Join the waitlist to get early access."
actions={
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<a
href="https://supabase.com/compute"
target="_blank"
@@ -104,7 +104,7 @@ const ComputePage: NextPageWithLayout = () => {
subject="Failed to retrieve compute instances"
additionalActions={
<Button
- icon={<RefreshCw />}
+ icon={<RefreshCwIcon />}
loading={isManuallyRefreshing}
onClick={handleManualRefresh}
>
diff --git a/apps/studio/pages/project/[ref]/database/backups/pitr.tsx b/apps/studio/pages/project/[ref]/database/backups/pitr.tsx
index 220456873ad..748f13ce6fa 100644
--- a/apps/studio/pages/project/[ref]/database/backups/pitr.tsx
+++ b/apps/studio/pages/project/[ref]/database/backups/pitr.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { AlertCircle, DatabaseBackup } from 'lucide-react'
+import { AlertCircleIcon, DatabaseBackupIcon } from 'lucide-react'
import { Alert, AlertDescription, AlertTitle } from 'ui'
import { Admonition } from 'ui-patterns/Admonition'
import { PageContainer } from 'ui-patterns/PageContainer'
@@ -116,7 +116,7 @@ const PITR = () => {
if (isHighAvailability) {
return (
<HighAvailabilityDisabledEmptyState
- icon={DatabaseBackup}
+ icon={DatabaseBackupIcon}
title="Point-in-Time Recovery unavailable on High Availability projects"
description="We're working to bring point-in-time recovery to High Availability projects. Contact support if this is blocking your work."
className="max-w-none mx-0"
@@ -147,7 +147,7 @@ const PITR = () => {
/>
) : !isActiveHealthy ? (
<Alert>
- <AlertCircle />
+ <AlertCircleIcon />
<AlertTitle>
Point in Time Recovery is not available while project is offline
</AlertTitle>
diff --git a/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx b/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx
index 3d1a47e37b1..14f19d1f552 100644
--- a/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx
+++ b/apps/studio/pages/project/[ref]/database/backups/scheduled.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useParams } from 'common'
-import { DatabaseBackup, Info } from 'lucide-react'
+import { DatabaseBackupIcon, InfoIcon } from 'lucide-react'
import { Admonition } from 'ui-patterns/Admonition'
import { PageContainer } from 'ui-patterns/PageContainer'
import {
@@ -92,7 +92,7 @@ const ScheduledBackups = () => {
if (isHighAvailability) {
return (
<HighAvailabilityDisabledEmptyState
- icon={DatabaseBackup}
+ icon={DatabaseBackupIcon}
title="Scheduled backups unavailable on High Availability projects"
description="We're working to bring scheduled backups to High Availability projects. Contact support if this is blocking your work."
className="max-w-none mx-0"
@@ -119,7 +119,7 @@ const ScheduledBackups = () => {
<InformationBox
hideCollapse
defaultVisibility
- icon={<Info strokeWidth={2} />}
+ icon={<InfoIcon strokeWidth={2} />}
title="Point-In-Time-Recovery (PITR) enabled"
description={
<div>
diff --git a/apps/studio/pages/project/[ref]/database/column-privileges.tsx b/apps/studio/pages/project/[ref]/database/column-privileges.tsx
index 4804b525b5a..d71247de3a4 100644
--- a/apps/studio/pages/project/[ref]/database/column-privileges.tsx
+++ b/apps/studio/pages/project/[ref]/database/column-privileges.tsx
@@ -1,5 +1,5 @@
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { AlertCircle, XIcon } from 'lucide-react'
+import { AlertCircleIcon, XIcon } from 'lucide-react'
import Link from 'next/link'
import { useCallback, useEffect, useMemo, useState } from 'react'
import { toast } from 'sonner'
@@ -242,7 +242,7 @@ const PrivilegesPage: NextPageWithLayout = () => {
<>
{!diffWarningDismissed && (
<Alert variant="warning">
- <AlertCircle strokeWidth={2} />
+ <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>.
@@ -267,7 +267,7 @@ const PrivilegesPage: NextPageWithLayout = () => {
{!selectStarWarningDismissed && (
<Alert variant="warning">
- <AlertCircle strokeWidth={2} />
+ <AlertCircleIcon strokeWidth={2} />
<AlertTitle>Changing column privileges can break existing queries.</AlertTitle>
<AlertDescription>
If you remove a column privilege for a role, that role will lose all access to
diff --git a/apps/studio/pages/project/[ref]/database/indexes.tsx b/apps/studio/pages/project/[ref]/database/indexes.tsx
index 41df167e410..5d4bf967fd2 100644
--- a/apps/studio/pages/project/[ref]/database/indexes.tsx
+++ b/apps/studio/pages/project/[ref]/database/indexes.tsx
@@ -1,4 +1,4 @@
-import { ExternalLink } from 'lucide-react'
+import { ExternalLinkIcon } from 'lucide-react'
import { Button } from 'ui'
import { PageContainer } from 'ui-patterns/PageContainer'
import {
@@ -34,7 +34,7 @@ const IndexesPage: NextPageWithLayout = () => {
className="no-underline"
href={`${DOCS_URL}/guides/database/query-optimization`}
/>
- <Button asChild icon={<ExternalLink strokeWidth={1.5} />}>
+ <Button asChild icon={<ExternalLinkIcon strokeWidth={1.5} />}>
<a
target="_blank"
rel="noreferrer"
diff --git a/apps/studio/pages/project/[ref]/database/policies.tsx b/apps/studio/pages/project/[ref]/database/policies.tsx
index 38d133de4f2..aa0b329d835 100644
--- a/apps/studio/pages/project/[ref]/database/policies.tsx
+++ b/apps/studio/pages/project/[ref]/database/policies.tsx
@@ -2,7 +2,7 @@ import type { PGTable } from '@supabase/pg-meta'
import { ident, safeSql } from '@supabase/pg-meta'
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { LOCAL_STORAGE_KEYS, useParams } from 'common'
-import { Search, X } from 'lucide-react'
+import { SearchIcon, XIcon } from 'lucide-react'
import { parseAsBoolean, parseAsString, useQueryState } from 'nuqs'
import { useCallback, useDeferredValue, useEffect, useMemo, useRef, useState } from 'react'
import { toast } from 'sonner'
@@ -306,7 +306,7 @@ const DatabasePoliciesPage: NextPageWithLayout = () => {
setSearchString(str)
}}
onKeyDown={onSearchInputEscape(searchString || '', setSearchString)}
- icon={<Search size={14} />}
+ icon={<SearchIcon size={14} />}
actions={
searchString ? (
<Button
@@ -314,7 +314,7 @@ const DatabasePoliciesPage: NextPageWithLayout = () => {
variant="text"
aria-label="Clear filter"
className="p-0 h-5 w-5"
- icon={<X />}
+ icon={<XIcon />}
onClick={() => setSearchString('')}
/>
) : null
diff --git a/apps/studio/pages/project/[ref]/functions/[functionSlug]/code.tsx b/apps/studio/pages/project/[ref]/functions/[functionSlug]/code.tsx
index a9caf52da8e..912edd12074 100644
--- a/apps/studio/pages/project/[ref]/functions/[functionSlug]/code.tsx
+++ b/apps/studio/pages/project/[ref]/functions/[functionSlug]/code.tsx
@@ -1,7 +1,7 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { IS_PLATFORM, useParams } from 'common'
import { isEqual } from 'lodash'
-import { AlertCircle, CornerDownLeft, Loader2 } from 'lucide-react'
+import { AlertCircleIcon, CornerDownLeftIcon, Loader2Icon } from 'lucide-react'
import { useEffect, useMemo, useState } from 'react'
import { toast } from 'sonner'
import { LogoLoader } from 'ui'
@@ -158,7 +158,7 @@ const CodePage = () => {
{isErrorLoadingFiles && (
<div className="flex flex-col items-center justify-center h-full bg-surface-200">
<div className="flex flex-col items-center text-center gap-3 max-w-md">
- <AlertCircle size={24} strokeWidth={1.5} className="text-amber-900" />
+ <AlertCircleIcon size={24} strokeWidth={1.5} className="text-amber-900" />
<h3 className="text-md mt-4">Failed to load function code</h3>
<p className="text-sm text-foreground-light">
{filesError?.message ||
@@ -221,10 +221,10 @@ const CodePage = () => {
onClick={handleDeployClick}
iconRight={
isDeploying ? (
- <Loader2 className="animate-spin" size={10} strokeWidth={1.5} />
+ <Loader2Icon className="animate-spin" size={10} strokeWidth={1.5} />
) : (
<div className="flex items-center space-x-1">
- <CornerDownLeft size={10} strokeWidth={1.5} />
+ <CornerDownLeftIcon size={10} strokeWidth={1.5} />
</div>
)
}
diff --git a/apps/studio/pages/project/[ref]/functions/index.tsx b/apps/studio/pages/project/[ref]/functions/index.tsx
index a84ec48ffe1..e9d50085e41 100644
--- a/apps/studio/pages/project/[ref]/functions/index.tsx
+++ b/apps/studio/pages/project/[ref]/functions/index.tsx
@@ -1,5 +1,5 @@
import { useFlag, useParams } from 'common'
-import { ExternalLink, RefreshCw, Search, X } from 'lucide-react'
+import { ExternalLinkIcon, RefreshCwIcon, SearchIcon, XIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { parseAsString, parseAsStringLiteral, useQueryState } from 'nuqs'
import React, { useMemo, useRef, type PropsWithChildren } from 'react'
@@ -137,7 +137,7 @@ const EdgeFunctionsPage: NextPageWithLayout = () => {
<Input
ref={searchInputRef}
placeholder="Search function names"
- icon={<Search />}
+ icon={<SearchIcon />}
size="tiny"
className="w-32 md:w-64"
value={search}
@@ -150,7 +150,7 @@ const EdgeFunctionsPage: NextPageWithLayout = () => {
key="clear"
size="tiny"
variant="text"
- icon={<X />}
+ icon={<XIcon />}
onClick={() => setSearch('')}
className="p-0 h-5 w-5"
/>
@@ -167,7 +167,11 @@ const EdgeFunctionsPage: NextPageWithLayout = () => {
shortcutId={SHORTCUT_IDS.FUNCTIONS_LIST_REFRESH}
side="bottom"
>
- <Button icon={<RefreshCw />} loading={isFetching} onClick={() => refetch()}>
+ <Button
+ icon={<RefreshCwIcon />}
+ loading={isFetching}
+ onClick={() => refetch()}
+ >
Refresh
</Button>
</ShortcutTooltip>
@@ -237,7 +241,7 @@ export const EdgeFunctionsIndexPageWrapper = ({ children }: PropsWithChildren) =
</PageHeaderSummary>
<PageHeaderAside>
<DocsButton href={`${DOCS_URL}/guides/functions`} />
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<a
target="_blank"
rel="noreferrer"
diff --git a/apps/studio/pages/project/[ref]/functions/new.tsx b/apps/studio/pages/project/[ref]/functions/new.tsx
index 118bcd18e0b..3eca4f5cba5 100644
--- a/apps/studio/pages/project/[ref]/functions/new.tsx
+++ b/apps/studio/pages/project/[ref]/functions/new.tsx
@@ -1,7 +1,7 @@
import { zodResolver } from '@hookform/resolvers/zod'
import { useParams } from 'common'
import { isEqual } from 'lodash'
-import { AlertCircle, Book, Check } from 'lucide-react'
+import { AlertCircleIcon, BookIcon, CheckIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { useEffect, useId, useMemo, useState } from 'react'
import { useForm } from 'react-hook-form'
@@ -302,7 +302,7 @@ const NewFunctionPage = () => {
role="combobox"
aria-expanded={open}
aria-controls={templatesListboxId}
- icon={<Book size={14} />}
+ icon={<BookIcon size={14} />}
>
Templates
</Button>
@@ -324,7 +324,7 @@ const NewFunctionPage = () => {
>
<div className="flex flex-col gap-1">
<div className="flex items-center">
- <Check
+ <CheckIcon
className={cn(
'mr-2 h-4 w-4',
files.some((f) => f.content === template.content)
@@ -390,7 +390,7 @@ const NewFunctionPage = () => {
{form.formState.errors.functionName && (
<Tooltip>
<TooltipTrigger>
- <AlertCircle className="w-4 h-4 text-destructive ml-2" />
+ <AlertCircleIcon className="w-4 h-4 text-destructive ml-2" />
</TooltipTrigger>
<TooltipContent>
{form.formState.errors.functionName.message}
diff --git a/apps/studio/pages/project/[ref]/integrations/index.tsx b/apps/studio/pages/project/[ref]/integrations/index.tsx
index b8c4ddbb007..6c3c208b220 100644
--- a/apps/studio/pages/project/[ref]/integrations/index.tsx
+++ b/apps/studio/pages/project/[ref]/integrations/index.tsx
@@ -1,6 +1,6 @@
import { IS_PLATFORM, useFeatureFlags } from 'common'
import { Database } from 'common/marketplace.types'
-import { Search } from 'lucide-react'
+import { SearchIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { parseAsString, useQueryState } from 'nuqs'
import { useMemo, type ReactNode } from 'react'
@@ -246,7 +246,7 @@ const LegacyIntegrationsPage = () => {
size="tiny"
onChange={(e) => setSearch(e.target.value)}
placeholder="Search integrations..."
- icon={<Search size={14} />}
+ icon={<SearchIcon size={14} />}
className="w-52"
/>
</PageSectionMeta>
diff --git a/apps/studio/pages/project/[ref]/logs/explorer/recent.tsx b/apps/studio/pages/project/[ref]/logs/explorer/recent.tsx
index 3bf193ad750..38fea852fca 100644
--- a/apps/studio/pages/project/[ref]/logs/explorer/recent.tsx
+++ b/apps/studio/pages/project/[ref]/logs/explorer/recent.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Clock } from 'lucide-react'
+import { ClockIcon } from 'lucide-react'
import Link from 'next/link'
import { Button } from 'ui'
@@ -40,7 +40,7 @@ export const LogsSavedPage: NextPageWithLayout = () => {
{recent.length === 0 && (
<>
<div className="my-auto flex h-full grow flex-col items-center justify-center gap-1">
- <Clock className="animate-bounce" />
+ <ClockIcon className="animate-bounce" />
<h3 className="text-lg text-foreground">No Recent Queries Yet</h3>
<p className="text-sm text-foreground-lighter">
Your recent queries run from the{' '}
diff --git a/apps/studio/pages/project/[ref]/logs/explorer/saved.tsx b/apps/studio/pages/project/[ref]/logs/explorer/saved.tsx
index 831828bfd71..20fd1d108b3 100644
--- a/apps/studio/pages/project/[ref]/logs/explorer/saved.tsx
+++ b/apps/studio/pages/project/[ref]/logs/explorer/saved.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { Save } from 'lucide-react'
+import { SaveIcon } from 'lucide-react'
import Link from 'next/link'
import { Loading } from 'ui'
@@ -55,7 +55,7 @@ export const LogsSavedPage: NextPageWithLayout = () => {
)}
{saved.length === 0 && (
<div className="my-auto flex h-full grow flex-col items-center justify-center gap-1">
- <Save className="animate-bounce" />
+ <SaveIcon className="animate-bounce" />
<h3 className="text-lg text-foreground">No Saved Queries Yet</h3>
<p className="text-sm text-foreground-lighter">
Saved queries will appear here. Queries can be saved from the{' '}
diff --git a/apps/studio/pages/project/[ref]/merge.tsx b/apps/studio/pages/project/[ref]/merge.tsx
index ed85a6c78ae..bea5988441b 100644
--- a/apps/studio/pages/project/[ref]/merge.tsx
+++ b/apps/studio/pages/project/[ref]/merge.tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { AlertTriangle, GitBranchIcon, X } from 'lucide-react'
+import { AlertTriangleIcon, GitBranchIcon, XIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useCallback, useEffect, useMemo, useState } from 'react'
@@ -380,7 +380,7 @@ const MergePage: NextPageWithLayout = () => {
}
overrideIcon={
hasCurrentWorkflowFailed ? (
- <AlertTriangle
+ <AlertTriangleIcon
size={16}
strokeWidth={1.5}
className="text-destructive shrink-0"
@@ -400,7 +400,7 @@ const MergePage: NextPageWithLayout = () => {
<Button
onClick={handleCloseBranch}
loading={isDeleting}
- icon={<X size={16} strokeWidth={1.5} />}
+ icon={<XIcon size={16} strokeWidth={1.5} />}
className="shrink-0"
>
Close branch
diff --git a/apps/studio/pages/project/[ref]/observability/auth.tsx b/apps/studio/pages/project/[ref]/observability/auth.tsx
index 86402695fd9..2cd49c845c8 100644
--- a/apps/studio/pages/project/[ref]/observability/auth.tsx
+++ b/apps/studio/pages/project/[ref]/observability/auth.tsx
@@ -1,6 +1,6 @@
import { useFlag, useParams } from 'common'
import dayjs from 'dayjs'
-import { ArrowRight, LogsIcon, RefreshCw } from 'lucide-react'
+import { ArrowRightIcon, LogsIcon, RefreshCwIcon } from 'lucide-react'
import { useRouter } from 'next/router'
import { parseAsJson, useQueryState } from 'nuqs'
import { useState } from 'react'
@@ -231,7 +231,7 @@ const AuthUsage = () => {
>
<Button
disabled={isRefreshing}
- icon={<RefreshCw className={isRefreshing ? 'animate-spin' : ''} />}
+ icon={<RefreshCwIcon className={isRefreshing ? 'animate-spin' : ''} />}
className="w-7"
onClick={onRefreshReport}
/>
@@ -258,7 +258,7 @@ const AuthUsage = () => {
{dayjs(selectedDateRange.period_start.date).format('MMM D, h:mma')}
</p>
<p className="text-foreground-light">
- <ArrowRight size={12} />
+ <ArrowRightIcon size={12} />
</p>
<p className="text-foreground-light">
{dayjs(selectedDateRange.period_end.date).format('MMM D, h:mma')}
diff --git a/apps/studio/pages/project/[ref]/observability/connections.tsx b/apps/studio/pages/project/[ref]/observability/connections.tsx
index 85ea8e64341..4f2ebb2ee2b 100644
--- a/apps/studio/pages/project/[ref]/observability/connections.tsx
+++ b/apps/studio/pages/project/[ref]/observability/connections.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { CirclePause, CirclePlay } from 'lucide-react'
+import { CirclePauseIcon, CirclePlayIcon } from 'lucide-react'
import { useEffect, useState } from 'react'
import { Badge, Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
@@ -113,7 +113,7 @@ export const DatabaseConnections: NextPageWithLayout = () => {
<Button
variant={live ? 'default' : 'primary'}
onClick={handleToggleLive}
- icon={live ? <CirclePause /> : <CirclePlay />}
+ icon={live ? <CirclePauseIcon /> : <CirclePlayIcon />}
>
{live ? 'Pause' : 'Live'}
</Button>
diff --git a/apps/studio/pages/project/[ref]/observability/database.tsx b/apps/studio/pages/project/[ref]/observability/database.tsx
index 49dddf651c3..9aa0bd4df89 100644
--- a/apps/studio/pages/project/[ref]/observability/database.tsx
+++ b/apps/studio/pages/project/[ref]/observability/database.tsx
@@ -2,7 +2,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
import { useQueryClient } from '@tanstack/react-query'
import { useFlag, useParams } from 'common'
import dayjs from 'dayjs'
-import { ArrowRight, ExternalLink, RefreshCw } from 'lucide-react'
+import { ArrowRightIcon, ExternalLinkIcon, RefreshCwIcon } from 'lucide-react'
import Link from 'next/link'
import { useEffect, useState } from 'react'
import { toast } from 'sonner'
@@ -305,7 +305,7 @@ const DatabaseUsage = () => {
<Button
aria-label="Refresh report"
disabled={isRefreshing}
- icon={<RefreshCw className={isRefreshing ? 'animate-spin' : ''} />}
+ icon={<RefreshCwIcon className={isRefreshing ? 'animate-spin' : ''} />}
className="w-7"
onClick={onRefreshReport}
/>
@@ -333,7 +333,7 @@ const DatabaseUsage = () => {
{dayjs(selectedDateRange.period_start.date).format('MMM D, h:mma')}
</p>
<p className="text-foreground-light">
- <ArrowRight size={12} />
+ <ArrowRightIcon size={12} />
</p>
<p className="text-foreground-light">
{dayjs(selectedDateRange.period_end.date).format('MMM D, h:mma')}
@@ -527,7 +527,7 @@ const renderDatabaseSizeAdditionalInfo = () => {
is used when installing extensions, even if those extensions are inactive.
</p>
- <Button asChild icon={<ExternalLink />}>
+ <Button asChild icon={<ExternalLinkIcon />}>
<Link
href={`${DOCS_URL}/guides/platform/database-size#disk-space-usage`}
target="_blank"
diff --git a/apps/studio/pages/project/[ref]/observability/edge-functions.tsx b/apps/studio/pages/project/[ref]/observability/edge-functions.tsx
index 6c7f7c39798..70d70e0c628 100644
--- a/apps/studio/pages/project/[ref]/observability/edge-functions.tsx
+++ b/apps/studio/pages/project/[ref]/observability/edge-functions.tsx
@@ -1,7 +1,7 @@
import { useQueryClient } from '@tanstack/react-query'
import { useFlag, useParams } from 'common'
import dayjs from 'dayjs'
-import { ArrowRight, RefreshCw } from 'lucide-react'
+import { ArrowRightIcon, RefreshCwIcon } from 'lucide-react'
import { parseAsJson, useQueryState } from 'nuqs'
import { useMemo, useState } from 'react'
import { Button } from 'ui'
@@ -163,7 +163,7 @@ const EdgeFunctionsUsage = () => {
>
<Button
disabled={isRefreshing}
- icon={<RefreshCw className={isRefreshing ? 'animate-spin' : ''} />}
+ icon={<RefreshCwIcon className={isRefreshing ? 'animate-spin' : ''} />}
className="w-7"
onClick={onRefreshReport}
/>
@@ -194,7 +194,7 @@ const EdgeFunctionsUsage = () => {
{dayjs(selectedDateRange.period_start.date).format('MMM D, h:mma')}
</p>
<p className="text-foreground-light">
- <ArrowRight size={12} />
+ <ArrowRightIcon size={12} />
</p>
<p className="text-foreground-light">
{dayjs(selectedDateRange.period_end.date).format('MMM D, h:mma')}
diff --git a/apps/studio/pages/project/[ref]/observability/postgrest.tsx b/apps/studio/pages/project/[ref]/observability/postgrest.tsx
index 9c46c46442b..a9d5a962dc1 100644
--- a/apps/studio/pages/project/[ref]/observability/postgrest.tsx
+++ b/apps/studio/pages/project/[ref]/observability/postgrest.tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { ArrowRight, RefreshCw } from 'lucide-react'
+import { ArrowRightIcon, RefreshCwIcon } from 'lucide-react'
import { useEffect, useRef, useState } from 'react'
import { Button } from 'ui'
@@ -132,7 +132,7 @@ const PostgrestReport = () => {
>
<Button
disabled={isRefetching}
- icon={<RefreshCw className={isRefetching ? 'animate-spin' : ''} />}
+ icon={<RefreshCwIcon className={isRefetching ? 'animate-spin' : ''} />}
className="w-7"
onClick={onRefreshReport}
/>
@@ -158,7 +158,7 @@ const PostgrestReport = () => {
{dayjs(selectedDateRange.period_start.date).format('MMM D, h:mma')}
</p>
<p className="text-foreground-light">
- <ArrowRight size={12} />
+ <ArrowRightIcon size={12} />
</p>
<p className="text-foreground-light">
{dayjs(selectedDateRange.period_end.date).format('MMM D, h:mma')}
diff --git a/apps/studio/pages/project/[ref]/observability/realtime.tsx b/apps/studio/pages/project/[ref]/observability/realtime.tsx
index 61be536ecd2..457ee337334 100644
--- a/apps/studio/pages/project/[ref]/observability/realtime.tsx
+++ b/apps/studio/pages/project/[ref]/observability/realtime.tsx
@@ -1,7 +1,7 @@
import { useQueryClient } from '@tanstack/react-query'
import { useParams } from 'common'
import dayjs from 'dayjs'
-import { ArrowRight, RefreshCw } from 'lucide-react'
+import { ArrowRightIcon, RefreshCwIcon } from 'lucide-react'
import { useEffect, useMemo, useRef, useState } from 'react'
import { Button } from 'ui'
@@ -157,7 +157,7 @@ const RealtimeUsage = () => {
>
<Button
disabled={isRefreshing}
- icon={<RefreshCw className={isRefreshing ? 'animate-spin' : ''} />}
+ icon={<RefreshCwIcon className={isRefreshing ? 'animate-spin' : ''} />}
className="w-7"
onClick={onRefreshReport}
/>
@@ -183,7 +183,7 @@ const RealtimeUsage = () => {
{dayjs(selectedDateRange.period_start.date).format('MMM D, h:mma')}
</p>
<p className="text-foreground-light">
- <ArrowRight size={12} />
+ <ArrowRightIcon size={12} />
</p>
<p className="text-foreground-light">
{dayjs(selectedDateRange.period_end.date).format('MMM D, h:mma')}
diff --git a/apps/studio/pages/project/[ref]/observability/storage.tsx b/apps/studio/pages/project/[ref]/observability/storage.tsx
index 1540c8f807d..db52912fe4a 100644
--- a/apps/studio/pages/project/[ref]/observability/storage.tsx
+++ b/apps/studio/pages/project/[ref]/observability/storage.tsx
@@ -1,5 +1,5 @@
import dayjs from 'dayjs'
-import { ArrowRight, ExternalLinkIcon, RefreshCw } from 'lucide-react'
+import { ArrowRightIcon, ExternalLinkIcon, RefreshCwIcon } from 'lucide-react'
import Link from 'next/link'
import { useState } from 'react'
import { Button } from 'ui'
@@ -105,7 +105,7 @@ export const StorageReport: NextPageWithLayout = () => {
>
<Button
disabled={report.isLoading}
- icon={<RefreshCw className={report.isLoading ? 'animate-spin' : ''} />}
+ icon={<RefreshCwIcon className={report.isLoading ? 'animate-spin' : ''} />}
className="w-7"
onClick={onRefreshReport}
/>
@@ -124,7 +124,7 @@ export const StorageReport: NextPageWithLayout = () => {
{dayjs(selectedDateRange.period_start.date).format('MMM D, h:mma')}
</p>
<p className="text-foreground-light">
- <ArrowRight size={12} />
+ <ArrowRightIcon size={12} />
</p>
<p className="text-foreground-light">
{dayjs(selectedDateRange.period_end.date).format('MMM D, h:mma')}
diff --git a/apps/studio/pages/project/[ref]/settings/infrastructure/replica/[replicaId].tsx b/apps/studio/pages/project/[ref]/settings/infrastructure/replica/[replicaId].tsx
index 1e7e3323d1b..91e9f1e6bef 100644
--- a/apps/studio/pages/project/[ref]/settings/infrastructure/replica/[replicaId].tsx
+++ b/apps/studio/pages/project/[ref]/settings/infrastructure/replica/[replicaId].tsx
@@ -1,6 +1,6 @@
import { useParams } from 'common'
import { Database } from 'icons'
-import { Loader2, Trash } from 'lucide-react'
+import { Loader2Icon, TrashIcon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useEffect, useMemo, useState } from 'react'
@@ -91,7 +91,7 @@ const InfrastructureReadReplicaPage: NextPageWithLayout = () => {
{isSuccessDatabases && (
<>
<Badge variant={STATUS_BADGE_VARIANT[statusLabel] ?? 'default'}>{statusLabel}</Badge>
- {isInTransition && <Loader2 size={14} className="animate-spin" />}
+ {isInTransition && <Loader2Icon size={14} className="animate-spin" />}
</>
)}
</div>
@@ -123,7 +123,7 @@ const InfrastructureReadReplicaPage: NextPageWithLayout = () => {
secondaryActions={
<ButtonTooltip
className="w-7"
- icon={<Trash />}
+ icon={<TrashIcon />}
disabled={!replica}
tooltip={{
content: { side: 'bottom', text: 'Drop replica' },
diff --git a/apps/studio/pages/project/[ref]/settings/log-drains.tsx b/apps/studio/pages/project/[ref]/settings/log-drains.tsx
index 42b784d40df..954aa7c5e77 100644
--- a/apps/studio/pages/project/[ref]/settings/log-drains.tsx
+++ b/apps/studio/pages/project/[ref]/settings/log-drains.tsx
@@ -1,6 +1,6 @@
import { PermissionAction } from '@supabase/shared-types/out/constants'
import { IS_PLATFORM, useParams } from 'common'
-import { ChevronDown } from 'lucide-react'
+import { ChevronDownIcon } from 'lucide-react'
import { cloneElement, useState, type ReactElement } from 'react'
import { toast } from 'sonner'
import {
@@ -226,7 +226,7 @@ const LogDrainsSettings: NextPageWithLayout = () => {
variant="primary"
aria-label="Choose destination type"
className="shrink-0 rounded-l-none px-[4px] py-[5px] -ml-px focus-visible:z-10 focus-visible:rounded-l-sm"
- icon={<ChevronDown />}
+ icon={<ChevronDownIcon />}
/>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" side="bottom">
diff --git a/apps/studio/pages/project/[ref]/storage/files/buckets/[bucketId].tsx b/apps/studio/pages/project/[ref]/storage/files/buckets/[bucketId].tsx
index ea8ee17f105..d3486c84883 100644
--- a/apps/studio/pages/project/[ref]/storage/files/buckets/[bucketId].tsx
+++ b/apps/studio/pages/project/[ref]/storage/files/buckets/[bucketId].tsx
@@ -1,5 +1,5 @@
import { useParams } from 'common'
-import { ChevronDown, FolderOpen, Settings, Shield, Trash2 } from 'lucide-react'
+import { ChevronDownIcon, FolderOpenIcon, SettingsIcon, ShieldIcon, Trash2Icon } from 'lucide-react'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { parseAsBoolean, useQueryState } from 'nuqs'
@@ -84,7 +84,7 @@ const BucketPage: NextPageWithLayout = () => {
asChild
variant="outline"
size="tiny"
- icon={<Shield size={14} />}
+ icon={<ShieldIcon size={14} />}
iconRight={
policyCount > 0 ? (
<span className="w-4 h-4 bg-surface-200 text-foreground-light text-xs rounded-full flex items-center justify-center font-medium">
@@ -101,7 +101,7 @@ const BucketPage: NextPageWithLayout = () => {
</Button>
<DropdownMenu>
<DropdownMenuTrigger asChild>
- <Button variant="outline" size="tiny" iconRight={<ChevronDown size={14} />}>
+ <Button variant="outline" size="tiny" iconRight={<ChevronDownIcon size={14} />}>
Edit bucket
</Button>
</DropdownMenuTrigger>
@@ -110,7 +110,7 @@ const BucketPage: NextPageWithLayout = () => {
className="flex items-center space-x-2"
onClick={() => setShowEditModal(true)}
>
- <Settings size={12} />
+ <SettingsIcon size={12} />
<p>Bucket settings</p>
</DropdownMenuItem>
<DropdownMenuSeparator />
@@ -118,14 +118,14 @@ const BucketPage: NextPageWithLayout = () => {
className="flex items-center space-x-2"
onClick={() => setShowEmptyModal(true)}
>
- <FolderOpen size={12} />
+ <FolderOpenIcon size={12} />
<p>Empty bucket</p>
</DropdownMenuItem>
<DropdownMenuItem
className="flex items-center space-x-2"
onClick={() => setShowDeleteModal(true)}
>
- <Trash2 size={12} />
+ <Trash2Icon size={12} />
<p>Delete bucket</p>
</DropdownMenuItem>
</DropdownMenuContent>