Skip to content

Commit cac225b

Browse files
authored
Clean up barrel files part 4 (supabase#40015)
* Clean up barrel files part 4 * nit
1 parent f7bb247 commit cac225b

File tree

36 files changed

+106
-189
lines changed

36 files changed

+106
-189
lines changed

apps/studio/components/grid/components/formatter/ReferenceRecordPeek.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import {
99
getColumnDefaultWidth,
1010
} from 'components/grid/utils/gridColumns'
1111
import { convertByteaToHex } from 'components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils'
12+
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
1213
import { EditorTablePageLink } from 'data/prefetchers/project.$ref.editor.$id'
1314
import { useTableRowsQuery } from 'data/table-rows/table-rows-query'
1415
import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject'
1516
import { Button, cn, Tooltip, TooltipContent, TooltipTrigger } from 'ui'
16-
import ShimmeringLoader from 'ui-patterns/ShimmeringLoader'
1717

1818
interface ReferenceRecordPeekProps {
1919
table: PostgresTable

apps/studio/components/interfaces/Auth/AuthProvidersForm/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
} from 'components/layouts/Scaffold'
1010
import AlertError from 'components/ui/AlertError'
1111
import { ResourceList } from 'components/ui/Resource/ResourceList'
12-
import { HorizontalShimmerWithIcon } from 'components/ui/Shimmers/Shimmers'
12+
import { HorizontalShimmerWithIcon } from 'components/ui/Shimmers'
1313
import { useAuthConfigQuery } from 'data/auth/auth-config-query'
1414
import {
1515
Alert_Shadcn_,

apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'
22
import { Globe, Trash } from 'lucide-react'
33

44
import { ButtonTooltip } from 'components/ui/ButtonTooltip'
5-
import { EmptyListState } from 'components/ui/States'
5+
import { EmptyListState } from 'components/ui/EmptyListState'
66
import { useAsyncCheckPermissions } from 'hooks/misc/useCheckPermissions'
77
import { Button, Checkbox_Shadcn_ } from 'ui'
88
import { ValueContainer } from './ValueContainer'

apps/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
} from 'components/layouts/Scaffold'
1010
import AlertError from 'components/ui/AlertError'
1111
import { DocsButton } from 'components/ui/DocsButton'
12-
import { HorizontalShimmerWithIcon } from 'components/ui/Shimmers/Shimmers'
12+
import { HorizontalShimmerWithIcon } from 'components/ui/Shimmers'
1313
import { useAuthConfigQuery } from 'data/auth/auth-config-query'
1414
import { useAuthConfigUpdateMutation } from 'data/auth/auth-config-update-mutation'
1515
import { DOCS_URL } from 'lib/constants'

apps/studio/components/interfaces/Integrations/VercelGithub/IntegrationPanels.tsx

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const Avatar = ({ src }: { src: string | undefined }) => {
7272
)
7373
}
7474

75-
const IntegrationInstallation = forwardRef<HTMLLIElement, IntegrationInstallationProps>(
75+
export const IntegrationInstallation = forwardRef<HTMLLIElement, IntegrationInstallationProps>(
7676
({ integration, disabled, ...props }, ref) => {
7777
const IntegrationIconBlock = () => {
7878
return (
@@ -144,7 +144,7 @@ export interface IntegrationConnectionProps extends HTMLAttributes<HTMLLIElement
144144
orientation?: 'horizontal' | 'vertical'
145145
}
146146

147-
const IntegrationConnection = forwardRef<HTMLLIElement, IntegrationConnectionProps>(
147+
export const IntegrationConnection = forwardRef<HTMLLIElement, IntegrationConnectionProps>(
148148
(
149149
{ connection, type, actions, showNode = true, orientation = 'horizontal', className, ...props },
150150
ref
@@ -233,7 +233,7 @@ const IntegrationConnection = forwardRef<HTMLLIElement, IntegrationConnectionPro
233233
}
234234
)
235235

236-
const IntegrationConnectionOption = forwardRef<HTMLLIElement, IntegrationConnectionProps>(
236+
export const IntegrationConnectionOption = forwardRef<HTMLLIElement, IntegrationConnectionProps>(
237237
({ connection, type, ...props }, ref) => {
238238
const { data: project } = useProjectDetailQuery({ ref: connection.supabase_project_ref })
239239

@@ -266,7 +266,7 @@ const IntegrationConnectionOption = forwardRef<HTMLLIElement, IntegrationConnect
266266
}
267267
)
268268

269-
const EmptyIntegrationConnection = forwardRef<
269+
export const EmptyIntegrationConnection = forwardRef<
270270
HTMLDivElement,
271271
HTMLAttributes<HTMLDivElement> & {
272272
showNode?: boolean
@@ -319,7 +319,7 @@ interface IntegrationConnectionHeader extends React.HTMLAttributes<HTMLDivElemen
319319
showNode?: boolean
320320
}
321321

322-
const IntegrationConnectionHeader = forwardRef<HTMLDivElement, IntegrationConnectionHeader>(
322+
export const IntegrationConnectionHeader = forwardRef<HTMLDivElement, IntegrationConnectionHeader>(
323323
({ className, markdown = '', showNode = true, ...props }, ref) => {
324324
return (
325325
<div
@@ -343,11 +343,3 @@ IntegrationConnection.displayName = 'IntegrationConnection'
343343
IntegrationConnectionHeader.displayName = 'IntegrationConnectionHeader'
344344
EmptyIntegrationConnection.displayName = 'EmptyIntegrationConnection'
345345
IntegrationConnectionOption.displayName = 'IntegrationConnectionOption'
346-
347-
export {
348-
EmptyIntegrationConnection,
349-
IntegrationConnection,
350-
IntegrationConnectionHeader,
351-
IntegrationConnectionOption,
352-
IntegrationInstallation,
353-
}

apps/studio/components/interfaces/Settings/Logs/PreviewFilterPanelWithUniversal.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function useDebounce<T extends (...args: any[]) => void>(callback: T, delay: num
108108
) as T
109109
}
110110

111-
const PreviewFilterPanelWithUniversal = ({
111+
export const PreviewFilterPanelWithUniversal = ({
112112
isLoading,
113113
newCount,
114114
onRefresh,
@@ -380,5 +380,3 @@ const PreviewFilterPanelWithUniversal = ({
380380
</div>
381381
)
382382
}
383-
384-
export { PreviewFilterPanelWithUniversal }

apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/ServiceBlocks.tsx

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,20 @@ import {
99
import { createBlock } from './shared/Block'
1010

1111
// Generate all block components
12-
const MemoizedGoTrueBlock = createBlock(authBlockConfig)
13-
14-
const MemoizedPostgRESTBlock = createBlock(postgrestBlockConfig)
15-
16-
const MemoizedNetworkBlock = createBlock(networkBlockConfig)
17-
18-
const MemoizedEdgeFunctionBlock = createBlock(edgeFunctionBlockConfig)
19-
20-
const MemoizedStorageBlock = createBlock(storageBlockConfig)
21-
22-
const MemoizedPostgresBlock = createBlock(postgresBlockConfig)
23-
24-
// Set display names for debugging
12+
export const MemoizedGoTrueBlock = createBlock(authBlockConfig)
2513
MemoizedGoTrueBlock.displayName = 'MemoizedGoTrueBlock'
14+
15+
export const MemoizedPostgRESTBlock = createBlock(postgrestBlockConfig)
2616
MemoizedPostgRESTBlock.displayName = 'MemoizedPostgRESTBlock'
17+
18+
export const MemoizedNetworkBlock = createBlock(networkBlockConfig)
2719
MemoizedNetworkBlock.displayName = 'MemoizedNetworkBlock'
20+
21+
export const MemoizedEdgeFunctionBlock = createBlock(edgeFunctionBlockConfig)
2822
MemoizedEdgeFunctionBlock.displayName = 'MemoizedEdgeFunctionBlock'
23+
24+
export const MemoizedStorageBlock = createBlock(storageBlockConfig)
2925
MemoizedStorageBlock.displayName = 'MemoizedStorageBlock'
30-
MemoizedPostgresBlock.displayName = 'MemoizedPostgresBlock'
3126

32-
export {
33-
MemoizedEdgeFunctionBlock,
34-
MemoizedGoTrueBlock,
35-
MemoizedNetworkBlock,
36-
MemoizedPostgresBlock,
37-
MemoizedPostgRESTBlock,
38-
MemoizedStorageBlock,
39-
}
27+
export const MemoizedPostgresBlock = createBlock(postgresBlockConfig)
28+
MemoizedPostgresBlock.displayName = 'MemoizedPostgresBlock'

apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/BlockField.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { getStatusLevel } from '../../../UnifiedLogs.utils'
55
import { BlockFieldProps } from '../../types'
66
import { TruncatedTextWithPopover } from './TruncatedTextWithPopover'
77

8-
const BlockField = ({
8+
export const BlockField = ({
99
config,
1010
data,
1111
enrichedData,
@@ -84,5 +84,3 @@ const BlockField = ({
8484

8585
return <div className="flex justify-between items-center py-1 px-2">{fieldContent}</div>
8686
}
87-
88-
export { BlockField }

apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/CollapsibleSection.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface CollapsibleSectionProps {
2323
defaultOpen?: boolean
2424
}
2525

26-
const CollapsibleSection = ({
26+
export const CollapsibleSection = ({
2727
title,
2828
fields,
2929
data,
@@ -67,5 +67,3 @@ const CollapsibleSection = ({
6767
</div>
6868
)
6969
}
70-
71-
export { CollapsibleSection }

apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/FieldWithSeeMore.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { BlockFieldConfig } from '../../types'
1414
import { BlockField } from './BlockField'
1515

1616
// Single source of truth for field row styling
17-
const FieldRow = ({
17+
export const FieldRow = ({
1818
label,
1919
value,
2020
expandButton,
@@ -44,7 +44,7 @@ interface FieldWithSeeMoreProps {
4444
}
4545

4646
// Primary field with expandable additional details
47-
const FieldWithSeeMore = ({
47+
export const FieldWithSeeMore = ({
4848
primaryField,
4949
additionalFields,
5050
data,
@@ -131,5 +131,3 @@ const FieldWithSeeMore = ({
131131
</div>
132132
)
133133
}
134-
135-
export { FieldRow, FieldWithSeeMore }

0 commit comments

Comments
 (0)