The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Enforce noUnusedLocals and noUnusedParameters in tsconfig.json + fix all related issues (#45264)
Joshen Lim7f5865872adb
diff --git a/apps/studio/components/grid/SupabaseGrid.utils.ts b/apps/studio/components/grid/SupabaseGrid.utils.tsindex ed98ffaef1b..f150c99d8bd 100644--- a/apps/studio/components/grid/SupabaseGrid.utils.ts+++ b/apps/studio/components/grid/SupabaseGrid.utils.ts@@ -10,10 +10,9 @@ import { FilterOperatorOptions } from './components/header/filter/Filter.constanimport { STORAGE_KEY_PREFIX } from './constants'import type { Sort, SupaColumn, SupaTable } from './types'import { formatClipboardValue } from './utils/common'-import type { Filter, SavedState, SupaRow } from '@/components/grid/types'+import type { Filter, SavedState } from '@/components/grid/types'import { Entity, isTableLike } from '@/data/table-editor/table-editor-types'import { BASE_PATH } from '@/lib/constants'-import { QueuedOperation, QueuedOperationType } from '@/state/table-editor-operation-queue.types'export function formatSortURLParams(tableName: string, sort?: string[]): Sort[] {if (Array.isArray(sort)) {@@ -231,7 +230,7 @@ export function useSyncTableEditorStateFromLocalStorageWithUrl({table: Entity | undefined}) {// Warning: nuxt url state often fails to update to changes to URL- const [, updateUrlParams] = useQueryStates(+ useQueryStates({sort: parseAsNativeArrayOf(parseAsString),filter: parseAsNativeArrayOf(parseAsString),diff --git a/apps/studio/components/grid/components/editor/TimeEditor.tsx b/apps/studio/components/grid/components/editor/TimeEditor.tsxindex a6e863d7d47..b092ccd2b81 100644--- a/apps/studio/components/grid/components/editor/TimeEditor.tsx+++ b/apps/studio/components/grid/components/editor/TimeEditor.tsx@@ -17,12 +17,6 @@ interface TimeEditorProps<TRow, TSummaryRow = unknown> extends RenderEditCellProformat: string}-/**- * original input time format 'HH:mm'- * when step=1, it becomes 'HH:mm:ss'- */-const INPUT_TIME_FORMAT = 'HH:mm:ss'-function BaseEditor<TRow, TSummaryRow = unknown>({row,column,diff --git a/apps/studio/components/grid/components/footer/pagination/Pagination.tsx b/apps/studio/components/grid/components/footer/pagination/Pagination.tsxindex 75d630804e4..a6d8eea5354 100644--- a/apps/studio/components/grid/components/footer/pagination/Pagination.tsx+++ b/apps/studio/components/grid/components/footer/pagination/Pagination.tsx@@ -102,7 +102,6 @@ export const Pagination = ({ enableForeignRowsQuery = true }: PaginationProps) =)const count = data?.count ?? 0const hasCountData = count >= 0- const isEstimateCount = data?.is_estimate ?? falseconst countString = data?.is_estimate ? formatEstimatedCount(count) : count.toLocaleString()const maxPages = Math.ceil(count / tableEditorSnap.rowsPerPage)const totalPages = count > 0 ? maxPages : 1diff --git a/apps/studio/components/grid/components/header/sort/SortRow.tsx b/apps/studio/components/grid/components/header/sort/SortRow.tsxindex 0acf18a4725..edae30e92ee 100644--- a/apps/studio/components/grid/components/header/sort/SortRow.tsx+++ b/apps/studio/components/grid/components/header/sort/SortRow.tsx@@ -16,7 +16,7 @@ export interface SortRowProps {onDrag: (dragIndex: number, hoverIndex: number) => void}-const SortRow = ({ index, columnName, sort, onDelete, onToggle, onDrag }: SortRowProps) => {+const SortRow = ({ index, columnName, sort, onDelete, onToggle }: SortRowProps) => {const snap = useTableEditorTableStateSnapshot()const column = snap.table.columns.find((x) => x.name === columnName)diff --git a/apps/studio/components/grid/types/base.ts b/apps/studio/components/grid/types/base.tsindex 465a4d2552c..b24d53fedd1 100644--- a/apps/studio/components/grid/types/base.ts+++ b/apps/studio/components/grid/types/base.ts@@ -1,4 +1,3 @@-import { Filter, Sort } from '@supabase/pg-meta/src/query'import { CalculatedColumn, RenderHeaderCellProps } from 'react-data-grid'export interface SavedState {diff --git a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/Permissions/Permissions.utils.ts b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/Permissions/Permissions.utils.tsindex 059d21d26d4..cb7547ee431 100644--- a/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/Permissions/Permissions.utils.ts+++ b/apps/studio/components/interfaces/Account/AccessTokens/Scoped/Form/Permissions/Permissions.utils.ts@@ -1,21 +1,5 @@import { PermissionResource, PermissionRow } from './Permissions.types'-const getBestAction = (actions: string[]): string => {- const availableActions = actions.filter((a) => a !== 'no access')-- if (availableActions.length === 0) return 'no access'-- const priority = ['read', 'write', 'create', 'delete', 'read-write']-- for (const priorityAction of priority) {- if (availableActions.includes(priorityAction)) {- return priorityAction- }- }-- return availableActions[0]-}-export const sortActions = (actions: string[]): string[] => {const sorted: string[] = []const remaining = [...actions]diff --git a/apps/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsx b/apps/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsxindex 4cefc450d10..1e0b9143c98 100644--- a/apps/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsx+++ b/apps/studio/components/interfaces/Account/TOTPFactors/AddNewFactorModal.tsx@@ -59,7 +59,7 @@ interface FirstStepProps {onClose: () => void}-const FirstStep = ({ visible, isEnrolling, reset, enroll, onClose }: FirstStepProps) => {+const FirstStep = ({ visible, isEnrolling, enroll, onClose }: FirstStepProps) => {const FormSchema = z.object({name: z.string().min(1, 'Please provide a name to identify this app'),})diff --git a/apps/studio/components/interfaces/Advisors/EnableRuleModal.tsx b/apps/studio/components/interfaces/Advisors/EnableRuleModal.tsxindex 644e408e613..223c2ea075a 100644--- a/apps/studio/components/interfaces/Advisors/EnableRuleModal.tsx+++ b/apps/studio/components/interfaces/Advisors/EnableRuleModal.tsx@@ -1,5 +1,4 @@import { useParams } from 'common'-import { useRouter } from 'next/router'import { useState } from 'react'import { toast } from 'sonner'import {@@ -25,7 +24,6 @@ interface EnableRuleModalProps {export const EnableRuleModal = ({ lint, rule }: EnableRuleModalProps) => {const { ref } = useParams()- const router = useRouter()const [open, setOpen] = useState(false)diff --git a/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Form.tsx b/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Form.tsxindex 12e342c6d2a..05d1497fc0c 100644--- a/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Form.tsx+++ b/apps/studio/components/interfaces/ApiAuthorization/ApiAuthorization.Form.tsx@@ -15,7 +15,6 @@ import {FormControl,FormField,FormItem,- FormMessage,Select_Shadcn_,SelectContent_Shadcn_,SelectItem_Shadcn_,diff --git a/apps/studio/components/interfaces/App/CommandMenu/ApiKeys.tsx b/apps/studio/components/interfaces/App/CommandMenu/ApiKeys.tsxindex 0285aa4d25b..d223aa14c4b 100644--- a/apps/studio/components/interfaces/App/CommandMenu/ApiKeys.tsx+++ b/apps/studio/components/interfaces/App/CommandMenu/ApiKeys.tsx@@ -29,10 +29,7 @@ export function useApiKeysCommands() {const { data: project } = useSelectedProjectQuery()const ref = project?.ref || '_'- const { can: canReadAPIKeys, isLoading: isLoadingPermissions } = useAsyncCheckPermissions(- PermissionAction.SECRETS_READ,- '*'- )+ const { can: canReadAPIKeys } = useAsyncCheckPermissions(PermissionAction.SECRETS_READ, '*')const { data: apiKeys } = useAPIKeysQuery({ projectRef: project?.ref, reveal: true },diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsxindex bfca12d180d..b701cdb43e7 100644--- a/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx@@ -67,7 +67,7 @@ export const TemplateEditor = ({ template }: TemplateEditorProps) => {const [validationResult, setValidationResult] = useState<ValidateSpamResponse>()const [bodyValue, setBodyValue] = useState((authConfig && authConfig[messageSlug]) ?? '')- const [hasUnsavedChanges, setHasUnsavedChanges] = useState(false)+ const [, setHasUnsavedChanges] = useState(false)const [isSavingTemplate, setIsSavingTemplate] = useState(false)const [activeView, setActiveView] = useState<'source' | 'preview'>('source')diff --git a/apps/studio/components/interfaces/Auth/Overview/OverviewMetrics.tsx b/apps/studio/components/interfaces/Auth/Overview/OverviewMetrics.tsxindex f36f3f97381..74af350a2f7 100644--- a/apps/studio/components/interfaces/Auth/Overview/OverviewMetrics.tsx+++ b/apps/studio/components/interfaces/Auth/Overview/OverviewMetrics.tsx@@ -1,10 +1,10 @@import { useQuery } from '@tanstack/react-query'import { useParams } from 'common'import dayjs from 'dayjs'-import { BarChart2, Bot, ChevronRight, ExternalLink, Telescope } from 'lucide-react'+import { BarChart2, ChevronRight, ExternalLink, Telescope } from 'lucide-react'import Link from 'next/link'import { useRouter } from 'next/router'-import { AiIconAnimation, Button, cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'+import { AiIconAnimation, Button, Tooltip, TooltipContent, TooltipTrigger } from 'ui'import { StatusCode } from 'ui-patterns'import {Chart,@@ -41,7 +41,6 @@ import {} from './OverviewUsage.constants'import { SIDEBAR_KEYS } from '@/components/layouts/ProjectLayout/LayoutSidebar/LayoutSidebarProvider'import AlertError from '@/components/ui/AlertError'-import { getStatusColor } from '@/components/ui/DataTable/DataTable.utils'import { ErrorCodeTooltip } from '@/components/ui/ErrorCodeTooltip/ErrorCodeTooltip'import { Service } from '@/data/graphql/graphql'import { useAiAssistantStateSnapshot } from '@/state/ai-assistant-state'@@ -53,7 +52,6 @@ const StatCard = ({previous,loading,suffix = '',- invert = false,href,tooltip,}: {diff --git a/apps/studio/components/interfaces/Auth/PerformanceSettingsForm.tsx b/apps/studio/components/interfaces/Auth/PerformanceSettingsForm.tsxindex e9fd74510d0..4f9c76c7445 100644--- a/apps/studio/components/interfaces/Auth/PerformanceSettingsForm.tsx+++ b/apps/studio/components/interfaces/Auth/PerformanceSettingsForm.tsx@@ -94,7 +94,7 @@ export const PerformanceSettingsForm = () => {const promptUpgrade = IS_PLATFORM && !isLoadingEntitlement && !hasAccessToPerformance- const { mutate: updateAuthConfig, isPending: isSaving } = useAuthConfigUpdateMutation()+ const { mutate: updateAuthConfig } = useAuthConfigUpdateMutation()const requestDurationForm = useForm({resolver: zodResolver(@@ -147,7 +147,7 @@ export const PerformanceSettingsForm = () => {updateAuthConfig({ projectRef: project?.ref, config },{- onError: (error) => {+ onError: () => {setIsUpdatingDatabaseForm(false)},onSuccess: () => {diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/QueryError.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/QueryError.tsxindex d5508baac8f..e6c902bfe87 100644--- a/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/QueryError.tsx+++ b/apps/studio/components/interfaces/Auth/Policies/PolicyEditorPanel/QueryError.tsx@@ -80,7 +80,7 @@ export const QueryError = ({return arr.concat([cur])}, [] as string[])- .map((str, index, arr) => {+ .map((str, index) => {return (<spankey={index}diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicySelection.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicySelection.tsxindex 267549b035d..98ecfd3f009 100644--- a/apps/studio/components/interfaces/Auth/Policies/PolicySelection.tsx+++ b/apps/studio/components/interfaces/Auth/Policies/PolicySelection.tsx@@ -3,7 +3,6 @@ import { Edit, ExternalLink, FlaskConical, Grid } from 'lucide-react'import { Alert_Shadcn_, AlertDescription_Shadcn_, AlertTitle_Shadcn_, Button, Modal } from 'ui'import CardButton from '@/components/ui/CardButton'-import { useAppStateSnapshot } from '@/state/app-state'interface PolicySelectionProps {description: string@@ -20,8 +19,6 @@ const PolicySelection = ({onViewEditor = noop,onToggleFeaturePreviewModal,}: PolicySelectionProps) => {- const snap = useAppStateSnapshot()-return (<Modal.Content className="space-y-4 py-4"><div className="flex flex-col gap-y-2">diff --git a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateClerkAuthDialog.tsx b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateClerkAuthDialog.tsxindex 74373b3b798..f202773c70d 100644--- a/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateClerkAuthDialog.tsx+++ b/apps/studio/components/interfaces/Auth/ThirdPartyAuthForm/CreateClerkAuthDialog.tsx@@ -56,7 +56,6 @@ const FormSchema = zexport const CreateClerkAuthIntegrationDialog = ({visible,onClose,- onDelete,}: CreateClerkAuthIntegrationProps) => {const { ref: projectRef } = useParams()const { mutate: createAuthIntegration, isPending } = useCreateThirdPartyAuthIntegrationMutation({diff --git a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/NewPaymentMethodElement.tsx b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/NewPaymentMethodElement.tsxindex 2b845471814..465e20783d2 100644--- a/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/NewPaymentMethodElement.tsx+++ b/apps/studio/components/interfaces/Billing/Payment/PaymentMethods/NewPaymentMethodElement.tsx@@ -372,7 +372,7 @@ export const NewPaymentMethodElement = forwardRef(<FormFieldname="tax_id_name"control={form.control}- render={({ field }) => (+ render={() => (<FormItemLayout hideMessage layout="vertical"><Popover open={showTaxIDsPopover} onOpenChange={setShowTaxIDsPopover}><PopoverTrigger asChild>diff --git a/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx b/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsxindex e753b56c47f..bdc906a9d0f 100644--- a/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx+++ b/apps/studio/components/interfaces/BranchManagement/BranchPanels.tsx@@ -87,7 +87,6 @@ export const BranchRow = ({: nullconst isDeletionPending = willBeDeletedIn !== null && willBeDeletedIn < 0const formattedTimeFromNow = dayjs(branch.updated_at).fromNow()- const formattedUpdatedAt = dayjs(branch.updated_at).format('DD MMM YYYY, HH:mm:ss (ZZ)')const navigateUrl = rowLink ?? `/project/${branch.project_ref}`diff --git a/apps/studio/components/interfaces/BranchManagement/OutOfDateNotice.tsx b/apps/studio/components/interfaces/BranchManagement/OutOfDateNotice.tsxindex 6b36cb48d34..96ece2b1611 100644--- a/apps/studio/components/interfaces/BranchManagement/OutOfDateNotice.tsx+++ b/apps/studio/components/interfaces/BranchManagement/OutOfDateNotice.tsx@@ -35,9 +35,7 @@ export const OutOfDateNotice = ({isBranchOutOfDateMigrations,missingMigrationsCount,hasMissingFunctions,- missingFunctionsCount,hasOutOfDateFunctions,- outOfDateFunctionsCount,hasEdgeFunctionModifications,modifiedFunctionsCount,isPushing,diff --git a/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx b/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsxindex 4bc4a4e8f2c..b3b8b65e489 100644--- a/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx+++ b/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx@@ -1,4 +1,3 @@-import dayjs from 'dayjs'import { groupBy } from 'lodash'import { ArrowLeft, ArrowRight } from 'lucide-react'import { useState } from 'react'diff --git a/apps/studio/components/interfaces/ConnectSheet/Connect.types.ts b/apps/studio/components/interfaces/ConnectSheet/Connect.types.tsindex 30fd027ab93..89fce6b86d8 100644--- a/apps/studio/components/interfaces/ConnectSheet/Connect.types.ts+++ b/apps/studio/components/interfaces/ConnectSheet/Connect.types.ts@@ -75,8 +75,6 @@ export interface FieldOption {description?: string}-type FieldOptionsResolver = (state: ConnectState) => FieldOption[]-interface FieldDefinition {id: stringtype: FieldTypediff --git a/apps/studio/components/interfaces/ConnectSheet/CopyPromptAdmonition.tsx b/apps/studio/components/interfaces/ConnectSheet/CopyPromptAdmonition.tsxindex c5993d85022..3c20be3c97d 100644--- a/apps/studio/components/interfaces/ConnectSheet/CopyPromptAdmonition.tsx+++ b/apps/studio/components/interfaces/ConnectSheet/CopyPromptAdmonition.tsx@@ -1,5 +1,4 @@import { type RefObject } from 'react'-import { Badge } from 'ui'import { Admonition } from 'ui-patterns/admonition'import CopyButton from '@/components/ui/CopyButton'diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsxindex 7991359fa6d..73555f363d3 100644--- a/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx+++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx@@ -57,7 +57,7 @@ const CreateEnumeratedTypeSidePanel = ({const submitRef = useRef<HTMLButtonElement>(null)const { data: project } = useSelectedProjectQuery()const { mutate: createEnumeratedType, isPending: isCreating } = useEnumeratedTypeCreateMutation({- onSuccess: (res, vars) => {+ onSuccess: (_res, vars) => {toast.success(`Successfully created type "${vars.name}"`)closePanel()},diff --git a/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx b/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsxindex da5783ccc14..15df1516561 100644--- a/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx+++ b/apps/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx@@ -239,7 +239,7 @@ export const EditHookPanel = () => {)// replacer function with JSON.stringify to handle quotes properly- const stringifiedParameters = JSON.stringify(parameters, (key, value) => {+ const stringifiedParameters = JSON.stringify(parameters, (_key, value) => {if (typeof value === 'string') {// Return the raw string without any additional escapingreturn valuediff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/PublicationSelection.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/PublicationSelection.tsxindex 33e05118ddd..652bb4f27de 100644--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/PublicationSelection.tsx+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/PublicationSelection.tsx@@ -19,7 +19,6 @@ type PublicationSelectionProps = {export const PublicationSelection = ({form,sourceId,- visible,onSelectNewPublication,}: PublicationSelectionProps) => {const { ref: projectRef } = useParams()diff --git a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ValidationFailuresSection.tsx b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ValidationFailuresSection.tsxindex f474ad81d60..5d946d25acc 100644--- a/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ValidationFailuresSection.tsx+++ b/apps/studio/components/interfaces/Database/Replication/DestinationPanel/DestinationForm/ValidationFailuresSection.tsx@@ -19,7 +19,7 @@ export const ValidationFailuresSection = ({destinationFailures,pipelineFailures,}: ValidationFailuresSectionProps) => {- const validationIssues = [...destinationFailures, ...pipelineFailures].sort((a, b) =>+ const validationIssues = [...destinationFailures, ...pipelineFailures].sort((a, _b) =>a.failure_type === 'critical' ? -1 : 1)diff --git a/apps/studio/components/interfaces/Database/Schemas/DefaultEdge.tsx b/apps/studio/components/interfaces/Database/Schemas/DefaultEdge.tsxindex fee55849475..24fb7e0889c 100644--- a/apps/studio/components/interfaces/Database/Schemas/DefaultEdge.tsx+++ b/apps/studio/components/interfaces/Database/Schemas/DefaultEdge.tsx@@ -75,7 +75,6 @@ export const DefaultEdge = ({const EdgeRelationInfo = ({data,- edgePath,source,target,labelX,diff --git a/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx b/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsxindex a2fa462056e..cedb6d69ad0 100644--- a/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx+++ b/apps/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx@@ -11,7 +11,6 @@ import {ReactFlow,useReactFlow,} from '@xyflow/react'-import { toPng, toSvg } from 'html-to-image'import { Check, ChevronDown, Copy, Download, Loader2, Plus } from 'lucide-react'import { useTheme } from 'next-themes'import Link from 'next/link'@@ -20,7 +19,6 @@ import { useEffect, useMemo, useRef, useState } from 'react'import '@xyflow/react/dist/style.css'import { LOCAL_STORAGE_KEYS, useParams } from 'common'-import { toast } from 'sonner'import {AlertDialog,AlertDialogAction,diff --git a/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx b/apps/studio/components/interfaces/Database/Tables/ColumnList.tsxindex 27830b2558b..c986e0639cc 100644--- a/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx+++ b/apps/studio/components/interfaces/Database/Tables/ColumnList.tsx@@ -18,7 +18,7 @@ import {Trash,Type,} from 'lucide-react'-import { useState, type ReactNode } from 'react'+import { useState } from 'react'import {Button,Card,diff --git a/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx b/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsxindex 6b392cfd078..a75d78bdbe9 100644--- a/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx+++ b/apps/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx@@ -183,7 +183,6 @@ export const TriggerList = ({ editTrigger, duplicateTrigger, deleteTrigger }: Tr<DropdownMenuItemclassName="space-x-2"onClick={() => {- const sql = generateTriggerCreateSQL(x)editTrigger(x)}}>diff --git a/apps/studio/components/interfaces/DiskManagement/fields/AutoScaleFields.tsx b/apps/studio/components/interfaces/DiskManagement/fields/AutoScaleFields.tsxindex d6ededc7cf2..db80564155a 100644--- a/apps/studio/components/interfaces/DiskManagement/fields/AutoScaleFields.tsx+++ b/apps/studio/components/interfaces/DiskManagement/fields/AutoScaleFields.tsx@@ -1,8 +1,6 @@-import { InputVariants } from '@ui/components/shadcn/ui/input'import { useParams } from 'common'import { UseFormReturn } from 'react-hook-form'import {- cn,FormControl,FormField,FormInputGroupInput,@@ -30,7 +28,7 @@ export const AutoScaleFields = ({ form }: AutoScaleFieldProps) => {} = formconst { totalSize, growthPercent, maxSizeGb, minIncrementGb } = form.watch()- const { error, isPending: isLoading, isError } = useDiskAutoscaleCustomConfigQuery({ projectRef })+ const { isError } = useDiskAutoscaleCustomConfigQuery({ projectRef })const _growthPercent = growthPercent ?? DISK_AUTOSCALE_CONFIG_DEFAULTS.growthPercentconst _minIncrementGb = minIncrementGb ?? DISK_AUTOSCALE_CONFIG_DEFAULTS.minIncrementSizediff --git a/apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx b/apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsxindex 04dc1de9d31..51f3f239dc5 100644--- a/apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx+++ b/apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx@@ -58,7 +58,7 @@ export function ComputeSizeField({ form, disabled }: ComputeSizeFieldProps) {const showComputePrice = useIsFeatureEnabled('project_addons:show_compute_price')- const { computeSize, storageType } = form.watch()+ const { computeSize } = form.watch()const {data: addons,diff --git a/apps/studio/components/interfaces/DiskManagement/fields/IOPSField.tsx b/apps/studio/components/interfaces/DiskManagement/fields/IOPSField.tsxindex 12ad6681f95..540689bce5a 100644--- a/apps/studio/components/interfaces/DiskManagement/fields/IOPSField.tsx+++ b/apps/studio/components/interfaces/DiskManagement/fields/IOPSField.tsx@@ -1,4 +1,3 @@-import { InputVariants } from '@ui/components/shadcn/ui/input'import { useParams } from 'common'import { UseFormReturn } from 'react-hook-form'import {@@ -36,7 +35,7 @@ export function IOPSField({ form, disableInput }: IOPSFieldProps) {const watchedComputeSize = watch('computeSize')const watchedIOPS = watch('provisionedIOPS') ?? 0- const { isPending: isLoading, error, isError } = useDiskAttributesQuery({ projectRef })+ const { isError } = useDiskAttributesQuery({ projectRef })const iopsPrice = calculateIOPSPrice({oldStorageType: formState.defaultValues?.storageType as DiskType,diff --git a/apps/studio/components/interfaces/DiskManagement/fields/ThroughputField.tsx b/apps/studio/components/interfaces/DiskManagement/fields/ThroughputField.tsxindex 26267c62fe7..518d86d7604 100644--- a/apps/studio/components/interfaces/DiskManagement/fields/ThroughputField.tsx+++ b/apps/studio/components/interfaces/DiskManagement/fields/ThroughputField.tsx@@ -1,4 +1,3 @@-import { InputVariants } from '@ui/components/shadcn/ui/input'import { useParams } from 'common'import { AnimatePresence, motion } from 'framer-motion'import { useEffect } from 'react'@@ -39,7 +38,7 @@ export function ThroughputField({ form, disableInput }: ThroughputFieldProps) {const watchedComputeSize = watch('computeSize')const throughput_mbps = formState.defaultValues?.throughput- const { isPending: isLoading, error } = useDiskAttributesQuery({ projectRef })+ useDiskAttributesQuery({ projectRef })const throughputPrice = calculateThroughputPrice({storageType: form.getValues('storageType') as DiskType,diff --git a/apps/studio/components/interfaces/DiskManagement/ui/DiskManagementReadReplicas.tsx b/apps/studio/components/interfaces/DiskManagement/ui/DiskManagementReadReplicas.tsxindex 2bbc81edadc..6e1acdac2e1 100644--- a/apps/studio/components/interfaces/DiskManagement/ui/DiskManagementReadReplicas.tsx+++ b/apps/studio/components/interfaces/DiskManagement/ui/DiskManagementReadReplicas.tsx@@ -24,7 +24,7 @@ interface DiskManagementDiskSizeReadReplicasProps {export const DiskManagementDiskSizeReadReplicas = ({isDirty,totalSize,- usedSize,+ usedSize: _usedSize,newTotalSize,oldStorageType,newStorageType,diff --git a/apps/studio/components/interfaces/Docs/Pages/UserManagement.tsx b/apps/studio/components/interfaces/Docs/Pages/UserManagement.tsxindex 776c904d21a..0e937747149 100644--- a/apps/studio/components/interfaces/Docs/Pages/UserManagement.tsx+++ b/apps/studio/components/interfaces/Docs/Pages/UserManagement.tsx@@ -1,5 +1,4 @@import { useParams } from 'common'-import { useRouter } from 'next/router'import CodeSnippet from '../CodeSnippet'import { DocSection } from '../DocSection'@@ -18,7 +17,6 @@ interface UserManagementProps {}export const UserManagement = ({ selectedLang, showApiKey }: UserManagementProps) => {- const router = useRouter()const { ref: projectRef } = useParams()const keyToShow = showApiKey ? showApiKey : 'SUPABASE_KEY'diff --git a/apps/studio/components/interfaces/Functions/FunctionsEmptyState.tsx b/apps/studio/components/interfaces/Functions/FunctionsEmptyState.tsxindex 371cd81d5e0..f9f0917beac 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, Github, Lock, Play, Server, Terminal } from 'lucide-react'+import { Code, Github, Play, Server, Terminal } from 'lucide-react'import Link from 'next/link'import { useRouter } from 'next/router'import { parseAsString, useQueryState } from 'nuqs'diff --git a/apps/studio/components/interfaces/Home/AdvisorWidget.tsx b/apps/studio/components/interfaces/Home/AdvisorWidget.tsxindex c24d92a392a..683999bb061 100644--- a/apps/studio/components/interfaces/Home/AdvisorWidget.tsx+++ b/apps/studio/components/interfaces/Home/AdvisorWidget.tsx@@ -126,7 +126,7 @@ export const AdvisorWidget = () => {) => {const topIssues = lints.filter((lint) => lint.level === LINTER_LEVELS.ERROR || lint.level === LINTER_LEVELS.WARN)- .sort((a, b) => (a.level === LINTER_LEVELS.ERROR ? -1 : 1))+ .sort((a, _b) => (a.level === LINTER_LEVELS.ERROR ? -1 : 1))return (<div className="h-full">diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx b/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsxindex 4fb12281e18..ed387e578bc 100644--- a/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx+++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectList.tsx@@ -15,8 +15,6 @@ import {TableRow,} from 'ui'-import { ErrorMatcher } from '../../ErrorHandling/ErrorMatcher'-import { TroubleshootingAccordion } from '../../ErrorHandling/TroubleshootingAccordion'import { LoadingCardView, LoadingTableView, NoProjectsState } from './EmptyStates'import { LoadMoreRows } from './LoadMoreRow'import { ProjectCard } from './ProjectCard'diff --git a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.tsx b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.tsxindex d6878879767..3d53bf07f86 100644--- a/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.tsx+++ b/apps/studio/components/interfaces/Integrations/CronJobs/CronJobsTab.tsx@@ -14,14 +14,12 @@ import { useCronJobsData } from './CronJobsTab.useCronJobsData'import { DeleteCronJob } from './DeleteCronJob'import { CreateCronJobSheet } from '@/components/interfaces/Integrations/CronJobs/CreateCronJobSheet/CreateCronJobSheet'import { CronJob } from '@/data/database-cron-jobs/database-cron-jobs-infinite-query'-import { useDatabaseExtensionsQuery } from '@/data/database-extensions/database-extensions-query'import { useSendEventMutation } from '@/data/telemetry/send-event-mutation'import { useInfiniteScroll } from '@/hooks/misc/useInfiniteScroll'import { useSelectedOrganizationQuery } from '@/hooks/misc/useSelectedOrganization'import { useSelectedProjectQuery } from '@/hooks/misc/useSelectedProject'import { cleanPointerEventsNoneOnBody } from '@/lib/helpers'import { createNavigationHandler } from '@/lib/navigation'-import { isGreaterThanOrEqual } from '@/lib/semver'const EMPTY_CRON_JOB = { jobname: '', schedule: '', active: true, command: '' }@@ -60,16 +58,6 @@ export const CronjobsTab = () => {const [, setCronJobForDeletion] = useQueryState('delete', parseAsString)- const { data: extensions = [] } = useDatabaseExtensionsQuery({- projectRef: project?.ref,- connectionString: project?.connectionString,- })-- const pgCronExtension = extensions.find((ext) => ext.name === 'pg_cron')- const supportsSeconds = pgCronExtension?.installed_version- ? isGreaterThanOrEqual(pgCronExtension.installed_version, '1.5')- : false-const { mutate: sendEvent } = useSendEventMutation()const columns = useMemo(diff --git a/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/index.tsx b/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/index.tsxindex 4210b212080..d67884ead4a 100644--- a/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/index.tsx+++ b/apps/studio/components/interfaces/Integrations/Integration/IntegrationOverviewTabV2/index.tsx@@ -5,7 +5,6 @@ import { cn } from 'ui'import { useAvailableIntegrations } from '../../Landing/useAvailableIntegrations'import { FilesViewer } from './FilesViewer'import { MarkdownContent } from './MarkdownContent'-import { Markdown } from '@/components/interfaces/Markdown'import { InlineLinkClassName } from '@/components/ui/InlineLink'const getSiteUrlLabel = (url: string | undefined | null) => {diff --git a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsx b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsxindex 018b1d43f25..55b7418278e 100644--- a/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsx+++ b/apps/studio/components/interfaces/Integrations/Queues/SingleQueue/QueueDataGrid.tsx@@ -1,6 +1,5 @@import dayjs from 'dayjs'import { TextSearch } from 'lucide-react'-import { useRouter } from 'next/router'import { parseAsInteger, useQueryState } from 'nuqs'import { UIEvent, useMemo, useRef } from 'react'import DataGrid, { Column, DataGridHandle, Row } from 'react-data-grid'@@ -138,7 +137,6 @@ export const QueueMessagesDataGrid = ({fetchNextPage,}: QueueDataGridProps) => {const gridRef = useRef<DataGridHandle>(null)- const router = useRouter()const [selectedMessageId, setSelectedMessageId] = useQueryState('messageId', parseAsInteger)diff --git a/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationConnection.tsx b/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationConnection.tsxindex 14055ffcdd8..ae5e000ff41 100644--- a/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationConnection.tsx+++ b/apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationConnection.tsx@@ -29,7 +29,7 @@ interface IntegrationConnectionItemProps extends IntegrationConnectionProps {}export const IntegrationConnectionItem = forwardRef<HTMLLIElement, IntegrationConnectionItemProps>(- ({ disabled, onDeleteConnection, ...props }, ref) => {+ ({ disabled, onDeleteConnection, ...props }, _ref) => {const router = useRouter()const { data: org } = useSelectedOrganizationQuery()diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/CreateIcebergWrapperSheet.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/CreateIcebergWrapperSheet.tsxindex 2e53268d6e7..72e38e34a8c 100644--- a/apps/studio/components/interfaces/Integrations/Wrappers/CreateIcebergWrapperSheet.tsx+++ b/apps/studio/components/interfaces/Integrations/Wrappers/CreateIcebergWrapperSheet.tsx@@ -1,5 +1,5 @@import { zodResolver } from '@hookform/resolvers/zod'-import { useEffect, useMemo, useRef, useState } from 'react'+import { useEffect, useRef } from 'react'import { SubmitHandler, useForm, useWatch } from 'react-hook-form'import { toast } from 'sonner'import {@@ -49,8 +49,6 @@ const S3TableSchema = z.object({region_name: z.string().min(1, 'Required'),vault_aws_s3table_bucket_arn: z.string().min(1, 'Required'),})-type S3TableSchemaType = z.infer<typeof S3TableSchema>-const R2CatalogSchema = z.object({target: z.literal('R2Catalog'),source_schema: z.string().min(1, 'Please provide a namespace name'),@@ -63,8 +61,6 @@ const R2CatalogSchema = z.object({s3: z.object({ endpoint: z.string().min(1, 'Required') }),catalog_uri: z.string().min(1, 'Required'),})-type R2CatalogSchemaType = z.infer<typeof R2CatalogSchema>-const IcebergRestCatalogSchema = z.object({target: z.literal('IcebergRestCatalog'),source_schema: z.string().min(1, 'Please provide a namespace name'),@@ -79,8 +75,6 @@ const IcebergRestCatalogSchema = z.object({s3: z.object({ endpoint: z.string().min(1, 'Required') }),catalog_uri: z.string().optional(),})-type IcebergRestCatalogSchemaType = z.infer<typeof IcebergRestCatalogSchema>-const formSchema = z.discriminatedUnion('target', [S3TableSchema,R2CatalogSchema,diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/CreateWrapperSheet.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/CreateWrapperSheet.tsxindex 16251167fbb..89fbdf704f2 100644--- a/apps/studio/components/interfaces/Integrations/Wrappers/CreateWrapperSheet.tsx+++ b/apps/studio/components/interfaces/Integrations/Wrappers/CreateWrapperSheet.tsx@@ -133,7 +133,7 @@ export const CreateWrapperSheet = ({}const { mutateAsync: createFDW, isPending: isCreatingWrapper } = useFDWCreateMutation({- onSuccess: (data) => {+ onSuccess: () => {toast.success(`Successfully created ${wrapperMeta?.label} foreign data wrapper`)const { tables } = getValues()diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/EditWrapperSheet.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/EditWrapperSheet.tsxindex 1027d46bec7..7dab9f87488 100644--- a/apps/studio/components/interfaces/Integrations/Wrappers/EditWrapperSheet.tsx+++ b/apps/studio/components/interfaces/Integrations/Wrappers/EditWrapperSheet.tsx@@ -2,7 +2,7 @@ import { zodResolver } from '@hookform/resolvers/zod'import { useQueryClient } from '@tanstack/react-query'import { compact } from 'lodash'import { Edit, Trash } from 'lucide-react'-import { useCallback, useEffect, useMemo, useRef, useState } from 'react'+import { useEffect, useMemo, useState } from 'react'import { SubmitHandler, useFieldArray, useForm, useWatch } from 'react-hook-form'import { toast } from 'sonner'import {@@ -96,7 +96,7 @@ export const EditWrapperSheet = ({resolver: zodResolver(formSchema),})- const { getValues, reset, resetField, setError } = form+ const { getValues, resetField, setError } = formconst { errors, isDirty, isSubmitting } = form.formStateconst {diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/WrapperTableEditor.tsx b/apps/studio/components/interfaces/Integrations/Wrappers/WrapperTableEditor.tsxindex cc2499b30ff..ba2a6122402 100644--- a/apps/studio/components/interfaces/Integrations/Wrappers/WrapperTableEditor.tsx+++ b/apps/studio/components/interfaces/Integrations/Wrappers/WrapperTableEditor.tsx@@ -449,7 +449,7 @@ const TableForm = ({/><MultiSelectorContent><MultiSelectorList>- {table.availableColumns!.map((availableColumn, index) => (+ {table.availableColumns!.map((availableColumn) => (<MultiSelectorItemkey={availableColumn.name}value={availableColumn.name}diff --git a/apps/studio/components/interfaces/Integrations/Wrappers/Wrappers.utils.test.ts b/apps/studio/components/interfaces/Integrations/Wrappers/Wrappers.utils.test.tsindex 4011ebe562d..cd1436abd14 100644--- a/apps/studio/components/interfaces/Integrations/Wrappers/Wrappers.utils.test.ts+++ b/apps/studio/components/interfaces/Integrations/Wrappers/Wrappers.utils.test.ts@@ -1,6 +1,6 @@import { describe, expect, it } from 'vitest'-import { SUPABASE_TARGET_SCHEMA_OPTION, WRAPPER_HANDLERS, WRAPPERS } from './Wrappers.constants'+import { SUPABASE_TARGET_SCHEMA_OPTION, WRAPPER_HANDLERS } from './Wrappers.constants'import { Table } from './Wrappers.types'import {getEditionFormSchema,diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/InstallationError.tsx b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/InstallationError.tsxindex 8301cdc5ceb..1ea96e263c3 100644--- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/InstallationError.tsx+++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/InstallationError.tsx@@ -1,9 +1,7 @@-import { useParams } from 'common'import { Button } from 'ui'import { useStripeSyncStatus } from './useStripeSyncStatus'import AlertError from '@/components/ui/AlertError'-import { useSelectedProjectQuery } from '@/hooks/misc/useSelectedProject'export const InstallationError = ({error,diff --git a/apps/studio/components/interfaces/LocalDropdown.tsx b/apps/studio/components/interfaces/LocalDropdown.tsxindex 48e73e7bdf9..7348beee692 100644--- a/apps/studio/components/interfaces/LocalDropdown.tsx+++ b/apps/studio/components/interfaces/LocalDropdown.tsx@@ -3,7 +3,6 @@ import { useTheme } from 'next-themes'import Link from 'next/link'import { useRouter } from 'next/router'import {- Button,cn,DropdownMenu,DropdownMenuContent,diff --git a/apps/studio/components/interfaces/LogDrains/LogDrains.tsx b/apps/studio/components/interfaces/LogDrains/LogDrains.tsxindex f65e3981d62..10320452c4d 100644--- a/apps/studio/components/interfaces/LogDrains/LogDrains.tsx+++ b/apps/studio/components/interfaces/LogDrains/LogDrains.tsx@@ -1,5 +1,5 @@import { IS_PLATFORM, useFlag, useParams } from 'common'-import { MoreHorizontal, Pencil, TrashIcon } from 'lucide-react'+import { MoreHorizontal, TrashIcon } from 'lucide-react'import { cloneElement, useState } from 'react'import { toast } from 'sonner'import {@@ -32,7 +32,7 @@ import { useTrack } from '@/lib/telemetry/track'export function LogDrains({onNewDrainClick,- onUpdateDrainClick,+ onUpdateDrainClick: _onUpdateDrainClick,}: {onNewDrainClick: (src: LogDrainType) => voidonUpdateDrainClick: (drain: LogDrainData) => void@@ -46,7 +46,6 @@ export function LogDrains({const {data: logDrains,isPending: isLoading,- refetch,error,isError,} = useLogDrainsQuery(diff --git a/apps/studio/components/interfaces/Observability/DatabaseInfrastructureSection.tsx b/apps/studio/components/interfaces/Observability/DatabaseInfrastructureSection.tsxindex c5d2e2c9de0..1c3d61525fe 100644--- a/apps/studio/components/interfaces/Observability/DatabaseInfrastructureSection.tsx+++ b/apps/studio/components/interfaces/Observability/DatabaseInfrastructureSection.tsx@@ -2,7 +2,6 @@ import { useParams } from 'common'import dayjs from 'dayjs'import Link from 'next/link'import { useMemo } from 'react'-import { cn } from 'ui'import {MetricCard,MetricCardContent,@@ -31,8 +30,8 @@ type DatabaseInfrastructureSectionProps = {export const DatabaseInfrastructureSection = ({interval,refreshKey,- dbErrorRate,- isLoading: dbLoading,+ dbErrorRate: _dbErrorRate,+ isLoading: _dbLoading,slowQueriesCount = 0,slowQueriesLoading = false,}: DatabaseInfrastructureSectionProps) => {diff --git a/apps/studio/components/interfaces/Observability/DatabaseInfrastructureSection.utils.ts b/apps/studio/components/interfaces/Observability/DatabaseInfrastructureSection.utils.tsindex 49c420e85b1..03cf8e4ebbc 100644--- a/apps/studio/components/interfaces/Observability/DatabaseInfrastructureSection.utils.ts+++ b/apps/studio/components/interfaces/Observability/DatabaseInfrastructureSection.utils.ts@@ -1,7 +1,4 @@-import type {- InfraMonitoringMultiResponse,- InfraMonitoringResponse,-} from '@/data/analytics/infra-monitoring-query'+import type { InfraMonitoringResponse } from '@/data/analytics/infra-monitoring-query'type NumericValue = string | number | undefineddiff --git a/apps/studio/components/interfaces/Observability/ServiceHealthCard.tsx b/apps/studio/components/interfaces/Observability/ServiceHealthCard.tsxindex 045d2b56867..16bcc6697fb 100644--- a/apps/studio/components/interfaces/Observability/ServiceHealthCard.tsx+++ b/apps/studio/components/interfaces/Observability/ServiceHealthCard.tsx@@ -30,7 +30,7 @@ export type ServiceHealthCardProps = {export const ServiceHealthCard = ({serviceName,- serviceKey,+ serviceKey: _serviceKey,total,errorRate,errorCount,@@ -42,7 +42,7 @@ export const ServiceHealthCard = ({onBarClick,datetimeFormat,}: ServiceHealthCardProps) => {- const { status, color } = getHealthStatus(errorRate, total)+ const { color } = getHealthStatus(errorRate, total)return (<Card className="mb-0 md:mb-0 h-full flex flex-col">diff --git a/apps/studio/components/interfaces/Observability/usePostgrestOverviewMetrics.ts b/apps/studio/components/interfaces/Observability/usePostgrestOverviewMetrics.tsindex 873b60ee3ed..13f0e43c01d 100644--- a/apps/studio/components/interfaces/Observability/usePostgrestOverviewMetrics.ts+++ b/apps/studio/components/interfaces/Observability/usePostgrestOverviewMetrics.ts@@ -1,7 +1,6 @@import { useQuery } from '@tanstack/react-query'import type { LogsBarChartDatum } from '../ProjectHome/ProjectUsage.metrics'-import { generateRegexpWhere } from '../Reports/Reports.constants'import { get } from '@/data/fetchers'type PostgrestMetricsVariables = {diff --git a/apps/studio/components/interfaces/Observability/useSlowQueriesCount.ts b/apps/studio/components/interfaces/Observability/useSlowQueriesCount.tsindex b7944f87a1c..78664c0fd18 100644--- a/apps/studio/components/interfaces/Observability/useSlowQueriesCount.ts+++ b/apps/studio/components/interfaces/Observability/useSlowQueriesCount.ts@@ -22,7 +22,7 @@ export function buildSlowQueriesCountSql(): string {`}-export const useSlowQueriesCount = (projectRef?: string, refreshKey: number = 0) => {+export const useSlowQueriesCount = (_projectRef?: string, refreshKey: number = 0) => {// refreshKey is used in useMemo to force recomputation when refresh is triggeredconst sql = useMemo(() => buildSlowQueriesCountSql(),diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingEmail.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingEmail.tsxindex 41009eabb64..2c843d8b112 100644--- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingEmail.tsx+++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingEmail.tsx@@ -188,7 +188,7 @@ const BillingEmail = () => {{Array.isArray(additionalEmailsError) &&additionalEmailsError.length > 0 && (<div className="flex flex-col gap-y-1 mt-2">- {additionalEmailsError.map((x, idx) => (+ {additionalEmailsError.map((_x, idx) => (<pkey={`email-error-${idx}`}className="text-sm text-destructive"diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/CreditTopUp.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/CreditTopUp.tsxindex 02cb251723b..143ad324e0c 100644--- a/apps/studio/components/interfaces/Organization/BillingSettings/CreditTopUp.tsx+++ b/apps/studio/components/interfaces/Organization/BillingSettings/CreditTopUp.tsx@@ -177,7 +177,7 @@ export const CreditTopUp = ({ slug }: { slug: string | undefined }) => {const [paymentIntentSecret, setPaymentIntentSecret] = useState('')const [paymentIntentConfirmation, setPaymentIntentConfirmation] = useState<PaymentIntentResult>()- const onSubmit: SubmitHandler<CreditTopUpForm> = async ({ amount, paymentMethod }) => {+ const onSubmit: SubmitHandler<CreditTopUpForm> = async ({ amount }) => {setPaymentIntentConfirmation(undefined)const token = await initHcaptcha()diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/MemberRow.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/MemberRow.tsxindex 8c8346876bf..cfcb0dd70de 100644--- a/apps/studio/components/interfaces/Organization/TeamSettings/MemberRow.tsx+++ b/apps/studio/components/interfaces/Organization/TeamSettings/MemberRow.tsx@@ -47,8 +47,6 @@ export const MemberRow = ({ member }: MemberRowProps) => {useMemo(() => projectsData?.pages.flatMap((page) => page.projects), [projectsData?.pages]) || []const isInvitedUser = Boolean(member.invited_id)- const isEmailUser = member.username === member.primary_email- const isFlyUser = Boolean(member.primary_email?.endsWith('customer.fly.io'))// Use generic avatar for all team members instead of attempting to fetch from GitHubconst profileImageUrl = undefineddiff --git a/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsxindex ea770ad9aa3..d57e5d55e2b 100644--- a/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx+++ b/apps/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx@@ -1,9 +1,8 @@import { useParams } from 'common'import { partition } from 'lodash'-import { AlertCircle, HelpCircle } from 'lucide-react'+import { AlertCircle } from 'lucide-react'import { useMemo } from 'react'import {- Button,Card,Loading,Table,@@ -13,9 +12,6 @@ import {TableHead,TableHeader,TableRow,- Tooltip,- TooltipContent,- TooltipTrigger,} from 'ui'import { Admonition } from 'ui-patterns'import { GenericSkeletonLoader } from 'ui-patterns/ShimmeringLoader'@@ -24,7 +20,6 @@ import { MemberRow } from './MemberRow'import AlertError from '@/components/ui/AlertError'import { useOrganizationRolesV2Query } from '@/data/organization-members/organization-roles-query'import { useOrganizationMembersQuery } from '@/data/organizations/organization-members-query'-import { DOCS_URL } from '@/lib/constants'import { useProfile } from '@/lib/profile'export interface MembersViewProps {diff --git a/apps/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsx b/apps/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsxindex 3e5023802d0..172f8c25653 100644--- a/apps/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsx+++ b/apps/studio/components/interfaces/Organization/Usage/SizeAndCounts.tsx@@ -1,11 +1,7 @@import { dailyUsageToDataPoints } from './Usage.utils'import UsageSection from './UsageSection/UsageSection'import { DataPoint } from '@/data/analytics/constants'-import {- PricingMetric,- useOrgDailyStatsQuery,- type OrgDailyUsageResponse,-} from '@/data/analytics/org-daily-stats-query'+import { PricingMetric, type OrgDailyUsageResponse } from '@/data/analytics/org-daily-stats-query'import type { OrgSubscription } from '@/data/subscriptions/types'export interface SizeAndCountsProps {diff --git a/apps/studio/components/interfaces/Organization/Usage/Usage.utils.ts b/apps/studio/components/interfaces/Organization/Usage/Usage.utils.tsindex 4e90d06ff82..cdddf90aad8 100644--- a/apps/studio/components/interfaces/Organization/Usage/Usage.utils.ts+++ b/apps/studio/components/interfaces/Organization/Usage/Usage.utils.ts@@ -9,7 +9,7 @@ import { useIsFeatureEnabled } from '@/hooks/misc/useIsFeatureEnabled'// [Joshen] This is just for development to generate some test data for chart renderingexport const generateUsageData = (attribute: string, days: number): DataPoint[] => {const tempArray = new Array(days).fill(0)- return tempArray.map((x, idx) => {+ return tempArray.map((_x, idx) => {return {loopId: (idx + 1).toString(),period_start: `${idx + 1}`,diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsxindex 3ae572e3754..943a9cb42f2 100644--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsx+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksDeliveryDetailsSheet.tsx@@ -1,6 +1,5 @@import { Copy, RotateCcw } from 'lucide-react'import {- AlertDialog,Badge,Button,Card,diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksEndpointSheet.tsxindex 0595578337a..a89e1f6d614 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, Trash2 } from 'lucide-react'+import { ChevronDown } from 'lucide-react'import { useEffect, useMemo, useState } from 'react'import { useForm } from 'react-hook-form'import {diff --git a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksHeader.tsx b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksHeader.tsxindex 8519ca5951f..1ef400f88d5 100644--- a/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksHeader.tsx+++ b/apps/studio/components/interfaces/Platform/Webhooks/PlatformWebhooksHeader.tsx@@ -7,7 +7,6 @@ import {BreadcrumbList_Shadcn_ as BreadcrumbList,BreadcrumbPage_Shadcn_ as BreadcrumbPage,BreadcrumbSeparator_Shadcn_ as BreadcrumbSeparator,- Button,} from 'ui'import {PageHeader,diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Bucket.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Bucket.tsxindex 86408805af1..c6087313eb6 100644--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Bucket.tsx+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Bucket.tsx@@ -1,4 +1,3 @@-import { useQueryClient } from '@tanstack/react-query'import { useParams } from 'common'import { Badge } from 'ui'@@ -10,7 +9,6 @@ import { formatBytes } from '@/lib/helpers'import { useAppStateSnapshot } from '@/state/app-state'export const Bucket = ({ language, apikey, endpoint }: ContentProps) => {- const queryClient = useQueryClient()const { ref } = useParams()const snap = useAppStateSnapshot()diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsxindex 4448023a08f..edd39a496d1 100644--- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx+++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Introduction.tsx@@ -17,7 +17,7 @@ export const Introduction = ({ showKeys, language, apikey, endpoint }: ContentPrconst { ref } = useParams()const { can: canReadAPIKeys } = useAsyncCheckPermissions(PermissionAction.SECRETS_READ, '*')const { data: apiKeys } = useAPIKeysQuery({ projectRef: ref }, { enabled: canReadAPIKeys })- const { data } = useProjectSettingsV2Query({ projectRef: ref })+ useProjectSettingsV2Query({ projectRef: ref })const { data: org } = useSelectedOrganizationQuery()const { mutate: sendEvent } = useSendEventMutation()diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts b/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.tsindex b3caaed05ff..e08fce7e210 100644--- a/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts+++ b/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts@@ -26,7 +26,7 @@ export const DOCS_CONTENT = {category: API_DOCS_CATEGORIES.INTRODUCTION,title: `Connect to your project`,description: `Projects have a RESTful endpoint that you can use with your project's API key to query and manage your database. Put these keys in your .env file.`,- js: (apikey?: string, endpoint?: string) => `+ js: (_apikey?: string, endpoint?: string) => `import { createClient } from '@supabase/supabase-js'const supabaseUrl = '${endpoint}'@@ -45,7 +45,7 @@ In this documentation, we will refer to the key using the name \`SUPABASE_KEY\`.const SUPABASE_KEY = '${apikey}'const SUPABASE_URL = '${endpoint}'const supabase = createClient(SUPABASE_URL, process.env.SUPABASE_KEY);`,- bash: (apikey?: string, endpoint?: string) => `${apikey}`,+ bash: (apikey?: string, _endpoint?: string) => `${apikey}`,},serviceApiKeys: {key: 'service-keys',@@ -58,7 +58,7 @@ In this documentation, we refer to the key using the name \`SERVICE_KEY\`. You cconst SUPABASE_KEY = '${apikey}'const SUPABASE_URL = 'https://${endpoint}'const supabase = createClient(SUPABASE_URL, process.env.SUPABASE_KEY);`,- bash: (apikey?: string, endpoint?: string) => `${apikey}`,+ bash: (apikey?: string, _endpoint?: string) => `${apikey}`,},// User ManagementuserManagement: {@@ -80,7 +80,7 @@ const supabase = createClient(SUPABASE_URL, process.env.SUPABASE_KEY);`,description: `Allow your users to sign up and create a new accountAfter they have signed up, all interactions using the Supabase client will be performed as "that user".`,- js: (apikey?: string, endpoint?: string) => `+ js: (_apikey?: string, _endpoint?: string) => `const { data, error } = await supabase.auth.signUp({email: '[email protected]',password: 'some-secure-password'@@ -102,7 +102,7 @@ curl -X POST '${endpoint}/auth/v1/signup' \\If an account is created, users can login to your app.After they have logged in, all interactions using the Supabase JS client will be performed as "that user".`,- js: (apikey?: string, endpoint?: string) => `+ js: (_apikey?: string, _endpoint?: string) => `const { data, error } = await supabase.auth.signInWithPassword({email: '[email protected]',password: 'some-secure-password'@@ -126,7 +126,7 @@ curl -X POST '${endpoint}/auth/v1/token?grant_type=password' \\Send a user a passwordless link which they can use to redeem an access_token.After they have clicked the link, all interactions using the Supabase JS client will be performed as "that user".`,- js: (apikey?: string, endpoint?: string) => `+ js: (_apikey?: string, _endpoint?: string) => `const { data, error } = await supabase.auth.signInWithOtp({email: '[email protected]'})@@ -150,7 +150,7 @@ A phone number can be used instead of an email as a primary account confirmationThe user will receive a mobile OTP via sms with which they can verify that they control the phone number.You must enter your own twilio credentials on the auth settings page to enable sms confirmations.`,- js: (apikey?: string, endpoint?: string) => `+ js: (_apikey?: string, _endpoint?: string) => `const { data, error } = await supabase.auth.signUp({phone: '+13334445555',password: 'some-password'@@ -174,7 +174,7 @@ curl -X POST '${endpoint}/auth/v1/signup' \\SMS OTPs work like magic links, except you have to provide an interface for the user to verify the 6 digit number they receive.You must enter your own twilio credentials on the auth settings page to enable SMS-based Logins.`,- js: (apikey?: string, endpoint?: string) => `+ js: (_apikey?: string, _endpoint?: string) => `const { data, error } = await supabase.auth.signInWithOtp({phone: '+13334445555'})@@ -196,7 +196,7 @@ curl -X POST '${endpoint}/auth/v1/otp' \\Once the user has received the OTP, have them enter it in a form and send it for verificationYou must enter your own twilio credentials on the auth settings page to enable SMS-based OTP verification.`,- js: (apikey?: string, endpoint?: string) => `+ js: (_apikey?: string, _endpoint?: string) => `const { data, error } = await supabase.auth.verifyOtp({phone: '+13334445555',token: '123456',@@ -226,19 +226,19 @@ View all the available [Third Party OAuth providers](https://supabase.com).After they have logged in, all interactions using the Supabase JS client will be performed as "that user".Generate your Client ID and secret from: [Google](https://console.developers.google.com/apis/credentials), [Github](https://github.com/settings/applications/new), [Gitlab](https://gitlab.com/oauth/applications), [Facebook](https://developers.facebook.com/apps), and [Bitbucket](https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud).`,- js: (apikey?: string, endpoint?: string) => `+ js: (_apikey?: string, _endpoint?: string) => `const { data, error } = await supabase.auth.signInWithOAuth({provider: 'github'})`,- bash: (apikey?: string, endpoint?: string) => `No available command`,+ bash: (_apikey?: string, _endpoint?: string) => `No available command`,},user: {key: 'get-user',category: API_DOCS_CATEGORIES.USER_MANAGEMENT,title: `Get user`,description: `Get the JSON object for the logged in user.`,- js: (apikey?: string, endpoint?: string) => `+ js: (_apikey?: string, _endpoint?: string) => `const { data: { user } } = await supabase.auth.getUser()`,bash: (apikey?: string, endpoint?: string) => `@@ -252,7 +252,7 @@ curl -X GET '${endpoint}/auth/v1/user' \\category: API_DOCS_CATEGORIES.USER_MANAGEMENT,title: `Forgot password / email`,description: `Sends the user a log in link via email. Once logged in you should direct the user to a new password form. And use "Update User" below to save the new password.`,- js: (apikey?: string, endpoint?: string) => `+ js: (_apikey?: string, _endpoint?: string) => `const { data, error } = await supabase.auth.resetPasswordForEmail(email)`,bash: (apikey?: string, endpoint?: string) => `@@ -269,7 +269,7 @@ curl -X POST '${endpoint}/auth/v1/recover' \\category: API_DOCS_CATEGORIES.USER_MANAGEMENT,title: `Update User`,description: `Update the user with a new email or password. Each key (email, password, and data) is optional.`,- js: (apikey?: string, endpoint?: string) => `+ js: (_apikey?: string, _endpoint?: string) => `const { data, error } = await supabase.auth.updateUser({email: "[email protected]",password: "new-password",@@ -295,7 +295,7 @@ curl -X PUT '${endpoint}/auth/v1/user' \\category: API_DOCS_CATEGORIES.USER_MANAGEMENT,title: `Log out`,description: `After calling log out, all interactions using the Supabase JS client will be "anonymous".`,- js: (apikey?: string, endpoint?: string) => `+ js: (_apikey?: string, _endpoint?: string) => `const { error } = await supabase.auth.signOut()`,bash: (apikey?: string, endpoint?: string) => `@@ -315,7 +315,7 @@ Send a user a passwordless link which they can use to sign up and log in.After they have clicked the link, all interactions using the Supabase JS client will be performed as "that user".This endpoint requires you use the \`service_role_key\` when initializing the client, and should only be invoked from the server, never from the client.`,- js: (apikey?: string, endpoint?: string) => `+ js: (_apikey?: string, _endpoint?: string) => `const { data, error } = await supabase.auth.api.inviteUserByEmail('[email protected]')`,bash: (apikey?: string, endpoint?: string) => `@@ -424,7 +424,7 @@ If you have a GraphQL background, you might be wondering if you can fetch your dStill want GraphQL?If you still want to use GraphQL, you can. Supabase provides you with a full Postgres database, so as long as your middleware can connect to the database then you can still use the tools you love. You can find the database connection details [in the settings](/project/[ref]/database/settings).`,- js: (apikey?: string, endpoint?: string) => `+ js: (_apikey?: string, _endpoint?: string) => `// With Apollo GraphQLconst { loading, error, data } = useQuery(gql\`query GetDogs {@@ -447,7 +447,7 @@ const { data, error } = await supabaseowner (id, name)\`)`,- bash: (apikey?: string, endpoint?: string) => `+ bash: (_apikey?: string, _endpoint?: string) => `// With Apollo GraphQLconst { loading, error, data } = useQuery(gql\`query GetDogs {@@ -1207,7 +1207,15 @@ RLS policy permissions required:- \`buckets\` table permissions: none- \`objects\` table permissions: none`,- code: ({ name, apikey, endpoint }: { name: string; apikey: string; endpoint: string }) => [+ code: ({+ name,+ apikey: _apikey,+ endpoint,+ }: {+ name: string+ apikey: string+ endpoint: string+ }) => [{key: 'storage-retrieve-public-url',title: undefined,diff --git a/apps/studio/components/interfaces/ProjectHome/ProjectUsageSection.tsx b/apps/studio/components/interfaces/ProjectHome/ProjectUsageSection.tsxindex 40c548d98ce..334e9bb4846 100644--- a/apps/studio/components/interfaces/ProjectHome/ProjectUsageSection.tsx+++ b/apps/studio/components/interfaces/ProjectHome/ProjectUsageSection.tsx@@ -10,11 +10,7 @@ import { LogsBarChart } from 'ui-patterns/LogsBarChart'import NoDataPlaceholder from '@/components/ui/Charts/NoDataPlaceholder'import { ChartIntervalDropdown } from '@/components/ui/Logs/ChartIntervalDropdown'import { CHART_INTERVALS } from '@/components/ui/Logs/logs.utils'-import {- ProjectLogStatsVariables,- UsageApiCounts,- useProjectLogStatsQuery,-} from '@/data/analytics/project-log-stats-query'+import { UsageApiCounts, useProjectLogStatsQuery } from '@/data/analytics/project-log-stats-query'import { useSendEventMutation } from '@/data/telemetry/send-event-mutation'import { useFillTimeseriesSorted } from '@/hooks/analytics/useFillTimeseriesSorted'import { useCheckEntitlements } from '@/hooks/misc/useCheckEntitlements'diff --git a/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsDetailSheet.tsx b/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsDetailSheet.tsxindex d6b710f720a..6714b1cbc1d 100644--- a/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsDetailSheet.tsx+++ b/apps/studio/components/interfaces/QueryInsights/QueryInsightsTable/QueryInsightsDetailSheet.tsx@@ -1,5 +1,4 @@import { Loader2 } from 'lucide-react'-import { useRef } from 'react'import {AiIconAnimation,Button,diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsxindex 575c41df55b..25fff1a3c89 100644--- a/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx+++ b/apps/studio/components/interfaces/QueryPerformance/QueryIndexes.tsx@@ -81,7 +81,7 @@ export const QueryIndexes = ({query: selectedRow?.['query'],})- const { data: extensions, isPending: isLoadingExtensions } = useDatabaseExtensionsQuery({+ const { isPending: isLoadingExtensions } = useDatabaseExtensionsQuery({projectRef: project?.ref,connectionString: project?.connectionString,})diff --git a/apps/studio/components/interfaces/QueryPerformance/hooks/useRolesFilter.ts b/apps/studio/components/interfaces/QueryPerformance/hooks/useRolesFilter.tsindex 567f66cf859..b38bfe99a75 100644--- a/apps/studio/components/interfaces/QueryPerformance/hooks/useRolesFilter.ts+++ b/apps/studio/components/interfaces/QueryPerformance/hooks/useRolesFilter.ts@@ -6,7 +6,6 @@ import {ROLE_INFO,RoleGroup,SUPABASE_SYSTEM_ROLES,- type KnownRole,} from '../constants/roles'import { useDatabaseRolesQuery } from '@/data/database-roles/database-roles-query'import { useSelectedProjectQuery } from '@/hooks/misc/useSelectedProject'diff --git a/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx b/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsxindex 44ade12b398..7a96a771db4 100644--- a/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx+++ b/apps/studio/components/interfaces/Realtime/RealtimeSettings.tsx@@ -45,11 +45,10 @@ export const RealtimeSettings = () => {const { ref: projectRef } = useParams()const { data: project } = useSelectedProjectQuery()const { data: organization, isSuccess: isSuccessOrganization } = useSelectedOrganizationQuery()- const {- can: canUpdateConfig,- isLoading: isLoadingPermissions,- isSuccess: isPermissionsLoaded,- } = useAsyncCheckPermissions(PermissionAction.REALTIME_ADMIN_READ, '*')+ const { can: canUpdateConfig, isSuccess: isPermissionsLoaded } = useAsyncCheckPermissions(+ PermissionAction.REALTIME_ADMIN_READ,+ '*'+ )const [isConfirmNextModalOpen, setIsConfirmNextModalOpen] = useState(false)@@ -57,12 +56,7 @@ export const RealtimeSettings = () => {projectRef: project?.ref,connectionString: project?.connectionString,})- const {- data,- error,- isPending: isLoading,- isError,- } = useRealtimeConfigurationQuery({+ const { data, error, isError } = useRealtimeConfigurationQuery({projectRef,})@@ -126,7 +120,7 @@ export const RealtimeSettings = () => {const isDisablingRealtime = !isRealtimeDisabled && suspendconst isEnablingRealtime = isRealtimeDisabled && !suspend- const onSubmit: SubmitHandler<z.infer<typeof FormSchema>> = (data) => {+ const onSubmit: SubmitHandler<z.infer<typeof FormSchema>> = (_data) => {if (!projectRef) return console.error('Project ref is required')setIsConfirmNextModalOpen(true)}diff --git a/apps/studio/components/interfaces/Reports/ReportBlock/ReportBlock.tsx b/apps/studio/components/interfaces/Reports/ReportBlock/ReportBlock.tsxindex 8c8392e4675..7c3cee56532 100644--- a/apps/studio/components/interfaces/Reports/ReportBlock/ReportBlock.tsx+++ b/apps/studio/components/interfaces/Reports/ReportBlock/ReportBlock.tsx@@ -162,7 +162,7 @@ export const ReportBlock = ({tooltip={{ content: { side: 'bottom', text: 'Remove chart' } }}/>}- onExecute={(queryType) => {+ onExecute={(_queryType) => {refetch()}}onUpdateChartConfig={onUpdateChart}diff --git a/apps/studio/components/interfaces/Reports/Reports.constants.ts b/apps/studio/components/interfaces/Reports/Reports.constants.tsindex a46de31a3d6..c4d565f1278 100644--- a/apps/studio/components/interfaces/Reports/Reports.constants.ts+++ b/apps/studio/components/interfaces/Reports/Reports.constants.ts@@ -380,7 +380,7 @@ limit 12queries: {mostFrequentlyInvoked: {queryType: 'db',- sql: (_params, where, orderBy, runIndexAdvisor = false, filterIndexAdvisor = false) => `+ sql: (_params, where, orderBy, runIndexAdvisor = false, _filterIndexAdvisor = false) => `-- reports-query-performance-most-frequently-invokedset search_path to public, extensions;@@ -437,7 +437,7 @@ select},mostTimeConsuming: {queryType: 'db',- sql: (_, where, orderBy, runIndexAdvisor = false, filterIndexAdvisor = false) => `+ sql: (_, where, orderBy, runIndexAdvisor = false, _filterIndexAdvisor = false) => `-- reports-query-performance-most-time-consumingset search_path to public, extensions;@@ -486,7 +486,7 @@ select},slowestExecutionTime: {queryType: 'db',- sql: (_params, where, orderBy, runIndexAdvisor = false, filterIndexAdvisor = false) => `+ sql: (_params, where, orderBy, runIndexAdvisor = false, _filterIndexAdvisor = false) => `-- reports-query-performance-slowest-execution-timeset search_path to public, extensions;@@ -654,7 +654,7 @@ select},queryMetrics: {queryType: 'db',- sql: (_params, where, orderBy, runIndexAdvisor = false, filterIndexAdvisor = false) => `+ sql: (_params, where, orderBy, _runIndexAdvisor = false, _filterIndexAdvisor = false) => `-- reports-query-performance-metricsset search_path to public, extensions;diff --git a/apps/studio/components/interfaces/Reports/Reports.tsx b/apps/studio/components/interfaces/Reports/Reports.tsxindex db80ac912dc..25e7f5762b3 100644--- a/apps/studio/components/interfaces/Reports/Reports.tsx+++ b/apps/studio/components/interfaces/Reports/Reports.tsx@@ -1,14 +1,11 @@import { PermissionAction } from '@supabase/shared-types/out/constants'import { useQueryClient } from '@tanstack/react-query'import { useParams } from 'common'-import dayjs from 'dayjs'import { groupBy, isEqual, isNull } from 'lodash'import { Plus, RefreshCw, Save } from 'lucide-react'-import { useRouter } from 'next/router'import { DragEvent, useEffect, useState } from 'react'import { toast } from 'sonner'import { Button, cn, DropdownMenu, DropdownMenuContent, DropdownMenuTrigger, LogoLoader } from 'ui'-import ConfirmationModal from 'ui-patterns/Dialogs/ConfirmationModal'import { createSqlSnippetSkeletonV2 } from '../SQLEditor/SQLEditor.utils'import { ChartConfig } from '../SQLEditor/UtilityPanel/ChartConfig'@@ -32,7 +29,6 @@ import { useSendEventMutation } from '@/data/telemetry/send-event-mutation'import { useAsyncCheckPermissions } from '@/hooks/misc/useCheckPermissions'import { useSelectedOrganizationQuery } from '@/hooks/misc/useSelectedOrganization'import { useSelectedProjectQuery } from '@/hooks/misc/useSelectedProject'-import { BASE_PATH } from '@/lib/constants'import { Metric, TIME_PERIODS_REPORTS } from '@/lib/constants/metrics'import { uuidv4 } from '@/lib/helpers'import { useProfile } from '@/lib/profile'@@ -43,7 +39,6 @@ const DEFAULT_CHART_COLUMN_COUNT = 1const DEFAULT_CHART_ROW_COUNT = 1const Reports = () => {- const router = useRouter()const { id: reportId, ref } = useParams()const { profile } = useProfile()const { data: project } = useSelectedProjectQuery()diff --git a/apps/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx b/apps/studio/components/interfaces/Reports/renderers/ApiRenderers.tsxindex ca7f8b752de..d6a35346f26 100644--- a/apps/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx+++ b/apps/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx@@ -1,4 +1,3 @@-import { useParams } from 'common'import { geoCentroid } from 'd3-geo'import sumBy from 'lodash/sumBy'import { ChevronRight } from 'lucide-react'@@ -171,7 +170,6 @@ export const TopApiRoutesRenderer = (avg?: number}>) => {- const { ref: projectRef } = useParams()const [showMore, setShowMore] = useState(false)const headerClasses = '!text-xs !py-2 p-0 font-bold !bg-surface-200 !border-x-0 !rounded-none'diff --git a/apps/studio/components/interfaces/Reports/v2/ReportChartV2.tsx b/apps/studio/components/interfaces/Reports/v2/ReportChartV2.tsxindex 6a70dc4f1e4..7a4cab08538 100644--- a/apps/studio/components/interfaces/Reports/v2/ReportChartV2.tsx+++ b/apps/studio/components/interfaces/Reports/v2/ReportChartV2.tsx@@ -119,7 +119,7 @@ export const ReportChartV2 = ({const firstItem = chartData[0]const timestampKey = firstItem?.hasOwnProperty('timestamp') ? 'timestamp' : 'period_start'- const { data: filledChartData, isError: isFillError } = useFillTimeseriesSorted({+ const { data: filledChartData } = useFillTimeseriesSorted({data: chartData,timestampKey,valueKey: dynamicAttributes.map((attr) => attr.attribute),diff --git a/apps/studio/components/interfaces/SQLEditor/MoveQueryModal.tsx b/apps/studio/components/interfaces/SQLEditor/MoveQueryModal.tsxindex b9f2bfe7f91..4902317cda7 100644--- a/apps/studio/components/interfaces/SQLEditor/MoveQueryModal.tsx+++ b/apps/studio/components/interfaces/SQLEditor/MoveQueryModal.tsx@@ -313,7 +313,7 @@ export const MoveQueryModal = ({ visible, snippets = [], onClose }: MoveQueryMod<CommandGroup_Shadcn_><CommandItem_Shadcn_className="cursor-pointer w-full justify-start gap-x-2"- onSelect={(e) => {+ onSelect={(_e) => {setOpen(false)setSelectedId('new-folder')}}diff --git a/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx b/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsxindex f3c2f1528b2..fc511317cf2 100644--- a/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx+++ b/apps/studio/components/interfaces/SQLEditor/SQLEditor.tsx@@ -627,7 +627,7 @@ export const SQLEditor = () => {const complete = useCallback(async (- prompt: string,+ _prompt: string,options?: {headers?: Record<string, string>body?: { completionMetadata?: any }diff --git a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityPanel.tsx b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityPanel.tsxindex ce37bc21a78..4f52943f93e 100644--- a/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityPanel.tsx+++ b/apps/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityPanel.tsx@@ -91,7 +91,7 @@ const UtilityPanel = ({snapV2.updateSnippet({ id, snippet: newSnippet as unknown as Snippet })},- onError: async (err, newContent, context) => {+ onError: async (_err, _newContent, _context) => {toast.error(`Failed to update chart. Please try again.`)},})diff --git a/apps/studio/components/interfaces/Settings/API/DataApiEnableSwitch.utils.test.ts b/apps/studio/components/interfaces/Settings/API/DataApiEnableSwitch.utils.test.tsindex 0e423ba255e..626603497ad 100644--- a/apps/studio/components/interfaces/Settings/API/DataApiEnableSwitch.utils.test.ts+++ b/apps/studio/components/interfaces/Settings/API/DataApiEnableSwitch.utils.test.ts@@ -1,7 +1,6 @@import { describe, expect, it } from 'vitest'-import type { EnableCheckState } from './DataApiEnableSwitch.types'-import { enableCheckReducer, getDefaultSchemas } from './DataApiEnableSwitch.utils'+import { getDefaultSchemas } from './DataApiEnableSwitch.utils'describe('getDefaultSchemas', () => {it('returns ["public"] for undefined', () => {diff --git a/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx b/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsxindex fd959c83b41..60a03cdadb7 100644--- a/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx+++ b/apps/studio/components/interfaces/Settings/Database/ConnectionPooling/ConnectionPooling.tsx@@ -37,7 +37,6 @@ import z from 'zod'import { POOLING_OPTIMIZATIONS } from './ConnectionPooling.constants'import AlertError from '@/components/ui/AlertError'import { DocsButton } from '@/components/ui/DocsButton'-import { setValueAsNullableNumber } from '@/components/ui/Forms/Form.constants'import { FormActions } from '@/components/ui/Forms/FormActions'import { InlineLink } from '@/components/ui/InlineLink'import Panel from '@/components/ui/Panel'diff --git a/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx b/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsxindex d41e2e441b9..404cee75745 100644--- a/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx+++ b/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx@@ -2,7 +2,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import { useParams } from 'common'import { useEffect, useState } from 'react'import { toast } from 'sonner'-import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, Input, Modal } from 'ui'+import { Button, Card, CardContent, Input, Modal } from 'ui'import {PageSection,PageSectionContent,diff --git a/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsx b/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsxindex e4537ff830c..20c04264cc8 100644--- a/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsx+++ b/apps/studio/components/interfaces/Settings/Database/DiskSizeConfigurationModal.tsx@@ -74,7 +74,7 @@ const DiskSizeConfigurationModal = ({const { mutate: updateProjectUsage, isPending: isUpdatingDiskSize } =useProjectDiskResizeMutation({- onSuccess: (res, variables) => {+ onSuccess: (_res, variables) => {toast.success(`Successfully updated disk size to ${variables.volumeSize} GB`)hideModal(false)},diff --git a/apps/studio/components/interfaces/Settings/General/ProjectAccessSection.tsx b/apps/studio/components/interfaces/Settings/General/ProjectAccessSection.tsxindex 531a846a240..5d44cd417e2 100644--- a/apps/studio/components/interfaces/Settings/General/ProjectAccessSection.tsx+++ b/apps/studio/components/interfaces/Settings/General/ProjectAccessSection.tsx@@ -14,7 +14,6 @@ import {import {PageSection,PageSectionContent,- PageSectionDescription,PageSectionMeta,PageSectionSummary,PageSectionTitle,diff --git a/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsx b/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsxindex 231268481b1..e0ce64bfec4 100644--- a/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsx+++ b/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsx@@ -3,7 +3,6 @@ import { Card, CardContent } from 'ui'import {PageSection,PageSectionContent,- PageSectionDescription,PageSectionMeta,PageSectionSummary,PageSectionTitle,diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/Edge.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/Edge.tsxindex edc2227663b..164f0cdd810 100644--- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/Edge.tsx+++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/Edge.tsx@@ -8,7 +8,6 @@ import { useReplicationLagQuery } from '@/data/read-replicas/replica-lag-query'import { formatDatabaseID } from '@/data/read-replicas/replicas.utils'export const SmoothstepEdge = ({- id,sourceX,sourceY,targetX,diff --git a/apps/studio/components/interfaces/Settings/Logs/ErrorCodeDialog.tsx b/apps/studio/components/interfaces/Settings/Logs/ErrorCodeDialog.tsxindex 04d6cb0d1b3..e523588bb07 100644--- a/apps/studio/components/interfaces/Settings/Logs/ErrorCodeDialog.tsx+++ b/apps/studio/components/interfaces/Settings/Logs/ErrorCodeDialog.tsx@@ -80,7 +80,6 @@ const SuccessState = ({ data }: { data: ErrorCodeQueryQuery | undefined }) => {}const ErrorExplanation = ({- code,service,message,}: {diff --git a/apps/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultPreviewSelectionRenderer.tsx b/apps/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultPreviewSelectionRenderer.tsxindex ea46e785e81..d587badf728 100644--- a/apps/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultPreviewSelectionRenderer.tsx+++ b/apps/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultPreviewSelectionRenderer.tsx@@ -48,7 +48,7 @@ const PropertyRow = ({const service = path?.startsWith('/auth/') ? Service.Auth : undefined- const handleSearch: LogSearchCallback = async (event: string, { query }: { query?: string }) => {+ const handleSearch: LogSearchCallback = async (_event: string, { query }: { query?: string }) => {setSearch(query || '')}diff --git a/apps/studio/components/interfaces/Settings/Logs/Logs.utils.ts b/apps/studio/components/interfaces/Settings/Logs/Logs.utils.tsindex 23c71c4ecfd..c89e2e6dcfe 100644--- a/apps/studio/components/interfaces/Settings/Logs/Logs.utils.ts+++ b/apps/studio/components/interfaces/Settings/Logs/Logs.utils.ts@@ -9,7 +9,6 @@ import logConstants from 'shared-data/log-constants'import { LogsTableName, SQL_FILTER_TEMPLATES } from './Logs.constants'import type { Filters, LogData, LogsEndpointParams, QueryType } from './Logs.types'import BackwardIterator from '@/components/ui/CodeEditor/Providers/BackwardIterator'-import type { PlanId } from '@/data/subscriptions/types'/*** Convert a micro timestamp from number/string to iso timestampdiff --git a/apps/studio/components/interfaces/Settings/Logs/LogsFilterPopover.tsx b/apps/studio/components/interfaces/Settings/Logs/LogsFilterPopover.tsxindex aaf729d1d76..4071bab1f02 100644--- a/apps/studio/components/interfaces/Settings/Logs/LogsFilterPopover.tsx+++ b/apps/studio/components/interfaces/Settings/Logs/LogsFilterPopover.tsx@@ -78,7 +78,7 @@ const LogsFilterPopover = ({setOpen(false)}}>- {options.options.map((x, i: number) => (+ {options.options.map((x) => (<Labelkey={x.key}htmlFor={`${options.key}.${x.key}`}diff --git a/apps/studio/components/interfaces/Settings/Logs/MultiSelectActionBar.tsx b/apps/studio/components/interfaces/Settings/Logs/MultiSelectActionBar.tsxindex 598f03f2ff6..cc7dbd50a9f 100644--- a/apps/studio/components/interfaces/Settings/Logs/MultiSelectActionBar.tsx+++ b/apps/studio/components/interfaces/Settings/Logs/MultiSelectActionBar.tsx@@ -1,5 +1,4 @@import { Check, ChevronDown, Copy, X as XIcon } from 'lucide-react'-import { useMemo } from 'react'import {Button,DropdownMenu,diff --git a/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanelWithUniversal.tsx b/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanelWithUniversal.tsxindex d9fb6c8eb5b..834606ba9c3 100644--- a/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanelWithUniversal.tsx+++ b/apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanelWithUniversal.tsx@@ -96,14 +96,14 @@ export const PreviewFilterPanelWithUniversal = ({condensedLayout,isShowingEventChart,onToggleEventChart,- csvData,+ csvData: _csvData,onFiltersChange,filters,table,onSelectedDatabaseChange,className,- selectedDatePickerValue,- setSelectedDatePickerValue,+ selectedDatePickerValue: _selectedDatePickerValue,+ setSelectedDatePickerValue: _setSelectedDatePickerValue,}: PreviewFilterPanelProps) => {const router = useRouter()const { ref } = useParams()@@ -154,7 +154,7 @@ export const PreviewFilterPanelWithUniversal = ({})// Add table-specific filters- Object.entries(tableFilters).forEach(([key, filterSet]) => {+ Object.entries(tableFilters).forEach(([_key, filterSet]) => {properties.push({label: filterSet.label,name: filterSet.key,diff --git a/apps/studio/components/interfaces/Sidebar.tsx b/apps/studio/components/interfaces/Sidebar.tsxindex 0219209f0c1..d8b538b29b1 100644--- a/apps/studio/components/interfaces/Sidebar.tsx+++ b/apps/studio/components/interfaces/Sidebar.tsx@@ -29,10 +29,7 @@ import {import { Shortcut } from '../ui/Shortcut'import { Route } from '../ui/ui.types'-import {- useIsPlatformWebhooksEnabled,- useUnifiedLogsPreview,-} from './App/FeaturePreview/FeaturePreviewContext'+import { useUnifiedLogsPreview } from './App/FeaturePreview/FeaturePreviewContext'import {generateOtherRoutes,generateProductRoutes,@@ -40,14 +37,12 @@ import {generateToolRoutes,} from '@/components/layouts/Navigation/NavigationBar/NavigationBar.utils'import { ProjectIndexPageLink } from '@/data/prefetchers/project.$ref'-import { useSendEventMutation } from '@/data/telemetry/send-event-mutation'import { useHideSidebar } from '@/hooks/misc/useHideSidebar'import { useIsFeatureEnabled } from '@/hooks/misc/useIsFeatureEnabled'import { useLints } from '@/hooks/misc/useLints'import { useLocalStorageQuery } from '@/hooks/misc/useLocalStorage'import { useSelectedOrganizationQuery } from '@/hooks/misc/useSelectedOrganization'import { useSelectedProjectQuery } from '@/hooks/misc/useSelectedProject'-import { useAppStateSnapshot } from '@/state/app-state'import { SHORTCUT_IDS } from '@/state/shortcuts/registry'export const ICON_SIZE = 32diff --git a/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx b/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsxindex 0424d1fc224..68f3260188d 100644--- a/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx+++ b/apps/studio/components/interfaces/SignIn/SignInMfaForm.tsx@@ -6,7 +6,7 @@ import { useAuthError } from 'common'import { Lock } from 'lucide-react'import Link from 'next/link'import { useRouter } from 'next/router'-import { useEffect, useRef, useState } from 'react'+import { useEffect, useState } from 'react'import { SubmitHandler, useForm } from 'react-hook-form'import { Button, Form, FormControl, FormField, Input_Shadcn_ } from 'ui'import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'diff --git a/apps/studio/components/interfaces/Storage/Storage.utils.ts b/apps/studio/components/interfaces/Storage/Storage.utils.tsindex 197bfe692cf..3a9c1937c7b 100644--- a/apps/studio/components/interfaces/Storage/Storage.utils.ts+++ b/apps/studio/components/interfaces/Storage/Storage.utils.ts@@ -236,7 +236,7 @@ export const getDecryptedParameters = async ({const paramsToBeDecrypted = Object.fromEntries(new Map(- Object.entries(serverOptions).filter(([key, value]) => {+ Object.entries(serverOptions).filter(([key, _value]) => {return wrapperServerOptions.find((option) => option.name === key)?.encrypted}))diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsxindex 5d09e535150..f1597e55f7e 100644--- a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsx+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsx@@ -24,7 +24,6 @@ import {} from 'react'import {Button,- cn,Dialog,DialogContent,DialogDescription,@@ -229,7 +228,6 @@ export const FileExplorerHeader = ({addNewFolderPlaceholder,clearOpenedFolders,setSelectedFilePreview,- selectedBucket,} = useStorageExplorerStateSnapshot()const {view,diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRowContextMenu.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRowContextMenu.tsxindex 3884aca9b2a..83e6f1e3752 100644--- a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRowContextMenu.tsx+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerRowContextMenu.tsx@@ -1,6 +1,5 @@import { createContext, useCallback, useContext, useRef, useState } from 'react'import type { ReactNode } from 'react'-import { flushSync } from 'react-dom'import {ContextMenu_Shadcn_,ContextMenuContent_Shadcn_,diff --git a/apps/studio/components/interfaces/Support/AttachmentUpload.tsx b/apps/studio/components/interfaces/Support/AttachmentUpload.tsxindex bb90a70ad36..6116398e63d 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 importsimport { compact } from 'lodash'-import { File, FileCode, Plus, X } from 'lucide-react'+import { FileCode, Plus, X } from 'lucide-react'import {useCallback,useEffect,diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsxindex eb197751169..3b2ecab94e5 100644--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx@@ -27,8 +27,6 @@ import {} from '@/state/role-impersonation-state'import { TableEditorTableStateContextProvider } from '@/state/table-editor-table'-const FOREIGN_ROW_SELECTOR_TABLE_NAME_SUFFIX = '__frselector'-export interface ForeignRowSelectorProps {visible: booleanforeignKey?: ForeignKeydiff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.tsindex 8499810af55..3831580fcdf 100644--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts@@ -1,7 +1,7 @@import { MAX_ARRAY_SIZE, MAX_CHARACTERS } from '@supabase/pg-meta/src/query/table-row-query'import type { PostgresColumn, PostgresRelationship, PostgresTable } from '@supabase/postgres-meta'import dayjs from 'dayjs'-import { compact, isEqual, isNull, isString, isUndefined, omitBy } from 'lodash'+import { compact, isEqual, isString, isUndefined, omitBy } from 'lodash'import { ForeignKey } from '../ForeignKeySelector/ForeignKeySelector.types'import {diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsxindex 785255b4688..2b678b0d7e0 100644--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx@@ -286,7 +286,7 @@ export const ColumnManagement = ({isNewRecord ? '' : '-mx-3'}`}>- {primaryKeyColumns.map((column: ColumnField, index: number) => (+ {primaryKeyColumns.map((column: ColumnField) => (<Columnkey={column.id}column={column}@@ -317,7 +317,7 @@ export const ColumnManagement = ({><SortableContext items={otherColumns} strategy={verticalListSortingStrategy}><div className={`space-y-2 py-2 ${isNewRecord ? 'px-3 ' : ''}`}>- {otherColumns.map((column: ColumnField, index: number) => (+ {otherColumns.map((column: ColumnField) => (<Columnkey={column.id}column={column}diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsxindex 30dce927eb9..e7594876b61 100644--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ForeignKeysManagement/ForeignKeyRow.tsx@@ -23,7 +23,7 @@ export const ForeignKeyRow = ({disabled = false,status,layout = 'horizontal',- closePanel,+ closePanel: _closePanel,onSelectEdit,onSelectRemove,onSelectUndoRemove,diff --git a/apps/studio/components/interfaces/UnifiedLogs/Queries/ServiceFlowQueries/ServiceFlow.sql.ts b/apps/studio/components/interfaces/UnifiedLogs/Queries/ServiceFlowQueries/ServiceFlow.sql.tsindex d8af15cdb85..f4dd5a8b6d3 100644--- a/apps/studio/components/interfaces/UnifiedLogs/Queries/ServiceFlowQueries/ServiceFlow.sql.ts+++ b/apps/studio/components/interfaces/UnifiedLogs/Queries/ServiceFlowQueries/ServiceFlow.sql.ts@@ -29,8 +29,6 @@ type EdgeServiceType = keyof typeof SERVICE_CONFIGS* to eliminate 500+ lines of SQL duplication*/const getBaseEdgeServiceFlowQuery = (logId: string, serviceType: EdgeServiceType): string => {- const config = SERVICE_CONFIGS[serviceType]-return `selectid,diff --git a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/TimelineStep.tsx b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/TimelineStep.tsxindex 621f43a397d..b8ac24a8f05 100644--- a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/TimelineStep.tsx+++ b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/TimelineStep.tsx@@ -8,7 +8,13 @@ import { DataTableColumnStatusCode } from '@/components/ui/DataTable/DataTableCotype IconComponent = LucideIcon | React.ComponentType<any>// Reusable styled icon component-export const StyledIcon = ({ icon: Icon, title }: { icon: IconComponent; title: string }) => (+export const StyledIcon = ({+ icon: Icon,+ title: _title,+}: {+ icon: IconComponent+ title: string+}) => (<div className="flex items-center gap-2 bg-surface-300 rounded p-0.5 border justify-center border-foreground-muted"><Icon className="w-4 h-4 text-foreground-lighter" strokeWidth={1} /></div>diff --git a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/config/serviceFlowFields.ts b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/config/serviceFlowFields.tsindex 51f6c29e38c..50101e8f338 100644--- a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/config/serviceFlowFields.ts+++ b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/config/serviceFlowFields.ts@@ -64,7 +64,7 @@ export const networkPrimaryFields: BlockFieldConfig[] = [{id: 'user_agent',label: 'Client',- getValue: (data, enrichedData) => {+ getValue: (_data, enrichedData) => {const userAgent = enrichedData?.headers_user_agentif (!userAgent) return null// TODO: Parse user agent for nice display with icons@@ -78,7 +78,7 @@ export const networkPrimaryFields: BlockFieldConfig[] = [export const apiKeyPrimaryField: BlockFieldConfig = {id: 'api_key_role',label: 'API Key',- getValue: (data, enrichedData) => {+ getValue: (_data, enrichedData) => {const prefix = enrichedData?.api_key_prefixconst jwtRole = enrichedData?.jwt_key_roleconst authRole = enrichedData?.authorization_role@@ -110,7 +110,7 @@ export const apiKeyAdditionalFields: BlockFieldConfig[] = [{id: 'api_key_prefix_full',label: 'API Key Prefix',- getValue: (data, enrichedData) => {+ getValue: (_data, enrichedData) => {const prefix = enrichedData?.api_key_prefixreturn prefix || null},@@ -119,19 +119,19 @@ export const apiKeyAdditionalFields: BlockFieldConfig[] = [{id: 'postgres_role',label: 'Postgres Role',- getValue: (data, enrichedData) => enrichedData?.jwt_key_role,+ getValue: (_data, enrichedData) => enrichedData?.jwt_key_role,requiresEnrichedData: true,},{id: 'api_key_error',label: 'API Key Error',- getValue: (data, enrichedData) => enrichedData?.api_key_error,+ getValue: (_data, enrichedData) => enrichedData?.api_key_error,requiresEnrichedData: true,},{id: 'api_key_hash',label: 'API Key Hash',- getValue: (data, enrichedData) => {+ getValue: (_data, enrichedData) => {const hash = enrichedData?.api_key_hashreturn hash ? `${hash.substring(0, 12)}...` : null},@@ -140,7 +140,7 @@ export const apiKeyAdditionalFields: BlockFieldConfig[] = [{id: 'authorization_role',label: 'Postgres Role',- getValue: (data, enrichedData) => enrichedData?.authorization_role,+ getValue: (_data, enrichedData) => enrichedData?.authorization_role,requiresEnrichedData: true,},]@@ -149,7 +149,7 @@ export const apiKeyAdditionalFields: BlockFieldConfig[] = [export const userPrimaryField: BlockFieldConfig = {id: 'user_id',label: 'User',- getValue: (data, enrichedData) => {+ getValue: (_data, enrichedData) => {const userId = enrichedData?.user_idreturn userId ? `${userId.substring(0, 8)}...` : null},@@ -166,7 +166,7 @@ export const userAdditionalFields: BlockFieldConfig[] = [{id: 'user_email',label: 'User Email',- getValue: (data, enrichedData) => enrichedData?.user_email,+ getValue: (_data, enrichedData) => enrichedData?.user_email,requiresEnrichedData: true,},]@@ -175,7 +175,7 @@ export const userAdditionalFields: BlockFieldConfig[] = [export const locationPrimaryField: BlockFieldConfig = {id: 'client_country',label: 'Location',- getValue: (data, enrichedData) => {+ getValue: (_data, enrichedData) => {const country = enrichedData?.client_country || enrichedData?.cf_countryconst city = enrichedData?.client_cityif (country && city) return `${city}, ${country}`@@ -191,31 +191,31 @@ export const locationAdditionalFields: BlockFieldConfig[] = [{id: 'client_continent',label: 'Continent',- getValue: (data, enrichedData) => enrichedData?.client_continent,+ getValue: (_data, enrichedData) => enrichedData?.client_continent,requiresEnrichedData: true,},{id: 'client_region',label: 'Region',- getValue: (data, enrichedData) => enrichedData?.client_region,+ getValue: (_data, enrichedData) => enrichedData?.client_region,requiresEnrichedData: true,},{id: 'client_timezone',label: 'Timezone',- getValue: (data, enrichedData) => enrichedData?.client_timezone,+ getValue: (_data, enrichedData) => enrichedData?.client_timezone,requiresEnrichedData: true,},{id: 'x_real_ip',label: 'Real IP',- getValue: (data, enrichedData) => enrichedData?.headers_x_real_ip,+ getValue: (_data, enrichedData) => enrichedData?.headers_x_real_ip,requiresEnrichedData: true,},{id: 'client_ip',label: 'Client IP',- getValue: (data, enrichedData) => enrichedData?.client_ip,+ getValue: (_data, enrichedData) => enrichedData?.client_ip,requiresEnrichedData: true,},]@@ -225,42 +225,42 @@ export const authorizationFields: BlockFieldConfig[] = [{id: 'jwt_auth_key_id',label: 'Key ID',- getValue: (data, enrichedData) =>+ getValue: (_data, enrichedData) =>enrichedData?.jwt_auth_key_id || enrichedData?.jwt_apikey_key_id,requiresEnrichedData: true,},{id: 'jwt_auth_session_id',label: 'Session ID',- getValue: (data, enrichedData) =>+ getValue: (_data, enrichedData) =>enrichedData?.jwt_auth_session_id || enrichedData?.jwt_apikey_session_id,requiresEnrichedData: true,},{id: 'jwt_auth_subject',label: 'Subject',- getValue: (data, enrichedData) =>+ getValue: (_data, enrichedData) =>enrichedData?.jwt_auth_subject || enrichedData?.jwt_apikey_subject,requiresEnrichedData: true,},{id: 'jwt_auth_issuer',label: 'Issuer',- getValue: (data, enrichedData) =>+ getValue: (_data, enrichedData) =>enrichedData?.jwt_auth_issuer || enrichedData?.jwt_apikey_issuer,requiresEnrichedData: true,},{id: 'jwt_auth_algorithm',label: 'Algorithm',- getValue: (data, enrichedData) =>+ getValue: (_data, enrichedData) =>enrichedData?.jwt_auth_algorithm || enrichedData?.jwt_apikey_algorithm,requiresEnrichedData: true,},{id: 'jwt_auth_expires_at',label: 'Expires At',- getValue: (data, enrichedData) => {+ getValue: (_data, enrichedData) => {const expiresAt = enrichedData?.jwt_auth_expires_at || enrichedData?.jwt_apikey_expires_atif (!expiresAt) return nulltry {@@ -278,38 +278,38 @@ export const techDetailsFields: BlockFieldConfig[] = [{id: 'network_protocol',label: 'Protocol',- getValue: (data, enrichedData) => enrichedData?.network_protocol,+ getValue: (_data, enrichedData) => enrichedData?.network_protocol,requiresEnrichedData: true,},{id: 'cf_datacenter',label: 'Datacenter',- getValue: (data, enrichedData) =>+ getValue: (_data, enrichedData) =>enrichedData?.network_datacenter || enrichedData?.cf_datacenter,requiresEnrichedData: true,},{id: 'cache_status',label: 'Cache Status',- getValue: (data, enrichedData) => enrichedData?.response_cache_status,+ getValue: (_data, enrichedData) => enrichedData?.response_cache_status,requiresEnrichedData: true,},{id: 'cf_ray',label: 'CF-Ray',- getValue: (data, enrichedData) => enrichedData?.cf_ray,+ getValue: (_data, enrichedData) => enrichedData?.cf_ray,requiresEnrichedData: true,},{id: 'x_client_info',label: 'SDK',- getValue: (data, enrichedData) => enrichedData?.headers_x_client_info,+ getValue: (_data, enrichedData) => enrichedData?.headers_x_client_info,requiresEnrichedData: true,},{id: 'x_forwarded_proto',label: 'Forwarded Proto',- getValue: (data, enrichedData) => enrichedData?.headers_x_forwarded_proto,+ getValue: (_data, enrichedData) => enrichedData?.headers_x_forwarded_proto,requiresEnrichedData: true,},]@@ -328,7 +328,7 @@ export const postgrestPrimaryFields: BlockFieldConfig[] = [{id: 'postgres_role',label: 'Postgres Role',- getValue: (data, enrichedData) => enrichedData?.api_role,+ getValue: (_data, enrichedData) => enrichedData?.api_role,requiresEnrichedData: true,},{@@ -347,19 +347,19 @@ export const postgrestResponseFields: BlockFieldConfig[] = [{id: 'query_params',label: 'Query',- getValue: (data, enrichedData) => enrichedData?.request_search,+ getValue: (_data, enrichedData) => enrichedData?.request_search,requiresEnrichedData: true,},{id: 'content_type',label: 'Content Type',- getValue: (data, enrichedData) => enrichedData?.response_content_type,+ getValue: (_data, enrichedData) => enrichedData?.response_content_type,requiresEnrichedData: true,},{id: 'message',label: 'Message',- getValue: (data, enrichedData) => enrichedData?.message,+ getValue: (_data, enrichedData) => enrichedData?.message,requiresEnrichedData: true,},]@@ -389,7 +389,7 @@ export const authPrimaryFields: BlockFieldConfig[] = [{id: 'referer',label: 'Referer',- getValue: (data, enrichedData) => {+ getValue: (_data, enrichedData) => {return enrichedData?.headers_referer || null},requiresEnrichedData: true,diff --git a/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.queries.ts b/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.queries.tsindex 0f0d809302d..e38a98bb060 100644--- a/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.queries.ts+++ b/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.queries.ts@@ -11,7 +11,6 @@ const SPECIAL_FILTER_PARAMS = ['date'] as const// Combined list of all parameters to exclude from standard filteringconst EXCLUDED_QUERY_PARAMS = [...PAGINATION_PARAMS, ...SPECIAL_FILTER_PARAMS] as const-const BASE_CONDITIONS_EXCLUDED_PARAMS = [...PAGINATION_PARAMS, 'date', 'level'] as const/*** Builds query conditions from search parameters and returns WHERE clause@@ -50,118 +49,6 @@ const buildQueryConditions = (search: QuerySearchParamsType) => {return { whereConditions, finalWhere }}-/**- * Builds level-specific condition for different log types- */-const buildLevelConditions = (logType: string, levelFilter: string[]) => {- const conditions = []-- switch (logType) {- case 'edge':- if (levelFilter.includes('success'))- conditions.push('edge_logs_response.status_code BETWEEN 200 AND 299')- if (levelFilter.includes('warning'))- conditions.push('edge_logs_response.status_code BETWEEN 400 AND 499')- if (levelFilter.includes('error')) conditions.push('edge_logs_response.status_code >= 500')- break- case 'postgres':- if (levelFilter.includes('success')) conditions.push("pgl_parsed.error_severity = 'LOG'")- if (levelFilter.includes('warning')) conditions.push("pgl_parsed.error_severity = 'WARNING'")- if (levelFilter.includes('error')) conditions.push("pgl_parsed.error_severity = 'ERROR'")- break- case 'edge function':- if (levelFilter.includes('success'))- conditions.push('fel_response.status_code BETWEEN 200 AND 299')- if (levelFilter.includes('warning'))- conditions.push('fel_response.status_code BETWEEN 400 AND 499')- if (levelFilter.includes('error')) conditions.push('fel_response.status_code >= 500')- break- case 'auth':- if (levelFilter.includes('success'))- conditions.push('el_in_al_response.status_code BETWEEN 200 AND 299')- if (levelFilter.includes('warning'))- conditions.push('el_in_al_response.status_code BETWEEN 400 AND 499')- if (levelFilter.includes('error')) conditions.push('el_in_al_response.status_code >= 500')- break- case 'supavisor':- if (levelFilter.includes('success'))- conditions.push("LOWER(svl_metadata.level) NOT IN ('error', 'warn', 'warning')")- if (levelFilter.includes('warning'))- conditions.push(- "(LOWER(svl_metadata.level) = 'warn' OR LOWER(svl_metadata.level) = 'warning')"- )- if (levelFilter.includes('error')) conditions.push("LOWER(svl_metadata.level) = 'error'")- break- }-- return conditions-}--/**- * Creates WHERE clause for a specific log type including level filtering- */-const createFilterWhereClause = (- logType: string,- levelFilter: string[],- baseConditions: string[]-) => {- const hasLevelFilter = levelFilter.length > 0-- let where = ''-- if (hasLevelFilter) {- const levelConditions = buildLevelConditions(logType, levelFilter)-- if (levelConditions.length > 0) {- if (baseConditions.length > 0) {- where = `WHERE (${levelConditions.join(' OR ')}) AND ${baseConditions.join(' AND ')}`- } else {- where = `WHERE (${levelConditions.join(' OR ')})`- }- } else if (baseConditions.length > 0) {- where = `WHERE ${baseConditions.join(' AND ')}`- }- } else if (baseConditions.length > 0) {- where = `WHERE ${baseConditions.join(' AND ')}`- }-- // Special case for auth logs- if (logType === 'auth') {- if (where) {- where = where.replace('WHERE', 'WHERE al_metadata.request_id is not null AND')- } else {- where = 'WHERE al_metadata.request_id is not null'- }- }-- return where-}--/**- * Builds base conditions array from search params- */-const buildBaseConditions = (search: SearchParamsType): string[] => {- const baseConditions: string[] = []-- Object.entries(search).forEach(([key, value]) => {- // Skip pagination/control parameters, date and level (handled separately)- if (BASE_CONDITIONS_EXCLUDED_PARAMS.includes(key as any)) {- return- }-- // Handle array filters (IN clause)- if (Array.isArray(value) && value.length > 0) {- baseConditions.push(`${key} IN (${value.map((v) => `'${v}'`).join(', ')})`)- }- // Handle scalar values- else if (value !== null && value !== undefined) {- baseConditions.push(`${key} = '${value}'`)- }- })-- return baseConditions-}-/*** Calculates how much the chart start datetime should be offset given the current datetime filter params* and determines the appropriate bucketing level (minute, hour, day)@@ -203,7 +90,6 @@ const calculateChartBucketing = (search: SearchParamsType | Record<string, any>)let truncationLevel = 'MINUTE'- const minuteDiff = endTime.diff(startTime, 'minute')const hourDiff = endTime.diff(startTime, 'hour')const dayDiff = endTime.diff(startTime, 'day')diff --git a/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.utils.ts b/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.utils.tsindex 03dd6b79110..cb506fac8a4 100644--- a/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.utils.ts+++ b/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.utils.ts@@ -21,13 +21,13 @@ export const logEventBus = {}export const getFacetedUniqueValues = <TData>(facets?: Record<string, FacetMetadataSchema>) => {- return (table: TTable<TData>, columnId: string) => {+ return (_table: TTable<TData>, columnId: string) => {return new Map(facets?.[columnId]?.rows?.map(({ value, total }) => [value, total]) || [])}}export const getFacetedMinMaxValues = <TData>(facets?: Record<string, FacetMetadataSchema>) => {- return (table: TTable<TData>, columnId: string) => {+ return (_table: TTable<TData>, columnId: string) => {const min = facets?.[columnId]?.minconst max = facets?.[columnId]?.maxif (typeof min === 'number' && typeof max === 'number') return [min, max]diff --git a/apps/studio/components/interfaces/UnifiedLogs/components/Columns.tsx b/apps/studio/components/interfaces/UnifiedLogs/components/Columns.tsxindex 0876c814050..9076b0e24fa 100644--- a/apps/studio/components/interfaces/UnifiedLogs/components/Columns.tsx+++ b/apps/studio/components/interfaces/UnifiedLogs/components/Columns.tsx@@ -3,7 +3,6 @@ import { Tooltip, TooltipContent, TooltipTrigger } from 'ui'import { STATUS_CODE_LABELS } from '../UnifiedLogs.constants'import { ColumnFilterSchema, ColumnSchema } from '../UnifiedLogs.schema'-import { AuthUserHoverCard } from './AuthUserHoverCard'import { HoverCardTimestamp } from './HoverCardTimestamp'import { LogTypeIcon } from './LogTypeIcon'import { TextWithTooltip } from './TextWithTooltip'@@ -51,7 +50,7 @@ export function generateDynamicColumns(data: ColumnSchema[]): {enableHiding: false,enableResizing: false,enableSorting: false,- filterFn: (row, columnId, filterValue) => true,+ filterFn: (_row, _columnId, _filterValue) => true,size: 48,minSize: 48,maxSize: 48,@@ -68,7 +67,7 @@ export function generateDynamicColumns(data: ColumnSchema[]): {const date = new Date(row.getValue<ColumnSchema['date']>('date'))return <HoverCardTimestamp date={date} />},- filterFn: (row, columnId, filterValue) => true,+ filterFn: (_row, _columnId, _filterValue) => true,enableResizing: false,enableSorting: false,size: 130,@@ -92,7 +91,7 @@ export function generateDynamicColumns(data: ColumnSchema[]): {)},enableHiding: false,- filterFn: (row, columnId, filterValue) => true,+ filterFn: (_row, _columnId, _filterValue) => true,enableResizing: false,enableSorting: false,size: 40,@@ -143,7 +142,7 @@ export function generateDynamicColumns(data: ColumnSchema[]): {</div>)},- filterFn: (row, columnId, filterValue) => true,+ filterFn: (_row, _columnId, _filterValue) => true,enableResizing: false,enableSorting: false,size: 70,diff --git a/apps/studio/components/interfaces/UnifiedLogs/components/LogTypeIcon.tsx b/apps/studio/components/interfaces/UnifiedLogs/components/LogTypeIcon.tsxindex b463fb3b967..85656026c98 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, EdgeFunctions, Storage } from 'icons'-import { BookHeart, Box, Cpu, Database, Globe } from 'lucide-react'+import { BookHeart, Box, Database } from 'lucide-react'import { cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'import { type LOG_TYPES } from '../UnifiedLogs.constants'diff --git a/apps/studio/components/interfaces/UserDropdown.tsx b/apps/studio/components/interfaces/UserDropdown.tsxindex 0cba5876bdb..946f7337cf8 100644--- a/apps/studio/components/interfaces/UserDropdown.tsx+++ b/apps/studio/components/interfaces/UserDropdown.tsx@@ -3,7 +3,6 @@ import { useTheme } from 'next-themes'import Link from 'next/link'import { useRouter } from 'next/router'import {- Button,cn,DropdownMenu,DropdownMenuContent,diff --git a/apps/studio/components/layouts/AccountLayout/AccountLayout.tsx b/apps/studio/components/layouts/AccountLayout/AccountLayout.tsxindex 32fdb76ac20..2774fbbff19 100644--- a/apps/studio/components/layouts/AccountLayout/AccountLayout.tsx+++ b/apps/studio/components/layouts/AccountLayout/AccountLayout.tsx@@ -136,12 +136,7 @@ const AccountLayout = ({ children, title }: PropsWithChildren<AccountLayoutProps<meta name="description" content="Supabase Studio" /></Head><div className={cn('flex flex-col w-screen h-[calc(100vh-48px)]')}>- <WithSidebar- title=""- breadcrumbs={[]}- backToDashboardURL={backToDashboardURL}- sections={sections}- >+ <WithSidebar backToDashboardURL={backToDashboardURL} sections={sections}>{children}</WithSidebar></div>diff --git a/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx b/apps/studio/components/layouts/AccountLayout/WithSidebar.tsxindex 243db772679..99c709c2e3c 100644--- a/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx+++ b/apps/studio/components/layouts/AccountLayout/WithSidebar.tsx@@ -4,11 +4,9 @@ import { PropsWithChildren, ReactNode } from 'react'import { cn, Menu } from 'ui'import type { SidebarSection } from './AccountLayout.types'-import { useAppStateSnapshot } from '@/state/app-state'interface WithSidebarProps {- title: string- breadcrumbs: any[]+ title?: stringsections: SidebarSection[]header?: ReactNodesubitems?: any[]@@ -21,7 +19,6 @@ interface WithSidebarProps {export const WithSidebar = ({title,header,- breadcrumbs = [],children,sections,subitems,@@ -31,7 +28,6 @@ export const WithSidebar = ({backToDashboardURL,}: PropsWithChildren<WithSidebarProps>) => {const noContent = !sections && !customSidebarContent- const { mobileMenuOpen, setMobileMenuOpen } = useAppStateSnapshot()return (<div className="flex flex-col md:flex-row h-full">@@ -55,7 +51,6 @@ export const WithSidebar = ({}export const SidebarContent = ({- title,header,sections,subitems,@@ -147,7 +142,7 @@ interface SectionWithHeadersProps {subitemsParentKey?: number}-const SectionWithHeaders = ({ section, subitems, subitemsParentKey }: SectionWithHeadersProps) => (+const SectionWithHeaders = ({ section, subitems }: SectionWithHeadersProps) => (<div key={section.heading} className="my-6 space-y-8"><div className="mx-3">{section.heading && (diff --git a/apps/studio/components/layouts/AppLayout/OrganizationDropdownCommandContent.tsx b/apps/studio/components/layouts/AppLayout/OrganizationDropdownCommandContent.tsxindex fa9d3b1b4dc..51e65ed1a49 100644--- a/apps/studio/components/layouts/AppLayout/OrganizationDropdownCommandContent.tsx+++ b/apps/studio/components/layouts/AppLayout/OrganizationDropdownCommandContent.tsx@@ -14,7 +14,6 @@ import {} from 'ui'import { OrgCommandItem } from './OrgCommandItem'-import PartnerIcon from '@/components/ui/PartnerIcon'import type { Organization } from '@/types'export interface OrganizationDropdownCommandContentProps {diff --git a/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx b/apps/studio/components/layouts/AuthLayout/AuthLayout.tsxindex 96d4d2b70a3..73c6e69de50 100644--- a/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx+++ b/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx@@ -1,4 +1,4 @@-import { useFlag, useParams } from 'common'+import { useParams } from 'common'import { useRouter } from 'next/router'import type { PropsWithChildren } from 'react'diff --git a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsxindex d5424834b65..a6b6b4f32c8 100644--- a/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx+++ b/apps/studio/components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx@@ -2,7 +2,7 @@ import { useDebounce } from '@uidotdev/usehooks'import { LOCAL_STORAGE_KEYS, useParams } from 'common'import { AnimatePresence, motion } from 'framer-motion'import { toPng } from 'html-to-image'-import { Camera, CircleCheck, HelpCircle, Image as ImageIcon, Upload, X } from 'lucide-react'+import { Camera, CircleCheck, Image as ImageIcon, Upload, X } from 'lucide-react'import { useRouter } from 'next/router'import { ChangeEvent, useEffect, useRef, useState } from 'react'import { toast } from 'sonner'diff --git a/apps/studio/components/layouts/ObservabilityLayout/ObservabilityMenuItem.tsx b/apps/studio/components/layouts/ObservabilityLayout/ObservabilityMenuItem.tsxindex 898305337ed..66b557deff3 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, MoreHorizontal, MoreVertical, Trash } from 'lucide-react'+import { Edit2, MoreVertical, Trash } from 'lucide-react'import Link from 'next/link'import {Button,diff --git a/apps/studio/components/layouts/OrganizationLayout.tsx b/apps/studio/components/layouts/OrganizationLayout.tsxindex 4bbe856227f..61586395230 100644--- a/apps/studio/components/layouts/OrganizationLayout.tsx+++ b/apps/studio/components/layouts/OrganizationLayout.tsx@@ -8,7 +8,6 @@ import { Alert_Shadcn_, AlertDescription_Shadcn_, AlertTitle_Shadcn_, Button, cnimport { useRegisterOrgMenu } from './OrganizationLayout/useRegisterOrgMenu'import { ButtonTooltip } from '@/components/ui/ButtonTooltip'import PartnerIcon from '@/components/ui/PartnerIcon'-import { PARTNER_TO_NAME } from '@/components/ui/PartnerManagedResource'import { useAwsRedirectQuery } from '@/data/integrations/aws-redirect-query'import { useVercelRedirectQuery } from '@/data/integrations/vercel-redirect-query'import { useCustomContent } from '@/hooks/custom-content/useCustomContent'diff --git a/apps/studio/components/layouts/ProjectLayout/OrganizationSettingsLayout.tsx b/apps/studio/components/layouts/ProjectLayout/OrganizationSettingsLayout.tsxindex 9706d57ba56..6d3bd21c6d3 100644--- a/apps/studio/components/layouts/ProjectLayout/OrganizationSettingsLayout.tsx+++ b/apps/studio/components/layouts/ProjectLayout/OrganizationSettingsLayout.tsx@@ -28,7 +28,7 @@ export const generateOrganizationSettingsMenuItems = ({showSsoSettings = true,showLegalDocuments = true,showPlatformWebhooks = true,- showPrivateApps = false,+ showPrivateApps: _showPrivateApps = false,}: OrganizationSettingsMenuItemsProps) => [{key: 'general',@@ -225,7 +225,6 @@ export function OrganizationSettingsLayout({ children }: PropsWithChildren) {return (<WithSidebartitle="Organization Settings"- breadcrumbs={[]}sections={sections}header={<div className="border-default flex min-h-[var(--header-height)] items-center border-b px-6">diff --git a/apps/studio/components/layouts/ProjectLayout/ProjectContext.tsx b/apps/studio/components/layouts/ProjectLayout/ProjectContext.tsxindex 461c8814c69..1365e8ef4de 100644--- a/apps/studio/components/layouts/ProjectLayout/ProjectContext.tsx+++ b/apps/studio/components/layouts/ProjectLayout/ProjectContext.tsx@@ -2,7 +2,6 @@ import { PropsWithChildren } from 'react'import { DatabaseSelectorStateContextProvider } from '@/state/database-selector'import { RoleImpersonationStateContextProvider } from '@/state/role-impersonation-state'-import { StorageExplorerStateContextProvider } from '@/state/storage-explorer'import { TableEditorStateContextProvider } from '@/state/table-editor'import { TabsStateContextProvider } from '@/state/tabs'diff --git a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/UnshareSnippetModal.tsx b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/UnshareSnippetModal.tsxindex efc2503add8..dfeb09ed800 100644--- a/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/UnshareSnippetModal.tsx+++ b/apps/studio/components/layouts/SQLEditorLayout/SQLEditorNavV2/UnshareSnippetModal.tsx@@ -21,7 +21,7 @@ export const UnshareSnippetModal = ({const { ref: projectRef } = useParams()const snapV2 = useSqlEditorV2StateSnapshot()- const { mutate: upsertContent, isPending: isUpserting } = useContentUpsertMutation({+ const { mutate: upsertContent } = useContentUpsertMutation({onError: (error) => {toast.error(`Failed to update query: ${error.message}`)},diff --git a/apps/studio/components/layouts/SQLEditorLayout/SqlEditor.Commands.tsx b/apps/studio/components/layouts/SQLEditorLayout/SqlEditor.Commands.tsxindex 83e4faa7320..ebf1cdca703 100644--- a/apps/studio/components/layouts/SQLEditorLayout/SqlEditor.Commands.tsx+++ b/apps/studio/components/layouts/SQLEditorLayout/SqlEditor.Commands.tsx@@ -356,7 +356,7 @@ select ${!table.columns? '*': `-${table.columns.map((column, index, array) => `\t${column.name}`).join(',\n')}`+${table.columns.map((column) => `\t${column.name}`).join(',\n')}`}from ${formatTableIdentifier(table)}-- wherediff --git a/apps/studio/components/layouts/TableEditorLayout/TableMenuEmptyState.tsx b/apps/studio/components/layouts/TableEditorLayout/TableMenuEmptyState.tsxindex 82ef9d6effa..793e6fac68d 100644--- a/apps/studio/components/layouts/TableEditorLayout/TableMenuEmptyState.tsx+++ b/apps/studio/components/layouts/TableEditorLayout/TableMenuEmptyState.tsx@@ -1,6 +1,4 @@-import { useParams } from 'common'import { Pointer } from 'lucide-react'-import { useRef } from 'react'import { cn, TreeViewItemVariant } from 'ui'import { InnerSideBarEmptyPanel } from 'ui-patterns/InnerSideMenu'diff --git a/apps/studio/components/layouts/Tabs/TabPreview.tsx b/apps/studio/components/layouts/Tabs/TabPreview.tsxindex ed75833d1be..210d3bd17d2 100644--- a/apps/studio/components/layouts/Tabs/TabPreview.tsx+++ b/apps/studio/components/layouts/Tabs/TabPreview.tsx@@ -1,11 +1,9 @@-import { useParams } from 'common'import { motion } from 'framer-motion'import { EntityTypeIcon } from '@/components/ui/EntityTypeIcon'import { useTabsStateSnapshot } from '@/state/tabs'export const TabPreview = ({ tab }: { tab: string }) => {- const { ref } = useParams()const tabs = useTabsStateSnapshot()const tabData = tabs.tabsMap[tab]diff --git a/apps/studio/components/layouts/Tabs/Tabs.tsx b/apps/studio/components/layouts/Tabs/Tabs.tsxindex bc12ca07b0d..f755e18d54e 100644--- a/apps/studio/components/layouts/Tabs/Tabs.tsx+++ b/apps/studio/components/layouts/Tabs/Tabs.tsx@@ -11,7 +11,6 @@ import { useParams } from 'common'import { AnimatePresence, motion } from 'framer-motion'import { Plus, X } from 'lucide-react'import { useRouter } from 'next/router'-import { useEffect } from 'react'import {cn,ContextMenu_Shadcn_,diff --git a/apps/studio/components/ui/AIAssistantPanel/AIAssistant.tsx b/apps/studio/components/ui/AIAssistantPanel/AIAssistant.tsxindex 15d07a5a1d0..096871376f6 100644--- a/apps/studio/components/ui/AIAssistantPanel/AIAssistant.tsx+++ b/apps/studio/components/ui/AIAssistantPanel/AIAssistant.tsx@@ -58,7 +58,7 @@ interface AIAssistantProps {export const AIAssistant = ({ className }: AIAssistantProps) => {const router = useRouter()- const { ref, id: entityId } = useParams()+ const { id: entityId } = useParams()const { data: project } = useSelectedProjectQuery()const searchParams = useSearchParamsShallow()diff --git a/apps/studio/components/ui/AIAssistantPanel/AssistantChatForm.tsx b/apps/studio/components/ui/AIAssistantPanel/AssistantChatForm.tsxindex bb22b8207c3..da2194e3827 100644--- a/apps/studio/components/ui/AIAssistantPanel/AssistantChatForm.tsx+++ b/apps/studio/components/ui/AIAssistantPanel/AssistantChatForm.tsx@@ -72,7 +72,7 @@ const AssistantChatFormComponent = forwardRef<HTMLFormElement, FormProps>(onSelectModel,...props},- ref+ _ref) => {const formRef = useRef<HTMLFormElement>(null)const isMobile = useBreakpoint('md')diff --git a/apps/studio/components/ui/AIAssistantPanel/MessageMarkdown.tsx b/apps/studio/components/ui/AIAssistantPanel/MessageMarkdown.tsxindex 8376cc22684..c39416c85da 100644--- a/apps/studio/components/ui/AIAssistantPanel/MessageMarkdown.tsx+++ b/apps/studio/components/ui/AIAssistantPanel/MessageMarkdown.tsx@@ -187,7 +187,7 @@ export function MessageMarkdown({export const MarkdownPre = ({children,id,- isLoading,+ isLoading: _isLoading,readOnly,}: {children: anydiff --git a/apps/studio/components/ui/AIEditor/index.tsx b/apps/studio/components/ui/AIEditor/index.tsxindex 56c78aade40..503f5cf459a 100644--- a/apps/studio/components/ui/AIEditor/index.tsx+++ b/apps/studio/components/ui/AIEditor/index.tsx@@ -86,7 +86,7 @@ export const AIEditor = ({const complete = useCallback(async (- prompt: string,+ _prompt: string,options?: {headers?: Record<string, string>body?: { completionMetadata?: any }diff --git a/apps/studio/components/ui/Charts/AreaChart.tsx b/apps/studio/components/ui/Charts/AreaChart.tsxindex 54542924766..060afa7290b 100644--- a/apps/studio/components/ui/Charts/AreaChart.tsx+++ b/apps/studio/components/ui/Charts/AreaChart.tsx@@ -125,7 +125,7 @@ const AreaChart = ({tickLine={{ stroke: CHART_COLORS.AXIS }}/><Tooltip- content={(props) =>+ content={(_props) =>syncId && syncTooltip && hoveredIndex !== null ? (<div className="bg-black/90 text-white p-2 rounded text-xs"><div className="font-medium">diff --git a/apps/studio/components/ui/Charts/BarChart.tsx b/apps/studio/components/ui/Charts/BarChart.tsxindex 27444adae26..82e7464d927 100644--- a/apps/studio/components/ui/Charts/BarChart.tsx+++ b/apps/studio/components/ui/Charts/BarChart.tsx@@ -171,7 +171,7 @@ function BarChart<D extends Datum = Datum>({key={xAxisKey}/><Tooltip- content={(props) =>+ content={(_props) =>syncId && isHovered && isCurrentChart && hoveredIndex !== null ? (<div className="bg-black/90 text-white p-2 rounded text-xs"><div className="font-medium">diff --git a/apps/studio/components/ui/Charts/ComposedChart.tsx b/apps/studio/components/ui/Charts/ComposedChart.tsxindex 6d2ac414874..f07c6a62b9e 100644--- a/apps/studio/components/ui/Charts/ComposedChart.tsx+++ b/apps/studio/components/ui/Charts/ComposedChart.tsx@@ -541,7 +541,7 @@ export function ComposedChart({maxBarSize={24}/>))- : visibleAttributes.map((attribute, i) => (+ : visibleAttributes.map((attribute) => (<Areakey={attribute.name}type="linear"@@ -693,7 +693,6 @@ export function ComposedChart({onToggleAttribute={(attribute, options) => {setHiddenAttributes((prev) => {if (options?.exclusive) {- const next = new Set<string>()// Hide every attribute except the selected one. If all but one are hidden, clicking again will reset to all visible.const allNames = chartData.map((c) => c.name)const allHiddenExcept = allNames.filter((n) => n !== attribute)diff --git a/apps/studio/components/ui/Charts/ComposedChart.utils.tsx b/apps/studio/components/ui/Charts/ComposedChart.utils.tsxindex 5e15e743387..a05617adefd 100644--- a/apps/studio/components/ui/Charts/ComposedChart.utils.tsx+++ b/apps/studio/components/ui/Charts/ComposedChart.utils.tsx@@ -144,7 +144,7 @@ export const calculateTotalChartAggregate = (export const CustomTooltip = ({active,payload,- label,+ label: _label,attributes,data,xAxisKey = 'period_start',@@ -311,7 +311,7 @@ export const CustomLabel = ({}: CustomLabelProps) => {const items = payload ?? []const maxValueAttribute = isMaxAttribute(attributes)- const [hoveredLabel, setHoveredLabel] = useState<string | null>(null)+ const [, setHoveredLabel] = useState<string | null>(null)const handleMouseEnter = (label: string) => {setHoveredLabel(label)diff --git a/apps/studio/components/ui/CodeEditor/Providers/PgSQLSignatureHelpProvider.ts b/apps/studio/components/ui/CodeEditor/Providers/PgSQLSignatureHelpProvider.tsindex 151c28dd013..9da570ddc35 100644--- a/apps/studio/components/ui/CodeEditor/Providers/PgSQLSignatureHelpProvider.ts+++ b/apps/studio/components/ui/CodeEditor/Providers/PgSQLSignatureHelpProvider.ts@@ -5,7 +5,7 @@ import type { DatabaseFunction } from '@/data/database-functions/database-functi// [Joshen] Needs to be fixed-export default function getPgsqlSignatureHelpProvider(monaco: any, pgInfoRef: RefObject<any>) {+export default function getPgsqlSignatureHelpProvider(_monaco: any, pgInfoRef: RefObject<any>) {return {signatureHelpTriggerCharacters: ['(', ','],provideSignatureHelp: function (model: any, position: any) {diff --git a/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterControls.tsx b/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterControls.tsxindex a4f423f61e5..8726f14a1b2 100644--- a/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterControls.tsx+++ b/apps/studio/components/ui/DataTable/DataTableFilters/DataTableFilterControls.tsx@@ -24,7 +24,9 @@ interface DataTableFilterControls {dateRangeDisabled?: DateRangeDisabled}-export function DataTableFilterControls({ dateRangeDisabled }: DataTableFilterControls) {+export function DataTableFilterControls({+ dateRangeDisabled: _dateRangeDisabled,+}: DataTableFilterControls) {const { filterFields, isLoadingCounts } = useDataTable()return (<Accordiondiff --git a/apps/studio/components/ui/DataTable/DataTableHeaderLayout.tsx b/apps/studio/components/ui/DataTable/DataTableHeaderLayout.tsxindex 5222d38f14c..3a7f19778b9 100644--- a/apps/studio/components/ui/DataTable/DataTableHeaderLayout.tsx+++ b/apps/studio/components/ui/DataTable/DataTableHeaderLayout.tsx@@ -6,7 +6,7 @@ export const DataTableHeaderLayout = forwardRef<PropsWithChildren<{setTopBarHeight: (height: number) => void}>->(({ setTopBarHeight, ...props }, ref) => {+>(({ setTopBarHeight, ...props }, _ref) => {const topBarRef = useRef<HTMLDivElement>(null)useEffect(() => {diff --git a/apps/studio/components/ui/DataTable/DataTableInfinite.tsx b/apps/studio/components/ui/DataTable/DataTableInfinite.tsxindex 824cdfc4aa3..c50847f93ab 100644--- a/apps/studio/components/ui/DataTable/DataTableInfinite.tsx+++ b/apps/studio/components/ui/DataTable/DataTableInfinite.tsx@@ -3,7 +3,7 @@ import type { ColumnDef, Row, Table as TTable, VisibilityState } from '@tanstackimport { flexRender } from '@tanstack/react-table'import { LoaderCircle } from 'lucide-react'import { useQueryState } from 'nuqs'-import { Fragment, memo, ReactNode, UIEvent, useCallback, useRef } from 'react'+import { Fragment, ReactNode, UIEvent, useCallback, useRef } from 'react'import { Button, cn } from 'ui'import { formatCompactNumber } from './DataTable.utils'@@ -13,7 +13,7 @@ import { SHORTCUT_IDS } from '@/state/shortcuts/registry'import { useShortcut } from '@/state/shortcuts/useShortcut'// TODO: add a possible chartGroupBy-export interface DataTableInfiniteProps<TData, TValue, TMeta> {+export interface DataTableInfiniteProps<TData, TValue, _TMeta> {columns: ColumnDef<TData, TValue>[]defaultColumnVisibility?: VisibilityStatetotalRows?: number@@ -232,9 +232,3 @@ function DataTableRow<TData>({</TableRow>)}--// [Joshen] Using MemoizedRow will cause the column visibility to break as the rows aren't getting re-rendered-const MemoizedRow = memo(- DataTableRow,- (prev, next) => prev.row.id === next.row.id && prev.selected === next.selected-) as typeof DataTableRowdiff --git a/apps/studio/components/ui/DotGrid.tsx b/apps/studio/components/ui/DotGrid.tsxindex 03b52f87c06..1e1f0267257 100644--- a/apps/studio/components/ui/DotGrid.tsx+++ b/apps/studio/components/ui/DotGrid.tsx@@ -52,7 +52,6 @@ export const DotGrid = ({ rows, columns, count }: DotGridProps) => {aria-label={`Grid of ${rows * columns} dots, ${count} highlighted`}>{Array.from({ length: rows * columns }).map((_, index) => {- const isHighlighted = index < countreturn (<motion.divkey={index}diff --git a/apps/studio/components/ui/ErrorBoundary/ErrorBoundary.tsx b/apps/studio/components/ui/ErrorBoundary/ErrorBoundary.tsxindex 4f5dddafe53..49f4721c771 100644--- a/apps/studio/components/ui/ErrorBoundary/ErrorBoundary.tsx+++ b/apps/studio/components/ui/ErrorBoundary/ErrorBoundary.tsx@@ -16,7 +16,7 @@ interface ErrorFallbackProps {}const ErrorFallback = ({- error,+ error: _error,resetErrorBoundary,message = 'Something went wrong',actions = [],diff --git a/apps/studio/components/ui/HelpPanel/HelpOptionsList.tsx b/apps/studio/components/ui/HelpPanel/HelpOptionsList.tsxindex 9d218634fdf..3e8bab6ec1b 100644--- a/apps/studio/components/ui/HelpPanel/HelpOptionsList.tsx+++ b/apps/studio/components/ui/HelpPanel/HelpOptionsList.tsx@@ -129,7 +129,7 @@ export const HelpOptionsList = ({</ButtonGroupItem>)default: {- const _exhaustive: never = id+ void (id as never)return null}}diff --git a/apps/studio/components/ui/SqlEditor.tsx b/apps/studio/components/ui/SqlEditor.tsxindex 47a674e4838..01d7e179e41 100644--- a/apps/studio/components/ui/SqlEditor.tsx+++ b/apps/studio/components/ui/SqlEditor.tsx@@ -65,7 +65,7 @@ const SqlEditor = ({}}, [queryId])- const onMount = (editor: any, monaco: any) => {+ const onMount = (editor: any, _monaco: any) => {editorRef.current = editor// Add margin above first line@@ -78,8 +78,6 @@ const SqlEditor = ({})}- const Loading = () => <h4 className="text-lg">Loading</h4>-return (<EditorclassName="monaco-editor"diff --git a/apps/studio/data/api-keys/api-key-id-update-mutation.ts b/apps/studio/data/api-keys/api-key-id-update-mutation.tsindex 600c986b1db..108e43667ad 100644--- a/apps/studio/data/api-keys/api-key-id-update-mutation.ts+++ b/apps/studio/data/api-keys/api-key-id-update-mutation.ts@@ -51,7 +51,7 @@ export const useResourceUpdateMutation = ({return useMutation<ResourceUpdateData, ResponseError, UpdateAPIKeybyIdVariables>({mutationFn: (vars) => updateAPIKeysById(vars),async onSuccess(data, variables, context) {- const { projectRef, id } = variables+ const { projectRef } = variablesawait queryClient.invalidateQueries({ queryKey: apiKeysKeys.list(projectRef) })diff --git a/apps/studio/data/edge-functions/edge-function-query.ts b/apps/studio/data/edge-functions/edge-function-query.tsindex 344a1aaadb2..0eed96ba3ad 100644--- a/apps/studio/data/edge-functions/edge-function-query.ts+++ b/apps/studio/data/edge-functions/edge-function-query.ts@@ -3,7 +3,6 @@ import { components } from 'api-types'import { edgeFunctionsKeys } from './keys'import { get, handleError } from '@/data/fetchers'-import { IS_PLATFORM } from '@/lib/constants'import type { ResponseError, UseCustomQueryOptions } from '@/types'export type EdgeFunctionVariables = {diff --git a/apps/studio/data/edge-functions/edge-functions-query.ts b/apps/studio/data/edge-functions/edge-functions-query.tsindex 7c5e47c15c1..0faa314e534 100644--- a/apps/studio/data/edge-functions/edge-functions-query.ts+++ b/apps/studio/data/edge-functions/edge-functions-query.ts@@ -3,7 +3,6 @@ import { components } from 'api-types'import { edgeFunctionsKeys } from './keys'import { get, handleError } from '@/data/fetchers'-import { IS_PLATFORM } from '@/lib/constants'import type { ResponseError, UseCustomQueryOptions } from '@/types'export type EdgeFunctionsVariables = { projectRef?: string }diff --git a/apps/studio/data/enumerated-types/enumerated-type-create-mutation.ts b/apps/studio/data/enumerated-types/enumerated-type-create-mutation.tsindex d2c5c25ff7c..d5c4947a45f 100644--- a/apps/studio/data/enumerated-types/enumerated-type-create-mutation.ts+++ b/apps/studio/data/enumerated-types/enumerated-type-create-mutation.ts@@ -1,5 +1,4 @@import { getCreateEnumeratedTypeSQL } from '@supabase/pg-meta'-import { wrapWithTransaction } from '@supabase/pg-meta/src/query'import { useMutation, useQueryClient } from '@tanstack/react-query'import { toast } from 'sonner'diff --git a/apps/studio/data/enumerated-types/enumerated-type-update-mutation.ts b/apps/studio/data/enumerated-types/enumerated-type-update-mutation.tsindex e4fa3734ae6..80e1e474a34 100644--- a/apps/studio/data/enumerated-types/enumerated-type-update-mutation.ts+++ b/apps/studio/data/enumerated-types/enumerated-type-update-mutation.ts@@ -1,5 +1,4 @@import { getUpdateEnumeratedTypeSQL } from '@supabase/pg-meta'-import { wrapWithTransaction } from '@supabase/pg-meta/src/query'import { useMutation, useQueryClient } from '@tanstack/react-query'import { toast } from 'sonner'diff --git a/apps/studio/data/fdw/fdw-update-mutation.ts b/apps/studio/data/fdw/fdw-update-mutation.tsindex a577aa136bb..86588b0f396 100644--- a/apps/studio/data/fdw/fdw-update-mutation.ts+++ b/apps/studio/data/fdw/fdw-update-mutation.ts@@ -1,4 +1,4 @@-import { getCreateFDWSql, getDeleteFDWSql, getUpdateFDWSql } from '@supabase/pg-meta'+import { getUpdateFDWSql } from '@supabase/pg-meta'import { wrapWithTransaction } from '@supabase/pg-meta/src/query'import { useMutation, useQueryClient } from '@tanstack/react-query'import { toast } from 'sonner'diff --git a/apps/studio/data/integrations/integrations-query-org-only.ts b/apps/studio/data/integrations/integrations-query-org-only.tsindex 8f83945d05f..83d1232ef13 100644--- a/apps/studio/data/integrations/integrations-query-org-only.ts+++ b/apps/studio/data/integrations/integrations-query-org-only.ts@@ -9,7 +9,7 @@ type IntegrationsVariables = {orgSlug?: string}-export async function getIntegrations({ orgSlug }: IntegrationsVariables, signal?: AbortSignal) {+export async function getIntegrations({ orgSlug }: IntegrationsVariables) {if (!orgSlug) throw new Error('orgSlug is required')const { data, error } = await get('/platform/integrations/{slug}', {@@ -32,7 +32,7 @@ export const useOrgIntegrationsQuery = <TData = IntegrationsData>() =>useQuery<IntegrationsData, IntegrationsError, TData>({queryKey: integrationKeys.integrationsListWithOrg(orgSlug),- queryFn: ({ signal }) => getIntegrations({ orgSlug }, signal),+ queryFn: () => getIntegrations({ orgSlug }),enabled: enabled && typeof orgSlug !== 'undefined',staleTime: 30 * 60 * 1000,...options,diff --git a/apps/studio/data/logs/unified-logs-infinite-query.ts b/apps/studio/data/logs/unified-logs-infinite-query.tsindex 45fb3536fd3..90c9f2b07c7 100644--- a/apps/studio/data/logs/unified-logs-infinite-query.ts+++ b/apps/studio/data/logs/unified-logs-infinite-query.ts@@ -79,23 +79,17 @@ export async function getUnifiedLogs(const cursorValue = pageParam?.cursorconst cursorDirection = pageParam?.direction- let timestampStart: stringlet timestampEnd: stringif (cursorDirection === 'prev') {// Live mode: fetch logs newer than the cursor- timestampStart = cursorValue- ? new Date(Number(cursorValue) / 1000).toISOString()- : isoTimestampStarttimestampEnd = new Date().toISOString()} else if (cursorDirection === 'next') {// Regular pagination: fetch logs older than the cursor- timestampStart = isoTimestampStarttimestampEnd = cursorValue? new Date(Number(cursorValue) / 1000).toISOString(): isoTimestampEnd} else {- timestampStart = isoTimestampStarttimestampEnd = isoTimestampEnd}diff --git a/apps/studio/data/misc/audit-login-mutation.ts b/apps/studio/data/misc/audit-login-mutation.tsindex edd5f5f32ac..39c61f6ac64 100644--- a/apps/studio/data/misc/audit-login-mutation.ts+++ b/apps/studio/data/misc/audit-login-mutation.ts@@ -22,7 +22,7 @@ export const useAddLoginEvent = ({'mutationFn'> = {}) => {return useMutation<AddLoginEventData, ResponseError, AddLoginEventVariables>({- mutationFn: (vars) => addLoginEvent(),+ mutationFn: () => addLoginEvent(),async onSuccess(data, variables, context) {await onSuccess?.(data, variables, context)},diff --git a/apps/studio/data/oauth-custom-providers/oauth-custom-provider-delete-mutation.ts b/apps/studio/data/oauth-custom-providers/oauth-custom-provider-delete-mutation.tsindex 218c9956c8c..384e801151a 100644--- a/apps/studio/data/oauth-custom-providers/oauth-custom-provider-delete-mutation.ts+++ b/apps/studio/data/oauth-custom-providers/oauth-custom-provider-delete-mutation.ts@@ -2,8 +2,6 @@ import { useMutation, useQueryClient } from '@tanstack/react-query'import { toast } from 'sonner'import { oAuthCustomProvidersKeys } from './keys'-import { useAuthConfigQuery } from '@/data/auth/auth-config-query'-import { useProjectApiUrl } from '@/data/config/project-endpoint-query'import { handleError } from '@/data/fetchers'import { createProjectSupabaseClient } from '@/lib/project-supabase-client'import type { ResponseError, UseCustomMutationOptions } from '@/types'diff --git a/apps/studio/data/oauth-custom-providers/oauth-custom-providers-query.ts b/apps/studio/data/oauth-custom-providers/oauth-custom-providers-query.tsindex 1a8966e0852..0221a01d0a2 100644--- a/apps/studio/data/oauth-custom-providers/oauth-custom-providers-query.ts+++ b/apps/studio/data/oauth-custom-providers/oauth-custom-providers-query.ts@@ -16,7 +16,6 @@ export type OAuthCustomProvidersVariables = {export async function getOAuthCustomProviders({projectRef,clientEndpoint,- page = 1,}: OAuthCustomProvidersVariables & { clientEndpoint: string | undefined }) {if (!projectRef) throw new Error('Project reference is required')if (!clientEndpoint) throw new Error('Client endpoint is required')diff --git a/apps/studio/data/oauth-server-apps/oauth-server-app-delete-mutation.ts b/apps/studio/data/oauth-server-apps/oauth-server-app-delete-mutation.tsindex c044854b98b..4a4d8cec60f 100644--- a/apps/studio/data/oauth-server-apps/oauth-server-app-delete-mutation.ts+++ b/apps/studio/data/oauth-server-apps/oauth-server-app-delete-mutation.ts@@ -22,7 +22,7 @@ export async function deleteOAuthServerApp({if (!clientId) throw new Error('Client ID is required')const supabaseClient = await createProjectSupabaseClient(projectRef, clientEndpoint)- const { data, error } = await supabaseClient.auth.admin.oauth.deleteClient(clientId)+ const { error } = await supabaseClient.auth.admin.oauth.deleteClient(clientId)if (error) return handleError(error)return nulldiff --git a/apps/studio/data/oauth/authorized-apps-query.ts b/apps/studio/data/oauth/authorized-apps-query.tsindex 1fc461ac775..cb620905e9d 100644--- a/apps/studio/data/oauth/authorized-apps-query.ts+++ b/apps/studio/data/oauth/authorized-apps-query.ts@@ -18,7 +18,7 @@ export type AuthorizedApp = {authorized_at: string}-export async function getAuthorizedApps({ slug }: AuthorizedAppsVariables, signal?: AbortSignal) {+export async function getAuthorizedApps({ slug }: AuthorizedAppsVariables) {if (!slug) throw new Error('Organization slug is required')const { data, error } = await get('/platform/organizations/{slug}/oauth/apps', {@@ -41,7 +41,7 @@ export const useAuthorizedAppsQuery = <TData = AuthorizedAppsData>() =>useQuery<AuthorizedAppsData, AuthorizedAppsError, TData>({queryKey: oauthAppKeys.authorizedApps(slug),- queryFn: ({ signal }) => getAuthorizedApps({ slug }, signal),+ queryFn: () => getAuthorizedApps({ slug }),enabled: enabled && typeof slug !== 'undefined',...options,})diff --git a/apps/studio/data/oauth/oauth-apps-query.ts b/apps/studio/data/oauth/oauth-apps-query.tsindex de6868e9caf..cfb491bc102 100644--- a/apps/studio/data/oauth/oauth-apps-query.ts+++ b/apps/studio/data/oauth/oauth-apps-query.ts@@ -11,7 +11,7 @@ export type OAuthAppsVariables = {export type OAuthApp = components['schemas']['OAuthAppResponse']-export async function getOAuthApps({ slug }: OAuthAppsVariables, signal?: AbortSignal) {+export async function getOAuthApps({ slug }: OAuthAppsVariables) {if (!slug) throw new Error('Organization slug is required')const { data, error } = await get('/platform/organizations/{slug}/oauth/apps', {@@ -31,7 +31,7 @@ export const useOAuthAppsQuery = <TData = OAuthAppsData>() =>useQuery<OAuthAppsData, OAuthAppsError, TData>({queryKey: oauthAppKeys.oauthApps(slug),- queryFn: ({ signal }) => getOAuthApps({ slug }, signal),+ queryFn: () => getOAuthApps({ slug }),enabled: enabled && typeof slug !== 'undefined',...options,})diff --git a/apps/studio/data/read-replicas/replicas-query.test.ts b/apps/studio/data/read-replicas/replicas-query.test.tsindex 586c5527329..9be3be7f40e 100644--- a/apps/studio/data/read-replicas/replicas-query.test.ts+++ b/apps/studio/data/read-replicas/replicas-query.test.ts@@ -39,7 +39,7 @@ describe('getMaxReplicas', () => {})it('all eligible READ_REPLICA_COMPUTE_CAPS are greater than 0 and at most READ_REPLICAS_MAX_COUNT', () => {- for (const [key, cap] of Object.entries(READ_REPLICA_COMPUTE_CAPS)) {+ for (const [, cap] of Object.entries(READ_REPLICA_COMPUTE_CAPS)) {if (cap > 0) {expect(cap).toBeLessThanOrEqual(READ_REPLICAS_MAX_COUNT)}diff --git a/apps/studio/data/replication/rollback-tables-mutation.ts b/apps/studio/data/replication/rollback-tables-mutation.tsindex 3ab727bbf72..c057baea7ff 100644--- a/apps/studio/data/replication/rollback-tables-mutation.ts+++ b/apps/studio/data/replication/rollback-tables-mutation.ts@@ -106,7 +106,7 @@ export const useRollbackTablesMutation = ({return useMutation<RollbackTablesData, ResponseError, RollbackTablesParams>({mutationFn: (vars) => rollbackTables(vars),async onSuccess(data, variables, context) {- const { projectRef, pipelineId, pipelineStatusName } = variables+ const { projectRef, pipelineId } = variablesawait Promise.all([queryClient.invalidateQueries({queryKey: replicationKeys.pipelinesStatus(projectRef, pipelineId),diff --git a/apps/studio/data/reports/database-charts.ts b/apps/studio/data/reports/database-charts.tsindex 0832fb44c77..007b768f404 100644--- a/apps/studio/data/reports/database-charts.ts+++ b/apps/studio/data/reports/database-charts.ts@@ -15,7 +15,7 @@ export const getReportAttributesV2: (isSpendCapEnabled?: boolean) => ReportAttributes[] = (entitledFeatures,- project,+ _project,diskConfig,maxConnections,pgBouncerMaxConnections,diff --git a/apps/studio/data/reports/v2/auth.config.ts b/apps/studio/data/reports/v2/auth.config.tsindex 8ef1518e206..11e933bbf2d 100644--- a/apps/studio/data/reports/v2/auth.config.ts+++ b/apps/studio/data/reports/v2/auth.config.ts@@ -727,11 +727,6 @@ export const createErrorsReportConfig = ({tooltip: AUTH_ERROR_CODE_LIST.find((e) => e.key === c)?.description,}))- const data = rawData.result.map((point: any) => ({- ...point,- timestamp: point.timestamp,- }))-const pivoted = transformCategoricalCountData(rawData.result, 'error_code', distinct)return { data: pivoted, attributes, query: sql }diff --git a/apps/studio/data/reports/v2/edge-functions.config.ts b/apps/studio/data/reports/v2/edge-functions.config.tsindex 16aba4cd97e..efe1cabfcd8 100644--- a/apps/studio/data/reports/v2/edge-functions.config.ts+++ b/apps/studio/data/reports/v2/edge-functions.config.ts@@ -13,7 +13,6 @@ import {unixMicroToIsoTimestamp,} from '@/components/interfaces/Settings/Logs/Logs.utils'import type { AnalyticsInterval } from '@/data/analytics/constants'-import { get } from '@/data/fetchers'import { analyticsIntervalToGranularity, fetchLogs } from '@/data/reports/report.utils'type EdgeFunctionReportFilters = {diff --git a/apps/studio/data/sso/sso-config-query.ts b/apps/studio/data/sso/sso-config-query.tsindex 070d99f54d3..401fd4d5f43 100644--- a/apps/studio/data/sso/sso-config-query.ts+++ b/apps/studio/data/sso/sso-config-query.ts@@ -2,7 +2,6 @@ import { useQuery } from '@tanstack/react-query'import { orgSSOKeys } from './keys'import { get, handleError } from '@/data/fetchers'-import { useSelectedOrganizationQuery } from '@/hooks/misc/useSelectedOrganization'import { IS_PLATFORM } from '@/lib/constants'import type { ResponseError, UseCustomQueryOptions } from '@/types'diff --git a/apps/studio/data/storage/bucket-object-delete-mutation.ts b/apps/studio/data/storage/bucket-object-delete-mutation.tsindex e96e456ed8e..14e8142f69b 100644--- a/apps/studio/data/storage/bucket-object-delete-mutation.ts+++ b/apps/studio/data/storage/bucket-object-delete-mutation.ts@@ -1,4 +1,4 @@-import { useMutation, useQueryClient } from '@tanstack/react-query'+import { useMutation } from '@tanstack/react-query'import { toast } from 'sonner'import { del, handleError } from '@/data/fetchers'@@ -42,7 +42,6 @@ export const useBucketObjectDeleteMutation = ({UseCustomMutationOptions<BucketObjectDeleteData, ResponseError, DeleteBucketObjectParams>,'mutationFn'> = {}) => {- const queryClient = useQueryClient()return useMutation<BucketObjectDeleteData, ResponseError, DeleteBucketObjectParams>({mutationFn: (vars) => deleteBucketObject(vars),async onSuccess(data, variables, context) {diff --git a/apps/studio/data/utils/deployment-commit-query.ts b/apps/studio/data/utils/deployment-commit-query.tsindex bdee01bccf8..44df7f26534 100644--- a/apps/studio/data/utils/deployment-commit-query.ts+++ b/apps/studio/data/utils/deployment-commit-query.ts@@ -4,7 +4,7 @@ import { fetchHandler } from '@/data/fetchers'import { BASE_PATH } from '@/lib/constants'import type { ResponseError, UseCustomQueryOptions } from '@/types'-export async function getDeploymentCommit(signal?: AbortSignal) {+export async function getDeploymentCommit() {const response = await fetchHandler(`${BASE_PATH}/api/get-deployment-commit`)return (await response.json()) as { commitSha: string; commitTime: string }}@@ -17,6 +17,6 @@ export const useDeploymentCommitQuery = <TData = DeploymentCommitData>({}: UseCustomQueryOptions<DeploymentCommitData, ResponseError, TData> = {}) =>useQuery<DeploymentCommitData, ResponseError, TData>({queryKey: ['deployment-commit'],- queryFn: ({ signal }) => getDeploymentCommit(signal),+ queryFn: () => getDeploymentCommit(),...options,})diff --git a/apps/studio/hooks/misc/useCheckEntitlements.ts b/apps/studio/hooks/misc/useCheckEntitlements.tsindex 881e77886e1..9d4765c7dbf 100644--- a/apps/studio/hooks/misc/useCheckEntitlements.ts+++ b/apps/studio/hooks/misc/useCheckEntitlements.ts@@ -11,26 +11,19 @@ import { useEntitlementsQuery } from '@/data/entitlements/entitlements-query'import { IS_PLATFORM } from '@/lib/constants'function isNumericConfig(- config: EntitlementConfig,+ _config: EntitlementConfig,type: EntitlementType-): config is { enabled: boolean; unlimited: boolean; value: number } {+): _config is { enabled: boolean; unlimited: boolean; value: number } {return type === 'numeric'}function isSetConfig(- config: EntitlementConfig,+ _config: EntitlementConfig,type: EntitlementType-): config is { enabled: boolean; set: string[] } {+): _config is { enabled: boolean; set: string[] } {return type === 'set'}-function isBooleanConfig(- config: EntitlementConfig,- type: EntitlementType-): config is { enabled: boolean } {- return type === 'boolean'-}-function getEntitlementNumericValue(entitlement: Entitlement | null): number | undefined {const entitlementConfig = entitlement?.configreturn entitlementConfig &&diff --git a/apps/studio/lib/ai/tools/mock-tools.ts b/apps/studio/lib/ai/tools/mock-tools.tsindex ce45086323c..32409b61914 100644--- a/apps/studio/lib/ai/tools/mock-tools.ts+++ b/apps/studio/lib/ai/tools/mock-tools.ts@@ -1,5 +1,5 @@import assert from 'node:assert'-import { tool, type ToolSet } from 'ai'+import { tool } from 'ai'import { z } from 'zod'import { getStudioTools } from '../tools/studio-tools'diff --git a/apps/studio/lib/api/self-hosted/util.test.ts b/apps/studio/lib/api/self-hosted/util.test.tsindex 97f80040ebe..85a041984ef 100644--- a/apps/studio/lib/api/self-hosted/util.test.ts+++ b/apps/studio/lib/api/self-hosted/util.test.ts@@ -1,6 +1,6 @@import { beforeEach, describe, expect, it, vi } from 'vitest'-import { assertSelfHosted, encryptString, getConnectionString } from './util'+import { assertSelfHosted, encryptString } from './util'vi.mock('@/lib/constants', () => ({IS_PLATFORM: false,diff --git a/apps/studio/lib/breadcrumbs.test.ts b/apps/studio/lib/breadcrumbs.test.tsindex a23b92afae6..7eeb4f0cdfd 100644--- a/apps/studio/lib/breadcrumbs.test.ts+++ b/apps/studio/lib/breadcrumbs.test.ts@@ -1,4 +1,4 @@-import { beforeEach, describe, expect, it, vi } from 'vitest'+import { beforeEach, describe, expect, it } from 'vitest'import {getMirroredBreadcrumbs,diff --git a/apps/studio/lib/helpers.test.ts b/apps/studio/lib/helpers.test.tsindex 43442a64dab..b5bfd570443 100644--- a/apps/studio/lib/helpers.test.ts+++ b/apps/studio/lib/helpers.test.ts@@ -139,7 +139,7 @@ describe('propsAreEqual', () => {})it('should return false if the props are not equal', () => {- const result = propsAreEqual({ a: 1, b: 2 }, { a: 1, b: 3 })+ propsAreEqual({ a: 1, b: 2 }, { a: 1, b: 3 })})})diff --git a/apps/studio/lib/password-strength.test.ts b/apps/studio/lib/password-strength.test.tsindex 6400938630c..0af4784f0b2 100644--- a/apps/studio/lib/password-strength.test.ts+++ b/apps/studio/lib/password-strength.test.ts@@ -1,4 +1,4 @@-import { beforeEach, describe, expect, it, vi } from 'vitest'+import { describe, expect, it } from 'vitest'import { passwordStrength } from './password-strength'diff --git a/apps/studio/lib/profile.tsx b/apps/studio/lib/profile.tsxindex a8a88768c62..90e819569a4 100644--- a/apps/studio/lib/profile.tsx+++ b/apps/studio/lib/profile.tsx@@ -131,7 +131,6 @@ export function useProfileNameAndPicture(): {const { profile, isLoading: isLoadingProfile } = useProfile()const { data: identitiesData, isPending: isLoadingIdentities } = useProfileIdentitiesQuery()- const username = profile?.usernameconst isGitHubProfile = profile?.auth0_id?.startsWith('github')const gitHubUsername = isGitHubProfilediff --git a/apps/studio/lib/project-supabase-client.ts b/apps/studio/lib/project-supabase-client.tsindex 55168a5ae50..961593a06ca 100644--- a/apps/studio/lib/project-supabase-client.ts+++ b/apps/studio/lib/project-supabase-client.ts@@ -15,11 +15,11 @@ export async function createProjectSupabaseClient(projectRef: string, clientEndpautoRefreshToken: false,detectSessionInUrl: false,storage: {- getItem: (key) => {+ getItem: (_key) => {return null},- setItem: (key, value) => {},- removeItem: (key) => {},+ setItem: (_key, _value) => {},+ removeItem: (_key) => {},},},})diff --git a/apps/studio/lib/sql-parameters.ts b/apps/studio/lib/sql-parameters.tsindex 2311e0f5dda..3d4a1d7ec1e 100644--- a/apps/studio/lib/sql-parameters.ts+++ b/apps/studio/lib/sql-parameters.ts@@ -102,7 +102,7 @@ export const processParameterizedSql = (sql: string, parameters: Record<string,// Replace :parameters with valuesconst paramRegex = /:(\w+)/g- processedSql = processedSql.replace(paramRegex, (match, paramName) => {+ processedSql = processedSql.replace(paramRegex, (_match, paramName) => {const value = parameters[paramName] ?? paramDefaults[paramName]?.valueif (value === undefined) {throw new Error(`Missing value for parameter: ${paramName}`)diff --git a/apps/studio/lib/upload.ts b/apps/studio/lib/upload.tsindex 5f141374099..1f554a5b8a3 100644--- a/apps/studio/lib/upload.ts+++ b/apps/studio/lib/upload.ts@@ -18,9 +18,9 @@ export const uploadAttachment = async (multiTab: false,detectSessionInUrl: false,localStorage: {- getItem: (key: string) => undefined,- setItem: (key: string, value: string) => {},- removeItem: (key: string) => {},+ getItem: (_key: string) => undefined,+ setItem: (_key: string, _value: string) => {},+ removeItem: (_key: string) => {},},},})diff --git a/apps/studio/pages/_app.tsx b/apps/studio/pages/_app.tsxindex 357140f3018..8f299c6c513 100644--- a/apps/studio/pages/_app.tsx+++ b/apps/studio/pages/_app.tsx@@ -123,7 +123,7 @@ function CustomApp({ Component, pageProps }: AppPropsWithLayout) {const getLayout = Component.getLayout ?? ((page) => page)- const errorBoundaryHandler = (error: Error, info: ErrorInfo) => {+ const errorBoundaryHandler = (error: Error, _info: ErrorInfo) => {Sentry.withScope(function (scope) {scope.setTag('globalErrorBoundary', true)const eventId = Sentry.captureException(error)diff --git a/apps/studio/pages/api/ai/sql/check-api-key.ts b/apps/studio/pages/api/ai/sql/check-api-key.tsindex aedf98eaadf..15410b6858f 100644--- a/apps/studio/pages/api/ai/sql/check-api-key.ts+++ b/apps/studio/pages/api/ai/sql/check-api-key.ts@@ -19,7 +19,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handleGet = async (req: NextApiRequest, res: NextApiResponse) => {+const handleGet = async (_req: NextApiRequest, res: NextApiResponse) => {if (process.env.OPENAI_API_KEY) {return res.status(200).json({ hasKey: true })} else {diff --git a/apps/studio/pages/api/cli-release-version.ts b/apps/studio/pages/api/cli-release-version.tsindex 4719fcfd946..e3b47dd4340 100644--- a/apps/studio/pages/api/cli-release-version.ts+++ b/apps/studio/pages/api/cli-release-version.ts@@ -10,7 +10,7 @@ type GitHubRepositoryRelease = {const current = process.env.CURRENT_CLI_VERSION ? `v${process.env.CURRENT_CLI_VERSION}` : undefined-const handler = async (req: NextApiRequest, res: NextApiResponse) => {+const handler = async (_req: NextApiRequest, res: NextApiResponse) => {try {const { tag_name: latest, published_at }: GitHubRepositoryRelease = await fetch('https://api.github.com/repos/supabase/cli/releases/latest'diff --git a/apps/studio/pages/api/connect/index.ts b/apps/studio/pages/api/connect/index.tsindex 1f18ba232df..071f0dfcd25 100644--- a/apps/studio/pages/api/connect/index.ts+++ b/apps/studio/pages/api/connect/index.ts@@ -30,7 +30,7 @@ function getFilePaths(folderPath: string, baseFolder = ''): string[] {return filepaths}-export default async function getFileNames(req: NextApiRequest, res: NextApiResponse) {+export default async function getFileNames(_req: NextApiRequest, res: NextApiResponse) {const folderPath = path.join(process.cwd(), 'components/interfaces/Home/Connect/content')const filepaths = getFilePaths(folderPath)res.statusCode = 200diff --git a/apps/studio/pages/api/get-deployment-commit.ts b/apps/studio/pages/api/get-deployment-commit.tsindex 929c3fcf714..f45b0c7efb6 100644--- a/apps/studio/pages/api/get-deployment-commit.ts+++ b/apps/studio/pages/api/get-deployment-commit.ts@@ -21,7 +21,7 @@ async function getCommitTime(commitSha: string) {}export default async function handler(- req: NextApiRequest,+ _req: NextApiRequest,res: NextApiResponse<{ commitSha: string; commitTime: string }>) {// Set cache control headers for 10 minutes so that we don't get banned by GitHub APIdiff --git a/apps/studio/pages/api/get-utc-time.ts b/apps/studio/pages/api/get-utc-time.tsindex 0945a10c1f0..4138cddc507 100644--- a/apps/studio/pages/api/get-utc-time.ts+++ b/apps/studio/pages/api/get-utc-time.ts@@ -2,7 +2,7 @@ import { NextApiRequest, NextApiResponse } from 'next'// Returns the current UTC time in ISO format. Used to check if the client and server time are skewed. Clock skew causes// issues with JWT verification.-const handler = async (req: NextApiRequest, res: NextApiResponse) => {+const handler = async (_req: NextApiRequest, res: NextApiResponse) => {const utcTime = new Date().toISOString()return res.status(200).json({ utcTime })diff --git a/apps/studio/pages/api/platform/database/[ref]/pooling.ts b/apps/studio/pages/api/platform/database/[ref]/pooling.tsindex adaa69d4e29..b67f8be2c11 100644--- a/apps/studio/pages/api/platform/database/[ref]/pooling.ts+++ b/apps/studio/pages/api/platform/database/[ref]/pooling.ts@@ -18,7 +18,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {+const handleGetAll = async (_req: NextApiRequest, res: NextApiResponse) => {const project: any = {db_port: 6543,pool_mode: 'transaction',@@ -28,6 +28,6 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {return res.status(200).json({ project })}-const handlePatch = async (req: NextApiRequest, res: NextApiResponse) => {+const handlePatch = async (_req: NextApiRequest, res: NextApiResponse) => {return res.status(200).json({})}diff --git a/apps/studio/pages/api/platform/integrations/[slug].ts b/apps/studio/pages/api/platform/integrations/[slug].tsindex fb331c9f577..8a1c9ef0168 100644--- a/apps/studio/pages/api/platform/integrations/[slug].ts+++ b/apps/studio/pages/api/platform/integrations/[slug].ts@@ -20,6 +20,6 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {type ResponseData =paths['/platform/integrations/{slug}']['get']['responses']['200']['content']['application/json']-const handleGet = async (req: NextApiRequest, res: NextApiResponse<ResponseData>) => {+const handleGet = async (_req: NextApiRequest, res: NextApiResponse<ResponseData>) => {return res.status(200).json([])}diff --git a/apps/studio/pages/api/platform/integrations/github/authorization.ts b/apps/studio/pages/api/platform/integrations/github/authorization.tsindex 92b57b3dbb2..91bc37b52e2 100644--- a/apps/studio/pages/api/platform/integrations/github/authorization.ts+++ b/apps/studio/pages/api/platform/integrations/github/authorization.ts@@ -20,6 +20,6 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {type ResponseData =paths['/platform/integrations/github/authorization']['get']['responses']['200']['content']['application/json']-const handleGet = async (req: NextApiRequest, res: NextApiResponse<ResponseData>) => {+const handleGet = async (_req: NextApiRequest, res: NextApiResponse<ResponseData>) => {return res.status(200).json(null as any)}diff --git a/apps/studio/pages/api/platform/integrations/github/connections.ts b/apps/studio/pages/api/platform/integrations/github/connections.tsindex 460463946f6..b579c1ea9d9 100644--- a/apps/studio/pages/api/platform/integrations/github/connections.ts+++ b/apps/studio/pages/api/platform/integrations/github/connections.ts@@ -20,6 +20,6 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {type ResponseData =paths['/platform/integrations/github/connections']['get']['responses']['200']['content']['application/json']-const handleGet = async (req: NextApiRequest, res: NextApiResponse<ResponseData>) => {+const handleGet = async (_req: NextApiRequest, res: NextApiResponse<ResponseData>) => {return res.status(200).json({ connections: [] })}diff --git a/apps/studio/pages/api/platform/integrations/github/repositories.ts b/apps/studio/pages/api/platform/integrations/github/repositories.tsindex ca107232442..69beeaceb68 100644--- a/apps/studio/pages/api/platform/integrations/github/repositories.ts+++ b/apps/studio/pages/api/platform/integrations/github/repositories.ts@@ -20,6 +20,6 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {type ResponseData =paths['/platform/integrations/github/repositories']['get']['responses']['200']['content']-const handleGet = async (req: NextApiRequest, res: NextApiResponse<ResponseData>) => {+const handleGet = async (_req: NextApiRequest, res: NextApiResponse<ResponseData>) => {return res.status(200).json({ repositories: [] } as never)}diff --git a/apps/studio/pages/api/platform/organizations/[slug]/billing/subscription.ts b/apps/studio/pages/api/platform/organizations/[slug]/billing/subscription.tsindex 7095dbfcb85..6c286dbb588 100644--- a/apps/studio/pages/api/platform/organizations/[slug]/billing/subscription.ts+++ b/apps/studio/pages/api/platform/organizations/[slug]/billing/subscription.ts@@ -20,7 +20,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {type ResponseData =paths['/platform/organizations/{slug}/billing/subscription']['get']['responses']['200']['content']['application/json']-const handleGet = async (req: NextApiRequest, res: NextApiResponse<ResponseData>) => {+const handleGet = async (_req: NextApiRequest, res: NextApiResponse<ResponseData>) => {const response: ResponseData = {billing_cycle_anchor: 0,current_period_end: 0,diff --git a/apps/studio/pages/api/platform/organizations/index.ts b/apps/studio/pages/api/platform/organizations/index.tsindex 2730a0b648b..b7442f248f7 100644--- a/apps/studio/pages/api/platform/organizations/index.ts+++ b/apps/studio/pages/api/platform/organizations/index.ts@@ -16,7 +16,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {+const handleGetAll = async (_req: NextApiRequest, res: NextApiResponse) => {// Platform specific endpointconst response = [{diff --git a/apps/studio/pages/api/platform/profile/index.ts b/apps/studio/pages/api/platform/profile/index.tsindex 1703b7f20d1..ac2acec7e8e 100644--- a/apps/studio/pages/api/platform/profile/index.ts+++ b/apps/studio/pages/api/platform/profile/index.ts@@ -17,7 +17,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {+const handleGetAll = async (_req: NextApiRequest, res: NextApiResponse) => {// Platform specific endpointconst response = {id: 1,diff --git a/apps/studio/pages/api/platform/projects/[ref]/api-keys/temporary.ts b/apps/studio/pages/api/platform/projects/[ref]/api-keys/temporary.tsindex 799f36e8b41..134226b2806 100644--- a/apps/studio/pages/api/platform/projects/[ref]/api-keys/temporary.ts+++ b/apps/studio/pages/api/platform/projects/[ref]/api-keys/temporary.ts@@ -24,7 +24,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handlePost = async (req: NextApiRequest, res: NextApiResponse) => {+const handlePost = async (_req: NextApiRequest, res: NextApiResponse) => {const response = {api_key: process.env.SUPABASE_SERVICE_KEY ?? '',}diff --git a/apps/studio/pages/api/platform/projects/[ref]/api/rest.ts b/apps/studio/pages/api/platform/projects/[ref]/api/rest.tsindex e5be4f2a785..662f7cf4ec3 100644--- a/apps/studio/pages/api/platform/projects/[ref]/api/rest.ts+++ b/apps/studio/pages/api/platform/projects/[ref]/api/rest.ts@@ -18,7 +18,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handleGet = async (req: NextApiRequest, res: NextApiResponse) => {+const handleGet = async (_req: NextApiRequest, res: NextApiResponse) => {const response = await fetch(`${process.env.SUPABASE_URL}/rest/v1/`, {method: 'GET',headers: {@@ -34,6 +34,6 @@ const handleGet = async (req: NextApiRequest, res: NextApiResponse) => {return res.status(500).json({ error: { message: 'Internal Server Error' } })}-const handleHead = async (req: NextApiRequest, res: NextApiResponse) => {+const handleHead = async (_req: NextApiRequest, res: NextApiResponse) => {res.status(200).end()}diff --git a/apps/studio/pages/api/platform/projects/[ref]/billing/addons.ts b/apps/studio/pages/api/platform/projects/[ref]/billing/addons.tsindex 7d305169f34..e054c9cc3f5 100644--- a/apps/studio/pages/api/platform/projects/[ref]/billing/addons.ts+++ b/apps/studio/pages/api/platform/projects/[ref]/billing/addons.ts@@ -20,7 +20,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {type ResponseData =paths['/platform/projects/{ref}/billing/addons']['get']['responses']['200']['content']['application/json']-const handleGet = async (req: NextApiRequest, res: NextApiResponse<ResponseData>) => {+const handleGet = async (_req: NextApiRequest, res: NextApiResponse<ResponseData>) => {const response: ResponseData = {ref: '',selected_addons: [],diff --git a/apps/studio/pages/api/platform/projects/[ref]/config/index.ts b/apps/studio/pages/api/platform/projects/[ref]/config/index.tsindex 44496ee2e0b..aa20df2c678 100644--- a/apps/studio/pages/api/platform/projects/[ref]/config/index.ts+++ b/apps/studio/pages/api/platform/projects/[ref]/config/index.ts@@ -18,7 +18,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {+const handleGetAll = async (_req: NextApiRequest, res: NextApiResponse) => {// Platform specific endpointreturn res.status(200).json({db_anon_role: 'anon',@@ -31,7 +31,7 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {})}-const handlePatch = async (req: NextApiRequest, res: NextApiResponse) => {+const handlePatch = async (_req: NextApiRequest, res: NextApiResponse) => {// Platform specific endpointreturn res.status(200).json({})}diff --git a/apps/studio/pages/api/platform/projects/[ref]/config/postgrest.ts b/apps/studio/pages/api/platform/projects/[ref]/config/postgrest.tsindex 0a977c55e8d..2e494abe7ea 100644--- a/apps/studio/pages/api/platform/projects/[ref]/config/postgrest.ts+++ b/apps/studio/pages/api/platform/projects/[ref]/config/postgrest.ts@@ -17,7 +17,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handleGet = async (req: NextApiRequest, res: NextApiResponse) => {+const handleGet = async (_req: NextApiRequest, res: NextApiResponse) => {const responseObj: components['schemas']['GetPostgrestConfigResponse'] = {db_anon_role: 'anon',db_extra_search_path: process.env.PGRST_DB_EXTRA_SEARCH_PATH ?? 'public',diff --git a/apps/studio/pages/api/platform/projects/[ref]/content/folders/[id].ts b/apps/studio/pages/api/platform/projects/[ref]/content/folders/[id].tsindex 8a2d23aac64..ed8564c1111 100644--- a/apps/studio/pages/api/platform/projects/[ref]/content/folders/[id].ts+++ b/apps/studio/pages/api/platform/projects/[ref]/content/folders/[id].ts@@ -45,7 +45,7 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse<GetResponstype PatchResponseData =paths['/platform/projects/{ref}/content/folders/{id}']['patch']['responses']['200']['content']-const handlePatch = async (req: NextApiRequest, res: NextApiResponse<PatchResponseData>) => {+const handlePatch = async (_req: NextApiRequest, res: NextApiResponse<PatchResponseData>) => {// Platform specific endpointreturn res.status(200).json({} as never)}diff --git a/apps/studio/pages/api/platform/projects/[ref]/content/index.ts b/apps/studio/pages/api/platform/projects/[ref]/content/index.tsindex d15046d6ccd..53718b73d12 100644--- a/apps/studio/pages/api/platform/projects/[ref]/content/index.ts+++ b/apps/studio/pages/api/platform/projects/[ref]/content/index.ts@@ -31,7 +31,6 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-type GetRequestData = paths['/platform/projects/{ref}/content']['get']['parameters']['query']type GetResponseData =paths['/platform/projects/{ref}/content']['get']['responses']['200']['content']['application/json']diff --git a/apps/studio/pages/api/platform/projects/[ref]/databases.ts b/apps/studio/pages/api/platform/projects/[ref]/databases.tsindex 42197c41e4c..c8ef80907af 100644--- a/apps/studio/pages/api/platform/projects/[ref]/databases.ts+++ b/apps/studio/pages/api/platform/projects/[ref]/databases.ts@@ -21,7 +21,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {type ResponseData =paths['/platform/projects/{ref}/databases']['get']['responses']['200']['content']['application/json']-const handleGet = async (req: NextApiRequest, res: NextApiResponse<ResponseData>) => {+const handleGet = async (_req: NextApiRequest, res: NextApiResponse<ResponseData>) => {return res.status(200).json([{cloud_provider: 'localhost' as any,diff --git a/apps/studio/pages/api/platform/projects/[ref]/index.ts b/apps/studio/pages/api/platform/projects/[ref]/index.tsindex 0a85969ded9..ccfac100752 100644--- a/apps/studio/pages/api/platform/projects/[ref]/index.ts+++ b/apps/studio/pages/api/platform/projects/[ref]/index.ts@@ -17,7 +17,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handleGet = async (req: NextApiRequest, res: NextApiResponse) => {+const handleGet = async (_req: NextApiRequest, res: NextApiResponse) => {// Platform specific endpointconst response = {...DEFAULT_PROJECT,diff --git a/apps/studio/pages/api/platform/projects/[ref]/infra-monitoring.ts b/apps/studio/pages/api/platform/projects/[ref]/infra-monitoring.tsindex 5b645eadab1..e1cc4c1a31d 100644--- a/apps/studio/pages/api/platform/projects/[ref]/infra-monitoring.ts+++ b/apps/studio/pages/api/platform/projects/[ref]/infra-monitoring.ts@@ -16,7 +16,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {+const handleGetAll = async (_req: NextApiRequest, res: NextApiResponse) => {// Platform specific endpointconst response = {data: [],diff --git a/apps/studio/pages/api/platform/projects/[ref]/settings.ts b/apps/studio/pages/api/platform/projects/[ref]/settings.tsindex e63ffcdb1af..3d7da804559 100644--- a/apps/studio/pages/api/platform/projects/[ref]/settings.ts+++ b/apps/studio/pages/api/platform/projects/[ref]/settings.ts@@ -25,7 +25,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {+const handleGetAll = async (_req: NextApiRequest, res: NextApiResponse) => {const response = getProjectSettings()return res.status(200).json(response)diff --git a/apps/studio/pages/api/platform/projects/index.ts b/apps/studio/pages/api/platform/projects/index.tsindex 8ebcac8c908..f426cdab804 100644--- a/apps/studio/pages/api/platform/projects/index.ts+++ b/apps/studio/pages/api/platform/projects/index.ts@@ -17,7 +17,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {+const handleGetAll = async (_req: NextApiRequest, res: NextApiResponse) => {// Platform specific endpointconst response = [DEFAULT_PROJECT]return res.status(200).json(response)diff --git a/apps/studio/pages/api/platform/props/org/[slug].tsx b/apps/studio/pages/api/platform/props/org/[slug].tsxindex 4210ac5cfca..5f6c214eb59 100644--- a/apps/studio/pages/api/platform/props/org/[slug].tsx+++ b/apps/studio/pages/api/platform/props/org/[slug].tsx@@ -16,7 +16,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {+const handleGetAll = async (_req: NextApiRequest, res: NextApiResponse) => {// Platform specific endpointconst response = {members: [],diff --git a/apps/studio/pages/api/platform/props/project/[ref]/api.ts b/apps/studio/pages/api/platform/props/project/[ref]/api.tsindex fcc878b575a..e821639993f 100644--- a/apps/studio/pages/api/platform/props/project/[ref]/api.ts+++ b/apps/studio/pages/api/platform/props/project/[ref]/api.ts@@ -22,7 +22,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {+const handleGetAll = async (_req: NextApiRequest, res: NextApiResponse) => {// Platform specific endpointconst response = {project: {diff --git a/apps/studio/pages/api/platform/props/project/[ref]/index.ts b/apps/studio/pages/api/platform/props/project/[ref]/index.tsindex 871f119e278..fd60280a161 100644--- a/apps/studio/pages/api/platform/props/project/[ref]/index.ts+++ b/apps/studio/pages/api/platform/props/project/[ref]/index.ts@@ -17,7 +17,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {+const handleGetAll = async (_req: NextApiRequest, res: NextApiResponse) => {// Platform specific endpointconst response = {project: {diff --git a/apps/studio/pages/api/platform/telemetry/event.ts b/apps/studio/pages/api/platform/telemetry/event.tsindex fdf9ac6c1fa..ec1e56dde13 100644--- a/apps/studio/pages/api/platform/telemetry/event.ts+++ b/apps/studio/pages/api/platform/telemetry/event.ts@@ -16,7 +16,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handlePost = async (req: NextApiRequest, res: NextApiResponse) => {+const handlePost = async (_req: NextApiRequest, res: NextApiResponse) => {// Platform specific endpointconst response = {}return res.status(200).json(response)diff --git a/apps/studio/pages/api/v1/projects/[ref]/api-keys.ts b/apps/studio/pages/api/v1/projects/[ref]/api-keys.tsindex 391ce30f396..e0f4fb3e4f9 100644--- a/apps/studio/pages/api/v1/projects/[ref]/api-keys.ts+++ b/apps/studio/pages/api/v1/projects/[ref]/api-keys.ts@@ -24,7 +24,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {}}-const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => {+const handleGetAll = async (_req: NextApiRequest, res: NextApiResponse) => {const response = [{name: 'anon',diff --git a/apps/studio/pages/integrations/vercel/install.tsx b/apps/studio/pages/integrations/vercel/install.tsxindex de499810e14..5a1637a3e1b 100644--- a/apps/studio/pages/integrations/vercel/install.tsx+++ b/apps/studio/pages/integrations/vercel/install.tsx@@ -29,7 +29,7 @@ export type VercelIntegrationFlow = 'deploy-button' | 'marketing'const VercelIntegration: NextPageWithLayout = () => {const router = useRouter()- const { code, configurationId, teamId, source, externalId } = useParams()+ const { code, configurationId, teamId, source } = useParams()const [selectedOrg, setSelectedOrg] = useState<Organization | null>(null)const snapshot = useIntegrationInstallationSnapshot()diff --git a/apps/studio/pages/project/[ref]/auth/oauth-server.tsx b/apps/studio/pages/project/[ref]/auth/oauth-server.tsxindex 8aed4d6af19..73f7c6ed452 100644--- a/apps/studio/pages/project/[ref]/auth/oauth-server.tsx+++ b/apps/studio/pages/project/[ref]/auth/oauth-server.tsx@@ -7,7 +7,6 @@ import {PageHeaderSummary,PageHeaderTitle,} from 'ui-patterns/PageHeader'-import { PageSection, PageSectionContent } from 'ui-patterns/PageSection'import { OAuthServerSettingsForm } from '@/components/interfaces/Auth/OAuthApps/OAuthServerSettingsForm'import AuthLayout from '@/components/layouts/AuthLayout/AuthLayout'diff --git a/apps/studio/pages/project/[ref]/database/backups/pitr.tsx b/apps/studio/pages/project/[ref]/database/backups/pitr.tsxindex 1da676c7f79..62b23cc8aff 100644--- a/apps/studio/pages/project/[ref]/database/backups/pitr.tsx+++ b/apps/studio/pages/project/[ref]/database/backups/pitr.tsx@@ -26,7 +26,6 @@ import { UpgradeToPro } from '@/components/ui/UpgradeToPro'import { useBackupsQuery } from '@/data/database/backups-query'import { useCheckEntitlements } from '@/hooks/misc/useCheckEntitlements'import { useAsyncCheckPermissions } from '@/hooks/misc/useCheckPermissions'-import { useSelectedOrganizationQuery } from '@/hooks/misc/useSelectedOrganization'import { useIsOrioleDbInAws, useSelectedProjectQuery } from '@/hooks/misc/useSelectedProject'import { DOCS_URL, PROJECT_STATUS } from '@/lib/constants'import type { NextPageWithLayout } from '@/types'diff --git a/apps/studio/pages/project/[ref]/database/publications/[id].tsx b/apps/studio/pages/project/[ref]/database/publications/[id].tsxindex de740317c85..13c9134f62f 100644--- a/apps/studio/pages/project/[ref]/database/publications/[id].tsx+++ b/apps/studio/pages/project/[ref]/database/publications/[id].tsx@@ -3,7 +3,6 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import { PublicationsTables } from '@/components/interfaces/Database/Publications/PublicationsTables'import DatabaseLayout from '@/components/layouts/DatabaseLayout/DatabaseLayout'import DefaultLayout from '@/components/layouts/DefaultLayout'-import { PageLayout } from '@/components/layouts/PageLayout/PageLayout'import { ScaffoldContainer, ScaffoldSection } from '@/components/layouts/Scaffold'import NoPermission from '@/components/ui/NoPermission'import { useAsyncCheckPermissions } from '@/hooks/misc/useCheckPermissions'diff --git a/apps/studio/pages/project/[ref]/functions/new.tsx b/apps/studio/pages/project/[ref]/functions/new.tsxindex 8c6cb92a832..27beabf7d10 100644--- a/apps/studio/pages/project/[ref]/functions/new.tsx+++ b/apps/studio/pages/project/[ref]/functions/new.tsx@@ -42,7 +42,6 @@ import { FileData } from '@/components/ui/FileExplorerAndEditor/FileExplorerAndEimport { useEdgeFunctionDeployMutation } from '@/data/edge-functions/edge-functions-deploy-mutation'import { useSendEventMutation } from '@/data/telemetry/send-event-mutation'import { useIsFeatureEnabled } from '@/hooks/misc/useIsFeatureEnabled'-import { useLatest } from '@/hooks/misc/useLatest'import { useSelectedOrganizationQuery } from '@/hooks/misc/useSelectedOrganization'import { useSelectedProjectQuery } from '@/hooks/misc/useSelectedProject'import { BASE_PATH } from '@/lib/constants'diff --git a/apps/studio/pages/project/[ref]/integrations/[id]/[pageId]/[childId]/index.tsx b/apps/studio/pages/project/[ref]/integrations/[id]/[pageId]/[childId]/index.tsxindex 347e62738af..8b9dfc5f80e 100644--- a/apps/studio/pages/project/[ref]/integrations/[id]/[pageId]/[childId]/index.tsx+++ b/apps/studio/pages/project/[ref]/integrations/[id]/[pageId]/[childId]/index.tsx@@ -13,7 +13,6 @@ import {import { PageSection, PageSectionContent } from 'ui-patterns/PageSection'import { GenericSkeletonLoader } from 'ui-patterns/ShimmeringLoader'-import { INTEGRATIONS } from '@/components/interfaces/Integrations/Landing/Integrations.constants'import { useAvailableIntegrations } from '@/components/interfaces/Integrations/Landing/useAvailableIntegrations'import { useInstalledIntegrations } from '@/components/interfaces/Integrations/Landing/useInstalledIntegrations'import { DefaultLayout } from '@/components/layouts/DefaultLayout'diff --git a/apps/studio/pages/project/[ref]/observability/auth.tsx b/apps/studio/pages/project/[ref]/observability/auth.tsxindex a739e03b075..f64b5aab5ab 100644--- a/apps/studio/pages/project/[ref]/observability/auth.tsx+++ b/apps/studio/pages/project/[ref]/observability/auth.tsx@@ -1,4 +1,3 @@-import { useQueryClient } from '@tanstack/react-query'import { useParams } from 'common'import dayjs from 'dayjs'import { ArrowRight, LogsIcon, RefreshCw } from 'lucide-react'@@ -87,7 +86,6 @@ const AuthUsage = () => {end: selectedDateRange?.period_end?.date,})- const queryClient = useQueryClient()const [isRefreshing, setIsRefreshing] = useState(false)const [monitoringStatusCodeFilter, setMonitoringStatusCodeFilter] = useQueryState(@@ -175,7 +173,7 @@ const AuthUsage = () => {id: 'api-gateway-logs',label: 'Open in API Gateway Logs',icon: <LogsIcon size={12} />,- onSelect: ({ start, end, clear, chartId }) => {+ onSelect: ({ start, end, chartId }) => {let url = `/project/${ref}/logs/edge-logs?its=${start}&ite=${end}`if (chartId?.includes('errors')) {@@ -191,7 +189,7 @@ const AuthUsage = () => {id: 'auth-logs',label: 'Open in Auth Logs',icon: <LogsIcon size={12} />,- onSelect: ({ start, end, clear }) => {+ onSelect: ({ start, end }) => {const url = `/project/${ref}/logs/auth-logs?its=${start}&ite=${end}`router.push(url)},diff --git a/apps/studio/pages/project/[ref]/observability/database.tsx b/apps/studio/pages/project/[ref]/observability/database.tsxindex beb017e32e2..1cff91b6689 100644--- a/apps/studio/pages/project/[ref]/observability/database.tsx+++ b/apps/studio/pages/project/[ref]/observability/database.tsx@@ -102,7 +102,7 @@ const DatabaseUsage = () => {projectRef: project?.ref,connectionString: project?.connectionString,})- const { data: poolerConfig } = usePgbouncerConfigQuery({ projectRef: project?.ref })+ usePgbouncerConfigQuery({ projectRef: project?.ref })// PGBouncer connectionsconst { data: addons } = useProjectAddonsQuery({ projectRef: project?.ref })diff --git a/apps/studio/pages/project/[ref]/observability/index.tsx b/apps/studio/pages/project/[ref]/observability/index.tsxindex 403b40d927c..28358abda0d 100644--- a/apps/studio/pages/project/[ref]/observability/index.tsx+++ b/apps/studio/pages/project/[ref]/observability/index.tsx@@ -2,7 +2,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import { useFeatureFlags, useFlag, useParams } from 'common'import { useRouter } from 'next/router'import { parseAsBoolean, useQueryState } from 'nuqs'-import { useEffect, useState } from 'react'+import { useEffect } from 'react'import { LogoLoader } from 'ui'import { ObservabilityOverview } from '@/components/interfaces/Observability/ObservabilityOverview'diff --git a/apps/studio/pages/project/[ref]/observability/realtime.tsx b/apps/studio/pages/project/[ref]/observability/realtime.tsxindex 65938c1dccb..303d883065c 100644--- a/apps/studio/pages/project/[ref]/observability/realtime.tsx+++ b/apps/studio/pages/project/[ref]/observability/realtime.tsx@@ -1,5 +1,5 @@import { useQueryClient } from '@tanstack/react-query'-import { useFlag, useParams } from 'common'+import { useParams } from 'common'import dayjs from 'dayjs'import { ArrowRight, RefreshCw } from 'lucide-react'import { useEffect, useMemo, useRef, useState } from 'react'diff --git a/apps/studio/pages/project/[ref]/settings/api-keys/legacy.tsx b/apps/studio/pages/project/[ref]/settings/api-keys/legacy.tsxindex f120c4ae336..5e2d5c7885b 100644--- a/apps/studio/pages/project/[ref]/settings/api-keys/legacy.tsx+++ b/apps/studio/pages/project/[ref]/settings/api-keys/legacy.tsx@@ -3,7 +3,6 @@ import DefaultLayout from '@/components/layouts/DefaultLayout'import SettingsLayout from '@/components/layouts/ProjectSettingsLayout/SettingsLayout'import { DisplayApiSettings } from '@/components/ui/ProjectSettings/DisplayApiSettings'import { ToggleLegacyApiKeysPanel } from '@/components/ui/ProjectSettings/ToggleLegacyApiKeys'-import { useIsFeatureEnabled } from '@/hooks/misc/useIsFeatureEnabled'import type { NextPageWithLayout } from '@/types'const ApiKeysLegacyPage: NextPageWithLayout = () => {diff --git a/apps/studio/pages/redeem.tsx b/apps/studio/pages/redeem.tsxindex 6555efd02db..4e05b203559 100644--- a/apps/studio/pages/redeem.tsx+++ b/apps/studio/pages/redeem.tsx@@ -2,7 +2,7 @@ import { FeatureFlagContext } from 'common'import Link from 'next/link'import { useContext, useState } from 'react'import { Button } from 'ui'-import { Admonition, ShimmeringLoader } from 'ui-patterns'+import { ShimmeringLoader } from 'ui-patterns'import { CreditCodeRedemption } from '@/components/interfaces/Organization/BillingSettings/CreditCodeRedemption'import { OrganizationCard } from '@/components/interfaces/Organization/OrganizationCard'diff --git a/apps/studio/state/ai-assistant-state.tsx b/apps/studio/state/ai-assistant-state.tsxindex b52cf2ffe67..70ed927f74b 100644--- a/apps/studio/state/ai-assistant-state.tsx+++ b/apps/studio/state/ai-assistant-state.tsx@@ -281,7 +281,7 @@ function createChatInstance(}}},- onFinish(result) {+ onFinish(_result) {// Sync messages back to stateconst chatInstance = state.chatInstances[options.id]if (chatInstance) {diff --git a/apps/studio/state/storage-explorer.tsx b/apps/studio/state/storage-explorer.tsxindex 4d8dd13924b..5d92010d29f 100644--- a/apps/studio/state/storage-explorer.tsx+++ b/apps/studio/state/storage-explorer.tsx@@ -418,7 +418,7 @@ function createStorageExplorerState({}const foldersItems = await Promise.all(- pathsWithEmptyPrefix.map(async (path, idx) => {+ pathsWithEmptyPrefix.map(async (_path, idx) => {const prefix = paths.slice(0, idx).join('/')const options = {limit: LIMIT,diff --git a/apps/studio/tests/features/logs/Logs.Datepickers.test.tsx b/apps/studio/tests/features/logs/Logs.Datepickers.test.tsxindex ede5ee77224..9d61d27c80f 100644--- a/apps/studio/tests/features/logs/Logs.Datepickers.test.tsx+++ b/apps/studio/tests/features/logs/Logs.Datepickers.test.tsx@@ -246,7 +246,7 @@ test('disabled helpers are disabled', async () => {},]- const el = render(+ render(<LogsDatePickerhelpers={helpers}onSubmit={mockFn}diff --git a/apps/studio/tests/features/logs/Logs.utils.test.ts b/apps/studio/tests/features/logs/Logs.utils.test.tsindex 53f285d01f2..ad628c43a2e 100644--- a/apps/studio/tests/features/logs/Logs.utils.test.ts+++ b/apps/studio/tests/features/logs/Logs.utils.test.ts@@ -7,7 +7,6 @@ import {checkForWildcard,checkForWithClause,fillTimeseries,- unixMicroToIsoTimestamp,} from '@/components/interfaces/Settings/Logs/Logs.utils'dayjs.extend(utc)diff --git a/apps/studio/tests/vitestSetup.ts b/apps/studio/tests/vitestSetup.tsindex 18eb8f9546d..9465f5e8254 100644--- a/apps/studio/tests/vitestSetup.ts+++ b/apps/studio/tests/vitestSetup.ts@@ -1,6 +1,6 @@import '@testing-library/jest-dom/vitest'-import { cleanup, configure } from '@testing-library/react'+import { cleanup } from '@testing-library/react'import dayjs from 'dayjs'import relativeTime from 'dayjs/plugin/relativeTime'import timezone from 'dayjs/plugin/timezone'diff --git a/apps/studio/tsconfig.json b/apps/studio/tsconfig.jsonindex f59d7161a61..b1735434dee 100644--- a/apps/studio/tsconfig.json+++ b/apps/studio/tsconfig.json@@ -3,6 +3,8 @@"extends": "tsconfig/nextjs.json","compilerOptions": {"allowJs": false,+ "noUnusedLocals": true,+ "noUnusedParameters": true,"lib": ["dom", "dom.iterable", "esnext"],"paths": {"@/*": ["./*"],diff --git a/packages/ai-commands/src/docs.ts b/packages/ai-commands/src/docs.tsindex f3f268821b7..e92b22e6bff 100644--- a/packages/ai-commands/src/docs.ts+++ b/packages/ai-commands/src/docs.ts@@ -14,8 +14,6 @@ interface PageSection {rag_ignore?: boolean}-type MatchPageSectionsFunction = 'match_page_sections_v2' | 'match_page_sections_v2_nimbus'-export async function clippy(openai: OpenAI,supabaseClient: SupabaseClient<any, 'public', any>,diff --git a/packages/common/auth.tsx b/packages/common/auth.tsxindex c28e4fefac7..7caf2ab95f4 100644--- a/packages/common/auth.tsx+++ b/packages/common/auth.tsx@@ -153,11 +153,7 @@ export const logOut = async () => {clearLocalStorage()}-let currentSession: Session | null = null--gotrueClient.onAuthStateChange((event, session) => {- currentSession = session-})+gotrueClient.onAuthStateChange((_event, _session) => {})/*** Gets a current access token.diff --git a/packages/common/hooks/useThemeSandbox.tsx b/packages/common/hooks/useThemeSandbox.tsxindex a27e04ed322..878dbf1e2f0 100644--- a/packages/common/hooks/useThemeSandbox.tsx+++ b/packages/common/hooks/useThemeSandbox.tsx@@ -35,37 +35,6 @@ const defaultDark: { [name: string]: string } = {'--foreground-light': '200deg 5% 69%','--foreground-default': '200deg 0% 93%',}-const defaultLight: { [name: string]: string } = {- '--brand-accent': '152.9deg 60% 52.9%',- '--brand-default': '152.9deg 60% 52.9%',- '--brand-600': '153.2deg 49.7% 33.5%',- '--brand-500': '148.7deg 42.7% 69.2%',- '--brand-400': '149.1deg 59.3% 88.4%',- '--brand-300': '148.6deg 77.8% 94.7%',- '--brand-200': '156deg 71.4% 98.6%',- '--border-stronger': '205deg 10.7% 78%',- '--border-strong': '210deg 11.1% 85.9%',- '--border-secondary': '210deg 11.8% 93.3%',- '--border-alternative': '216deg 11.1% 91.2%',- '--border-control': '205.7deg 12.3% 88.8%',- '--border-overlay': '216deg 11.1% 91.2%',- '--border-muted': '210deg 11.8% 93.3%',- '--border-default': '216deg 11.1% 91.2%',- '--background-overlay-hover': '210deg 16.7% 95.3%',- '--background-overlay-default': '210deg 33.3% 98.8%',- '--background-surface-300': '210deg 11.8% 93.3%',- '--background-surface-200': '210deg 16.7% 95.3%',- '--background-surface-100': '210deg 33.3% 98.8%',- '--background-control': '210deg 16.7% 95.3%',- '--background-selection': '210deg 11.8% 93.3%',- '--background-muted': '210deg 10% 93%',- '--background-alternative': '210deg 10% 100%',- '--background-default': '210deg 16.7% 97.6%',- '--foreground-muted': '205.7deg 6.3% 56.1%',- '--foreground-lighter': '205.7deg 5.7% 52.2%',- '--foreground-light': '205.7deg 6.3% 43.5%',- '--foreground-default': '201.8deg 24.4% 8.8%',-}/*** Shows a GUI to test color themes in dev and preview env.diff --git a/packages/common/telemetry.tsx b/packages/common/telemetry.tsxindex 21001f778b7..3dc49c6e669 100644--- a/packages/common/telemetry.tsx+++ b/packages/common/telemetry.tsx@@ -109,7 +109,6 @@ interface HandlePageTelemetryOptions {}function handlePageTelemetry({- apiUrl: API_URL,pathname,featureFlags,slug,@@ -229,13 +228,13 @@ function handlePageTelemetry({}export function handlePageLeaveTelemetry(- API_URL: string,+ _API_URL: string,pathname: string,- featureFlags?: {+ _featureFlags?: {[key: string]: unknown},- slug?: string,- ref?: string+ _slug?: string,+ _ref?: string) {if (typeof window !== 'undefined') {const pageData = getSharedTelemetryData(pathname)diff --git a/packages/ui-patterns/src/Chart/charts/chart-bar.tsx b/packages/ui-patterns/src/Chart/charts/chart-bar.tsxindex b95666809cf..f8af6a996ce 100644--- a/packages/ui-patterns/src/Chart/charts/chart-bar.tsx+++ b/packages/ui-patterns/src/Chart/charts/chart-bar.tsx@@ -54,8 +54,6 @@ export interface ChartBarProps {color?: stringhoverColor?: stringchartHighlight?: ChartHighlight- updateDateRange?: (from: string, to: string) => void- highlightActions?: ChartHighlightAction[]syncId?: stringshowHighlightArea?: booleancursor?: string@@ -80,8 +78,6 @@ export const ChartBar = ({color = CHART_COLORS.BRAND,hoverColor = CHART_COLORS.BRAND_HOVER,chartHighlight,- updateDateRange,- highlightActions,syncId,showHighlightArea = true,cursor,diff --git a/packages/ui-patterns/src/Chart/charts/chart-line.tsx b/packages/ui-patterns/src/Chart/charts/chart-line.tsxindex a7a111f5779..d8d279a7554 100644--- a/packages/ui-patterns/src/Chart/charts/chart-line.tsx+++ b/packages/ui-patterns/src/Chart/charts/chart-line.tsx@@ -62,10 +62,7 @@ export interface ChartLineProps {isFullHeight?: booleanclassName?: stringcolor?: string- hoverColor?: stringchartHighlight?: ChartHighlight- updateDateRange?: (from: string, to: string) => void- highlightActions?: ChartHighlightAction[]syncId?: stringshowHighlightArea?: booleancursor?: string@@ -92,10 +89,7 @@ export const ChartLine = ({isFullHeight = false,className,color = CHART_COLORS.BRAND,- hoverColor = CHART_COLORS.BRAND_HOVER,chartHighlight,- updateDateRange,- highlightActions,syncId,showHighlightArea = true,cursor,diff --git a/packages/ui-patterns/src/CommandMenu/api/hooks/useCrossCompatRouter.tsx b/packages/ui-patterns/src/CommandMenu/api/hooks/useCrossCompatRouter.tsxindex 499507790e5..548fb2c9861 100644--- a/packages/ui-patterns/src/CommandMenu/api/hooks/useCrossCompatRouter.tsx+++ b/packages/ui-patterns/src/CommandMenu/api/hooks/useCrossCompatRouter.tsx@@ -2,7 +2,7 @@import { useRouter as useLegacyRouter } from 'next/compat/router'import { useRouter as useNextRouter } from 'next/navigation'-import { createContext, useContext, useEffect, useMemo, useRef, useTransition } from 'react'+import { createContext, useContext, useMemo, useRef, useTransition } from 'react'type Handler = (...evts: any[]) => voiddiff --git a/packages/ui-patterns/src/CommandMenu/api/hooks/viewHooks.ts b/packages/ui-patterns/src/CommandMenu/api/hooks/viewHooks.tsindex 1f737b1b714..fa6031e4e48 100644--- a/packages/ui-patterns/src/CommandMenu/api/hooks/viewHooks.ts+++ b/packages/ui-patterns/src/CommandMenu/api/hooks/viewHooks.ts@@ -4,7 +4,7 @@ import { useCallback, useLayoutEffect, useRef } from 'react'import { useSnapshot } from 'valtio'import { useCommandContext } from '../../internal/Context'-import { type DialogSize, type ITouchHandlers } from '../../internal/state/viewState.types'+import { type DialogSize } from '../../internal/state/viewState.types'const useCommandMenuInitiated = () => {const { viewState } = useCommandContext()diff --git a/packages/ui-patterns/src/Dialogs/TextConfirmModal.tsx b/packages/ui-patterns/src/Dialogs/TextConfirmModal.tsxindex 67ad1046dd3..4bedf0f3d7f 100644--- a/packages/ui-patterns/src/Dialogs/TextConfirmModal.tsx+++ b/packages/ui-patterns/src/Dialogs/TextConfirmModal.tsx@@ -112,7 +112,7 @@ export const TextConfirmModal = forwardRef<const isFormValid = form.formState.isValid// 2. Define a submit handler.- function onSubmit(values: z.infer<typeof formSchema>) {+ function onSubmit(_values: z.infer<typeof formSchema>) {// Do something with the form values.// ✅ This will be type-safe and validated.onConfirm()diff --git a/packages/ui-patterns/src/InnerSideMenu/index.tsx b/packages/ui-patterns/src/InnerSideMenu/index.tsxindex 2a9c8d79ae2..82e2793aa68 100644--- a/packages/ui-patterns/src/InnerSideMenu/index.tsx+++ b/packages/ui-patterns/src/InnerSideMenu/index.tsx@@ -226,7 +226,7 @@ const InnerSideBarFilterSortDropdown = forwardRef<contentClassName?: stringtriggerClassName?: string}->(({ value, onValueChange, contentClassName, triggerClassName, ...props }, ref) => {+>(({ value, onValueChange, contentClassName, triggerClassName, ...props }, _ref) => {return (<DropdownMenu modal={false}><Tooltip delayDuration={0}>diff --git a/packages/ui-patterns/src/McpUrlBuilder/McpConfigPanel.tsx b/packages/ui-patterns/src/McpUrlBuilder/McpConfigPanel.tsxindex 0617e7ebff2..4bebc12c573 100644--- a/packages/ui-patterns/src/McpUrlBuilder/McpConfigPanel.tsx+++ b/packages/ui-patterns/src/McpUrlBuilder/McpConfigPanel.tsx@@ -75,7 +75,6 @@ export function McpConfigPanel({<Separator /><McpConfigurationOptionsclassName={innerPanelSpacing}- isPlatform={isPlatform}readonly={readonly}onReadonlyChange={setReadonly}selectedFeatures={selectedFeaturesSupported}diff --git a/packages/ui-patterns/src/McpUrlBuilder/components/McpConfigurationOptions.tsx b/packages/ui-patterns/src/McpUrlBuilder/components/McpConfigurationOptions.tsxindex 0b24ab12760..985c794e241 100644--- a/packages/ui-patterns/src/McpUrlBuilder/components/McpConfigurationOptions.tsx+++ b/packages/ui-patterns/src/McpUrlBuilder/components/McpConfigurationOptions.tsx@@ -14,7 +14,6 @@ import {import type { McpFeatureGroup } from '../types'interface McpConfigurationOptionsProps {- isPlatform: booleanreadonly: booleanonReadonlyChange: (readonly: boolean) => voidselectedFeatures: string[]@@ -24,7 +23,6 @@ interface McpConfigurationOptionsProps {}export function McpConfigurationOptions({- isPlatform,readonly,onReadonlyChange,selectedFeatures,diff --git a/packages/ui-patterns/src/McpUrlBuilder/constants.tsx b/packages/ui-patterns/src/McpUrlBuilder/constants.tsxindex ec98861fc94..596a8ba9cb9 100644--- a/packages/ui-patterns/src/McpUrlBuilder/constants.tsx+++ b/packages/ui-patterns/src/McpUrlBuilder/constants.tsx@@ -190,7 +190,7 @@ export const MCP_CLIENTS: McpClient[] = [</div>)},- alternateInstructions: (config, onCopy) => (+ alternateInstructions: (_config, onCopy) => (<div className="space-y-2"><p className="text-xs text-foreground-light">After adding the server, enable remote MCP client support by adding this to your{' '}@@ -289,7 +289,7 @@ export const MCP_CLIENTS: McpClient[] = [</div>)},- alternateInstructions: (config, onCopy) => {+ alternateInstructions: (_config, onCopy) => {return (<div className="space-y-2"><p className="text-xs text-foreground-light">@@ -360,12 +360,12 @@ export const MCP_CLIENTS: McpClient[] = [},}},- primaryInstructions: (config, onCopy) => (+ primaryInstructions: (_config, _onCopy) => (<p className="text-xs text-warning">Ensure you are running Windsurf version <code>0.1.37</code> or higher.</p>),- alternateInstructions: (config, onCopy) => (+ alternateInstructions: (_config, _onCopy) => (<p className="text-xs text-foreground-light">Windsurf does not currently support remote MCP servers over HTTP transport. You need to usethe mcp-remote package as a proxy.@@ -422,7 +422,7 @@ export const MCP_CLIENTS: McpClient[] = [</div>)},- alternateInstructions: (config, onCopy) => (+ alternateInstructions: (_config, _onCopy) => (<div className="space-y-2"><p className="text-xs text-foreground-light">For more details, see{' '}@@ -472,7 +472,7 @@ export const MCP_CLIENTS: McpClient[] = [</div>)},- alternateInstructions: (config, onCopy) => (+ alternateInstructions: (_config, _onCopy) => (<div className="space-y-2"><p className="text-xs text-foreground-light">Restart Factory or type <code>/mcp</code> within droid to complete OAuth authentication@@ -501,7 +501,7 @@ export const MCP_CLIENTS: McpClient[] = [},}},- alternateInstructions: (config, onCopy) => (+ alternateInstructions: (_config, onCopy) => (<div className="space-y-2"><p className="text-xs text-foreground-light">After adding the configuration, run the following command to authenticate:diff --git a/packages/ui-patterns/src/MultiSelectDeprecated/index.tsx b/packages/ui-patterns/src/MultiSelectDeprecated/index.tsxindex 5551f5afb95..f972dea53f5 100644--- a/packages/ui-patterns/src/MultiSelectDeprecated/index.tsx+++ b/packages/ui-patterns/src/MultiSelectDeprecated/index.tsx@@ -91,7 +91,7 @@ export default function MultiSelect({}const handleRemove = (idx: number) => {- const updatedSelected = selected.filter((x, index) => index !== idx)+ const updatedSelected = selected.filter((_x, index) => index !== idx)setSelected(updatedSelected)onChange(updatedSelected)}diff --git a/packages/ui-patterns/src/info-tooltip.tsx b/packages/ui-patterns/src/info-tooltip.tsxindex c43ec327a19..ad06747e994 100644--- a/packages/ui-patterns/src/info-tooltip.tsx+++ b/packages/ui-patterns/src/info-tooltip.tsx@@ -23,7 +23,7 @@ const SVG = forwardRef<SVGSVGElement, React.SVGProps<SVGSVGElement>>((props, refconst InfoTooltip = forwardRef<ElementRef<typeof TooltipContent>,React.ComponentPropsWithoutRef<typeof TooltipContent>->(({ ...props }, ref) => {+>(({ ...props }, _ref) => {return (<Tooltip><TooltipTriggerdiff --git a/packages/ui/src/components/Accordion/Accordion.tsx b/packages/ui/src/components/Accordion/Accordion.tsxindex b45cfa01782..899131be675 100644--- a/packages/ui/src/components/Accordion/Accordion.tsx+++ b/packages/ui/src/components/Accordion/Accordion.tsx@@ -68,7 +68,6 @@ function Accordion({function handleOnChange(e: string | string[]) {if (onChange) onChange(e)- const value = e == typeof String ? e.split(' ') : e// setCurrentItems(e)// console.log('about to change state')// currentItems = ediff --git a/packages/ui/src/components/Listbox/Listbox2.tsx b/packages/ui/src/components/Listbox/Listbox2.tsxindex eeb22f4d50e..74122084c94 100644--- a/packages/ui/src/components/Listbox/Listbox2.tsx+++ b/packages/ui/src/components/Listbox/Listbox2.tsx@@ -58,7 +58,6 @@ function Listbox({style,size = 'medium',defaultValue,- validation,disabled,optionsWidth,}: Props) {@@ -234,18 +233,12 @@ interface OptionProps {addOnBefore?: ({ active, selected }: any) => React.ReactNode}-type addOnBefore = {- selected: boolean- active: boolean-}-/*** @deprecated Use ./Select_shadcn_ or follow ComboBox convention or use ./ui-patterns/multi-select*/function SelectOption({id,value,- label,disabled = false,children,className = '',diff --git a/packages/ui/src/components/Listbox/SelectContext.tsx b/packages/ui/src/components/Listbox/SelectContext.tsxindex 83a3621d376..754cbddf4f6 100644--- a/packages/ui/src/components/Listbox/SelectContext.tsx+++ b/packages/ui/src/components/Listbox/SelectContext.tsx@@ -3,6 +3,6 @@ import { createContext } from 'react'// Make sure the shape of the default value passed to// createContext matches the shape that the consumers expect!export const SelectContext = createContext({- onChange: (e: any) => {},+ onChange: (_e: any) => {},selected: undefined,})diff --git a/packages/ui/src/components/Menu/Menu.tsx b/packages/ui/src/components/Menu/Menu.tsxindex 5c7374a6988..50902cec917 100644--- a/packages/ui/src/components/Menu/Menu.tsx+++ b/packages/ui/src/components/Menu/Menu.tsx@@ -43,16 +43,7 @@ interface ItemProps {style?: React.CSSProperties}-export function Item({- children,- icon,- active,- rounded,- onClick,- doNotCloseOverlay = false,- showActiveBar = false,- style,-}: ItemProps) {+export function Item({ children, icon, active, onClick, style }: ItemProps) {const __styles = styleHandler('menu')const { type } = useMenuContext()diff --git a/packages/ui/src/components/Modal/Modal.tsx b/packages/ui/src/components/Modal/Modal.tsxindex f69afe220c2..72cfa9066dd 100644--- a/packages/ui/src/components/Modal/Modal.tsx+++ b/packages/ui/src/components/Modal/Modal.tsx@@ -2,12 +2,10 @@import React, { forwardRef, useEffect } from 'react'-import styleHandler from '../../lib/theme/styleHandler'import { cn } from '../../lib/utils/cn'import { Button, ButtonVariantProps } from '../Button/Button'import {Dialog,- DialogClose,DialogContent,DialogDescription,DialogFooter,diff --git a/packages/ui/src/components/ShadowScrollArea/index.tsx b/packages/ui/src/components/ShadowScrollArea/index.tsxindex 01aee89b607..651f30fe16e 100644--- a/packages/ui/src/components/ShadowScrollArea/index.tsx+++ b/packages/ui/src/components/ShadowScrollArea/index.tsx@@ -21,7 +21,7 @@ interface ShadowScrollAreaProps extends React.HTMLAttributes<HTMLDivElement> {const ShadowScrollArea = React.forwardRef<HTMLDivElement, ShadowScrollAreaProps>(({ className, containerClassName, children, stickyLastColumn, outerContainerRef, ...props },- ref+ _ref) => {const containerRef = React.useRef<HTMLDivElement>(null)const { hasHorizontalScroll, canScrollLeft, canScrollRight } = useHorizontalScroll(containerRef)diff --git a/packages/ui/src/components/Space/Space.tsx b/packages/ui/src/components/Space/Space.tsxindex 5241d4603bc..1412e86d46d 100644--- a/packages/ui/src/components/Space/Space.tsx+++ b/packages/ui/src/components/Space/Space.tsx@@ -6,7 +6,7 @@ import React from 'react'/*** @deprecated Use tailwind instead*/-function Space({ direction, size = 2, className, block, style, minus, children }: any) {+function Space({ className, style, children }: any) {// const classes = []// classes.push(direction === 'vertical' ? 'sbui-space-col' : 'sbui-space-row')// classes.push(diff --git a/packages/ui/src/components/StatusIcon.tsx b/packages/ui/src/components/StatusIcon.tsxindex d3d8d72686a..c24e757dc3f 100644--- a/packages/ui/src/components/StatusIcon.tsx+++ b/packages/ui/src/components/StatusIcon.tsx@@ -1,4 +1,3 @@-import { Check } from 'lucide-react'import { forwardRef, SVGProps } from 'react'import { cn } from '../lib/utils'diff --git a/packages/ui/src/components/TreeView/TreeView.tsx b/packages/ui/src/components/TreeView/TreeView.tsxindex 962c6acc48c..541cf760ba0 100644--- a/packages/ui/src/components/TreeView/TreeView.tsx+++ b/packages/ui/src/components/TreeView/TreeView.tsx@@ -300,7 +300,7 @@ const TreeViewItem = forwardRef<})-const SQL_ICON = forwardRef<SVGSVGElement, LucideSVGProps>((props, ref) => (+const SQL_ICON = forwardRef<SVGSVGElement, LucideSVGProps>((props, _ref) => (<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}><g clipPath="url(#clip0_1018_49117)"><path d="M20.8457 14.4531V15.6348H17.8916V14.4531H20.8457ZM18.3311 8.52539V15.6348H16.9004V8.52539H18.3311Z" />diff --git a/packages/ui/src/components/Typography/Link.tsx b/packages/ui/src/components/Typography/Link.tsxindex e170d8a307f..a2d97cda1eb 100644--- a/packages/ui/src/components/Typography/Link.tsx+++ b/packages/ui/src/components/Typography/Link.tsx@@ -12,7 +12,7 @@ interface Props {onClick?: any}-function Link({ children, target = '_blank', href, className, onClick, style }: Props) {+function Link({ children, target = '_blank', href, onClick, style }: Props) {// let classes = [// LinkStyles['sbui-typography'],// LinkStyles['sbui-typography-link'],diff --git a/packages/ui/src/components/Typography/Text.tsx b/packages/ui/src/components/Typography/Text.tsxindex ddf67cb0fcd..468d307b1f6 100644--- a/packages/ui/src/components/Typography/Text.tsx+++ b/packages/ui/src/components/Typography/Text.tsx@@ -18,20 +18,7 @@ export interface Props {small?: boolean}-function Text({- className,- children,- style,- type,- disabled,- mark,- code,- keyboard,- underline,- strikethrough,- strong,- small,-}: Props) {+function Text({ children, style, mark, code, keyboard, strong }: Props) {// let classes = [TextStyles['sbui-typography-text']]// if (className) {// classes.push(className)diff --git a/packages/ui/src/components/Typography/Title.tsx b/packages/ui/src/components/Typography/Title.tsxindex 18cebabb7e7..800852b02b5 100644--- a/packages/ui/src/components/Typography/Title.tsx+++ b/packages/ui/src/components/Typography/Title.tsx@@ -10,7 +10,7 @@ interface Props {style?: React.CSSProperties}-function Title({ className, level = 1, children, style }: Props) {+function Title({ level = 1, children, style }: Props) {// let classes = [TitleStyles['sbui-typography-title']]// if (className) {// classes.push(className)diff --git a/packages/ui/src/components/Typography/Typography.tsx b/packages/ui/src/components/Typography/Typography.tsxindex 1762efa0064..adf311e2e1b 100644--- a/packages/ui/src/components/Typography/Typography.tsx+++ b/packages/ui/src/components/Typography/Typography.tsx@@ -6,7 +6,7 @@ import Title from './Title'// @ts-ignoreimport TypographyStyles from './Typography.module.css'-function Typography({ children, className, tag = 'div', style }: any) {+function Typography({ children, tag = 'div', style }: any) {// let classes = [// TypographyStyles['sbui-typography'],// TypographyStyles['sbui-typography-container'],diff --git a/packages/ui/src/components/shadcn/ui/sidebar.tsx b/packages/ui/src/components/shadcn/ui/sidebar.tsxindex 6ecd8688de5..3899e1bede5 100644--- a/packages/ui/src/components/shadcn/ui/sidebar.tsx+++ b/packages/ui/src/components/shadcn/ui/sidebar.tsx@@ -20,7 +20,6 @@ const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7const SIDEBAR_WIDTH = '13rem'const SIDEBAR_WIDTH_MOBILE = '18rem'const SIDEBAR_WIDTH_ICON = '3rem'-const SIDEBAR_KEYBOARD_SHORTCUT = '['type SidebarContext = {state: 'expanded' | 'collapsed'diff --git a/packages/ui/src/lib/theme/defaultTheme.ts b/packages/ui/src/lib/theme/defaultTheme.tsindex dc215a55cd2..777b0e17039 100644--- a/packages/ui/src/lib/theme/defaultTheme.ts+++ b/packages/ui/src/lib/theme/defaultTheme.ts@@ -58,13 +58,6 @@ const defaults = {},}-const utils = {- border: {- hover: 'border-opacity-50 hover:border-opacity-100',- fix: 'border-opacity-100',- },-}-const default__padding_and_text = {tiny: `${defaults.size.text.tiny} ${defaults.size.padding.tiny}`,small: `${defaults.size.text.small} ${defaults.size.padding.small}`,