The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Midway updating icons
Joshen Lim08615911492b
diff --git a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsxindex be45acfe9c0..71c16d319bc 100644--- a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx+++ b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx@@ -1,3 +1,4 @@+import SVG from 'react-inlinesvg'import { useMemo, useState } from 'react'import Link from 'next/link'import { noop, partition } from 'lodash'@@ -24,6 +25,7 @@ import * as Tooltip from '@radix-ui/react-tooltip'import { PermissionAction } from '@supabase/shared-types/out/constants'import type { PostgresSchema } from '@supabase/postgres-meta'+import { BASE_PATH } from 'lib/constants'import { checkPermissions, useStore, useParams, useLocalStorage } from 'hooks'import ProductMenuItem from 'components/ui/ProductMenu/ProductMenuItem'import { useEntityTypesQuery } from 'data/entity-types/entity-types-infinite-query'@@ -388,20 +390,30 @@ const EntityListItem = ({hoverText={entity.comment ? entity.comment : entity.name}isActive={isActive}icon={- <div- className={clsx(- 'flex items-center justify-center text-xs h-4 w-4 rounded-[2px] font-bold',- entity.type === ENTITY_TYPE.TABLE && 'text-green-1000 bg-green-500',- entity.type === ENTITY_TYPE.VIEW && 'text-blue-900 bg-blue-500',- entity.type === ENTITY_TYPE.FOREIGN_TABLE && 'text-yellow-900 bg-yellow-500',- entity.type === ENTITY_TYPE.MATERIALIZED_VIEW && 'text-purple-1000 bg-purple-500',- entity.type === ENTITY_TYPE.PARTITIONED_TABLE && 'text-scale-1100 bg-scale-800'- )}- >- {Object.entries(ENTITY_TYPE)- .find(([, value]) => value === entity.type)?.[0]?.[0]- ?.toUpperCase()}- </div>+ entity.type === ENTITY_TYPE.VIEW ? (+ <SVG+ className="view-icon"+ src={`${BASE_PATH}/img/icons/view-icon.svg`}+ style={{ width: `16px`, height: `16px`, strokeWidth: '1px' }}+ preProcessor={(code: any) =>+ code.replace(/svg/, 'svg class="m-auto text-color-inherit"')+ }+ />+ ) : (+ <div+ className={clsx(+ 'flex items-center justify-center text-xs h-4 w-4 rounded-[2px] font-bold',+ entity.type === ENTITY_TYPE.TABLE && 'text-green-1000 bg-green-500',+ entity.type === ENTITY_TYPE.FOREIGN_TABLE && 'text-yellow-900 bg-yellow-500',+ entity.type === ENTITY_TYPE.MATERIALIZED_VIEW && 'text-purple-1000 bg-purple-500',+ entity.type === ENTITY_TYPE.PARTITIONED_TABLE && 'text-scale-1100 bg-scale-800'+ )}+ >+ {Object.entries(ENTITY_TYPE)+ .find(([, value]) => value === entity.type)?.[0]?.[0]+ ?.toUpperCase()}+ </div>+ )}action={entity.type === ENTITY_TYPE.TABLE &&diff --git a/studio/public/img/icons/view-icon.svg b/studio/public/img/icons/view-icon.svgnew file mode 100644index 00000000000..b485a3db441--- /dev/null+++ b/studio/public/img/icons/view-icon.svg@@ -0,0 +1,9 @@+<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">+ <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">+ <g transform="translate(1.000000, 1.000000)">+ <rect stroke-width="2" x="0" y="0" width="18" height="18" rx="2"></rect>+ <path d="M3,9.36363636 C3,9.36363636 5.18181818,5 9,5 C12.8181818,5 15,9.36363636 15,9.36363636 C15,9.36363636 12.8181818,13.7272727 9,13.7272727 C5.18181818,13.7272727 3,9.36363636 3,9.36363636 Z" stroke-width="1.5"></path>+ <circle stroke-width="1.5" cx="9" cy="9.36363636" r="1.63636364"></circle>+ </g>+ </g>+</svg>\ No newline at end of filediff --git a/studio/styles/ui.scss b/studio/styles/ui.scssindex 891b2a0bb7d..df06b76b655 100644--- a/studio/styles/ui.scss+++ b/studio/styles/ui.scss@@ -413,3 +413,13 @@}}}++.view-icon {+ rect {+ @apply fill-blue-500 stroke-blue-500;++ }+ path, circle {+ @apply stroke-blue-900;+ }+}\ No newline at end of file