diff --git a/apps/studio/components/interfaces/DiskManagement/fields/StorageTypeField.tsx b/apps/studio/components/interfaces/DiskManagement/fields/StorageTypeField.tsx
index 72c046ea600..4010eb93b5d 100644
--- a/apps/studio/components/interfaces/DiskManagement/fields/StorageTypeField.tsx
+++ b/apps/studio/components/interfaces/DiskManagement/fields/StorageTypeField.tsx
@@ -1,9 +1,8 @@
-import { UseFormReturn } from 'react-hook-form'
-
import { useParams } from 'common'
import { InlineLink } from 'components/ui/InlineLink'
import { useDiskAttributesQuery } from 'data/config/disk-attributes-query'
import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject'
+import { UseFormReturn } from 'react-hook-form'
import {
Badge,
buttonVariants,
@@ -21,6 +20,7 @@ import {
TooltipTrigger,
} from 'ui'
import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
+
import { IO2_AVAILABLE_REGIONS } from '../DiskManagement.constants'
import { DiskStorageSchemaType } from '../DiskManagement.schema'
import { DISK_LIMITS, DISK_TYPE_OPTIONS, DiskType } from '../ui/DiskManagement.constants'
@@ -86,7 +86,7 @@ export function StorageTypeField({ form, disableInput }: StorageTypeFieldProps)
) : (
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsx
index 831ebb01db6..842ae119b78 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/FileExplorerHeader.tsx
@@ -20,12 +20,12 @@ import {
X,
} from 'lucide-react'
import {
- type ChangeEvent,
- type ChangeEventHandler,
- type SyntheticEvent,
useEffect,
useRef,
useState,
+ type ChangeEvent,
+ type ChangeEventHandler,
+ type SyntheticEvent,
} from 'react'
import { useStorageExplorerStateSnapshot } from 'state/storage-explorer'
import {
@@ -397,151 +397,157 @@ export const FileExplorerHeader = ({
Reload
- {isPicker && forceListView ? (
-
-
- }>
- Sort
-
-
-
-
- Sort by
-
- {SORT_BY_OPTIONS.map((option) => (
- setSortBy(option.key)}>
+ {isPicker && forceListView ? (
+
+
+ }>
+ Sort
+
+
+
+
+ Sort by
+
+ {SORT_BY_OPTIONS.map((option) => (
+ setSortBy(option.key)}>
+
+
{option.name}
+ {sortBy === option.key && (
+
+ )}
+
+
+ ))}
+
+
+
+ Sort order
+
+ {SORT_ORDER_OPTIONS.map((option) => (
+ setSortByOrder(option.key)}
+ >
+
+
{option.name}
+ {sortByOrder === option.key && (
+
+ )}
+
+
+ ))}
+
+
+
+
+ ) : (
+
+
+
+ ) : (
+
+ )
+ }
+ >
+ View
+
+
+
+ {VIEW_OPTIONS.map((option) => (
+ snap.setView(option.key)}>
{option.name}
- {sortBy === option.key && (
+ {snap.view === option.key && (
)}
))}
-
-
-
- Sort order
-
- {SORT_ORDER_OPTIONS.map((option) => (
- setSortByOrder(option.key)}>
-
-
{option.name}
- {sortByOrder === option.key && (
-
- )}
-
-
- ))}
-
-
-
-
- ) : (
-
-
-
- ) : (
-
- )
- }
- >
- View
-
-
-
- {VIEW_OPTIONS.map((option) => (
- snap.setView(option.key)}>
-
-
{option.name}
- {snap.view === option.key && (
-
- )}
-
-
- ))}
-
-
- Sort by
-
- {SORT_BY_OPTIONS.map((option) => (
- setSortBy(option.key)}>
-
-
{option.name}
- {sortBy === option.key && (
-
- )}
-
-
- ))}
-
-
-
- Sort order
-
- {SORT_ORDER_OPTIONS.map((option) => (
- setSortByOrder(option.key)}>
-
-
{option.name}
- {sortByOrder === option.key && (
-
- )}
-
-
- ))}
-
-
-
-
- )}
-
-
- {!isPicker && (
- <>
-
-
-
-
-
-
}
- type="text"
- disabled={!canUpdateStorage || breadcrumbs.length === 0}
- onClick={onSelectUpload}
- tooltip={{
- content: {
- side: 'bottom',
- text: !canUpdateStorage
- ? 'You need additional permissions to upload files'
- : undefined,
- },
- }}
- >
- Upload files
-
-
}
- type="text"
- disabled={!canUpdateStorage || breadcrumbs.length === 0}
- onClick={() => addNewFolderPlaceholder(-1)}
- tooltip={{
- content: {
- side: 'bottom',
- text: !canUpdateStorage
- ? 'You need additional permissions to create folders'
- : undefined,
- },
- }}
- >
- Create folder
-
+
+
+ Sort by
+
+ {SORT_BY_OPTIONS.map((option) => (
+ setSortBy(option.key)}>
+
+
{option.name}
+ {sortBy === option.key && (
+
+ )}
+
+
+ ))}
+
+
+
+ Sort order
+
+ {SORT_ORDER_OPTIONS.map((option) => (
+ setSortByOrder(option.key)}
+ >
+
+
{option.name}
+ {sortByOrder === option.key && (
+
+ )}
+
+
+ ))}
+
+
+
+
+ )}
- >
- )}
+
+ {!isPicker && (
+ <>
+
+
+
+
+
+
}
+ type="text"
+ disabled={!canUpdateStorage || breadcrumbs.length === 0}
+ onClick={onSelectUpload}
+ tooltip={{
+ content: {
+ side: 'bottom',
+ text: !canUpdateStorage
+ ? 'You need additional permissions to upload files'
+ : undefined,
+ },
+ }}
+ >
+ Upload files
+
+
}
+ type="text"
+ disabled={!canUpdateStorage || breadcrumbs.length === 0}
+ onClick={() => addNewFolderPlaceholder(-1)}
+ tooltip={{
+ content: {
+ side: 'bottom',
+ text: !canUpdateStorage
+ ? 'You need additional permissions to create folders'
+ : undefined,
+ },
+ }}
+ >
+ Create folder
+
+
+ >
+ )}
@@ -571,38 +577,16 @@ export const FileExplorerHeader = ({
icon={}
size="tiny"
type="text"
- icon={}
- onClick={toggleSearch}
className="py-0 px-1 h-5 w-5"
- />,
- ]}
- placeholder="Search for a file or folder"
- type="text"
- value={itemSearchString}
- onChange={(event) => setItemSearchString(event.target.value)}
- />
- ) : (
- }
- size="tiny"
- type="text"
- className="px-1"
- onClick={toggleSearch}
- />
- )}
-
-
- {isNewAPIDocsEnabled && !isPicker && (
- <>
-
-
-
+ onClick={toggleSearch}
+ />
+ )}
- {isNewAPIDocsEnabled && (
+ {isNewAPIDocsEnabled && !isPicker && (
<>
-
-