The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
update and organize product icons in studio and docs
Francesco Sansalvadore4a04fe0c8f5e
diff --git a/apps/docs/components/HomePageCover.tsx b/apps/docs/components/HomePageCover.tsxindex 3bf27c6b2a0..092014aa3e0 100644--- a/apps/docs/components/HomePageCover.tsx+++ b/apps/docs/components/HomePageCover.tsx@@ -72,7 +72,7 @@ const HomePageCover = (props) => {Discover how to set up a database to an app making queries in just a few minutes.</p></div>- <div className="flex flex-wrap md:grid md:grid-cols-4 2xl:grid-cols-7 gap-2 sm:gap-3">+ <div className="flex flex-wrap md:grid md:grid-cols-4 2xl:grid-cols-8 gap-2 sm:gap-3">{frameworks.map((framework, i) => (<Link key={i} href={framework.href} passHref><a className="no-underline">@@ -93,7 +93,7 @@ const HomePageCover = (props) => {return (<div className="w-full bg-scale-100 border-b prose dark:prose-dar max-w-none mb-16 md:mb-12 xl:mb-0"><div className="max-w-7xl px-5 mx-auto py-8 sm:pb-16 sm:pt-12 xl:pt-16 flex flex-col xl:flex-row justify-between gap-12 xl:gap-12">- <div className="flex flex-col sm:flex-row gap-4 sm:gap-8 items-start sm:items-center w-full max-w-xl">+ <div className="flex flex-col sm:flex-row gap-4 sm:gap-8 items-start sm:items-center w-full max-w-xl xl:max-w-[33rem]"><DocsCoverLogo /><div className="flex flex-col"><h1 className="m-0 mb-3 text-2xl sm:text-3xl">{props.meta?.title}</h1>@@ -103,7 +103,7 @@ const HomePageCover = (props) => {</p></div></div>- <div className="w-full xl:max-w-[365px] 2xl:max-w-[608px] -mb-40">+ <div className="w-full xl:max-w-[375px] 2xl:max-w-[620px] -mb-40"><GettingStarted /></div></div>diff --git a/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsx b/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsxindex 6925319d68d..4d2e53f6ea2 100644--- a/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/HomeMenuIcons.tsx@@ -1,3 +1,5 @@+import { products } from 'shared-data'+type HomeMenuIcon = {width?: numberheight?: number@@ -50,7 +52,7 @@ export function IconMenuAuth({ width = 16, height = 16 }: HomeMenuIcon) {xmlns="http://www.w3.org/2000/svg"><path- d="M3.494 9.975h5m-5 0v2h5v-2m-5 0v-2h5v2M10 5V3a2 2 0 1 0-4 0v2m6.473 0v9h-9V5h9Z"+ d={products.authentication.icon[16]}stroke="currentColor"strokeMiterlimit="10"strokeLinejoin="bevel"@@ -107,7 +109,7 @@ export function IconMenuDatabase({ width = 16, height = 16 }: HomeMenuIcon) {xmlns="http://www.w3.org/2000/svg"><path- d="M3.502 6h8.996v4H3.502V6ZM3 10.002h10v4H3v-4ZM3 2h10v4H3V2Z"+ d={products.database.icon[16]}stroke="currentColor"strokeMiterlimit="10"strokeLinejoin="bevel"@@ -145,7 +147,7 @@ export function IconMenuEdgeFunctions({ width = 16, height = 16 }: HomeMenuIcon)xmlns="http://www.w3.org/2000/svg"><path- d="M1.857 11.36a7 7 0 0 1 9.41-9.551M4.774 14.212a7 7 0 0 0 9.41-9.497m-8.812 7.845a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm9.296-9.13a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM12.5 8a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"+ d={products.functions.icon[16]}stroke="currentColor"strokeMiterlimit="10"strokeLinejoin="bevel"@@ -297,7 +299,7 @@ export function IconMenuRealtime({ width = 16, height = 16 }: HomeMenuIcon) {xmlns="http://www.w3.org/2000/svg"><path- d="M5.362.984v2.35m-1.866.144L1.365 1.282m2.052 3.92H1.052m8.023 9.653L4.557 4.523 15 9.115l-4.748 1.182-1.177 4.558Z"+ d={products.realtime.icon[16]}stroke="currentColor"strokeMiterlimit="10"strokeLinejoin="bevel"@@ -354,7 +356,7 @@ export function IconMenuStorage({ width = 16, height = 16 }: HomeMenuIcon) {xmlns="http://www.w3.org/2000/svg"><path- d="M13 7.616V5.6l-3.618-3.6H3v4.03m9.964-.447L9.38 2v3.584h3.584ZM1.974 6v8h12V7.509h-7.59l-1.533-1.51H1.974Z"+ d={products.storage.icon[16]}stroke="currentColor"strokeMiterlimit="10"strokeLinejoin="bevel"@@ -373,7 +375,7 @@ export function IconMenuAI({ width = 16, height = 16 }: HomeMenuIcon) {xmlns="http://www.w3.org/2000/svg"><path- d="M7.99886 7.63216V14.4892M7.99886 7.63216L14.0488 4.11804M7.99886 7.63216L1.94922 4.11819M1.94922 4.11819V8.32332M1.94922 4.11819V4.08217L5.57319 1.97717M14.049 8.36007V4.08217L10.4251 1.97717M11.8165 12.4072L7.99913 14.6245L4.18177 12.4072"+ d={products.vector.icon[16]}stroke="currentColor"strokeMiterlimit="10"strokeLinecap="round"diff --git a/apps/docs/pages/index.mdx b/apps/docs/pages/index.mdxindex 00432dc6d16..6ce8f37f489 100644--- a/apps/docs/pages/index.mdx+++ b/apps/docs/pages/index.mdx@@ -232,7 +232,7 @@ export const products = [},{title: 'Edge Functions',- icon: 'functions',+ icon: 'edge-functions',hasLightIcon: true,href: '/guides/functions',description:diff --git a/apps/www/components/Features/index.tsx b/apps/www/components/Features/index.tsxindex 3c1610fde36..e409ec0d21c 100644--- a/apps/www/components/Features/index.tsx+++ b/apps/www/components/Features/index.tsx@@ -1,5 +1,5 @@import { Badge } from 'ui'-import Solutions from 'data/Solutions.json'+import Solutions from 'data/Solutions'import Telemetry from '~/lib/telemetry'import gaEvents from '~/lib/gaEvents'import SectionContainer from '../Layouts/SectionContainer'diff --git a/apps/www/components/Nav/Product.tsx b/apps/www/components/Nav/Product.tsxindex d2085722e6e..9720208e620 100644--- a/apps/www/components/Nav/Product.tsx+++ b/apps/www/components/Nav/Product.tsx@@ -1,5 +1,5 @@import React from 'react'-import SolutionsData from 'data/Solutions.json'+import SolutionsData from 'data/Solutions'import CustomerStoriesData from 'data/CustomerStories.json'import { useRouter } from 'next/router'import ProductIcon from '../ProductIcon'diff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsxindex 6f19e4b2be2..ec9a2c5d075 100644--- a/apps/www/components/Nav/index.tsx+++ b/apps/www/components/Nav/index.tsx@@ -6,7 +6,7 @@ import { Button, Badge, IconStar, IconChevronDown } from 'ui'import FlyOut from '~/components/UI/FlyOut'import Transition from 'lib/Transition'-import SolutionsData from 'data/Solutions.json'+import SolutionsData from 'data/Solutions'import Solutions from '~/components/Nav/Product'import Developers from '~/components/Nav/Developers'diff --git a/apps/www/data/Solutions.json b/apps/www/data/Solutions.jsondeleted file mode 100644index 36e6eee6d84..00000000000--- a/apps/www/data/Solutions.json+++ /dev/null@@ -1,50 +0,0 @@-{- "database": {- "name": "Database",- "icon": "M6.20598 9.78087H19.6299V16.0309H6.20598V9.78087Z M5.09375 17.5964C5.09375 16.7335 5.79331 16.0339 6.65625 16.0339H19.1563C20.0192 16.0339 20.7188 16.7335 20.7188 17.5964V20.7214C20.7188 21.5844 20.0192 22.2839 19.1563 22.2839H6.65625C5.79331 22.2839 5.09375 21.5844 5.09375 20.7214V17.5964Z M5.09375 5.09375C5.09375 4.23081 5.79331 3.53125 6.65625 3.53125H19.1563C20.0192 3.53125 20.7188 4.23081 20.7188 5.09375V8.21875C20.7188 9.0817 20.0192 9.78125 19.1563 9.78125H6.65625C5.79331 9.78125 5.09375 9.0817 5.09375 8.21875V5.09375Z",- "description": "Every project is a full Postgres database, the world's most trusted relational database.",- "description_short": "",- "label": "",- "url": "/database"- },- "authentication": {- "name": "Authentication",- "icon": "M5.45935 15.9916H13.2719M5.45935 15.9916V19.1166H13.2719V15.9916M5.45935 15.9916V12.8666H13.2719V15.9916M15.6248 8.21875V5.09375C15.6248 3.36786 14.2256 1.96875 12.4998 1.96875C10.7739 1.96875 9.37476 3.36786 9.37476 5.09375V8.21875M5.42578 11.3438L5.42578 19.1563C5.42578 20.8821 6.82489 22.2813 8.55078 22.2813H16.3633C18.0892 22.2813 19.4883 20.8821 19.4883 19.1563V11.3438C19.4883 9.61786 18.0892 8.21875 16.3633 8.21875L8.55078 8.21875C6.82489 8.21875 5.42578 9.61786 5.42578 11.3438Z",- "description": "Add user sign ups and logins, securing your data with Row Level Security.",- "description_short": "",- "label": "",- "url": "/auth"- },- "storage": {- "name": "Storage",- "icon": "M20.4997 12.1386V9.15811L14.8463 3.53163H6.43717C5.57423 3.53163 4.87467 4.23119 4.87467 5.09413V9.78087M20.4447 9.13199L14.844 3.53125L14.844 7.56949C14.844 8.43243 15.5436 9.13199 16.4065 9.13199L20.4447 9.13199ZM7.12729 9.78087H4.83398C3.97104 9.78087 3.27148 10.4804 3.27148 11.3434V19.1559C3.27148 20.8818 4.67059 22.2809 6.39648 22.2809H18.8965C20.6224 22.2809 22.0215 20.8818 22.0215 19.1559V13.7011C22.0215 12.8381 21.3219 12.1386 20.459 12.1386H10.8032C10.3933 12.1386 9.99969 11.9774 9.70743 11.6899L8.22312 10.2296C7.93086 9.94202 7.53729 9.78087 7.12729 9.78087Z",- "description": "Store, organize, and serve large files. Any media, including videos and images.",- "description_short": "",- "label": "",- "url": "/storage"- },- "edge-functions": {- "name": "Edge Functions",- "icon": "M8.65667 21.4501C9.98447 22.1412 11.4936 22.5317 13.094 22.5317C18.4099 22.5317 22.7192 18.2224 22.7192 12.9065C22.7192 11.3018 22.3265 9.78873 21.632 8.4583M17.5872 4.39219C16.2459 3.68289 14.7169 3.28125 13.094 3.28125C7.77812 3.28125 3.46875 7.59062 3.46875 12.9065C3.46875 14.5446 3.87798 16.0872 4.59979 17.4375M4.59979 17.4375C4.2118 17.9116 3.97902 18.5177 3.97902 19.1781C3.97902 20.6969 5.21027 21.9281 6.72909 21.9281C8.24791 21.9281 9.47916 20.6969 9.47916 19.1781C9.47916 17.6593 8.24791 16.428 6.72909 16.428C5.87067 16.428 5.10412 16.8213 4.59979 17.4375ZM22.2609 6.62518C22.2609 8.144 21.0297 9.37525 19.5108 9.37525C17.992 9.37525 16.7608 8.144 16.7608 6.62518C16.7608 5.10635 17.992 3.87511 19.5108 3.87511C21.0297 3.87511 22.2609 5.10635 22.2609 6.62518ZM19.2817 12.9065C19.2817 16.3238 16.5113 19.0942 13.094 19.0942C9.67665 19.0942 6.90634 16.3238 6.90634 12.9065C6.90634 9.48915 9.67665 6.71884 13.094 6.71884C16.5113 6.71884 19.2817 9.48915 19.2817 12.9065Z",- "description": "Write custom code without deploying or scaling servers.",- "description_short": "",- "label": "",- "url": "/edge-functions"- },- "realtime": {- "name": "Realtime",- "icon": "M9.15928 1.94531V5.84117M6.24345 5.84117L2.91385 2.40977M6.24345 8.53673H2.4248M16.7998 16.496L21.9988 15.2019C22.7217 15.022 22.8065 14.0285 22.1246 13.7286L9.73411 8.28034C9.08269 7.99391 8.41873 8.65652 8.70383 9.30851L14.0544 21.5445C14.3518 22.2247 15.341 22.1456 15.5266 21.4269L16.7998 16.496Z",- "description": "Create multiplayer experiences by sharing, broadcasting, and listening to changes from other clients or the Database.",- "description_short": "",- "label": "",- "url": "/realtime"- },- "vector": {- "name": "Vector",- "icon": "M11.9983 11.4482V21.7337M11.9983 11.4482L21.0732 6.17699M11.9983 11.4482L2.92383 6.17723M2.92383 6.17723V12.4849M2.92383 6.17723V6.1232L8.35978 2.9657M21.0736 12.54V6.1232L15.6376 2.9657M17.7247 18.6107L11.9987 21.9367L6.27265 18.6107",- "description": "Integrate your favorite ML-models to store, index and search vector embeddings.",- "description_short": "",- "label": "",- "url": "/vector"- }-}diff --git a/apps/www/data/Solutions.ts b/apps/www/data/Solutions.tsnew file mode 100644index 00000000000..72f7226a907--- /dev/null+++ b/apps/www/data/Solutions.ts@@ -0,0 +1,57 @@+import { products } from 'shared-data'+import { PRODUCT_NAMES, PRODUCT_SHORTNAMES } from 'shared-data/products'++const solutions = {+ [PRODUCT_SHORTNAMES.DATABASE]: {+ name: PRODUCT_NAMES.DATABASE,+ icon: products.database.icon[24],+ description:+ "Every project is a full Postgres database, the world's most trusted relational database.",+ description_short: '',+ label: '',+ url: '/database',+ },+ [PRODUCT_SHORTNAMES.AUTHENTICATION]: {+ name: PRODUCT_NAMES.AUTHENTICATION,+ icon: products.authentication.icon[24],+ description: 'Add user sign ups and logins, securing your data with Row Level Security.',+ description_short: '',+ label: '',+ url: '/auth',+ },+ [PRODUCT_SHORTNAMES.STORAGE]: {+ name: PRODUCT_NAMES.STORAGE,+ icon: products.storage.icon[24],+ description: 'Store, organize, and serve large files. Any media, including videos and images.',+ description_short: '',+ label: '',+ url: '/storage',+ },+ [PRODUCT_SHORTNAMES.FUNCTIONS]: {+ name: PRODUCT_NAMES.FUNCTIONS,+ icon: products.functions.icon[24],+ description: 'Write custom code without deploying or scaling servers.',+ description_short: '',+ label: '',+ url: '/edge-functions',+ },+ [PRODUCT_SHORTNAMES.REALTIME]: {+ name: PRODUCT_NAMES.REALTIME,+ icon: products.realtime.icon[24],+ description:+ 'Create multiplayer experiences by sharing, broadcasting, and listening to changes from other clients or the Database.',+ description_short: '',+ label: '',+ url: '/realtime',+ },+ [PRODUCT_SHORTNAMES.VECTOR]: {+ name: PRODUCT_NAMES.VECTOR,+ icon: products.vector.icon[24],+ description: 'Integrate your favorite ML-models to store, index and search vector embeddings.',+ description_short: '',+ label: '',+ url: '/vector',+ },+}++export default solutionsdiff --git a/apps/www/pages/auth/Auth.tsx b/apps/www/pages/auth/Auth.tsxindex b47d4eefcae..e2a546a2301 100644--- a/apps/www/pages/auth/Auth.tsx+++ b/apps/www/pages/auth/Auth.tsx@@ -2,7 +2,7 @@ import { createClient } from '@supabase/supabase-js'import { Button, IconArrowUpRight, IconBriefcase, IconEye, IconLink, IconShield } from 'ui'import ApiExamples from 'data/products/auth/auth-api-examples'import AuthSqlRulesExamples from 'data/products/auth/auth-sql-rules-examples'-import Solutions from 'data/Solutions.json'+import Solutions from 'data/Solutions'import { NextSeo } from 'next-seo'import Image from 'next/image'import Link from 'next/link'diff --git a/apps/www/pages/database/Database.tsx b/apps/www/pages/database/Database.tsxindex 4f3639cd5b5..72508725ff4 100644--- a/apps/www/pages/database/Database.tsx+++ b/apps/www/pages/database/Database.tsx@@ -4,7 +4,7 @@ import ApiExamplesData from 'data/products/database/api-examples'import ExtensionsExamplesData from 'data/products/database/extensions-examples'import SqlViewCarouselData from 'data/products/database/sql-view-carousel.json'import TableViewCarouselData from 'data/products/database/table-view-carousel.json'-import Solutions from 'data/Solutions.json'+import Solutions from 'data/Solutions'import { NextSeo } from 'next-seo'import Image from 'next/image'import Link from 'next/link'diff --git a/apps/www/pages/edge-functions/edge-functions.tsx b/apps/www/pages/edge-functions/edge-functions.tsxindex c572c51526d..20900033d31 100644--- a/apps/www/pages/edge-functions/edge-functions.tsx+++ b/apps/www/pages/edge-functions/edge-functions.tsx@@ -1,6 +1,6 @@import { Badge, IconCode, IconFastForward, IconGlobe, IconRefreshCcw } from 'ui'import UseCaseExamples from 'data/products/functions/usecase-examples'-import Solutions from 'data/Solutions.json'+import Solutions from 'data/Solutions'import { NextSeo } from 'next-seo'import Image from 'next/image'import { useRouter } from 'next/router'@@ -104,8 +104,8 @@ function Database() {/><DefaultLayout><ProductHeader- icon={Solutions['edge-functions'].icon}- title={Solutions['edge-functions'].name}+ icon={Solutions['functions'].icon}+ title={Solutions['functions'].name}h1={[<span key={'database-h1'}>Serverless Edge Functionsdiff --git a/apps/www/pages/pricing/index.tsx b/apps/www/pages/pricing/index.tsxindex eb71f1ffd83..6a012c39361 100644--- a/apps/www/pages/pricing/index.tsx+++ b/apps/www/pages/pricing/index.tsx@@ -1,5 +1,5 @@import { Accordion, Button, IconCheck, Select } from 'ui'-import Solutions from 'data/Solutions.json'+import Solutions from 'data/Solutions'import { NextSeo } from 'next-seo'import Link from 'next/link'import { useRouter } from 'next/router'@@ -524,7 +524,7 @@ export default function IndexPage() {<PricingTableRowMobilecategory={pricing['edge_functions']}plan={'free'}- icon={Solutions['edge-functions'].icon}+ icon={Solutions['functions'].icon}sectionId="edge-functions"/><PricingTableRowMobile@@ -580,7 +580,7 @@ export default function IndexPage() {<PricingTableRowMobilecategory={pricing['edge_functions']}plan={'pro'}- icon={Solutions['edge-functions'].icon}+ icon={Solutions['functions'].icon}/><PricingTableRowMobilecategory={pricing.dashboard}@@ -632,7 +632,7 @@ export default function IndexPage() {<PricingTableRowMobilecategory={pricing['edge_functions']}plan={'team'}- icon={Solutions['edge-functions'].icon}+ icon={Solutions['functions'].icon}/><PricingTableRowMobilecategory={pricing.dashboard}@@ -686,7 +686,7 @@ export default function IndexPage() {<PricingTableRowMobilecategory={pricing['edge_functions']}plan={'enterprise'}- icon={Solutions['edge-functions'].icon}+ icon={Solutions['functions'].icon}/><PricingTableRowMobilecategory={pricing.dashboard}@@ -838,7 +838,7 @@ export default function IndexPage() {/><PricingTableRowDesktopcategory={pricing['edge_functions']}- icon={Solutions['edge-functions'].icon}+ icon={Solutions['functions'].icon}sectionId="edge-functions"/><PricingTableRowDesktopdiff --git a/apps/www/pages/realtime/Realtime.tsx b/apps/www/pages/realtime/Realtime.tsxindex 38483846dd3..24d82a4f836 100644--- a/apps/www/pages/realtime/Realtime.tsx+++ b/apps/www/pages/realtime/Realtime.tsx@@ -1,7 +1,7 @@import { Button, IconGrid, IconLayers, IconMenu } from 'ui'import ApiExamples from 'data/products/realtime/api-examples'import AppExamples from 'data/products/realtime/app-examples'-import Solutions from 'data/Solutions.json'+import Solutions from 'data/Solutions'import { NextSeo } from 'next-seo'import Link from 'next/link'import { useRouter } from 'next/router'diff --git a/apps/www/pages/storage/Storage.tsx b/apps/www/pages/storage/Storage.tsxindex 5baff9cc2bd..0993b0813a6 100644--- a/apps/www/pages/storage/Storage.tsx+++ b/apps/www/pages/storage/Storage.tsx@@ -2,7 +2,7 @@ import { Badge, Button, IconArrowUpRight, IconShuffle, IconWifi, IconX, Space }import ApiExamples from 'data/products/storage/api-examples'import DashboardViewData from 'data/products/storage/dashboard-carousel.json'import StoragePermissionsData from 'data/products/storage/permissions-examples'-import Solutions from 'data/Solutions.json'+import Solutions from 'data/Solutions'import { NextSeo } from 'next-seo'import { useRouter } from 'next/router'import Image from 'next/image'diff --git a/packages/shared-data/index.ts b/packages/shared-data/index.tsindex ad135754ea8..07592bab736 100644--- a/packages/shared-data/index.ts+++ b/packages/shared-data/index.ts@@ -2,6 +2,7 @@ import tweets from './tweets'import logConstants from './logConstants'import { plans, PricingInformation } from './plans'import { pricing } from './pricing'+import { products } from './products'-export { tweets, logConstants, plans, pricing }+export { tweets, logConstants, plans, pricing, products }export type { PricingInformation }diff --git a/packages/shared-data/products.ts b/packages/shared-data/products.tsnew file mode 100644index 00000000000..82a29adf85f--- /dev/null+++ b/packages/shared-data/products.ts@@ -0,0 +1,92 @@+export type PRODUCT =+ | PRODUCT_SHORTNAMES.DATABASE+ | PRODUCT_SHORTNAMES.AUTHENTICATION+ | PRODUCT_SHORTNAMES.STORAGE+ | PRODUCT_SHORTNAMES.FUNCTIONS+ | PRODUCT_SHORTNAMES.REALTIME+ | PRODUCT_SHORTNAMES.VECTOR++export enum PRODUCT_NAMES {+ DATABASE = 'Database',+ AUTHENTICATION = 'Authentication',+ STORAGE = 'Storage',+ FUNCTIONS = 'Edge Functions',+ REALTIME = 'Realtime',+ VECTOR = 'Vector',+}++export enum PRODUCT_SHORTNAMES {+ DATABASE = 'database',+ AUTHENTICATION = 'authentication',+ STORAGE = 'storage',+ FUNCTIONS = 'functions',+ REALTIME = 'realtime',+ VECTOR = 'vector',+}++// icon can be 18px or 24px+interface Icon {+ '16': string+ '18': string+ '24': string+}++interface ProductProps {+ name: PRODUCT_NAMES+ icon: Icon+}++type Products = {+ [product in PRODUCT]: ProductProps+}++export const products: Products = {+ database: {+ name: PRODUCT_NAMES.DATABASE,+ icon: {+ '16': 'M3.502 6h8.996v4H3.502V6ZM3 10.002h10v4H3v-4ZM3 2h10v4H3V2Z',+ '18': 'M3.00829 6.33225H15.1778V11.6648H3.00829V6.33225Z M2 13.0839C2 12.3016 2.63418 11.6674 3.41647 11.6674H14.7483C15.5306 11.6674 16.1648 12.3016 16.1648 13.0839V15.5835C16.1648 16.3658 15.5306 17 14.7483 17H3.41647C2.63418 17 2 16.3658 2 15.5835V13.0839Z M2 2.41647C2 1.63418 2.63418 1 3.41647 1H14.7483C15.5306 1 16.1648 1.63418 16.1648 2.41647V4.9161C16.1648 5.6984 15.5306 6.33257 14.7483 6.33257H3.41647C2.63418 6.33257 2 5.6984 2 4.9161V2.41647Z',+ '24': 'M5.18625 8.66531H19.5035V15.331H5.18625V8.66531Z M4 17.0007C4 16.0804 4.7461 15.3343 5.66645 15.3343H18.9984C19.9187 15.3343 20.6648 16.0804 20.6648 17.0007V20.3335C20.6648 21.2539 19.9187 22 18.9984 22H5.66646C4.7461 22 4 21.2539 4 20.3335V17.0007Z M4 3.66646C4 2.7461 4.7461 2 5.66645 2H18.9984C19.9187 2 20.6648 2.7461 20.6648 3.66645V6.99926C20.6648 7.91962 19.9187 8.66572 18.9984 8.66572H5.66646C4.7461 8.66572 4 7.91962 4 6.99926V3.66646Z',+ },+ },+ authentication: {+ name: PRODUCT_NAMES.AUTHENTICATION,+ icon: {+ '16': 'M3.494 9.975h5m-5 0v2h5v-2m-5 0v-2h5v2M10 5V3a2 2 0 1 0-4 0v2m6.473 0v9h-9V5h9Z',+ '18': 'M3.02644 12.0457H9.18048M3.02644 12.0457V14.5072H9.18048V12.0457M3.02644 12.0457V9.58414H9.18048V12.0457M11.0339 5.92308V3.46154C11.0339 2.10207 9.93179 1 8.57228 1C7.21277 1 6.11067 2.10207 6.11067 3.46154V5.92308M3 8.38465L3 14.5384C3 15.8979 4.10208 17 5.46157 17H11.6157C12.9752 17 14.0773 15.8979 14.0773 14.5384V8.38465C14.0773 7.02516 12.9752 5.92308 11.6157 5.92308L5.46158 5.92308C4.10209 5.92308 3 7.02516 3 8.38465Z',+ '24': 'M5.03305 15.8071H12.7252M5.03305 15.8071V18.884H12.7252V15.8071M5.03305 15.8071V12.7302H12.7252V15.8071M15.0419 8.15385V5.07692C15.0419 3.37759 13.6643 2 11.965 2C10.2657 2 8.88814 3.37759 8.88814 5.07692V8.15385M5 11.2307L5 18.9231C5 20.6224 6.37757 22 8.07689 22H15.769C17.4683 22 18.8459 20.6224 18.8459 18.9231V11.2307C18.8459 9.53142 17.4683 8.15385 15.769 8.15385L8.07689 8.15385C6.37757 8.15385 5 9.53142 5 11.2307Z',+ },+ },+ storage: {+ name: PRODUCT_NAMES.STORAGE,+ icon: {+ '16': 'M13 7.616V5.6l-3.618-3.6H3v4.03m9.964-.447L9.38 2v3.584h3.584ZM1.974 6v8h12V7.509h-7.59l-1.533-1.51H1.974Z',+ '18': 'M15.7014 8.34507V5.80169L10.8772 1.00033H3.7014C2.96501 1.00033 2.36805 1.59728 2.36805 2.33367V6.33312M15.6545 5.77939L10.8752 1L10.8752 4.44605C10.8752 5.18243 11.4722 5.77939 12.2086 5.77939L15.6545 5.77939ZM4.29028 6.33312H2.33335C1.59696 6.33312 1 6.93008 1 7.66647V14.3333C1 15.8061 2.19392 17 3.66669 17H14.3333C15.8061 17 17 15.8061 17 14.3333V9.67842C17 8.94203 16.403 8.34507 15.6667 8.34507H7.42712C7.07725 8.34507 6.7414 8.20755 6.492 7.96218L5.2254 6.71601C4.976 6.47063 4.64015 6.33312 4.29028 6.33312Z',+ '24': 'M20.4997 12.1386V9.15811L14.8463 3.53163H6.43717C5.57423 3.53163 4.87467 4.23119 4.87467 5.09413V9.78087M20.4447 9.13199L14.844 3.53125L14.844 7.56949C14.844 8.43243 15.5436 9.13199 16.4065 9.13199L20.4447 9.13199ZM7.12729 9.78087H4.83398C3.97104 9.78087 3.27148 10.4804 3.27148 11.3434V19.1559C3.27148 20.8818 4.67059 22.2809 6.39648 22.2809H18.8965C20.6224 22.2809 22.0215 20.8818 22.0215 19.1559V13.7011C22.0215 12.8381 21.3219 12.1386 20.459 12.1386H10.8032C10.3933 12.1386 9.99969 11.9774 9.70743 11.6899L8.22312 10.2296C7.93086 9.94202 7.53729 9.78087 7.12729 9.78087Z',+ },+ },+ functions: {+ name: PRODUCT_NAMES.FUNCTIONS,+ icon: {+ '16': 'M1.857 11.36a7 7 0 0 1 9.41-9.551M4.774 14.212a7 7 0 0 0 9.41-9.497m-8.812 7.845a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm9.296-9.13a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM12.5 8a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z',+ '18': 'M5.31216 16.101C6.41582 16.6754 7.67021 17 9.00043 17C13.419 17 17.0009 13.4183 17.0009 9C17.0009 7.66622 16.6744 6.40868 16.0971 5.30289M12.7352 1.92336C11.6203 1.33382 10.3494 1 9.00043 1C4.58192 1 1 4.58172 1 9C1 10.3615 1.34015 11.6436 1.94012 12.766M1.94012 12.766C1.61762 13.16 1.42413 13.6637 1.42413 14.2126C1.42413 15.475 2.44753 16.4983 3.70997 16.4983C4.9724 16.4983 5.99581 15.475 5.99581 14.2126C5.99581 12.9502 4.9724 11.9269 3.70997 11.9269C2.99646 11.9269 2.35931 12.2538 1.94012 12.766ZM16.6199 3.7793C16.6199 5.04166 15.5965 6.06501 14.3341 6.06501C13.0716 6.06501 12.0482 5.04166 12.0482 3.7793C12.0482 2.51693 13.0716 1.49358 14.3341 1.49358C15.5965 1.49358 16.6199 2.51693 16.6199 3.7793ZM14.1436 9C14.1436 11.8403 11.8409 14.1429 9.00043 14.1429C6.15996 14.1429 3.8573 11.8403 3.8573 9C3.8573 6.15968 6.15996 3.85714 9.00043 3.85714C11.8409 3.85714 14.1436 6.15968 14.1436 9Z',+ '24': 'M6.6594 21.8201C8.10788 22.5739 9.75418 23 11.5 23C17.299 23 22 18.299 22 12.5C22 10.7494 21.5716 9.09889 20.8139 7.64754M16.4016 3.21191C14.9384 2.43814 13.2704 2 11.5 2C5.70101 2 1 6.70101 1 12.5C1 14.287 1.44643 15.9698 2.23384 17.4428M2.23384 17.4428C1.81058 17.96 1.55664 18.6211 1.55664 19.3416C1.55664 20.9984 2.89979 22.3416 4.55664 22.3416C6.21349 22.3416 7.55664 20.9984 7.55664 19.3416C7.55664 17.6847 6.21349 16.3416 4.55664 16.3416C3.62021 16.3416 2.78399 16.7706 2.23384 17.4428ZM21.5 5.64783C21.5 7.30468 20.1569 8.64783 18.5 8.64783C16.8432 8.64783 15.5 7.30468 15.5 5.64783C15.5 3.99097 16.8432 2.64783 18.5 2.64783C20.1569 2.64783 21.5 3.99097 21.5 5.64783ZM18.25 12.5C18.25 16.2279 15.2279 19.25 11.5 19.25C7.77208 19.25 4.75 16.2279 4.75 12.5C4.75 8.77208 7.77208 5.75 11.5 5.75C15.2279 5.75 18.25 8.77208 18.25 12.5Z',+ },+ },+ realtime: {+ name: PRODUCT_NAMES.REALTIME,+ icon: {+ '16': 'M5.362.984v2.35m-1.866.144L1.365 1.282m2.052 3.92H1.052m8.023 9.653L4.557 4.523 15 9.115l-4.748 1.182-1.177 4.558Z',+ '18': 'M5.94415 1V3.85995M3.80348 3.85995L1.35903 1.34096M3.80348 5.83876H1M11.5534 11.6817L15.3703 10.7317C15.901 10.5996 15.9633 9.87023 15.4626 9.6501L6.36613 5.65053C5.8879 5.44026 5.40048 5.92671 5.60979 6.40536L9.53793 15.3879C9.75628 15.8872 10.4825 15.8291 10.6187 15.3015L11.5534 11.6817Z',+ '24': 'M9.15928 1.94531V5.84117M6.24345 5.84117L2.91385 2.40977M6.24345 8.53673H2.4248M16.7998 16.496L21.9988 15.2019C22.7217 15.022 22.8065 14.0285 22.1246 13.7286L9.73411 8.28034C9.08269 7.99391 8.41873 8.65652 8.70383 9.30851L14.0544 21.5445C14.3518 22.2247 15.341 22.1456 15.5266 21.4269L16.7998 16.496Z',+ },+ },+ vector: {+ name: PRODUCT_NAMES.VECTOR,+ icon: {+ '16': 'M7.99886 7.63216V14.4892M7.99886 7.63216L14.0488 4.11804M7.99886 7.63216L1.94922 4.11819M1.94922 4.11819V8.32332M1.94922 4.11819V4.08217L5.57319 1.97717M14.049 8.36007V4.08217L10.4251 1.97717M11.8165 12.4072L7.99913 14.6245L4.18177 12.4072',+ '18': 'M8.61033 8.15404V16.8287M8.61033 8.15404L16.264 3.70838M8.61033 8.15404L0.957031 3.70858M0.957031 3.70858V9.02842M0.957031 3.70858V3.66301L5.54166 1M16.2643 9.07491V3.66301L11.6797 1M13.44 14.1949L8.61068 17L3.7814 14.1949',+ '24': 'M11.9983 11.4482V21.7337M11.9983 11.4482L21.0732 6.17699M11.9983 11.4482L2.92383 6.17723M2.92383 6.17723V12.4849M2.92383 6.17723V6.1232L8.35978 2.9657M21.0736 12.54V6.1232L15.6376 2.9657M17.7247 18.6107L11.9987 21.9367L6.27265 18.6107',+ },+ },+}diff --git a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsxindex 20904d97129..07ae661d74a 100644--- a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx+++ b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.utils.tsx@@ -1,13 +1,5 @@-import {- IconArchive,- IconBarChart,- IconCode,- IconDatabase,- IconFileText,- IconList,- IconSettings,- IconUsers,-} from 'ui'+import { IconBarChart, IconFileText, IconList, IconSettings, IconUsers } from 'ui'+import { products } from 'shared-data'import SVG from 'react-inlinesvg'import { ProjectBase } from 'types'@@ -53,7 +45,24 @@ export const generateProductRoutes = (ref?: string, project?: ProjectBase): Rout{key: 'database',label: 'Database',- icon: <IconDatabase size={18} strokeWidth={2} />,+ icon: (+ <svg+ width="18"+ height="18"+ viewBox="0 0 18 18"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d={products.database.icon[18]}+ stroke="currentColor"+ strokeWidth="1.5"+ strokeMiterlimit="10"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ ),link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/database/tables`),},{@@ -65,7 +74,24 @@ export const generateProductRoutes = (ref?: string, project?: ProjectBase): Rout{key: 'storage',label: 'Storage',- icon: <IconArchive size={18} strokeWidth={2} />,+ icon: (+ <svg+ width="18"+ height="18"+ viewBox="0 0 18 18"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d={products.storage.icon[18]}+ stroke="currentColor"+ strokeWidth="1.5"+ strokeMiterlimit="10"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ ),link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/storage/buckets`),},...(IS_PLATFORM@@ -73,7 +99,24 @@ export const generateProductRoutes = (ref?: string, project?: ProjectBase): Rout{key: 'functions',label: 'Edge Functions',- icon: <IconCode size={18} strokeWidth={2} />,+ icon: (+ <svg+ width="18"+ height="18"+ viewBox="0 0 18 18"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ d={products.functions.icon[18]}+ stroke="currentColor"+ strokeWidth="1.5"+ strokeMiterlimit="10"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ ),link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/functions`),},]diff --git a/studio/public/img/database.svg b/studio/public/img/database.svgindex c296fbcfd55..fd24ff20386 100755--- a/studio/public/img/database.svg+++ b/studio/public/img/database.svg@@ -1 +1,3 @@-<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-database"><ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-database"><path d="M6.47399 9.49963H19.361V15.4996H6.47399V9.49963Z" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M5.40625 17.0026C5.40625 16.1741 6.07782 15.5026 6.90625 15.5026H18.9063C19.7347 15.5026 20.4063 16.1741 20.4063 17.0026V20.0026C20.4063 20.831 19.7347 21.5026 18.9063 21.5026H6.90625C6.07782 21.5026 5.40625 20.831 5.40625 20.0026V17.0026Z" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M5.40625 5C5.40625 4.17157 6.07782 3.5 6.90625 3.5H18.9063C19.7347 3.5 20.4063 4.17157 20.4063 5V8C20.4063 8.82843 19.7347 9.5 18.9063 9.5H6.90625C6.07782 9.5 5.40625 8.82843 5.40625 8V5Z" stroke="currentColor" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/></svg>