diff --git a/apps/database-new/package.json b/apps/database-new/package.json index 8c7e69955d4..c198c0d1858 100644 --- a/apps/database-new/package.json +++ b/apps/database-new/package.json @@ -21,7 +21,7 @@ "dayjs": "^1.11.10", "eslint-config-next": "^14.1.0", "lodash": "^4.17.21", - "lucide-react": "^0.292.0", + "lucide-react": "^0.338.0", "next": "^14.0.3", "openai": "^4.17.0", "react": "^18.2.0", diff --git a/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx b/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx index 054a596a557..a84f73ef3e8 100644 --- a/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx +++ b/apps/studio/components/layouts/TableEditorLayout/EntityListItem.tsx @@ -129,7 +129,7 @@ const EntityListItem: ItemRenderer = ({ 'py-1 px-2', 'text-light', 'rounded-md', - isActive ? 'text-foreground bg-selection' : 'hover:bg-surface-200 focus:bg-surface-200', + isActive ? 'bg-selection' : 'hover:bg-surface-200 focus:bg-surface-200', 'group', 'transition' )} @@ -177,11 +177,16 @@ const EntityListItem: ItemRenderer = ({ isActive && 'text-foreground' )} > - {/* only show tooltips if required, to reduce noise */} - + {entity.name} - {entity.type === ENTITY_TYPE.TABLE && !entity.rls_enabled && ( { return ( <>
- { - setSearchText('') - snap.setSelectedSchemaName(name) - router.push(`/project/${project?.ref}/editor`) - }} - onSelectCreateSchema={() => snap.onAddSchema()} - /> +
+ { + setSearchText('') + snap.setSelectedSchemaName(name) + router.push(`/project/${project?.ref}/editor`) + }} + onSelectCreateSchema={() => snap.onAddSchema()} + /> -
- {!isLocked ? ( - - -
- } - type="default" - className="justify-start h-7" - onClick={snap.onAddTable} - > - New table - - - {!canCreateTables && ( - - - -
- - You need additional permissions to create tables - -
-
-
- )} - - ) : ( - - Viewing protected schema - -

- This schema is managed by Supabase and is read-only through the table editor -

- -
-
- )} -
- -
-
-
- - {isSearchOpen && ( - + {!isLocked ? ( + + +
-
- - - - - - - + New table + + + {!canCreateTables && ( - + - Sort By +
+ + You need additional permissions to create tables + +
-
- - - setSort(value)} + )} + + ) : ( + + + Viewing protected schema + + +

+ This schema is managed by Supabase and is read-only through the table editor +

+ +
+
+ )} +
+
+
+
+ + + + + + + + + + - - Alphabetical - - - Entity Type - - - - -
+ + Sort By + + + + + setSort(value)}> + + Alphabetical + + + Entity Type + + + +
{isLoading && ( diff --git a/apps/studio/components/ui/SchemaSelector.tsx b/apps/studio/components/ui/SchemaSelector.tsx index f5f57ecfc55..a6a01069364 100644 --- a/apps/studio/components/ui/SchemaSelector.tsx +++ b/apps/studio/components/ui/SchemaSelector.tsx @@ -23,6 +23,7 @@ import { import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext' import { useSchemasQuery } from 'data/database/schemas-query' +import { ChevronDownIcon, ChevronsUpDown } from 'lucide-react' interface SchemaSelectorProps { className?: string @@ -65,16 +66,8 @@ const SchemaSelector = ({ return (
{isSchemasLoading && ( - )} @@ -98,15 +91,16 @@ const SchemaSelector = ({