The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Revert "Dashboard deploy: Sync/studio master 280923 (#17767)" (#17769)
Joshen Lim9b58a8468d47
diff --git a/apps/docs/components/Frameworks.tsx b/apps/docs/components/Frameworks.tsxindex 8ea096c6c1a..2b88f604748 100644--- a/apps/docs/components/Frameworks.tsx+++ b/apps/docs/components/Frameworks.tsx@@ -1,8 +1,8 @@import ButtonCard from './ButtonCard'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'const Frameworks = () => {- const { resolvedTheme } = useTheme()+ const { isDarkMode } = useTheme()const frameworks = [{@@ -110,7 +110,8 @@ const Frameworks = () => {layout="horizontal"to={x.href}title={x.name}- icon={resolvedTheme === 'dark' ? x.logo.dark : x.logo.light}+ // [Joshen] Nice to have: theming+ icon={isDarkMode ? x.logo.dark : x.logo.light}/></div>))}diff --git a/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsxindex 9800235c5fe..e94da27828e 100644--- a/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/HomeMenu.tsx@@ -1,10 +1,16 @@+import { useTheme } from 'common/Providers'+import Image from 'next/image'import Link from 'next/link'+import { useRouter } from 'next/router'import { Fragment } from 'react'import { Badge, cn } from 'ui'import { HOMEPAGE_MENU_ITEMS } from './NavigationMenu.constants'import HomeMenuIconPicker from './HomeMenuIconPicker'const NavigationMenuHome = () => {+ const router = useRouter()+ const { isDarkMode } = useTheme()+return (<div className="transition-all duration-150 ease-out opacity-100 ml-0 delay-150"><ul className="relative w-full flex flex-col gap-4 pb-5">diff --git a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsxindex 3398ad1e0e9..0aafad62318 100644--- a/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx@@ -1,4 +1,4 @@-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import Image from 'next/image'import Link from 'next/link'import { useRouter } from 'next/router'@@ -29,7 +29,7 @@ const HeaderLink = React.memo(function HeaderLink(props: {const ContentAccordionLink = React.memo(function ContentAccordionLink(props: any) {const router = useRouter()- const { resolvedTheme } = useTheme()+ const { isDarkMode } = useTheme()const activeItem = props.subItem.url === router.asPathconst activeItemRef = useRef(null)@@ -77,8 +77,7 @@ const ContentAccordionLink = React.memo(function ContentAccordionLink(props: any<Imagealt={props.subItem.name + router.basePath}src={- `${router.basePath}` +- `${props.subItem.icon}${resolvedTheme !== 'dark' ? '-light' : ''}.svg`+ `${router.basePath}` + `${props.subItem.icon}${!isDarkMode ? '-light' : ''}.svg`}width={15}height={15}diff --git a/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx b/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsxindex 5ba553eaa30..c96cac5fd92 100644--- a/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx+++ b/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx@@ -1,16 +1,23 @@-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import Image from 'next/image'import Link from 'next/link'import { useRouter } from 'next/router'-import { FC, useState } from 'react'-import { Button, IconCommand, IconGitHub, IconSearch, SearchButton } from 'ui'--import { getPageType } from '~/lib/helpers'+import { FC, useEffect, useState } from 'react'+import {+ Button,+ IconCommand,+ IconMenu,+ IconMoon,+ IconSearch,+ IconSun,+ Listbox,+ SearchButton,+} from 'ui'import { REFERENCES } from './NavigationMenu.constants'-import ThemeToggle from '@ui/components/ThemeProvider/ThemeToggle'const TopNavBar: FC = () => {- const { resolvedTheme } = useTheme()+ const { isDarkMode, toggleTheme } = useTheme()+ const [mounted, setMounted] = useState(false)const [mobileMenuOpen, setMobileMenuOpen] = useState(false)const { asPath, push } = useRouter()@@ -24,12 +31,9 @@ const TopNavBar: FC = () => {? pathSegments[pathSegments.indexOf(library) + 1]: versions[0]- const pageType = getPageType(asPath)-- const pageLinks = [- { text: 'Guides', key: 'docs', link: '/' },- { text: 'Reference', key: 'reference', link: '/reference' },- ]+ useEffect(() => {+ setMounted(true)+ }, [isDarkMode])const onSelectVersion = (version: string) => {// [Joshen] Ideally we use <Link> but this works for now@@ -52,77 +56,104 @@ const TopNavBar: FC = () => {}return (- <nav className="h-[60px] border-b backdrop-blur backdrop-filter bg bg-opacity-75">- <div className="px-5 max-w-7xl mx-auto flex gap-3 justify-between items-center h-full">- <div className="lg:hidden">- <Link href="/">- <a className=" flex items-center gap-2">- <Image- className="cursor-pointer"- src={- resolvedTheme === 'dark' ? '/docs/supabase-dark.svg' : '/docs/supabase-light.svg'- }- width={96}- height={24}- alt="Supabase Logo"- />- <span className="font-mono text-sm font-medium text-brand">DOCS</span>- </a>- </Link>+ <nav className="h-[60px] border-b px-4 backdrop-blur backdrop-filter bg-white-1200 bg-scale-200/90">+ <div className="max-w-[1400px] grid grid-cols-12 mx-auto gap-4 px-5 h-full">+ <div className="col-span-3 flex items-center">+ <button className="mr-4 block stroke-2 lg:hidden" onClick={toggleMobileMenu}>+ <IconMenu className="text-scale-1100" />+ </button>+ {mounted && (+ <Link href="/">+ <a className="flex items-center">+ <Image+ className="cursor-pointer"+ src={isDarkMode ? '/docs/supabase-dark.svg' : '/docs/supabase-light.svg'}+ width={124}+ height={24}+ alt="Supabase Logo"+ />+ </a>+ </Link>+ )}+ {versions.length > 0 && (+ <div className="ml-8">+ <Listbox+ size="small"+ defaultValue={version}+ style={{ width: '70px' }}+ onChange={onSelectVersion}+ >+ {versions.map((version) => (+ <Listbox.Option key={version} label={version} value={version}>+ {version}+ </Listbox.Option>+ ))}+ </Listbox>+ </div>+ )}</div>-- <div className="flex items-center gap-6">- <SearchButton className="md:w-full lg:w-96 order-2 lg:order-1">- <div- className="+ <div className="col-span-5 flex items-center">+ <div className="max-w-xl grow">+ <SearchButton className="w-full">+ <div+ className="flexgroupitems-centerjustify-between- bg-surface-100- bg-opacity-75- hover:bg-surface-200- hover:bg-opacity-100+ bg-scaleA-200bordertransition- border-scale-500 pl-1.5 md:pl-3 pr-1.5 w-full h-[32px] rounded- text-lighter- "- >- <div className="flex items-center space-x-2">- <IconSearch className="" size={18} strokeWidth={2} />- <p className="hidden md:flex text-sm">Search docs...</p>- </div>- <div className="hidden md:flex items-center space-x-1">- <div className="md:flex items-center justify-center h-5 w-10 border rounded bg-surface-300 gap-1">- <IconCommand size={12} strokeWidth={1.5} />- <span className="text-[12px]">K</span>+ hover:border-scale-600+ hover:bg-scaleA-300+ border-scale-500 pl-3 pr-1.5 w-full h-[32px] rounded"+ >+ <div className="flex items-center space-x-2">+ <IconSearch className="text-scale-1100" size={18} strokeWidth={2} />+ <p className="text-scale-1100 text-sm group-hover:text-scale-1200 transition">+ Search docs...+ </p>+ </div>+ <div className="flex items-center space-x-1">+ <div className="text-scale-1200 md:flex items-center justify-center h-5 w-10 border rounded bg-scale-500 border-scale-700 gap-1">+ <IconCommand size={12} strokeWidth={1.5} />+ <span className="text-[12px]">K</span>+ </div></div></div>- </div>- </SearchButton>+ </SearchButton>+ </div></div>- <div className="hidden lg:flex grow items-center justify-end gap-3">- <Button type="text" asChild>- <a href="https://supabase.com" target="_blank" rel="noreferrer noopener">- Supabase.com- </a>- </Button>- <Button type="text" asChild>- <a href="https://supabase.com/dashboard" target="_blank" rel="noreferrer noopener">- Dashboard+ <div className="col-span-4 flex items-center justify-end gap-3">+ <Button type="outline" asChild>+ <a+ href="https://supabase.com/dashboard"+ className="text-scale-1100 text-sm"+ target="_blank"+ rel="noreferrer noopener"+ >+ Go to Dashboard</a></Button>- <Link- href="https://github.com/supabase/supabase"- target="_blank"- rel="noreferrer noopener"- >- <a className="px-2.5 py-1" target="_blank">- <IconGitHub size={16} className="text-scale-1100 hover:text-scale-1200 transition" />- </a>- </Link>- <ThemeToggle />+ <ul className="flex items-center">+ <li className="px-4">+ <div className="cursor-pointer" onClick={() => toggleTheme()}>+ {isDarkMode ? (+ <IconMoon+ size={16}+ strokeWidth={1}+ className="text-scale-1100 hover:text-scale-1200 transition"+ />+ ) : (+ <IconSun+ size={16}+ strokeWidth={1}+ className="text-scale-1100 hover:text-scale-1200 transition"+ />+ )}+ </div>+ </li>+ </ul></div></div></nav>diff --git a/apps/docs/components/Navigation/NavigationMenu/TopNavBarRef.tsx b/apps/docs/components/Navigation/NavigationMenu/TopNavBarRef.tsxnew file mode 100644index 00000000000..bba13421321--- /dev/null+++ b/apps/docs/components/Navigation/NavigationMenu/TopNavBarRef.tsx@@ -0,0 +1,148 @@+import { useTheme } from 'common/Providers'+import Image from 'next/image'+import Link from 'next/link'+import { useRouter } from 'next/router'+import { FC, useEffect, useState } from 'react'+import { Button, IconCommand, IconGitHub, IconMoon, IconSearch, IconSun, SearchButton } from 'ui'++import { getPageType } from '~/lib/helpers'+import { REFERENCES } from './NavigationMenu.constants'++const TopNavBarRef: FC = () => {+ const { isDarkMode, toggleTheme } = useTheme()+ const [mounted, setMounted] = useState(false)+ const [mobileMenuOpen, setMobileMenuOpen] = useState(false)++ const { asPath, push } = useRouter()+ const pathSegments = asPath.split('/')++ const library = pathSegments.length >= 3 ? pathSegments[2] : undefined+ const libraryMeta = REFERENCES?.[library] ?? undefined+ const versions = libraryMeta?.versions ?? []++ const version = versions.includes(pathSegments[pathSegments.indexOf(library) + 1])+ ? pathSegments[pathSegments.indexOf(library) + 1]+ : versions[0]++ const pageType = getPageType(asPath)++ useEffect(() => {+ setMounted(true)+ }, [isDarkMode])++ const pageLinks = [+ { text: 'Guides', key: 'docs', link: '/' },+ { text: 'Reference', key: 'reference', link: '/reference' },+ ]++ const onSelectVersion = (version: string) => {+ // [Joshen] Ideally we use <Link> but this works for now+ if (!library) return+ if (version === versions[0]) {+ push(`/reference/${library}`)+ } else {+ push(`/reference/${library}/${version}`)+ }+ }++ // [Joshen] Kaizen: Use UI library's SidePanel for this+ const toggleMobileMenu = () => {+ setMobileMenuOpen(!mobileMenuOpen)+ const sidebar = document.querySelector('.sidebar-menu-container')+ const contentPane = document.querySelector('.main-content-pane')++ sidebar.classList.toggle('hidden')+ contentPane.classList.toggle('hidden')+ }++ return (+ <nav className="h-[60px] border-b backdrop-blur backdrop-filter bg bg-opacity-75">+ <div className="px-5 max-w-7xl mx-auto flex gap-3 justify-between items-center h-full">+ <div className={['lg:hidden'].join(' ')}>+ <Link href="/">+ <a className=" flex items-center gap-2">+ <Image+ className="cursor-pointer"+ src={isDarkMode ? '/docs/supabase-dark.svg' : '/docs/supabase-light.svg'}+ width={96}+ height={24}+ alt="Supabase Logo"+ />+ <span className="font-mono text-sm font-medium text-brand">DOCS</span>+ </a>+ </Link>+ {/* {router.asPath.includes('/reference/') && <RefSwitcher />} */}+ </div>++ <div className="flex items-center gap-6">+ <SearchButton className="md:w-full lg:w-96 order-2 lg:order-1">+ <div+ className="+ flex+ group+ items-center+ justify-between+ bg-surface-100+ bg-opacity-75+ hover:bg-surface-200+ hover:bg-opacity-100+ border+ transition+ border-scale-500 pl-1.5 md:pl-3 pr-1.5 w-full h-[32px] rounded+ text-lighter+ "+ >+ <div className="flex items-center space-x-2">+ <IconSearch className="" size={18} strokeWidth={2} />+ <p className="hidden md:flex text-sm">Search docs...</p>+ </div>+ <div className="hidden md:flex items-center space-x-1">+ <div className="md:flex items-center justify-center h-5 w-10 border rounded bg-surface-300 gap-1">+ <IconCommand size={12} strokeWidth={1.5} />+ <span className="text-[12px]">K</span>+ </div>+ </div>+ </div>+ </SearchButton>+ </div>+ <div className="hidden lg:flex grow items-center justify-end gap-3">+ <Button type="text" asChild>+ <a href="https://supabase.com" target="_blank" rel="noreferrer noopener">+ Supabase.com+ </a>+ </Button>+ <Button type="text" asChild>+ <a href="https://supabase.com/dashboard" target="_blank" rel="noreferrer noopener">+ Dashboard+ </a>+ </Button>+ <Link+ href="https://github.com/supabase/supabase"+ target="_blank"+ rel="noreferrer noopener"+ >+ <a className="px-2.5 py-1" target="_blank">+ <IconGitHub size={16} className="text-scale-1100 hover:text-scale-1200 transition" />+ </a>+ </Link>+ <div className="cursor-pointer px-2.5 py-1" onClick={() => toggleTheme()}>+ {isDarkMode ? (+ <IconMoon+ size={16}+ strokeWidth={1}+ className="text-scale-1100 hover:text-scale-1200 transition"+ />+ ) : (+ <IconSun+ size={16}+ strokeWidth={1}+ className="text-scale-1100 hover:text-scale-1200 transition"+ />+ )}+ </div>+ </div>+ </div>+ </nav>+ )+}+export default TopNavBarRefdiff --git a/apps/docs/layouts/SiteLayout.tsx b/apps/docs/layouts/SiteLayout.tsxindex f65a3985c80..15c841f2187 100644--- a/apps/docs/layouts/SiteLayout.tsx+++ b/apps/docs/layouts/SiteLayout.tsx@@ -1,8 +1,8 @@-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import Image from 'next/image'import Link from 'next/link'import NavigationMenu from '~/components/Navigation/NavigationMenu/NavigationMenu'-import TopNavBar from '~/components/Navigation/NavigationMenu/TopNavBar'+import TopNavBarRef from '~/components/Navigation/NavigationMenu/TopNavBarRef'import Head from 'next/head'import { PropsWithChildren, memo } from 'react'@@ -220,13 +220,13 @@ const MobileMenuBackdrop = memo(function MobileMenuBackdrop() {})const HeaderLogo = memo(function HeaderLogo() {- const { resolvedTheme } = useTheme()+ const { isDarkMode } = useTheme()return (<Link href="/"><a className="px-10 flex items-center gap-2"><ImageclassName="cursor-pointer"- src={resolvedTheme === 'dark' ? '/docs/supabase-dark.svg' : '/docs/supabase-light.svg'}+ src={isDarkMode ? '/docs/supabase-dark.svg' : '/docs/supabase-light.svg'}width={96}height={24}alt="Supabase Logo"@@ -334,7 +334,7 @@ const SiteLayout = ({ children }: PropsWithChildren<{}>) => {<NavContainer /><Container><div className={['lg:sticky top-0 z-10 overflow-hidden'].join(' ')}>- <TopNavBar />+ <TopNavBarRef /></div><divclassName={[diff --git a/apps/docs/pages/_app.tsx b/apps/docs/pages/_app.tsxindex a3a69191a9a..9756f5030ae 100644--- a/apps/docs/pages/_app.tsx+++ b/apps/docs/pages/_app.tsx@@ -153,12 +153,7 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {<><Favicons /><AuthContainer>- <ThemeProvider- attribute="class"- defaultTheme="system"- enableSystem- disableTransitionOnChange- >+ <ThemeProvider><CommandMenuProvider site="docs"><TabsProvider><SiteLayout>diff --git a/apps/docs/pages/_document.tsx b/apps/docs/pages/_document.tsxindex 54e8bf3e2a2..4b0eeb64eef 100644--- a/apps/docs/pages/_document.tsx+++ b/apps/docs/pages/_document.tsx@@ -4,7 +4,7 @@ export default function Document() {return (<Html lang="en"><Head />- <body>+ <body className="dark"><Main /><NextScript /></body>diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-expo.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-expo.mdxindex 4db5073e0a7..7f2bcfaee5d 100644--- a/apps/docs/pages/guides/getting-started/tutorials/with-expo.mdx+++ b/apps/docs/pages/guides/getting-started/tutorials/with-expo.mdx@@ -36,6 +36,7 @@ Then let's install the additional dependencies: [supabase-js](https://github.com```bashnpm install @supabase/supabase-jsnpm install react-native-elements @react-native-async-storage/async-storage react-native-url-polyfill+npx expo install expo-secure-store```Now let's create a helper file to initialize the Supabase client.@@ -43,122 +44,35 @@ We need the API URL and the `anon` key that you copied [earlier](#get-the-api-keThese variables will be exposed on the browser, and that's completely fine since we have[Row Level Security](/docs/guides/auth#row-level-security) enabled on our Database.-<Tabs- scrollable- size="large"- type="underlined"- defaultActiveId="async-storage"- queryGroup="auth-store"->- <TabPanel id="async-storage" label="AsyncStorage">-- ```ts lib/supabase.ts- import 'react-native-url-polyfill/auto'- import AsyncStorage from '@react-native-async-storage/async-storage'- import { createClient } from '@supabase/supabase-js'-- const supabaseUrl = YOUR_REACT_NATIVE_SUPABASE_URL- const supabaseAnonKey = YOUR_REACT_NATIVE_SUPABASE_ANON_KEY-- export const supabase = createClient(supabaseUrl, supabaseAnonKey, {- auth: {- storage: AsyncStorage,- autoRefreshToken: true,- persistSession: true,- detectSessionInUrl: false,- },- })- ```-- </TabPanel>- <TabPanel id="secure-store" label="SecureStore">-- If you wish to encrypt the user's session information, you can use `aes-js` and store the encryption key in [Expo SecureStore](https://docs.expo.dev/versions/latest/sdk/securestore). The [`aes-js` library](https://github.com/ricmoo/aes-js) is a reputable JavaScript-only implementation of the AES encryption algorithm in CTR mode. A new 256-bit encryption key is generated using the `react-native-get-random-values` library. This key is stored inside Expo's SecureStore, while the value is encrypted and placed inside AsyncStorage.-- Please make sure that:- - You keep the `expo-secure-storage`, `aes-js` and `react-native-get-random-values` libraries up-to-date.- - Choose the correct [`SecureStoreOptions`](https://docs.expo.dev/versions/latest/sdk/securestore/#securestoreoptions) for your app's needs. E.g. [`SecureStore.WHEN_UNLOCKED`](https://docs.expo.dev/versions/latest/sdk/securestore/#securestorewhen_unlocked) regulates when the data can be accessed.- - Carefully consider optimizations or other modifications to the above example, as those can lead to introducing subtle security vulnerabilities.-- Install the necessary dependencies in the root of your Expo project:-- ```bash- npm install @supabase/supabase-js- npm install react-native-elements @react-native-async-storage/async-storage react-native-url-polyfill- npm install aes-js react-native-get-random-values- npx expo install expo-secure-store- ```-- Implement a `LargeSecureStore` class to pass in as Auth storage for the `supabase-js` client:-- ```ts lib/supabase.ts- import { createClient } from '@supabase/supabase-js'- import AsyncStorage from '@react-native-async-storage/async-storage';- import * as SecureStore from 'expo-secure-store';- import * as aesjs from 'aes-js';- import 'react-native-get-random-values';-- // As Expo's SecureStore does not support values larger than 2048- // bytes, an AES-256 key is generated and stored in SecureStore, while- // it is used to encrypt/decrypt values stored in AsyncStorage.- class LargeSecureStore {- private async _encrypt(key: string, value: string) {- const encryptionKey = crypto.getRandomValues(new Uint8Array(256 / 8));-- const cipher = new aesjs.ModeOfOperation.ctr(encryptionKey, new aesjs.Counter(1));- const encryptedBytes = cipher.encrypt(aesjs.utils.utf8.toBytes(value));-- await SecureStore.setItemAsync(key, aesjs.utils.hex.fromBytes(encryptionKey));-- return aesjs.utils.hex.fromBytes(encryptedBytes);- }-- private async _decrypt(key: string, value: string) {- const encryptionKeyHex = await SecureStore.getItemAsync(key);- if (!encryptionKeyHex) {- return encryptionKeyHex;- }-- const cipher = new aesjs.ModeOfOperation.ctr(aesjs.utils.hex.toBytes(encryptionKeyHex), new aesjs.Counter(1));- const decryptedBytes = cipher.decrypt(aesjs.utils.hex.toBytes(value));-- return aesjs.utils.utf8.fromBytes(decryptedBytes);- }-- async getItem(key: string) {- const encrypted = await AsyncStorage.getItem(key);- if (!encrypted) { return encrypted; }-- return await this._decrypt(key, encrypted);- }-- async removeItem(key: string) {- await AsyncStorage.removeItem(key);- await SecureStore.deleteItemAsync(key);- }+```ts lib/supabase.ts+import 'react-native-url-polyfill/auto'+import * as SecureStore from 'expo-secure-store'+import { createClient } from '@supabase/supabase-js'- async setItem(key: string, value: string) {- const encrypted = await this._encrypt(key, value);+const ExpoSecureStoreAdapter = {+ getItem: (key: string) => {+ return SecureStore.getItemAsync(key)+ },+ setItem: (key: string, value: string) => {+ SecureStore.setItemAsync(key, value)+ },+ removeItem: (key: string) => {+ SecureStore.deleteItemAsync(key)+ },+}- await AsyncStorage.setItem(key, encrypted);- }- }+const supabaseUrl = YOUR_REACT_NATIVE_SUPABASE_URL+const supabaseAnonKey = YOUR_REACT_NATIVE_SUPABASE_ANON_KEY- const supabaseUrl = YOUR_REACT_NATIVE_SUPABASE_URL- const supabaseAnonKey = YOUR_REACT_NATIVE_SUPABASE_ANON_KEY-- const supabase = createClient(supabaseUrl, supabaseAnonKey, {- auth: {- storage: new LargeSecureStore(),- autoRefreshToken: true,- persistSession: true,- detectSessionInUrl: false,- },- });- ```-- </TabPanel>-</Tabs>+export const supabase = createClient(supabaseUrl, supabaseAnonKey, {+ auth: {+ storage: ExpoSecureStoreAdapter as any,+ autoRefreshToken: true,+ persistSession: true,+ detectSessionInUrl: false,+ },+})+```### Set up a Login componentdiff --git a/apps/docs/public/sitemap.xml b/apps/docs/public/sitemap.xmlindex a6de67e1282..34bf9dbe55c 100644--- a/apps/docs/public/sitemap.xml+++ b/apps/docs/public/sitemap.xml@@ -12,6 +12,18 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/handbook/contributing</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/docs/handbook/introduction</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/guides/ai</loc><changefreq>weekly</changefreq>@@ -84,18 +96,6 @@<changefreq>0.5</changefreq></url>- <url>- <loc>https://supabase.com/docs/handbook/contributing</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/handbook/introduction</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-<url><loc>https://supabase.com/docs/reference/index</loc><changefreq>weekly</changefreq>@@ -103,119 +103,31 @@</url><url>-<<<<<<< HEAD- <loc>https://supabase.com/docs/guides/ai/choosing-compute-addon</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/ai/concepts</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/ai/engineering-for-scale</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/ai/going-to-prod</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/ai/google-colab</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/ai/hugging-face</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/ai/langchain</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/ai/python-clients</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/ai/structured-unstructured</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/ai/vecs-python-client</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/ai/vector-columns</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/ai/vector-indexes</loc>-=======<loc>https://supabase.com/docs/guides/api/api-keys</loc>->>>>>>> @{-1}<changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/cli/customizing-email-templates</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/cli/getting-started</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/cli/local-development</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/cli/managing-config</loc>+ <loc>https://supabase.com/docs/guides/api/creating-routes</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/cli/managing-environments</loc>+ <loc>https://supabase.com/docs/guides/api/joins-and-nesting</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/cli/seeding-your-database</loc>+ <loc>https://supabase.com/docs/guides/api/quickstart</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/cli/testing-and-linting</loc>+ <loc>https://supabase.com/docs/guides/api/securing-your-api</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -383,9 +295,6 @@</url><url>-<<<<<<< HEAD- <loc>https://supabase.com/docs/guides/database/arrays</loc>-=======<loc>https://supabase.com/docs/guides/cli/customizing-email-templates</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq>@@ -411,14 +320,11 @@<url><loc>https://supabase.com/docs/guides/cli/managing-environments</loc>->>>>>>> @{-1}<changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>-<<<<<<< HEAD-=======<loc>https://supabase.com/docs/guides/cli/seeding-your-database</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq>@@ -437,7 +343,6 @@</url><url>->>>>>>> @{-1}<loc>https://supabase.com/docs/guides/database/column-encryption</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq>@@ -541,45 +446,6 @@<url><loc>https://supabase.com/docs/guides/database/webhooks</loc>-<<<<<<< HEAD- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/api/api-keys</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/api/creating-routes</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/api/joins-and-nesting</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/api/quickstart</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/api/securing-your-api</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/api/using-custom-schemas</loc>-=======->>>>>>> @{-1}<changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -932,6 +798,12 @@<changefreq>0.5</changefreq></url>+ <url>+ <loc>https://supabase.com/docs/guides/self-hosting/docker</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>+<url><loc>https://supabase.com/docs/guides/storage/access-control</loc><changefreq>weekly</changefreq>@@ -968,12 +840,6 @@<changefreq>0.5</changefreq></url>- <url>- <loc>https://supabase.com/docs/guides/self-hosting/docker</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-<url><loc>https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts</loc><changefreq>weekly</changefreq>@@ -1005,8 +871,6 @@</url><url>-<<<<<<< HEAD-=======<loc>https://supabase.com/docs/guides/api/rest/auto-generated-docs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq>@@ -1025,7 +889,6 @@</url><url>->>>>>>> @{-1}<loc>https://supabase.com/docs/guides/ai/examples/building-chatgpt-plugins</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq>@@ -1062,57 +925,24 @@</url><url>-<<<<<<< HEAD- <loc>https://supabase.com/docs/guides/ai/quickstarts/face-similarity</loc>-=======<loc>https://supabase.com/docs/guides/ai/integrations/llamaindex</loc>->>>>>>> @{-1}<changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>-<<<<<<< HEAD- <loc>https://supabase.com/docs/guides/ai/quickstarts/generate-text-embeddings</loc>-=======<loc>https://supabase.com/docs/guides/ai/quickstarts/face-similarity</loc>->>>>>>> @{-1}<changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>-<<<<<<< HEAD- <loc>https://supabase.com/docs/guides/ai/quickstarts/hello-world</loc>-=======<loc>https://supabase.com/docs/guides/ai/quickstarts/generate-text-embeddings</loc>->>>>>>> @{-1}- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>-<<<<<<< HEAD- <loc>https://supabase.com/docs/guides/ai/quickstarts/text-deduplication</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/docs/guides/ai/integrations/llamaindex</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/ai/vector-indexes/hnsw-indexes</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/ai/vector-indexes/ivf-indexes</loc>-=======<loc>https://supabase.com/docs/guides/ai/quickstarts/hello-world</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq>@@ -1120,7 +950,6 @@<url><loc>https://supabase.com/docs/guides/ai/quickstarts/text-deduplication</loc>->>>>>>> @{-1}<changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -1186,8 +1015,6 @@</url><url>-<<<<<<< HEAD-=======<loc>https://supabase.com/docs/guides/ai/vector-indexes/hnsw-indexes</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq>@@ -1200,7 +1027,6 @@</url><url>->>>>>>> @{-1}<loc>https://supabase.com/docs/guides/auth/quickstarts/nextjs</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq>@@ -1503,33 +1329,6 @@</url><url>-<<<<<<< HEAD- <loc>https://supabase.com/docs/guides/api/graphql/graphiql</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/api/rest/auto-generated-docs</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/api/rest/client-libs</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/api/rest/generating-types</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>-=======->>>>>>> @{-1}<loc>https://supabase.com/docs/guides/database/postgres/cascade-deletes</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq>@@ -1584,15 +1383,12 @@</url><url>-<<<<<<< HEAD-=======<loc>https://supabase.com/docs/guides/platform/oauth-apps/build-a-supabase-integration</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>->>>>>>> @{-1}<loc>https://supabase.com/docs/guides/functions/examples/cloudflare-turnstile</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq>@@ -1653,75 +1449,6 @@</url><url>-<<<<<<< HEAD- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/flutter</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/kotlin</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/nextjs</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/nuxtjs</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/reactjs</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/redwoodjs</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/refine</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/solidjs</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/sveltekit</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/getting-started/quickstarts/vue</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/platform/oauth-apps/build-a-supabase-integration</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>-=======->>>>>>> @{-1}<loc>https://supabase.com/docs/guides/getting-started/tutorials/with-angular</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq>@@ -1813,8 +1540,6 @@<url><loc>https://supabase.com/docs/guides/getting-started/tutorials/with-vue-3</loc>-<<<<<<< HEAD-=======<changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -1875,7 +1600,6 @@<url><loc>https://supabase.com/docs/guides/getting-started/quickstarts/vue</loc>->>>>>>> @{-1}<changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -1905,15 +1629,12 @@</url><url>-<<<<<<< HEAD-=======<loc>https://supabase.com/docs/guides/self-hosting/analytics/config</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>->>>>>>> @{-1}<loc>https://supabase.com/docs/guides/resources/migrating-to-supabase/amazon-rds</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq>@@ -1950,9 +1671,6 @@</url><url>-<<<<<<< HEAD- <loc>https://supabase.com/docs/guides/self-hosting/analytics/config</loc>-=======<loc>https://supabase.com/docs/guides/self-hosting/realtime/config</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq>@@ -1960,7 +1678,6 @@<url><loc>https://supabase.com/docs/guides/self-hosting/storage/config</loc>->>>>>>> @{-1}<changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -1971,22 +1688,6 @@<changefreq>0.5</changefreq></url>- <url>-<<<<<<< HEAD- <loc>https://supabase.com/docs/guides/self-hosting/realtime/config</loc>- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-- <url>- <loc>https://supabase.com/docs/guides/self-hosting/storage/config</loc>-=======- <loc>https://supabase.com/docs/guides/database/extensions/wrappers/overview</loc>->>>>>>> @{-1}- <changefreq>weekly</changefreq>- <changefreq>0.5</changefreq>- </url>-<url><loc>https://supabase.com/docs/guides/database/extensions/wrappers/overview</loc><changefreq>weekly</changefreq>@@ -5344,4 +5045,4 @@<changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>-</urlset>\ No newline at end of file+</urlset>diff --git a/apps/www/_blog/2023-08-01-react-native-storage.mdx b/apps/www/_blog/2023-08-01-react-native-storage.mdxindex 9cda2894d78..0e4ef0b8dba 100644--- a/apps/www/_blog/2023-08-01-react-native-storage.mdx+++ b/apps/www/_blog/2023-08-01-react-native-storage.mdx@@ -86,14 +86,15 @@ npx create-expo-app@latest cloudApp --template tabs@49# Install dependenciesnpm i @supabase/supabase-js-npm i react-native-url-polyfill base64-arraybuffer react-native-loading-spinner-overlay @react-native-async-storage/async-storage+npm i react-native-url-polyfill base64-arraybuffer react-native-loading-spinner-overlay# Install Expo packages+npx expo install expo-secure-storenpx expo install expo-image-pickernpx expo install expo-file-system```-We will use the [Expo AsyncStorage](https://docs.expo.dev/versions/latest/sdk/async-storage/) to store the Supabase session, and the [Expo Image Picker](https://docs.expo.dev/versions/latest/sdk/imagepicker/) to select images from the device. We also need the [Expo File System](https://docs.expo.dev/versions/latest/sdk/filesystem/) to read the image from the device and upload its data.+We will use the [Expo Secure Store](https://docs.expo.dev/versions/latest/sdk/securestore/) to store the Supabase session, and the [Expo Image Picker](https://docs.expo.dev/versions/latest/sdk/imagepicker/) to select images from the device. We also need the [Expo File System](https://docs.expo.dev/versions/latest/sdk/filesystem/) to read the image from the device and upload its data.You can now already run your project with `npx expo` and then select a platform to run on.@@ -115,24 +116,37 @@ EXPO_PUBLIC_SUPABASE_ANON_KEY=We can now simply read those values from the environment variables and initialize the Supabase client, so create a file at `config/initSupabase.ts` and add the following code:```ts-import AsyncStorage from '@react-native-async-storage/async-storage'+import * as SecureStore from 'expo-secure-store'import 'react-native-url-polyfill/auto'import { createClient } from '@supabase/supabase-js'+// Use a custom secure storage solution for the Supabase client to store the JWT+const ExpoSecureStoreAdapter = {+ getItem: (key: string) => {+ return SecureStore.getItemAsync(key)+ },+ setItem: (key: string, value: string) => {+ SecureStore.setItemAsync(key, value)+ },+ removeItem: (key: string) => {+ SecureStore.deleteItemAsync(key)+ },+}+const url = process.env.EXPO_PUBLIC_SUPABASE_URLconst key = process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY// Initialize the Supabase clientexport const supabase = createClient(url, key, {auth: {- storage: AsyncStorage,+ storage: ExpoSecureStoreAdapter as any,detectSessionInUrl: false,},})```-We are using the AsyncStorage from Expo to handle the session of our Supabase client and add in the `createClient` function.+We are using the SecureStore from Expo to handle the session of our Supabase client and add in the `createClient` function.Later we can import the `supabase` client from this file and use it in our app whenever we need to access Supabase.diff --git a/apps/www/components/AuthWidget/AuthWidgetSection.tsx b/apps/www/components/AuthWidget/AuthWidgetSection.tsxindex 23b750e693d..6d840b80c68 100644--- a/apps/www/components/AuthWidget/AuthWidgetSection.tsx+++ b/apps/www/components/AuthWidget/AuthWidgetSection.tsx@@ -7,7 +7,7 @@ import Image from 'next/image'import { ColorSwatchIcon, MenuIcon } from '@heroicons/react/outline'import { Auth, ThemeSupa } from '@supabase/auth-ui-react'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'const supabase = createClient('https://rsnibhkhsbfnncjmwnkj.supabase.co',@@ -15,7 +15,7 @@ const supabase = createClient()function AuthWidgetSection() {- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const { basePath } = useRouter()const [radius, setRadius] = useState('4px')const [brandColor, setBrandColor] = useState({@@ -84,7 +84,7 @@ function AuthWidgetSection() {<Auth// @ts-ignoresocialLayout={layout}- theme={theme === 'dark' ? 'dark' : 'default'}+ theme={isDarkMode ? 'dark' : 'default'}providers={['google', 'facebook', 'twitter']}supabaseClient={supabase}localization={{diff --git a/apps/www/components/CustomerStories/index.tsx b/apps/www/components/CustomerStories/index.tsxindex b9e44bc1341..c08d20b92cb 100644--- a/apps/www/components/CustomerStories/index.tsx+++ b/apps/www/components/CustomerStories/index.tsx@@ -8,7 +8,8 @@ import TextLink from '../TextLink'const CustomerStories = ({ customerStories }: any) => {const caseStudyThumbs = customerStories.map((blog: PostTypes, idx: number) => {return {- logo: blog.logo_inverse,+ logo: blog.logo,+ logoInverse: blog.logo_inverse,title: blog.title,link: blog.url,}diff --git a/apps/www/components/DarkModeToggle.tsx b/apps/www/components/DarkModeToggle.tsxnew file mode 100644index 00000000000..f8c9ad1abff--- /dev/null+++ b/apps/www/components/DarkModeToggle.tsx@@ -0,0 +1,38 @@+import { useTheme } from 'common/Providers'+import { IconSun, IconMoon } from 'ui'++function DarkModeToggle({ disabled = false }: { disabled?: boolean }) {+ const { isDarkMode, toggleTheme } = useTheme()++ return (+ <div className={`flex items-center ${disabled && 'opacity-30'}`}>+ <IconSun className="text-scale-900" strokeWidth={2} />+ <button+ type="button"+ aria-pressed="false"+ disabled={disabled}+ className={`+ relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent+ transition-colors duration-200 ease-in-out focus:outline-none ${+ isDarkMode ? 'bg-scale-500' : 'bg-scale-900'+ } ${disabled && '!cursor-not-allowed'} mx-5+ `}+ onClick={() => toggleTheme()}+ >+ <span className="sr-only">Toggle Themes</span>+ <span+ aria-hidden="true"+ className={`+ ${+ isDarkMode ? 'translate-x-5' : 'translate-x-0'+ } dark:bg-scale-300 inline-block h-5 w-5+ transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out+ `}+ />+ </button>+ <IconMoon className="text-scale-900" strokeWidth={2} />+ </div>+ )+}++export default DarkModeTogglediff --git a/apps/www/components/Footer/index.tsx b/apps/www/components/Footer/index.tsxindex 20669551d73..634cb862c73 100644--- a/apps/www/components/Footer/index.tsx+++ b/apps/www/components/Footer/index.tsx@@ -1,24 +1,22 @@import FooterLinks from 'data/Footer.json'import SectionContainer from '../Layouts/SectionContainer'+import DarkModeToggle from '../DarkModeToggle'import Link from 'next/link'-import { useTheme } from 'next-themes'-import { Badge, IconChevronRight, TextLink } from 'ui'+import { useTheme } from 'common/Providers'+import { Badge } from 'ui'import Image from 'next/image'import * as supabaseLogoWordmarkDark from 'common/assets/images/supabase-logo-wordmark--dark.png'import * as supabaseLogoWordmarkLight from 'common/assets/images/supabase-logo-wordmark--light.png'import { useRouter } from 'next/router'import { Fragment } from 'react'-import ThemeToggle from '@ui/components/ThemeProvider/ThemeToggle'-import { CheckIcon } from '@heroicons/react/outline'interface Props {className?: string}const Footer = (props: Props) => {- const { resolvedTheme } = useTheme()+ const { isDarkMode } = useTheme()const { pathname } = useRouter()-const isLaunchWeekPage = pathname.includes('launch-week') || pathname === '/'return (@@ -29,27 +27,6 @@ const Footer = (props: Props) => {<h2 id="footerHeading" className="sr-only">Footer</h2>- <div className="w-full !py-0 border-b">- <SectionContainer className="grid grid-cols-2 md:flex items-center justify-between md:justify-center gap-8 md:gap-10 !py-6 md:!py-10 text-sm">- <div className="flex flex-col md:flex-row gap-2 md:items-center">- We protect your data.- <Link href="/security">- <a className="text-brand hover:underline">More on Security</a>- </Link>- </div>- <span className="hidden md:block h-px w-8 bg-border" />- <ul className="flex flex-col md:flex-row gap-2 md:gap-8 justify-center md:items-center">- <li className="flex items-center gap-2">- <CheckIcon className="w-4 h-4" /> SOC2 Type 2{' '}- <span className="text-lighter">Certified</span>- </li>- <li className="flex items-center gap-2">- <CheckIcon className="w-4 h-4" /> HIPAA{' '}- <span className="text-lighter">Compliant</span>- </li>- </ul>- </SectionContainer>- </div><SectionContainer><div className="xl:grid xl:grid-cols-3 xl:gap-8"><div className="space-y-8 xl:col-span-1">@@ -59,7 +36,7 @@ const Footer = (props: Props) => {src={isLaunchWeekPage? supabaseLogoWordmarkDark- : resolvedTheme === 'dark'+ : isDarkMode? supabaseLogoWordmarkDark: supabaseLogoWordmarkLight}@@ -172,7 +149,7 @@ const Footer = (props: Props) => {</div><div className="border-scale-500 dark:border-scale-600 mt-32 flex justify-between border-t pt-8"><small className="small">© Supabase Inc</small>- <ThemeToggle forceDark={isLaunchWeekPage} />+ <DarkModeToggle disabled={isLaunchWeekPage} /></div></SectionContainer></footer>diff --git a/apps/www/components/Globe.tsx b/apps/www/components/Globe.tsxindex affbaae761e..8cf57e7ff59 100644--- a/apps/www/components/Globe.tsx+++ b/apps/www/components/Globe.tsx@@ -1,9 +1,9 @@import createGlobe from 'cobe'import { useEffect, useRef } from 'react'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'const Globe = () => {- const { resolvedTheme } = useTheme()+ const { isDarkMode } = useTheme()const canvasRef = useRef<any>()useEffect(() => {@@ -18,7 +18,7 @@ const Globe = () => {height: width * 2,phi: 0,theta: 0.3,- dark: resolvedTheme === 'dark' ? 1 : 0,+ dark: isDarkMode ? 1 : 0,diffuse: 3,scale: 1,opacity: 0.8,@@ -55,7 +55,7 @@ const Globe = () => {cobe.destroy()window.removeEventListener('resize', onResize)}- }, [resolvedTheme])+ }, [isDarkMode])return (<canvasdiff --git a/apps/www/components/Nav/index.tsx b/apps/www/components/Nav/index.tsxindex 9c0d69b725b..ac2f75dfdc2 100644--- a/apps/www/components/Nav/index.tsx+++ b/apps/www/components/Nav/index.tsx@@ -13,15 +13,14 @@ import Developers from '~/components/Nav/Developers'import ScrollProgress from '~/components/ScrollProgress'-import { useIsLoggedIn, useIsUserLoading } from 'common'-import { useTheme } from 'next-themes'+import { useIsLoggedIn, useIsUserLoading, useTheme } from 'common'import TextLink from '../TextLink'import Image from 'next/image'import * as supabaseLogoWordmarkDark from 'common/assets/images/supabase-logo-wordmark--dark.png'import * as supabaseLogoWordmarkLight from 'common/assets/images/supabase-logo-wordmark--light.png'const Nav = () => {- const { theme, resolvedTheme } = useTheme()+ const { isDarkMode } = useTheme()const router = useRouter()const [open, setOpen] = useState(false)const [openProduct, setOpenProduct] = useState(false)@@ -172,7 +171,7 @@ const Nav = () => {border-transparentpx-1text-sm font-medium- text-scale-1200 transition-colors`,+ transition-colors`,showLaunchWeekNavMode && '!text-white',props.active ? 'text-brand' : 'hover:text-brand',props.active,@@ -226,11 +225,7 @@ const Nav = () => {<Link href="/" as="/"><a className="block w-auto h-6"><Image- src={- isLaunchWeekPage || resolvedTheme === 'dark' || isHomePage- ? supabaseLogoWordmarkDark- : supabaseLogoWordmarkLight- }+ src={isDarkMode ? supabaseLogoWordmarkDark : supabaseLogoWordmarkLight}width={124}height={24}alt="Supabase Logo"diff --git a/apps/www/components/OpenSource/OSSHero.tsx b/apps/www/components/OpenSource/OSSHero.tsxindex 56ddbd858a7..4c2c26adf8d 100644--- a/apps/www/components/OpenSource/OSSHero.tsx+++ b/apps/www/components/OpenSource/OSSHero.tsx@@ -1,8 +1,7 @@import React from 'react'import { motion } from 'framer-motion'import { useWindowSize } from 'react-use'-import { useBreakpoint } from 'common'-import { useTheme } from 'next-themes'+import { useBreakpoint, useTheme } from 'common'import { cn } from 'ui'import styles from './hero.module.css'@@ -30,12 +29,12 @@ const OSSHero = () => ()const HeroGrid = () => {- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const { width } = useWindowSize()const isSm = useBreakpoint(640)const svgGridOptions = {- color: theme === 'dark' ? '#00d4ad' : '#015a42',+ color: isDarkMode ? '#00d4ad' : '#015a42',boxWidth: width ? width * 7 : 7500,boxHeight: width ? width * 5 : 6000,xLines: isSm ? 20 : 49,diff --git a/apps/www/components/Pricing/ComputePricingModal.tsx b/apps/www/components/Pricing/ComputePricingModal.tsxindex f9fd1de21ee..4da3e700122 100644--- a/apps/www/components/Pricing/ComputePricingModal.tsx+++ b/apps/www/components/Pricing/ComputePricingModal.tsx@@ -1,6 +1,6 @@import React, { Fragment, useMemo } from 'react'import { useRouter } from 'next/router'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import { IconXCircle, Modal } from 'ui'import pricingAddOn from '~/data/PricingAddOnTable.json'import { IconPricingIncludedCheck, IconPricingMinus } from './PricingIcons'@@ -13,7 +13,7 @@ interface Props {export default function ComputePricingModal({ showComputeModal, setShowComputeModal }: Props) {const { basePath } = useRouter()- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const columnNames = useMemo(() =>pricingAddOn.database.rows.map((row) =>@@ -41,7 +41,7 @@ export default function ComputePricingModal({ showComputeModal, setShowComputeMo<imgclassName="w-6"src={`${basePath}/images/pricing/compute-upgrade${- theme === 'dark' ? '-green' : ''+ isDarkMode ? '-green' : ''}.svg`}/></div>diff --git a/apps/www/components/Products/VectorAI/CustomersVisual.tsx b/apps/www/components/Products/VectorAI/CustomersVisual.tsxindex dc8656af707..f69a7a5bd0c 100644--- a/apps/www/components/Products/VectorAI/CustomersVisual.tsx+++ b/apps/www/components/Products/VectorAI/CustomersVisual.tsx@@ -1,10 +1,10 @@import React, { useRef } from 'react'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import { LazyMotion, domAnimation, m, motion, useInView } from 'framer-motion'import { DEFAULT_EASE, INITIAL_BOTTOM, getAnimation } from '~/lib/animations'const CustomersVisual = () => {- const { resolvedTheme } = useTheme()+ const { isDarkMode } = useTheme()const ref = useRef<any>()const isInView = useInView(ref, { margin: '-25%', once: true })@@ -17,7 +17,7 @@ const CustomersVisual = () => {className="absolute inset-0 mx-auto aspect-[5.13/1] h-full z-10"style={{background: `radial-gradient(50% 50% at 50% 50%, transparent, ${- resolvedTheme === 'dark' ? 'var(--colors-scale1)' : 'var(--colors-scale3)'+ isDarkMode ? 'var(--colors-scale1)' : 'var(--colors-scale3)'})`,}}/>@@ -63,7 +63,7 @@ const CustomersVisual = () => {cy="151.574"rx="271.124"ry="82.5656"- fill={resolvedTheme === 'dark' ? '#161616' : '#F1F3F5'}+ fill={isDarkMode ? '#161616' : '#F1F3F5'}/></g><path@@ -102,13 +102,13 @@ const CustomersVisual = () => {<g filter="url(#filter2_f_4353_100693)"><pathd="M930.203 82.036C914.556 60.4668 890.905 48.1616 865.905 48.1616H865.057C840.76 48.1616 817.7 60.0178 802.035 80.564C818.898 64.5075 841.409 55.49 864.944 55.49H865.882C890.122 55.49 913.214 65.1309 930.203 82.036Z"- fill={resolvedTheme === 'dark' ? '#1EC77C' : '#2AB377'}+ fill={isDarkMode ? '#1EC77C' : '#2AB377'}/></g><g filter="url(#filter3_f_4353_100693)"><pathd="M944.969 69.0081C925.715 47.439 896.616 35.1338 865.854 35.1338H864.811C834.915 35.1338 806.542 46.99 787.268 67.5362C808.016 51.4797 835.714 39.2051 864.673 39.2051H865.826C895.651 39.2051 924.064 52.1031 944.969 69.0081Z"- fill={resolvedTheme === 'dark' ? '#232323' : '#E1E1E1'}+ fill={isDarkMode ? '#232323' : '#E1E1E1'}/></g>{/* logo bg rays */}@@ -244,7 +244,7 @@ const CustomersVisual = () => {rx="303.093"ry="68.9323"transform="matrix(1 -0.000779452 -0.000779452 -1 562 296.168)"- fill={resolvedTheme === 'dark' ? '#161616' : '#F1F3F5'}+ fill={isDarkMode ? '#161616' : '#F1F3F5'}/></g>{/* coordinates */}@@ -456,17 +456,13 @@ const CustomersVisual = () => {gradientUnits="userSpaceOnUse"gradientTransform="translate(859.159 138.208) rotate(92.2122) scale(263.179 749.441)">- <stop stopColor={resolvedTheme === 'dark' ? '#161616' : '#F2F4F6'} stopOpacity="0" />+ <stop stopColor={isDarkMode ? '#161616' : '#F2F4F6'} stopOpacity="0" /><stopoffset="0.489999"- stopColor={resolvedTheme === 'dark' ? '#414141' : '#5F5F5F'}+ stopColor={isDarkMode ? '#414141' : '#5F5F5F'}stopOpacity="0.84"/>- <stop- offset="1"- stopColor={resolvedTheme === 'dark' ? '#171717' : '#F2F4F6'}- stopOpacity="0"- />+ <stop offset="1" stopColor={isDarkMode ? '#171717' : '#F2F4F6'} stopOpacity="0" /></radialGradient><radialGradientid="paint1_radial_4353_100693"@@ -476,17 +472,13 @@ const CustomersVisual = () => {gradientUnits="userSpaceOnUse"gradientTransform="translate(859.159 136.974) rotate(-103.238) scale(44.3621 730.071)">- <stop stopColor={resolvedTheme === 'dark' ? '#161616' : '#F2F4F6'} stopOpacity="0" />+ <stop stopColor={isDarkMode ? '#161616' : '#F2F4F6'} stopOpacity="0" /><stopoffset="0.489999"- stopColor={resolvedTheme === 'dark' ? '#414141' : '#5F5F5F'}+ stopColor={isDarkMode ? '#414141' : '#5F5F5F'}stopOpacity="0.84"/>- <stop- offset="1"- stopColor={resolvedTheme === 'dark' ? '#171717' : '#F2F4F6'}- stopOpacity="0"- />+ <stop offset="1" stopColor={isDarkMode ? '#171717' : '#F2F4F6'} stopOpacity="0" /></radialGradient><radialGradientid="paint2_radial_4353_100693"@@ -496,17 +488,13 @@ const CustomersVisual = () => {gradientUnits="userSpaceOnUse"gradientTransform="translate(863.122 127.579) rotate(-92.6074) scale(137.882 462.616)">- <stop stopColor={resolvedTheme === 'dark' ? '#161616' : '#F2F4F6'} stopOpacity="0" />+ <stop stopColor={isDarkMode ? '#161616' : '#F2F4F6'} stopOpacity="0" /><stopoffset="0.489999"- stopColor={resolvedTheme === 'dark' ? '#414141' : '#5F5F5F'}+ stopColor={isDarkMode ? '#414141' : '#5F5F5F'}stopOpacity="0.84"/>- <stop- offset="1"- stopColor={resolvedTheme === 'dark' ? '#171717' : '#F2F4F6'}- stopOpacity="0"- />+ <stop offset="1" stopColor={isDarkMode ? '#171717' : '#F2F4F6'} stopOpacity="0" /></radialGradient><radialGradientid="paint3_radial_4353_100693"@@ -516,17 +504,13 @@ const CustomersVisual = () => {gradientUnits="userSpaceOnUse"gradientTransform="translate(861.752 133.22) rotate(-90) scale(115.815 675.283)">- <stop stopColor={resolvedTheme === 'dark' ? '#161616' : '#F2F4F6'} stopOpacity="0" />+ <stop stopColor={isDarkMode ? '#161616' : '#F2F4F6'} stopOpacity="0" /><stopoffset="0.592292"- stopColor={resolvedTheme === 'dark' ? '#414141' : '#5F5F5F'}+ stopColor={isDarkMode ? '#414141' : '#5F5F5F'}stopOpacity="0.84"/>- <stop- offset="1"- stopColor={resolvedTheme === 'dark' ? '#171717' : '#F2F4F6'}- stopOpacity="0"- />+ <stop offset="1" stopColor={isDarkMode ? '#171717' : '#F2F4F6'} stopOpacity="0" /></radialGradient><radialGradientid="paint4_radial_4353_100693"@@ -536,17 +520,13 @@ const CustomersVisual = () => {gradientUnits="userSpaceOnUse"gradientTransform="translate(862.511 138.502) rotate(105.433) scale(25.8224 489.043)">- <stop stopColor={resolvedTheme === 'dark' ? '#161616' : '#F2F4F6'} stopOpacity="0" />+ <stop stopColor={isDarkMode ? '#161616' : '#F2F4F6'} stopOpacity="0" /><stopoffset="0.489999"- stopColor={resolvedTheme === 'dark' ? '#414141' : '#A3A3A3'}+ stopColor={isDarkMode ? '#414141' : '#A3A3A3'}stopOpacity="0.84"/>- <stop- offset="1"- stopColor={resolvedTheme === 'dark' ? '#171717' : '#F2F4F6'}- stopOpacity="0"- />+ <stop offset="1" stopColor={isDarkMode ? '#171717' : '#F2F4F6'} stopOpacity="0" /></radialGradient><radialGradientid="paint5_radial_4353_100693"@@ -556,8 +536,8 @@ const CustomersVisual = () => {gradientUnits="userSpaceOnUse"gradientTransform="translate(862.32 54.7715) rotate(90) scale(193.44 193.44)">- <stop stopColor={resolvedTheme === 'dark' ? '#161616' : '#ffffff'} />- <stop offset="1" stopColor={resolvedTheme === 'dark' ? '#161616' : '#F1F3F500'} />+ <stop stopColor={isDarkMode ? '#161616' : '#ffffff'} />+ <stop offset="1" stopColor={isDarkMode ? '#161616' : '#F1F3F500'} /></radialGradient><motion.linearGradientanimate={{@@ -576,11 +556,7 @@ const CustomersVisual = () => {gradientUnits="userSpaceOnUse"><stop stopColor="transparent" stopOpacity="0" />- <stop- offset="0.5"- stopColor={resolvedTheme === 'dark' ? '#60e7aa' : '#096e40'}- stopOpacity="0.6"- />+ <stop offset="0.5" stopColor={isDarkMode ? '#60e7aa' : '#096e40'} stopOpacity="0.6" /><stop offset="1" stopColor="transparent" stopOpacity="0" /></motion.linearGradient><linearGradient@@ -592,7 +568,7 @@ const CustomersVisual = () => {gradientUnits="userSpaceOnUse"><stop stopColor="#3DCB8C" />- <stop offset="1" stopColor={resolvedTheme === 'dark' ? '#171717' : '#F1F3F5'} />+ <stop offset="1" stopColor={isDarkMode ? '#171717' : '#F1F3F5'} /></linearGradient><linearGradientid="paint7_linear_4353_100693"@@ -604,11 +580,11 @@ const CustomersVisual = () => {><stopoffset="0.331593"- stopColor={resolvedTheme === 'dark' ? '#151515' : '#EAE8E9'}+ stopColor={isDarkMode ? '#151515' : '#EAE8E9'}stopOpacity="0"/>- <stop offset="0.594681" stopColor={resolvedTheme === 'dark' ? '#A3A3A3' : '#636363'} />- <stop offset="1" stopColor={resolvedTheme === 'dark' ? '#171717' : '#F2F4F6'} />+ <stop offset="0.594681" stopColor={isDarkMode ? '#A3A3A3' : '#636363'} />+ <stop offset="1" stopColor={isDarkMode ? '#171717' : '#F2F4F6'} /></linearGradient><linearGradientid="paint8_linear_4353_100693"@@ -618,9 +594,9 @@ const CustomersVisual = () => {y2="236.32"gradientUnits="userSpaceOnUse">- <stop offset="0.0114691" stopColor={resolvedTheme === 'dark' ? '#171717' : '#F1F3F5'} />+ <stop offset="0.0114691" stopColor={isDarkMode ? '#171717' : '#F1F3F5'} /><stop offset="0.540433" stopColor="#3DCB8C" />- <stop offset="1" stopColor={resolvedTheme === 'dark' ? '#161616' : '#F1F3F5'} />+ <stop offset="1" stopColor={isDarkMode ? '#161616' : '#F1F3F5'} /></linearGradient><linearGradientid="paint9_linear_4353_100693"@@ -641,13 +617,9 @@ const CustomersVisual = () => {gradientUnits="userSpaceOnUse"gradientTransform="translate(864.407 138.314) rotate(90) scale(55.0818)">- <stop stopColor={resolvedTheme === 'dark' ? '#343434' : '#C7C8C8'} stopOpacity="0" />- <stop offset="0.522658" stopColor={resolvedTheme === 'dark' ? '#212121' : '#D3D3D3'} />- <stop- offset="1"- stopColor={resolvedTheme === 'dark' ? '#232323' : '#CFD1D1'}- stopOpacity="0"- />+ <stop stopColor={isDarkMode ? '#343434' : '#C7C8C8'} stopOpacity="0" />+ <stop offset="0.522658" stopColor={isDarkMode ? '#212121' : '#D3D3D3'} />+ <stop offset="1" stopColor={isDarkMode ? '#232323' : '#CFD1D1'} stopOpacity="0" /></radialGradient><linearGradientid="paint11_linear_4353_100693"@@ -657,12 +629,8 @@ const CustomersVisual = () => {y2="163.315"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? '#E2E2E2' : '#B1AFAF'} />- <stop- offset="1"- stopColor={resolvedTheme === 'dark' ? '#202020' : '#F2F2F2'}- stopOpacity="0.29"- />+ <stop stopColor={isDarkMode ? '#E2E2E2' : '#B1AFAF'} />+ <stop offset="1" stopColor={isDarkMode ? '#202020' : '#F2F2F2'} stopOpacity="0.29" /></linearGradient><linearGradientid="paint12_linear_4353_100693"@@ -672,7 +640,7 @@ const CustomersVisual = () => {y2="163.788"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? 'white' : '#151515'} />+ <stop stopColor={isDarkMode ? 'white' : '#151515'} /><stop offset="1" stopColor="#4D4D4D" stopOpacity="0" /></linearGradient><linearGradient@@ -683,12 +651,8 @@ const CustomersVisual = () => {y2="105.061"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#333333'} />- <stop- offset="0.3125"- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}- stopOpacity="0"- />+ <stop stopColor={isDarkMode ? '#BFBFBF' : '#333333'} />+ <stop offset="0.3125" stopColor={isDarkMode ? '#232323' : 'white'} stopOpacity="0" /></linearGradient><linearGradientid="paint14_linear_4353_100693"@@ -698,12 +662,8 @@ const CustomersVisual = () => {y2="105.061"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#333333'} />- <stop- offset="0.3125"- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}- stopOpacity="0"- />+ <stop stopColor={isDarkMode ? '#BFBFBF' : '#333333'} />+ <stop offset="0.3125" stopColor={isDarkMode ? '#232323' : 'white'} stopOpacity="0" /></linearGradient><linearGradientid="paint15_linear_4353_100693"@@ -713,12 +673,8 @@ const CustomersVisual = () => {y2="105.061"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#333333'} />- <stop- offset="0.3125"- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}- stopOpacity="0"- />+ <stop stopColor={isDarkMode ? '#BFBFBF' : '#333333'} />+ <stop offset="0.3125" stopColor={isDarkMode ? '#232323' : 'white'} stopOpacity="0" /></linearGradient><linearGradientid="paint16_linear_4353_100693"@@ -728,12 +684,8 @@ const CustomersVisual = () => {y2="105.061"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#333333'} />- <stop- offset="0.3125"- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}- stopOpacity="0"- />+ <stop stopColor={isDarkMode ? '#BFBFBF' : '#333333'} />+ <stop offset="0.3125" stopColor={isDarkMode ? '#232323' : 'white'} stopOpacity="0" /></linearGradient><linearGradientid="paint17_linear_4353_100693"@@ -743,12 +695,8 @@ const CustomersVisual = () => {y2="105.061"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#A4A4A4'} />- <stop- offset="0.3125"- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}- stopOpacity="0"- />+ <stop stopColor={isDarkMode ? '#BFBFBF' : '#A4A4A4'} />+ <stop offset="0.3125" stopColor={isDarkMode ? '#232323' : 'white'} stopOpacity="0" /></linearGradient><linearGradientid="paint18_linear_4353_100693"@@ -758,12 +706,8 @@ const CustomersVisual = () => {y2="105.061"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#A4A4A4'} />- <stop- offset="0.3125"- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}- stopOpacity="0"- />+ <stop stopColor={isDarkMode ? '#BFBFBF' : '#A4A4A4'} />+ <stop offset="0.3125" stopColor={isDarkMode ? '#232323' : 'white'} stopOpacity="0" /></linearGradient><linearGradientid="paint19_linear_4353_100693"@@ -773,12 +717,8 @@ const CustomersVisual = () => {y2="105.061"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#A4A4A4'} />- <stop- offset="0.3125"- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}- stopOpacity="0"- />+ <stop stopColor={isDarkMode ? '#BFBFBF' : '#A4A4A4'} />+ <stop offset="0.3125" stopColor={isDarkMode ? '#232323' : 'white'} stopOpacity="0" /></linearGradient><linearGradientid="paint20_linear_4353_100693"@@ -788,12 +728,8 @@ const CustomersVisual = () => {y2="105.061"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? '#BFBFBF' : '#A4A4A4'} />- <stop- offset="0.3125"- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}- stopOpacity="0"- />+ <stop stopColor={isDarkMode ? '#BFBFBF' : '#A4A4A4'} />+ <stop offset="0.3125" stopColor={isDarkMode ? '#232323' : 'white'} stopOpacity="0" /></linearGradient><linearGradientid="paint21_linear_4353_100693"@@ -803,12 +739,8 @@ const CustomersVisual = () => {y2="105.061"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? '#00FF8E' : '#727272'} />- <stop- offset="0.15625"- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}- stopOpacity="0"- />+ <stop stopColor={isDarkMode ? '#00FF8E' : '#727272'} />+ <stop offset="0.15625" stopColor={isDarkMode ? '#232323' : 'white'} stopOpacity="0" /></linearGradient><linearGradientid="paint22_linear_4353_100693"@@ -818,12 +750,8 @@ const CustomersVisual = () => {y2="105.061"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? 'white' : '#757575'} />- <stop- offset="0.15625"- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}- stopOpacity="0"- />+ <stop stopColor={isDarkMode ? 'white' : '#757575'} />+ <stop offset="0.15625" stopColor={isDarkMode ? '#232323' : 'white'} stopOpacity="0" /></linearGradient><linearGradientid="paint23_linear_4353_100693"@@ -833,12 +761,8 @@ const CustomersVisual = () => {y2="105.061"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? 'white' : '#757575'} />- <stop- offset="0.15625"- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}- stopOpacity="0"- />+ <stop stopColor={isDarkMode ? 'white' : '#757575'} />+ <stop offset="0.15625" stopColor={isDarkMode ? '#232323' : 'white'} stopOpacity="0" /></linearGradient><linearGradientid="paint24_linear_4353_100693"@@ -848,12 +772,8 @@ const CustomersVisual = () => {y2="105.061"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? 'white' : '#757575'} />- <stop- offset="0.15625"- stopColor={resolvedTheme === 'dark' ? '#232323' : 'white'}- stopOpacity="0"- />+ <stop stopColor={isDarkMode ? 'white' : '#757575'} />+ <stop offset="0.15625" stopColor={isDarkMode ? '#232323' : 'white'} stopOpacity="0" /></linearGradient><linearGradientid="paint25_linear_4353_100693"@@ -863,12 +783,8 @@ const CustomersVisual = () => {y2="94.3999"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#0c0c0c'} />- <stop- offset="1"- stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#002313'}- stopOpacity="1"- />+ <stop stopColor={isDarkMode ? '#49FFAA' : '#0c0c0c'} />+ <stop offset="1" stopColor={isDarkMode ? '#49FFAA' : '#002313'} stopOpacity="1" /></linearGradient><linearGradientid="paint26_linear_4353_100693"@@ -878,12 +794,8 @@ const CustomersVisual = () => {y2="203.949"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#3D4943'} />- <stop- offset="1"- stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#002313'}- stopOpacity="1"- />+ <stop stopColor={isDarkMode ? '#49FFAA' : '#3D4943'} />+ <stop offset="1" stopColor={isDarkMode ? '#49FFAA' : '#002313'} stopOpacity="1" /></linearGradient><linearGradientid="paint27_linear_4353_100693"@@ -893,12 +805,8 @@ const CustomersVisual = () => {y2="185.046"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#1a1a1a'} />- <stop- offset="1"- stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#002313'}- stopOpacity="1"- />+ <stop stopColor={isDarkMode ? '#49FFAA' : '#1a1a1a'} />+ <stop offset="1" stopColor={isDarkMode ? '#49FFAA' : '#002313'} stopOpacity="1" /></linearGradient><linearGradientid="paint28_linear_4353_100693"@@ -908,12 +816,8 @@ const CustomersVisual = () => {y2="237.781"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#3D4943'} />- <stop- offset="1"- stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#002313'}- stopOpacity="1"- />+ <stop stopColor={isDarkMode ? '#49FFAA' : '#3D4943'} />+ <stop offset="1" stopColor={isDarkMode ? '#49FFAA' : '#002313'} stopOpacity="1" /></linearGradient><linearGradientid="paint29_linear_4353_100693"@@ -923,12 +827,8 @@ const CustomersVisual = () => {y2="74.8884"gradientUnits="userSpaceOnUse">- <stop stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#3D4943'} />- <stop- offset="1"- stopColor={resolvedTheme === 'dark' ? '#49FFAA' : '#002313'}- stopOpacity="1"- />+ <stop stopColor={isDarkMode ? '#49FFAA' : '#3D4943'} />+ <stop offset="1" stopColor={isDarkMode ? '#49FFAA' : '#002313'} stopOpacity="1" /></linearGradient></defs></m.svg>diff --git a/apps/www/components/Products/VectorAI/DeployGlobally.tsx b/apps/www/components/Products/VectorAI/DeployGlobally.tsxindex 3bbaf9bb6de..2077b88c6a7 100644--- a/apps/www/components/Products/VectorAI/DeployGlobally.tsx+++ b/apps/www/components/Products/VectorAI/DeployGlobally.tsx@@ -1,5 +1,5 @@import React from 'react'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'function getRandomNumber(min: number, max: number) {var range = max - min@@ -9,12 +9,12 @@ function getRandomNumber(min: number, max: number) {}const DeployGlobally = ({ isHovered }: { isHovered: boolean }) => {- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const ref = React.useRef<any>()const states = ['1', '2', '3']const colors = {- green: theme === 'dark' ? '#1CF7C3' : '#00B99F',- gray: theme === 'dark' ? '#151918' : '#D3D3D3',+ green: isDarkMode ? '#1CF7C3' : '#00B99F',+ gray: isDarkMode ? '#151918' : '#D3D3D3',}const transitionDuration = 250diff --git a/apps/www/components/Products/VectorAI/IntegrationsImage.tsx b/apps/www/components/Products/VectorAI/IntegrationsImage.tsxindex f10db48597a..3b26736db09 100644--- a/apps/www/components/Products/VectorAI/IntegrationsImage.tsx+++ b/apps/www/components/Products/VectorAI/IntegrationsImage.tsx@@ -1,12 +1,12 @@import React, { useRef } from 'react'import Image from 'next/image'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import { LazyMotion, domAnimation, m, useInView } from 'framer-motion'import { INITIAL_BOTTOM, getAnimation } from '~/lib/animations'import { useBreakpoint } from 'common'const IntegrationsImage = () => {- const { resolvedTheme } = useTheme()+ const { isDarkMode } = useTheme()const isMobile = useBreakpoint(767)const ref = useRef(null)const isInView = useInView(ref, { margin: '-25%', once: true })@@ -16,10 +16,9 @@ const IntegrationsImage = () => {console.log('ismobile', isMobile)- const image =- resolvedTheme === 'dark'- ? `/images/product/vector/vector-tools-dark${isMobile ? '-mobile' : ''}.svg`- : `/images/product/vector/vector-tools-light${isMobile ? '-mobile' : ''}.svg`+ const image = isDarkMode+ ? `/images/product/vector/vector-tools-dark${isMobile ? '-mobile' : ''}.svg`+ : `/images/product/vector/vector-tools-light${isMobile ? '-mobile' : ''}.svg`return (<LazyMotion features={domAnimation}>diff --git a/apps/www/components/Products/VectorAI/OpenAIImage.tsx b/apps/www/components/Products/VectorAI/OpenAIImage.tsxindex b28b4944411..66771b7c422 100644--- a/apps/www/components/Products/VectorAI/OpenAIImage.tsx+++ b/apps/www/components/Products/VectorAI/OpenAIImage.tsx@@ -1,10 +1,10 @@import Image from 'next/image'import React from 'react'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import { LazyMotion, domAnimation, m, useInView } from 'framer-motion'const OpenAIImage = ({ isHovered }: { isHovered: boolean }) => {- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const lineVariants = {animate: {@@ -23,17 +23,17 @@ const OpenAIImage = ({ isHovered }: { isHovered: boolean }) => {}const colors = {- glow: theme === 'dark' ? '#009C77' : '#00FFD9',- rectStart: theme === 'dark' ? '#17FDDF' : '#49615E',- rectEnd: theme === 'dark' ? '#10FFE0' : '#202020',- cardBgStart: theme === 'dark' ? '#171717' : 'white',- cardBgEnd: theme === 'dark' ? '#171717' : 'white',- openAIStart: theme === 'dark' ? '#89FFCA' : '#4FD7B6',- openAIEnd: theme === 'dark' ? '#D0FAE6' : '#4F7362',- openAIStrokeStart: theme === 'dark' ? '#A5FFD6' : '#5F5F5F',- openAIStrokeEnd: theme === 'dark' ? '#D0FAE6' : '#D6D6D6',- openAIAltStart: theme === 'dark' ? '#00DBA7' : '#00DBA7',- openAIAltEnd: theme === 'dark' ? '#171717' : '#DFDFDF',+ glow: isDarkMode ? '#009C77' : '#00FFD9',+ rectStart: isDarkMode ? '#17FDDF' : '#49615E',+ rectEnd: isDarkMode ? '#10FFE0' : '#202020',+ cardBgStart: isDarkMode ? '#171717' : 'white',+ cardBgEnd: isDarkMode ? '#171717' : 'white',+ openAIStart: isDarkMode ? '#89FFCA' : '#4FD7B6',+ openAIEnd: isDarkMode ? '#D0FAE6' : '#4F7362',+ openAIStrokeStart: isDarkMode ? '#A5FFD6' : '#5F5F5F',+ openAIStrokeEnd: isDarkMode ? '#D0FAE6' : '#D6D6D6',+ openAIAltStart: isDarkMode ? '#00DBA7' : '#00DBA7',+ openAIAltEnd: isDarkMode ? '#171717' : '#DFDFDF',}return (@@ -41,7 +41,7 @@ const OpenAIImage = ({ isHovered }: { isHovered: boolean }) => {<div className="w-[44%] h-[44%] -translate-x-[2px] absolute z-10 inset-0 top-auto bottom-[16%] m-auto"><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/product/vector/openai-logo-dark.png': '/images/product/vector/openai-logo-light.png'}diff --git a/apps/www/components/Products/VectorAI/PGvectorImg.tsx b/apps/www/components/Products/VectorAI/PGvectorImg.tsxindex 363b73e6881..3429d0601d5 100644--- a/apps/www/components/Products/VectorAI/PGvectorImg.tsx+++ b/apps/www/components/Products/VectorAI/PGvectorImg.tsx@@ -1,27 +1,27 @@import React, { useEffect, useRef } from 'react'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import { DEFAULT_EASE } from '~/lib/animations'import { LazyMotion, domAnimation, m } from 'framer-motion'const PGvectorImg = ({ isHovered }: { isHovered: boolean }) => {- const { resolvedTheme } = useTheme()+ const { isDarkMode } = useTheme()const svgRef = useRef<any>()const colors = {- circles1: resolvedTheme === 'dark' ? '#105C3B' : '#008B4F',- circles2: resolvedTheme === 'dark' ? '#1A2520' : '#DDDFDE',- pgLogoStart: resolvedTheme === 'dark' ? '#70F8BB' : '#7CDBC5',- pgLogoEnd: resolvedTheme === 'dark' ? '#A3A3A3' : '#006136',- pgLogoBg: resolvedTheme === 'dark' ? '#161616' : 'white',- radialBgStart: resolvedTheme === 'dark' ? '#131313' : '#F1F3F5',- radialBgEnd: resolvedTheme === 'dark' ? '#161616' : '#F8F9FA',- coordinatesStart: resolvedTheme === 'dark' ? '#23FF98' : '#002313',- coordinatesEnd: resolvedTheme === 'dark' ? '#49FFAA' : '#032C18',- rectStart: resolvedTheme === 'dark' ? '#17FDDF' : '#49615E',- rectEnd: resolvedTheme === 'dark' ? '#10FFE0' : '#202020',- arrow: resolvedTheme === 'dark' ? '#02FF8F' : '#00542F',- asdfStart: resolvedTheme === 'dark' ? '#23FF98' : '#002313',- asdfEnd: resolvedTheme === 'dark' ? '#49FFAA' : '#032C18',+ circles1: isDarkMode ? '#105C3B' : '#008B4F',+ circles2: isDarkMode ? '#1A2520' : '#DDDFDE',+ pgLogoStart: isDarkMode ? '#70F8BB' : '#7CDBC5',+ pgLogoEnd: isDarkMode ? '#A3A3A3' : '#006136',+ pgLogoBg: isDarkMode ? '#161616' : 'white',+ radialBgStart: isDarkMode ? '#131313' : '#F1F3F5',+ radialBgEnd: isDarkMode ? '#161616' : '#F8F9FA',+ coordinatesStart: isDarkMode ? '#23FF98' : '#002313',+ coordinatesEnd: isDarkMode ? '#49FFAA' : '#032C18',+ rectStart: isDarkMode ? '#17FDDF' : '#49615E',+ rectEnd: isDarkMode ? '#10FFE0' : '#202020',+ arrow: isDarkMode ? '#02FF8F' : '#00542F',+ asdfStart: isDarkMode ? '#23FF98' : '#002313',+ asdfEnd: isDarkMode ? '#49FFAA' : '#032C18',}const transition = (type: string) => ({diff --git a/apps/www/components/Products/VectorAI/SecureAndScalableImg.tsx b/apps/www/components/Products/VectorAI/SecureAndScalableImg.tsxindex 17079bdfafe..efdb757d261 100644--- a/apps/www/components/Products/VectorAI/SecureAndScalableImg.tsx+++ b/apps/www/components/Products/VectorAI/SecureAndScalableImg.tsx@@ -1,19 +1,19 @@import React, { useEffect, useRef } from 'react'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import { DEFAULT_EASE } from '~/lib/animations'const SecureAndScalableImg = ({ isHovered }: { isHovered: boolean }) => {- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const shieldsRef = useRef<any>()const mainRef = useRef<any>()const colors = {- shieldsStroke: theme === 'dark' ? '#494949' : '#D5D5D5',- cardBg: theme === 'dark' ? '#161616' : '#F8F9FA',- bgGlow: theme === 'dark' ? '#009C77' : '#00FFD9',- iconBg: theme === 'dark' ? '#112B25' : '#DCDCDC',- smallIcon: theme === 'dark' ? '#1DF7C3' : '#00826A',- cardLine: theme === 'dark' ? '#1DF7C3' : '#00826A',+ shieldsStroke: isDarkMode ? '#494949' : '#D5D5D5',+ cardBg: isDarkMode ? '#161616' : '#F8F9FA',+ bgGlow: isDarkMode ? '#009C77' : '#00FFD9',+ iconBg: isDarkMode ? '#112B25' : '#DCDCDC',+ smallIcon: isDarkMode ? '#1DF7C3' : '#00826A',+ cardLine: isDarkMode ? '#1DF7C3' : '#00826A',}useEffect(() => {@@ -142,13 +142,13 @@ const SecureAndScalableImg = ({ isHovered }: { isHovered: boolean }) => {/><pathd="M90.8516 115.565H193.852"- stroke={theme === 'dark' ? '#F3F3F3' : 'black'}+ stroke={isDarkMode ? '#F3F3F3' : 'black'}strokeOpacity="0.1"strokeWidth="0.845575"/><pathd="M97.6961 128.263H97.0285C96.9788 128.015 96.8888 127.785 96.7586 127.574C96.6308 127.361 96.4698 127.175 96.2757 127.017C96.0815 126.858 95.8614 126.735 95.6151 126.647C95.3689 126.56 95.1026 126.516 94.8161 126.516C94.3569 126.516 93.9378 126.636 93.559 126.875C93.1826 127.114 92.8808 127.465 92.6535 127.929C92.4286 128.391 92.3161 128.957 92.3161 129.627C92.3161 130.302 92.4286 130.87 92.6535 131.331C92.8808 131.793 93.1826 132.143 93.559 132.383C93.9378 132.619 94.3569 132.738 94.8161 132.738C95.1026 132.738 95.3689 132.694 95.6151 132.606C95.8614 132.519 96.0815 132.397 96.2757 132.241C96.4698 132.082 96.6308 131.896 96.7586 131.683C96.8888 131.47 96.9788 131.239 97.0285 130.991H97.6961C97.6369 131.324 97.5257 131.636 97.3623 131.924C97.2013 132.211 96.9954 132.462 96.7444 132.677C96.4958 132.893 96.2094 133.061 95.885 133.182C95.5607 133.302 95.2044 133.363 94.8161 133.363C94.2053 133.363 93.6632 133.21 93.1897 132.905C92.7162 132.597 92.3445 132.164 92.0747 131.605C91.8071 131.046 91.6734 130.387 91.6734 129.627C91.6734 128.867 91.8071 128.208 92.0747 127.649C92.3445 127.09 92.7162 126.658 93.1897 126.353C93.6632 126.045 94.2053 125.891 94.8161 125.891C95.2044 125.891 95.5607 125.951 95.885 126.072C96.2094 126.191 96.4958 126.359 96.7444 126.576C96.9954 126.792 97.2013 127.043 97.3623 127.329C97.5257 127.616 97.6369 127.927 97.6961 128.263ZM101.33 133.377C100.821 133.377 100.38 133.258 100.009 133.022C99.6371 132.783 99.3495 132.452 99.1459 132.031C98.9446 131.607 98.844 131.12 98.844 130.568C98.844 130.019 98.9446 129.531 99.1459 129.105C99.3495 128.676 99.63 128.341 99.9875 128.1C100.347 127.856 100.763 127.734 101.234 127.734C101.53 127.734 101.815 127.789 102.09 127.897C102.364 128.004 102.611 128.169 102.828 128.391C103.049 128.611 103.223 128.889 103.35 129.226C103.478 129.559 103.542 129.955 103.542 130.412V130.724H99.2808V130.167H102.896C102.896 129.816 102.825 129.501 102.683 129.222C102.543 128.94 102.348 128.718 102.097 128.554C101.848 128.391 101.561 128.309 101.234 128.309C100.888 128.309 100.584 128.402 100.321 128.586C100.059 128.771 99.8525 129.015 99.7034 129.318C99.5566 129.621 99.482 129.952 99.4797 130.312V130.646C99.4797 131.079 99.5542 131.458 99.7034 131.782C99.8549 132.104 100.069 132.354 100.346 132.532C100.623 132.709 100.951 132.798 101.33 132.798C101.588 132.798 101.814 132.758 102.008 132.677C102.205 132.597 102.369 132.489 102.502 132.354C102.637 132.217 102.738 132.066 102.807 131.903L103.407 132.098C103.324 132.328 103.188 132.54 102.999 132.734C102.812 132.928 102.577 133.084 102.296 133.203C102.016 133.319 101.694 133.377 101.33 133.377ZM104.935 133.263V127.809H105.549V128.647H105.596C105.705 128.372 105.894 128.151 106.164 127.983C106.436 127.812 106.744 127.727 107.087 127.727C107.139 127.727 107.197 127.728 107.261 127.731C107.325 127.733 107.378 127.735 107.421 127.738V128.38C107.392 128.376 107.343 128.369 107.272 128.359C107.201 128.35 107.124 128.345 107.041 128.345C106.757 128.345 106.504 128.405 106.281 128.526C106.061 128.644 105.887 128.809 105.759 129.02C105.631 129.23 105.567 129.471 105.567 129.741V133.263H104.935ZM110.99 127.809V128.359H108.387V127.809H110.99ZM109.2 126.502H109.836V131.839C109.836 132.066 109.875 132.245 109.953 132.375C110.031 132.503 110.133 132.594 110.258 132.649C110.384 132.701 110.517 132.727 110.66 132.727C110.742 132.727 110.813 132.722 110.873 132.713C110.932 132.701 110.984 132.689 111.029 132.677L111.164 133.249C111.102 133.273 111.026 133.294 110.937 133.313C110.847 133.334 110.735 133.345 110.603 133.345C110.371 133.345 110.147 133.294 109.932 133.192C109.718 133.09 109.543 132.939 109.406 132.738C109.269 132.536 109.2 132.287 109.2 131.988V126.502ZM112.432 133.263V127.809H113.068V133.263H112.432ZM112.756 126.871C112.625 126.871 112.514 126.827 112.422 126.74C112.329 126.65 112.283 126.542 112.283 126.417C112.283 126.291 112.329 126.185 112.422 126.097C112.514 126.007 112.625 125.962 112.756 125.962C112.886 125.962 112.997 126.007 113.089 126.097C113.182 126.185 113.228 126.291 113.228 126.417C113.228 126.542 113.182 126.65 113.089 126.74C112.997 126.827 112.886 126.871 112.756 126.871ZM116.984 127.809V128.359H114.303V127.809H116.984ZM115.141 133.263V127.01C115.141 126.716 115.209 126.469 115.343 126.267C115.481 126.066 115.66 125.914 115.88 125.809C116.1 125.705 116.333 125.653 116.579 125.653C116.745 125.653 116.882 125.667 116.991 125.696C117.102 125.722 117.19 125.748 117.254 125.774L117.069 126.328C117.022 126.314 116.964 126.297 116.895 126.278C116.827 126.259 116.74 126.25 116.636 126.25C116.361 126.25 116.15 126.327 116 126.481C115.851 126.634 115.777 126.855 115.777 127.141L115.773 133.263H115.141ZM118.253 133.263V127.809H118.888V133.263H118.253ZM118.576 126.871C118.446 126.871 118.334 126.827 118.242 126.74C118.15 126.65 118.104 126.542 118.104 126.417C118.104 126.291 118.15 126.185 118.242 126.097C118.334 126.007 118.446 125.962 118.576 125.962C118.706 125.962 118.817 126.007 118.91 126.097C119.002 126.185 119.048 126.291 119.048 126.417C119.048 126.542 119.002 126.65 118.91 126.74C118.817 126.827 118.706 126.871 118.576 126.871ZM122.765 133.377C122.256 133.377 121.816 133.258 121.444 133.022C121.073 132.783 120.785 132.452 120.581 132.031C120.38 131.607 120.28 131.12 120.28 130.568C120.28 130.019 120.38 129.531 120.581 129.105C120.785 128.676 121.066 128.341 121.423 128.1C121.783 127.856 122.198 127.734 122.669 127.734C122.965 127.734 123.251 127.789 123.525 127.897C123.8 128.004 124.046 128.169 124.264 128.391C124.484 128.611 124.658 128.889 124.786 129.226C124.914 129.559 124.978 129.955 124.978 130.412V130.724H120.716V130.167H124.331C124.331 129.816 124.26 129.501 124.118 129.222C123.979 128.94 123.783 128.718 123.532 128.554C123.284 128.391 122.996 128.309 122.669 128.309C122.324 128.309 122.02 128.402 121.757 128.586C121.494 128.771 121.288 129.015 121.139 129.318C120.992 129.621 120.918 129.952 120.915 130.312V130.646C120.915 131.079 120.99 131.458 121.139 131.782C121.29 132.104 121.505 132.354 121.782 132.532C122.059 132.709 122.387 132.798 122.765 132.798C123.023 132.798 123.249 132.758 123.444 132.677C123.64 132.597 123.805 132.489 123.937 132.354C124.072 132.217 124.174 132.066 124.243 131.903L124.843 132.098C124.76 132.328 124.624 132.54 124.434 132.734C124.247 132.928 124.013 133.084 123.731 133.203C123.452 133.319 123.13 133.377 122.765 133.377ZM128.334 133.377C127.887 133.377 127.495 133.258 127.159 133.022C126.823 132.785 126.56 132.455 126.371 132.031C126.184 131.607 126.09 131.114 126.09 130.55C126.09 129.989 126.184 129.498 126.371 129.076C126.56 128.653 126.824 128.324 127.163 128.089C127.501 127.852 127.895 127.734 128.345 127.734C128.677 127.734 128.952 127.793 129.172 127.912C129.393 128.028 129.569 128.172 129.702 128.345C129.834 128.518 129.937 128.686 130.011 128.849H130.067V125.991H130.703V133.263H130.085V132.251H130.011C129.937 132.417 129.833 132.587 129.698 132.763C129.563 132.935 129.384 133.081 129.162 133.199C128.942 133.318 128.666 133.377 128.334 133.377ZM128.409 132.798C128.762 132.798 129.062 132.702 129.311 132.51C129.56 132.316 129.749 132.05 129.879 131.711C130.012 131.37 130.078 130.98 130.078 130.54C130.078 130.104 130.013 129.719 129.883 129.385C129.753 129.049 129.563 128.786 129.315 128.597C129.066 128.405 128.764 128.309 128.409 128.309C128.044 128.309 127.737 128.409 127.486 128.608C127.237 128.804 127.048 129.071 126.918 129.407C126.79 129.743 126.726 130.12 126.726 130.54C126.726 130.963 126.791 131.346 126.921 131.687C127.051 132.027 127.241 132.299 127.489 132.5C127.74 132.699 128.047 132.798 128.409 132.798Z"- fill={theme === 'dark' ? 'white' : 'black'}+ fill={isDarkMode ? 'white' : 'black'}/><rectx="177.543"@@ -531,8 +531,8 @@ const SecureAndScalableImg = ({ isHovered }: { isHovered: boolean }) => {y2="131.024"gradientUnits="userSpaceOnUse">- <stop stopColor={theme === 'dark' ? 'white' : '#1CB199'} />- <stop offset="1" stopColor={theme === 'dark' ? 'white' : '#494949'} stopOpacity="0" />+ <stop stopColor={isDarkMode ? 'white' : '#1CB199'} />+ <stop offset="1" stopColor={isDarkMode ? 'white' : '#494949'} stopOpacity="0" /></linearGradient><linearGradientid="paint1_linear_4346_100010"@@ -542,8 +542,8 @@ const SecureAndScalableImg = ({ isHovered }: { isHovered: boolean }) => {y2="155.033"gradientUnits="userSpaceOnUse">- <stop stopColor={theme === 'dark' ? '#1DF7C3' : '#3AFFE5'} stopOpacity="0.86" />- <stop offset="1" stopColor={theme === 'dark' ? '#161616' : '#38BBAA'} stopOpacity="0" />+ <stop stopColor={isDarkMode ? '#1DF7C3' : '#3AFFE5'} stopOpacity="0.86" />+ <stop offset="1" stopColor={isDarkMode ? '#161616' : '#38BBAA'} stopOpacity="0" /></linearGradient><radialGradientid="paint2_radial_4346_100010"@@ -553,8 +553,8 @@ const SecureAndScalableImg = ({ isHovered }: { isHovered: boolean }) => {gradientUnits="userSpaceOnUse"gradientTransform="translate(144.569 41.4294) rotate(90) scale(84.0463 63.1218)">- <stop stopColor={theme === 'dark' ? '#3AFFE5' : '#109079'} />- <stop offset="1" stopColor={theme === 'dark' ? '#38BBAA' : '#3DCB8C'} stopOpacity="0" />+ <stop stopColor={isDarkMode ? '#3AFFE5' : '#109079'} />+ <stop offset="1" stopColor={isDarkMode ? '#38BBAA' : '#3DCB8C'} stopOpacity="0" /></radialGradient><linearGradientid="paint3_linear_4346_100010"@@ -564,8 +564,8 @@ const SecureAndScalableImg = ({ isHovered }: { isHovered: boolean }) => {y2="79.1828"gradientUnits="userSpaceOnUse">- <stop stopColor={theme === 'dark' ? '#1CF7C3' : '#109179'} />- <stop offset="1" stopColor={theme === 'dark' ? '#3DCB8C' : '#0B0B0B'} stopOpacity="0" />+ <stop stopColor={isDarkMode ? '#1CF7C3' : '#109179'} />+ <stop offset="1" stopColor={isDarkMode ? '#3DCB8C' : '#0B0B0B'} stopOpacity="0" /></linearGradient></defs></svg>diff --git a/apps/www/components/Sections/CustomerQuotesSection.tsx b/apps/www/components/Sections/CustomerQuotesSection.tsxindex a3686318adf..b5d969be91f 100644--- a/apps/www/components/Sections/CustomerQuotesSection.tsx+++ b/apps/www/components/Sections/CustomerQuotesSection.tsx@@ -2,7 +2,7 @@ import { useRef } from 'react'import Image from 'next/image'import Link from 'next/link'import { useRouter } from 'next/router'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import { IconArrowUpRight } from 'ui'import { LazyMotion, domAnimation, m, useInView } from 'framer-motion'@@ -40,10 +40,8 @@ const CustomerQuotesSection = (props: Props) => {const isInView = useInView(ref, { margin: '-25%', once: true })const Card = ({ customer, index }: Card) => {- const { resolvedTheme } = useTheme()- const logo = `/images/customers/logos/${resolvedTheme !== 'dark' ? '' : 'light/'}${- customer.customer- }.png`+ const { isDarkMode } = useTheme()+ const logo = `/images/customers/logos/${!isDarkMode ? '' : 'light/'}${customer.customer}.png`const initial = INITIAL_BOTTOMconst animate = getAnimation({ delay: index * 0.1 })diff --git a/apps/www/data/products/vector/pageData.tsx b/apps/www/data/products/vector/pageData.tsxindex e99d1443a8f..bee1293d203 100644--- a/apps/www/data/products/vector/pageData.tsx+++ b/apps/www/data/products/vector/pageData.tsx@@ -110,7 +110,7 @@ export default {},{icon: `M6 2C4.89543 2 4 2.89543 4 4V9.52779C5.06151 8.57771 6.46329 8 8 8C11.3137 8 14 10.6863 14 14C14 15.5367 13.4223 16.9385 12.4722 18H14C15.1046 18 16 17.1046 16 16V7.41421C16 6.88378 15.7893 6.37507 15.4142 6L12 2.58579C11.6249 2.21071 11.1162 2 10.5858 2H6Z-+M4 14C4 11.7909 5.79086 10 8 10C10.2091 10 12 11.7909 12 14C12 16.2091 10.2091 18 8 18C7.25862 18 6.56362 17.7977 5.96818 17.446L4.70711 18.7071C4.31658 19.0976 3.68342 19.0976 3.29289 18.7071C2.90237 18.3166 2.90237 17.6834 3.29289 17.2929L4.55397 16.0318C4.20229 15.4364 4 14.7414 4 14ZM8 12C6.89543 12 6 12.8954 6 14C6 14.5526 6.22276 15.0512 6.58579 15.4142C6.94881 15.7772 7.44744 16 8 16C9.10457 16 10 15.1046 10 14C10 12.8954 9.10457 12 8 12Z`,title: 'Hybrid search',diff --git a/apps/www/pages/404.tsx b/apps/www/pages/404.tsxindex 54ce0279c8c..321108babe9 100644--- a/apps/www/pages/404.tsx+++ b/apps/www/pages/404.tsx@@ -5,14 +5,14 @@ import { Button } from 'ui'import DefaultLayout from '../components/Layouts/Default'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import * as supabaseLogoWordmarkDark from 'common/assets/images/supabase-logo-wordmark--dark.png'import * as supabaseLogoWordmarkLight from 'common/assets/images/supabase-logo-wordmark--light.png'const Error404 = () => {const [show404, setShow404] = useState<boolean>(false)- const { theme } = useTheme()+ const { isDarkMode } = useTheme()useEffect(() => {setTimeout(() => {@@ -29,7 +29,7 @@ const Error404 = () => {<div className="flex w-full items-center justify-between md:w-auto"><a href="/"><Image- src={theme === 'dark' ? supabaseLogoWordmarkDark : supabaseLogoWordmarkLight}+ src={isDarkMode ? supabaseLogoWordmarkDark : supabaseLogoWordmarkLight}alt="supabase logo"height={24}width={120}diff --git a/apps/www/pages/_app.tsx b/apps/www/pages/_app.tsxindex 2272a329798..2fca0295ebc 100644--- a/apps/www/pages/_app.tsx+++ b/apps/www/pages/_app.tsx@@ -57,9 +57,7 @@ export default function App({ Component, pageProps }: AppProps) {}, [router.isReady, consentValue])const site_title = `${APP_NAME} | The Open Source Firebase Alternative`- const { basePath, pathname } = useRouter()-- const forceDarkMode = pathname === '/' || router.pathname.startsWith('/launch-week')+ const { basePath } = useRouter()return (<>@@ -90,13 +88,7 @@ export default function App({ Component, pageProps }: AppProps) {}}/><AuthProvider>- <ThemeProvider- attribute="class"- defaultTheme="system"- enableSystem- disableTransitionOnChange- forcedTheme={forceDarkMode ? 'dark' : undefined}- >+ <ThemeProvider detectSystemColorPreference={false}><PortalToast /><Component {...pageProps} /></ThemeProvider>diff --git a/apps/www/pages/_document.tsx b/apps/www/pages/_document.tsxindex 003c5fbac1a..3abbdca1b66 100644--- a/apps/www/pages/_document.tsx+++ b/apps/www/pages/_document.tsx@@ -5,7 +5,7 @@ export default class MyDocument extends Document {return (<Html lang="en"><Head></Head>- <body>+ <body className="dark"><Main /><NextScript /></body>diff --git a/apps/www/pages/careers/index.tsx b/apps/www/pages/careers/index.tsxindex 3028f1db5d9..a4289c2367d 100644--- a/apps/www/pages/careers/index.tsx+++ b/apps/www/pages/careers/index.tsx@@ -8,7 +8,7 @@ import { Badge, Button, IconCheck } from 'ui'import Globe from '~/components/Globe'import DefaultLayout from '~/components/Layouts/Default'import SectionContainer from '~/components/Layouts/SectionContainer'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import career from '~/data/career.json'import Styles from './career.module.css'@@ -76,7 +76,7 @@ export async function getStaticProps() {}const CareerPage: NextPage = ({ jobs, contributors }: any) => {- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const { basePath } = useRouter()const meta_title = 'Careers | Supabase'@@ -282,7 +282,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {<div className="relative w-full h-full mx-auto"><Imagesrc={`/images/career/icons/${human.icon}${- theme === 'dark' ? '-dark' : '-light'+ isDarkMode ? '-dark' : '-light'}.svg`}className="w-12 h-12 sm:w-10 sm:h-10 lg:w-12 lg:h-12"alt={`${human.icon} icon`}@@ -306,9 +306,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {<div className="w-14 h-14 rounded-lg flex items-center mx-auto mb-6"><div className="relative w-full h-full mx-auto"><Image- src={`/images/career/icons/open_source${- theme === 'dark' ? '-dark' : '-light'- }.svg`}+ src={`/images/career/icons/open_source${isDarkMode ? '-dark' : '-light'}.svg`}alt="open source icon"layout="fill"objectFit="cover"@@ -397,7 +395,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {<div className="relative w-full h-full mx-auto"><Imagesrc={`/images/career/icons/${benefits.icon}${- theme === 'dark' ? '-dark' : '-light'+ isDarkMode ? '-dark' : '-light'}.svg`}alt={`${benefits.icon} icon`}layout="fill"@@ -423,7 +421,7 @@ const CareerPage: NextPage = ({ jobs, contributors }: any) => {<div className="w-14 h-14 rounded-lg flex items-center mx-auto mb-6"><div className="relative w-full h-full mx-auto"><Image- src={`/images/career/icons/jobs${theme === 'dark' ? '-dark' : '-light'}.svg`}+ src={`/images/career/icons/jobs${isDarkMode ? '-dark' : '-light'}.svg`}alt="jobs icon"layout="fill"objectFit="cover"diff --git a/apps/www/pages/index.tsx b/apps/www/pages/index.tsxindex 0a73151f1d1..286232e2a68 100644--- a/apps/www/pages/index.tsx+++ b/apps/www/pages/index.tsx@@ -1,6 +1,9 @@+import { useEffect, useState } from 'react'import dynamic from 'next/dynamic'+import PostTypes from '~/types/post'import { getSortedPosts } from '~/lib/posts'+import { useTheme } from 'common'import content from '~/data/home/content'import Layout from '~/components/Layouts/Default'import Hero from '~/components/Hero/Hero'@@ -19,6 +22,18 @@ const TwitterSocialSection = dynamic(() => import('~/components/TwitterSocialSectype Props = { customerStories: PostTypes[] }const Index = ({ customerStories }: Props) => {+ const { isDarkMode, toggleTheme } = useTheme()+ const [initialDarkMode] = useState(isDarkMode)++ useEffect(() => {+ toggleTheme(true)+ document.body.className = 'dark'+ return () => {+ document.body.className = ''+ toggleTheme(initialDarkMode)+ }+ }, [])+return (<Layout><Hero />diff --git a/apps/www/pages/launch-week/6/index.tsx b/apps/www/pages/launch-week/6/index.tsxindex c1cd478ec4e..6fdd1882cdd 100644--- a/apps/www/pages/launch-week/6/index.tsx+++ b/apps/www/pages/launch-week/6/index.tsx@@ -10,7 +10,7 @@ import SectionContainer from '~/components/Layouts/SectionContainer'import { createClient, SupabaseClient } from '@supabase/supabase-js'import { useRouter } from 'next/router'import { useEffect, useState } from 'react'-import { useTheme } from 'next-themes'+import { useTheme } from 'ui'import classNames from 'classnames'import { SITE_ORIGIN } from '~/lib/constants'import { Accordion, Badge, IconExternalLink } from 'ui'@@ -34,7 +34,7 @@ const constellation = []export default function launchweek() {- const { theme, setTheme } = useTheme()+ const { isDarkMode, toggleTheme } = useTheme()const title = 'Launch Week 6'const description = 'Supabase Launch Week 6 | 12-18 Dec 2022'const liveDay = null@@ -63,6 +63,15 @@ export default function launchweek() {}}, [supabase])+ useEffect(() => {+ toggleTheme(true)+ document.body.className = 'bg-[#121212]'+ return () => {+ document.body.className = ''+ isDarkMode ? toggleTheme(true) : toggleTheme(false)+ }+ }, [])+async function getCreators() {try {// setLoading(true)@@ -310,7 +319,7 @@ export default function launchweek() {className="absolute group-hover/day1:scale-105 opacity-60 group-hover/day1:opacity-100 w-full h-full -z-10 transition-all duration-500"style={{background: `radial-gradient(650px 150px at 50% 100%, ${- theme === 'dark' ? '#103633' : '#b8e8e7'+ isDarkMode ? '#103633' : '#b8e8e7'}, transparent)`,}}></div>@@ -356,7 +365,7 @@ export default function launchweek() {className="top-0 absolute group-hover/2:scale-105 opacity-60 group-hover/2:opacity-100 w-full h-full -z-10 transition-all duration-500"style={{background: `radial-gradient(90% 130px at 80% 0px, ${- theme === 'dark' ? '#103633' : '#b8e8e7'+ isDarkMode ? '#103633' : '#b8e8e7'}, transparent)`,}}></div>@@ -375,7 +384,7 @@ export default function launchweek() {className="top-0 absolute group-hover/3:scale-105 opacity-60 group-hover/3:opacity-100 w-full h-full -z-10 transition-all duration-500"style={{background: `radial-gradient(90% 130px at 50% 0px, ${- theme === 'dark' ? '#103633' : '#b8e8e7'+ isDarkMode ? '#103633' : '#b8e8e7'}, transparent)`,}}></div>@@ -414,7 +423,7 @@ export default function launchweek() {<div className="absolute top-0 right-0 w-full h-full -z-20 "><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/mfa-dark.png': '/images/launchweek/mfa-light.png'}@@ -473,7 +482,7 @@ export default function launchweek() {><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/wrappers-visual.svg': '/images/launchweek/wrappers-visual-light.svg'}@@ -489,7 +498,7 @@ export default function launchweek() {><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/wrappers-visual-hover.svg': '/images/launchweek/wrappers-visual-hover-light.svg'}@@ -540,7 +549,7 @@ export default function launchweek() {><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/vault-visual.svg': '/images/launchweek/vault-visual-light.svg'}@@ -556,7 +565,7 @@ export default function launchweek() {><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/vault-visual-hover.svg': '/images/launchweek/vault-visual-hover-light.svg'}@@ -580,7 +589,7 @@ export default function launchweek() {<div className={`absolute top-0 right-0 w-full h-full -z-20`}><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/TCE-visual.svg': '/images/launchweek/TCE-visual-light.svg'}@@ -596,7 +605,7 @@ export default function launchweek() {><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/TCE-visual-hover.svg': '/images/launchweek/TCE-visual-hover-light.svg'}@@ -625,7 +634,7 @@ export default function launchweek() {><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/community-visual.svg': '/images/launchweek/community-visual-light.svg'}@@ -641,7 +650,7 @@ export default function launchweek() {><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/community-visual-hover.svg': '/images/launchweek/community-visual-light-hover.svg'}@@ -730,7 +739,7 @@ export default function launchweek() {<div className={`absolute top-0 right-0 w-full h-full -z-20`}><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/PgGraphql-visual.svg': '/images/launchweek/PgGraphql-visual-light.svg'}@@ -746,7 +755,7 @@ export default function launchweek() {><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/PgGraphql-visual-hover.svg': '/images/launchweek/PgGraphql-visual-hover-light.svg'}@@ -773,7 +782,7 @@ export default function launchweek() {<div className={`absolute top-0 right-0 w-full h-full -z-20`}><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/custom-domains-visual.svg': '/images/launchweek/custom-domains-visual-light.svg'}@@ -789,7 +798,7 @@ export default function launchweek() {><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/custom-domains-visual-hover.svg': '/images/launchweek/custom-domains-visual-hover-light.svg'}@@ -816,7 +825,7 @@ export default function launchweek() {<div className={`absolute top-0 right-0 w-full h-full -z-20`}><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/PITR-visual.svg': '/images/launchweek/PITR-visual-light.svg'}@@ -832,7 +841,7 @@ export default function launchweek() {><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/PITR-visual-hover.svg': '/images/launchweek/PITR-visual-hover-light.svg'}@@ -859,7 +868,7 @@ export default function launchweek() {<div className={`absolute top-0 right-0 w-full h-full -z-20`}><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/pg_crdt-visual.svg': '/images/launchweek/pg_crdt-visual-light.svg'}@@ -875,7 +884,7 @@ export default function launchweek() {><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/pg_crdt-visual-hover.svg': '/images/launchweek/pg_crdt-visual-hover-light.svg'}@@ -902,7 +911,7 @@ export default function launchweek() {<div className={`absolute top-0 right-0 w-full h-full -z-20`}><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/postgres-visual.svg': '/images/launchweek/postgres-visual-light.svg'}@@ -918,7 +927,7 @@ export default function launchweek() {><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/postgres-visual-hover.svg': '/images/launchweek/postgres-visual-hover-light.svg'}@@ -945,7 +954,7 @@ export default function launchweek() {<div className={`absolute top-0 right-0 w-full h-full -z-20`}><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/PostgREST11-visual.svg': '/images/launchweek/PostgREST11-visual-light.svg'}@@ -961,7 +970,7 @@ export default function launchweek() {><Imagesrc={- theme === 'dark'+ isDarkMode? '/images/launchweek/PostgREST11-visual-hover.svg': '/images/launchweek/PostgREST11-visual-hover-light.svg'}diff --git a/apps/www/pages/launch-week/7/index.tsx b/apps/www/pages/launch-week/7/index.tsxindex dcfa35680de..b4455bd61ee 100644--- a/apps/www/pages/launch-week/7/index.tsx+++ b/apps/www/pages/launch-week/7/index.tsx@@ -11,7 +11,7 @@ import SectionContainer from '~/components/Layouts/SectionContainer'import { LaunchWeekLogoHeader } from '~/components/LaunchWeek/7/LaunchSection/LaunchWeekLogoHeader'import { UserData } from '~/components/LaunchWeek/hooks/use-conf-data'import LW7BgGraphic from '~/components/LaunchWeek/7/LW7BgGraphic'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'const LW7Releases = dynamic(() => import('~/components/LaunchWeek/7/Releases'))const LaunchWeekPrizeSection = dynamic(@@ -32,12 +32,21 @@ const supabaseAdmin = createClient(process.env.NEXT_PUBLIC_MISC_USE_ANON_KEY!)export default function TicketHome({ users }: Props) {- const { theme, setTheme } = useTheme()+ const { isDarkMode, toggleTheme } = useTheme()const TITLE = 'Supabase LaunchWeek 7'const DESCRIPTION = 'Supabase Launch Week 7 | 10–14 April 2023'const OG_IMAGE = `${SITE_ORIGIN}/images/launchweek/seven/launch-week-7-teaser.jpg`+ useEffect(() => {+ toggleTheme(true)+ document.body.className = 'bg-[#1C1C1C]'+ return () => {+ document.body.className = ''+ isDarkMode ? toggleTheme(true) : toggleTheme(false)+ }+ }, [])+return (<><NextSeodiff --git a/apps/www/pages/launch-week/7/tickets/[username].tsx b/apps/www/pages/launch-week/7/tickets/[username].tsxindex 3d60b470f56..640912584b6 100644--- a/apps/www/pages/launch-week/7/tickets/[username].tsx+++ b/apps/www/pages/launch-week/7/tickets/[username].tsx@@ -14,7 +14,7 @@ import TicketBrickWall from '~/components/LaunchWeek/7/LaunchSection/TicketBrickimport { UserData } from '~/components/LaunchWeek/hooks/use-conf-data'import LW7BgGraphic from '~/components/LaunchWeek/7/LW7BgGraphic'import CTABanner from '~/components/CTABanner'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'interface Props {user: UserData@@ -28,7 +28,7 @@ const supabaseAdmin = createClient()export default function UsernamePage({ user, users, ogImageUrl }: Props) {- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const { username, ticketNumber, name, golden, referrals, bg_image_id } = userconst TITLE = `${name ? name + '’s' : 'Get your'} #SupaLaunchWeek Ticket`const DESCRIPTION = 'Supabase Launch Week 7 | 10–14 April 2023 | Generate your ticket. Win swag.'@@ -46,7 +46,7 @@ export default function UsernamePage({ user, users, ogImageUrl }: Props) {document.body.className = '!dark bg-[#1C1C1C]'return () => {- document.body.className = theme === 'dark' ? 'dark' : 'light'+ document.body.className = isDarkMode ? 'dark' : 'light'}}, [])diff --git a/apps/www/pages/launch-week/7/tickets/index.tsx b/apps/www/pages/launch-week/7/tickets/index.tsxindex d7f79aa483b..fd98a897933 100644--- a/apps/www/pages/launch-week/7/tickets/index.tsx+++ b/apps/www/pages/launch-week/7/tickets/index.tsx@@ -14,7 +14,7 @@ import { debounce } from 'lodash'import TicketsGrid from '~/components/LaunchWeek/7/TicketsGrid'import { Button } from 'ui'import Link from 'next/link'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'interface Props {users: UserData[]@@ -41,7 +41,7 @@ export default function TicketsPage({ users }: Props) {const DESCRIPTION = 'Supabase Launch Week 7 | 10–14 April 2023'const OG_IMAGE = `${SITE_ORIGIN}/images/launchweek/seven/launch-week-7-teaser.jpg`- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const [isLoading, setIsLoading] = useState(false)const [offset, setOffset] = useState(1)const [isLast, setIsLast] = useState(false)@@ -86,7 +86,7 @@ export default function TicketsPage({ users }: Props) {window.addEventListener('scroll', handleDebouncedScroll)return () => {- document.body.className = theme === 'dark' ? 'dark' : 'light'+ document.body.className = isDarkMode ? 'dark' : 'light'window.removeEventListener('scroll', handleDebouncedScroll)}}, [])diff --git a/apps/www/pages/launch-week/index.tsx b/apps/www/pages/launch-week/index.tsxindex 66641b642da..95cd7d5a1f3 100644--- a/apps/www/pages/launch-week/index.tsx+++ b/apps/www/pages/launch-week/index.tsx@@ -15,7 +15,7 @@ import { LaunchWeekLogoHeader } from '~/components/LaunchWeek/8/LaunchWeekLogoHeimport { Meetup } from '~/components/LaunchWeek/8/LW8Meetups'import LW8CalloutsSection from '~/components/LaunchWeek/8/LW8CalloutsSection'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import 'swiper/swiper.min.css'@@ -53,8 +53,8 @@ export default function TicketHome({ users, meetups }: Props) {const bgImageId = query.bgImageId?.toString()const [supabase, setSupabase] = useState<SupabaseClient | null>(null)const [session, setSession] = useState<Session | null>(null)-- const [initialDarkMode] = useState('dark')+ const { isDarkMode, toggleTheme } = useTheme()+ const [initialDarkMode] = useState(isDarkMode)const defaultUserData = {id: query.id?.toString(),@@ -93,12 +93,11 @@ export default function TicketHome({ users, meetups }: Props) {}, [supabase])useEffect(() => {- document.body.classList.add('bg-[#020405]')-+ toggleTheme(true)+ document.body.className = 'dark bg-[#020405]'return () => {- if (document.body.classList.contains('bg-[#020405]')) {- document.body.classList.remove('bg-[#020405]')- }+ document.body.className = ''+ toggleTheme(initialDarkMode)}}, [])diff --git a/apps/www/pages/launch-week/tickets/[username].tsx b/apps/www/pages/launch-week/tickets/[username].tsxindex 45e1223f5ef..aea15b2e583 100644--- a/apps/www/pages/launch-week/tickets/[username].tsx+++ b/apps/www/pages/launch-week/tickets/[username].tsx@@ -5,7 +5,7 @@ import Image from 'next/image'import Error from 'next/error'import dynamic from 'next/dynamic'import { Session, SupabaseClient, createClient } from '@supabase/supabase-js'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import DefaultLayout from '~/components/Layouts/Default'import SectionContainer from '~/components/Layouts/SectionContainer'@@ -41,8 +41,8 @@ export default function UsernamePage({ user, users, ogImageUrl }: Props) {const [supabase, setSupabase] = useState<SupabaseClient | null>(null)const [session, setSession] = useState<Session | null>(null)- const { theme, setTheme } = useTheme()- const [initialDarkMode] = useState(theme === 'dark')+ const { isDarkMode, toggleTheme } = useTheme()+ const [initialDarkMode] = useState(isDarkMode)const [pageState, setPageState] = useState<PageState>('ticket')@@ -61,6 +61,15 @@ export default function UsernamePage({ user, users, ogImageUrl }: Props) {}}, [])+ useEffect(() => {+ toggleTheme(true)+ document.body.className = 'dark bg-[#020405]'+ return () => {+ document.body.className = ''+ toggleTheme(initialDarkMode)+ }+ }, [])+return (<><NextSeodiff --git a/apps/www/pages/launch-week/tickets/index.tsx b/apps/www/pages/launch-week/tickets/index.tsxindex ca9b5c29969..0c577c1d0b8 100644--- a/apps/www/pages/launch-week/tickets/index.tsx+++ b/apps/www/pages/launch-week/tickets/index.tsx@@ -9,7 +9,7 @@ import { createClient } from '@supabase/supabase-js'import { debounce } from 'lodash'import { SITE_ORIGIN, SITE_URL } from '~/lib/constants'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import DefaultLayout from '~/components/Layouts/Default'import SectionContainer from '~/components/Layouts/SectionContainer'@@ -42,8 +42,8 @@ export default function TicketsPage({ users }: Props) {const DESCRIPTION = 'Supabase Launch Week 8 | 7–11 August 2023'const OG_IMAGE = `${SITE_ORIGIN}/images/launchweek/8/lw8-og.jpg`- const { theme, setTheme } = useTheme()- const [initialDarkMode] = useState(theme === 'dark')+ const { isDarkMode, toggleTheme } = useTheme()+ const [initialDarkMode] = useState(isDarkMode)const [isLoading, setIsLoading] = useState(false)const [offset, setOffset] = useState(1)const [isLast, setIsLast] = useState(false)@@ -92,11 +92,11 @@ export default function TicketsPage({ users }: Props) {}, [])useEffect(() => {- setTheme('dark')+ toggleTheme(true)document.body.className = 'dark bg-[#020405]'return () => {document.body.className = ''- setTheme('dark')+ toggleTheme(initialDarkMode)}}, [])diff --git a/apps/www/pages/pricing/index.tsx b/apps/www/pages/pricing/index.tsxindex eb2a01b91f2..ed5dc2d0277 100644--- a/apps/www/pages/pricing/index.tsx+++ b/apps/www/pages/pricing/index.tsx@@ -10,7 +10,7 @@ import DefaultLayout from '~/components/Layouts/Default'import { PricingTableRowDesktop, PricingTableRowMobile } from '~/components/Pricing/PricingTableRow'import { pricing } from 'shared-data/pricing'import pricingFaq from '~/data/PricingFAQ.json'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import ComputePricingModal from '~/components/Pricing/ComputePricingModal'import { plans } from 'shared-data/plans'import { ArrowNarrowRightIcon } from '@heroicons/react/outline'@@ -19,7 +19,7 @@ import AnnouncementBadge from '../../components/Announcement/Badge'export default function IndexPage() {const router = useRouter()const { basePath, asPath } = useRouter()- const { resolvedTheme } = useTheme()+ const { isDarkMode } = useTheme()const [showComputeModal, setShowComputeModal] = useState(false)const [activeMobilePlan, setActiveMobilePlan] = useState('Free')@@ -345,7 +345,7 @@ export default function IndexPage() {<imgclassName="w-full"src={`${basePath}/images/pricing/${addon.heroImg}${- resolvedTheme === 'dark' ? '' : '-light'+ isDarkMode ? '' : '-light'}.png`}/></div>@@ -354,7 +354,7 @@ export default function IndexPage() {<div className="flex items-center gap-2 mt-2"><imgsrc={`${basePath}/images/pricing/${addon.icon}${- resolvedTheme === 'dark' ? '' : '-light'+ isDarkMode ? '' : '-light'}.svg`}className="file:"alt="Compute"@@ -421,9 +421,7 @@ export default function IndexPage() {<div><imgclassName="w-full"- src={`${basePath}/images/pricing/spend-cap${- resolvedTheme === 'dark' ? '' : '-light'- }.png`}+ src={`${basePath}/images/pricing/spend-cap${isDarkMode ? '' : '-light'}.png`}/></div></div>diff --git a/apps/www/public/customers-rss.xml b/apps/www/public/customers-rss.xmlindex 21d2d976b69..5324e65d2d6 100644--- a/apps/www/public/customers-rss.xml+++ b/apps/www/public/customers-rss.xml@@ -5,77 +5,77 @@<link>https://supabase.com</link><description>Latest news from Supabase</description><language>en</language>- <lastBuildDate>Thu, 05 Oct 2023 02:30:00 GMT</lastBuildDate>+ <lastBuildDate>Thu, 05 Oct 2023 22:00:00 GMT</lastBuildDate><atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/><item><guid>https://supabase.com/customers/chatbase</guid><title>Bootstrapped founder builds an AI app with Supabase and scales to $1M in 5 months</title><link>https://supabase.com/customers/chatbase</link><description>How Yasser leveraged Supabase to build Chatbase and became one of the most successful single-founder AI products.</description>- <pubDate>Thu, 05 Oct 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 05 Oct 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/customers/quivr</guid><title>Quivr launch 5,000 Vector databases on Supabase.</title><link>https://supabase.com/customers/quivr</link><description>Learn how one of the most popular Generative AI projects uses Supabase as their Vector Store.</description>- <pubDate>Wed, 04 Oct 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 04 Oct 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/customers/berriai</guid><title>Berri AI boosts productivity by migrating from AWS RDS to Supabase Vector</title><link>https://supabase.com/customers/berriai</link><description>Learn how Berri AI overcame challenges with self-hosting their vector database on AWS RDS and successfully migrated to Supabase.</description>- <pubDate>Mon, 05 Jun 2023 02:30:00 GMT</pubDate>+ <pubDate>Mon, 05 Jun 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/customers/markprompt</guid><title>Markprompt and Supabase - GDPR-compliant AI chatbots for docs and websites.</title><link>https://supabase.com/customers/markprompt</link><description>AI-powered chatbot platform, Markprompt, empowers developers to deliver efficient and GDPR-compliant prompt experiences on top of their content, by leveraging Supabase's secure and privacy-focused vector database and authentication solutions.</description>- <pubDate>Tue, 16 May 2023 02:30:00 GMT</pubDate>+ <pubDate>Tue, 16 May 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/customers/mendableai</guid><title>Mendable switches from Pinecone to Supabase Vector for PostgreSQL vector embeddings.</title><link>https://supabase.com/customers/mendableai</link><description>How Mendable boosts efficiency and accuracy of chat powered search for documentation using Supabase Vector.</description>- <pubDate>Thu, 04 May 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 04 May 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/customers/happyteams</guid><title>HappyTeams unlocks better performance and reduces cost with Supabase.</title><link>https://supabase.com/customers/happyteams</link><description>How a bootstrapped startup migrated from Heroku to Supabase in 30 minutes and never looked back.</description>- <pubDate>Wed, 15 Feb 2023 03:30:00 GMT</pubDate>+ <pubDate>Wed, 15 Feb 2023 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/customers/xendit</guid><title>Xendit use Supabase and create a full solution shipped to production in less than one week.</title><link>https://supabase.com/customers/xendit</link><description>As a payment processor, Xendit are responsible for verifying that all transactions are legal.</description>- <pubDate>Mon, 13 Feb 2023 03:30:00 GMT</pubDate>+ <pubDate>Mon, 13 Feb 2023 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/customers/replenysh</guid><title>Replenysh uses Supabase to implement OTP in less than 24 hours.</title><link>https://supabase.com/customers/replenysh</link><description>With Supabase, Replenysh gets a slick auth experience, reduces DevOps overhead, and continues to scale with Postgres.</description>- <pubDate>Mon, 13 Feb 2023 03:30:00 GMT</pubDate>+ <pubDate>Mon, 13 Feb 2023 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/customers/mobbin</guid><title>How Mobbin migrated 200,000 users from Firebase for a better authentication experience.</title><link>https://supabase.com/customers/mobbin</link><description>Mobbin helps over 200,000 creators globally search and view the latest design patterns from well-known apps.</description>- <pubDate>Mon, 13 Feb 2023 03:30:00 GMT</pubDate>+ <pubDate>Mon, 13 Feb 2023 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/customers/epsilon3</guid><title>Epsilon3 digitize paper-based procedures in the space industry using telemetry data, simplifying testing and operations.</title><link>https://supabase.com/customers/epsilon3</link><description>Epsilon3 uses Supabase to help teams execute secure and reliable operations in an industry where project spend runs into the billions.</description>- <pubDate>Mon, 13 Feb 2023 03:30:00 GMT</pubDate>+ <pubDate>Mon, 13 Feb 2023 23:00:00 GMT</pubDate></item></channel>diff --git a/apps/www/public/downloads/docs/Supabase+DPA+230907.pdf b/apps/www/public/downloads/docs/Supabase+DPA+230907.pdfindex 36ff30428cd..c33e29eb1c5 100644Binary files a/apps/www/public/downloads/docs/Supabase+DPA+230907.pdf and b/apps/www/public/downloads/docs/Supabase+DPA+230907.pdf differdiff --git a/apps/www/public/planetpg-angelico_de_los_reyes-rss.xml b/apps/www/public/planetpg-angelico_de_los_reyes-rss.xmlindex 7ece5ef2d13..315db97c064 100644--- a/apps/www/public/planetpg-angelico_de_los_reyes-rss.xml+++ b/apps/www/public/planetpg-angelico_de_los_reyes-rss.xml@@ -5,35 +5,35 @@<link>https://supabase.com/blog</link><description>Latest Postgres news from Angelico de los Reyes at Supabase</description><language>en</language>- <lastBuildDate>Thu, 15 Dec 2022 03:30:00 GMT</lastBuildDate>+ <lastBuildDate>Thu, 15 Dec 2022 23:00:00 GMT</lastBuildDate><atom:link href="https://supabase.com/planetpg-angelico_de_los_reyes-rss.xml" rel="self" type="application/rss+xml"/><item><guid>https://supabase.com/blog/postgres-point-in-time-recovery</guid><title>Point in Time Recovery is now available for Pro projects</title><link>https://supabase.com/blog/postgres-point-in-time-recovery</link><description>We're making PITR available for more projects, with a new Dashboard UI that makes it simple to use.</description>- <pubDate>Thu, 15 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Thu, 15 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/continuous-postgresql-backup-walg</guid><title>Continuous PostgreSQL Backups using WAL-G</title><link>https://supabase.com/blog/continuous-postgresql-backup-walg</link><description>Have you ever wanted to restore your database's state to a particular moment in time? This post explains how, using WAL-G.</description>- <pubDate>Sun, 02 Aug 2020 02:30:00 GMT</pubDate>+ <pubDate>Sat, 01 Aug 2020 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgresql-templates</guid><title>What are PostgreSQL Templates?</title><link>https://supabase.com/blog/postgresql-templates</link><description>What are PostgreSQL templates and what are they used for?</description>- <pubDate>Thu, 09 Jul 2020 02:30:00 GMT</pubDate>+ <pubDate>Wed, 08 Jul 2020 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgresql-physical-logical-backups</guid><title>Physical vs Logical Backups in PostgreSQL</title><link>https://supabase.com/blog/postgresql-physical-logical-backups</link><description>What are physical and logical backups in Postgres?</description>- <pubDate>Tue, 07 Jul 2020 02:30:00 GMT</pubDate>+ <pubDate>Mon, 06 Jul 2020 22:00:00 GMT</pubDate></item></channel>diff --git a/apps/www/public/planetpg-ant_wilson-rss.xml b/apps/www/public/planetpg-ant_wilson-rss.xmlindex 285ce8f9cbb..7733d8ee02d 100644--- a/apps/www/public/planetpg-ant_wilson-rss.xml+++ b/apps/www/public/planetpg-ant_wilson-rss.xml@@ -5,14 +5,14 @@<link>https://supabase.com/blog</link><description>Latest Postgres news from Ant Wilson at Supabase</description><language>en</language>- <lastBuildDate>Sat, 27 Feb 2021 03:30:00 GMT</lastBuildDate>+ <lastBuildDate>Fri, 26 Feb 2021 23:00:00 GMT</lastBuildDate><atom:link href="https://supabase.com/planetpg-ant_wilson-rss.xml" rel="self" type="application/rss+xml"/><item><guid>https://supabase.com/blog/cracking-postgres-interview</guid><title>Cracking PostgreSQL Interview Questions</title><link>https://supabase.com/blog/cracking-postgres-interview</link><description>Understand the top PostgreSQL Interview Questions</description>- <pubDate>Sat, 27 Feb 2021 03:30:00 GMT</pubDate>+ <pubDate>Fri, 26 Feb 2021 23:00:00 GMT</pubDate></item></channel>diff --git a/apps/www/public/planetpg-bo_lu-rss.xml b/apps/www/public/planetpg-bo_lu-rss.xmlindex 1899465fcb8..23958771024 100644--- a/apps/www/public/planetpg-bo_lu-rss.xml+++ b/apps/www/public/planetpg-bo_lu-rss.xml@@ -5,14 +5,14 @@<link>https://supabase.com/blog</link><description>Latest Postgres news from Bo Lu at Supabase</description><language>en</language>- <lastBuildDate>Wed, 14 Dec 2022 03:30:00 GMT</lastBuildDate>+ <lastBuildDate>Wed, 14 Dec 2022 23:00:00 GMT</lastBuildDate><atom:link href="https://supabase.com/planetpg-bo_lu-rss.xml" rel="self" type="application/rss+xml"/><item><guid>https://supabase.com/blog/postgres-foreign-data-wrappers-rust</guid><title>Supabase Wrappers, a Postgres FDW framework written in Rust</title><link>https://supabase.com/blog/postgres-foreign-data-wrappers-rust</link><description>A framework for building Postgres Foreign Data Wrappers which connects to Stripe, Firebase, Clickhouse, and more.</description>- <pubDate>Wed, 14 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Wed, 14 Dec 2022 23:00:00 GMT</pubDate></item></channel>diff --git a/apps/www/public/planetpg-burggraf-rss.xml b/apps/www/public/planetpg-burggraf-rss.xmlindex 8013c6289ab..60c2881d539 100644--- a/apps/www/public/planetpg-burggraf-rss.xml+++ b/apps/www/public/planetpg-burggraf-rss.xml@@ -5,21 +5,21 @@<link>https://supabase.com/blog</link><description>Latest Postgres news from Mark Burggraf at Supabase</description><language>en</language>- <lastBuildDate>Wed, 23 Nov 2022 03:30:00 GMT</lastBuildDate>+ <lastBuildDate>Wed, 23 Nov 2022 23:00:00 GMT</lastBuildDate><atom:link href="https://supabase.com/planetpg-burggraf-rss.xml" rel="self" type="application/rss+xml"/><item><guid>https://supabase.com/blog/sql-or-nosql-both-with-postgresql</guid><title>SQL or NoSQL? Why not use both (with PostgreSQL)?</title><link>https://supabase.com/blog/sql-or-nosql-both-with-postgresql</link><description>How to turn Postgres into an easy-to-use NoSQL database that retains all the power of SQL</description>- <pubDate>Wed, 23 Nov 2022 03:30:00 GMT</pubDate>+ <pubDate>Wed, 23 Nov 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgres-wasm</guid><title>Postgres WASM by Snaplet and Supabase</title><link>https://supabase.com/blog/postgres-wasm</link><description>We're open sourcing postgres-wasm, a PostgresQL server that runs inside a browser, with our friends at Snaplet.</description>- <pubDate>Sun, 02 Oct 2022 02:30:00 GMT</pubDate>+ <pubDate>Sun, 02 Oct 2022 22:00:00 GMT</pubDate></item></channel>diff --git a/apps/www/public/planetpg-egor_romanov-rss.xml b/apps/www/public/planetpg-egor_romanov-rss.xmlindex 19ba0a054f0..1f1992ad3bc 100644--- a/apps/www/public/planetpg-egor_romanov-rss.xml+++ b/apps/www/public/planetpg-egor_romanov-rss.xml@@ -5,21 +5,21 @@<link>https://supabase.com/blog</link><description>Latest Postgres news from Egor Romanov at Supabase</description><language>en</language>- <lastBuildDate>Wed, 02 Aug 2023 02:30:00 GMT</lastBuildDate>+ <lastBuildDate>Wed, 02 Aug 2023 22:00:00 GMT</lastBuildDate><atom:link href="https://supabase.com/planetpg-egor_romanov-rss.xml" rel="self" type="application/rss+xml"/><item><guid>https://supabase.com/blog/fewer-dimensions-are-better-pgvector</guid><title>pgvector: Fewer dimensions are better</title><link>https://supabase.com/blog/fewer-dimensions-are-better-pgvector</link><description>Increase performance in pgvector by using embedding vectors with fewer dimensions</description>- <pubDate>Wed, 02 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 02 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/pgvector-performance</guid><title>pgvector 0.4.0 performance</title><link>https://supabase.com/blog/pgvector-performance</link><description>There's been a lot of talk about pgvector performance lately, so we took some datasets and pushed pgvector to the limits to find out its strengths and limitations.</description>- <pubDate>Wed, 12 Jul 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 12 Jul 2023 22:00:00 GMT</pubDate></item></channel>diff --git a/apps/www/public/planetpg-gregnr-rss.xml b/apps/www/public/planetpg-gregnr-rss.xmlindex 8531a878bbe..38d0e18e8c1 100644--- a/apps/www/public/planetpg-gregnr-rss.xml+++ b/apps/www/public/planetpg-gregnr-rss.xml@@ -5,28 +5,28 @@<link>https://supabase.com/blog</link><description>Latest Postgres news from Greg Richardson at Supabase</description><language>en</language>- <lastBuildDate>Tue, 05 Sep 2023 02:30:00 GMT</lastBuildDate>+ <lastBuildDate>Tue, 05 Sep 2023 22:00:00 GMT</lastBuildDate><atom:link href="https://supabase.com/planetpg-gregnr-rss.xml" rel="self" type="application/rss+xml"/><item><guid>https://supabase.com/blog/increase-performance-pgvector-hnsw</guid><title>pgvector v0.5.0: Faster semantic search with HNSW indexes</title><link>https://supabase.com/blog/increase-performance-pgvector-hnsw</link><description>Increase performance in pgvector using HNSW indexes</description>- <pubDate>Tue, 05 Sep 2023 02:30:00 GMT</pubDate>+ <pubDate>Tue, 05 Sep 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/fewer-dimensions-are-better-pgvector</guid><title>pgvector: Fewer dimensions are better</title><link>https://supabase.com/blog/fewer-dimensions-are-better-pgvector</link><description>Increase performance in pgvector by using embedding vectors with fewer dimensions</description>- <pubDate>Wed, 02 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 02 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/openai-embeddings-postgres-vector</guid><title>Storing OpenAI embeddings in Postgres with pgvector</title><link>https://supabase.com/blog/openai-embeddings-postgres-vector</link><description>An example of how to build an AI-powered search engine using OpenAI's embeddings and PostgreSQL.</description>- <pubDate>Sun, 05 Feb 2023 03:30:00 GMT</pubDate>+ <pubDate>Sun, 05 Feb 2023 23:00:00 GMT</pubDate></item></channel>diff --git a/apps/www/public/planetpg-michel-rss.xml b/apps/www/public/planetpg-michel-rss.xmlindex d09950e4579..579efc5a58f 100644--- a/apps/www/public/planetpg-michel-rss.xml+++ b/apps/www/public/planetpg-michel-rss.xml@@ -5,21 +5,21 @@<link>https://supabase.com/blog</link><description>Latest Postgres news from Michel Pelletier at Supabase</description><language>en</language>- <lastBuildDate>Thu, 15 Dec 2022 03:30:00 GMT</lastBuildDate>+ <lastBuildDate>Thu, 15 Dec 2022 23:00:00 GMT</lastBuildDate><atom:link href="https://supabase.com/planetpg-michel-rss.xml" rel="self" type="application/rss+xml"/><item><guid>https://supabase.com/blog/vault-now-in-beta</guid><title>Supabase Vault is now in Beta</title><link>https://supabase.com/blog/vault-now-in-beta</link><description>A Postgres extension to store encrypted secrets and encrypt data.</description>- <pubDate>Thu, 15 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Thu, 15 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/transparent-column-encryption-with-postgres</guid><title>Transparent Column Encryption with Postgres</title><link>https://supabase.com/blog/transparent-column-encryption-with-postgres</link><description>Using pgsodium's Transparent Column Encryption to encrypt data and provide your users with row-level encryption.</description>- <pubDate>Wed, 30 Nov 2022 03:30:00 GMT</pubDate>+ <pubDate>Wed, 30 Nov 2022 23:00:00 GMT</pubDate></item></channel>diff --git a/apps/www/public/planetpg-oli_rice-rss.xml b/apps/www/public/planetpg-oli_rice-rss.xmlindex 83f449171c7..9f60e49a86a 100644--- a/apps/www/public/planetpg-oli_rice-rss.xml+++ b/apps/www/public/planetpg-oli_rice-rss.xml@@ -5,56 +5,56 @@<link>https://supabase.com/blog</link><description>Latest Postgres news from Oliver Rice at Supabase</description><language>en</language>- <lastBuildDate>Wed, 02 Aug 2023 02:30:00 GMT</lastBuildDate>+ <lastBuildDate>Wed, 02 Aug 2023 22:00:00 GMT</lastBuildDate><atom:link href="https://supabase.com/planetpg-oli_rice-rss.xml" rel="self" type="application/rss+xml"/><item><guid>https://supabase.com/blog/fewer-dimensions-are-better-pgvector</guid><title>pgvector: Fewer dimensions are better</title><link>https://supabase.com/blog/fewer-dimensions-are-better-pgvector</link><description>Increase performance in pgvector by using embedding vectors with fewer dimensions</description>- <pubDate>Wed, 02 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 02 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/whats-new-in-pg-graphql-v1-2</guid><title>What's New in pg_graphql v1.2</title><link>https://supabase.com/blog/whats-new-in-pg-graphql-v1-2</link><description>New Features in the v1.2 release of pg_graphql</description>- <pubDate>Thu, 20 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 20 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/type-constraints-in-65-lines-of-sql</guid><title>Type Constraints in 65 lines of SQL</title><link>https://supabase.com/blog/type-constraints-in-65-lines-of-sql</link><description>Creating validated data types in Postgres</description>- <pubDate>Thu, 16 Feb 2023 03:30:00 GMT</pubDate>+ <pubDate>Thu, 16 Feb 2023 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/pg-graphql-v1</guid><title>pg_graphql v1.0</title><link>https://supabase.com/blog/pg-graphql-v1</link><description>Announcing the v1.0 release of pg_graphql</description>- <pubDate>Thu, 15 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Thu, 15 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgres-foreign-data-wrappers-rust</guid><title>Supabase Wrappers, a Postgres FDW framework written in Rust</title><link>https://supabase.com/blog/postgres-foreign-data-wrappers-rust</link><description>A framework for building Postgres Foreign Data Wrappers which connects to Stripe, Firebase, Clickhouse, and more.</description>- <pubDate>Wed, 14 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Wed, 14 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/pg-jsonschema-a-postgres-extension-for-json-validation</guid><title>pg_jsonschema: JSON Schema support for Postgres</title><link>https://supabase.com/blog/pg-jsonschema-a-postgres-extension-for-json-validation</link><description>Today we're releasing pg_jsonschema, a Postgres extension for JSON validation.</description>- <pubDate>Thu, 18 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 18 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgres-audit</guid><title>Postgres Auditing in 150 lines of SQL</title><link>https://supabase.com/blog/postgres-audit</link><description>PostgreSQL has a robust set of features which we can leverage to create a generic auditing solution in 150 lines of SQL.</description>- <pubDate>Mon, 07 Mar 2022 03:30:00 GMT</pubDate>+ <pubDate>Mon, 07 Mar 2022 23:00:00 GMT</pubDate></item></channel>diff --git a/apps/www/public/planetpg-paul_copplestone-rss.xml b/apps/www/public/planetpg-paul_copplestone-rss.xmlindex 514a120378a..898129ded4a 100644--- a/apps/www/public/planetpg-paul_copplestone-rss.xml+++ b/apps/www/public/planetpg-paul_copplestone-rss.xml@@ -5,49 +5,49 @@<link>https://supabase.com/blog</link><description>Latest Postgres news from Paul Copplestone at Supabase</description><language>en</language>- <lastBuildDate>Sun, 30 Apr 2023 02:30:00 GMT</lastBuildDate>+ <lastBuildDate>Sun, 30 Apr 2023 22:00:00 GMT</lastBuildDate><atom:link href="https://supabase.com/planetpg-paul_copplestone-rss.xml" rel="self" type="application/rss+xml"/><item><guid>https://supabase.com/blog/postgres-pluggable-strorage</guid><title>Next steps for Postgres pluggable storage</title><link>https://supabase.com/blog/postgres-pluggable-strorage</link><description>Exploring history of Postgres pluggable storage and the possibility of landing it in the Postgres core.</description>- <pubDate>Sun, 30 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Sun, 30 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgres-foreign-data-wrappers-rust</guid><title>Supabase Wrappers, a Postgres FDW framework written in Rust</title><link>https://supabase.com/blog/postgres-foreign-data-wrappers-rust</link><description>A framework for building Postgres Foreign Data Wrappers which connects to Stripe, Firebase, Clickhouse, and more.</description>- <pubDate>Wed, 14 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Wed, 14 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgres-crdt</guid><title>pg_crdt - an experimental CRDT extension for Postgres</title><link>https://supabase.com/blog/postgres-crdt</link><description>Embedding Yjs and Automerge into Postgres for collaborative applications.</description>- <pubDate>Fri, 09 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Fri, 09 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/partial-postgresql-data-dumps-with-rls</guid><title>Partial data dumps using Postgres Row Level Security</title><link>https://supabase.com/blog/partial-postgresql-data-dumps-with-rls</link><description>Using RLS to create seed files for local PostgreSQL testing.</description>- <pubDate>Mon, 27 Jun 2022 02:30:00 GMT</pubDate>+ <pubDate>Mon, 27 Jun 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgres-as-a-cron-server</guid><title>Postgres as a CRON Server</title><link>https://supabase.com/blog/postgres-as-a-cron-server</link><description>Running repetitive tasks with your Postgres database.</description>- <pubDate>Fri, 05 Mar 2021 03:30:00 GMT</pubDate>+ <pubDate>Thu, 04 Mar 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgresql-views</guid><title>Postgres Views</title><link>https://supabase.com/blog/postgresql-views</link><description>Creating and using a view in PostgreSQL.</description>- <pubDate>Wed, 18 Nov 2020 03:30:00 GMT</pubDate>+ <pubDate>Tue, 17 Nov 2020 23:00:00 GMT</pubDate></item></channel>diff --git a/apps/www/public/planetpg-pavel-rss.xml b/apps/www/public/planetpg-pavel-rss.xmlindex d9a3bf714d4..efdbe154a7a 100644--- a/apps/www/public/planetpg-pavel-rss.xml+++ b/apps/www/public/planetpg-pavel-rss.xml@@ -5,28 +5,28 @@<link>https://supabase.com/blog</link><description>Latest Postgres news from Pavel Borisov at Supabase</description><language>en</language>- <lastBuildDate>Wed, 12 Jul 2023 02:30:00 GMT</lastBuildDate>+ <lastBuildDate>Wed, 12 Jul 2023 22:00:00 GMT</lastBuildDate><atom:link href="https://supabase.com/planetpg-pavel-rss.xml" rel="self" type="application/rss+xml"/><item><guid>https://supabase.com/blog/pgvector-performance</guid><title>pgvector 0.4.0 performance</title><link>https://supabase.com/blog/pgvector-performance</link><description>There's been a lot of talk about pgvector performance lately, so we took some datasets and pushed pgvector to the limits to find out its strengths and limitations.</description>- <pubDate>Wed, 12 Jul 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 12 Jul 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/new-in-postgres-15</guid><title>What's new in Postgres 15?</title><link>https://supabase.com/blog/new-in-postgres-15</link><description>Describes the release of Postgres 15, new features and reasons to use it</description>- <pubDate>Thu, 15 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Thu, 15 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgresql-commitfest</guid><title>What is PostgreSQL commitfest and how to contribute</title><link>https://supabase.com/blog/postgresql-commitfest</link><description>A time-tested method for contributing to the core Postgres code</description>- <pubDate>Wed, 26 Oct 2022 02:30:00 GMT</pubDate>+ <pubDate>Wed, 26 Oct 2022 22:00:00 GMT</pubDate></item></channel>diff --git a/apps/www/public/planetpg-steve_chavez-rss.xml b/apps/www/public/planetpg-steve_chavez-rss.xmlindex c1ce44c7e2c..d847d3c1fb7 100644--- a/apps/www/public/planetpg-steve_chavez-rss.xml+++ b/apps/www/public/planetpg-steve_chavez-rss.xml@@ -5,21 +5,21 @@<link>https://supabase.com/blog</link><description>Latest Postgres news from Steve Chavez at Supabase</description><language>en</language>- <lastBuildDate>Thu, 15 Dec 2022 03:30:00 GMT</lastBuildDate>+ <lastBuildDate>Thu, 15 Dec 2022 23:00:00 GMT</lastBuildDate><atom:link href="https://supabase.com/planetpg-steve_chavez-rss.xml" rel="self" type="application/rss+xml"/><item><guid>https://supabase.com/blog/postgrest-11-prerelease</guid><title>PostgREST 11 pre-release</title><link>https://supabase.com/blog/postgrest-11-prerelease</link><description>Describes new features of PostgREST 11 pre-release</description>- <pubDate>Thu, 15 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Thu, 15 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/roles-postgres-hooks</guid><title>Protecting reserved roles with PostgreSQL Hooks</title><link>https://supabase.com/blog/roles-postgres-hooks</link><description>Using Postgres Hooks to protect functionality in your Postgres database.</description>- <pubDate>Thu, 01 Jul 2021 02:30:00 GMT</pubDate>+ <pubDate>Thu, 01 Jul 2021 22:00:00 GMT</pubDate></item></channel>diff --git a/apps/www/public/planetpg-victor-rss.xml b/apps/www/public/planetpg-victor-rss.xmlindex 80df1ae78a8..fa14b827b4b 100644--- a/apps/www/public/planetpg-victor-rss.xml+++ b/apps/www/public/planetpg-victor-rss.xml@@ -5,28 +5,28 @@<link>https://supabase.com/blog</link><description>Latest Postgres news from Victor at Supabase</description><language>en</language>- <lastBuildDate>Thu, 13 Oct 2022 02:30:00 GMT</lastBuildDate>+ <lastBuildDate>Thu, 13 Oct 2022 22:00:00 GMT</lastBuildDate><atom:link href="https://supabase.com/planetpg-victor-rss.xml" rel="self" type="application/rss+xml"/><item><guid>https://supabase.com/blog/postgres-full-text-search-vs-the-rest</guid><title>Postgres Full Text Search vs the rest</title><link>https://supabase.com/blog/postgres-full-text-search-vs-the-rest</link><description>Comparing one of the most popular Postgres features against alternatives</description>- <pubDate>Thu, 13 Oct 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 13 Oct 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/choosing-a-postgres-primary-key</guid><title>Choosing a Postgres Primary Key</title><link>https://supabase.com/blog/choosing-a-postgres-primary-key</link><description>Turns out the question of which identifier to use as a Primary Key is complicated -- we're going to dive into some of the complexity and inherent trade-offs, and figure things out</description>- <pubDate>Wed, 07 Sep 2022 02:30:00 GMT</pubDate>+ <pubDate>Wed, 07 Sep 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/seen-by-in-postgresql</guid><title>Implementing "seen by" functionality with Postgres</title><link>https://supabase.com/blog/seen-by-in-postgresql</link><description>Different approaches for tracking visitor counts with PostgreSQL.</description>- <pubDate>Sun, 17 Jul 2022 02:30:00 GMT</pubDate>+ <pubDate>Sun, 17 Jul 2022 22:00:00 GMT</pubDate></item></channel>diff --git a/apps/www/public/rss.xml b/apps/www/public/rss.xmlindex 324b9eaf5ee..e20a23c666a 100644--- a/apps/www/public/rss.xml+++ b/apps/www/public/rss.xml@@ -5,1470 +5,1463 @@<link>https://supabase.com</link><description>Latest news from Supabase</description><language>en</language>- <lastBuildDate>Thu, 07 Sep 2023 02:30:00 GMT</lastBuildDate>+ <lastBuildDate>Thu, 07 Sep 2023 22:00:00 GMT</lastBuildDate><atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/><item><guid>https://supabase.com/blog/beta-update-august-2023</guid><title>Supabase Beta August 2023</title><link>https://supabase.com/blog/beta-update-august-2023</link><description>Launch Week 8 review and more things we shipped 🚀</description>- <pubDate>Thu, 07 Sep 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 07 Sep 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/increase-performance-pgvector-hnsw</guid><title>pgvector v0.5.0: Faster semantic search with HNSW indexes</title><link>https://supabase.com/blog/increase-performance-pgvector-hnsw</link><description>Increase performance in pgvector using HNSW indexes</description>- <pubDate>Tue, 05 Sep 2023 02:30:00 GMT</pubDate>+ <pubDate>Tue, 05 Sep 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/organization-based-billing</guid><title>Organization-based Billing, Project Transfers, Team plan</title><link>https://supabase.com/blog/organization-based-billing</link><description>Introducing the new Organization-based Billing</description>- <pubDate>Wed, 30 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 30 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/launch-week-8-hackathon-winners</guid><title>Launch Week 8 Hackathon Winners</title><link>https://supabase.com/blog/launch-week-8-hackathon-winners</link><description>Announcing the winners of the Launch Week 8 Hackathon!</description>- <pubDate>Wed, 23 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 23 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supavisor-1-million</guid><title>Supavisor: Scaling Postgres to 1 Million Connections</title><link>https://supabase.com/blog/supavisor-1-million</link><description>Supavisor is a scalable, cloud-native Postgres connection pooler. We connected a million clients to it to see how it performs.</description>- <pubDate>Thu, 10 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 10 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-soc2-hipaa</guid><title>Supabase is now HIPAA and SOC2 Type 2 compliant</title><link>https://supabase.com/blog/supabase-soc2-hipaa</link><description>This documents our journey from SOC2 Type 1 to SOC2 Type2 and HIPAA compliance. You can start building healthcare apps on Supabase today.</description>- <pubDate>Thu, 10 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 10 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/launch-week-8-community-highlights</guid><title>Launch Week 8 Community Highlights</title><link>https://supabase.com/blog/launch-week-8-community-highlights</link><description>Highlights from the community for the past 4 months.</description>- <pubDate>Thu, 10 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 10 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-integrations-marketplace</guid><title>Supabase Integrations Marketplace</title><link>https://supabase.com/blog/supabase-integrations-marketplace</link><description>Become a Supabase Integrations Partner: Publish OAuth Apps and Build with Supabase.</description>- <pubDate>Wed, 09 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 09 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/using-supabase-with-vercel</guid><title>Vercel Integration and Next.js App Router Support</title><link>https://supabase.com/blog/using-supabase-with-vercel</link><description>Using Supabase with Vercel and Next.js is now a lot easier.</description>- <pubDate>Wed, 09 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 09 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-studio-3-0</guid><title>Supabase Studio 3.0: AI SQL Editor, Schema Diagrams, and new Wrappers</title><link>https://supabase.com/blog/supabase-studio-3-0</link><description>Supabase Studio now comes with an AI assisted SQL Editor, schema diagrams, and much more.</description>- <pubDate>Tue, 08 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Tue, 08 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-local-dev</guid><title>Supabase Local Dev: migrations, branching, and observability</title><link>https://supabase.com/blog/supabase-local-dev</link><description>New features to streamline the interaction between CLI, code editors, and remote databases.</description>- <pubDate>Mon, 07 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Mon, 07 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/hugging-face-supabase</guid><title>Hugging Face is now supported in Supabase</title><link>https://supabase.com/blog/hugging-face-supabase</link><description>We've added support Hugging Face support in our Python Vector Client and Edge Functions.</description>- <pubDate>Sun, 06 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Sun, 06 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/why-supabase-remote</guid><title>Why we'll stay remote</title><link>https://supabase.com/blog/why-supabase-remote</link><description>Offices are making a comeback, just not at Supabase.</description>- <pubDate>Fri, 04 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Fri, 04 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/interactive-constellation-threejs-react-three-fiber</guid><title>Coding the stars - an interactive constellation with Three.js and React Three Fiber</title><link>https://supabase.com/blog/interactive-constellation-threejs-react-three-fiber</link><description>How we built a constellation of stars with Three.js and React Three Fiber.</description>- <pubDate>Thu, 03 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 03 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/fewer-dimensions-are-better-pgvector</guid><title>pgvector: Fewer dimensions are better</title><link>https://supabase.com/blog/fewer-dimensions-are-better-pgvector</link><description>Increase performance in pgvector by using embedding vectors with fewer dimensions</description>- <pubDate>Wed, 02 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 02 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/beta-update-july-2023</guid><title>Supabase Beta July 2023</title><link>https://supabase.com/blog/beta-update-july-2023</link><description>Launch Week 8 is coming - but we still shipped some goodies during July</description>- <pubDate>Tue, 01 Aug 2023 02:30:00 GMT</pubDate>+ <pubDate>Tue, 01 Aug 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/react-native-storage</guid><title>React Native file upload with Supabase Storage</title><link>https://supabase.com/blog/react-native-storage</link><description>Learn how to implement authentication and file upload in a React Native app.</description>- <pubDate>Mon, 31 Jul 2023 02:30:00 GMT</pubDate>+ <pubDate>Mon, 31 Jul 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-lw8-hackathon</guid><title>Supabase Launch Week 8 Hackathon</title><link>https://supabase.com/blog/supabase-lw8-hackathon</link><description>Build an Open Source Project over 10 days. 5 prize categories.</description>- <pubDate>Mon, 24 Jul 2023 02:30:00 GMT</pubDate>+ <pubDate>Mon, 24 Jul 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/flutter-authentication</guid><title>Getting started with Flutter authentication</title><link>https://supabase.com/blog/flutter-authentication</link><description>Learn how authentication on Flutter works through Google sign in with Supabase auth.</description>- <pubDate>Mon, 17 Jul 2023 02:30:00 GMT</pubDate>+ <pubDate>Mon, 17 Jul 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/pgvector-performance</guid><title>pgvector 0.4.0 performance</title><link>https://supabase.com/blog/pgvector-performance</link><description>There's been a lot of talk about pgvector performance lately, so we took some datasets and pushed pgvector to the limits to find out its strengths and limitations.</description>- <pubDate>Wed, 12 Jul 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 12 Jul 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgrest-11-1-release</guid><title>What is new in PostgREST v11.1?</title><link>https://supabase.com/blog/postgrest-11-1-release</link><description>Impersonated Role Settings, Configurable Isolation Level, improved Bulk Insert, and more</description>- <pubDate>Tue, 11 Jul 2023 02:30:00 GMT</pubDate>+ <pubDate>Tue, 11 Jul 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-update-june-2023</guid><title>Supabase Beta June 2023</title><link>https://supabase.com/blog/supabase-beta-update-june-2023</link><description>A plethora of announcements... read till the end to find out when is the new Launch Week</description>- <pubDate>Wed, 05 Jul 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 05 Jul 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/native-mobile-auth</guid><title>Native Mobile Auth Support for Google and Apple Sign in</title><link>https://supabase.com/blog/native-mobile-auth</link><description>Supabase auth adds full support for native mobile sign in with Apple and Google.</description>- <pubDate>Mon, 26 Jun 2023 02:30:00 GMT</pubDate>+ <pubDate>Mon, 26 Jun 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-update-may-2023</guid><title>Supabase Beta May 2023</title><link>https://supabase.com/blog/supabase-beta-update-may-2023</link><description>Learn about the great things we shipped last month. Spoiler alert... lots of AI.</description>- <pubDate>Thu, 08 Jun 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 08 Jun 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/vecs</guid><title>Supabase Vecs: a vector client for Postgres</title><link>https://supabase.com/blog/vecs</link><description>Introducing Supabase Vecs, a PostgreSQL vector client</description>- <pubDate>Sun, 28 May 2023 02:30:00 GMT</pubDate>+ <pubDate>Sun, 28 May 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/flutter-hackathon-winners</guid><title>Flutter Hackathon Winners</title><link>https://supabase.com/blog/flutter-hackathon-winners</link><description>Announcing the winners of the Flutter Hackathon!</description>- <pubDate>Sun, 28 May 2023 02:30:00 GMT</pubDate>+ <pubDate>Sun, 28 May 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/chatgpt-plugins-support-postgres</guid><title>ChatGPT plugins now support Postgres & Supabase</title><link>https://supabase.com/blog/chatgpt-plugins-support-postgres</link><description>Supabase recently contributed to the OpenAI Retrieval Plugin repo with a Postgres and a Supabase implementation to help developers build ChatGPT plugins using pgvector.</description>- <pubDate>Wed, 24 May 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 24 May 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/building-chatgpt-plugins-template</guid><title>Building ChatGPT Plugins with Supabase Edge Runtime</title><link>https://supabase.com/blog/building-chatgpt-plugins-template</link><description>We're releasing a ChatGPT plugin template written in TypeScript and running on Deno!</description>- <pubDate>Sun, 14 May 2023 02:30:00 GMT</pubDate>+ <pubDate>Sun, 14 May 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/flutter-hackathon</guid><title>Flutter Hackathon</title><link>https://supabase.com/blog/flutter-hackathon</link><description>Build Flutter apps and win limited edition swag.</description>- <pubDate>Thu, 11 May 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 11 May 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-update-april-2023</guid><title>Supabase Beta April 2023</title><link>https://supabase.com/blog/supabase-beta-update-april-2023</link><description>A review of Launch Week 7 and more exciting updates from last month.</description>- <pubDate>Mon, 08 May 2023 02:30:00 GMT</pubDate>+ <pubDate>Mon, 08 May 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/flutter-multi-factor-authentication</guid><title>Securing your Flutter apps with Multi-Factor Authentication</title><link>https://supabase.com/blog/flutter-multi-factor-authentication</link><description>Build a Flutter app where the user is required to authenticate using Multi-Factor Authentication.</description>- <pubDate>Wed, 03 May 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 03 May 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgres-pluggable-strorage</guid><title>Next steps for Postgres pluggable storage</title><link>https://supabase.com/blog/postgres-pluggable-strorage</link><description>Exploring history of Postgres pluggable storage and the possibility of landing it in the Postgres core.</description>- <pubDate>Sun, 30 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Sun, 30 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/launch-week-7-hackathon-winners</guid><title>Launch Week 7 Hackathon Winners</title><link>https://supabase.com/blog/launch-week-7-hackathon-winners</link><description>Announcing the winners of the Launch Week 7 Hackathon!</description>- <pubDate>Sun, 23 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Sun, 23 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/whats-new-in-pg-graphql-v1-2</guid><title>What's New in pg_graphql v1.2</title><link>https://supabase.com/blog/whats-new-in-pg-graphql-v1-2</link><description>New Features in the v1.2 release of pg_graphql</description>- <pubDate>Thu, 20 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 20 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-studio-2.0</guid><title>Supabase Studio 2.0: help when you need it most</title><link>https://supabase.com/blog/supabase-studio-2.0</link><description>Supabase Studio now comes with ChatGPT, and GraphiQL built in, Cascade Deletes, and Foreign Key Selectors, and much more.</description>- <pubDate>Thu, 13 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 13 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/dbdev</guid><title>dbdev: PostgreSQL Package Manager</title><link>https://supabase.com/blog/dbdev</link><description>We're publicly previewing dbdev, a PostgreSQL package manager.</description>- <pubDate>Thu, 13 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 13 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/pg-tle</guid><title>Trusted Language Extensions for Postgres</title><link>https://supabase.com/blog/pg-tle</link><description>We're collaborating with AWS to bring Trusted Language Extensions to Postgres.</description>- <pubDate>Thu, 13 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 13 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/launch-week-7-community-highlights</guid><title>Launch Week 7 Community Highlights</title><link>https://supabase.com/blog/launch-week-7-community-highlights</link><description>We're honored to work with, sponsor, and support incredible people and tools. Here is a highlight of the last 3 months.</description>- <pubDate>Thu, 13 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 13 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-auth-sso-pkce</guid><title>Supabase Auth: SSO, Mobile, and Server-side support</title><link>https://supabase.com/blog/supabase-auth-sso-pkce</link><description>Supacharging Supabase Auth with Sign in with Apple on iOS, Single-Sign-On support with SAML 2.0, and PKCE for server-side rendering and mobile auth.</description>- <pubDate>Wed, 12 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Wed, 12 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/storage-v3-resumable-uploads</guid><title>Supabase Storage v3: Resumable Uploads with support for 50GB files</title><link>https://supabase.com/blog/storage-v3-resumable-uploads</link><description>Storage V3 with lots of new features including resumable uploads, more image transformationsm a Next.js image loader and more.</description>- <pubDate>Tue, 11 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Tue, 11 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/edge-runtime-self-hosted-deno-functions</guid><title>Supabase Edge Runtime: Self-hosted Deno Functions</title><link>https://supabase.com/blog/edge-runtime-self-hosted-deno-functions</link><description>We are open-sourcing Supabase Edge Runtime allowing you to host your Edge Functions anywhere.</description>- <pubDate>Mon, 10 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Mon, 10 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-logs-self-hosted</guid><title>Supabase Logs: open source logging server</title><link>https://supabase.com/blog/supabase-logs-self-hosted</link><description>We're releasing Supabase Logs for both self-hosted users and CLI development.</description>- <pubDate>Sun, 09 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Sun, 09 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-update-march-2023</guid><title>Supabase Beta March 2023</title><link>https://supabase.com/blog/supabase-beta-update-march-2023</link><description>We are in full shipping mode 🛥️… Launch Week 7 can’t come quickly enough!</description>- <pubDate>Fri, 07 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Fri, 07 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/launch-week-7-hackathon</guid><title>The Supabase AI Hackathon</title><link>https://supabase.com/blog/launch-week-7-hackathon</link><description>Build an Open Source Project over 10 days. 5 prize categories.</description>- <pubDate>Thu, 06 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 06 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/designing-with-ai-midjourney</guid><title>Designing with AI: Generating unique artwork for every user</title><link>https://supabase.com/blog/designing-with-ai-midjourney</link><description>Using MidJourney to generative artwork and serving ticket images with Edge Functions</description>- <pubDate>Thu, 06 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Thu, 06 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/infinite-scroll-with-nextjs-framer-motion</guid><title>Infinite scroll with Next.js, Framer Motion, and Supabase</title><link>https://supabase.com/blog/infinite-scroll-with-nextjs-framer-motion</link><description>Lazy load and paginate data on scroll with Next.js and a sprinkle of Framer Motion magic ✨</description>- <pubDate>Mon, 03 Apr 2023 02:30:00 GMT</pubDate>+ <pubDate>Mon, 03 Apr 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supaclub</guid><title>SupaClub</title><link>https://supabase.com/blog/supaclub</link><description>The Worlds First Software Engineering Nightclub.</description>- <pubDate>Fri, 31 Mar 2023 02:30:00 GMT</pubDate>+ <pubDate>Fri, 31 Mar 2023 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-update-february-2023</guid><title>Supabase Beta February 2023</title><link>https://supabase.com/blog/supabase-beta-update-february-2023</link><description>There is something for everybody this month - AI, Auth, Database, Edge Functions, GraphQL … you name it!</description>- <pubDate>Wed, 08 Mar 2023 03:30:00 GMT</pubDate>+ <pubDate>Wed, 08 Mar 2023 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/geo-queries-with-postgis-in-ionic-angular</guid><title>Geo Queries with PostGIS in Ionic Angular</title><link>https://supabase.com/blog/geo-queries-with-postgis-in-ionic-angular</link><description>Using the PostGIS extension to build a cross-platform application with Ionic Angular.</description>- <pubDate>Tue, 28 Feb 2023 03:30:00 GMT</pubDate>+ <pubDate>Tue, 28 Feb 2023 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/type-constraints-in-65-lines-of-sql</guid><title>Type Constraints in 65 lines of SQL</title><link>https://supabase.com/blog/type-constraints-in-65-lines-of-sql</link><description>Creating validated data types in Postgres</description>- <pubDate>Thu, 16 Feb 2023 03:30:00 GMT</pubDate>+ <pubDate>Thu, 16 Feb 2023 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/case-study-happyteams</guid><title>HappyTeams unlocks better performance and reduces cost with Supabase</title><link>https://supabase.com/blog/case-study-happyteams</link><description>How a bootstrapped startup migrated from Heroku to Supabase in 30 minutes and never looked back</description>- <pubDate>Wed, 15 Feb 2023 03:30:00 GMT</pubDate>+ <pubDate>Wed, 15 Feb 2023 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/flutter-real-time-multiplayer-game</guid><title>How to build a real-time multiplayer game with Flutter Flame</title><link>https://supabase.com/blog/flutter-real-time-multiplayer-game</link><description>Build a real-time multiplayer game using Flutter, Flame, and Supabase realtime.</description>- <pubDate>Mon, 13 Feb 2023 03:30:00 GMT</pubDate>+ <pubDate>Mon, 13 Feb 2023 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-january-2023</guid><title>Supabase Beta January 2023</title><link>https://supabase.com/blog/supabase-beta-january-2023</link><description>New Postgres extensions, pg_graphql updates, changes to Edge Functions, and more!</description>- <pubDate>Tue, 07 Feb 2023 03:30:00 GMT</pubDate>+ <pubDate>Tue, 07 Feb 2023 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/chatgpt-supabase-docs</guid><title>Supabase Clippy: ChatGPT for Supabase Docs</title><link>https://supabase.com/blog/chatgpt-supabase-docs</link><description>Creating a ChatGPT interface for the Supabase documentation.</description>- <pubDate>Mon, 06 Feb 2023 03:30:00 GMT</pubDate>+ <pubDate>Mon, 06 Feb 2023 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/openai-embeddings-postgres-vector</guid><title>Storing OpenAI embeddings in Postgres with pgvector</title><link>https://supabase.com/blog/openai-embeddings-postgres-vector</link><description>An example of how to build an AI-powered search engine using OpenAI's embeddings and PostgreSQL.</description>- <pubDate>Sun, 05 Feb 2023 03:30:00 GMT</pubDate>+ <pubDate>Sun, 05 Feb 2023 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-december-2022</guid><title>Supabase Beta December 2022</title><link>https://supabase.com/blog/supabase-beta-december-2022</link><description>This month the Beta Update is a Launch Week 6 Special, where we review the cascade of announcements.</description>- <pubDate>Wed, 04 Jan 2023 03:30:00 GMT</pubDate>+ <pubDate>Wed, 04 Jan 2023 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/launch-week-6-hackathon-winners</guid><title>Launch Week 6 Hackathon Winners</title><link>https://supabase.com/blog/launch-week-6-hackathon-winners</link><description>Announcing the winners of the Launch Week 6 Hackathon!</description>- <pubDate>Mon, 02 Jan 2023 03:30:00 GMT</pubDate>+ <pubDate>Mon, 02 Jan 2023 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/vault-now-in-beta</guid><title>Supabase Vault is now in Beta</title><link>https://supabase.com/blog/vault-now-in-beta</link><description>A Postgres extension to store encrypted secrets and encrypt data.</description>- <pubDate>Thu, 15 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Thu, 15 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgrest-11-prerelease</guid><title>PostgREST 11 pre-release</title><link>https://supabase.com/blog/postgrest-11-prerelease</link><description>Describes new features of PostgREST 11 pre-release</description>- <pubDate>Thu, 15 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Thu, 15 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgres-point-in-time-recovery</guid><title>Point in Time Recovery is now available for Pro projects</title><link>https://supabase.com/blog/postgres-point-in-time-recovery</link><description>We're making PITR available for more projects, with a new Dashboard UI that makes it simple to use.</description>- <pubDate>Thu, 15 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Thu, 15 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/pg-graphql-v1</guid><title>pg_graphql v1.0</title><link>https://supabase.com/blog/pg-graphql-v1</link><description>Announcing the v1.0 release of pg_graphql</description>- <pubDate>Thu, 15 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Thu, 15 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/new-in-postgres-15</guid><title>What's new in Postgres 15?</title><link>https://supabase.com/blog/new-in-postgres-15</link><description>Describes the release of Postgres 15, new features and reasons to use it</description>- <pubDate>Thu, 15 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Thu, 15 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/launch-week-6-wrap-up</guid><title>Launch Week 6: Wrap Up</title><link>https://supabase.com/blog/launch-week-6-wrap-up</link><description>That's a wrap on Supabase Launch Week Day 6. Here's everything we shipped in one long blog post.</description>- <pubDate>Thu, 15 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Thu, 15 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/launch-week-6-community-day</guid><title>Community Day</title><link>https://supabase.com/blog/launch-week-6-community-day</link><description>Wrapping up Launch Week 6 with contributors, partners, and friends.</description>- <pubDate>Thu, 15 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Thu, 15 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/custom-domain-names</guid><title>Custom Domain Names</title><link>https://supabase.com/blog/custom-domain-names</link><description>Change your Supabase project's domain name to your own domain.</description>- <pubDate>Thu, 15 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Thu, 15 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgres-foreign-data-wrappers-rust</guid><title>Supabase Wrappers, a Postgres FDW framework written in Rust</title><link>https://supabase.com/blog/postgres-foreign-data-wrappers-rust</link><description>A framework for building Postgres Foreign Data Wrappers which connects to Stripe, Firebase, Clickhouse, and more.</description>- <pubDate>Wed, 14 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Wed, 14 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/mfa-auth-via-rls</guid><title>Multi-factor Authentication via Row Level Security Enforcement</title><link>https://supabase.com/blog/mfa-auth-via-rls</link><description>MFA Auth with enforcement via RLS</description>- <pubDate>Tue, 13 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Tue, 13 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/storage-image-resizing-smart-cdn</guid><title>Supabase Storage v2: Image resizing and Smart CDN</title><link>https://supabase.com/blog/storage-image-resizing-smart-cdn</link><description>We're introducing new features for Supabase Storage: Image resizing and a Smart CDN.</description>- <pubDate>Mon, 12 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Mon, 12 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/new-supabase-docs-built-with-nextjs</guid><title>New Supabase Docs, built with Next.js</title><link>https://supabase.com/blog/new-supabase-docs-built-with-nextjs</link><description>We've redesigned our Docs and migrated to Next.js</description>- <pubDate>Sun, 11 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Sun, 11 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgres-crdt</guid><title>pg_crdt - an experimental CRDT extension for Postgres</title><link>https://supabase.com/blog/postgres-crdt</link><description>Embedding Yjs and Automerge into Postgres for collaborative applications.</description>- <pubDate>Fri, 09 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Fri, 09 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/who-we-hire</guid><title>Who We Hire at Supabase</title><link>https://supabase.com/blog/who-we-hire</link><description>Traits we look for to maintain a culture of shipping fast and often</description>- <pubDate>Thu, 08 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Thu, 08 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/launch-week-6-hackathon</guid><title>Launch Week 6 Hackathon</title><link>https://supabase.com/blog/launch-week-6-hackathon</link><description>Build an Open Source Project, Win $1500 and the Supabase Darkmode Keyboard</description>- <pubDate>Thu, 08 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Thu, 08 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-november-2022</guid><title>Supabase Beta November 2022</title><link>https://supabase.com/blog/supabase-beta-november-2022</link><description>We are preparing everything for Launch Week 6, but we still had time to ship some goodies this month!</description>- <pubDate>Tue, 06 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Tue, 06 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/the-supabase-content-storm</guid><title>The Supabase Content Storm</title><link>https://supabase.com/blog/the-supabase-content-storm</link><description>We worked with +30 content creators to drop a mountain of content simultaneously.</description>- <pubDate>Mon, 05 Dec 2022 03:30:00 GMT</pubDate>+ <pubDate>Mon, 05 Dec 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/transparent-column-encryption-with-postgres</guid><title>Transparent Column Encryption with Postgres</title><link>https://supabase.com/blog/transparent-column-encryption-with-postgres</link><description>Using pgsodium's Transparent Column Encryption to encrypt data and provide your users with row-level encryption.</description>- <pubDate>Wed, 30 Nov 2022 03:30:00 GMT</pubDate>+ <pubDate>Wed, 30 Nov 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/sql-or-nosql-both-with-postgresql</guid><title>SQL or NoSQL? Why not use both (with PostgreSQL)?</title><link>https://supabase.com/blog/sql-or-nosql-both-with-postgresql</link><description>How to turn Postgres into an easy-to-use NoSQL database that retains all the power of SQL</description>- <pubDate>Wed, 23 Nov 2022 03:30:00 GMT</pubDate>+ <pubDate>Wed, 23 Nov 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/flutter-authorization-with-rls</guid><title>Flutter Authorization with RLS</title><link>https://supabase.com/blog/flutter-authorization-with-rls</link><description>Learn how you can secure your Flutter app using Supabase Row Level Security.</description>- <pubDate>Mon, 21 Nov 2022 03:30:00 GMT</pubDate>+ <pubDate>Mon, 21 Nov 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/fetching-and-caching-supabase-data-in-next-js-server-components</guid><title>Fetching and caching Supabase data in Next.js 13 Server Components</title><link>https://supabase.com/blog/fetching-and-caching-supabase-data-in-next-js-server-components</link><description>Next.js 13 introduces new data fetching and caching methods to enable React Server Components and Suspense.</description>- <pubDate>Wed, 16 Nov 2022 03:30:00 GMT</pubDate>+ <pubDate>Wed, 16 Nov 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/authentication-in-ionic-angular</guid><title>Authentication in Ionic Angular with Supabase</title><link>https://supabase.com/blog/authentication-in-ionic-angular</link><description>Learn how to build an Ionic Angular app with authentication, Row Level Security, and Magic Link auth.</description>- <pubDate>Mon, 07 Nov 2022 03:30:00 GMT</pubDate>+ <pubDate>Mon, 07 Nov 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-update-october-2022</guid><title>Supabase Beta October 2022</title><link>https://supabase.com/blog/supabase-beta-update-october-2022</link><description>New SDKs, quickstarts, Functions tricks, and more. But, more importantly, Launch Week 6️ has a date!</description>- <pubDate>Tue, 01 Nov 2022 02:30:00 GMT</pubDate>+ <pubDate>Tue, 01 Nov 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgresql-commitfest</guid><title>What is PostgreSQL commitfest and how to contribute</title><link>https://supabase.com/blog/postgresql-commitfest</link><description>A time-tested method for contributing to the core Postgres code</description>- <pubDate>Wed, 26 Oct 2022 02:30:00 GMT</pubDate>+ <pubDate>Wed, 26 Oct 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-flutter-sdk-v1-released</guid><title>supabase-flutter v1 Released</title><link>https://supabase.com/blog/supabase-flutter-sdk-v1-released</link><description>We've released supabase-flutter v1. More intuitive way of accessing Supabase from your Flutter application.</description>- <pubDate>Thu, 20 Oct 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 20 Oct 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-js-v2-released</guid><title>supabase-js v2 Released</title><link>https://supabase.com/blog/supabase-js-v2-released</link><description>We've released supabase-js v2. Updated examples, quickstarts, and an improved experience.</description>- <pubDate>Wed, 19 Oct 2022 02:30:00 GMT</pubDate>+ <pubDate>Wed, 19 Oct 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgres-full-text-search-vs-the-rest</guid><title>Postgres Full Text Search vs the rest</title><link>https://supabase.com/blog/postgres-full-text-search-vs-the-rest</link><description>Comparing one of the most popular Postgres features against alternatives</description>- <pubDate>Thu, 13 Oct 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 13 Oct 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-update-september-2022</guid><title>Supabase Beta September 2022</title><link>https://supabase.com/blog/supabase-beta-update-september-2022</link><description>We were too focused on clearing out the backlog so we didn't ship anything new last month... or did we?!</description>- <pubDate>Tue, 04 Oct 2022 02:30:00 GMT</pubDate>+ <pubDate>Tue, 04 Oct 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgres-wasm</guid><title>Postgres WASM by Snaplet and Supabase</title><link>https://supabase.com/blog/postgres-wasm</link><description>We're open sourcing postgres-wasm, a PostgresQL server that runs inside a browser, with our friends at Snaplet.</description>- <pubDate>Sun, 02 Oct 2022 02:30:00 GMT</pubDate>+ <pubDate>Sun, 02 Oct 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/choosing-a-postgres-primary-key</guid><title>Choosing a Postgres Primary Key</title><link>https://supabase.com/blog/choosing-a-postgres-primary-key</link><description>Turns out the question of which identifier to use as a Primary Key is complicated -- we're going to dive into some of the complexity and inherent trade-offs, and figure things out</description>- <pubDate>Wed, 07 Sep 2022 02:30:00 GMT</pubDate>+ <pubDate>Wed, 07 Sep 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-update-august-2022</guid><title>Supabase Beta August 2022</title><link>https://supabase.com/blog/supabase-beta-update-august-2022</link><description>Launch Week Special. See everything we shipped, plus winners of the Hackathon and the extended Community Highlights</description>- <pubDate>Tue, 06 Sep 2022 02:30:00 GMT</pubDate>+ <pubDate>Tue, 06 Sep 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/launch-week-5-hackathon-winners</guid><title>Launch Week 5 Hackathon Winners</title><link>https://supabase.com/blog/launch-week-5-hackathon-winners</link><description>Announcing the winners of the Launch Week 5 Hackathon!</description>- <pubDate>Wed, 24 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Wed, 24 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/building-a-realtime-trello-board-with-supabase-and-angular</guid><title>Building a Realtime Trello Board with Supabase and Angular</title><link>https://supabase.com/blog/building-a-realtime-trello-board-with-supabase-and-angular</link><description>Go beyond the hello world example with this real world project.</description>- <pubDate>Tue, 23 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Tue, 23 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-vault</guid><title>Supabase Vault</title><link>https://supabase.com/blog/supabase-vault</link><description>Today we're announcing Vault, a Postgres extension for managing secrets and encryption inside your database.</description>- <pubDate>Thu, 18 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 18 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgrest-v10</guid><title>PostgREST v10: EXPLAIN and Improved Relationship Detection</title><link>https://supabase.com/blog/postgrest-v10</link><description>Today, PostgREST 10 was released. Let's take a look at some of the new features that go hand in hand with supabase-js v2.</description>- <pubDate>Thu, 18 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 18 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/pg-jsonschema-a-postgres-extension-for-json-validation</guid><title>pg_jsonschema: JSON Schema support for Postgres</title><link>https://supabase.com/blog/pg-jsonschema-a-postgres-extension-for-json-validation</link><description>Today we're releasing pg_jsonschema, a Postgres extension for JSON validation.</description>- <pubDate>Thu, 18 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 18 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/launch-week-5-one-more-thing</guid><title>One more thing</title><link>https://supabase.com/blog/launch-week-5-one-more-thing</link><description>Let's be honest, it's never just one more thing.</description>- <pubDate>Thu, 18 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 18 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/launch-week-5-community-day</guid><title>Community Day</title><link>https://supabase.com/blog/launch-week-5-community-day</link><description>Wrapping up Launch Week 5 with contributors, partners, and friends.</description>- <pubDate>Thu, 18 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 18 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-realtime-multiplayer-general-availability</guid><title>Realtime: Multiplayer Edition</title><link>https://supabase.com/blog/supabase-realtime-multiplayer-general-availability</link><description>Announcing the general availability of Realtime's Broadcast and Presence.</description>- <pubDate>Wed, 17 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Wed, 17 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-soc2</guid><title>Supabase is SOC2 compliant</title><link>https://supabase.com/blog/supabase-soc2</link><description>Supabase is now SOC2 compliant. Learn how we got here and what it means for our customers.</description>- <pubDate>Tue, 16 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Tue, 16 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-js-v2</guid><title>supabase-js v2</title><link>https://supabase.com/blog/supabase-js-v2</link><description>A look at supabase-js v2, which brings type support and focuses on quality-of-life improvements for developers.</description>- <pubDate>Mon, 15 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Mon, 15 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-cli-v1-and-admin-api-beta</guid><title>Supabase CLI v1 and Management API Beta</title><link>https://supabase.com/blog/supabase-cli-v1-and-admin-api-beta</link><description>We are moving Supabase CLI v1 out of beta, and releasing Management API beta.</description>- <pubDate>Sun, 14 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Sun, 14 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-series-b</guid><title>Supabase Series B</title><link>https://supabase.com/blog/supabase-series-b</link><description>Supabase raised $80M in May, bringing our total funding to $116M.</description>- <pubDate>Thu, 11 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 11 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/launch-week-5-hackathon</guid><title>Launch Week 5 Hackathon</title><link>https://supabase.com/blog/launch-week-5-hackathon</link><description>Build to win $1500 - Friday 12th to Monday 21st August 2022</description>- <pubDate>Tue, 09 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Tue, 09 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/slack-consolidate-slackbot-to-consolidate-messages</guid><title>Slack Consolidate: a slackbot built with Python and Supabase</title><link>https://supabase.com/blog/slack-consolidate-slackbot-to-consolidate-messages</link><description>A slackbot to consolidate messages from different channels using Supabase, Slack SDK and Python</description>- <pubDate>Mon, 08 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Mon, 08 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-update-july-2022</guid><title>Supabase Beta July 2022</title><link>https://supabase.com/blog/supabase-beta-update-july-2022</link><description>Launch Week Golden Tickets, Flutter SDK 1.0 Developer Preview and more...</description>- <pubDate>Tue, 02 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Tue, 02 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-flutter-sdk-1-developer-preview</guid><title>Supabase Flutter SDK 1.0 Developer Preview</title><link>https://supabase.com/blog/supabase-flutter-sdk-1-developer-preview</link><description>Supabase Flutter SDK is getting a major update and we need your help making it better.</description>- <pubDate>Mon, 01 Aug 2022 02:30:00 GMT</pubDate>+ <pubDate>Mon, 01 Aug 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/seen-by-in-postgresql</guid><title>Implementing "seen by" functionality with Postgres</title><link>https://supabase.com/blog/seen-by-in-postgresql</link><description>Different approaches for tracking visitor counts with PostgreSQL.</description>- <pubDate>Sun, 17 Jul 2022 02:30:00 GMT</pubDate>+ <pubDate>Sun, 17 Jul 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-auth-helpers-with-sveltekit-support</guid><title>Revamped Auth Helpers for Supabase (with SvelteKit support)</title><link>https://supabase.com/blog/supabase-auth-helpers-with-sveltekit-support</link><description>Supabase Auth Helpers now have improved developer experience, Sveltekit support, and more.</description>- <pubDate>Tue, 12 Jul 2022 02:30:00 GMT</pubDate>+ <pubDate>Tue, 12 Jul 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/beta-update-june-2022</guid><title>Supabase Beta June 2022</title><link>https://supabase.com/blog/beta-update-june-2022</link><description>Auth Helpers, Unlimited Free Projects, CLI and more...</description>- <pubDate>Tue, 05 Jul 2022 02:30:00 GMT</pubDate>+ <pubDate>Tue, 05 Jul 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/flutter-tutorial-building-a-chat-app</guid><title>Flutter Tutorial: building a Flutter chat app</title><link>https://supabase.com/blog/flutter-tutorial-building-a-chat-app</link><description>Learn how to build a Flutter chat app with open source and scalable backend (inc. auth, realtime, database, and more).</description>- <pubDate>Wed, 29 Jun 2022 02:30:00 GMT</pubDate>+ <pubDate>Wed, 29 Jun 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/visualizing-supabase-data-using-metabase</guid><title>Visualizing Supabase Data using Metabase</title><link>https://supabase.com/blog/visualizing-supabase-data-using-metabase</link><description>How to create different kinds of charts out of data stored in Supabase using Metabase.</description>- <pubDate>Tue, 28 Jun 2022 02:30:00 GMT</pubDate>+ <pubDate>Tue, 28 Jun 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/partial-postgresql-data-dumps-with-rls</guid><title>Partial data dumps using Postgres Row Level Security</title><link>https://supabase.com/blog/partial-postgresql-data-dumps-with-rls</link><description>Using RLS to create seed files for local PostgreSQL testing.</description>- <pubDate>Mon, 27 Jun 2022 02:30:00 GMT</pubDate>+ <pubDate>Mon, 27 Jun 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/loading-data-supabase-python</guid><title>Python data loading with Supabase</title><link>https://supabase.com/blog/loading-data-supabase-python</link><description>An example of how to load data into Supabase using supabase-py</description>- <pubDate>Thu, 16 Jun 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 16 Jun 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/beta-update-may-2022</guid><title>Supabase Beta May 2022</title><link>https://supabase.com/blog/beta-update-may-2022</link><description>Product and community updates including wildcard auth redirects, edge functions with webhooks, and Prometheus endpoints for everybody.</description>- <pubDate>Tue, 31 May 2022 02:30:00 GMT</pubDate>+ <pubDate>Tue, 31 May 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/how-supabase-accelerates-development-of-all-pull-together</guid><title>How Mike Lyndon is using Supabase to accelerate development of AllPullTogether</title><link>https://supabase.com/blog/how-supabase-accelerates-development-of-all-pull-together</link><description>Mike Lyndon is learning web development as he builds AllPullTogether, and Supabase is helping him accelerate what he can accomplish.</description>- <pubDate>Wed, 25 May 2022 02:30:00 GMT</pubDate>+ <pubDate>Wed, 25 May 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/partner-gallery-works-with-supabase</guid><title>Works With Supabase - announcing our Partner Gallery</title><link>https://supabase.com/blog/partner-gallery-works-with-supabase</link><description>Introducing our Partner Gallery - open source and made with Supabase.</description>- <pubDate>Tue, 19 Apr 2022 02:30:00 GMT</pubDate>+ <pubDate>Tue, 19 Apr 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/bring-the-func-hackathon-winners</guid><title>Bring the Func Hackathon Winners 2022</title><link>https://supabase.com/blog/bring-the-func-hackathon-winners</link><description>Celebrating many amazing OSS Hackathon projects using GraphQL and Edge Functions.</description>- <pubDate>Sun, 17 Apr 2022 02:30:00 GMT</pubDate>+ <pubDate>Sun, 17 Apr 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/beta-update-march-2022</guid><title>Supabase Beta March 2022</title><link>https://supabase.com/blog/beta-update-march-2022</link><description>Functions, GraphQL, and much more.</description>- <pubDate>Thu, 14 Apr 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 14 Apr 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabrew</guid><title>Supabrew - Never Code Thirsty</title><link>https://supabase.com/blog/supabrew</link><description>A light and refreshing non-alcoholic beer for devs.</description>- <pubDate>Fri, 01 Apr 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 31 Mar 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-realtime-with-multiplayer-features</guid><title>Supabase Realtime, with Multiplayer Features</title><link>https://supabase.com/blog/supabase-realtime-with-multiplayer-features</link><description>Today we're announced Realtime, with multiplayer features. Realtime enables broadcast, presence, and listening to database changes delivered over WebSockets.</description>- <pubDate>Fri, 01 Apr 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 31 Mar 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/hackathon-bring-the-func</guid><title>Hackathon: Bring the Func(🕺)</title><link>https://supabase.com/blog/hackathon-bring-the-func</link><description>Build open-source projects with our latest features, win limited edition swag and plant a tree!</description>- <pubDate>Fri, 01 Apr 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 31 Mar 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-edge-functions</guid><title>Edge Functions are now available in Supabase</title><link>https://supabase.com/blog/supabase-edge-functions</link><description>Today we're launching Edge Functions. Edge Functions let you execute Typescript code close to your users, no matter where they're located.</description>- <pubDate>Wed, 30 Mar 2022 02:30:00 GMT</pubDate>+ <pubDate>Wed, 30 Mar 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-enterprise</guid><title>Introducing Supabase Enterprise</title><link>https://supabase.com/blog/supabase-enterprise</link><description>Today we are releasing Supabase Enterprise, a suite of features to scale your project.</description>- <pubDate>Tue, 29 Mar 2022 02:30:00 GMT</pubDate>+ <pubDate>Tue, 29 Mar 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/graphql-now-available</guid><title>GraphQL is now available in Supabase</title><link>https://supabase.com/blog/graphql-now-available</link><description>GraphQL support is now in general availability on the Supabase platform via our open source PostgreSQL extension, pg_graphql.</description>- <pubDate>Mon, 28 Mar 2022 02:30:00 GMT</pubDate>+ <pubDate>Mon, 28 Mar 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/community-day-lw4</guid><title>Community Day</title><link>https://supabase.com/blog/community-day-lw4</link><description>Kicking off Launch Week 4 with contributors, partners, and friends.</description>- <pubDate>Sun, 27 Mar 2022 02:30:00 GMT</pubDate>+ <pubDate>Sun, 27 Mar 2022 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-launch-week-four</guid><title>Supabase Launch Week 4</title><link>https://supabase.com/blog/supabase-launch-week-four</link><description>Launch Week 4: One new feature every day for an entire week. Starting Monday 28th March.</description>- <pubDate>Thu, 24 Mar 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 24 Mar 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/should-i-open-source-my-company</guid><title>Should I Open Source my Company?</title><link>https://supabase.com/blog/should-i-open-source-my-company</link><description>The unexpected upsides of building in public</description>- <pubDate>Thu, 24 Mar 2022 02:30:00 GMT</pubDate>+ <pubDate>Thu, 24 Mar 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgres-audit</guid><title>Postgres Auditing in 150 lines of SQL</title><link>https://supabase.com/blog/postgres-audit</link><description>PostgreSQL has a robust set of features which we can leverage to create a generic auditing solution in 150 lines of SQL.</description>- <pubDate>Mon, 07 Mar 2022 03:30:00 GMT</pubDate>+ <pubDate>Mon, 07 Mar 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-january-2022</guid><title>Supabase Beta January 2022</title><link>https://supabase.com/blog/supabase-beta-january-2022</link><description>New auth providers, SMS providers, and new videos.</description>- <pubDate>Mon, 21 Feb 2022 03:30:00 GMT</pubDate>+ <pubDate>Mon, 21 Feb 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-december-2021</guid><title>Supabase Beta December 2021</title><link>https://supabase.com/blog/supabase-beta-december-2021</link><description>New crypto extension, Postgres videos, and a bunch of cool integrations.</description>- <pubDate>Wed, 19 Jan 2022 03:30:00 GMT</pubDate>+ <pubDate>Wed, 19 Jan 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/product-hunt-golden-kitty-awards-2021</guid><title>Golden Kitty Awards Ceremony Watch Party with Supabase</title><link>https://supabase.com/blog/product-hunt-golden-kitty-awards-2021</link><description>Hang out with us while watching the Product Hunt Golden Kitty Awards Ceremony</description>- <pubDate>Wed, 19 Jan 2022 03:30:00 GMT</pubDate>+ <pubDate>Wed, 19 Jan 2022 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/holiday-hackdays-winners-2021</guid><title>Holiday Hackdays Winners 2021</title><link>https://supabase.com/blog/holiday-hackdays-winners-2021</link><description>Celebrating many amazing projects submitted to our Holiday Hackdays Hackathon.</description>- <pubDate>Thu, 16 Dec 2021 03:30:00 GMT</pubDate>+ <pubDate>Thu, 16 Dec 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/beta-november-2021-launch-week-recap</guid><title>Supabase Beta November 2021: Launch Week Recap</title><link>https://supabase.com/blog/beta-november-2021-launch-week-recap</link><description>We wrapped up November with Supabase's third Launch Week. Here's all the awesome stuff that got shipped ...</description>- <pubDate>Tue, 14 Dec 2021 03:30:00 GMT</pubDate>+ <pubDate>Tue, 14 Dec 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-holiday-hackdays-hackathon</guid><title>Kicking off the Holiday Hackdays</title><link>https://supabase.com/blog/supabase-holiday-hackdays-hackathon</link><description>Build cool stuff and celebrate open-source software with us during the Holiday Hackdays!</description>- <pubDate>Thu, 02 Dec 2021 03:30:00 GMT</pubDate>+ <pubDate>Thu, 02 Dec 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/pg-graphql</guid><title>pg_graphql: A GraphQL extension for PostgreSQL</title><link>https://supabase.com/blog/pg-graphql</link><description>GraphQL support is in development for PostgreSQL + Supabase.</description>- <pubDate>Thu, 02 Dec 2021 03:30:00 GMT</pubDate>+ <pubDate>Thu, 02 Dec 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/launch-week-three-friday-five-more-things</guid><title>Five more things</title><link>https://supabase.com/blog/launch-week-three-friday-five-more-things</link><description>It's never just one more thing!</description>- <pubDate>Thu, 02 Dec 2021 03:30:00 GMT</pubDate>+ <pubDate>Thu, 02 Dec 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-acquires-logflare</guid><title>Supabase acquires Logflare</title><link>https://supabase.com/blog/supabase-acquires-logflare</link><description>Today, we're ecstatic to announce that Logflare is joining Supabase.</description>- <pubDate>Wed, 01 Dec 2021 03:30:00 GMT</pubDate>+ <pubDate>Wed, 01 Dec 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/realtime-row-level-security-in-postgresql</guid><title>Realtime Postgres RLS now available on Supabase</title><link>https://supabase.com/blog/realtime-row-level-security-in-postgresql</link><description>Realtime database changes are now broadcast to authenticated users, respecting the same PostgreSQL policies that you use for Row Level Security.</description>- <pubDate>Tue, 30 Nov 2021 03:30:00 GMT</pubDate>+ <pubDate>Tue, 30 Nov 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-studio</guid><title>Supabase Studio</title><link>https://supabase.com/blog/supabase-studio</link><description>The same Dashboard that you're using on our Platform is now available for local development and Self-Hosting.</description>- <pubDate>Mon, 29 Nov 2021 03:30:00 GMT</pubDate>+ <pubDate>Mon, 29 Nov 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/community-day-lw3</guid><title>Community Day</title><link>https://supabase.com/blog/community-day-lw3</link><description>Kicking off launch week by highlighting the communities around Supabase.</description>- <pubDate>Sun, 28 Nov 2021 03:30:00 GMT</pubDate>+ <pubDate>Sun, 28 Nov 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/whats-new-in-postgres-14</guid><title>New in PostgreSQL 14: What every developer should know</title><link>https://supabase.com/blog/whats-new-in-postgres-14</link><description>A quick look at some new features and functionality in PostgreSQL 14.</description>- <pubDate>Sat, 27 Nov 2021 03:30:00 GMT</pubDate>+ <pubDate>Sat, 27 Nov 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgrest-9</guid><title>PostgREST 9</title><link>https://supabase.com/blog/postgrest-9</link><description>New features and updates in PostgREST version 9.</description>- <pubDate>Fri, 26 Nov 2021 03:30:00 GMT</pubDate>+ <pubDate>Fri, 26 Nov 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-launch-week-the-trilogy</guid><title>Supabase Launch Week III: Holiday Special</title><link>https://supabase.com/blog/supabase-launch-week-the-trilogy</link><description>Tis the season to be shipping.</description>- <pubDate>Thu, 25 Nov 2021 03:30:00 GMT</pubDate>+ <pubDate>Thu, 25 Nov 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-how-we-launch</guid><title>How we launch at Supabase</title><link>https://supabase.com/blog/supabase-how-we-launch</link><description>The history and methodology of Supabase Launch Week.</description>- <pubDate>Thu, 25 Nov 2021 03:30:00 GMT</pubDate>+ <pubDate>Thu, 25 Nov 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-october-2021</guid><title>Supabase Beta October 2021</title><link>https://supabase.com/blog/supabase-beta-october-2021</link><description>Three new Auth providers, multi-schema support, and we're gearing up for another Launch Week.</description>- <pubDate>Sat, 06 Nov 2021 02:30:00 GMT</pubDate>+ <pubDate>Sat, 06 Nov 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-series-a</guid><title>Supabase $30m Series A</title><link>https://supabase.com/blog/supabase-series-a</link><description>Supabase just raised $30M, bringing our total funding to $36M.</description>- <pubDate>Wed, 27 Oct 2021 02:30:00 GMT</pubDate>+ <pubDate>Wed, 27 Oct 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/replenysh-time-to-value-in-less-than-24-hours</guid><title>Replenysh uses Supabase to implement OTP in less than 24-hours</title><link>https://supabase.com/blog/replenysh-time-to-value-in-less-than-24-hours</link><description>Learn how Replenysh uses Supabase to power the circular economy, redefining how brands interact with their customers and products.</description>- <pubDate>Mon, 18 Oct 2021 02:30:00 GMT</pubDate>+ <pubDate>Mon, 18 Oct 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/hacktoberfest-hackathon-winners-2021</guid><title>Hacktoberfest Hackathon Winners 2021</title><link>https://supabase.com/blog/hacktoberfest-hackathon-winners-2021</link><description>Celebrating many amazing projects submitted to our Hacktoberfest Hackathon.</description>- <pubDate>Wed, 13 Oct 2021 02:30:00 GMT</pubDate>+ <pubDate>Wed, 13 Oct 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-sept-2021</guid><title>Supabase Beta Sept 2021</title><link>https://supabase.com/blog/supabase-beta-sept-2021</link><description>Hackathon, Aborting request, UI updates, and now Hiring.</description>- <pubDate>Sun, 03 Oct 2021 02:30:00 GMT</pubDate>+ <pubDate>Sun, 03 Oct 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-hacktoberfest-hackathon-2021</guid><title>Supabase Hacktoberfest Hackathon 2021</title><link>https://supabase.com/blog/supabase-hacktoberfest-hackathon-2021</link><description>We're running another Supabase Hackathon during Hacktoberfest!</description>- <pubDate>Mon, 27 Sep 2021 02:30:00 GMT</pubDate>+ <pubDate>Mon, 27 Sep 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-august-2021</guid><title>Supabase Beta August 2021</title><link>https://supabase.com/blog/supabase-beta-august-2021</link><description>Fundraising, Realtime Security, custom SMS templates, and deployments in South Korea.</description>- <pubDate>Thu, 09 Sep 2021 02:30:00 GMT</pubDate>+ <pubDate>Thu, 09 Sep 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-july-2021</guid><title>Supabase Beta July 2021</title><link>https://supabase.com/blog/supabase-beta-july-2021</link><description>Discord Logins, Vercel Integration, Full text search, and OAuth guides.</description>- <pubDate>Wed, 11 Aug 2021 02:30:00 GMT</pubDate>+ <pubDate>Wed, 11 Aug 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/hackathon-winners</guid><title>Open Source Hackathon Winners</title><link>https://supabase.com/blog/hackathon-winners</link><description>Let the medal ceremony begin for the best projects submitted during the Supabase Hackathon.</description>- <pubDate>Sun, 08 Aug 2021 02:30:00 GMT</pubDate>+ <pubDate>Sun, 08 Aug 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-swag-store</guid><title>Supabase Swag Store</title><link>https://supabase.com/blog/supabase-swag-store</link><description>Today we are officially launching the Supabase Swag Store.</description>- <pubDate>Thu, 29 Jul 2021 02:30:00 GMT</pubDate>+ <pubDate>Thu, 29 Jul 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-functions-updates</guid><title>Updates for Supabase Functions</title><link>https://supabase.com/blog/supabase-functions-updates</link><description>The question on everyone's mind - are we launching Supabase Functions? Well, it's complicated.</description>- <pubDate>Thu, 29 Jul 2021 02:30:00 GMT</pubDate>+ <pubDate>Thu, 29 Jul 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/1-the-supabase-hackathon</guid><title>The Supabase Hackathon</title><link>https://supabase.com/blog/1-the-supabase-hackathon</link><description>A whole week of Hacking for Fun and Prizes.</description>- <pubDate>Thu, 29 Jul 2021 02:30:00 GMT</pubDate>+ <pubDate>Thu, 29 Jul 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-reports-and-metrics</guid><title>Supabase Reports and Metrics</title><link>https://supabase.com/blog/supabase-reports-and-metrics</link><description>We're exposing a full set of metrics in your projects, so that you can build better (and faster) products for your users.</description>- <pubDate>Wed, 28 Jul 2021 02:30:00 GMT</pubDate>+ <pubDate>Wed, 28 Jul 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-auth-passwordless-sms-login</guid><title>Supabase Auth v2: Phone Auth now available</title><link>https://supabase.com/blog/supabase-auth-passwordless-sms-login</link><description>Phone Auth is available today on all new and existing Supabase projects.</description>- <pubDate>Tue, 27 Jul 2021 02:30:00 GMT</pubDate>+ <pubDate>Tue, 27 Jul 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/mobbin-supabase-200000-users</guid><title>Mobbin uses Supabase to authenticate 200,000 users</title><link>https://supabase.com/blog/mobbin-supabase-200000-users</link><description>Learn how Mobbin migrated 200,000 users from Firebase for a better authentication experience.</description>- <pubDate>Tue, 27 Jul 2021 02:30:00 GMT</pubDate>+ <pubDate>Tue, 27 Jul 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/storage-beta</guid><title>Supabase Storage now in Beta</title><link>https://supabase.com/blog/storage-beta</link><description>Supabase Storage moves into Beta.</description>- <pubDate>Mon, 26 Jul 2021 02:30:00 GMT</pubDate>+ <pubDate>Mon, 26 Jul 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/spot-flutter-with-postgres</guid><title>Spot: a video sharing app built with Flutter</title><link>https://supabase.com/blog/spot-flutter-with-postgres</link><description>Spot is a geolocation-based video-sharing app with some social networking features.</description>- <pubDate>Mon, 26 Jul 2021 02:30:00 GMT</pubDate>+ <pubDate>Mon, 26 Jul 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-postgres-13</guid><title>Supabase is now on Postgres 13.3</title><link>https://supabase.com/blog/supabase-postgres-13</link><description>From today, new Supabase projects will be on a version of Supabase Postgres that runs on Postgres 13.3.</description>- <pubDate>Sun, 25 Jul 2021 02:30:00 GMT</pubDate>+ <pubDate>Sun, 25 Jul 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-community-day</guid><title>Supabase Community Day</title><link>https://supabase.com/blog/supabase-community-day</link><description>Community Day</description>- <pubDate>Sun, 25 Jul 2021 02:30:00 GMT</pubDate>+ <pubDate>Sun, 25 Jul 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/epsilon3-self-hosting</guid><title>Epsilon3 Self-Host Supabase To Revolutionize Space Operations </title><link>https://supabase.com/blog/epsilon3-self-hosting</link><description>Learn how the team at Epsilon3 use Supabase to help teams execute secure and reliable operations in an industry that project spend runs into the billions.</description>- <pubDate>Sun, 25 Jul 2021 02:30:00 GMT</pubDate>+ <pubDate>Sun, 25 Jul 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-launch-week-sql</guid><title>Supabase Launch Week II: The SQL</title><link>https://supabase.com/blog/supabase-launch-week-sql</link><description>Five days of Supabase. Again.</description>- <pubDate>Wed, 21 Jul 2021 02:30:00 GMT</pubDate>+ <pubDate>Wed, 21 Jul 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/roles-postgres-hooks</guid><title>Protecting reserved roles with PostgreSQL Hooks</title><link>https://supabase.com/blog/roles-postgres-hooks</link><description>Using Postgres Hooks to protect functionality in your Postgres database.</description>- <pubDate>Thu, 01 Jul 2021 02:30:00 GMT</pubDate>+ <pubDate>Thu, 01 Jul 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-june-2021</guid><title>Supabase Beta June 2021</title><link>https://supabase.com/blog/supabase-beta-june-2021</link><description>Discord Logins, Vercel Integration, Full text search, and OAuth guides.</description>- <pubDate>Tue, 01 Jun 2021 02:30:00 GMT</pubDate>+ <pubDate>Tue, 01 Jun 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-may-2021</guid><title>Supabase Beta May 2021</title><link>https://supabase.com/blog/supabase-beta-may-2021</link><description>Apple &amp; Twitter Logins, Supabase Grid, Go &amp; Swift Libraries.</description>- <pubDate>Tue, 01 Jun 2021 02:30:00 GMT</pubDate>+ <pubDate>Tue, 01 Jun 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-april-2021</guid><title>Supabase Beta April 2021</title><link>https://supabase.com/blog/supabase-beta-april-2021</link><description>Supabase "gardening" - stability, security, and community support.</description>- <pubDate>Tue, 04 May 2021 02:30:00 GMT</pubDate>+ <pubDate>Tue, 04 May 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-march-2021</guid><title>Supabase Beta March 2021</title><link>https://supabase.com/blog/supabase-beta-march-2021</link><description>Launch week, Storage, Supabase CLI, Connection Pooling, Supabase UI, and Pricing.</description>- <pubDate>Mon, 05 Apr 2021 02:30:00 GMT</pubDate>+ <pubDate>Mon, 05 Apr 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-workflows</guid><title>Workflows are coming to Supabase</title><link>https://supabase.com/blog/supabase-workflows</link><description>Functions are great, but you know what's better?</description>- <pubDate>Thu, 01 Apr 2021 02:30:00 GMT</pubDate>+ <pubDate>Thu, 01 Apr 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-pgbouncer</guid><title>PgBouncer is now available in Supabase</title><link>https://supabase.com/blog/supabase-pgbouncer</link><description>Better support for Serverless and Postgres.</description>- <pubDate>Thu, 01 Apr 2021 02:30:00 GMT</pubDate>+ <pubDate>Thu, 01 Apr 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-dot-com</guid><title>Supabase Dot Com</title><link>https://supabase.com/blog/supabase-dot-com</link><description>The Supabase Domain name is changing.</description>- <pubDate>Thu, 01 Apr 2021 02:30:00 GMT</pubDate>+ <pubDate>Thu, 01 Apr 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-nft-marketplace</guid><title>Supabase Launches NFT Marketplace</title><link>https://supabase.com/blog/supabase-nft-marketplace</link><description>A fully encrypted NFT platform to protect and transact your digital assets</description>- <pubDate>Thu, 01 Apr 2021 02:30:00 GMT</pubDate>+ <pubDate>Wed, 31 Mar 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-cli</guid><title>Supabase CLI</title><link>https://supabase.com/blog/supabase-cli</link><description>Local development, database migrations, and self-hosting.</description>- <pubDate>Wed, 31 Mar 2021 02:30:00 GMT</pubDate>+ <pubDate>Tue, 30 Mar 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-storage</guid><title>Storage is now available in Supabase</title><link>https://supabase.com/blog/supabase-storage</link><description>Launching Supabase Storage and how you can use it in your apps</description>- <pubDate>Tue, 30 Mar 2021 02:30:00 GMT</pubDate>+ <pubDate>Mon, 29 Mar 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/pricing</guid><title>Supabase Beta Pricing</title><link>https://supabase.com/blog/pricing</link><description>Supabase launches Beta pricing structure</description>- <pubDate>Mon, 29 Mar 2021 02:30:00 GMT</pubDate>+ <pubDate>Sun, 28 Mar 2021 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/launch-week</guid><title>Launch week</title><link>https://supabase.com/blog/launch-week</link><description>Five days of Supabase.</description>- <pubDate>Wed, 24 Mar 2021 02:30:00 GMT</pubDate>+ <pubDate>Wed, 24 Mar 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/angels-of-supabase</guid><title>Angels of Supabase</title><link>https://supabase.com/blog/angels-of-supabase</link><description>Meet the investors of Supabase.</description>- <pubDate>Wed, 24 Mar 2021 02:30:00 GMT</pubDate>+ <pubDate>Wed, 24 Mar 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/In-The-Loop</guid><title>Developers stay up to date with intheloop.dev</title><link>https://supabase.com/blog/In-The-Loop</link><description>Learn why Kevin is building intheloop.dev with Supabase</description>- <pubDate>Mon, 22 Mar 2021 02:30:00 GMT</pubDate>+ <pubDate>Sun, 21 Mar 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/using-supabase-replit</guid><title>Using Supabase in Replit</title><link>https://supabase.com/blog/using-supabase-replit</link><description>Free hosted relational database from within your node.js repl</description>- <pubDate>Thu, 11 Mar 2021 03:30:00 GMT</pubDate>+ <pubDate>Wed, 10 Mar 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/toad-a-link-shortener-with-simple-apis-for-low-coders</guid><title>Toad, a link shortener with simple APIs for low-coders</title><link>https://supabase.com/blog/toad-a-link-shortener-with-simple-apis-for-low-coders</link><description>An easy-to-use link shortening tool with simple APIs</description>- <pubDate>Mon, 08 Mar 2021 03:30:00 GMT</pubDate>+ <pubDate>Sun, 07 Mar 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgres-as-a-cron-server</guid><title>Postgres as a CRON Server</title><link>https://supabase.com/blog/postgres-as-a-cron-server</link><description>Running repetitive tasks with your Postgres database.</description>- <pubDate>Fri, 05 Mar 2021 03:30:00 GMT</pubDate>+ <pubDate>Thu, 04 Mar 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-february-2021</guid><title>Supabase Beta February 2021</title><link>https://supabase.com/blog/supabase-beta-february-2021</link><description>One year of building.</description>- <pubDate>Tue, 02 Mar 2021 03:30:00 GMT</pubDate>+ <pubDate>Mon, 01 Mar 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/cracking-postgres-interview</guid><title>Cracking PostgreSQL Interview Questions</title><link>https://supabase.com/blog/cracking-postgres-interview</link><description>Understand the top PostgreSQL Interview Questions</description>- <pubDate>Sat, 27 Feb 2021 03:30:00 GMT</pubDate>+ <pubDate>Fri, 26 Feb 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/case-study-roboflow</guid><title>Roboflow.com choose Supabase to power Paint.wtf leaderboard</title><link>https://supabase.com/blog/case-study-roboflow</link><description>Learn how Roboflow.com used Supabase to build their Paint.wtf leaderboard</description>- <pubDate>Tue, 09 Feb 2021 03:30:00 GMT</pubDate>+ <pubDate>Mon, 08 Feb 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-january-2021</guid><title>Supabase Beta January 2021</title><link>https://supabase.com/blog/supabase-beta-january-2021</link><description>Eleven months of building.</description>- <pubDate>Tue, 02 Feb 2021 03:30:00 GMT</pubDate>+ <pubDate>Mon, 01 Feb 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-beta-december-2020</guid><title>Supabase Beta December 2020</title><link>https://supabase.com/blog/supabase-beta-december-2020</link><description>Ten months of building.</description>- <pubDate>Sat, 02 Jan 2021 03:30:00 GMT</pubDate>+ <pubDate>Fri, 01 Jan 2021 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-dashboard-performance</guid><title>Making the Supabase Dashboard Supa-fast</title><link>https://supabase.com/blog/supabase-dashboard-performance</link><description>Improving the performance of the Supabase dashboard</description>- <pubDate>Sun, 13 Dec 2020 03:30:00 GMT</pubDate>+ <pubDate>Sat, 12 Dec 2020 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-striveschool</guid><title>Supabase Partners With Strive School To Help Teach Open Source</title><link>https://supabase.com/blog/supabase-striveschool</link><description>Supabase Partners With Strive School To Help Teach Open Source To The Next Generation Of Developers</description>- <pubDate>Wed, 02 Dec 2020 03:30:00 GMT</pubDate>+ <pubDate>Tue, 01 Dec 2020 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/case-study-xendit</guid><title>Xendit Built a Counter-Fraud Watchlist for the Fintech Industry</title><link>https://supabase.com/blog/case-study-xendit</link><description>See how Xendit use Supabase to build a full-text search engine.</description>- <pubDate>Wed, 02 Dec 2020 03:30:00 GMT</pubDate>+ <pubDate>Tue, 01 Dec 2020 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/case-study-tayfa</guid><title>TAYFA Built a No-Code Website Builder in Seven Days</title><link>https://supabase.com/blog/case-study-tayfa</link><description>See how Tayfa went from idea to paying customer in less than 30 days.</description>- <pubDate>Wed, 02 Dec 2020 03:30:00 GMT</pubDate>+ <pubDate>Tue, 01 Dec 2020 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/case-study-monitoro</guid><title>Monitoro Built a Web Crawler Handling Millions of API Requests</title><link>https://supabase.com/blog/case-study-monitoro</link><description>See how Monitoro built an automated scraping platform using Supabase.</description>- <pubDate>Wed, 02 Dec 2020 03:30:00 GMT</pubDate>+ <pubDate>Tue, 01 Dec 2020 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-alpha-november-2020</guid><title>Supabase Alpha November 2020</title><link>https://supabase.com/blog/supabase-alpha-november-2020</link><description>Nine months of building.</description>- <pubDate>Tue, 01 Dec 2020 03:30:00 GMT</pubDate>+ <pubDate>Mon, 30 Nov 2020 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgresql-views</guid><title>Postgres Views</title><link>https://supabase.com/blog/postgresql-views</link><description>Creating and using a view in PostgreSQL.</description>- <pubDate>Wed, 18 Nov 2020 03:30:00 GMT</pubDate>+ <pubDate>Tue, 17 Nov 2020 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-alpha-october-2020</guid><title>Supabase Alpha October 2020</title><link>https://supabase.com/blog/supabase-alpha-october-2020</link><description>Eight months of building.</description>- <pubDate>Mon, 02 Nov 2020 03:30:00 GMT</pubDate>+ <pubDate>Sun, 01 Nov 2020 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/improved-dx</guid><title>Supabase.js 1.0</title><link>https://supabase.com/blog/improved-dx</link><description>We're releasing a new version of our Supabase client with some awesome new improvements.</description>- <pubDate>Fri, 30 Oct 2020 02:30:00 GMT</pubDate>+ <pubDate>Thu, 29 Oct 2020 23:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-alpha-september-2020</guid><title>Supabase Alpha September 2020</title><link>https://supabase.com/blog/supabase-alpha-september-2020</link><description>Seven months of building.</description>- <pubDate>Sat, 03 Oct 2020 02:30:00 GMT</pubDate>+ <pubDate>Fri, 02 Oct 2020 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-hacktoberfest-2020</guid><title>Supabase Hacktoberfest 2020</title><link>https://supabase.com/blog/supabase-hacktoberfest-2020</link><description>Join us for a celebration of open source software and learn how to contribute to Supabase.</description>- <pubDate>Fri, 11 Sep 2020 02:30:00 GMT</pubDate>+ <pubDate>Thu, 10 Sep 2020 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-alpha-august-2020</guid><title>Supabase Alpha August 2020</title><link>https://supabase.com/blog/supabase-alpha-august-2020</link><description>Six months of building</description>- <pubDate>Thu, 03 Sep 2020 02:30:00 GMT</pubDate>+ <pubDate>Wed, 02 Sep 2020 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-auth</guid><title>Supabase Auth</title><link>https://supabase.com/blog/supabase-auth</link><description>Authenticate and authorize your users with Supabase Auth</description>- <pubDate>Wed, 05 Aug 2020 02:30:00 GMT</pubDate>+ <pubDate>Tue, 04 Aug 2020 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-alpha-july-2020</guid><title>Supabase Alpha July 2020</title><link>https://supabase.com/blog/supabase-alpha-july-2020</link><description>Five months of building</description>- <pubDate>Sun, 02 Aug 2020 02:30:00 GMT</pubDate>+ <pubDate>Sat, 01 Aug 2020 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/continuous-postgresql-backup-walg</guid><title>Continuous PostgreSQL Backups using WAL-G</title><link>https://supabase.com/blog/continuous-postgresql-backup-walg</link><description>Have you ever wanted to restore your database's state to a particular moment in time? This post explains how, using WAL-G.</description>- <pubDate>Sun, 02 Aug 2020 02:30:00 GMT</pubDate>+ <pubDate>Sat, 01 Aug 2020 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/alpha-launch-postmortem</guid><title>Alpha Launch Postmortem</title><link>https://supabase.com/blog/alpha-launch-postmortem</link><description>Everything that went wrong with Supabase's launch</description>- <pubDate>Fri, 10 Jul 2020 02:30:00 GMT</pubDate>+ <pubDate>Thu, 09 Jul 2020 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgresql-templates</guid><title>What are PostgreSQL Templates?</title><link>https://supabase.com/blog/postgresql-templates</link><description>What are PostgreSQL templates and what are they used for?</description>- <pubDate>Thu, 09 Jul 2020 02:30:00 GMT</pubDate>+ <pubDate>Wed, 08 Jul 2020 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/postgresql-physical-logical-backups</guid><title>Physical vs Logical Backups in PostgreSQL</title><link>https://supabase.com/blog/postgresql-physical-logical-backups</link><description>What are physical and logical backups in Postgres?</description>- <pubDate>Tue, 07 Jul 2020 02:30:00 GMT</pubDate>+ <pubDate>Mon, 06 Jul 2020 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-alpha-june-2020</guid><title>Supabase Alpha June 2020</title><link>https://supabase.com/blog/supabase-alpha-june-2020</link><description>Four months of building</description>- <pubDate>Wed, 01 Jul 2020 02:30:00 GMT</pubDate>+ <pubDate>Tue, 30 Jun 2020 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-steve-chavez</guid><title>Steve Chavez has joined Supabase</title><link>https://supabase.com/blog/supabase-steve-chavez</link><description>Steve joins Supabase to help build Auth.</description>- <pubDate>Mon, 15 Jun 2020 02:30:00 GMT</pubDate>+ <pubDate>Sun, 14 Jun 2020 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-alpha-may-2020</guid><title>Supabase Alpha May 2020</title><link>https://supabase.com/blog/supabase-alpha-may-2020</link><description>Three months of building</description>- <pubDate>Mon, 01 Jun 2020 02:30:00 GMT</pubDate>+ <pubDate>Sun, 31 May 2020 22:00:00 GMT</pubDate></item><item><guid>https://supabase.com/blog/supabase-alpha-april-2020</guid><title>Supabase Alpha April 2020</title><link>https://supabase.com/blog/supabase-alpha-april-2020</link><description>Two months of building</description>- <pubDate>Mon, 01 Jun 2020 02:30:00 GMT</pubDate>-</item>-<item>- <guid>https://supabase.com/blog/</guid>- <title></title>- <link>https://supabase.com/blog/</link>- <description></description>- <pubDate>Invalid Date</pubDate>+ <pubDate>Sun, 31 May 2020 22:00:00 GMT</pubDate></item></channel>diff --git a/apps/www/public/sitemap_www.xml b/apps/www/public/sitemap_www.xmlindex d480d1b7ea6..893d4788e28 100644--- a/apps/www/public/sitemap_www.xml+++ b/apps/www/public/sitemap_www.xml@@ -49,13 +49,13 @@</url><url>- <loc>https://supabase.com/auth</loc>+ <loc>https://supabase.com/blog/</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/</loc>+ <loc>https://supabase.com/auth</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -97,13 +97,13 @@</url><url>- <loc>https://supabase.com/vector/Vector</loc>+ <loc>https://supabase.com/realtime</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/realtime</loc>+ <loc>https://supabase.com/vector/Vector</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -897,7 +897,7 @@</url><url>- <loc>https://supabase.com/blog/flutter-authorization-with-rls</loc>+ <loc>https://supabase.com/blog/flutter-authentication-and-authorization-with-rls</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>@@ -1221,211 +1221,841 @@</url><url>- <loc>https://supabase.com/blog/native-mobile-auth</loc>+ <loc>https://supabase.com/customers/berriai</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/supabase-beta-update-june-2023</loc>+ <loc>https://supabase.com/customers/epsilon3</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/postgrest-11-1-release</loc>+ <loc>https://supabase.com/customers/happyteams</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/pgvector-performance</loc>+ <loc>https://supabase.com/customers/markprompt</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/flutter-authentication</loc>+ <loc>https://supabase.com/customers/mendableai</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/supabase-lw8-hackathon</loc>+ <loc>https://supabase.com/customers/mobbin</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/react-native-storage</loc>+ <loc>https://supabase.com/customers/replenysh</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/beta-update-july-2023</loc>+ <loc>https://supabase.com/customers/xendit</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/fewer-dimensions-are-better-pgvector</loc>+ <loc>https://supabase.com/alternatives/supabase-vs-firebase</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/interactive-constellation-threejs-react-three-fiber</loc>+ <loc>https://supabase.com/alternatives/supabase-vs-heroku-postgres</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/why-supabase-remote</loc>+ <loc>https://supabase.com/partners/integrations/antstack</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/hugging-face-supabase</loc>+ <loc>https://supabase.com/partners/integrations/appsmith</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/supabase-local-dev</loc>+ <loc>https://supabase.com/partners/integrations/arceptive</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/supabase-studio-3-0</loc>+ <loc>https://supabase.com/partners/integrations/arengu</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/supabase-integrations-marketplace</loc>+ <loc>https://supabase.com/partners/integrations/authsignal</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/using-supabase-with-vercel</loc>+ <loc>https://supabase.com/partners/integrations/basedash</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/launch-week-8-community-highlights</loc>+ <loc>https://supabase.com/partners/integrations/buildlab</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/supabase-soc2-hipaa</loc>+ <loc>https://supabase.com/partners/integrations/clerk</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/supavisor-1-million</loc>+ <loc>https://supabase.com/partners/integrations/clutch</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/launch-week-8-hackathon-winners</loc>+ <loc>https://supabase.com/partners/integrations/codesandbox</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/organization-based-billing</loc>+ <loc>https://supabase.com/partners/integrations/dashibase</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/increase-performance-pgvector-hnsw</loc>+ <loc>https://supabase.com/partners/integrations/deepnote</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/blog/beta-update-august-2023</loc>+ <loc>https://supabase.com/partners/integrations/dhiwise</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/customers/berriai</loc>+ <loc>https://supabase.com/partners/integrations/directus</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/customers/chatbase</loc>+ <loc>https://supabase.com/partners/integrations/doppler</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/customers/epsilon3</loc>+ <loc>https://supabase.com/partners/integrations/draftbit</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/customers/happyteams</loc>+ <loc>https://supabase.com/partners/integrations/drapcode</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/customers/markprompt</loc>+ <loc>https://supabase.com/partners/integrations/dronahq</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/customers/mendableai</loc>+ <loc>https://supabase.com/partners/integrations/enginedigital</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/customers/mobbin</loc>+ <loc>https://supabase.com/partners/integrations/estuary</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/customers/quivr</loc>+ <loc>https://supabase.com/partners/integrations/feelantera</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/customers/replenysh</loc>+ <loc>https://supabase.com/partners/integrations/fezto</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/customers/xendit</loc>+ <loc>https://supabase.com/partners/integrations/flutterflow</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/alternatives/supabase-vs-firebase</loc>+ <loc>https://supabase.com/partners/integrations/forestadmin</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url><url>- <loc>https://supabase.com/alternatives/supabase-vs-heroku-postgres</loc>+ <loc>https://supabase.com/partners/integrations/getstream_io</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/illa</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/infisical</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/internalio</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/jetadmin</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/keyri</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/morrow</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/n8n</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/nextauth</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/nuxt</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/onesignal</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/ory</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/passageidentity</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/pgmustard</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/picket</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/plasmic</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/polyscale</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/prisma</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/quinence</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/readyset</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/refine_dev</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/replibyte</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/replicache</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/retool</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/sequin_io</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/snaplet</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/solid_software</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/streamlit</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/stytch</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/supertokens</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/teta</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/tinloof</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/trevor_io</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/uncommonpurpose</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/vercel</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/voltapp</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/voypost</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/weweb</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/yepcode</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/zapp_run</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/integrations/zuplo</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/antstack</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/appsmith</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/arceptive</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/arengu</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/authsignal</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/basedash</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/buildlab</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/clerk</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/clutch</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/codesandbox</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/dashibase</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/deepnote</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/dhiwise</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/directus</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/doppler</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/draftbit</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/drapcode</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/dronahq</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/enginedigital</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/estuary</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/feelantera</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/fezto</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/flutterflow</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/forestadmin</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/getstream_io</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/illa</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/infisical</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/internalio</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/jetadmin</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/keyri</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/morrow</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/n8n</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/nextauth</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/nuxt</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/onesignal</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/ory</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/passageidentity</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/pgmustard</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/picket</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/plasmic</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/polyscale</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/prisma</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/quinence</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/readyset</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/refine_dev</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/replibyte</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/replicache</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/retool</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/sequin_io</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/snaplet</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/solid_software</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/streamlit</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/stytch</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/supertokens</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/teta</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/tinloof</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/trevor_io</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/uncommonpurpose</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/vercel</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/voltapp</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/voypost</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/weweb</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/yepcode</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/zapp_run</loc>+ <changefreq>weekly</changefreq>+ <changefreq>0.5</changefreq>+ </url>++ <url>+ <loc>https://supabase.com/partners/experts/zuplo</loc><changefreq>weekly</changefreq><changefreq>0.5</changefreq></url>diff --git a/package-lock.json b/package-lock.jsonindex f6089bb1ffd..53a32a76489 100644--- a/package-lock.json+++ b/package-lock.json@@ -15,9 +15,6 @@"tests","packages/*"],- "dependencies": {- "next-themes": "^0.2.1"- },"devDependencies": {"eslint": "^8.41.0","eslint-config-custom": "*",@@ -30644,16 +30641,6 @@"react-dom": ">=16.0.0"}},- "node_modules/next-themes": {- "version": "0.2.1",- "resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.2.1.tgz",- "integrity": "sha512-B+AKNfYNIzh0vqQQKqQItTS8evEouKD7H5Hj3kmuPERwddR2TxvDSFZuTj6T7Jfn1oyeUyJMydPl1Bkxkh0W7A==",- "peerDependencies": {- "next": "*",- "react": "*",- "react-dom": "*"- }- },"node_modules/next-tick": {"version": "1.1.0","license": "ISC"diff --git a/package.json b/package.jsonindex 70e8d0d2b1b..3f8d338576e 100644--- a/package.json+++ b/package.json@@ -64,8 +64,5 @@],"volta": {"node": "18.17.1"- },- "dependencies": {- "next-themes": "^0.2.1"}}diff --git a/packages/common/Providers.tsx b/packages/common/Providers.tsxindex 36479d25c23..4da5e7d6e2a 100644--- a/packages/common/Providers.tsx+++ b/packages/common/Providers.tsx@@ -1,6 +1,76 @@-import { ThemeProvider as NextThemesProvider } from 'next-themes'-import { type ThemeProviderProps } from 'next-themes/dist/types'+import { createContext, useContext, useEffect, useState } from 'react'-export function ThemeProvider({ children, ...props }: ThemeProviderProps) {- return <NextThemesProvider {...props}>{children}</NextThemesProvider>+export interface UseThemeProps {+ isDarkMode: boolean+ /**+ * Toggle between dark mode and light mode.+ *+ * If `darkMode` left `undefined`, toggles between modes.+ *+ * If `darkMode` set, forces+ * dark mode if `true` and light mode if `false`.+ */+ toggleTheme: (darkMode?: boolean) => void+}++interface ThemeProviderProps {+ children?: any+ detectSystemColorPreference?: boolean+}++export const ThemeContext = createContext<UseThemeProps>({+ isDarkMode: true,+ toggleTheme: () => {},+})++export const useTheme = () => useContext(ThemeContext)++export const ThemeProvider = ({+ detectSystemColorPreference = true,+ children,+}: ThemeProviderProps) => {+ const [isDarkMode, setIsDarkMode] = useState(true)++ useEffect(() => {+ const key = localStorage.getItem('supabaseDarkMode')+ // If no localStorage is set+ // and detectSystemColorPreference is false+ // default to dark mode+ const hasNoKey = key === null+ const shouldBeDarkMode = hasNoKey || key === 'true'++ const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches++ hasNoKey && detectSystemColorPreference+ ? toggleTheme(prefersDark)+ : toggleTheme(shouldBeDarkMode)+ }, [])++ const toggleTheme: UseThemeProps['toggleTheme'] = (darkMode) => {+ const newMode = typeof darkMode === 'boolean' ? darkMode : !isDarkMode+ localStorage.setItem('supabaseDarkMode', newMode.toString())++ const newTheme = newMode ? 'dark' : 'light'++ document.body.classList.remove('light', 'dark')+ document.body.classList.add(newTheme)++ // Color scheme must be applied to document element (`<html>`)+ document.documentElement.style.colorScheme = newTheme++ setIsDarkMode(newMode)+ }++ return (+ <>+ <ThemeContext.Provider+ value={{+ isDarkMode,+ toggleTheme,+ }}+ >+ {children}+ </ThemeContext.Provider>+ </>+ )}diff --git a/packages/shared-data/logConstants.ts b/packages/shared-data/logConstants.tsindex d828202f53a..488d2abcbb3 100644--- a/packages/shared-data/logConstants.ts+++ b/packages/shared-data/logConstants.ts@@ -120,11 +120,8 @@ const schemas = [{ path: 'metadata.req.url', type: 'string' },{ path: 'metadata.reqId', type: 'string' },{ path: 'metadata.res.statusCode', type: 'number' },- { path: 'metadata.res.headers.content_length', type: 'number' },- { path: 'metadata.res.headers.content_type', type: 'string' },{ path: 'metadata.responseTime', type: 'number' },{ path: 'metadata.tenantId', type: 'string' },- { path: 'metadata.rawError', type: 'string' },],},{diff --git a/packages/ui/index.tsx b/packages/ui/index.tsxindex 588421db51d..e418ba1434e 100644--- a/packages/ui/index.tsx+++ b/packages/ui/index.tsx@@ -81,9 +81,6 @@ export * from './src/layout/ai-icon-animation'// utilitiesexport * from './src/lib/utils'-// theme switcher-export * from './src/components/ThemeProvider/ThemeToggle'-// animated ui// shadcndiff --git a/packages/ui/src/components/CodeBlock/CodeBlock.tsx b/packages/ui/src/components/CodeBlock/CodeBlock.tsxindex cbaf6b1d7d3..6c735470069 100644--- a/packages/ui/src/components/CodeBlock/CodeBlock.tsx+++ b/packages/ui/src/components/CodeBlock/CodeBlock.tsx@@ -1,4 +1,5 @@-import { Children } from 'react'+import * as React from 'react'+import { Children, FC } from 'react'import * as CopyToClipboard from 'react-copy-to-clipboard'import { Light as SyntaxHighlighter } from 'react-syntax-highlighter'import { monokaiCustomTheme } from './CodeBlock.utils'@@ -15,7 +16,7 @@ import json from 'react-syntax-highlighter/dist/cjs/languages/hljs/json'import kotlin from 'react-syntax-highlighter/dist/cjs/languages/hljs/kotlin'import { useState } from 'react'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'export interface CodeBlockProps {title?: string@@ -38,8 +39,8 @@ export const CodeBlock = ({hideCopy = false,hideLineNumbers = false,}: CodeBlockProps) => {- const { theme } = useTheme()- const monokaiTheme = monokaiCustomTheme(theme === 'dark')+ const { isDarkMode } = useTheme()+ const monokaiTheme = monokaiCustomTheme(isDarkMode)const [copied, setCopied] = useState(false)@@ -136,7 +137,7 @@ export const CodeBlock = ({<divclassName={['absolute right-2',- `${theme === 'dark' ? 'dark' : ''}`,+ `${isDarkMode ? 'dark' : ''}`,`${!title ? 'top-2' : 'top-[3.25rem]'}`,].join(' ')}>diff --git a/packages/ui/src/components/Command/CommandMenuProvider.tsx b/packages/ui/src/components/Command/CommandMenuProvider.tsxindex 184e60e4fc4..c9633c6b554 100644--- a/packages/ui/src/components/Command/CommandMenuProvider.tsx+++ b/packages/ui/src/components/Command/CommandMenuProvider.tsx@@ -1,3 +1,4 @@+import { useTheme, UseThemeProps } from 'common'import dynamic from 'next/dynamic'import { createContext, PropsWithChildren, useContext, useEffect, useState } from 'react'@@ -11,6 +12,7 @@ export interface CommandMenuContextValue {setIsOpen: React.Dispatch<React.SetStateAction<boolean>>isLoading: booleansetIsLoading: React.Dispatch<React.SetStateAction<boolean>>+ actions: CommandMenuActionssearch: stringsetSearch: React.Dispatch<React.SetStateAction<string>>pages: string[]@@ -45,6 +47,10 @@ export const useCommandMenu = () => {return context}+export interface CommandMenuActions {+ toggleTheme: UseThemeProps['toggleTheme']+}+export interface CommandMenuProviderProps {site: 'studio' | 'docs'projectRef?: string@@ -81,8 +87,10 @@ const CommandMenuProvider = ({const [isLoading, setIsLoading] = useState(false)const [search, setSearch] = useState('')const [pages, setPages] = useState<string[]>([])+ const { toggleTheme } = useTheme()const currentPage = pages[pages.length - 1]+ const actions: CommandMenuActions = { toggleTheme }const project = projectRef !== undefined ? { ref: projectRef, apiKeys, apiUrl } : undefineduseKeyboardEvents({ setIsOpen, currentPage, setSearch, setPages })@@ -94,6 +102,7 @@ const CommandMenuProvider = ({setIsOpen,isLoading,setIsLoading,+ actions,setSearch,search,pages,diff --git a/packages/ui/src/components/Command/ThemeOptions.tsx b/packages/ui/src/components/Command/ThemeOptions.tsxindex b5c4129e5e5..8732bdf2bdd 100644--- a/packages/ui/src/components/Command/ThemeOptions.tsx+++ b/packages/ui/src/components/Command/ThemeOptions.tsx@@ -1,25 +1,15 @@import { CommandGroup } from 'cmdk-supabase'import { useCommandMenu } from './CommandMenuProvider'import ChildItem from './ChildItem'-import { useTheme } from 'next-themes'+const ThemeOptions = ({ isSubItem = false }) => {- const { setIsOpen } = useCommandMenu()- const { setTheme } = useTheme()+ const { setIsOpen, actions } = useCommandMenu()return (<CommandGroup><ChildItemisSubItem={isSubItem}onSelect={() => {- setTheme('system')- setIsOpen(false)- }}- >- Change Theme to the system default- </ChildItem>- <ChildItem- isSubItem={isSubItem}- onSelect={() => {- setTheme('dark')+ actions.toggleTheme(true)setIsOpen(false)}}>@@ -28,7 +18,7 @@ const ThemeOptions = ({ isSubItem = false }) => {<ChildItemisSubItem={isSubItem}onSelect={() => {- setTheme('light')+ actions.toggleTheme(false)setIsOpen(false)}}>diff --git a/packages/ui/src/components/GlassPanel/GlassPanel.tsx b/packages/ui/src/components/GlassPanel/GlassPanel.tsxindex 21eda2ebb7a..043d9daf007 100644--- a/packages/ui/src/components/GlassPanel/GlassPanel.tsx+++ b/packages/ui/src/components/GlassPanel/GlassPanel.tsx@@ -1,4 +1,4 @@-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import * as React from 'react'import Image from 'next/image'@@ -29,8 +29,8 @@ const GlassPanel = ({showLink = false,showIconBg = false,}: Props) => {- const { resolvedTheme } = useTheme()- const showLogoInverse = logoInverse && resolvedTheme === 'dark'+ const { isDarkMode } = useTheme()+ const showLogoInverse = logoInverse && isDarkModeconst showLogo = !showLogoInverse && logoconst IconBackground: React.FC = (props) => (@@ -106,7 +106,7 @@ const GlassPanel = ({<imgclassName="w-5"alt={title}- src={`${icon}${hasLightIcon && resolvedTheme !== 'dark' ? '-light' : ''}.svg`}+ src={`${icon}${hasLightIcon && !isDarkMode ? '-light' : ''}.svg`}/></IconBackground>) : (diff --git a/packages/ui/src/components/IconPanel/IconPanel.tsx b/packages/ui/src/components/IconPanel/IconPanel.tsxindex 295239a5b08..90eb83e55e4 100644--- a/packages/ui/src/components/IconPanel/IconPanel.tsx+++ b/packages/ui/src/components/IconPanel/IconPanel.tsx@@ -1,4 +1,4 @@-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import * as React from 'react'import { ChevronRight } from 'react-feather'import ReactTooltip from 'react-tooltip'@@ -30,7 +30,7 @@ const IconPanel = ({showLink = false,hideArrow = false,}: Props) => {- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const IconContainer: React.FC = (props) => {return (@@ -69,7 +69,7 @@ const IconPanel = ({<IconContainer><imgclassName={iconSize === 'lg' ? 'w-8' : 'w-5'}- src={`${icon}${hasLightIcon && theme !== 'dark' ? '-light' : ''}.svg`}+ src={`${icon}${hasLightIcon && !isDarkMode ? '-light' : ''}.svg`}alt={title !== undefined? `${title} Icon`@@ -88,7 +88,7 @@ const IconPanel = ({{!hideArrow && (<divclassName="- transition-all ease-out -ml-1 opacity-0+ transition-all ease-out -ml-1 opacity-0text-scale-800group-hover:opacity-100group-hover:ml-0"@@ -104,8 +104,8 @@ const IconPanel = ({</div><divclassName="- absolute transition-all ease-in- -z-10 -inset-3 rounded-2xl+ absolute transition-all ease-in+ -z-10 -inset-3 rounded-2xlbg-scale-200 dark:bg-whiteA-300 opacity-0 peer-hover:opacity-100"></div></div>diff --git a/packages/ui/src/components/ThemeProvider/ThemeToggle.tsx b/packages/ui/src/components/ThemeProvider/ThemeToggle.tsxdeleted file mode 100644index d3b8b542ce5..00000000000--- a/packages/ui/src/components/ThemeProvider/ThemeToggle.tsx+++ /dev/null@@ -1,55 +0,0 @@-import { useTheme } from 'next-themes'-import { useState } from 'react'-import {- DropdownMenuGroup_Shadcn_,- DropdownMenuRadioGroup_Shadcn_,- DropdownMenuRadioItem_Shadcn_,- DropdownMenu_Shadcn_,- DropdownMenuContent_Shadcn_,- IconMoon,- IconSun,- DropdownMenuTrigger_Shadcn_,-} from 'ui'--interface ThemeToggleProps {- forceDark?: boolean-}--const ThemeToggle = ({ forceDark = false }: ThemeToggleProps) => {- const { theme, setTheme } = useTheme()- const [open, setOpen] = useState(false)-- // Conditionally force the theme to 'dark' when disabled is true- const currentTheme = forceDark ? 'dark' : theme-- return (- <DropdownMenu_Shadcn_ open={open} onOpenChange={() => setOpen(!open)} modal={false}>- <DropdownMenuTrigger_Shadcn_ asChild disabled={forceDark}>- <button- id="user-settings-dropdown"- className="flex items-center justify-center h-7 w-7 text"- >- <IconSun className="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />- <IconMoon className="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />- <span className="sr-only">Toggle theme</span>- </button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ align="end" className="w-60">- <DropdownMenuGroup_Shadcn_>- <DropdownMenuRadioGroup_Shadcn_- value={currentTheme} // Use the currentTheme variable here- onValueChange={(value) => {- setTheme(value)- }}- >- <DropdownMenuRadioItem_Shadcn_ value={'system'}>System</DropdownMenuRadioItem_Shadcn_>- <DropdownMenuRadioItem_Shadcn_ value={'dark'}>Dark</DropdownMenuRadioItem_Shadcn_>- <DropdownMenuRadioItem_Shadcn_ value={'light'}>Light</DropdownMenuRadioItem_Shadcn_>- </DropdownMenuRadioGroup_Shadcn_>- </DropdownMenuGroup_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>- )-}--export default ThemeTogglediff --git a/packages/ui/src/components/shadcn/ui/dropdown-menu.tsx b/packages/ui/src/components/shadcn/ui/dropdown-menu.tsxindex ebc79bf464f..f275d7401de 100644--- a/packages/ui/src/components/shadcn/ui/dropdown-menu.tsx+++ b/packages/ui/src/components/shadcn/ui/dropdown-menu.tsx@@ -1,6 +1,6 @@+import * as React from 'react'import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'import { Check, ChevronRight, Circle } from 'lucide-react'-import * as React from 'react'import { cn } from '@ui/lib/utils'@@ -32,7 +32,7 @@ const DropdownMenuSubTrigger = React.forwardRef<{...props}>{children}- <ChevronRight className="h-4 w-4 !ml-auto" />+ <ChevronRight className="ml-auto h-4 w-4" /></DropdownMenuPrimitive.SubTrigger>))DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName@@ -44,7 +44,7 @@ const DropdownMenuSubContent = React.forwardRef<<DropdownMenuPrimitive.SubContentref={ref}className={cn(- 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-overlay p-1 text-light shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',+ 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-overlay p-1 text shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',className)}{...props}@@ -61,7 +61,7 @@ const DropdownMenuContent = React.forwardRef<ref={ref}sideOffset={sideOffset}className={cn(- 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-overlay p-1 text-light shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 w-64',+ 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-overlay p-1 text-light shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',className)}{...props}@@ -79,7 +79,7 @@ const DropdownMenuItem = React.forwardRef<<DropdownMenuPrimitive.Itemref={ref}className={cn(- 'relative flex select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-overlay-hover focus:text-strong data-[disabled]:pointer-events-none data-[disabled]:opacity-50 cursor-pointer',+ 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-overlay-hover focus:text-strong data-[disabled]:pointer-events-none data-[disabled]:opacity-50 cursor-pointer',inset && 'pl-8',className)}diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.ymlindex ec93bdc1d19..102904bb959 100644--- a/spec/supabase_js_v2.yml+++ b/spec/supabase_js_v2.yml@@ -94,8 +94,8 @@ functions:`supabase-js` uses the [`cross-fetch`](https://www.npmjs.com/package/cross-fetch) library to make HTTP requests,but an alternative `fetch` implementation can be provided as an option.This is most useful in environments where `cross-fetch` is not compatible (for instance Cloudflare Workers).- - id: react-native-options-async-storage- name: React Native options with AsyncStorage+ - id: react-native-options+ name: React Native optionscode: |```jsimport { createClient } from '@supabase/supabase-js'@@ -112,78 +112,6 @@ functions:```description: |For React Native we recommend using `AsyncStorage` as the storage implementation for Supabase Auth.- - id: react-native-options-secure-storage- name: React Native options with Expo SecureStore- code: |- ```js- import { createClient } from '@supabase/supabase-js'- import AsyncStorage from '@react-native-async-storage/async-storage';- import * as SecureStore from 'expo-secure-store';- import * as aesjs from 'aes-js';- import 'react-native-get-random-values';-- // As Expo's SecureStore does not support values larger than 2048- // bytes, an AES-256 key is generated and stored in SecureStore, while- // it is used to encrypt/decrypt values stored in AsyncStorage.- class LargeSecureStore {- private async _encrypt(key: string, value: string) {- const encryptionKey = crypto.getRandomValues(new Uint8Array(256 / 8));-- const cipher = new aesjs.ModeOfOperation.ctr(encryptionKey, new aesjs.Counter(1));- const encryptedBytes = cipher.encrypt(aesjs.utils.utf8.toBytes(value));-- await SecureStore.setItemAsync(key, aesjs.utils.hex.fromBytes(encryptionKey));-- return aesjs.utils.hex.fromBytes(encryptedBytes);- }-- private async _decrypt(key: string, value: string) {- const encryptionKeyHex = await SecureStore.getItemAsync(key);- if (!encryptionKeyHex) {- return encryptionKeyHex;- }-- const cipher = new aesjs.ModeOfOperation.ctr(aesjs.utils.hex.toBytes(encryptionKeyHex), new aesjs.Counter(1));- const decryptedBytes = cipher.decrypt(aesjs.utils.hex.toBytes(value));-- return aesjs.utils.utf8.fromBytes(decryptedBytes);- }-- async getItem(key: string) {- const encrypted = await AsyncStorage.getItem(key);- if (!encrypted) { return encrypted; }-- return await this._decrypt(key, encrypted);- }-- async removeItem(key: string) {- await AsyncStorage.removeItem(key);- await SecureStore.deleteItemAsync(key);- }-- async setItem(key: string, value: string) {- const encrypted = await this._encrypt(key, value);-- await AsyncStorage.setItem(key, encrypted);- }- }-- const supabase = createClient("https://xyzcompany.supabase.co", "public-anon-key", {- auth: {- storage: new LargeSecureStore(),- autoRefreshToken: true,- persistSession: true,- detectSessionInUrl: false,- },- });- ```- description: |- If you wish to encrypt the user's session information, you can use `aes-js` and store the encryption key in Expo SecureStore. The `aes-js` library, a reputable JavaScript-only implementation of the AES encryption algorithm in CTR mode. A new 256-bit encryption key is generated using the `react-native-get-random-values` library. This key is stored inside Expo's SecureStore, while the value is encrypted and placed inside AsyncStorage.-- Please make sure that:- - You keep the `expo-secure-storage`, `aes-js` and `react-native-get-random-values` libraries up-to-date.- - Choose the correct [`SecureStoreOptions`](https://docs.expo.dev/versions/latest/sdk/securestore/#securestoreoptions) for your app's needs. E.g. [`SecureStore.WHEN_UNLOCKED`](https://docs.expo.dev/versions/latest/sdk/securestore/#securestorewhen_unlocked) regulates when the data can be accessed.- - Carefully consider optimizations or other modifications to the above example, as those can lead to introducing subtle security vulnerabilities.- id: auth-apititle: 'Overview'notes: |diff --git a/studio/.storybook/preview.css b/studio/.storybook/preview.cssindex 473d67f4950..7838b9a4816 100644--- a/studio/.storybook/preview.css+++ b/studio/.storybook/preview.css@@ -50,7 +50,7 @@}.react-datepicker__day-names {- @apply flex -space-x-px text-foreground-lighter font-normal text-center text-xs;+ @apply flex -space-x-px text-scale-900 font-normal text-center text-xs;}.react-datepicker__day-name {@@ -70,7 +70,7 @@}.react-datepicker__day {- @apply w-10 h-10 flex items-center font-normal justify-center text-sm leading-loose transition text-foreground-light;+ @apply w-10 h-10 flex items-center font-normal justify-center text-sm leading-loose transition text-scale-1100;/* @apply mb-1 py-1; */@apply -space-y-px;@apply border border-scale-500;diff --git a/studio/components/grid/components/common/DropdownControl.tsx b/studio/components/grid/components/common/DropdownControl.tsxindex 08704710440..3b51e0471ca 100644--- a/studio/components/grid/components/common/DropdownControl.tsx+++ b/studio/components/grid/components/common/DropdownControl.tsx@@ -1,10 +1,5 @@import { PropsWithChildren } from 'react'-import {- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,-} from 'ui'+import { Dropdown } from 'ui'interface DropdownControlProps {options: {@@ -14,40 +9,42 @@ interface DropdownControlProps {preLabel?: string}[]onSelect: (value: string | number) => void+ className?: stringside?: 'bottom' | 'left' | 'top' | 'right' | undefinedalign?: 'start' | 'center' | 'end' | undefined+ isNested?: boolean}-export const DropdownControl = ({- children,- side,- align,- options,- onSelect,-}: PropsWithChildren<DropdownControlProps>) => {+export const DropdownControl = (p: PropsWithChildren<DropdownControlProps>) => {+ const { className, children, side, align, isNested } = preturn (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>{children}</DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side={side} align={align}>- <div className="dropdown-control" style={{ maxHeight: '30vh' }}>- {options.length === 0 && <p className="dropdown-control__empty-text">No more items</p>}- {options.map((x) => {- return (- <DropdownMenuItem_Shadcn_ key={x.value} onClick={() => onSelect(x.value)}>- <div className="flex items-center gap-2">- {x.preLabel && (- <span className="grow text-xs text-foreground-lighter">{x.preLabel}</span>- )}- <span>{x.label}</span>- {x.postLabel && (- <span className="text-xs text-foreground-lighter">{x.postLabel}</span>- )}- </div>- </DropdownMenuItem_Shadcn_>- )- })}- </div>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown+ className={className}+ side={side}+ align={align}+ overlay={<DropdownItems {...p} />}+ isNested={isNested}+ >+ {children}+ </Dropdown>+ )+}++const DropdownItems = ({ options, onSelect }: DropdownControlProps) => {+ return (+ <div className="dropdown-control" style={{ maxHeight: '30vh' }}>+ {options.length == 0 && <p className="dropdown-control__empty-text">No more items</p>}+ {options.map((x) => {+ return (+ <Dropdown.Item key={x.value} onClick={() => onSelect(x.value)}>+ <div className="flex items-center gap-2">+ {x.preLabel && <span className="grow text-xs text-scale-900">{x.preLabel}</span>}+ <span>{x.label}</span>+ {x.postLabel && <span className="text-xs text-scale-900">{x.postLabel}</span>}+ </div>+ </Dropdown.Item>+ )+ })}+ </div>)}diff --git a/studio/components/grid/components/editor/JsonEditor.tsx b/studio/components/grid/components/editor/JsonEditor.tsxindex c88c77e74cd..83e5a694b4e 100644--- a/studio/components/grid/components/editor/JsonEditor.tsx+++ b/studio/components/grid/components/editor/JsonEditor.tsx@@ -1,10 +1,10 @@+import { IconMaximize, Popover } from 'ui'+import { useState, useCallback } from 'react'import * as Tooltip from '@radix-ui/react-tooltip'import { EditorProps } from '@supabase/react-data-grid'-import { useCallback, useState } from 'react'-import { IconMaximize, Popover } from 'ui'-import { BlockKeys, MonacoEditor, NullValue } from 'components/grid/components/common'import { useTrackedState } from 'components/grid/store'+import { BlockKeys, MonacoEditor, NullValue } from 'components/grid/components/common'import { tryParseJson } from 'lib/helpers'import { isNil } from 'lodash'@@ -92,13 +92,13 @@ export const JsonEditor = <TRow, TSummaryRow = unknown>({<div className="px-1.5 py-[2.5px] rounded bg-scale-600 border border-scale-700 flex items-center justify-center"><span className="text-[10px]">⏎</span></div>- <p className="text-xs text-foreground-light">Save changes</p>+ <p className="text-xs text-scale-1100">Save changes</p></div><div className="flex items-center space-x-2"><div className="px-1 py-[2.5px] rounded bg-scale-600 border border-scale-700 flex items-center justify-center"><span className="text-[10px]">Esc</span></div>- <p className="text-xs text-foreground-light">Cancel changes</p>+ <p className="text-xs text-scale-1100">Cancel changes</p></div></div>) : (@@ -125,7 +125,7 @@ export const JsonEditor = <TRow, TSummaryRow = unknown>({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">Expand editor</span>+ <span className="text-xs text-scale-1200">Expand editor</span></div></Tooltip.Content></Tooltip.Portal>diff --git a/studio/components/grid/components/editor/TextEditor.tsx b/studio/components/grid/components/editor/TextEditor.tsxindex 52c93f0fe94..b0b40db5b34 100644--- a/studio/components/grid/components/editor/TextEditor.tsx+++ b/studio/components/grid/components/editor/TextEditor.tsx@@ -1,8 +1,8 @@+import { useState, useCallback } from 'react'import { EditorProps } from '@supabase/react-data-grid'-import { useCallback, useState } from 'react'-import { Button, Popover } from 'ui'import { useTrackedState } from '../../store'-import { BlockKeys, EmptyValue, MonacoEditor, NullValue } from '../common'+import { BlockKeys, MonacoEditor, NullValue, EmptyValue } from '../common'+import { Button, Popover } from 'ui'export const TextEditor = <TRow, TSummaryRow = unknown>({row,@@ -56,13 +56,13 @@ export const TextEditor = <TRow, TSummaryRow = unknown>({<div className="px-1.5 py-[2.5px] rounded bg-scale-600 border border-scale-700 flex items-center justify-center"><span className="text-[10px]">⏎</span></div>- <p className="text-xs text-foreground-light">Save changes</p>+ <p className="text-xs text-scale-1100">Save changes</p></div><div className="flex items-center space-x-2"><div className="px-1 py-[2.5px] rounded bg-scale-600 border border-scale-700 flex items-center justify-center"><span className="text-[10px]">Esc</span></div>- <p className="text-xs text-foreground-light">Cancel changes</p>+ <p className="text-xs text-scale-1100">Cancel changes</p></div></div><div className="space-y-1">diff --git a/studio/components/grid/components/footer/pagination/Pagination.tsx b/studio/components/grid/components/footer/pagination/Pagination.tsxindex 636a54fe955..145a72209d6 100644--- a/studio/components/grid/components/footer/pagination/Pagination.tsx+++ b/studio/components/grid/components/footer/pagination/Pagination.tsx@@ -1,13 +1,13 @@+import { useState, useEffect } from 'react'import AwesomeDebouncePromise from 'awesome-debounce-promise'-import { formatFilterURLParams } from 'components/grid/SupabaseGrid.utils'-import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'-import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal'-import { useTableRowsCountQuery } from 'data/table-rows/table-rows-count-query'+import { Button, InputNumber, IconArrowRight, IconArrowLeft, IconLoader } from 'ui'import { useUrlState } from 'hooks'-import { useEffect, useState } from 'react'-import { Button, IconArrowLeft, IconArrowRight, IconLoader, InputNumber } from 'ui'-import { useDispatch, useTrackedState } from '../../../store'+import { useTableRowsCountQuery } from 'data/table-rows/table-rows-count-query'import { DropdownControl } from '../../common'+import { useDispatch, useTrackedState } from '../../../store'+import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal'+import { formatFilterURLParams } from 'components/grid/SupabaseGrid.utils'+import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'const updatePage = (payload: number, dispatch: (value: unknown) => void) => {dispatch({@@ -143,7 +143,7 @@ const Pagination = ({ isLoading: isLoadingRows = false }: PaginationProps) => {return (<div className="sb-grid-pagination">- {isLoading && <p className="text-sm text-foreground-light">Loading records count...</p>}+ {isLoading && <p className="text-sm text-scale-1100">Loading records count...</p>}{isSuccess && (<>@@ -154,7 +154,7 @@ const Pagination = ({ isLoading: isLoadingRows = false }: PaginationProps) => {onClick={onPreviousPage}style={{ padding: '3px 10px' }}/>- <p className="text-sm text-foreground-light">Page</p>+ <p className="text-sm text-scale-1100">Page</p><div className="sb-grid-pagination-input-container"><InputNumber// [Fran] we'll have to upgrade the UI component types to accept the null value when users delete the input content@@ -169,7 +169,7 @@ const Pagination = ({ isLoading: isLoadingRows = false }: PaginationProps) => {min={1}/></div>- <p className="text-sm text-foreground-light">{`of ${totalPages}`}</p>+ <p className="text-sm text-scale-1100">{`of ${totalPages}`}</p><Buttonicon={<IconArrowRight />}type="outline"@@ -188,7 +188,7 @@ const Pagination = ({ isLoading: isLoadingRows = false }: PaginationProps) => {<span>{`${state.rowsPerPage} rows`}</span></Button></DropdownControl>- <p className="text-sm text-foreground-light">{`${data.count.toLocaleString()} ${+ <p className="text-sm text-scale-1100">{`${data.count.toLocaleString()} ${data.count === 0 || data.count > 1 ? `records` : 'record'}`}</p>{isLoadingRows && <IconLoader size={14} className="animate-spin" />}@@ -196,7 +196,7 @@ const Pagination = ({ isLoading: isLoadingRows = false }: PaginationProps) => {)}{isError && (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Error fetching records count. Please refresh the page.</p>)}diff --git a/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx b/studio/components/grid/components/formatter/ForeignKeyFormatter.tsxindex 975dd6d1eb8..d6a91029ddf 100644--- a/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx+++ b/studio/components/grid/components/formatter/ForeignKeyFormatter.tsx@@ -75,7 +75,7 @@ export const ForeignKeyFormatter = (props: PropsWithChildren<FormatterProps<Supa'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">View referencing record</span>+ <span className="text-xs text-scale-1200">View referencing record</span></div></Tooltip.Content></Tooltip.Portal>diff --git a/studio/components/grid/components/grid/ColumnHeader.tsx b/studio/components/grid/components/grid/ColumnHeader.tsxindex c23b2b0d113..5c490e82791 100644--- a/studio/components/grid/components/grid/ColumnHeader.tsx+++ b/studio/components/grid/components/grid/ColumnHeader.tsx@@ -1,13 +1,14 @@-import * as Tooltip from '@radix-ui/react-tooltip'-import { getForeignKeyCascadeAction } from 'components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils'-import { FOREIGN_KEY_CASCADE_ACTION } from 'data/database/database-query-constants'-import { XYCoord } from 'dnd-core'import * as React from 'react'-import { DropTargetMonitor, useDrag, useDrop } from 'react-dnd'import { IconArrowRight, IconKey, IconLink, IconLock } from 'ui'-import { useDispatch, useTrackedState } from '../../store'+import * as Tooltip from '@radix-ui/react-tooltip'+import { useDrag, useDrop, DropTargetMonitor } from 'react-dnd'+import { XYCoord } from 'dnd-core'+import { useDispatch } from '../../store'import { ColumnHeaderProps, ColumnType, DragItem, GridForeignKey } from '../../types'import { ColumnMenu } from '../menu'+import { useTrackedState } from '../../store'+import { FOREIGN_KEY_CASCADE_ACTION } from 'data/database/database-query-constants'+import { getForeignKeyCascadeAction } from 'components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils'export function ColumnHeader<R>({column,@@ -138,7 +139,7 @@ export function ColumnHeader<R>({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">Primary key</span>+ <span className="text-xs text-scale-1200">Primary key</span></div></Tooltip.Content></Tooltip.Portal>@@ -162,7 +163,7 @@ export function ColumnHeader<R>({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">Encrypted column</span>+ <span className="text-xs text-scale-1200">Encrypted column</span></div></Tooltip.Content></Tooltip.Portal>@@ -197,17 +198,17 @@ function renderColumnIcon(].join(' ')}><div>- <p className="text-xs text-foreground-light">Foreign key relation:</p>+ <p className="text-xs text-scale-1100">Foreign key relation:</p><div className="flex items-center space-x-1">- <p className="text-xs text-foreground">{name}</p>+ <p className="text-xs text-scale-1200">{name}</p><IconArrowRight size="tiny" strokeWidth={1.5} />- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">{foreignKey?.targetTableSchema}.{foreignKey?.targetTableName}.{foreignKey?.targetColumnName}</p></div>{foreignKey?.deletionAction !== FOREIGN_KEY_CASCADE_ACTION.NO_ACTION && (- <p className="text-xs text-foreground mt-1">+ <p className="text-xs text-scale-1200 mt-1">On delete: {getForeignKeyCascadeAction(foreignKey?.deletionAction)}</p>)}diff --git a/studio/components/grid/components/header/Header.tsx b/studio/components/grid/components/header/Header.tsxindex e3c48e37dc6..758cb072500 100644--- a/studio/components/grid/components/header/Header.tsx+++ b/studio/components/grid/components/header/Header.tsx@@ -1,37 +1,33 @@-import { PermissionAction } from '@supabase/shared-types/out/constants'import saveAs from 'file-saver'import Papa from 'papaparse'-import { ReactNode, useState } from 'react'+import { useState, ReactNode } from 'react'import {Button,- cn,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconArrowUp,- IconChevronDown,IconDownload,- IconFileText,- IconTrash,IconX,+ IconTrash,+ Dropdown,+ IconChevronDown,+ IconFileText,+ IconArrowUp,} from 'ui'+import { PermissionAction } from '@supabase/shared-types/out/constants'-import clsx from 'clsx'+import { useCheckPermissions, useStore, useUrlState } from 'hooks'+import FilterDropdown from './filter'+import SortPopover from './sort'+import RefreshButton from './RefreshButton'+import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal'+import { Sort, Filter, SupaTable } from 'components/grid/types'import { useDispatch, useTrackedState } from 'components/grid/store'-import { Filter, Sort, SupaTable } from 'components/grid/types'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'-import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal'-import { useTableRowDeleteAllMutation } from 'data/table-rows/table-row-delete-all-mutation'import { useTableRowDeleteMutation } from 'data/table-rows/table-row-delete-mutation'+import { useTableRowDeleteAllMutation } from 'data/table-rows/table-row-delete-all-mutation'import { useTableRowTruncateMutation } from 'data/table-rows/table-row-truncate-mutation'import { useTableRowsCountQuery } from 'data/table-rows/table-rows-count-query'import { useTableRowsQuery } from 'data/table-rows/table-rows-query'-import { useCheckPermissions, useStore, useUrlState } from 'hooks'-import FilterDropdown from './filter'-import RefreshButton from './RefreshButton'import RLSBannerWarning from './RLSBannerWarning'-import SortPopover from './sort'+import clsx from 'clsx'// [Joshen] CSV exports require this guard as a fail-safe if the table is// just too large for a browser to keep all the rows in memory before@@ -128,73 +124,74 @@ const DefaultHeader = ({<div className="h-[20px] w-px border-r border-scale-600"></div><div className="flex items-center gap-2">{canCreateColumns && (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_ className="flex">- <Button size="tiny" icon={<IconChevronDown size={14} strokeWidth={1.5} />}>- Insert- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="start">- {[- ...(onAddRow !== undefined- ? [- <DropdownMenuItem_Shadcn_- key="add-row"- className="group space-x-2"- onClick={onAddRow}- >+ <Dropdown+ side="bottom"+ align="start"+ size="medium"+ overlay={[+ ...(onAddRow !== undefined+ ? [+ <Dropdown.Item+ key="add-row"+ className="group"+ onClick={onAddRow}+ icon={<div className="-mt-2 pr-1.5"><div className="border border-scale-1000 w-[15px] h-[4px]" /><div className="border border-scale-1000 w-[15px] h-[4px] my-[2px]" /><div- className={cn([+ className={['border border-scale-1100 w-[15px] h-[4px] translate-x-0.5','transition duration-200 group-data-[highlighted]:border-brand group-data-[highlighted]:translate-x-0',- ])}+ ].join(' ')}/></div>- <div>- <p className="text">Insert row</p>- <p className="text-foreground-light text-xs">- Insert a new row into {table.name}- </p>- </div>- </DropdownMenuItem_Shadcn_>,- ]- : []),- ...(onAddColumn !== undefined- ? [- <DropdownMenuItem_Shadcn_- key="add-column"- className="group space-x-2"- onClick={onAddColumn}- >+ }+ >+ <div className="">+ <p>Insert row</p>+ <p className="text-scale-1000 text-xs">+ Insert a new row into {table.name}+ </p>+ </div>+ </Dropdown.Item>,+ ]+ : []),+ ...(onAddColumn !== undefined+ ? [+ <Dropdown.Item+ key="add-column"+ className="group"+ onClick={onAddColumn}+ icon={<div className="flex -mt-2 pr-1.5"><div className="border border-scale-1000 w-[4px] h-[15px]" /><div className="border border-scale-1000 w-[4px] h-[15px] mx-[2px]" /><div- className={cn([+ className={['border border-scale-1100 w-[4px] h-[15px] -translate-y-0.5','transition duration-200 group-data-[highlighted]:border-brand group-data-[highlighted]:translate-y-0',- ])}+ ].join(' ')}/></div>- <div>- <p className="text">Insert column</p>- <p className="text-lighter text-xs">- Insert a new column into {table.name}- </p>- </div>- </DropdownMenuItem_Shadcn_>,- ]- : []),- ...(onImportData !== undefined- ? [- <DropdownMenuItem_Shadcn_- key="import-data"- className="group space-x-2"- onClick={onImportData}- >+ }+ >+ <div className="">+ <p>Insert column</p>+ <p className="text-scale-1000 text-xs">+ Insert a new column into {table.name}+ </p>+ </div>+ </Dropdown.Item>,+ ]+ : []),+ ...(onImportData !== undefined+ ? [+ <Dropdown.Item+ key="import-data"+ className="group"+ onClick={onImportData}+ icon={<div className="relative -mt-2"><IconFileText className="-translate-x-[2px]" /><IconArrowUp@@ -206,16 +203,21 @@ const DefaultHeader = ({size={12}/></div>- <div>- <p className="text">Import data from CSV</p>- <p className="text-lighter text-xs">Insert new rows from a CSV</p>- </div>- </DropdownMenuItem_Shadcn_>,- ]- : []),- ]}- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ }+ >+ <div className="">+ <p>Import data from CSV</p>+ <p className="text-scale-1000 text-xs">Insert new rows from a CSV</p>+ </div>+ </Dropdown.Item>,+ ]+ : []),+ ]}+ >+ <Button size="tiny" icon={<IconChevronDown size={14} strokeWidth={1.5} />}>+ Insert+ </Button>+ </Dropdown>)}</div></>@@ -404,7 +406,7 @@ const RowHeader = ({ table, sorts, filters }: RowHeaderProps) => {icon={<IconX size="tiny" strokeWidth={2} />}onClick={deselectRows}/>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">{allRowsSelected? `${totalRows} rows selected`: selectedRows.size > 1diff --git a/studio/components/grid/components/header/RLSBannerWarning.tsx b/studio/components/grid/components/header/RLSBannerWarning.tsxindex 124444f0142..6f27e1821de 100644--- a/studio/components/grid/components/header/RLSBannerWarning.tsx+++ b/studio/components/grid/components/header/RLSBannerWarning.tsx@@ -58,7 +58,7 @@ export default function RLSBannerWarning() {<div className="ml-20 absolute right-2"><Buttontype="outline"- className="hover:text-foreground text-amber-900 dark:text-amber-900 border border-amber-800"+ className="hover:text-scale-1200 text-amber-900 dark:text-amber-900 border border-amber-800"onClick={() => setIsOpen(true)}>Dismissdiff --git a/studio/components/grid/components/header/RefreshButton.tsx b/studio/components/grid/components/header/RefreshButton.tsxindex 141092ca95e..ae4f21faa4b 100644--- a/studio/components/grid/components/header/RefreshButton.tsx+++ b/studio/components/grid/components/header/RefreshButton.tsx@@ -1,7 +1,7 @@import { useQueryClient } from '@tanstack/react-query'-import { useParams } from 'common/hooks'import { SupaTable } from 'components/grid/types'import { sqlKeys } from 'data/sql/keys'+import { useParams } from 'common/hooks'import { useEffect, useState } from 'react'import { Button, IconCheck, IconRefreshCw } from 'ui'import { SupabaseGridQueue } from '../../constants'@@ -49,7 +49,7 @@ const RefreshButton = ({ table, isRefetching }: RefreshButtonProps) => {type="text"icon={!status ? (- <IconRefreshCw className="text-foreground-light" strokeWidth={1.5} />+ <IconRefreshCw className="text-scale-1000" strokeWidth={1.5} />) : status === 'saved' ? (<IconCheck className="text-brand" strokeWidth={3} />) : (diff --git a/studio/components/grid/components/header/filter/FilterPopover.tsx b/studio/components/grid/components/header/filter/FilterPopover.tsxindex 1a438911474..d2b8458943a 100644--- a/studio/components/grid/components/header/filter/FilterPopover.tsx+++ b/studio/components/grid/components/header/filter/FilterPopover.tsx@@ -1,13 +1,13 @@-import { useUrlState } from 'hooks'-import update from 'immutability-helper'+import { useState, useMemo, useCallback, KeyboardEvent } from 'react'import { isEqual } from 'lodash'-import { KeyboardEvent, useCallback, useMemo, useState } from 'react'-import { Button, IconFilter, IconPlus, Popover } from 'ui'+import { Button, IconPlus, IconFilter, Popover } from 'ui'+import update from 'immutability-helper'+import { useUrlState } from 'hooks'+import FilterRow from './FilterRow'import { formatFilterURLParams } from 'components/grid/SupabaseGrid.utils'import { Filter, SupaTable } from 'components/grid/types'import { FilterOperatorOptions } from './Filter.constants'-import FilterRow from './FilterRow'export interface FilterPopoverProps {table: SupaTable@@ -32,7 +32,7 @@ const FilterPopover = ({ table, filters, setParams }: FilterPopoverProps) => {asChildtype={(filters || []).length > 0 ? 'link' : 'text'}icon={- <div className="text-foreground-light">+ <div className="text-scale-1000"><IconFilter strokeWidth={1.5} /></div>}@@ -124,8 +124,8 @@ const FilterOverlay = ({ table, filters: filtersFromUrl, setParams }: FilterOver))}{filters.length == 0 && (<div className="space-y-1 px-3">- <h5 className="text-sm text-foreground-light">No filters applied to this view</h5>- <p className="text-xs text-foreground-lighter">Add a column below to filter the view</p>+ <h5 className="text-sm text-scale-1100">No filters applied to this view</h5>+ <p className="text-xs text-scale-900">Add a column below to filter the view</p></div>)}</div>diff --git a/studio/components/grid/components/header/filter/FilterRow.tsx b/studio/components/grid/components/header/filter/FilterRow.tsxindex 3be749c3164..69ecd1f8a59 100644--- a/studio/components/grid/components/header/filter/FilterRow.tsx+++ b/studio/components/grid/components/header/filter/FilterRow.tsx@@ -1,8 +1,8 @@-import { KeyboardEvent, memo } from 'react'-import { Button, IconChevronDown, IconX, Input } from 'ui'+import { memo, KeyboardEvent } from 'react'+import { Button, Input, IconChevronDown, IconX } from 'ui'-import { DropdownControl } from 'components/grid/components/common'import { Filter, FilterOperator, SupaTable } from 'components/grid/types'+import { DropdownControl } from 'components/grid/components/common'import { FilterOperatorOptions } from './Filter.constants'export interface FilterRowProps {@@ -39,7 +39,7 @@ const FilterRow = ({ table, filter, filterIdx, onChange, onDelete, onKeyDown }:asChildtype="outline"icon={- <div className="text-foreground-lighter">+ <div className="text-scale-900"><IconChevronDown strokeWidth={1.5} size={14} /></div>}@@ -62,7 +62,7 @@ const FilterRow = ({ table, filter, filterIdx, onChange, onDelete, onKeyDown }:asChildtype="outline"icon={- <div className="text-foreground-lighter">+ <div className="text-scale-900"><IconChevronDown strokeWidth={1.5} size={14} /></div>}diff --git a/studio/components/grid/components/header/sort/SortPopover.tsx b/studio/components/grid/components/header/sort/SortPopover.tsxindex bbbed488808..cebe91c4a9d 100644--- a/studio/components/grid/components/header/sort/SortPopover.tsx+++ b/studio/components/grid/components/header/sort/SortPopover.tsx@@ -1,13 +1,13 @@-import { useUrlState } from 'hooks'-import update from 'immutability-helper'+import React, { useState, useMemo, useCallback } from 'react'import { isEqual } from 'lodash'-import { useCallback, useMemo, useState } from 'react'-import { Button, IconChevronDown, IconList, Popover } from 'ui'+import update from 'immutability-helper'+import { Button, IconList, IconChevronDown, Popover } from 'ui'+import { useUrlState } from 'hooks'+import SortRow from './SortRow'import { DropdownControl } from 'components/grid/components/common'-import { formatSortURLParams } from 'components/grid/SupabaseGrid.utils'import { Sort, SupaTable } from 'components/grid/types'-import SortRow from './SortRow'+import { formatSortURLParams } from 'components/grid/SupabaseGrid.utils'export interface SortPopoverProps {table: SupaTable@@ -32,7 +32,7 @@ const SortPopover = ({ table, sorts, setParams }: SortPopoverProps) => {asChildtype={(sorts || []).length > 0 ? 'link' : 'text'}icon={- <div className="text-foreground-light">+ <div className="text-scale-1000"><IconList strokeWidth={1.5} /></div>}@@ -120,8 +120,8 @@ const SortOverlay = ({ table, sorts: sortsFromUrl, setParams }: SortOverlayProps))}{sorts.length === 0 && (<div className="space-y-1 px-3">- <h5 className="text-sm text-foreground-light">No sorts applied to this view</h5>- <p className="text-xs text-foreground-lighter">Add a column below to sort the view</p>+ <h5 className="text-sm text-scale-1100">No sorts applied to this view</h5>+ <p className="text-xs text-scale-900">Add a column below to sort the view</p></div>)}@@ -144,7 +144,7 @@ const SortOverlay = ({ table, sorts: sortsFromUrl, setParams }: SortOverlayProps</Button></DropdownControl>) : (- <p className="text-sm text-foreground-light">All columns have been added</p>+ <p className="text-sm text-scale-1100">All columns have been added</p>)}<Button disabled={isEqual(sorts, initialSorts)} type="default" onClick={onApplySort}>Apply sortingdiff --git a/studio/components/grid/components/header/sort/SortRow.tsx b/studio/components/grid/components/header/sort/SortRow.tsxindex 95182e2bb29..cde4967167b 100644--- a/studio/components/grid/components/header/sort/SortRow.tsx+++ b/studio/components/grid/components/header/sort/SortRow.tsx@@ -1,7 +1,7 @@+import { useRef, memo } from 'react'+import { Button, IconMenu, Toggle, IconX } from 'ui'import { XYCoord } from 'dnd-core'-import { memo, useRef } from 'react'-import { DropTargetMonitor, useDrag, useDrop } from 'react-dnd'-import { Button, IconMenu, IconX, Toggle } from 'ui'+import { useDrag, useDrop, DropTargetMonitor } from 'react-dnd'import { DragItem, Sort, SupaTable } from 'components/grid/types'@@ -103,19 +103,17 @@ const SortRow = ({ table, index, columnName, sort, onDelete, onToggle, onDrag }:style={{ opacity }}data-handler-id={handlerId}>- <span className="transition-color text-foreground-lighter hover:text-foreground-light">+ <span className="transition-color text-scale-900 hover:text-scale-1100"><IconMenu strokeWidth={2} size={16} /></span><div className="grow">- <span className="flex grow items-center gap-1 truncate text-sm text-foreground">- <span className="text-xs text-foreground-lighter">- {index > 0 ? 'then by' : 'sort by'}- </span>+ <span className="flex grow items-center gap-1 truncate text-sm text-scale-1200">+ <span className="text-xs text-scale-900">{index > 0 ? 'then by' : 'sort by'}</span>{column.name}</span></div><div className="flex items-center gap-1">- <label className="text-xs text-foreground-lighter">ascending:</label>+ <label className="text-xs text-scale-900">ascending:</label><Togglesize="tiny"layout="flex"diff --git a/studio/components/grid/components/menu/ColumnMenu.tsx b/studio/components/grid/components/menu/ColumnMenu.tsxindex 0b3abfffc0d..0d4af517ce5 100644--- a/studio/components/grid/components/menu/ColumnMenu.tsx+++ b/studio/components/grid/components/menu/ColumnMenu.tsx@@ -3,10 +3,7 @@ import { CalculatedColumn } from '@supabase/react-data-grid'import {Button,Divider,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,IconChevronDown,IconEdit,IconLock,@@ -50,14 +47,13 @@ const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {{state.editable && onEditColumn !== undefined && (<Tooltip.Root delayDuration={0}><Tooltip.Trigger asChild className={`${isEncrypted ? 'opacity-50' : ''}`}>- <DropdownMenuItem_Shadcn_- className="space-x-2"+ <Dropdown.ItemonClick={onEditColumn}disabled={isEncrypted}+ icon={<IconEdit size="tiny" />}>- <IconEdit size="tiny" />- <p className="text">Edit column</p>- </DropdownMenuItem_Shadcn_>+ Edit column+ </Dropdown.Item></Tooltip.Trigger>{isEncrypted && (<Tooltip.Portal>@@ -69,7 +65,7 @@ const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">Encrypted columns cannot be edited</span></div>@@ -78,29 +74,18 @@ const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {)}</Tooltip.Root>)}- <DropdownMenuItem_Shadcn_- className="space-x-2"+ <Dropdown.ItemonClick={column.frozen ? onUnfreezeColumn : onFreezeColumn}+ icon={column.frozen ? <IconUnlock size="tiny" /> : <IconLock size="tiny" />}>- {column.frozen ? (- <>- <IconUnlock size="tiny" />- <p className="text">Unfreeze column</p>- </>- ) : (- <>- <IconLock size="tiny" />- <p className="text">Freeze column</p>- </>- )}- </DropdownMenuItem_Shadcn_>+ {column.frozen ? 'Unfreeze column' : 'Freeze column'}+ </Dropdown.Item>{state.editable && onDeleteColumn !== undefined && (<><Divider light />- <DropdownMenuItem_Shadcn_ className="space-x-2" onClick={onDeleteColumn}>- <IconTrash size="tiny" stroke="red" />- <p className="text">Delete column</p>- </DropdownMenuItem_Shadcn_>+ <Dropdown.Item onClick={onDeleteColumn} icon={<IconTrash size="tiny" stroke="red" />}>+ Delete column+ </Dropdown.Item></>)}</>@@ -109,24 +94,18 @@ const ColumnMenu = ({ column, isEncrypted }: ColumnMenuProps) => {return (<>- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- asChild- className="opacity-50 flex"- type="text"- icon={<IconChevronDown />}- style={{ padding: '3px' }}- >- <span></span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ align="end" side="bottom">- {renderMenu()}- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown align="end" side="bottom" overlay={renderMenu()}>+ <Button+ asChild+ className="opacity-50"+ type="text"+ icon={<IconChevronDown />}+ style={{ padding: '3px' }}+ >+ <span></span>+ </Button>+ </Dropdown></>)}-export default ColumnMenudiff --git a/studio/components/grid/components/menu/RowContextMenu.tsx b/studio/components/grid/components/menu/RowContextMenu.tsxindex 28883f3d610..628bbf728fb 100644--- a/studio/components/grid/components/menu/RowContextMenu.tsx+++ b/studio/components/grid/components/menu/RowContextMenu.tsx@@ -7,7 +7,6 @@ import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmMimport { useTableRowDeleteMutation } from 'data/table-rows/table-row-delete-mutation'import { useDispatch, useTrackedState } from '../../store'import { copyToClipboard, formatClipboardValue } from '../../utils'-import { useCallback } from 'react'export const ROW_CONTEXT_MENU_ID = 'row-context-menu-id'@@ -67,26 +66,23 @@ const RowContextMenu = ({ table, rows }: RowContextMenuProps) => {return false}- const onCopyCellContent = useCallback(- (p: ItemParams) => {- const { props } = p+ function onCopyCellContent(p: ItemParams) {+ const { props } = p- if (!state.selectedCellPosition || !props) {- return- }+ if (!state.selectedCellPosition || !props) {+ return+ }- const { rowIdx } = props- const row = rows[rowIdx]+ const { rowIdx } = props+ const row = rows[rowIdx]- const columnKey = state.gridColumns[state.selectedCellPosition?.idx as number].key+ const columnKey = state.gridColumns[state.selectedCellPosition?.idx as number].key- const value = row[columnKey]- const text = formatClipboardValue(value)+ const value = row[columnKey]+ const text = formatClipboardValue(value)- copyToClipboard(text)- },- [rows, state.gridColumns, state.selectedCellPosition]- )+ copyToClipboard(text)+ }return (<>diff --git a/studio/components/interfaces/Account/AccessTokenList.tsx b/studio/components/interfaces/Account/AccessTokenList.tsxindex bcc8df4effc..9b76f1c93b0 100644--- a/studio/components/interfaces/Account/AccessTokenList.tsx+++ b/studio/components/interfaces/Account/AccessTokenList.tsx@@ -37,7 +37,7 @@ const AccessTokenList = observer(() => {tokens && tokens.length == 0 ? (<Table.tr><Table.td colSpan={5} className="p-3 py-12 text-center">- <p className="text-foreground-light">+ <p className="text-scale-1000">{isLoading ? 'Checking for tokens' : 'You do not have any tokens created yet'}</p></Table.td>@@ -89,7 +89,7 @@ const AccessTokenList = observer(() => {}}><Modal.Content>- <p className="py-4 text-sm text-foreground-light">+ <p className="py-4 text-sm text-scale-1100">{`This action cannot be undone. Are you sure you want to delete "${token?.name}" token?`}</p></Modal.Content>diff --git a/studio/components/interfaces/Account/AuditLogs.tsx b/studio/components/interfaces/Account/AuditLogs.tsxindex b4463252027..fcf3d12a52d 100644--- a/studio/components/interfaces/Account/AuditLogs.tsx+++ b/studio/components/interfaces/Account/AuditLogs.tsx@@ -198,7 +198,7 @@ const AuditLogs = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">{dateSortDesc ? 'Sort latest first' : 'Sort earliest first'}</span></div>@@ -241,7 +241,7 @@ const AuditLogs = () => {</Table.td><Table.td><p- className="text-foreground-light max-w-[230px] truncate"+ className="text-scale-1100 max-w-[230px] truncate"title={project?.name ?? organization?.name ?? '-'}>{project?.name@@ -252,7 +252,7 @@ const AuditLogs = () => {{project?.name ?? organization?.name ?? '-'}</p><p- className="text-foreground-light text-xs mt-0.5 truncate"+ className="text-scale-1000 text-xs mt-0.5 truncate"title={log.target.metadata.project_ref ?? log.target.metadata.org_slug}>{log.target.metadata.project_refdiff --git a/studio/components/interfaces/Account/NewAccessTokenButton.tsx b/studio/components/interfaces/Account/NewAccessTokenButton.tsxindex 09d0cfc01d6..e3b7e9eeabd 100644--- a/studio/components/interfaces/Account/NewAccessTokenButton.tsx+++ b/studio/components/interfaces/Account/NewAccessTokenButton.tsx@@ -1,19 +1,7 @@import { observer } from 'mobx-react-lite'import Link from 'next/link'import { useState } from 'react'-import {- Alert,- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- Form,- IconChevronDown,- IconExternalLink,- Input,- Modal,-} from 'ui'+import { Alert, Button, Dropdown, Form, IconChevronDown, IconExternalLink, Input, Modal } from 'ui'import { useAccessTokenCreateMutation } from 'data/access-tokens/access-tokens-create-mutation'@@ -56,19 +44,11 @@ const NewAccessTokenButton = observer(({ onCreateToken }: NewAccessTokenButtonPr>Generate new token</Button>- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_ asChild>- <Button- asChild- type="primary"- className="rounded-l-none px-[4px] py-[5px]"- icon={<IconChevronDown />}- >- <span></span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ align="end" side="bottom">- <DropdownMenuItem_Shadcn_+ <Dropdown+ align="end"+ side="bottom"+ overlay={[+ <Dropdown.Itemkey="experimental-token"onClick={() => {setTokenScope('V0')@@ -76,11 +56,20 @@ const NewAccessTokenButton = observer(({ onCreateToken }: NewAccessTokenButtonPr}}><div className="space-y-1">- <p className="block text-foreground">Generate token for experimental API</p>+ <p className="block text-scale-1200">Generate token for experimental API</p></div>- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ </Dropdown.Item>,+ ]}+ >+ <Button+ asChild+ type="primary"+ className="rounded-l-none px-[4px] py-[5px]"+ icon={<IconChevronDown />}+ >+ <span></span>+ </Button>+ </Dropdown></div></div></div>@@ -93,7 +82,7 @@ const NewAccessTokenButton = observer(({ onCreateToken }: NewAccessTokenButtonPronCancel={() => setIsOpen(!isOpen)}header={<div className="flex items-baseline gap-2">- <h5 className="text-sm text-foreground">+ <h5 className="text-sm text-scale-1200">{tokenScope === 'V0' ? 'Generate token for experimental API' : 'Generate New Token'}</h5></div>diff --git a/studio/components/interfaces/App/AppBannerWrapper.tsx b/studio/components/interfaces/App/AppBannerWrapper.tsxindex 186be70cd93..65f203d560e 100644--- a/studio/components/interfaces/App/AppBannerWrapper.tsx+++ b/studio/components/interfaces/App/AppBannerWrapper.tsx@@ -1,5 +1,5 @@import { useMonaco } from '@monaco-editor/react'-import { useTheme } from 'next-themes'+import { useTheme } from 'common'import IncidentBanner from 'components/layouts/AppLayout/IncidentBanner'import { getTheme } from 'components/ui/CodeEditor'import { useFlag } from 'hooks'@@ -7,15 +7,15 @@ import { PropsWithChildren, useEffect } from 'react'const AppBannerWrapper = ({ children }: PropsWithChildren<{}>) => {const monaco = useMonaco()- const { resolvedTheme } = useTheme()+ const { isDarkMode } = useTheme()const ongoingIncident = useFlag('ongoingIncident')useEffect(() => {- if (monaco && resolvedTheme) {- const mode: any = getTheme(resolvedTheme)- monaco.editor.defineTheme('supabase', mode)+ if (monaco) {+ const theme: any = getTheme(isDarkMode)+ monaco.editor.defineTheme('supabase', theme)}- }, [resolvedTheme, monaco])+ }, [isDarkMode, monaco])return (<div className="min-h-full flex flex-col">diff --git a/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx b/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsxindex 348736edd22..96f6a8dfb47 100644--- a/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx+++ b/studio/components/interfaces/Auth/AuthProvidersForm/FormField.tsx@@ -1,8 +1,8 @@-import { DatePicker } from 'components/ui/DatePicker'-import dayjs from 'dayjs'-import { useEffect, useState } from 'react'+import { useState, useEffect } from 'react'import ReactMarkdown from 'react-markdown'+import dayjs from 'dayjs'import { Button, IconEye, IconEyeOff, Input, InputNumber, Listbox, Toggle } from 'ui'+import { DatePicker } from 'components/ui/DatePicker'import { BASE_PATH } from 'lib/constants'import { Enum } from './AuthProvidersForm.types'@@ -121,7 +121,7 @@ const FormField = ({ name, properties, formValues, disabled = false }: FormFieldonClick={() => setHidden(!hidden)}/>) : (- <span className="mr-3 text-foreground-lighter">+ <span className="mr-3 text-scale-900">{properties.units ? (<ReactMarkdown unwrapDisallowed disallowedElements={['p']}>{properties.units}@@ -156,7 +156,7 @@ const FormField = ({ name, properties, formValues, disabled = false }: FormField) : null}actions={- <span className="mr-3 text-foreground-lighter">+ <span className="mr-3 text-scale-900">{properties.units ? (<ReactMarkdown unwrapDisallowed disallowedElements={['p']}>{properties.units}diff --git a/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsxindex 4a3ae20adbf..39eaa406a2c 100644--- a/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx+++ b/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx@@ -96,7 +96,7 @@ const ProviderForm = ({ config, provider }: ProviderFormProps) => {<Collapsible.Trigger asChild><buttontype="button"- className="group flex w-full items-center justify-between rounded py-3 px-6 text-foreground"+ className="group flex w-full items-center justify-between rounded py-3 px-6 text-scale-1200"><div className="flex items-center gap-3"><IconChevronUp@@ -120,7 +120,7 @@ const ProviderForm = ({ config, provider }: ProviderFormProps) => {<span className="px-1">Enabled</span></div>) : (- <div className="rounded-md border border-scale-500 bg-scale-100 py-1 px-3 text-xs text-foreground-lighter dark:border-scale-700 dark:bg-scale-300">+ <div className="rounded-md border border-scale-500 bg-scale-100 py-1 px-3 text-xs text-scale-900 dark:border-scale-700 dark:bg-scale-300">Disabled</div>)}@@ -140,7 +140,7 @@ const ProviderForm = ({ config, provider }: ProviderFormProps) => {<divclassName="group border-t- border-scale-500 bg-scale-100 py-6 px-6 text-foreground dark:bg-scale-300+ border-scale-500 bg-scale-100 py-6 px-6 text-scale-1200 dark:bg-scale-300"><div className="mx-auto my-6 max-w-lg space-y-6">@@ -229,7 +229,7 @@ const ProviderForm = ({ config, provider }: ProviderFormProps) => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to update provider settings</span></div>diff --git a/studio/components/interfaces/Auth/AutoSchemaForm.tsx b/studio/components/interfaces/Auth/AutoSchemaForm.tsxindex 5dc575eab84..2313deb8ecd 100644--- a/studio/components/interfaces/Auth/AutoSchemaForm.tsx+++ b/studio/components/interfaces/Auth/AutoSchemaForm.tsx@@ -175,7 +175,7 @@ const AutoSchemaForm = observer(() => {size="small"label="JWT expiry limit"descriptionText="How long access tokens are valid for. Defaults to 3600 (1 hour), maximum 604,800 seconds (one week). Refresh tokens are one-time use and never expire."- actions={<span className="mr-3 text-foreground-lighter">seconds</span>}+ actions={<span className="mr-3 text-scale-900">seconds</span>}disabled={!canUpdateConfig}/></FormSectionContent>@@ -239,7 +239,7 @@ const AutoSchemaForm = observer(() => {min={0}label="Reuse interval"descriptionText="Time interval where the same refresh token can be used to request for an access token."- actions={<span className="mr-3 text-foreground-lighter">seconds</span>}+ actions={<span className="mr-3 text-scale-900">seconds</span>}disabled={!canUpdateConfig}/>)}diff --git a/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx b/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsxindex 6041dbbf9f1..b65d3edbad2 100644--- a/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx+++ b/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx@@ -80,7 +80,7 @@ const TemplateEditor = ({ template, authConfig }: TemplateEditorProps) => {if (property.type === 'string') {return (<div key={x} className="space-y-3">- <label className="col-span-12 text-sm text-foreground lg:col-span-5">+ <label className="col-span-12 text-sm text-scale-1200 lg:col-span-5">{property.title}</label><Inputdiff --git a/studio/components/interfaces/Auth/Policies/Policies.tsx b/studio/components/interfaces/Auth/Policies/Policies.tsxindex 2fa0f89a292..512efd4fcad 100644--- a/studio/components/interfaces/Auth/Policies/Policies.tsx+++ b/studio/components/interfaces/Auth/Policies/Policies.tsx@@ -161,7 +161,7 @@ const Policies = ({ tables, hasTables, isLocked }: PoliciesProps) => {</div>}/>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Create a table in this schema first before creating a policy.</p></div>diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyAllowedOperation.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyAllowedOperation.tsxindex fd20df50d21..e5470be4daf 100644--- a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyAllowedOperation.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyAllowedOperation.tsx@@ -13,10 +13,10 @@ const PolicyAllowedOperation = ({return (<div className="flex justify-between space-x-12"><div className="flex w-1/3 flex-col space-y-2">- <label className="text-base text-foreground-light" htmlFor="allowed-operation">+ <label className="text-base text-scale-1100" htmlFor="allowed-operation">Allowed operation</label>- <p className="text-sm text-foreground-lighter">Select an operation for this policy</p>+ <p className="text-sm text-scale-900">Select an operation for this policy</p></div><div className="w-2/3"><div className="flex items-center space-x-8">diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsxindex cb504ed7476..6f87834faae 100644--- a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyDefinition.tsx@@ -37,12 +37,12 @@ const PolicyDefinition = ({<div className="flex space-x-12"><div className="flex w-1/3 flex-col space-y-2"><div className="flex items-center space-x-2">- <label className="text-base text-foreground-light" htmlFor="policy-name">+ <label className="text-base text-scale-1100" htmlFor="policy-name">USING expression</label><Tooltip.Root delayDuration={0}><Tooltip.Trigger>- <IconHelpCircle className="text-foreground-light" size={16} strokeWidth={1.5} />+ <IconHelpCircle className="text-scale-1100" size={16} strokeWidth={1.5} /></Tooltip.Trigger><Tooltip.Portal><Tooltip.Content side="bottom">@@ -53,17 +53,17 @@ const PolicyDefinition = ({'w-[300px] space-y-2 border border-scale-200',].join(' ')}>- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">This expression will be added to queries that refer to the table ifrow-level security is enabled.</p>- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">Rows for which the expression returns true will be visible. Any rows forwhich the expression returns false or null will not be visible to the user(in a SELECT), and will not be available for modification (in an UPDATE orDELETE).</p>- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">Such rows are silently suppressed - no error is reported.</p></div>@@ -71,7 +71,7 @@ const PolicyDefinition = ({</Tooltip.Portal></Tooltip.Root></div>- <p className="text-sm text-foreground-lighter">+ <p className="text-sm text-scale-900">Provide a SQL conditional expression that returns a boolean.</p></div>@@ -84,12 +84,12 @@ const PolicyDefinition = ({<div className="flex space-x-12"><div className="flex w-1/3 flex-col space-y-2"><div className="flex items-center space-x-2">- <label className="text-base text-foreground-light" htmlFor="policy-name">+ <label className="text-base text-scale-1100" htmlFor="policy-name">WITH CHECK expression</label><Tooltip.Root delayDuration={0}><Tooltip.Trigger>- <IconHelpCircle className="text-foreground-light" size={16} strokeWidth={1.5} />+ <IconHelpCircle className="text-scale-1100" size={16} strokeWidth={1.5} /></Tooltip.Trigger><Tooltip.Portal><Tooltip.Content side="bottom">@@ -100,16 +100,16 @@ const PolicyDefinition = ({'w-[300px] space-y-2 border border-scale-200',].join(' ')}>- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">This expression will be used in INSERT and UPDATE queries against the tableif row-level security is enabled.</p>- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">Only rows for which the expression evaluates to true will be allowed. Anerror will be thrown if the expression evaluates to false or null for any ofthe records inserted or any of the records that result from the update.</p>- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">Note that this expression is evaluated against the proposed new contents ofthe row, not the original contents.</p>@@ -118,7 +118,7 @@ const PolicyDefinition = ({</Tooltip.Portal></Tooltip.Root></div>- <p className="text-sm text-foreground-lighter">+ <p className="text-sm text-scale-900">Provide a SQL conditional expression that returns a boolean.</p></div>diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsxindex 3f1a521e1ff..c0060c27fc2 100644--- a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyName.tsx@@ -10,10 +10,10 @@ const PolicyName = ({ name = '', limit = 100, onUpdatePolicyName }: PolicyNamePrreturn (<div className="flex space-x-12"><div className="flex w-1/3 flex-col space-y-2">- <label className="text-base text-foreground-light" htmlFor="policy-name">+ <label className="text-base text-scale-1100" htmlFor="policy-name">Policy name</label>- <p className="text-sm text-foreground-lighter">A descriptive name for your policy</p>+ <p className="text-sm text-scale-900">A descriptive name for your policy</p></div><div className="relative w-2/3"><Input@@ -21,7 +21,7 @@ const PolicyName = ({ name = '', limit = 100, onUpdatePolicyName }: PolicyNamePrvalue={name}onChange={(e) => onUpdatePolicyName(e.target.value)}actions={- <span className="mr-3 text-sm text-foreground-lighter">+ <span className="mr-3 text-sm text-scale-900">{name.length}/{limit}</span>}diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsxindex 80922bf7d59..4ddb70f931f 100644--- a/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyEditor/PolicyRoles.tsx@@ -22,10 +22,10 @@ const PolicyRoles = ({ roles, selectedRoles, onUpdateSelectedRoles }: PolicyRolereturn (<div className="flex space-x-12"><div className="flex w-1/3 flex-col space-y-2">- <label className="text-foreground-light text-base" htmlFor="policy-name">+ <label className="text-scale-1100 text-base" htmlFor="policy-name">Target roles</label>- <p className="text-foreground-lighter text-sm">Apply policy to the selected roles</p>+ <p className="text-scale-900 text-sm">Apply policy to the selected roles</p></div><div className="relative w-2/3"><MultiSelectdiff --git a/studio/components/interfaces/Auth/Policies/PolicyEditorModal/PolicyEditorModalTitle.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditorModal/PolicyEditorModalTitle.tsxindex 53a408f5218..74e8bf8dc10 100644--- a/studio/components/interfaces/Auth/Policies/PolicyEditorModal/PolicyEditorModalTitle.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyEditorModal/PolicyEditorModalTitle.tsx@@ -32,7 +32,7 @@ const PolicyEditorModalTitle = ({<div className="flex items-center space-x-3"><spanonClick={onSelectBackFromTemplates}- className="cursor-pointer text-foreground-lighter transition-colors hover:text-foreground"+ className="cursor-pointer text-scale-900 transition-colors hover:text-scale-1200"><IconChevronLeft strokeWidth={2} size={14} /></span>diff --git a/studio/components/interfaces/Auth/Policies/PolicyEditorModal/index.tsx b/studio/components/interfaces/Auth/Policies/PolicyEditorModal/index.tsxindex cbf027aff31..ec03755588d 100644--- a/studio/components/interfaces/Auth/Policies/PolicyEditorModal/index.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyEditorModal/index.tsx@@ -204,7 +204,7 @@ const PolicyEditorModal = ({}}><Modal.Content>- <p className="py-4 text-sm text-foreground-light">+ <p className="py-4 text-sm text-scale-1100">There are unsaved changes. Are you sure you want to close the editor? Your changeswill be lost.</p>diff --git a/studio/components/interfaces/Auth/Policies/PolicyReview.tsx b/studio/components/interfaces/Auth/Policies/PolicyReview.tsxindex 6cd6c5478b5..50812e2bb05 100644--- a/studio/components/interfaces/Auth/Policies/PolicyReview.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyReview.tsx@@ -29,7 +29,7 @@ const PolicyReview = ({<div className="space-y-6 py-8"><div className="flex items-center justify-between space-y-8"><div className="flex flex-col">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">This is the SQL statement that will be used to create your policy.</p></div>@@ -37,7 +37,7 @@ const PolicyReview = ({<div className="space-y-4 overflow-y-auto" style={{ maxHeight: '25rem' }}>{isEmpty(policy) ? (<div className="my-10 flex items-center justify-center space-x-2 opacity-50">- <p className="text-base text-foreground-light">+ <p className="text-base text-scale-1100">There are no changes made to this policy</p></div>diff --git a/studio/components/interfaces/Auth/Policies/PolicySelection.tsx b/studio/components/interfaces/Auth/Policies/PolicySelection.tsxindex c2d9614839e..2eaabd516ee 100644--- a/studio/components/interfaces/Auth/Policies/PolicySelection.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicySelection.tsx@@ -18,7 +18,7 @@ const PolicySelection = ({<Modal.Content><div className="space-y-6 py-8"><div>- <p className="text-sm text-foreground-light">{description}</p>+ <p className="text-sm text-scale-1100">{description}</p></div><div className="grid grid-cols-1 gap-2 lg:grid-cols-1"><CardButton@@ -58,7 +58,7 @@ const PolicySelection = ({onClick={onViewEditor}/></div>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Not sure what policies are? Check out our resources{' '}<atarget="_blank"diff --git a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsxindex 7bc6d93cce8..cdd8ee29829 100644--- a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyRow.tsx@@ -2,17 +2,7 @@ import * as Tooltip from '@radix-ui/react-tooltip'import type { PostgresPolicy } from '@supabase/postgres-meta'import { PermissionAction } from '@supabase/shared-types/out/constants'import { noop } from 'lodash'-import {- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconEdit,- IconMoreVertical,- IconTrash,-} from 'ui'+import { Button, Dropdown, IconEdit, IconMoreVertical, IconTrash, ScrollArea } from 'ui'import Panel from 'components/ui/Panel'import { useCheckPermissions } from 'hooks'@@ -39,20 +29,20 @@ const PolicyRow = ({><div className="flex grow flex-col space-y-1"><div className="flex items-center space-x-4">- <p className="font-mono text-xs text-foreground-light">{policy.command}</p>- <p className="text-sm text-foreground">{policy.name}</p>+ <p className="font-mono text-xs text-scale-1000">{policy.command}</p>+ <p className="text-sm text-scale-1200">{policy.name}</p></div><div className="flex items-center space-x-2">- <p className="text-foreground-light text-sm">Applied to:</p>+ <p className="text-scale-1000 text-sm">Applied to:</p>{policy.roles.slice(0, 3).map((role, i) => (- <code key={`policy-${role}-${i}`} className="text-foreground-light text-xs">+ <code key={`policy-${role}-${i}`} className="text-scale-1000 text-xs">{role}</code>))}<Tooltip.Root delayDuration={0}><Tooltip.Trigger>{policy.roles.length > 3 && (- <code key={`policy-etc`} className="text-foreground-light text-xs">+ <code key={`policy-etc`} className="text-scale-1000 text-xs">+ {policy.roles.length - 3} more roles</code>)}@@ -66,7 +56,7 @@ const PolicyRow = ({'border border-scale-200 max-w-[220px] text-center',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">{policy.roles.slice(3).join(', ')}</span></div>@@ -77,32 +67,34 @@ const PolicyRow = ({</div><div>{canUpdatePolicies ? (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- type="default"- style={{ paddingLeft: 4, paddingRight: 4 }}- icon={<IconMoreVertical />}- />- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="end">- <DropdownMenuItem_Shadcn_- className="space-x-2"- onClick={() => onSelectEditPolicy(policy)}- >- <IconEdit size={14} />- <p className="text">Edit</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuSeparator_Shadcn_ />- <DropdownMenuItem_Shadcn_- className="space-x-2"- onClick={() => onSelectDeletePolicy(policy)}- >- <IconTrash size={14} />- <p className="text">Delete</p>- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown+ side="bottom"+ align="end"+ size="small"+ overlay={+ <>+ <Dropdown.Item+ icon={<IconEdit size={14} />}+ onClick={() => onSelectEditPolicy(policy)}+ >+ Edit+ </Dropdown.Item>+ <Dropdown.Separator />+ <Dropdown.Item+ icon={<IconTrash size={14} />}+ onClick={() => onSelectDeletePolicy(policy)}+ >+ Delete+ </Dropdown.Item>+ </>+ }+ >+ <Button+ type="default"+ style={{ paddingLeft: 4, paddingRight: 4 }}+ icon={<IconMoreVertical />}+ />+ </Dropdown>) : (<Tooltip.Root delayDuration={0}><Tooltip.Trigger>@@ -123,7 +115,7 @@ const PolicyRow = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to edit RLS policies</span></div>diff --git a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsx b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsxindex 7d6a7f8252d..4fefe5456e8 100644--- a/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyTableRow/PolicyTableRowHeader.tsx@@ -36,7 +36,7 @@ const PolicyTableRowHeader = ({</Link>{isLocked ? (<Badge color="scale">- <span className="flex gap-2 items-center text-xs uppercase text-foreground-lighter">+ <span className="flex gap-2 items-center text-xs uppercase text-scale-900"><IconLock width={12} /> Locked</span></Badge>@@ -70,7 +70,7 @@ const PolicyTableRowHeader = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to create RLS policies</span></div>@@ -98,7 +98,7 @@ const PolicyTableRowHeader = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to toggle RLS</span></div>diff --git a/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx b/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsxindex 61c5c51760e..1bdc4ec26c5 100644--- a/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyTableRow/index.tsx@@ -43,10 +43,10 @@ const PolicyTableRow = ({>{policies.length === 0 && (<div className="p-4 px-6 space-y-1">- <p className="text-foreground-light text-sm">No policies created yet</p>+ <p className="text-scale-1100 text-sm">No policies created yet</p>{!isLocked &&(table.rls_enabled ? (- <p className="text-foreground-light text-sm">+ <p className="text-scale-1000 text-sm">RLS is enabled - create a policy to allow access to this table.</p>) : (diff --git a/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatePreview.tsx b/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatePreview.tsxindex a1dfa78a20c..f3b57719a60 100644--- a/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatePreview.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatePreview.tsx@@ -15,12 +15,12 @@ const TemplatePreview = ({ selectedTemplate }: TemplatePreviewProps) => {<div className="my-5 h-full space-y-6 px-6"><div className="space-y-2"><div className="flex flex-col space-y-2">- <h3 className="text-foreground text-base">{templateName}</h3>- <p className="text-foreground-light text-sm">{description}</p>+ <h3 className="text-scale-1200 text-base">{templateName}</h3>+ <p className="text-scale-1100 text-sm">{description}</p></div></div><div className="space-y-2">- <label className="text-foreground-light text-sm">Policy SQL template:</label>+ <label className="text-scale-1100 text-sm">Policy SQL template:</label><div className="h-64"><SqlEditor readOnly queryId={id} defaultValue={statement} /></div>diff --git a/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx b/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsxindex 66b56a36544..7b595e819b8 100644--- a/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyTemplates/TemplatesList.tsx@@ -46,7 +46,7 @@ const TemplatesList = ({</div>{templatesNote && (<div className="px-4 py-2">- <p className="text-xs text-foreground-lighter">{templatesNote}</p>+ <p className="text-xs text-scale-900">{templatesNote}</p></div>)}</div>diff --git a/studio/components/interfaces/Auth/Policies/PolicyTemplates/index.tsx b/studio/components/interfaces/Auth/Policies/PolicyTemplates/index.tsxindex c496b74aa5d..f1d8aab1539 100644--- a/studio/components/interfaces/Auth/Policies/PolicyTemplates/index.tsx+++ b/studio/components/interfaces/Auth/Policies/PolicyTemplates/index.tsx@@ -30,7 +30,7 @@ const PolicyTemplates = ({<TemplatePreview selectedTemplate={selectedTemplate} /></div><div className="flex w-full items-center justify-end gap-3 border-t px-6 py-4 dark:border-dark">- <span className="text-sm text-foreground-lighter">+ <span className="text-sm text-scale-900">This will override any existing code you've written</span><Buttondiff --git a/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx b/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsxindex 08f3785d9fe..191ac4de0f7 100644--- a/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx+++ b/studio/components/interfaces/Auth/RedirectUrls/RedirectUrlList.tsx@@ -22,7 +22,7 @@ const RedirectUrlList = ({return (<ValueContainer key={url}><div className="flex items-center gap-4 font-mono">- <span className="text-foreground-lighter">+ <span className="text-scale-900"><IconGlobe strokeWidth={2} size={14} /></span><span className="text-sm">{url}</span>@@ -42,7 +42,7 @@ const RedirectUrlList = ({) : (<divclassName={[- 'flex items-center border-scale-400 bg-scale-200 text-foreground',+ 'flex items-center border-scale-400 bg-scale-200 text-scale-1200','justify-center gap-2 rounded border px-6 py-8 text-sm',].join(' ')}>diff --git a/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsx b/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsxindex 8932bf3a9c7..495fb5d6326 100644--- a/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsx+++ b/studio/components/interfaces/Auth/RedirectUrls/RedirectUrls.tsx@@ -135,7 +135,7 @@ const RedirectUrls = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to update redirect URLs</span></div>@@ -186,7 +186,7 @@ const RedirectUrls = () => {return (<div className="mb-4 space-y-4 pt-4"><div className="px-5">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">This will add a URL to a list of allowed URLs that can interact with yourAuthentication services for this project.</p>@@ -222,11 +222,11 @@ const RedirectUrls = () => {><div className="mb-4 space-y-4 pt-4"><div className="px-5">- <p className="mb-2 text-sm text-foreground-light">+ <p className="mb-2 text-sm text-scale-1100">Are you sure you want to remove{' '}- <span className="text-foreground">{selectedUrlToDelete}</span>?+ <span className="text-scale-1200">{selectedUrlToDelete}</span>?</p>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1100 text-sm">This URL will no longer work with your authentication configuration.</p></div>diff --git a/studio/components/interfaces/Auth/RedirectUrls/ValueContainer.tsx b/studio/components/interfaces/Auth/RedirectUrls/ValueContainer.tsxindex b578ccf8a35..610817e94fe 100644--- a/studio/components/interfaces/Auth/RedirectUrls/ValueContainer.tsx+++ b/studio/components/interfaces/Auth/RedirectUrls/ValueContainer.tsx@@ -3,7 +3,7 @@ import { PropsWithChildren } from 'react'const ValueContainer = ({ children }: PropsWithChildren<{}>) => (<divclassName="- bg-scale-100 dark:bg-scale-300 border-scale-500 text-foreground flex items-center+ bg-scale-100 dark:bg-scale-300 border-scale-500 text-scale-1200 flex items-centerjustify-between gap-2border px-6py-4 text-smdiff --git a/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx b/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsxindex e8c22dec3b3..df49f20dd82 100644--- a/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx+++ b/studio/components/interfaces/Auth/SmtpForm/SmtpForm.tsx@@ -30,10 +30,10 @@ import {import { useAuthConfigQuery } from 'data/auth/auth-config-query'import { useAuthConfigUpdateMutation } from 'data/auth/auth-config-update-mutation'import { useCheckPermissions, useStore } from 'hooks'-import EmailRateLimitsAlert from '../EmailRateLimitsAlert'import { urlRegex } from './../Auth.constants'import { defaultDisabledSmtpFormValues } from './SmtpForm.constants'import { generateFormValues, isSmtpEnabled } from './SmtpForm.utils'+import EmailRateLimitsAlert from '../EmailRateLimitsAlert'const SmtpForm = () => {const { ui } = useStore()@@ -267,7 +267,7 @@ const SmtpForm = () => {header={<FormSectionLabel><span>SMTP Provider Settings</span>- <p className="my-4 text-foreground-lighter">+ <p className="my-4 text-scale-900">Your SMTP Credentials will always be encrypted in our database.</p></FormSectionLabel>@@ -306,7 +306,7 @@ const SmtpForm = () => {name="SMTP_MAX_FREQUENCY"label="Minimum interval between emails being sent"descriptionText="How long between each email can a new email be sent via your SMTP server."- actions={<span className="mr-3 text-foreground-lighter">seconds</span>}+ actions={<span className="mr-3 text-scale-900">seconds</span>}disabled={!canUpdateConfig}/><InputNumber@@ -315,7 +315,7 @@ const SmtpForm = () => {min={0}label="Rate limit for sending emails"descriptionText="How many emails can be sent per hour."- actions={<span className="mr-3 text-foreground-lighter">emails per hour</span>}+ actions={<span className="mr-3 text-scale-900">emails per hour</span>}disabled={!canUpdateConfig}/><Inputdiff --git a/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx b/studio/components/interfaces/Auth/Users/AddUserDropdown.tsxindex a99b8420445..ffd0f7c13b8 100644--- a/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx+++ b/studio/components/interfaces/Auth/Users/AddUserDropdown.tsx@@ -2,19 +2,10 @@ import * as Tooltip from '@radix-ui/react-tooltip'import { PermissionAction } from '@supabase/shared-types/out/constants'import { useState } from 'react'import semver from 'semver'-import {- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconChevronDown,- IconMail,- IconUserPlus,-} from 'ui'import { useCheckPermissions } from 'hooks'import { IS_PLATFORM } from 'lib/constants'+import { Button, Dropdown, IconChevronDown, IconMail, IconUserPlus } from 'ui'import CreateUserModal from './CreateUserModal'import InviteUserModal from './InviteUserModal'@@ -39,26 +30,55 @@ const AddUserDropdown = ({ projectKpsVersion }: AddUserDropdownProps) => {return (<>- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button type="primary" iconRight={<IconChevronDown strokeWidth={1.5} />}>- Add user- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="end">- {inviteEnabled && (+ <Dropdown+ side="bottom"+ align="end"+ size="small"+ overlay={+ <>+ {inviteEnabled && (+ <Tooltip.Root delayDuration={0}>+ <Tooltip.Trigger className="w-full text-left">+ <Dropdown.Item+ icon={<IconMail size="small" />}+ disabled={!canInviteUsers}+ onClick={() => setInviteVisible(true)}+ >+ Send invitation+ </Dropdown.Item>+ </Tooltip.Trigger>+ {!canInviteUsers && (+ <Tooltip.Portal>+ <Tooltip.Content side="bottom">+ <Tooltip.Arrow className="radix-tooltip-arrow" />+ <div+ className={[+ 'rounded bg-scale-100 py-1 px-2 leading-none shadow',+ 'border border-scale-200',+ ].join(' ')}+ >+ <span className="text-xs text-scale-1200">+ You need additional permissions to invite users+ </span>+ </div>+ </Tooltip.Content>+ </Tooltip.Portal>+ )}+ </Tooltip.Root>+ )}+<Tooltip.Root delayDuration={0}>- <Tooltip.Trigger className="w-full">- <DropdownMenuItem_Shadcn_- className="space-x-2"- disabled={!canInviteUsers}- onClick={() => setInviteVisible(true)}+ <Tooltip.Trigger className="w-full text-left">+ <Dropdown.Item+ icon={<IconUserPlus size="small" />}+ disabled={!canCreateUsers}+ onClick={() => setCreateVisible(true)}>- <IconMail size="small" />- <p className="text">Send invitation</p>- </DropdownMenuItem_Shadcn_>+ Create new user+ </Dropdown.Item></Tooltip.Trigger>- {!canInviteUsers && (++ {!canCreateUsers && (<Tooltip.Portal><Tooltip.Content side="bottom"><Tooltip.Arrow className="radix-tooltip-arrow" />@@ -68,48 +88,21 @@ const AddUserDropdown = ({ projectKpsVersion }: AddUserDropdownProps) => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">- You need additional permissions to invite users+ <span className="text-xs text-scale-1200">+ You need additional permissions to create users</span></div></Tooltip.Content></Tooltip.Portal>)}</Tooltip.Root>- )}-- <Tooltip.Root delayDuration={0}>- <Tooltip.Trigger className="w-full text-left">- <DropdownMenuItem_Shadcn_- className="space-x-2"- disabled={!canCreateUsers}- onClick={() => setCreateVisible(true)}- >- <IconUserPlus size="small" />- <p className="text">Create new user</p>- </DropdownMenuItem_Shadcn_>- </Tooltip.Trigger>-- {!canCreateUsers && (- <Tooltip.Portal>- <Tooltip.Content side="bottom">- <Tooltip.Arrow className="radix-tooltip-arrow" />- <div- className={[- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',- 'border border-scale-200',- ].join(' ')}- >- <span className="text-xs text-foreground">- You need additional permissions to create users- </span>- </div>- </Tooltip.Content>- </Tooltip.Portal>- )}- </Tooltip.Root>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ </>+ }+ >+ <Button type="primary" iconRight={<IconChevronDown strokeWidth={1.5} />}>+ Add user+ </Button>+ </Dropdown>{inviteEnabled && <InviteUserModal visible={inviteVisible} setVisible={setInviteVisible} />}<CreateUserModal visible={createVisible} setVisible={setCreateVisible} />diff --git a/studio/components/interfaces/Auth/Users/UserDropdown.tsx b/studio/components/interfaces/Auth/Users/UserDropdown.tsxindex eb9f212b60c..f8f7f77029c 100644--- a/studio/components/interfaces/Auth/Users/UserDropdown.tsx+++ b/studio/components/interfaces/Auth/Users/UserDropdown.tsx@@ -1,18 +1,6 @@import * as Tooltip from '@radix-ui/react-tooltip'import { useParams } from 'common'-import {- Button,- cn,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconMail,- IconMoreHorizontal,- IconShieldOff,- IconTrash,-} from 'ui'+import { Button, Dropdown, IconMail, IconMoreHorizontal, IconShieldOff, IconTrash } from 'ui'import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal'import { useUserDeleteMFAFactorsMutation } from 'data/auth/user-delete-mfa-factors-mutation'@@ -115,49 +103,35 @@ const UserDropdown = ({ user, canRemoveUser, canRemoveMFAFactors }: UserDropdown}return (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- asChild- type="text"- icon={<IconMoreHorizontal />}- loading={isLoading}- className="hover:border-gray-500 flex"- >- <span />- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_>+ <Dropdown+ size="medium"+ overlay={<>{user.email !== null ? (<>- <DropdownMenuItem_Shadcn_ className="space-x-2" onClick={handleResetPassword}>- <IconMail size="tiny" />- <p className="text">Send password recovery</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuItem_Shadcn_ className="space-x-2" onClick={handleSendMagicLink}>- <IconMail size="tiny" />- <p className="text">Send magic link</p>- </DropdownMenuItem_Shadcn_>+ <Dropdown.Item onClick={handleResetPassword} icon={<IconMail size="tiny" />}>+ Send password recovery+ </Dropdown.Item>+ <Dropdown.Item onClick={handleSendMagicLink} icon={<IconMail size="tiny" />}>+ Send magic link+ </Dropdown.Item></>) : null}{user.phone !== null ? (- <DropdownMenuItem_Shadcn_ className="space-x-2" onClick={handleSendOtp}>- <IconMail size="tiny" />- <p className="text">Send OTP</p>- </DropdownMenuItem_Shadcn_>+ <Dropdown.Item onClick={handleSendOtp} icon={<IconMail size="tiny" />}>+ Send OTP+ </Dropdown.Item>) : null}- <DropdownMenuSeparator_Shadcn_ />+ <Dropdown.Separator /><Tooltip.Root delayDuration={0}><Tooltip.Trigger asChild>- <DropdownMenuItem_Shadcn_+ <Dropdown.ItemonClick={handleDeleteFactors}+ icon={<IconShieldOff size="tiny" />}disabled={!canRemoveMFAFactors}- className="space-x-2">- <IconShieldOff size="tiny" />- <p className="text">Remove MFA factors</p>- </DropdownMenuItem_Shadcn_>+ Remove MFA factors+ </Dropdown.Item></Tooltip.Trigger>{/*[Joshen] Deleting MFA factors should be different ABAC perms i think@@ -173,7 +147,7 @@ const UserDropdown = ({ user, canRemoveUser, canRemoveMFAFactors }: UserDropdown'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to remove a user's authentication factors.</span></div>@@ -183,26 +157,25 @@ const UserDropdown = ({ user, canRemoveUser, canRemoveMFAFactors }: UserDropdown</Tooltip.Root><Tooltip.Root delayDuration={0}><Tooltip.Trigger asChild>- <DropdownMenuItem_Shadcn_+ <Dropdown.ItemonClick={handleDelete}+ icon={<IconTrash size="tiny" />}disabled={!canRemoveUser}- className="space-x-2">- <IconTrash size="tiny" />- <p className="text">Delete user</p>- </DropdownMenuItem_Shadcn_>+ Delete user+ </Dropdown.Item></Tooltip.Trigger>{!canRemoveUser && (<Tooltip.Portal><Tooltip.Content side="bottom"><Tooltip.Arrow className="radix-tooltip-arrow" /><div- className={cn([+ className={['rounded bg-scale-100 py-1 px-2 leading-none shadow','border border-scale-200',- ])}+ ].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to delete users</span></div>@@ -211,8 +184,18 @@ const UserDropdown = ({ user, canRemoveUser, canRemoveMFAFactors }: UserDropdown)}</Tooltip.Root></>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ }+ >+ <Button+ asChild+ type="text"+ icon={<IconMoreHorizontal />}+ loading={isLoading}+ className="hover:border-gray-500"+ >+ <span />+ </Button>+ </Dropdown>)}diff --git a/studio/components/interfaces/Auth/Users/UsersList.tsx b/studio/components/interfaces/Auth/Users/UsersList.tsxindex dd9e9878bea..434bb8de3c1 100644--- a/studio/components/interfaces/Auth/Users/UsersList.tsx+++ b/studio/components/interfaces/Auth/Users/UsersList.tsx@@ -2,10 +2,10 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import { IconAlertCircle, Loading } from 'ui'import Table from 'components/to-be-cleaned/Table'-import { User } from 'data/auth/users-query'import { useCheckPermissions } from 'hooks'import UserListItem from './UsersListItem'import UsersPagination from './UsersPagination'+import { User } from 'data/auth/users-query'interface UsersListProps {page: number@@ -60,7 +60,7 @@ const UsersList = ({><div className="flex items-center space-x-3 opacity-75"><IconAlertCircle size={16} strokeWidth={2} />- <p className="text-foreground-light">+ <p className="text-scale-1000">{keywords? `No users matched the search query "${keywords}"`: 'No users in your project yet'}diff --git a/studio/components/interfaces/Auth/Users/UsersListItem.tsx b/studio/components/interfaces/Auth/Users/UsersListItem.tsxindex 3f197c44bfd..c21c8e71cce 100644--- a/studio/components/interfaces/Auth/Users/UsersListItem.tsx+++ b/studio/components/interfaces/Auth/Users/UsersListItem.tsx@@ -2,9 +2,9 @@ import { Badge } from 'ui'import SimpleCodeBlock from 'components/to-be-cleaned/SimpleCodeBlock'import Table from 'components/to-be-cleaned/Table'-import { User } from 'data/auth/users-query'import UserDropdown from './UserDropdown'import { getDateFromIsoString } from './Users.utils'+import { User } from 'data/auth/users-query'interface UserListItemProps {user: User@@ -21,17 +21,17 @@ const UserListItem = ({ user, canRemoveUser, canRemoveMFAFactors }: UserListItem<Table.tr className="relative" key={user.id}><Table.td className="whitespace-nowrap"><div className="flex items-center gap-2">- <span className="text-sm text-foreground">{!user.email ? '-' : user.email}</span>+ <span className="text-sm text-scale-1200">{!user.email ? '-' : user.email}</span></div></Table.td><Table.td className="whitespace-nowrap">- <span className="text-foreground">{!user.phone ? '-' : user.phone}</span>+ <span className="text-scale-1200">{!user.phone ? '-' : user.phone}</span></Table.td><Table.td className="table-cell">- <span className="capitalize text-foreground">{user?.raw_app_meta_data?.provider}</span>+ <span className="capitalize text-scale-1200">{user?.raw_app_meta_data?.provider}</span></Table.td><Table.td className="table-cell">- <span className="text-foreground">{createdAt?.format('DD MMM, YYYY HH:mm')}</span>+ <span className="text-scale-1200">{createdAt?.format('DD MMM, YYYY HH:mm')}</span></Table.td><Table.td className="table-cell">{!isUserConfirmed ? (@@ -50,7 +50,7 @@ const UserListItem = ({ user, canRemoveUser, canRemoveMFAFactors }: UserListItem<div>...</div></div></Table.td>- <Table.td className="table-cell">+ <Table.td className="text-right"><UserDropdownuser={user}canRemoveUser={canRemoveUser}diff --git a/studio/components/interfaces/Auth/Users/UsersPagination.tsx b/studio/components/interfaces/Auth/Users/UsersPagination.tsxindex 9f7f8246fbb..d59f0c0ff1b 100644--- a/studio/components/interfaces/Auth/Users/UsersPagination.tsx+++ b/studio/components/interfaces/Auth/Users/UsersPagination.tsx@@ -21,13 +21,13 @@ const UsersPagination = ({ total, page, setPage }: UsersPaginationProps) => {return (<nav className="flex items-center justify-between overflow-hidden" aria-label="Pagination"><div className="hidden sm:block">- <p className="text-xs text-foreground-lighter">+ <p className="text-xs text-scale-900">Showing- <span className="px-1 font-medium text-foreground-light">{fromRow}</span>+ <span className="px-1 font-medium text-scale-1100">{fromRow}</span>to- <span className="px-1 font-medium text-foreground-light">{toRow}</span>+ <span className="px-1 font-medium text-scale-1100">{toRow}</span>of- <span className="px-1 font-medium text-foreground-light">{total}</span>+ <span className="px-1 font-medium text-scale-1100">{total}</span>results</p></div>diff --git a/studio/components/interfaces/BillingV2/AddNewPaymentMethodModal/AddNewPaymentMethodModal.tsx b/studio/components/interfaces/BillingV2/AddNewPaymentMethodModal/AddNewPaymentMethodModal.tsxindex 85d1e6ede23..1c4afa89e8c 100644--- a/studio/components/interfaces/BillingV2/AddNewPaymentMethodModal/AddNewPaymentMethodModal.tsx+++ b/studio/components/interfaces/BillingV2/AddNewPaymentMethodModal/AddNewPaymentMethodModal.tsx@@ -1,7 +1,7 @@import HCaptcha from '@hcaptcha/react-hcaptcha'import { Elements } from '@stripe/react-stripe-js'import { loadStripe } from '@stripe/stripe-js'-import { useTheme } from 'next-themes'+import { useTheme } from 'common'import { useCallback, useEffect, useState } from 'react'import { Modal } from 'ui'@@ -27,7 +27,7 @@ const AddNewPaymentMethodModal = ({onConfirm,}: AddNewPaymentMethodModalProps) => {const { ui } = useStore()- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const [intent, setIntent] = useState<any>()const selectedOrganization = useSelectedOrganization()@@ -90,7 +90,7 @@ const AddNewPaymentMethodModal = ({const options = {clientSecret: intent ? intent.client_secret : '',- appearance: { theme: theme === 'dark' ? 'night' : 'flat', labels: 'floating' },+ appearance: { theme: isDarkMode ? 'night' : 'flat', labels: 'floating' },} as anyconst onLocalCancel = () => {diff --git a/studio/components/interfaces/BillingV2/InvoiceStatusBadge.tsx b/studio/components/interfaces/BillingV2/InvoiceStatusBadge.tsxindex c5328fb5c39..d6a1a12a6cc 100644--- a/studio/components/interfaces/BillingV2/InvoiceStatusBadge.tsx+++ b/studio/components/interfaces/BillingV2/InvoiceStatusBadge.tsx@@ -58,7 +58,7 @@ const InvoiceStatusBadge = ({ status }: InvoiceStatusBadgeProps) => {].join(' ')}>{[InvoiceStatus.OPEN, InvoiceStatus.UNCOLLECTIBLE].includes(status) && (- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">We were not able to collect the money. Make sure you have a valid payment method andenough funds. Outstanding invoices may cause restrictions. You can manually pay theusing the "Pay Now" button.@@ -66,19 +66,19 @@ const InvoiceStatusBadge = ({ status }: InvoiceStatusBadgeProps) => {)}{status === InvoiceStatus.DRAFT && (- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">The invoice will soon be finalized and charged for.</p>)}{status === InvoiceStatus.PAID && (- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">The invoice has been paid successfully. No action is required on your side.</p>)}{status === InvoiceStatus.VOID && (- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">This invoice has been forgiven. No action is required on your side.</p>)}diff --git a/studio/components/interfaces/BillingV2/Invoices.tsx b/studio/components/interfaces/BillingV2/Invoices.tsxindex 141a0db63f3..938c907b8fa 100644--- a/studio/components/interfaces/BillingV2/Invoices.tsx+++ b/studio/components/interfaces/BillingV2/Invoices.tsx@@ -10,8 +10,8 @@ import { getInvoice } from 'data/invoices/invoice-query'import { useProjectInvoicesCountQuery } from 'data/invoices/project-invoices-count-query'import { useProjectInvoicesQuery } from 'data/invoices/project-invoices-query'import { useStore } from 'hooks'-import { InvoiceStatus } from './Invoices.types'import InvoiceStatusBadge from './InvoiceStatusBadge'+import { InvoiceStatus } from './Invoices.types'const PAGE_LIMIT = 10@@ -67,7 +67,7 @@ const Invoices = () => {invoices.length === 0 ? (<Table.tr><Table.td colSpan={6} className="p-3 py-12 text-center">- <p className="text-foreground-light">No invoices for this project yet</p>+ <p className="text-scale-1000">No invoices for this project yet</p></Table.td></Table.tr>) : (diff --git a/studio/components/interfaces/BillingV2/SpendCapModal.tsx b/studio/components/interfaces/BillingV2/SpendCapModal.tsxindex 61e68c9a203..d70e5b2e0de 100644--- a/studio/components/interfaces/BillingV2/SpendCapModal.tsx+++ b/studio/components/interfaces/BillingV2/SpendCapModal.tsx@@ -26,9 +26,9 @@ const SpendCapModal = ({ visible, onHide }: SpendCapModalProps) => {{/* Maybe ideate this in Figma first but this is good enough for now */}<div className="border rounded border-scale-600 bg-scale-500"><div className="flex items-center px-4 pt-2 pb-1">- <p className="w-[50%] text-sm text-foreground-light">Item</p>- <p className="w-[25%] text-sm text-foreground-light">Limit</p>- <p className="w-[25%] text-sm text-foreground-light">Rate</p>+ <p className="w-[50%] text-sm text-scale-1100">Item</p>+ <p className="w-[25%] text-sm text-scale-1100">Limit</p>+ <p className="w-[25%] text-sm text-scale-1100">Rate</p></div><div className="py-2"><div className="flex items-center px-4 py-1">@@ -64,7 +64,7 @@ const SpendCapModal = ({ visible, onHide }: SpendCapModalProps) => {'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">Monthly Active Users: A user that has made an API request in thelast month</span>@@ -98,7 +98,7 @@ const SpendCapModal = ({ visible, onHide }: SpendCapModalProps) => {'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">Single Sign-On Monthly Active Users: A user that has made an APIrequest in the last month</span>diff --git a/studio/components/interfaces/BillingV2/Subscription/AddOns/AddOns.tsx b/studio/components/interfaces/BillingV2/Subscription/AddOns/AddOns.tsxindex ddbefa3aaae..add189560b2 100644--- a/studio/components/interfaces/BillingV2/Subscription/AddOns/AddOns.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/AddOns/AddOns.tsx@@ -1,5 +1,4 @@-import { useParams } from 'common'-import { useTheme } from 'next-themes'+import { useParams, useTheme } from 'common'import dayjs from 'dayjs'import Link from 'next/link'import { useMemo } from 'react'@@ -34,7 +33,7 @@ import { useSubscriptionPageStateSnapshot } from 'state/subscription-page'import { getAddons } from '../Subscription.utils'const AddOns = () => {- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const { ref: projectRef } = useParams()const snap = useSubscriptionPageStateSnapshot()const projectUpdateDisabled = useFlag('disableProjectCreationAndUpdate')@@ -72,10 +71,10 @@ const AddOns = () => {<div className="space-y-6"><div><p className="text-base">Add ons</p>- <p className="text-sm text-foreground-light">Level up your project with add-ons</p>+ <p className="text-sm text-scale-1000">Level up your project with add-ons</p></div><div className="space-y-2">- <p className="text-sm text-foreground-light">More information</p>+ <p className="text-sm text-scale-1100">More information</p><div><Link href="https://supabase.com/docs/guides/platform/compute-add-ons"><a target="_blank" rel="noreferrer">@@ -140,17 +139,17 @@ const AddOns = () => {src={computeInstance !== undefined? `${BASE_PATH}/img/optimized-compute-on${- theme === 'dark' ? '' : '--light'+ isDarkMode ? '' : '--light'}.png`: `${BASE_PATH}/img/optimized-compute-off${- theme === 'dark' ? '' : '--light'+ isDarkMode ? '' : '--light'}.png`}/></div></div><div className="flex-grow">- <p className="text-sm text-foreground-light">Optimized compute</p>+ <p className="text-sm text-scale-1000">Optimized compute</p><p className="">{computeInstance?.variant.name ?? 'Micro'}</p><ProjectUpdateDisabledTooltipprojectUpdateDisabled={projectUpdateDisabled}@@ -209,7 +208,7 @@ const AddOns = () => {<Link href={`/project/${projectRef}/settings/billing/usage#ram`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-scale-1100 group-hover:text-scale-1200 transition cursor-pointer">Memory</p><IconChevronRight@@ -226,7 +225,7 @@ const AddOns = () => {<Link href={`/project/${projectRef}/settings/billing/usage#cpu`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-scale-1100 group-hover:text-scale-1200 transition cursor-pointer">CPU</p><IconChevronRight@@ -243,13 +242,13 @@ const AddOns = () => {</p></div><div className="w-full flex items-center justify-between border-b py-2">- <p className="text-sm text-foreground-light">No. of direct connections</p>+ <p className="text-sm text-scale-1000">No. of direct connections</p><p className="text-sm">{computeInstance?.variant?.meta?.connections_direct ?? 60}</p></div><div className="w-full flex items-center justify-between border-b py-2">- <p className="text-sm text-foreground-light">No. of pooler connections</p>+ <p className="text-sm text-scale-1000">No. of pooler connections</p><p className="text-sm">{computeInstance?.variant?.meta?.connections_pooler ?? 200}</p>@@ -258,7 +257,7 @@ const AddOns = () => {<Link href={`/project/${projectRef}/settings/billing/usage#disk_io`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-scale-1100 group-hover:text-scale-1200 transition cursor-pointer">Max Disk Throughput</p><IconChevronRight@@ -278,7 +277,7 @@ const AddOns = () => {<Link href={`/project/${projectRef}/settings/billing/usage#disk_io`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-scale-1100 group-hover:text-scale-1200 transition cursor-pointer">Baseline Disk Throughput</p><IconChevronRight@@ -309,14 +308,14 @@ const AddOns = () => {height={96}src={pitr !== undefined- ? `${BASE_PATH}/img/pitr-on${theme === 'dark' ? '' : '--light'}.png?v=2`- : `${BASE_PATH}/img/pitr-off${theme === 'dark' ? '' : '--light'}.png?v=2`+ ? `${BASE_PATH}/img/pitr-on${isDarkMode ? '' : '--light'}.png?v=2`+ : `${BASE_PATH}/img/pitr-off${isDarkMode ? '' : '--light'}.png?v=2`}/></div></div><div>- <p className="text-sm text-foreground-light">Point in time recovery</p>+ <p className="text-sm text-scale-1000">Point in time recovery</p><p className="">{pitr !== undefined? `Point in time recovery of ${pitr.variant.meta?.backup_duration_days} days is enabled`@@ -324,7 +323,9 @@ const AddOns = () => {</p>{!sufficientPgVersion ? (<Alert_Shadcn_ className="mt-2">- <AlertTitle_Shadcn_>Your project is too old enable PITR</AlertTitle_Shadcn_>+ <AlertTitle_Shadcn_>+ Your project is too old enable PITR+ </AlertTitle_Shadcn_><AlertDescription_Shadcn_><p className="text-sm leading-normal mb-2">Reach out to us via support if you're interested@@ -369,18 +370,14 @@ const AddOns = () => {height={96}src={customDomain !== undefined- ? `${BASE_PATH}/img/custom-domain-on${- theme === 'dark' ? '' : '--light'- }.png`- : `${BASE_PATH}/img/custom-domain-off${- theme === 'dark' ? '' : '--light'- }.png`+ ? `${BASE_PATH}/img/custom-domain-on${isDarkMode ? '' : '--light'}.png`+ : `${BASE_PATH}/img/custom-domain-off${isDarkMode ? '' : '--light'}.png`}/></div></div><div>- <p className="text-sm text-foreground-light">Custom domain</p>+ <p className="text-sm text-scale-1000">Custom domain</p><p className="">{customDomain !== undefined? 'Custom domain is enabled'diff --git a/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsx b/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsxindex 094c032ff97..c6096abdf49 100644--- a/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/BillingBreakdown.tsx@@ -58,7 +58,7 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {<div className="col-span-12 lg:col-span-5"><div className="sticky top-16"><p className="text-base">Billing breakdown</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Current billing cycle: {billingCycleStart.format('MMM DD')} -{' '}{billingCycleEnd.format('MMM DD')}</p>@@ -74,13 +74,13 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {<div className="col-span-12 lg:col-span-7 space-y-6"><p className="text-sm">Included usage summary</p>{isUsageBillingEnabled ? (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Your plan includes a limited amount of usage. If the usage on your project exceedsthese quotas, your subscription will be charged for the overages. It may take up to 24hours for usage stats to update.</p>) : (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Your plan includes a limited amount of usage. If the usage on your project exceedsthese quotas, you may experience restrictions, as you are currently not billed foroverages. It may take up to 24 hours for usage stats to update.@@ -158,7 +158,7 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {<Link href={`/project/${projectRef}/settings/billing/usage#${metric.anchor}`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-scale-1100 group-hover:text-scale-1200 transition cursor-pointer">{metric.name}</p><IconChevronRight@@ -176,7 +176,7 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {<IconInfosize={14}strokeWidth={2}- className="hover:text-foreground-light"+ className="hover:text-scale-1000"/></div></Tooltip.Trigger>@@ -189,7 +189,7 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {'border border-scale-200',].join(' ')}>- <div className="text-xs text-foreground">+ <div className="text-xs text-scale-1200">{usageFee.pricingStrategy === 'UNIT' ? (<div><p>@@ -260,11 +260,11 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {'border border-scale-200',].join(' ')}>- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">Exceeding your plans included usage will lead to restrictions toyour project.</p>- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">Upgrade to a usage-based plan or disable the spend cap to avoidrestrictions.</p>@@ -294,7 +294,7 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {}bgClass="bg-gray-300 dark:bg-gray-600"labelBottom={usageLabel}- labelBottomClass="!text-foreground-light"+ labelBottomClass="!text-scale-1000"labelTop={hasLimit ? percentageLabel : undefined}labelTopClass={!hasLimit@@ -309,7 +309,7 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {) : (// [Joshen] Needs a better CTA here<div className="flex items-center justify-between flex-grow">- <p className="text-sm text-foreground-light">Unavailable in your plan</p>+ <p className="text-sm text-scale-1000">Unavailable in your plan</p><Buttontype="default"onClick={() => snap.setPanelKey('subscriptionPlan')}@@ -320,7 +320,7 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {)) : (<div className="flex items-center justify-between flex-grow">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">The usage for this metric is missing.</p></div>@@ -332,10 +332,10 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {)}<p className="!mt-10 text-sm">Upcoming cost for next invoice</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">The following table shows your upcoming costs. Depending on your usage, the final amountmay vary. Next invoice on{' '}- <span className="text-foreground-light">{billingCycleEnd.format('MMM DD, YYYY')}</span>.+ <span className="text-scale-1100">{billingCycleEnd.format('MMM DD, YYYY')}</span>.</p>{isLoadingUpcomingInvoice ? (@@ -369,18 +369,10 @@ const BillingBreakdown = ({}: BillingBreakdownProps) => {<table className="w-full"><thead><tr className="border-b">- <th className="py-2 font-normal text-left text-sm text-foreground-light w-1/2">- Item- </th>- <th className="py-2 font-normal text-left text-sm text-foreground-light">- Count- </th>- <th className="py-2 font-normal text-left text-sm text-foreground-light">- Unit price- </th>- <th className="py-2 font-normal text-right text-sm text-foreground-light">- Price- </th>+ <th className="py-2 font-normal text-left text-sm text-scale-1000 w-1/2">Item</th>+ <th className="py-2 font-normal text-left text-sm text-scale-1000">Count</th>+ <th className="py-2 font-normal text-left text-sm text-scale-1000">Unit price</th>+ <th className="py-2 font-normal text-right text-sm text-scale-1000">Price</th></tr></thead><tbody>diff --git a/studio/components/interfaces/BillingV2/Subscription/CostControl/CostControl.tsx b/studio/components/interfaces/BillingV2/Subscription/CostControl/CostControl.tsxindex 42b1dc6e0c4..0d5ef46b6ff 100644--- a/studio/components/interfaces/BillingV2/Subscription/CostControl/CostControl.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/CostControl/CostControl.tsx@@ -1,14 +1,13 @@-import { useParams } from 'common'-import { useTheme } from 'next-themes'-import ProjectUpdateDisabledTooltip from 'components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip'+import { useParams, useTheme } from 'common'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'-import { useFlag } from 'hooks'import { BASE_PATH } from 'lib/constants'-import Link from 'next/link'import { useSubscriptionPageStateSnapshot } from 'state/subscription-page'import { Alert, Button, IconExternalLink } from 'ui'import SpendCapSidePanel from './SpendCapSidePanel'+import Link from 'next/link'+import ProjectUpdateDisabledTooltip from 'components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip'+import { useFlag } from 'hooks'export interface CostControlProps {}@@ -16,7 +15,7 @@ const CostControl = ({}: CostControlProps) => {const { ref: projectRef } = useParams()const snap = useSubscriptionPageStateSnapshot()const projectUpdateDisabled = useFlag('disableProjectCreationAndUpdate')- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const { data: subscription, isLoading } = useProjectSubscriptionV2Query({ projectRef })@@ -34,12 +33,12 @@ const CostControl = ({}: CostControlProps) => {<div className="space-y-6"><div><p className="text-base">Cost Control</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Control whether to use beyond your plans included quota</p></div><div className="space-y-2">- <p className="text-sm text-foreground-light">More information</p>+ <p className="text-sm text-scale-1100">More information</p><div><Link href="https://supabase.com/docs/guides/platform/spend-cap"><a target="_blank" rel="noreferrer">@@ -80,7 +79,7 @@ const CostControl = ({}: CostControlProps) => {is exceeded will you be charged for any additional usage.</Alert>) : (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">You can control whether your project is charged for additional usage beyond the{' '}<Link href="#breakdown"><a className="text-sm text-green-900 transition hover:text-green-1000">@@ -101,12 +100,8 @@ const CostControl = ({}: CostControlProps) => {height={96}src={isUsageBillingEnabled- ? `${BASE_PATH}/img/spend-cap-off${- theme === 'dark' ? '' : '--light'- }.png?v=3`- : `${BASE_PATH}/img/spend-cap-on${- theme === 'dark' ? '' : '--light'- }.png?v=3`+ ? `${BASE_PATH}/img/spend-cap-off${isDarkMode ? '' : '--light'}.png?v=3`+ : `${BASE_PATH}/img/spend-cap-on${isDarkMode ? '' : '--light'}.png?v=3`}/></div>@@ -115,7 +110,7 @@ const CostControl = ({}: CostControlProps) => {<p className="mb-1">Spend cap is {isUsageBillingEnabled ? 'disabled' : 'enabled'}</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">{isUsageBillingEnabled ? (<span>You will be charged for any usage above the included quota.</span>) : (@@ -126,7 +121,7 @@ const CostControl = ({}: CostControlProps) => {)}</p>{isUsageBillingEnabled && (- <p className="text-sm text-foreground-light mt-1">+ <p className="text-sm text-scale-1000 mt-1">Your project will never become unresponsive. Only when your usage reaches thequota limit will you be charged for any excess usage.</p>diff --git a/studio/components/interfaces/BillingV2/Subscription/CostControl/SpendCapSidePanel.tsx b/studio/components/interfaces/BillingV2/Subscription/CostControl/SpendCapSidePanel.tsxindex 928b9d1f802..1f6e9568d54 100644--- a/studio/components/interfaces/BillingV2/Subscription/CostControl/SpendCapSidePanel.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/CostControl/SpendCapSidePanel.tsx@@ -1,19 +1,18 @@-import { PermissionAction } from '@supabase/shared-types/out/constants'import clsx from 'clsx'-import { useParams } from 'common'-import { useTheme } from 'next-themes'+import { useParams, useTheme } from 'common'import Table from 'components/to-be-cleaned/Table'import { useProjectSubscriptionUpdateMutation } from 'data/subscriptions/project-subscription-update-mutation'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'import { useCheckPermissions, useStore } from 'hooks'import { BASE_PATH, PRICING_TIER_PRODUCT_IDS } from 'lib/constants'-import Telemetry from 'lib/telemetry'import Link from 'next/link'-import { useRouter } from 'next/router'import { useEffect, useState } from 'react'-import { pricing } from 'shared-data/pricing'import { useSubscriptionPageStateSnapshot } from 'state/subscription-page'import { Alert, Button, Collapsible, IconChevronRight, IconExternalLink, SidePanel } from 'ui'+import { PermissionAction } from '@supabase/shared-types/out/constants'+import { pricing } from 'shared-data/pricing'+import Telemetry from 'lib/telemetry'+import { useRouter } from 'next/router'const SPEND_CAP_OPTIONS: {name: string@@ -39,7 +38,7 @@ const SpendCapSidePanel = () => {const { ui } = useStore()const router = useRouter()const { ref: projectRef } = useParams()- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const [showUsageCosts, setShowUsageCosts] = useState(false)const [selectedOption, setSelectedOption] = useState<'on' | 'off'>()@@ -149,7 +148,7 @@ const SpendCapSidePanel = () => {size={16}className={showUsageCosts ? 'rotate-90' : ''}/>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">How are each resource charged after exceeding the included quota?</p></div>@@ -175,7 +174,7 @@ const SpendCapSidePanel = () => {<><Table.tr key={categoryId}><Table.td>- <p className="text-xs text-foreground">{category.title}</p>+ <p className="text-xs text-scale-1200">{category.title}</p></Table.td><Table.td>{null}</Table.td></Table.tr>@@ -186,7 +185,9 @@ const SpendCapSidePanel = () => {<p className="text-xs pl-4">{item.title}</p></Table.td><Table.td>- <p className="text-xs pl-4">{item.plans['pro']}</p>+ <p className="text-xs pl-4">+ {item.plans['pro']}+ </p></Table.td></Table.tr>)@@ -251,14 +252,14 @@ const SpendCapSidePanel = () => {)}width={160}height={96}- src={theme === 'dark' ? option.imageUrl : option.imageUrlLight}+ src={isDarkMode ? option.imageUrl : option.imageUrlLight}/><pclassName={clsx('text-sm transition',- !isFreePlan && 'group-hover:text-foreground',- isSelected ? 'text-foreground' : 'text-foreground-light'+ !isFreePlan && 'group-hover:text-scale-1200',+ isSelected ? 'text-scale-1200' : 'text-scale-1000')}>{option.name}diff --git a/studio/components/interfaces/BillingV2/Subscription/Subscription.tsx b/studio/components/interfaces/BillingV2/Subscription/Subscription.tsxindex f788d0fd44d..2edafb2f14c 100644--- a/studio/components/interfaces/BillingV2/Subscription/Subscription.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Subscription.tsx@@ -40,7 +40,7 @@ const Subscription = ({}: SubscriptionProps) => {<><div className="border-b"><div className="1xl:px-28 mx-auto flex flex-col gap-10 px-5 lg:px-16 2xl:px-32 py-6">- <h3 className="text-foreground text-xl">Subscription</h3>+ <h3 className="text-scale-1200 text-xl">Subscription</h3></div></div>diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/EnterpriseCard.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/EnterpriseCard.tsxindex 9bf42adeefb..cbf139f924b 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/EnterpriseCard.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/EnterpriseCard.tsx@@ -1,6 +1,6 @@import clsx from 'clsx'-import { PricingInformation } from 'shared-data'import { Button, IconCheck } from 'ui'+import { PricingInformation } from 'shared-data'export interface EnterpriseCardProps {plan: PricingInformation@@ -20,7 +20,7 @@ const EnterpriseCard = ({ plan, isCurrentPlan }: EnterpriseCardProps) => {<div className="flex items-center space-x-2"><p className={clsx('text-brand text-sm uppercase')}>{plan.name}</p>{isCurrentPlan ? (- <div className="text-xs bg-scale-500 text-foreground-light rounded px-2 py-0.5">+ <div className="text-xs bg-scale-500 text-scale-1000 rounded px-2 py-0.5">Current plan</div>) : plan.nameBadge ? (@@ -40,14 +40,11 @@ const EnterpriseCard = ({ plan, isCurrentPlan }: EnterpriseCardProps) => {</div><div className="flex flex-col justify-center col-span-2 px-4 md:px-0">- <ul- role="list"- className="text-xs text-foreground-light md:grid md:grid-cols-2 md:gap-x-10"- >+ <ul role="list" className="text-xs text-scale-1000 md:grid md:grid-cols-2 md:gap-x-10">{plan.features.map((feature) => (<li key={feature} className="flex items-center py-2 first:mt-0"><IconCheck className="text-brand h-4 w-4" aria-hidden="true" strokeWidth={3} />- <span className="dark:text-foreground mb-0 ml-3 ">{feature}</span>+ <span className="dark:text-scale-1200 mb-0 ml-3 ">{feature}</span></li>))}</ul>diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/ExitSurveyModal.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/ExitSurveyModal.tsxindex 047e9973a20..42afe0be7ca 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/ExitSurveyModal.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/ExitSurveyModal.tsx@@ -5,7 +5,6 @@ import { useRouter } from 'next/router'import { useReducer, useRef, useState } from 'react'import { useParams } from 'common'-import ProjectUpdateDisabledTooltip from 'components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip'import { useSendDowngradeFeedbackMutation } from 'data/feedback/exit-survey-send'import { setProjectStatus } from 'data/projects/projects-query'import { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query'@@ -14,6 +13,7 @@ import { useFlag, useStore } from 'hooks'import { PROJECT_STATUS } from 'lib/constants'import { Button, Input, Modal } from 'ui'import { CANCELLATION_REASONS } from '../../Billing.constants'+import ProjectUpdateDisabledTooltip from 'components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip'export interface ExitSurveyModalProps {visible: boolean@@ -151,7 +151,7 @@ const ExitSurveyModal = ({ visible, onClose }: ExitSurveyModalProps) => {><Modal.Content><div className="py-6">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">We always strive to improve Supabase as much as we can. Please let us know the reasonsyou are canceling your subscription so that we can improve in the future.</p>@@ -169,7 +169,7 @@ const ExitSurveyModal = ({ visible, onClose }: ExitSurveyModalProps) => {${active? ` bg-scale-1200 text-scale-100 opacity-100 hover:bg-opacity-75`- : ` bg-scale-700 text-foreground opacity-25 hover:opacity-50`+ : ` bg-scale-700 text-scale-1200 opacity-25 hover:opacity-50`}`}>@@ -199,7 +199,7 @@ const ExitSurveyModal = ({ visible, onClose }: ExitSurveyModalProps) => {</Modal.Content><div className="flex items-center justify-between border-t px-4 py-4">- <p className="text-xs text-foreground-lighter">+ <p className="text-xs text-scale-900">The unused amount for the remaining of your billing cycle will be refunded as credits</p><div className="flex items-center space-x-2">diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/MembersExceedLimitModal.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/MembersExceedLimitModal.tsxindex 585a5c9813c..501e9259135 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/MembersExceedLimitModal.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/MembersExceedLimitModal.tsx@@ -23,11 +23,11 @@ const MembersExceedLimitModal = ({ visible, onClose }: MembersExceedLimitModalPr<div className="py-4 space-y-4"><Modal.Content><div className="space-y-2">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">The following members have reached their maximum limits for the number of active freeplan projects within organizations where they are an administrator or owner:</p>- <ul className="pl-5 text-sm list-disc text-foreground-light">+ <ul className="pl-5 text-sm list-disc text-scale-1100">{(membersExceededLimit || []).map((member, idx: number) => (<li key={`member-${idx}`}>{member.username || member.primary_email} (Limit: {member.free_project_limit} free@@ -35,7 +35,7 @@ const MembersExceedLimitModal = ({ visible, onClose }: MembersExceedLimitModalPr</li>))}</ul>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">These members will need to either delete, pause, or upgrade one or more of theseprojects before you're able to downgrade this project.</p>diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/PaymentMethodSelection.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/PaymentMethodSelection.tsxindex ffbf2ae6930..c1e5151a91d 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/PaymentMethodSelection.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/PaymentMethodSelection.tsx@@ -3,13 +3,13 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import { useEffect, useMemo, useState } from 'react'import { useParams } from 'common'-import { AddNewPaymentMethodModal } from 'components/interfaces/BillingV2'import { useOrganizationCustomerProfileQuery } from 'data/organizations/organization-customer-profile-query'import { useOrganizationPaymentMethodsQuery } from 'data/organizations/organization-payment-methods-query'import { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'import { BASE_PATH } from 'lib/constants'import { getURL } from 'lib/helpers'import { Button, IconAlertCircle, IconCreditCard, IconLoader, IconPlus, Listbox } from 'ui'+import { AddNewPaymentMethodModal } from 'components/interfaces/BillingV2'export interface PaymentMethodSelectionProps {selectedPaymentMethod?: string@@ -75,11 +75,11 @@ const PaymentMethodSelection = ({{isLoading ? (<div className="flex items-center px-4 py-2 space-x-4 border rounded-md border-scale-700 bg-scale-400"><IconLoader className="animate-spin" size={14} />- <p className="text-sm text-foreground-light">Retrieving payment methods</p>+ <p className="text-sm text-scale-1100">Retrieving payment methods</p></div>) : paymentMethods.length === 0 ? (<div className="flex items-center justify-between px-4 py-2 border border-dashed rounded-md bg-scale-100">- <div className="flex items-center space-x-4 text-foreground-light">+ <div className="flex items-center space-x-4 text-scale-1100"><IconAlertCircle size={16} strokeWidth={1.5} /><p className="text-sm">No saved payment methods</p></div>@@ -105,7 +105,7 @@ const PaymentMethodSelection = ({'w-48 border border-scale-200 text-center', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to add new payment methods to thisorganization</span>@@ -145,7 +145,7 @@ const PaymentMethodSelection = ({onClick={() => setShowAddNewPaymentMethodModal(true)}><IconPlus size={16} />- <p className="transition text-foreground-light group-hover:text-foreground">+ <p className="transition text-scale-1000 group-hover:text-scale-1200">Add new payment method</p></div>diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionPaymentMethod.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionPaymentMethod.tsxindex 44bf0f58081..ae705f20c2a 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionPaymentMethod.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionPaymentMethod.tsx@@ -93,7 +93,7 @@ const SubscriptionPaymentMethod = ({<Panel.Content className="flex justify-between lg:items-center flex-col md:flex-row space-y-6 md:space-y-0">{subscription.payment_method_type === 'card' && (<>- <div className="flex space-x-3 items-center font-mono tracking-wide text-foreground-light">+ <div className="flex space-x-3 items-center font-mono tracking-wide text-scale-1000">{subscription.payment_method_card_details?.brand ? (<imgalt="Credit card brand"@@ -110,7 +110,7 @@ const SubscriptionPaymentMethod = ({{subscription?.payment_method_card_details?.last_4_digits || '****'}</span></div>- <div className="flex flex-row space-x-3 text-foreground-light text-sm">+ <div className="flex flex-row space-x-3 text-scale-1000 text-sm"><span>Expires {subscription?.payment_method_card_details?.expiry_month || '-'}/{subscription?.payment_method_card_details?.expiry_year?.toString()?.slice(-2) ||@@ -124,8 +124,8 @@ const SubscriptionPaymentMethod = ({<><div className="flex space-x-3"><div>- <p className="text-foreground-light">Payment via invoice</p>- <p className="text-sm text-foreground-light">+ <p className="text-scale-1100">Payment via invoice</p>+ <p className="text-sm text-scale-1000">You get a monthly invoice and payment link via email.</p></div>@@ -155,7 +155,7 @@ const SubscriptionPaymentMethod = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">Please email [email protected] to change your payment method.</span></div>@@ -171,7 +171,7 @@ const SubscriptionPaymentMethod = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You do not have permission to change the payment method</span></div>@@ -199,7 +199,7 @@ const SubscriptionPaymentMethod = ({method. There are no immediate charges. Changing the payment method for this projectdoes not affect the payment method for other projects.</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">To remove unused or expired payment methods, head to your{' '}<Link href={`/org/${currentOrgSlug || '_'}/billing`} passHref><a target="_blank" className="text-green-900 transition hover:text-green-1000">diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionTier.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionTier.tsxindex bda4e770421..1e1e9a70140 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionTier.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/SubscriptionTier.tsx@@ -2,13 +2,13 @@ import dayjs from 'dayjs'import Link from 'next/link'import { useParams } from 'common'-import ProjectUpdateDisabledTooltip from 'components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import SparkBar from 'components/ui/SparkBar'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'import { useFlag, useSelectedOrganization } from 'hooks'import { useSubscriptionPageStateSnapshot } from 'state/subscription-page'import { Alert, Button, IconExternalLink } from 'ui'+import ProjectUpdateDisabledTooltip from 'components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip'import SubscriptionPaymentMethod from './SubscriptionPaymentMethod'import TierUpdateSidePanel from './TierUpdateSidePanel'@@ -39,7 +39,7 @@ const SubscriptionTier = ({}: SubscriptionTierProps) => {<div className="col-span-12 lg:col-span-5 space-y-6"><div className="sticky space-y-6 top-16"><p className="text-base">Subscription plan</p>- <div className="text-sm text-foreground-light">+ <div className="text-sm text-scale-1000">To manage your billing address, emails or Tax ID, head to your{' '}<Link href={`/org/${orgSlug}/billing`}><a className="text-sm text-green-900 transition hover:text-green-1000">@@ -49,7 +49,7 @@ const SubscriptionTier = ({}: SubscriptionTierProps) => {.</div><div className="space-y-2">- <p className="text-sm text-foreground-light">More information</p>+ <p className="text-sm text-scale-1100">More information</p><div><Link href="https://supabase.com/pricing"><a target="_blank" rel="noreferrer">@@ -130,7 +130,7 @@ const SubscriptionTier = ({}: SubscriptionTierProps) => {)}>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">When this project exceeds its{' '}<Link href="#breakdown"><a className="text-sm text-green-900 transition hover:text-green-1000">@@ -161,7 +161,7 @@ const SubscriptionTier = ({}: SubscriptionTierProps) => {'MMM DD')} - ${billingCycleEnd.format('MMM DD')})`}bgClass="bg-gray-300 dark:bg-gray-600"- labelBottomClass="!text-foreground-light pb-1"+ labelBottomClass="!text-scale-1000 pb-1"labelTop={`${daysToCycleEnd} days remaining`}/>diff --git a/studio/components/interfaces/BillingV2/Subscription/Tier/TierUpdateSidePanel.tsx b/studio/components/interfaces/BillingV2/Subscription/Tier/TierUpdateSidePanel.tsxindex 59b3a6d580e..72d3b8103cf 100644--- a/studio/components/interfaces/BillingV2/Subscription/Tier/TierUpdateSidePanel.tsx+++ b/studio/components/interfaces/BillingV2/Subscription/Tier/TierUpdateSidePanel.tsx@@ -5,7 +5,6 @@ import Link from 'next/link'import { useEffect, useState } from 'react'import { useParams } from 'common'-import InformationBox from 'components/ui/InformationBox'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import { useFreeProjectLimitCheckQuery } from 'data/organizations/free-project-limit-check-query'import { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query'@@ -23,6 +22,7 @@ import EnterpriseCard from './EnterpriseCard'import ExitSurveyModal from './ExitSurveyModal'import MembersExceedLimitModal from './MembersExceedLimitModal'import PaymentMethodSelection from './PaymentMethodSelection'+import InformationBox from 'components/ui/InformationBox'const TierUpdateSidePanel = () => {const { ui } = useStore()@@ -198,7 +198,7 @@ const TierUpdateSidePanel = () => {<div className="flex items-center space-x-2"><p className={clsx('text-brand text-sm uppercase')}>{plan.name}</p>{isCurrentPlan ? (- <div className="text-xs bg-scale-500 text-foreground-light rounded px-2 py-0.5">+ <div className="text-xs bg-scale-500 text-scale-1000 rounded px-2 py-0.5">Current plan</div>) : plan.nameBadge ? (@@ -210,15 +210,15 @@ const TierUpdateSidePanel = () => {)}</div><div className="mt-4 flex items-center space-x-1">- {(price ?? 0) > 0 && <p className="text-foreground-light text-sm">From</p>}+ {(price ?? 0) > 0 && <p className="text-scale-1000 text-sm">From</p>}{isLoadingPlans ? (<div className="h-[28px] flex items-center justify-center"><ShimmeringLoader className="w-[30px] h-[24px]" /></div>) : (- <p className="text-foreground text-lg">${price}</p>+ <p className="text-scale-1200 text-lg">${price}</p>)}- <p className="text-foreground-light text-sm">{tierMeta?.costUnit}</p>+ <p className="text-scale-1000 text-sm">{tierMeta?.costUnit}</p></div><divclassName={clsx('flex mt-1 mb-4', !tierMeta?.warningLegacy && 'opacity-0')}@@ -276,7 +276,7 @@ const TierUpdateSidePanel = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You do not have permission to change the subscription plan.</span></div>@@ -306,7 +306,7 @@ const TierUpdateSidePanel = () => {strokeWidth={3}/></div>- <p className="ml-3 text-xs text-foreground-light">{feature}</p>+ <p className="ml-3 text-xs text-scale-1100">{feature}</p></li>))}</ul>@@ -314,7 +314,7 @@ const TierUpdateSidePanel = () => {{plan.footer && (<div className="border-t pt-4 mt-4">- <p className="text-foreground-light text-xs">{plan.footer}</p>+ <p className="text-scale-1000 text-xs">{plan.footer}</p></div>)}</div>@@ -386,7 +386,7 @@ const TierUpdateSidePanel = () => {Changing the plan resets your billing cycle and may result in a prorated charge forprevious usage.</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">You will also be able to change your project's add-ons after upgrading your project'splan.</p>diff --git a/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx b/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsxindex dd7c457c378..39c3c24459a 100644--- a/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx+++ b/studio/components/interfaces/BillingV2/Usage/Infrastructure.tsx@@ -7,7 +7,6 @@ import { DataPoint } from 'data/analytics/constants'import { useInfraMonitoringQuery } from 'data/analytics/infra-monitoring-query'import { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'-import { useResourceWarningsQuery } from 'data/usage/resource-warnings-query'import { getAddons } from '../Subscription/Subscription.utils'import SectionContent from './SectionContent'import SectionHeader from './SectionHeader'@@ -15,6 +14,7 @@ import { USAGE_CATEGORIES } from './Usage.constants'import { getUpgradeUrl } from './Usage.utils'import UsageBarChart from './UsageBarChart'import { CPUWarnings, DiskIOBandwidthWarnings, RAMWarnings } from './UsageWarningAlerts'+import { useResourceWarningsQuery } from 'data/usage/resource-warnings-query'export interface InfrastructureProps {projectRef: string@@ -141,12 +141,12 @@ const Infrastructure = ({{currentComputeInstanceSpecs.baseline_disk_io_mbs ===currentComputeInstanceSpecs.max_disk_io_mbs ? (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Your current compute can has a baseline and maximum disk throughput of{' '}{currentComputeInstanceSpecs.max_disk_io_mbs?.toLocaleString()} Mbps.</p>) : (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Your current compute can burst up to{' '}{currentComputeInstanceSpecs.max_disk_io_mbs?.toLocaleString()} Mbps for 30minutes a day and reverts to the baseline performance of{' '}@@ -157,19 +157,17 @@ const Infrastructure = ({<div><p className="text-sm mb-2">Overview</p><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-foreground-light">Current compute instance</p>+ <p className="text-xs text-scale-1000">Current compute instance</p><p className="text-xs">{computeInstance?.variant?.name ?? 'Micro'}</p></div><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-foreground-light">- Maximum IO Bandwidth (burst limit)- </p>+ <p className="text-xs text-scale-1000">Maximum IO Bandwidth (burst limit)</p><p className="text-xs">{currentComputeInstanceSpecs.max_disk_io_mbs?.toLocaleString()} Mbps</p></div><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-foreground-light">Baseline IO Bandwidth</p>+ <p className="text-xs text-scale-1000">Baseline IO Bandwidth</p><p className="text-xs">{currentComputeInstanceSpecs.baseline_disk_io_mbs?.toLocaleString()} Mbps</p>@@ -177,7 +175,7 @@ const Infrastructure = ({{currentComputeInstanceSpecs.max_disk_io_mbs !==currentComputeInstanceSpecs?.baseline_disk_io_mbs && (<div className="flex items-center justify-between py-1">- <p className="text-xs text-foreground-light">Daily burst time limit</p>+ <p className="text-xs text-scale-1000">Daily burst time limit</p><p className="text-xs">30 mins</p></div>)}@@ -215,7 +213,7 @@ const Infrastructure = ({</div>{attribute.key === 'ram_usage' && (- <div className="text-sm text-foreground-light">+ <div className="text-sm text-scale-1000"><p>Your compute instance has {currentComputeInstanceSpecs.memory_gb} GB ofmemory.@@ -230,13 +228,13 @@ const Infrastructure = ({)}{attribute.key === 'max_cpu_usage' && (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Your compute instance has {currentComputeInstanceSpecs.cpu_cores} CPU cores.</p>)}{attribute.chartDescription.split('\n').map((paragraph, idx) => (- <p key={`para-${idx}`} className="text-sm text-foreground-light">+ <p key={`para-${idx}`} className="text-sm text-scale-1000">{paragraph}</p>))}@@ -261,11 +259,9 @@ const Infrastructure = ({<Panel><Panel.Content><div className="flex flex-col items-center justify-center space-y-2">- <IconBarChart2 className="text-foreground-light mb-2" />+ <IconBarChart2 className="text-scale-1100 mb-2" /><p className="text-sm">No data in period</p>- <p className="text-sm text-foreground-light">- May take a few minutes to show- </p>+ <p className="text-sm text-scale-1000">May take a few minutes to show</p></div></Panel.Content></Panel>diff --git a/studio/components/interfaces/BillingV2/Usage/SectionContent.tsx b/studio/components/interfaces/BillingV2/Usage/SectionContent.tsxindex c4256d4994f..1d2d8f269e9 100644--- a/studio/components/interfaces/BillingV2/Usage/SectionContent.tsx+++ b/studio/components/interfaces/BillingV2/Usage/SectionContent.tsx@@ -1,7 +1,7 @@-import Link from 'next/link'import { PropsWithChildren } from 'react'import { Badge, IconExternalLink } from 'ui'import { CategoryAttribute } from './Usage.constants'+import Link from 'next/link'export interface SectionContent {section: CategoryAttribute@@ -28,7 +28,7 @@ const SectionContent = ({</div><div className="grid gap-4">{description.split('\n').map((value, idx) => (- <p key={`desc-${idx}`} className="text-sm text-foreground-light pr-8">+ <p key={`desc-${idx}`} className="text-sm text-scale-1000 pr-8">{value}</p>))}@@ -36,9 +36,7 @@ const SectionContent = ({</div>{links && links.length && (<div className="space-y-2">- <p className="text-sm text-foreground dark:text-foreground-light mb-2">- More information- </p>+ <p className="text-sm text-scale-1200 dark:text-scale-1100 mb-2">More information</p>{links.map((link) => (<div key={link.url}><Link href={link.url}>diff --git a/studio/components/interfaces/BillingV2/Usage/SectionHeader.tsx b/studio/components/interfaces/BillingV2/Usage/SectionHeader.tsxindex f5df014695c..6b2b35532b1 100644--- a/studio/components/interfaces/BillingV2/Usage/SectionHeader.tsx+++ b/studio/components/interfaces/BillingV2/Usage/SectionHeader.tsx@@ -9,7 +9,7 @@ const SectionHeader = ({ title, description }: SectionHeaderProps) => {<div className="1xl:px-28 mx-auto flex flex-col gap-10 px-5 lg:px-16 2xl:px-32 py-16"><div><p className="text-xl">{title}</p>- <p className="text-sm text-foreground-light">{description}</p>+ <p className="text-sm text-scale-1000">{description}</p></div></div></div>diff --git a/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsx b/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsxindex eae44aa34c7..cf18144cebb 100644--- a/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsx+++ b/studio/components/interfaces/BillingV2/Usage/Usage.constants.tsx@@ -189,7 +189,7 @@ export const USAGE_CATEGORIES: CategoryMeta[] = [</a></Link></div>- <p className="text-sm text-foreground-light mt-3">+ <p className="text-sm text-scale-1000 mt-3">If you reach 95% of the disk space, your project will enter read-only mode. Yourdisk storage expands automatically when the database reaches 90% of the disk size.The disk is expanded to be 50% larger. Auto-scaling can only take place once every 6diff --git a/studio/components/interfaces/BillingV2/Usage/Usage.tsx b/studio/components/interfaces/BillingV2/Usage/Usage.tsxindex 77fa26b7898..3f1d04a8f8d 100644--- a/studio/components/interfaces/BillingV2/Usage/Usage.tsx+++ b/studio/components/interfaces/BillingV2/Usage/Usage.tsx@@ -3,22 +3,22 @@ import { useParams } from 'common'import dayjs from 'dayjs'import { useMemo, useRef, useState } from 'react'import { InView } from 'react-intersection-observer'-import { Button, cn, IconAlertCircle, IconExternalLink, IconInfo, IconLoader } from 'ui'+import { Button, IconAlertCircle, IconExternalLink, IconInfo, IconLoader, cn } from 'ui'import DateRangePicker from 'components/to-be-cleaned/DateRangePicker'-import InformationBox from 'components/ui/InformationBox'import { useInfraMonitoringQuery } from 'data/analytics/infra-monitoring-query'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'import { useProjectUsageQuery } from 'data/usage/project-usage-query'import { useSelectedOrganization } from 'hooks'import { TIME_PERIODS_BILLING, TIME_PERIODS_REPORTS } from 'lib/constants'-import Link from 'next/link'import Activity from './Activity'import Bandwidth from './Bandwidth'import Infrastructure from './Infrastructure'import SizeAndCounts from './SizeAndCounts'import { USAGE_CATEGORIES, USAGE_STATUS } from './Usage.constants'import { getUsageStatus } from './Usage.utils'+import Link from 'next/link'+import InformationBox from 'components/ui/InformationBox'type UsageSectionIds = 'infra' | 'bandwidth' | 'sizeCount' | 'activity'@@ -139,7 +139,7 @@ const Usage = () => {<><div><div className="1xl:px-28 mx-auto flex flex-col px-5 lg:px-16 2xl:px-32 pt-6 space-y-4">- <h3 className="text-foreground text-xl">{isOrgBilling ? 'Project ' : ''}Usage</h3>+ <h3 className="text-scale-1200 text-xl">{isOrgBilling ? 'Project ' : ''}Usage</h3></div></div><div>@@ -167,7 +167,7 @@ const Usage = () => {{isOrgBilling ? 'Organization' : 'Project'} is on the {subscription.plan.name}{' '}plan</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">{billingCycleStart.format('DD MMM YYYY')} -{' '}{billingCycleEnd.format('DD MMM YYYY')}</p>@@ -196,7 +196,7 @@ const Usage = () => {className={cn('flex items-center space-x-2 py-3 hover:opacity-100 transition cursor-pointer',activeTab === category.key- ? 'border-b border-scale-1200 text-foreground'+ ? 'border-b border-scale-1200 text-scale-1200': 'opacity-50')}>diff --git a/studio/components/interfaces/BillingV2/Usage/UsageBarChart.tsx b/studio/components/interfaces/BillingV2/Usage/UsageBarChart.tsxindex 45e3d998803..c93733f5eb6 100644--- a/studio/components/interfaces/BillingV2/Usage/UsageBarChart.tsx+++ b/studio/components/interfaces/BillingV2/Usage/UsageBarChart.tsx@@ -1,5 +1,4 @@import { DataPoint } from 'data/analytics/constants'-import dayjs from 'dayjs'import {Bar,CartesianGrid,@@ -10,6 +9,7 @@ import {XAxis,YAxis,} from 'recharts'+import dayjs from 'dayjs'// [Joshen] This BarChart is specifically for usage, hence not a reusable component, and not// replacing the existing BarChart in ui/Charts@@ -33,12 +33,13 @@ const UsageBarChart = ({yLimit,yLeftMargin = 10,yFormatter,- tooltipFormatter,+ tooltipFormatter}: UsageBarChartProps) => {const yMin = 0 // We can consider passing this as a prop if there's a use case in the futureconst yDomain = [yMin, yLimit ?? 0]+return (<div className="w-full h-[200px]"><ResponsiveContainer width="100%" height={200}>@@ -64,17 +65,17 @@ const UsageBarChart = ({return (<div className="w-[170px] border bg-scale-300 rounded-md px-2 py-2">- <p className="text-xs text-foreground-light">+ <p className="text-xs text-scale-1000">{attribute === 'disk_io_budget' ? `Remaining IO budget:` : `${name}:`}</p>{dataPeriod.startOf('day').isAfter(dayjs().startOf('day')) ? (- <p className="text-foreground-light text-lg">No data yet</p>+ <p className="text-scale-1000 text-lg">No data yet</p>) : (<p className="text-xl">{tooltipFormatter !== undefined ? tooltipFormatter(value) : value}</p>)}- <p className="text-xs text-foreground-light mt-1">+ <p className="text-xs text-scale-1100 mt-1">{dataPeriod.format('DD MMM YYYY')}</p></div>diff --git a/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx b/studio/components/interfaces/BillingV2/Usage/UsageSection.tsxindex 856ba4942ae..8f2f147b1b6 100644--- a/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx+++ b/studio/components/interfaces/BillingV2/Usage/UsageSection.tsx@@ -1,28 +1,24 @@-import * as Tooltip from '@radix-ui/react-tooltip'-import clsx from 'clsx'-import Panel from 'components/ui/Panel'import ShimmeringLoader from 'components/ui/ShimmeringLoader'-import SparkBar from 'components/ui/SparkBar'-import { DataPoint } from 'data/analytics/constants'-import { ProjectSubscriptionResponse } from 'data/subscriptions/project-subscription-v2-query'+import SectionHeader from './SectionHeader'+import { CategoryMetaKey, USAGE_CATEGORIES } from './Usage.constants'import {ProjectUsageResponse,UsageMetric,useProjectUsageQuery,} from 'data/usage/project-usage-query'-import { formatBytes } from 'lib/helpers'-import Link from 'next/link'+import { DataPoint } from 'data/analytics/constants'+import SectionContent from './SectionContent'import { Button, IconAlertTriangle, IconBarChart2 } from 'ui'import { USAGE_APPROACHING_THRESHOLD } from '../Billing.constants'-import SectionContent from './SectionContent'-import SectionHeader from './SectionHeader'-import { CategoryMetaKey, USAGE_CATEGORIES } from './Usage.constants'-import {- ChartTooltipValueFormatter,- ChartYFormatterCompactNumber,- getUpgradeUrl,-} from './Usage.utils'+import Link from 'next/link'+import SparkBar from 'components/ui/SparkBar'+import clsx from 'clsx'+import { ProjectSubscriptionResponse } from 'data/subscriptions/project-subscription-v2-query'+import { ChartTooltipValueFormatter, ChartYFormatterCompactNumber, getUpgradeUrl } from './Usage.utils'+import { formatBytes } from 'lib/helpers'import UsageBarChart from './UsageBarChart'+import Panel from 'components/ui/Panel'+import * as Tooltip from '@radix-ui/react-tooltip'interface UsageSectionProps {projectRef: string@@ -115,11 +111,11 @@ const UsageSection = ({'border border-scale-200',].join(' ')}>- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">Exceeding your plans included usage will lead to restrictionsto your project.</p>- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">Upgrade to a usage-based plan or disable the spend cap toavoid restrictions.</p>@@ -164,7 +160,7 @@ const UsageSection = ({)}<div><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-foreground-light">+ <p className="text-xs text-scale-1000">Included in {subscription?.plan?.name.toLowerCase()} plan</p>{usageMeta?.limit === -1 ? (@@ -181,7 +177,7 @@ const UsageSection = ({</div>{currentBillingCycleSelected && (<div className="flex items-center justify-between py-1">- <p className="text-xs text-foreground-light">+ <p className="text-xs text-scale-1000">{attribute.chartPrefix || 'Used '}in period</p><p className="text-xs">@@ -193,7 +189,7 @@ const UsageSection = ({)}{currentBillingCycleSelected && usageMeta?.limit > 0 && (<div className="flex items-center justify-between border-t py-1">- <p className="text-xs text-foreground-light">Overage in period</p>+ <p className="text-xs text-scale-1000">Overage in period</p><p className="text-xs">{(usageMeta?.limit ?? 0) === -1 || usageExcess < 0? 0@@ -214,7 +210,7 @@ const UsageSection = ({{attribute.name} per day</p>{attribute.chartDescription.split('\n').map((paragraph, idx) => (- <p key={`para-${idx}`} className="text-sm text-foreground-light">+ <p key={`para-${idx}`} className="text-sm text-scale-1000">{paragraph}</p>))}@@ -233,19 +229,15 @@ const UsageSection = ({data={chartData}yLeftMargin={chartMeta[attribute.key].margin}yFormatter={(value) => ChartYFormatterCompactNumber(value, attribute.unit)}- tooltipFormatter={(value) =>- ChartTooltipValueFormatter(value, attribute.unit)- }+ tooltipFormatter={(value) => ChartTooltipValueFormatter(value, attribute.unit)}/>) : (<Panel><Panel.Content><div className="flex flex-col items-center justify-center">- <IconBarChart2 className="text-foreground-light mb-2" />+ <IconBarChart2 className="text-scale-1100 mb-2" /><p className="text-sm">No data in period</p>- <p className="text-sm text-foreground-light">- May take up to 24 hours to show- </p>+ <p className="text-sm text-scale-1000">May take up to 24 hours to show</p></div></Panel.Content></Panel>@@ -258,14 +250,12 @@ const UsageSection = ({<div className="space-y-1"><p className="text-sm">Not included in plan</p><div>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">You need to be on a higher plan in order to use this feature.</p></div></div>- <Link- href={`/project/${projectRef}/settings/billing/subscription?panel=subscriptionPlan`}- >+ <Link href={`/project/${projectRef}/settings/billing/subscription?panel=subscriptionPlan`}><a><Button type="primary">Upgrade plan</Button></a>diff --git a/studio/components/interfaces/BranchManagement/BranchPanels.tsx b/studio/components/interfaces/BranchManagement/BranchPanels.tsxindex 595ed7698e2..30e901054d1 100644--- a/studio/components/interfaces/BranchManagement/BranchPanels.tsx+++ b/studio/components/interfaces/BranchManagement/BranchPanels.tsx@@ -3,19 +3,13 @@ import { useParams } from 'common'import dayjs from 'dayjs'import { noop } from 'lodash'import Link from 'next/link'-import { forwardRef, PropsWithChildren, useState } from 'react'--import { Markdown } from 'components/interfaces/Markdown'-import ShimmeringLoader from 'components/ui/ShimmeringLoader'-import { Branch } from 'data/branches/branches-query'-import { GitHubPullRequest } from 'data/integrations/integrations-github-pull-requests-query'+import { PropsWithChildren, forwardRef, useState } from 'react'import {Badge,Button,- cn,+ Dropdown,DropdownMenuContent_Shadcn_,DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,DropdownMenuTrigger_Shadcn_,DropdownMenu_Shadcn_,IconExternalLink,@@ -24,8 +18,14 @@ import {IconMoreVertical,IconShield,IconTrash,+ cn,} from 'ui'+import { Markdown } from 'components/interfaces/Markdown'+import ShimmeringLoader from 'components/ui/ShimmeringLoader'+import { Branch } from 'data/branches/branches-query'+import { GitHubPullRequest } from 'data/integrations/integrations-github-pull-requests-query'+interface BranchPanelProps {repo?: stringbranch?: Branch@@ -109,7 +109,7 @@ const MainBranchPanel = ({<a>Change production branch</a></DropdownMenuItem_Shadcn_></Link>- <DropdownMenuSeparator_Shadcn_ />+ <Dropdown.Separator /><DropdownMenuItem_Shadcn_className="flex gap-2"onSelect={() => onSelectDisableBranching()}@@ -241,7 +241,7 @@ const PullRequestPanel = ({: `Created ${formattedTimeFromNow}`}</p></div>- <p className="text-foreground-light ml-8 mt-0.5">{pr.title}</p>+ <p className="text-scale-1000 ml-8 mt-0.5">{pr.title}</p></div><div className="flex items-center space-x-4"><Link passHref href={pr.url}>diff --git a/studio/components/interfaces/BranchManagement/CreateBranchSidePanel.tsx b/studio/components/interfaces/BranchManagement/CreateBranchSidePanel.tsxindex bb50dcdb4db..036f2c4de87 100644--- a/studio/components/interfaces/BranchManagement/CreateBranchSidePanel.tsx+++ b/studio/components/interfaces/BranchManagement/CreateBranchSidePanel.tsx@@ -113,7 +113,7 @@ const CreateBranchSidePanel = ({ visible, onClose }: CreateBranchSidePanelProps){isLoadingIntegrations && <GenericSkeletonLoader />}{isSuccessIntegrations && (<div>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Your project is currently connected to the repository:</p><div className="flex items-center space-x-2">diff --git a/studio/components/interfaces/BranchManagement/PreviewBranches.tsx b/studio/components/interfaces/BranchManagement/PreviewBranches.tsxindex c5923ef4cfc..3c8cb4465c7 100644--- a/studio/components/interfaces/BranchManagement/PreviewBranches.tsx+++ b/studio/components/interfaces/BranchManagement/PreviewBranches.tsx@@ -90,16 +90,14 @@ const PreviewBranches = ({<BranchContainer><div className="flex items-center flex-col justify-center w-full py-8"><p>No database preview branches</p>- <p className="text-foreground-light">- Database preview branches will be shown here- </p>+ <p className="text-scale-1000">Database preview branches will be shown here</p><div className="w-[500px] border rounded-md mt-4"><div className="px-5 py-3 bg-surface-100 flex items-center justify-between"><div className="flex items-center space-x-4">- <IconGitBranch strokeWidth={2} className="text-foreground-light" />+ <IconGitBranch strokeWidth={2} className="text-scale-1100" /><div><p>Create a preview branch</p>- <p className="text-foreground-light">Start developing in preview</p>+ <p className="text-scale-1000">Start developing in preview</p></div></div><Button type="default" onClick={() => onSelectCreateBranch()}>@@ -109,7 +107,7 @@ const PreviewBranches = ({<div className="px-5 py-3 border-t flex items-center justify-between"><div><p>Not sure what to do?</p>- <p className="text-foreground-light">Browse our documentation</p>+ <p className="text-scale-1000">Browse our documentation</p></div><Button type="default" iconRight={<IconExternalLink />}>Docsdiff --git a/studio/components/interfaces/BranchManagement/PullRequests.tsx b/studio/components/interfaces/BranchManagement/PullRequests.tsxindex 83574089618..788208a4285 100644--- a/studio/components/interfaces/BranchManagement/PullRequests.tsx+++ b/studio/components/interfaces/BranchManagement/PullRequests.tsx@@ -96,14 +96,14 @@ const PullRequests = ({<BranchContainer><div className="flex items-center flex-col justify-center w-full py-8"><p>No pull requests made yet for this repository</p>- <p className="text-foreground-light">+ <p className="text-scale-1000">Only pull requests with the ./migration directory changes will show here.</p>{previewBranches.length > 0 && (<div className="w-96 border rounded-md mt-4"><div className="px-5 py-3 bg-surface-100 flex items-center justify-between"><div className="flex items-center space-x-4">- <IconGitPullRequest strokeWidth={2} className="text-foreground-light" />+ <IconGitPullRequest strokeWidth={2} className="text-scale-1100" /><p>Create a pull request</p></div><Link passHref href={pullRequestUrl}>@@ -117,7 +117,7 @@ const PullRequests = ({<div className="px-5 py-3 border-t flex items-center justify-between"><div><p>Not sure what to do?</p>- <p className="text-foreground-light">Browse our documentation</p>+ <p className="text-scale-1000">Browse our documentation</p></div><Button type="default" iconRight={<IconExternalLink />}>Docsdiff --git a/studio/components/interfaces/Database/Backups/BackupItem.tsx b/studio/components/interfaces/Database/Backups/BackupItem.tsxindex d049e439edf..e8c3fbf82b1 100644--- a/studio/components/interfaces/Database/Backups/BackupItem.tsx+++ b/studio/components/interfaces/Database/Backups/BackupItem.tsx@@ -42,7 +42,7 @@ const BackupItem = ({ index, backup, onSelectBackup }: BackupItemProps) => {index ? 'border-t dark:border-dark' : ''}`}>- <p className="text-sm text-foreground ">{generateBackupName(backup)}</p>+ <p className="text-sm text-scale-1200 ">{generateBackupName(backup)}</p><div className="">{generateSideButtons(backup)}</div></div>)diff --git a/studio/components/interfaces/Database/Backups/BackupsList.tsx b/studio/components/interfaces/Database/Backups/BackupsList.tsxindex 337565eef36..3225f7e2606 100644--- a/studio/components/interfaces/Database/Backups/BackupsList.tsx+++ b/studio/components/interfaces/Database/Backups/BackupsList.tsx@@ -82,7 +82,7 @@ const BackupsList = () => {<>{!canTriggerScheduledBackups && (<InformationBox- icon={<IconAlertCircle className="text-foreground-light" strokeWidth={2} />}+ icon={<IconAlertCircle className="text-scale-1100" strokeWidth={2} />}title="You need additional permissions to trigger a scheduled backup"/>)}diff --git a/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx b/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsxindex 0e1171449f2..a347952ecf0 100644--- a/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx+++ b/studio/components/interfaces/Database/Backups/PITR/PITRNotice.tsx@@ -24,7 +24,7 @@ const PITRNotice = ({}) => {disabled={true}footer={<div className="flex items-center justify-between p-6">- <span className="text-sm text-foreground-light">+ <span className="text-sm text-scale-1000">You can also increase your recovery retention period updating your PITR add-on</span><Tooltip.Root delayDuration={0}>@@ -48,7 +48,7 @@ const PITRNotice = ({}) => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to amend subscriptions</span></div>@@ -65,8 +65,8 @@ const PITRNotice = ({}) => {</div><div className="space-y-2"><p className="text-sm">Recovery retention period</p>- <p className="text-sm text-foreground-light">- Database changes are logged every <span className="text-foreground">2 minutes</span>,+ <p className="text-sm text-scale-1100">+ Database changes are logged every <span className="text-scale-1200">2 minutes</span>,with a total recovery period of up to{' '}<span className="text-brand">{retentionPeriod} days</span>.</p>diff --git a/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx b/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsxindex 743c92bf447..65b0ff813cc 100644--- a/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx+++ b/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx@@ -160,7 +160,7 @@ const PITRSelection = () => {'border-scale-200 border w-48 text-center',].join(' ')}>- <span className="text-foreground text-xs">+ <span className="text-scale-1200 text-xs">Selected date is out of range where backups are available</span></div>@@ -196,12 +196,12 @@ const PITRSelection = () => {type="button"className={`${prevMonthButtonDisabled && 'cursor-not-allowed opacity-50'}- text-foreground-light hover:text-foreground focus:outline-none+ text-scale-1100 hover:text-scale-1200 focus:outline-none`}><IconChevronLeft size={16} strokeWidth={2} /></button>- <span className="text-foreground-light text-sm">+ <span className="text-scale-1100 text-sm">{format(date, 'MMMM yyyy')}</span><button@@ -210,7 +210,7 @@ const PITRSelection = () => {type="button"className={`${nextMonthButtonDisabled && 'cursor-not-allowed opacity-50'}- text-foreground-light hover:text-foreground focus:outline-none+ text-scale-1100 hover:text-scale-1200 focus:outline-none`}><IconChevronRight size={16} strokeWidth={2} />@@ -221,7 +221,7 @@ const PITRSelection = () => {/><div className="flex items-center space-x-2"><div className="border w-4 h-4 border-scale-800 bg-brand-600" />- <p className="text-xs text-foreground-light">Point in time back up available</p>+ <p className="text-xs text-scale-1000">Point in time back up available</p></div></div>@@ -240,7 +240,7 @@ const PITRSelection = () => {) : (<div className="space-y-8 py-2"><div className="space-y-1">- <p className="text-sm text-foreground-light">Restore database to</p>+ <p className="text-sm text-scale-1100">Restore database to</p><p className="text-3xl"><span>{dayjs(selectedDate).format('DD MMM YYYY')}</span><span>@@ -252,7 +252,7 @@ const PITRSelection = () => {</div><div className="space-y-2"><div className="space-y-1">- <p className="text-sm text-foreground-light">Time zone</p>+ <p className="text-sm text-scale-1100">Time zone</p><div className="w-[350px]"><TimezoneSelectionhideLabel@@ -264,7 +264,7 @@ const PITRSelection = () => {</div><div><div className="space-y-1">- <p className="text-sm text-foreground-light">Recovery time</p>+ <p className="text-sm text-scale-1100">Recovery time</p><TimeInputdefaultTime={selectedTime}minimumTime={@@ -284,7 +284,7 @@ const PITRSelection = () => {/></div>- <p className="text-sm text-foreground-light mt-8">+ <p className="text-sm text-scale-1000 mt-8">Enter a time within the available range to restore from. <br /> Backupsare captured every 2 minutes, allowing you to enter a time and restoreyour database to the closest backup point. We'll match the time you@@ -292,15 +292,15 @@ const PITRSelection = () => {</p></div><div className="!mt-4 space-y-1">- <h3 className="text-sm text-foreground-light"></h3>+ <h3 className="text-sm text-scale-1100"></h3>{isSelectedOnEarliestDay && (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000"><strong>Earliest backup available for this date</strong>:{' '}{earliestAvailableBackup.format('HH:mm:ss')}</p>)}{isSelectedOnLatestDay && (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000"><strong>Latest backup available for this date</strong>:{' '}{latestAvailableBackup.format('HH:mm:ss')}</p>@@ -344,17 +344,15 @@ const PITRSelection = () => {<div className="space-y-4 py-3"><Modal.Content><div className="py-2 space-y-1">- <p className="text-sm text-foreground-light">Your database will be restored to:</p>+ <p className="text-sm text-scale-1100">Your database will be restored to:</p></div><div className="py-2 flex flex-col gap-3"><div>- <p className="text-sm font-mono text-foreground-lighter">- {selectedTimezone?.text}- </p>+ <p className="text-sm font-mono text-scale-900">{selectedTimezone?.text}</p><p className="text-2xl">{recoveryTimeString}</p></div><div>- <p className="text-sm font-mono text-foreground-lighter">(UTC+00:00)</p>+ <p className="text-sm font-mono text-scale-900">(UTC+00:00)</p><p className="text-2xl">{recoveryTimeStringUtc}</p></div></div>@@ -372,7 +370,7 @@ const PITRSelection = () => {</Modal.Content><Modal.Separator /><Modal.Content>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Restores may take from a few minutes up to several hours depending on the size of yourdatabase. During this period, your project will not be available, until therestoration is completed.diff --git a/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx b/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsxindex fdf7a5a569d..7b58690fb48 100644--- a/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx+++ b/studio/components/interfaces/Database/Backups/PITR/PITRStatus.tsx@@ -50,8 +50,8 @@ const PITRStatus = ({footer={<div className="flex items-center justify-between p-6"><div className="flex items-center space-x-4">- <IconAlertCircle className="text-foreground-light" size={18} strokeWidth={1.5} />- <span className="text-foreground-light text-sm">+ <IconAlertCircle className="text-scale-1100" size={18} strokeWidth={1.5} />+ <span className="text-scale-1000 text-sm">You'll be able to pick the right date and time when you begin</span></div>@@ -71,7 +71,7 @@ const PITRStatus = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to trigger a PITR recovery</span></div>@@ -92,11 +92,11 @@ const PITRStatus = ({</div><div className="flex items-center space-x-20"><div className="space-y-2">- <p className="text-sm text-foreground-light">Database restore available from</p>+ <p className="text-sm text-scale-1100">Database restore available from</p><p className="text-2xl">{earliestAvailableBackup}</p></div><div className="space-y-2">- <p className="text-sm text-foreground-light">Latest restore available at</p>+ <p className="text-sm text-scale-1100">Latest restore available at</p><p className="text-2xl">{latestAvailableBackup}</p></div></div>diff --git a/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx b/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsxindex ec29c6f5811..2d8466f0ef0 100644--- a/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx+++ b/studio/components/interfaces/Database/Backups/PITR/TimeInput.tsx@@ -94,7 +94,7 @@ const TimeInput = ({ defaultTime, minimumTime, maximumTime, onChange = noop }: T}`,].join(' ')}>- <IconClock className="text-foreground-light" size={18} strokeWidth={1.5} />+ <IconClock className="text-scale-1100" size={18} strokeWidth={1.5} /><Tooltip.Root delayDuration={0}><Tooltip.Trigger className="w-1/4" tabIndex={-1}><input@@ -119,7 +119,7 @@ const TimeInput = ({ defaultTime, minimumTime, maximumTime, onChange = noop }: T'border-scale-200 border',].join(' ')}>- <span className="text-foreground text-xs">Hours (HH)</span>+ <span className="text-scale-1200 text-xs">Hours (HH)</span></div></Tooltip.Content></Tooltip.Portal>@@ -149,7 +149,7 @@ const TimeInput = ({ defaultTime, minimumTime, maximumTime, onChange = noop }: T'border-scale-200 border',].join(' ')}>- <span className="text-foreground text-xs">Minutes (MM)</span>+ <span className="text-scale-1200 text-xs">Minutes (MM)</span></div></Tooltip.Content></Tooltip.Portal>@@ -179,7 +179,7 @@ const TimeInput = ({ defaultTime, minimumTime, maximumTime, onChange = noop }: T'border-scale-200 border',].join(' ')}>- <span className="text-foreground text-xs">Seconds (SS)</span>+ <span className="text-scale-1200 text-xs">Seconds (SS)</span></div></Tooltip.Content></Tooltip.Portal>diff --git a/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx b/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsxindex f89150c6731..9a80bb1ee56 100644--- a/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx+++ b/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx@@ -113,7 +113,7 @@ const EnableExtensionModal = ({ visible, extension, onCancel }: EnableExtensionMsize="small"header={<div className="flex items-baseline gap-2">- <h5 className="text-sm text-foreground">Confirm to enable</h5>+ <h5 className="text-sm text-scale-1200">Confirm to enable</h5><code className="text-xs">{extension.name}</code></div>}diff --git a/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx b/studio/components/interfaces/Database/Extensions/ExtensionCard.tsxindex a7e91fe3e98..84472274b58 100644--- a/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx+++ b/studio/components/interfaces/Database/Extensions/ExtensionCard.tsx@@ -6,9 +6,9 @@ import { Badge, IconExternalLink, IconLoader, Toggle } from 'ui'import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal'import { useCheckPermissions, useStore } from 'hooks'import { isResponseOk } from 'lib/common/fetch'+import EnableExtensionModal from './EnableExtensionModal'import Link from 'next/link'import { extensions } from 'shared-data'-import EnableExtensionModal from './EnableExtensionModal'interface ExtensionCardProps {extension: any@@ -80,7 +80,7 @@ const ExtensionCard = ({ extension }: ExtensionCardProps) => {<div className="flex items-center space-x-2 truncate"><h3title={extension.name}- className="h-5 m-0 text-sm truncate cursor-pointer text-foreground"+ className="h-5 m-0 text-sm truncate cursor-pointer text-scale-1200">{extension.name}</h3>@@ -128,11 +128,11 @@ const ExtensionCard = ({ extension }: ExtensionCardProps) => {].join(' ')}><div className="py-3 px-4">- <p className="text-sm text-foreground-light capitalize-sentence">{extension.comment}</p>+ <p className="text-sm text-scale-1100 capitalize-sentence">{extension.comment}</p></div>{isOn && extension.schema && (<div className="py-3 px-4">- <div className="flex items-center flex-grow space-x-2 text-sm text-foreground-light">+ <div className="flex items-center flex-grow space-x-2 text-sm text-scale-1100"><span>Schema:</span><Badge color="scale">{`${extension.schema}`}</Badge></div>diff --git a/studio/components/interfaces/Database/Extensions/Extensions.tsx b/studio/components/interfaces/Database/Extensions/Extensions.tsxindex 308249f1b64..7837d60db08 100644--- a/studio/components/interfaces/Database/Extensions/Extensions.tsx+++ b/studio/components/interfaces/Database/Extensions/Extensions.tsx@@ -52,7 +52,7 @@ const Extensions = () => {{!canUpdateExtensions ? (<div className="w-[500px]"><InformationBox- icon={<IconAlertCircle className="text-foreground-light" strokeWidth={2} />}+ icon={<IconAlertCircle className="text-scale-1100" strokeWidth={2} />}title="You need additional permissions to update database extensions"/></div>diff --git a/studio/components/interfaces/Database/Functions/CreateFunction.tsx b/studio/components/interfaces/Database/Functions/CreateFunction.tsxindex b612bd2e53d..a1e34e697cd 100644--- a/studio/components/interfaces/Database/Functions/CreateFunction.tsx+++ b/studio/components/interfaces/Database/Functions/CreateFunction.tsx@@ -1,7 +1,7 @@import { filter, has, isEmpty, isNull, isUndefined, keyBy, mapValues, partition } from 'lodash'import { makeAutoObservable } from 'mobx'import { observer, useLocalObservable } from 'mobx-react-lite'-import { createContext, FormEvent, useContext, useEffect, useState } from 'react'+import { FormEvent, createContext, useContext, useEffect, useState } from 'react'import { Button, IconPlus, IconTrash, Input, Listbox, Modal, Radio, SidePanel, Toggle } from 'ui'import { Dictionary } from 'components/grid'@@ -14,9 +14,9 @@ import SqlEditor from 'components/ui/SqlEditor'import { useSchemasQuery } from 'data/database/schemas-query'import { useStore } from 'hooks'import { isResponseOk } from 'lib/common/fetch'-import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'import { SupaResponse } from 'types'import { convertArgumentTypes, convertConfigParams, hasWhitespace } from './Functions.utils'+import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'// [Refactor] Remove local state, just use the Form component@@ -427,7 +427,7 @@ const CreateFunction = ({ func, visible, setVisible }: CreateFunctionProps) => {}}><Modal.Content>- <p className="py-4 text-sm text-foreground-light">+ <p className="py-4 text-sm text-scale-1100">There are unsaved changes. Are you sure you want to close the panel? Your changes willbe lost.</p>@@ -480,14 +480,14 @@ const InputMultiArguments = observer(({ readonly }: InputMultiArgumentsProps) =>return (<div><div className="flex flex-col">- <h5 className="text-base text-foreground">Arguments</h5>- <p className="text-sm text-foreground-light">+ <h5 className="text-base text-scale-1200">Arguments</h5>+ <p className="text-sm text-scale-1100">Arguments can be referenced in the function body using either names or numbers.</p></div><div className="space-y-2 pt-4">{readonly && isEmpty(_localState!.formState.args.value) && (- <span className="text-foreground-lighter">No argument for this function</span>+ <span className="text-scale-900">No argument for this function</span>)}{_localState!.formState.args.value.map((x: { name: string; type: string; error?: string }, idx: number) => (@@ -562,27 +562,23 @@ const InputArgument = observer(({ idx, name, type, error, readonly }: InputArgumerror={error}disabled={readonly}/>- {readonly ? (- <Input disabled readOnly id={`type-${idx}`} size="small" value={type} className="flex-1" />- ) : (- <Listbox- id={`type-${idx}`}- className="flex-1"- value={type}- size="small"- onChange={onTypeChange}- disabled={readonly}- >- <Listbox.Option value="integer" label="integer">- integer+ <Listbox+ id={`type-${idx}`}+ className="flex-1"+ value={type}+ size="small"+ onChange={onTypeChange}+ disabled={readonly}+ >+ <Listbox.Option value="integer" label="integer">+ integer+ </Listbox.Option>+ {POSTGRES_DATA_TYPES.map((x: string) => (+ <Listbox.Option key={x} value={x} label={x}>+ {x}</Listbox.Option>- {POSTGRES_DATA_TYPES.map((x: string) => (- <Listbox.Option key={x} value={x} label={x}>- {x}- </Listbox.Option>- ))}- </Listbox>- )}+ ))}+ </Listbox>{!readonly && (<Button type="danger" icon={<IconTrash size="tiny" />} onClick={onDelete} size="small" />)}@@ -604,7 +600,7 @@ const InputMultiConfigParams = observer(({}) => {return (<div><div className="flex items-center justify-between">- <h5 className="text-base text-foreground">Config Params</h5>+ <h5 className="text-base text-scale-1200">Config Params</h5></div><div className="space-y-2 pt-4">{_localState!.formState.configParams.value.map(@@ -698,12 +694,12 @@ const InputDefinition = observer(({}) => {return (<div className="space-y-4"><div className="flex flex-col">- <h5 className="text-base text-foreground">Definition</h5>- <p className="text-sm text-foreground-light">+ <h5 className="text-base text-scale-1200">Definition</h5>+ <p className="text-sm text-scale-1100">The language below should be written in `{_localState!.formState.language.value}`.</p>{!_localState?.isEditing && (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Change the language in the Advanced Settings below.</p>)}diff --git a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsxindex b3002c9ae08..0d81ed8b956 100644--- a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx+++ b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx@@ -3,23 +3,11 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import { includes, noop } from 'lodash'import { observer } from 'mobx-react-lite'import { useRouter } from 'next/router'-import {- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconCheck,- IconEdit3,- IconFileText,- IconMoreVertical,- IconTrash,-} from 'ui'+import { Button, Dropdown, IconEdit3, IconFileText, IconMoreVertical, IconTrash } from 'ui'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import Table from 'components/to-be-cleaned/Table'import { useCheckPermissions, useStore } from 'hooks'-import { toJS } from 'mobx'interface FunctionListProps {schema: string@@ -57,7 +45,7 @@ const FunctionList = ({return (<Table.tr key={schema}><Table.td colSpan={4}>- <p className="text-sm text-foreground">No functions created yet</p>+ <p className="text-sm text-scale-1200">No functions created yet</p><p className="text-sm text-light">There are no functions found in the schema "{schema}"</p>@@ -70,7 +58,7 @@ const FunctionList = ({return (<Table.tr key={schema}><Table.td colSpan={4}>- <p className="text-sm text-foreground">No results found</p>+ <p className="text-sm text-scale-1200">No results found</p><p className="text-sm text-light">Your search for "{filterString}" did not return any results</p>@@ -81,92 +69,79 @@ const FunctionList = ({return (<>- {_functions.map((x) => {- return (- <Table.tr key={x.id}>- <Table.td className="truncate">- <p title={x.name}>{x.name}</p>- </Table.td>- <Table.td className="hidden md:table-cell md:overflow-auto">- <p title={x.argument_types}>{x.argument_types || '-'}</p>- </Table.td>- <Table.td className="hidden lg:table-cell">- <p title={x.return_type}>{x.return_type}</p>- </Table.td>- <Table.td className="hidden lg:table-cell">- <div className="flex justify-center">- {x.security_definer ? <IconCheck strokeWidth={1.5} className="text-brand" /> : null}- </div>- </Table.td>- <Table.td className="text-right">- {!isLocked && (- <div className="flex items-center justify-end">- {canUpdateFunctions ? (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button asChild type="default" icon={<IconMoreVertical />} className="px-1">- <span></span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="left">+ {_functions.map((x) => (+ <Table.tr key={x.id}>+ <Table.td className="truncate">+ <p>{x.name}</p>+ </Table.td>+ <Table.td className="hidden md:table-cell md:overflow-auto">+ <p>{x.argument_types}</p>+ </Table.td>+ <Table.td className="hidden lg:table-cell">+ <p>{x.return_type}</p>+ </Table.td>+ <Table.td className="text-right">+ {!isLocked && (+ <div className="flex items-center justify-end">+ {canUpdateFunctions ? (+ <Dropdown+ side="left"+ overlay={+ <>{isApiDocumentAvailable && (- <DropdownMenuItem_Shadcn_- className="space-x-2"+ <Dropdown.Item+ icon={<IconFileText size="tiny" />}onClick={() => router.push(`/project/${projectRef}/api?rpc=${x.name}`)}>- <IconFileText size="tiny" />- <p className="text">Client API docs</p>- </DropdownMenuItem_Shadcn_>+ Client API docs+ </Dropdown.Item>)}- <DropdownMenuItem_Shadcn_- className="space-x-2"+ <Dropdown.Item+ icon={<IconEdit3 size="tiny" />}onClick={() => editFunction(x)}>- <IconEdit3 size="tiny" />- <p className="text">Edit function</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuItem_Shadcn_- className="space-x-2"+ Edit function+ </Dropdown.Item>+ <Dropdown.Item+ icon={<IconTrash stroke="red" size="tiny" />}onClick={() => deleteFunction(x)}>- <IconTrash stroke="red" size="tiny" />- <p className="text">Delete function</p>- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>- ) : (- <Tooltip.Root delayDuration={0}>- <Tooltip.Trigger asChild>- <Button- disabled- type="default"- icon={<IconMoreVertical />}- className="px-1"- />- </Tooltip.Trigger>- <Tooltip.Portal>- <Tooltip.Content side="left">- <Tooltip.Arrow className="radix-tooltip-arrow" />- <div- className={[- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',- 'border border-scale-200',- ].join(' ')}- >- <span className="text-xs text-foreground">- You need additional permissions to update functions- </span>- </div>- </Tooltip.Content>- </Tooltip.Portal>- </Tooltip.Root>- )}- </div>- )}- </Table.td>- </Table.tr>- )- })}+ Delete function+ </Dropdown.Item>+ </>+ }+ >+ <Button asChild type="default" icon={<IconMoreVertical />}>+ <span></span>+ </Button>+ </Dropdown>+ ) : (+ <Tooltip.Root delayDuration={0}>+ <Tooltip.Trigger asChild>+ <Button disabled type="default" icon={<IconMoreVertical />} />+ </Tooltip.Trigger>+ <Tooltip.Portal>+ <Tooltip.Content side="left">+ <Tooltip.Arrow className="radix-tooltip-arrow" />+ <div+ className={[+ 'rounded bg-scale-100 py-1 px-2 leading-none shadow',+ 'border border-scale-200',+ ].join(' ')}+ >+ <span className="text-xs text-scale-1200">+ You need additional permissions to update functions+ </span>+ </div>+ </Tooltip.Content>+ </Tooltip.Portal>+ </Tooltip.Root>+ )}+ </div>+ )}+ </Table.td>+ </Table.tr>+ ))}</>)}diff --git a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsxindex 9c5083078bc..a50847e20b5 100644--- a/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx+++ b/studio/components/interfaces/Database/Functions/FunctionsList/FunctionsList.tsx@@ -70,11 +70,11 @@ const FunctionsList = ({disabled={!canCreateFunctions}disabledMessage="You need additional permissions to create functions">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">PostgreSQL functions, also known as stored procedures, is a set of SQL and proceduralcommands such as declarations, assignments, loops, flow-of-control, etc.</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">It's stored on the database server and can be invoked using the SQL interface.</p></ProductEmptyState>@@ -104,9 +104,9 @@ const FunctionsList = ({key={schema.id}value={schema.name}label={schema.name}- addOnBefore={() => <span className="text-foreground-lighter">schema</span>}+ addOnBefore={() => <span className="text-scale-900">schema</span>}>- <span className="text-foreground text-sm">{schema.name}</span>+ <span className="text-scale-1200 text-sm">{schema.name}</span></Listbox.Option>))}<Listbox.Option@@ -122,9 +122,9 @@ const FunctionsList = ({key={schema.id}value={schema.name}label={schema.name}- addOnBefore={() => <span className="text-foreground-lighter">schema</span>}+ addOnBefore={() => <span className="text-scale-900">schema</span>}>- <span className="text-foreground text-sm">{schema.name}</span>+ <span className="text-scale-1200 text-sm">{schema.name}</span></Listbox.Option>))}</Listbox>@@ -155,7 +155,7 @@ const FunctionsList = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to create functions</span></div>@@ -170,16 +170,15 @@ const FunctionsList = ({className="table-fixed"head={<>- <Table.th key="name">Name</Table.th>+ <Table.th key="name" className="w-1/3 space-x-4">+ Name+ </Table.th><Table.th key="arguments" className="hidden md:table-cell">Arguments</Table.th><Table.th key="return_type" className="hidden lg:table-cell">Return type</Table.th>- <Table.th key="return_type" className="hidden lg:table-cell w-[100px]">- <p className="text-center">Definer</p>- </Table.th><Table.th key="buttons" className="w-1/6"></Table.th></>}diff --git a/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx b/studio/components/interfaces/Database/Hooks/EditHookPanel.tsxindex a897d1b13d4..5c9552c4db7 100644--- a/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx+++ b/studio/components/interfaces/Database/Hooks/EditHookPanel.tsx@@ -17,8 +17,8 @@ import { useTablesQuery } from 'data/tables/tables-query'import { useStore } from 'hooks'import { isValidHttpUrl, tryParseJson, uuidv4 } from 'lib/helpers'import { Button, Checkbox, Form, Input, Listbox, Modal, Radio, SidePanel } from 'ui'-import { AVAILABLE_WEBHOOK_TYPES, HOOK_EVENTS } from './Hooks.constants'import HTTPRequestFields from './HTTPRequestFields'+import { AVAILABLE_WEBHOOK_TYPES, HOOK_EVENTS } from './Hooks.constants'export interface EditHookPanelProps {visible: boolean@@ -334,7 +334,7 @@ const EditHookPanel = ({ visible, selectedHook, onClose }: EditHookPanelProps) =}}><Modal.Content>- <p className="py-4 text-sm text-foreground-light">+ <p className="py-4 text-sm text-scale-1100">There are unsaved changes. Are you sure you want to close the panel? Your changes willbe lost.</p>@@ -424,7 +424,7 @@ const FormContents = ({<FormSectionLabelclassName="lg:!col-span-4"description={- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Select which table and events will trigger your webhook</p>}@@ -457,8 +457,8 @@ const FormContents = ({label={table.name}><div className="flex items-center space-x-2">- <p className="text-foreground-light">{table.schema}</p>- <p className="text-foreground">{table.name}</p>+ <p className="text-scale-1000">{table.schema}</p>+ <p className="text-scale-1200">{table.name}</p></div></Listbox.Option>))}@@ -502,9 +502,9 @@ const FormContents = ({<Image src={webhook.icon} layout="fixed" width="32" height="32" /><div className="flex-col space-y-0"><div className="flex space-x-2">- <p className="text-foreground">{webhook.label}</p>+ <p className="text-scale-1200">{webhook.label}</p></div>- <p className="text-foreground-light">{webhook.description}</p>+ <p className="text-scale-1000">{webhook.description}</p></div></div>}diff --git a/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx b/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsxindex 1232891e687..65a7d8e4f7f 100644--- a/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx+++ b/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx@@ -9,11 +9,7 @@ import { useEdgeFunctionsQuery } from 'data/edge-functions/edge-functions-query'import { uuidv4 } from 'lib/helpers'import {Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,IconChevronDown,IconPlus,IconTrash,@@ -91,7 +87,7 @@ const HTTPRequestFields = ({/>) : type === 'supabase_function' && edgeFunctions.length === 0 ? (<div className="space-y-1">- <p className="text-sm text-foreground-light">Select which edge function to trigger</p>+ <p className="text-sm text-scale-1100">Select which edge function to trigger</p><div className="px-4 py-4 border rounded bg-scale-500 border-scale-700 flex items-center justify-between space-x-4"><p className="text-sm">No edge functions created yet</p><Link href={`/project/${ref}/functions`}>@@ -169,16 +165,11 @@ const HTTPRequestFields = ({Add a new header</Button>{type === 'supabase_function' && (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- type="default"- className="rounded-l-none px-[4px] py-[5px]"- icon={<IconChevronDown />}- />- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ align="end" side="bottom">- <DropdownMenuItem_Shadcn_+ <Dropdown+ align="end"+ side="bottom"+ overlay={[+ <Dropdown.Itemkey="add-auth-header"onClick={() =>onAddHeader({@@ -189,14 +180,14 @@ const HTTPRequestFields = ({}><div className="space-y-1">- <p className="block text-foreground">Add auth header with service key</p>- <p className="text-foreground-light">+ <p className="block text-scale-1200">Add auth header with service key</p>+ <p className="text-scale-1000">Required if your edge function enforces JWT verification</p></div>- </DropdownMenuItem_Shadcn_>- <DropdownMenuSeparator_Shadcn_ />- <DropdownMenuItem_Shadcn_+ </Dropdown.Item>,+ <Dropdown.Separator key="separator" />,+ <Dropdown.Itemkey="add-source-header"onClick={() =>onAddHeader({@@ -207,14 +198,20 @@ const HTTPRequestFields = ({}><div className="space-y-1">- <p className="block text-foreground">Add custom source header</p>- <p className="text-foreground-light">+ <p className="block text-scale-1200">Add custom source header</p>+ <p className="text-scale-1000">Useful to verify that the edge function was triggered from this webhook</p></div>- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ </Dropdown.Item>,+ ]}+ >+ <Button+ type="default"+ className="rounded-l-none px-[4px] py-[5px]"+ icon={<IconChevronDown />}+ />+ </Dropdown>)}</div></div>diff --git a/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx b/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsxindex 94309e431f2..0935158576f 100644--- a/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx+++ b/studio/components/interfaces/Database/Hooks/HooksList/HookList.tsx@@ -12,14 +12,12 @@ import { BASE_PATH } from 'lib/constants'import {Badge,Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,IconEdit3,IconMoreVertical,+ IconStopCircle,IconTrash,+ IconXCircle,} from 'ui'export interface HookListProps {@@ -89,30 +87,36 @@ const HookList = ({ schema, filterString, editHook = noop, deleteHook = noop }:<Table.td className="text-right"><div className="flex justify-end gap-4">{canUpdateWebhook ? (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button asChild type="default" icon={<IconMoreVertical />} className="px-1">- <span></span>- </Button>- </DropdownMenuTrigger_Shadcn_>-- <DropdownMenuContent_Shadcn_ side="left">+ <Dropdown+ side="left"+ overlay={<>- <DropdownMenuItem_Shadcn_ className="space-x-2" onClick={() => editHook(x)}>- <IconEdit3 size="tiny" />- <p className="text">Edit hook</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuSeparator_Shadcn_ />- <DropdownMenuItem_Shadcn_- className="space-x-2"+ <Dropdown.Item+ icon={<IconEdit3 size="tiny" strokeWidth={2} />}+ onClick={() => editHook(x)}+ >+ Edit hook+ </Dropdown.Item>+ <Dropdown.Item+ icon={<IconXCircle size="tiny" strokeWidth={2} />}+ onClick={() => editHook(x)}+ >+ Disable hook+ </Dropdown.Item>+ <Dropdown.Separator />+ <Dropdown.Item+ icon={<IconTrash stroke="red" size="tiny" strokeWidth={2} />}onClick={() => deleteHook(x)}>- <IconTrash stroke="red" size="tiny" />- <p className="text">Delete hook</p>- </DropdownMenuItem_Shadcn_>+ Delete hook+ </Dropdown.Item></>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ }+ >+ <Button asChild type="default" icon={<IconMoreVertical />} className="px-1">+ <span></span>+ </Button>+ </Dropdown>) : (<Tooltip.Root delayDuration={0}><Tooltip.Trigger asChild>@@ -127,7 +131,7 @@ const HookList = ({ schema, filterString, editHook = noop, deleteHook = noop }:'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to update webhooks</span></div>diff --git a/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx b/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsxindex f6b5951efbb..17f5d89ea69 100644--- a/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx+++ b/studio/components/interfaces/Database/Hooks/HooksList/HooksList.tsx@@ -62,7 +62,7 @@ const HooksList = ({disabled={!canCreateWebhooks}disabledMessage="You need additional permissions to create webhooks">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Database Webhooks can be used to trigger serverless functions or send requests to anHTTP endpoint.</p>@@ -109,7 +109,7 @@ const HooksList = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to create webhooks</span></div>diff --git a/studio/components/interfaces/Database/Hooks/HooksList/SchemaTable.tsx b/studio/components/interfaces/Database/Hooks/HooksList/SchemaTable.tsxindex fb7030d46df..35bc890a3f6 100644--- a/studio/components/interfaces/Database/Hooks/HooksList/SchemaTable.tsx+++ b/studio/components/interfaces/Database/Hooks/HooksList/SchemaTable.tsx@@ -21,7 +21,7 @@ const SchemaTable = ({<div key={schema} className=""><div className="sticky top-0 backdrop-blur backdrop-filter"><div className="flex items-baseline space-x-1 py-2">- <h5 className="text-foreground-light">schema</h5>+ <h5 className="text-scale-1000">schema</h5><h4>{schema}</h4></div></div>diff --git a/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx b/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsxindex 563ad10fe3a..21a07a3471b 100644--- a/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx+++ b/studio/components/interfaces/Database/Indexes/CreateIndexSidePanel.tsx@@ -6,13 +6,13 @@ import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectConteimport CodeEditor from 'components/ui/CodeEditor'import MultiSelect, { MultiSelectOption } from 'components/ui/MultiSelect'import ShimmeringLoader from 'components/ui/ShimmeringLoader'-import { useIndexesQuery } from 'data/database/indexes-query'import { useSchemasQuery } from 'data/database/schemas-query'import { useTableColumnsQuery } from 'data/database/table-columns-query'import { useEntityTypesQuery } from 'data/entity-types/entity-types-infinite-query'+import { INDEX_TYPES } from './Indexes.constants'import { useExecuteSqlMutation } from 'data/sql/execute-sql-mutation'+import { useIndexesQuery } from 'data/database/indexes-query'import { useStore } from 'hooks'-import { INDEX_TYPES } from './Indexes.constants'interface CreateIndexSidePanelProps {visible: boolean@@ -143,7 +143,7 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp{entityTypes.length === 0 ? (<div className="space-y-2">- <p className="text-sm text-foreground-light leading-4">Select a table</p>+ <p className="text-sm text-scale-1100 leading-4">Select a table</p><Inputdisabledplaceholder="No tables available in schema"@@ -170,7 +170,7 @@ CREATE INDEX ON "${selectedSchema}"."${selectedEntity}" USING ${selectedIndexTyp{selectedEntity !== '---' && (<div>- <p className="text-sm text-foreground-light mb-2">Select up to 32 columns</p>+ <p className="text-sm text-scale-1100 mb-2">Select up to 32 columns</p>{isLoadingTableColumns && <ShimmeringLoader className="py-4" />}{isSuccessTableColumns && (<MultiSelectdiff --git a/studio/components/interfaces/Database/Indexes/Indexes.tsx b/studio/components/interfaces/Database/Indexes/Indexes.tsxindex 0b10e00ceec..ca350bbc1d1 100644--- a/studio/components/interfaces/Database/Indexes/Indexes.tsx+++ b/studio/components/interfaces/Database/Indexes/Indexes.tsx@@ -18,16 +18,17 @@ import {} from 'ui'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'-import Table from 'components/to-be-cleaned/Table'-import AlertError from 'components/ui/AlertError'-import CodeEditor from 'components/ui/CodeEditor'-import ConfirmationModal from 'components/ui/ConfirmationModal'import ShimmeringLoader, { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'+import AlertError from 'components/ui/AlertError'import { DatabaseIndex, useIndexesQuery } from 'data/database/indexes-query'import { useSchemasQuery } from 'data/database/schemas-query'+import Table from 'components/to-be-cleaned/Table'+import CodeEditor from 'components/ui/CodeEditor'+import CreateIndexSidePanel from './CreateIndexSidePanel'+import ConfirmationModal from 'components/ui/ConfirmationModal'import { useExecuteSqlMutation } from 'data/sql/execute-sql-mutation'import { useStore } from 'hooks'-import CreateIndexSidePanel from './CreateIndexSidePanel'+import MonacoEditor from 'components/interfaces/SQLEditor/MonacoEditor'const Indexes = () => {const { ui } = useStore()@@ -97,8 +98,8 @@ const Indexes = () => {<div className="pb-8"><div className="flex items-center justify-between mb-6"><div>- <h3 className="mb-1 text-xl text-foreground">Database Indexes</h3>- <div className="text-sm text-foreground-lighter">+ <h3 className="mb-1 text-xl text-scale-1200">Database Indexes</h3>+ <div className="text-sm text-scale-900">Improve query performance against your database</div></div>@@ -141,7 +142,7 @@ const Indexes = () => {key={schema.name}value={schema.name}label={schema.name}- addOnBefore={() => <span className="text-foreground-lighter">schema</span>}+ addOnBefore={() => <span className="text-scale-900">schema</span>}>{schema.name}</Listbox.Option>@@ -185,7 +186,7 @@ const Indexes = () => {{sortedIndexes.length === 0 && search.length === 0 && (<Table.tr><Table.td colSpan={4}>- <p className="text-sm text-foreground">No indexes created yet</p>+ <p className="text-sm text-scale-1200">No indexes created yet</p><p className="text-sm text-light">There are no indexes found in the schema "{selectedSchema}"</p>@@ -195,7 +196,7 @@ const Indexes = () => {{sortedIndexes.length === 0 && search.length > 0 && (<Table.tr><Table.td colSpan={4}>- <p className="text-sm text-foreground">No results found</p>+ <p className="text-sm text-scale-1200">No results found</p><p className="text-sm text-light">Your search for "{search}" did not return any results</p>diff --git a/studio/components/interfaces/Database/Migrations/Migrations.tsx b/studio/components/interfaces/Database/Migrations/Migrations.tsxindex 324aad1362d..5cc00cf4ce7 100644--- a/studio/components/interfaces/Database/Migrations/Migrations.tsx+++ b/studio/components/interfaces/Database/Migrations/Migrations.tsx@@ -32,8 +32,8 @@ const Migrations = () => {<div><div className="flex items-center justify-between mb-6"><div>- <h3 className="mb-1 text-xl text-foreground">Database Migrations</h3>- <div className="text-sm text-foreground-lighter">+ <h3 className="mb-1 text-xl text-scale-1200">Database Migrations</h3>+ <div className="text-sm text-scale-900">History of migrations that have been run on your database</div></div>@@ -119,9 +119,7 @@ const Migrations = () => {<Table.td>{migration.version}</Table.td><Table.tdclassName={- (migration?.name ?? '').length === 0- ? '!text-foreground-lighter'- : ''+ (migration?.name ?? '').length === 0 ? '!text-scale-900' : ''}>{migration?.name ?? 'Name not available'}@@ -141,7 +139,7 @@ const Migrations = () => {) : (<Table.tr><Table.td colSpan={3}>- <p className="text-sm text-foreground">No results found</p>+ <p className="text-sm text-scale-1200">No results found</p><p className="text-sm text-light">Your search for "{search}" did not return any results</p>diff --git a/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx b/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsxindex 01c2b9b4476..ab1d31a5941 100644--- a/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx+++ b/studio/components/interfaces/Database/Migrations/MigrationsEmptyState.tsx@@ -50,7 +50,7 @@ const MigrationsEmptyState = () => {<div className="space-y-8"><div className="space-y-2 w-4/5"><h4 className="text-lg">Database migrations</h4>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Database changes are managed through "migrations" and they are a common way of trackingchanges to your database over time. You can run migrations against your project'sdatabase via the Supabase CLI.@@ -62,7 +62,7 @@ const MigrationsEmptyState = () => {<buttontype="button"className={clsx(- 'flex w-full items-center justify-between rounded py-3 px-6 text-foreground border bg-scale-100 dark:bg-scale-300',+ 'flex w-full items-center justify-between rounded py-3 px-6 text-scale-1200 border bg-scale-100 dark:bg-scale-300',showInstructions && 'rounded-b-none')}>diff --git a/studio/components/interfaces/Database/Publications/PublicationsList.tsx b/studio/components/interfaces/Database/Publications/PublicationsList.tsxindex fa2b16dafc4..c3b32829d41 100644--- a/studio/components/interfaces/Database/Publications/PublicationsList.tsx+++ b/studio/components/interfaces/Database/Publications/PublicationsList.tsx@@ -76,7 +76,7 @@ const PublicationsList = ({ onSelectPublication = noop }: PublicationsListProps){!canUpdatePublications && (<div className="w-[500px]"><InformationBox- icon={<IconAlertCircle className="text-foreground-light" strokeWidth={2} />}+ icon={<IconAlertCircle className="text-scale-1100" strokeWidth={2} />}title="You need additional permissions to update database replications"/></div>diff --git a/studio/components/interfaces/Database/Publications/PublicationsTables.tsx b/studio/components/interfaces/Database/Publications/PublicationsTables.tsxindex 9b881dddd5b..0e6b650674b 100644--- a/studio/components/interfaces/Database/Publications/PublicationsTables.tsx+++ b/studio/components/interfaces/Database/Publications/PublicationsTables.tsx@@ -101,7 +101,7 @@ const PublicationsTables = ({ selectedPublication, onSelectBack }: PublicationsT{!canUpdatePublications && (<div className="w-[500px]"><InformationBox- icon={<IconAlertCircle className="text-foreground-light" strokeWidth={2} />}+ icon={<IconAlertCircle className="text-scale-1100" strokeWidth={2} />}title="You need additional permissions to update database replications"/></div>diff --git a/studio/components/interfaces/Database/Roles/RoleRow.tsx b/studio/components/interfaces/Database/Roles/RoleRow.tsxindex b1637658f29..e61b44c5f36 100644--- a/studio/components/interfaces/Database/Roles/RoleRow.tsx+++ b/studio/components/interfaces/Database/Roles/RoleRow.tsx@@ -4,10 +4,7 @@ import { useState } from 'react'import {Button,Collapsible,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,Form,IconChevronUp,IconHelpCircle,@@ -92,7 +89,7 @@ const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => {<buttonid="collapsible-trigger"type="button"- className="group flex w-full items-center justify-between rounded py-3 px-6 text-foreground"+ className="group flex w-full items-center justify-between rounded py-3 px-6 text-scale-1200"onClick={(event: any) => {if (event.target.id === 'collapsible-trigger') setIsExpanded(!isExpanded)}}@@ -108,7 +105,7 @@ const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => {<p className="text-left text-sm" id="collapsible-trigger">{role.name}</p>- <p className="text-left text-sm text-foreground-light" id="collapsible-trigger">+ <p className="text-left text-sm text-scale-1000" id="collapsible-trigger">(ID: {role.id})</p></div>@@ -125,37 +122,41 @@ const RoleRow = ({ role, disabled = false, onSelectDelete }: RoleRowProps) => {<pid="collapsible-trigger"className={`text-sm ${- role.active_connections > 0 ? 'text-foreground' : 'text-foreground-light'+ role.active_connections > 0 ? 'text-scale-1100' : 'text-scale-1000'}`}>{role.active_connections} connections</p>{!disabled && (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button asChild type="default" className="px-1" icon={<IconMoreVertical />}>- <span></span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" className="w-[120px]">- <DropdownMenuItem_Shadcn_- className="space-x-2"- onClick={(event) => {- event.stopPropagation()- onSelectDelete(role)- }}- >- <IconTrash className="text-red-800" size="tiny" strokeWidth={2} />- <p className="text">Delete</p>- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown+ side="bottom"+ className="w-[120px]"+ overlay={+ <>+ <Dropdown.Item+ icon={+ <IconTrash className="text-red-800" size="tiny" strokeWidth={2} />+ }+ onClick={(event: any) => {+ event.stopPropagation()+ onSelectDelete(role)+ }}+ >+ Delete+ </Dropdown.Item>+ </>+ }+ >+ <Button asChild type="default" className="px-1" icon={<IconMoreVertical />}>+ <span></span>+ </Button>+ </Dropdown>)}</div></button></Collapsible.Trigger><Collapsible.Content>- <div className="group border-t border-scale-500 bg-scale-100 py-6 px-20 text-foreground dark:bg-scale-300">+ <div className="group border-t border-scale-500 bg-scale-100 py-6 px-20 text-scale-1200 dark:bg-scale-300"><div className="py-4 space-y-[9px]">{Object.keys(ROLE_PERMISSIONS).map((permission) => (<Togglediff --git a/studio/components/interfaces/Database/Roles/RolesList.tsx b/studio/components/interfaces/Database/Roles/RolesList.tsxindex 5c69f774698..85c2cd4ec62 100644--- a/studio/components/interfaces/Database/Roles/RolesList.tsx+++ b/studio/components/interfaces/Database/Roles/RolesList.tsx@@ -1,19 +1,19 @@+import { partition } from 'lodash'+import { useState, useEffect } from 'react'+import { observer } from 'mobx-react-lite'import * as Tooltip from '@radix-ui/react-tooltip'import { PostgresRole } from '@supabase/postgres-meta'+import { Button, Input, IconPlus, IconSearch, IconX, Badge } from 'ui'import { PermissionAction } from '@supabase/shared-types/out/constants'-import { partition } from 'lodash'-import { observer } from 'mobx-react-lite'-import { useEffect, useState } from 'react'-import { Badge, Button, IconPlus, IconSearch, IconX, Input } from 'ui'-import { FormHeader } from 'components/ui/Forms'-import NoSearchResults from 'components/ui/NoSearchResults'-import SparkBar from 'components/ui/SparkBar'import { useCheckPermissions, useStore } from 'hooks'-import CreateRolePanel from './CreateRolePanel'-import DeleteRoleModal from './DeleteRoleModal'+import SparkBar from 'components/ui/SparkBar'+import { FormHeader } from 'components/ui/Forms'import RoleRow from './RoleRow'import { SUPABASE_ROLES } from './Roles.constants'+import CreateRolePanel from './CreateRolePanel'+import DeleteRoleModal from './DeleteRoleModal'+import NoSearchResults from 'components/ui/NoSearchResults'const RolesList = ({}) => {const { meta } = useStore()@@ -89,8 +89,8 @@ const RolesList = ({}) => {className={['text-xs w-[90px] h-full text-center rounded-l-full flex items-center justify-center transition',filterType === 'all'- ? 'bg-scale-500 text-foreground'- : 'hover:bg-scale-400 text-foreground-light',+ ? 'bg-scale-500 text-scale-1200'+ : 'hover:bg-scale-400 text-scale-1100',].join(' ')}onClick={() => setFilterType('all')}>@@ -101,8 +101,8 @@ const RolesList = ({}) => {className={['text-xs w-[90px] h-full text-center rounded-r-full flex items-center justify-center transition',filterType === 'active'- ? 'bg-scale-500 text-foreground'- : 'hover:bg-scale-400 text-foreground-light',+ ? 'bg-scale-500 text-scale-1200'+ : 'hover:bg-scale-400 text-scale-1100',].join(' ')}onClick={() => setFilterType('active')}>@@ -140,9 +140,9 @@ const RolesList = ({}) => {'border border-scale-200 space-y-1',].join(' ')}>- <p className="text-xs text-foreground-light pr-2">Connections by roles:</p>+ <p className="text-xs text-scale-1100 pr-2">Connections by roles:</p>{rolesWithActiveConnections.map((role: PostgresRole) => (- <div key={role.id} className="text-xs text-foreground">+ <div key={role.id} className="text-xs text-scale-1200">{role.name}: {role.active_connections}</div>))}@@ -181,7 +181,7 @@ const RolesList = ({}) => {<div>{supabaseRoles.length > 0 && (<div className="bg-scale-100 dark:bg-scale-200 border border-scale-300 dark:border-scale-500 px-6 py-3 rounded-t flex items-center space-x-4">- <p className="text-sm text-foreground-light">Roles managed by Supabase</p>+ <p className="text-sm text-scale-1100">Roles managed by Supabase</p><Badge color="green">Protected</Badge></div>)}@@ -198,7 +198,7 @@ const RolesList = ({}) => {<div>{otherRoles.length > 0 && (<div className="bg-scale-100 dark:bg-scale-200 border border-scale-300 dark:border-scale-500 px-6 py-3 rounded-t">- <p className="text-sm text-foreground-light">Other database roles</p>+ <p className="text-sm text-scale-1100">Other database roles</p></div>)}{otherRoles.map((role: PostgresRole, i: number) => (diff --git a/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx b/studio/components/interfaces/Database/Schemas/SchemaGraph.tsxindex 573c5dd4673..4fb1bd23fa6 100644--- a/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx+++ b/studio/components/interfaces/Database/Schemas/SchemaGraph.tsx@@ -18,7 +18,7 @@ import ReactFlow, {} from 'reactflow'import { PostgresTable } from '@supabase/postgres-meta'-import { useTheme } from 'next-themes'+import { useTheme } from 'common/Providers'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import { useTablesQuery } from 'data/tables/tables-query'import 'reactflow/dist/style.css'@@ -301,12 +301,11 @@ function TableNode({ data, targetPosition, sourcePosition }: NodeProps<TableNode}const TablesGraph = ({ tables }: { tables: PostgresTable[] }) => {- const { theme } = useTheme()- const backgroundPatternColor = theme === 'dark' ? '#2e2e2e' : '#e6e8eb'- const edgeStrokeColor = theme === 'dark' ? '#ededed' : '#111318'-+ const { isDarkMode } = useTheme()+ const backgroundPatternColor = isDarkMode ? '#2e2e2e' : '#e6e8eb'+ const edgeStrokeColor = isDarkMode ? '#ededed' : '#111318'const miniMapNodeColor = '#111318'- const miniMapMaskColor = theme === 'dark' ? 'rgb(17, 19, 24, .8)' : 'rgb(237, 237, 237, .8)'+ const miniMapMaskColor = isDarkMode ? 'rgb(17, 19, 24, .8)' : 'rgb(237, 237, 237, .8)'const reactFlowInstance = useReactFlow()const nodeTypes = useMemo(@@ -322,7 +321,7 @@ const TablesGraph = ({ tables }: { tables: PostgresTable[] }) => {reactFlowInstance.setEdges(edges)setTimeout(() => reactFlowInstance.fitView({})) // it needs to happen during next event tick})- }, [tables, theme])+ }, [tables, isDarkMode])return (<>@@ -375,14 +374,14 @@ const SchemaGraph = ({ schema }: { schema: string }) => {return (<div className="flex h-full w-full items-center justify-center space-x-2"><IconLoader className="animate-spin" size={14} />- <p className="text-sm text-foreground-light">Loading table...</p>+ <p className="text-sm text-scale-1000">Loading table...</p></div>)}if (isError) {return (- <div className="px-6 py-4 text-foreground-light">+ <div className="px-6 py-4 text-scale-1000"><p>Error connecting to API</p><p>{`${error?.message ?? 'Unknown error'}`}</p></div>diff --git a/studio/components/interfaces/Database/Tables/ColumnList.tsx b/studio/components/interfaces/Database/Tables/ColumnList.tsxindex 7bef9790a04..05e06cead8b 100644--- a/studio/components/interfaces/Database/Tables/ColumnList.tsx+++ b/studio/components/interfaces/Database/Tables/ColumnList.tsx@@ -49,9 +49,9 @@ const ColumnList = ({<><div className="mb-4 flex items-center space-x-2"><div className="flex items-center space-x-2">- <h3 className="mb-1 text-xl text-foreground">Database Tables</h3>+ <h3 className="mb-1 text-xl text-scale-1200">Database Tables</h3><IconChevronRight strokeWidth={1.5} className="text-light" />- <h3 className="mb-1 text-xl text-foreground">{selectedTable.name}</h3>+ <h3 className="mb-1 text-xl text-scale-1200">{selectedTable.name}</h3></div></div>@@ -99,7 +99,7 @@ const ColumnList = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to create columns</span></div>@@ -169,7 +169,7 @@ const ColumnList = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to edit columns</span></div>@@ -198,7 +198,7 @@ const ColumnList = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to delete columns</span></div>diff --git a/studio/components/interfaces/Database/Tables/TableList.tsx b/studio/components/interfaces/Database/Tables/TableList.tsxindex 3de74dded2f..a6a015a0be4 100644--- a/studio/components/interfaces/Database/Tables/TableList.tsx+++ b/studio/components/interfaces/Database/Tables/TableList.tsx@@ -7,7 +7,6 @@ import { useState } from 'react'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import NoSearchResults from 'components/to-be-cleaned/NoSearchResults'import Table from 'components/to-be-cleaned/Table'-import AlertError from 'components/ui/AlertError'import ShimmeringLoader, { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import { useSchemasQuery } from 'data/database/schemas-query'import { useTablesQuery } from 'data/tables/tables-query'@@ -26,6 +25,7 @@ import {Input,Listbox,} from 'ui'+import AlertError from 'components/ui/AlertError'interface TableListProps {onAddTable: () => void@@ -91,7 +91,7 @@ const TableList = ({return (<><div className="mb-4">- <h3 className="mb-1 text-xl text-foreground">Database Tables</h3>+ <h3 className="mb-1 text-xl text-scale-1200">Database Tables</h3></div><div className="flex items-center justify-between">@@ -118,9 +118,9 @@ const TableList = ({key={schema.id}value={schema.name}label={schema.name}- addOnBefore={() => <span className="text-foreground-lighter">schema</span>}+ addOnBefore={() => <span className="text-scale-900">schema</span>}>- <span className="text-foreground text-sm">{schema.name}</span>+ <span className="text-scale-1200 text-sm">{schema.name}</span></Listbox.Option>))}<Listbox.Option@@ -136,9 +136,9 @@ const TableList = ({key={schema.id}value={schema.name}label={schema.name}- addOnBefore={() => <span className="text-foreground-lighter">schema</span>}+ addOnBefore={() => <span className="text-scale-900">schema</span>}>- <span className="text-foreground text-sm">{schema.name}</span>+ <span className="text-scale-1200 text-sm">{schema.name}</span></Listbox.Option>))}</Listbox>@@ -177,7 +177,7 @@ const TableList = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to create tables</span></div>@@ -224,7 +224,7 @@ const TableList = ({{tables.length === 0 && filterString.length === 0 && (<Table.tr key={snap.selectedSchemaName}><Table.td colSpan={6}>- <p className="text-sm text-foreground">No tables created yet</p>+ <p className="text-sm text-scale-1200">No tables created yet</p><p className="text-sm text-light">There are no tables found in the schema "{snap.selectedSchemaName}"</p>@@ -234,7 +234,7 @@ const TableList = ({{tables.length === 0 && filterString.length > 0 && (<Table.tr key={snap.selectedSchemaName}><Table.td colSpan={6}>- <p className="text-sm text-foreground">No results found</p>+ <p className="text-sm text-scale-1200">No results found</p><p className="text-sm text-light">Your search for "{filterString}" did not return any results</p>@@ -303,7 +303,7 @@ const TableList = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to edit tables</span></div>@@ -332,7 +332,7 @@ const TableList = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to delete tables</span></div>diff --git a/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx b/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsxindex 6e111b7eb4d..0ea6fd334c1 100644--- a/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx+++ b/studio/components/interfaces/Database/Triggers/ChooseFunctionForm.tsx@@ -1,13 +1,13 @@+import { createContext, useContext, useState } from 'react'+import { useRouter } from 'next/router'+import { observer, useLocalObservable } from 'mobx-react-lite'+import { uniqBy, map as lodashMap } from 'lodash'import { Transition } from '@headlessui/react'+import { Button, IconChevronDown, IconHelpCircle, IconTerminal, SidePanel } from 'ui'import { Dictionary } from 'components/grid'+import SqlEditor from 'components/ui/SqlEditor'import ProductEmptyState from 'components/to-be-cleaned/ProductEmptyState'import InformationBox from 'components/ui/InformationBox'-import SqlEditor from 'components/ui/SqlEditor'-import { map as lodashMap, uniqBy } from 'lodash'-import { observer, useLocalObservable } from 'mobx-react-lite'-import { useRouter } from 'next/router'-import { createContext, useContext, useState } from 'react'-import { Button, IconChevronDown, IconHelpCircle, IconTerminal, SidePanel } from 'ui'interface IChooseFunctionFormStore {functionSchemas: string[]@@ -112,7 +112,7 @@ const NoFunctionsState = ({}) => {router.push(`/project/${ref}/database/functions`)}}>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">You will need to create a trigger based function before you can add it to your trigger.</p></ProductEmptyState>@@ -130,7 +130,7 @@ const SchemaFunctionGroup = observer(({ schema, selectFunction }: SchemaFunctionreturn (<div className="space-y-4"><div className="sticky top-0 flex items-center space-x-1 px-6 backdrop-blur backdrop-filter">- <h5 className="text-foreground-light">schema</h5>+ <h5 className="text-scale-1000">schema</h5><h5>{schema}</h5></div><div className="space-y-0 divide-y border-t border-b dark:divide-dark dark:border-dark">diff --git a/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx b/studio/components/interfaces/Database/Triggers/CreateTrigger.tsxindex 930caa82de7..ab6475a5c3f 100644--- a/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx+++ b/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx@@ -12,7 +12,6 @@ import NoTableState from 'components/ui/States/NoTableState'import { useTablesQuery } from 'data/tables/tables-query'import { useStore } from 'hooks'import { BASE_PATH } from 'lib/constants'-import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'import {Badge,Button,@@ -26,6 +25,7 @@ import {SidePanel,} from 'ui'import ChooseFunctionForm from './ChooseFunctionForm'+import { EXCLUDED_SCHEMAS } from 'lib/constants/schemas'class CreateTriggerFormState {id: number | undefined@@ -404,7 +404,7 @@ const CreateTrigger = ({ trigger, visible, setVisible }: CreateTriggerProps) =>}}><Modal.Content>- <p className="py-4 text-sm text-foreground-light">+ <p className="py-4 text-sm text-scale-1100">There are unsaved changes. Are you sure you want to close the panel? Your changeswill be lost.</p>@@ -470,7 +470,7 @@ const SelectEnabledMode = observer(({}) => {label="Origin">Origin- <span className="block text-foreground-lighter">This is a default behaviour</span>+ <span className="block text-scale-900">This is a default behaviour</span></Listbox.Option><Listbox.OptionaddOnBefore={({ active, selected }: any) => {@@ -482,7 +482,7 @@ const SelectEnabledMode = observer(({}) => {label="Replica">Replica- <span className="block text-foreground-lighter">+ <span className="block text-scale-900">Will only fire if the session is in “replica” mode</span></Listbox.Option>@@ -496,7 +496,7 @@ const SelectEnabledMode = observer(({}) => {label="Always">Always- <span className="block text-foreground-lighter">+ <span className="block text-scale-900">Will fire regardless of the current replication role</span></Listbox.Option>@@ -510,7 +510,7 @@ const SelectEnabledMode = observer(({}) => {label="Disabled">Disabled- <span className="block text-foreground-lighter">Will not fire</span>+ <span className="block text-scale-900">Will not fire</span></Listbox.Option></Listbox>)@@ -535,11 +535,11 @@ const SelectOrientation = observer(({}) => {><Listbox.Option value="ROW" label="Row">Row- <span className="block text-foreground-lighter">fires once for each processed row</span>+ <span className="block text-scale-900">fires once for each processed row</span></Listbox.Option><Listbox.Option value="STATEMENT" label="Statement">Statement- <span className="block text-foreground-lighter">fires once for each statement</span>+ <span className="block text-scale-900">fires once for each statement</span></Listbox.Option></Listbox>)@@ -595,7 +595,7 @@ const ListboxTable = observer(({}) => {)}><div className="flex flex-row items-center space-x-1">- <p className="text-sm text-foreground-light">{x.schema}</p>+ <p className="text-sm text-scale-1000">{x.schema}</p><p className="text">{x.name}</p></div></Listbox.Option>@@ -681,7 +681,7 @@ const ListboxActivation = observer(({}) => {><div className="flex flex-col"><span>{'before'}</span>- <span className="block text-foreground-lighter">+ <span className="block text-scale-900">Trigger fires before the operation is attempted</span></div>@@ -698,7 +698,7 @@ const ListboxActivation = observer(({}) => {><div className="flex flex-col"><span>{'after'}</span>- <span className="block text-foreground-lighter">+ <span className="block text-scale-900">Trigger fires after the operation has completed</span></div>@@ -769,7 +769,7 @@ const FunctionWithArguments = observer(({}) => {<IconTerminal size="small" strokeWidth={2} width={14} /></div><div className="flex items-center gap-2">- <p className="text-foreground-light">{_localState!.formState.functionName.value}</p>+ <p className="text-scale-1000">{_localState!.formState.functionName.value}</p><div><Badge>{_localState!.formState.functionSchema.value}</Badge></div>diff --git a/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx b/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsxindex 3f1d8201281..da009d1c9b3 100644--- a/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx+++ b/studio/components/interfaces/Database/Triggers/TriggersList/TriggerList.tsx@@ -5,10 +5,7 @@ import { observer } from 'mobx-react-lite'import {Badge,Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,IconCheck,IconEdit3,IconMoreVertical,@@ -47,7 +44,7 @@ const TriggerList = ({return (<Table.tr key={schema}><Table.td colSpan={6}>- <p className="text-sm text-foreground">No triggers created yet</p>+ <p className="text-sm text-scale-1200">No triggers created yet</p><p className="text-sm text-light">There are no triggers found in the schema "{schema}"</p></Table.td></Table.tr>@@ -58,7 +55,7 @@ const TriggerList = ({return (<Table.tr key={schema}><Table.td colSpan={5}>- <p className="text-sm text-foreground">No results found</p>+ <p className="text-sm text-scale-1200">No results found</p><p className="text-sm text-light">Your search for "{filterString}" did not return any results</p>@@ -111,31 +108,30 @@ const TriggerList = ({{!isLocked && (<div className="flex items-center justify-end">{canUpdateTriggers ? (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button asChild type="default" icon={<IconMoreVertical />}>- <span></span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="end">+ <Dropdown+ side="bottom"+ align="end"+ overlay={<>- <DropdownMenuItem_Shadcn_- className="space-x-2"+ <Dropdown.Item+ icon={<IconEdit3 size="tiny" />}onClick={() => editTrigger(x)}>- <IconEdit3 size="tiny" />- <p className="text">Edit trigger</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuItem_Shadcn_- className="space-x-2"+ Edit trigger+ </Dropdown.Item>+ <Dropdown.Item+ icon={<IconTrash stroke="red" size="tiny" />}onClick={() => deleteTrigger(x)}>- <IconTrash stroke="red" size="tiny" />- <p className="text">Delete trigger</p>- </DropdownMenuItem_Shadcn_>+ Delete trigger+ </Dropdown.Item></>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ }+ >+ <Button asChild type="default" icon={<IconMoreVertical />}>+ <span></span>+ </Button>+ </Dropdown>) : (<Tooltip.Root delayDuration={0}><Tooltip.Trigger asChild>@@ -150,7 +146,7 @@ const TriggerList = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to update triggers</span></div>diff --git a/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx b/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsxindex 2f4ce037494..9687e6a4afc 100644--- a/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx+++ b/studio/components/interfaces/Database/Triggers/TriggersList/TriggersList.tsx@@ -63,11 +63,11 @@ const TriggersList = ({onClickCta={() => createTrigger()}><AlphaPreview />- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">A PostgreSQL trigger is a function invoked automatically whenever an event associatedwith a table occurs.</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">An event could be any of the following: INSERT, UPDATE, DELETE. A trigger is a specialuser-defined function associated with a table.</p>@@ -98,9 +98,9 @@ const TriggersList = ({key={schema.id}value={schema.name}label={schema.name}- addOnBefore={() => <span className="text-foreground-lighter">schema</span>}+ addOnBefore={() => <span className="text-scale-900">schema</span>}>- <span className="text-foreground text-sm">{schema.name}</span>+ <span className="text-scale-1200 text-sm">{schema.name}</span></Listbox.Option>))}<Listbox.Option@@ -116,9 +116,9 @@ const TriggersList = ({key={schema.id}value={schema.name}label={schema.name}- addOnBefore={() => <span className="text-foreground-lighter">schema</span>}+ addOnBefore={() => <span className="text-scale-900">schema</span>}>- <span className="text-foreground text-sm">{schema.name}</span>+ <span className="text-scale-1200 text-sm">{schema.name}</span></Listbox.Option>))}</Listbox>@@ -148,7 +148,7 @@ const TriggersList = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to create triggers</span></div>diff --git a/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx b/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsxindex fa28dd5bc2c..ae1776db2ba 100644--- a/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx+++ b/studio/components/interfaces/Database/Wrappers/CreateWrapper.tsx@@ -11,19 +11,19 @@ import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectConteimport {FormActions,FormPanel,- FormsContainer,FormSection,FormSectionContent,FormSectionLabel,+ FormsContainer,} from 'components/ui/Forms'import { invalidateSchemasQuery } from 'data/database/schemas-query'import { useFDWCreateMutation } from 'data/fdw/fdw-create-mutation'import { useCheckPermissions, useStore } from 'hooks'import { Button, Form, IconArrowLeft, IconEdit, IconExternalLink, IconTrash, Input } from 'ui'import InputField from './InputField'+import WrapperTableEditor from './WrapperTableEditor'import { WRAPPERS } from './Wrappers.constants'import { makeValidateRequired } from './Wrappers.utils'-import WrapperTableEditor from './WrapperTableEditor'const CreateWrapper = () => {const formId = 'create-wrapper-form'@@ -71,7 +71,7 @@ const CreateWrapper = () => {<div className="flex flex-col items-center justify-center w-full h-full space-y-4"><div className="space-y-2 flex flex-col items-center w-[400px]"><p>Unsupported wrapper type</p>- <p className="text-sm text-center text-foreground-light">+ <p className="text-sm text-center text-scale-1000">The wrapper type {type} not supported by the dashboard. Head back to create a differentwrapper.</p>@@ -138,7 +138,7 @@ const CreateWrapper = () => {</a></Link></div>- <h3 className="mb-2 text-xl text-foreground">Create a {wrapperMeta.label} Wrapper</h3>+ <h3 className="mb-2 text-xl text-scale-1200">Create a {wrapperMeta.label} Wrapper</h3><div className="flex items-center space-x-2"><Link href={wrapperMeta.docsUrl}><a target="_blank" rel="noreferrer">@@ -210,7 +210,7 @@ const CreateWrapper = () => {header={<FormSectionLabel><p>Foreign Tables</p>- <p className="text-foreground-light mt-2 w-[90%]">+ <p className="text-scale-1000 mt-2 w-[90%]">You can query your data from these foreign tables after the wrapper iscreated</p>@@ -235,7 +235,7 @@ const CreateWrapper = () => {<p className="text-sm">{table.schema_name}.{table.table_name}</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">{wrapperMeta.tables[table.index].label}:{' '}{table.columns.map((column: any) => column.name).join(', ')}</p>diff --git a/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx b/studio/components/interfaces/Database/Wrappers/EditWrapper.tsxindex aac33fe70fd..8b2b4324838 100644--- a/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx+++ b/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx@@ -11,10 +11,10 @@ import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectConteimport {FormActions,FormPanel,- FormsContainer,FormSection,FormSectionContent,FormSectionLabel,+ FormsContainer,} from 'components/ui/Forms'import Loading from 'components/ui/Loading'import { invalidateSchemasQuery } from 'data/database/schemas-query'@@ -33,13 +33,13 @@ import {Input,} from 'ui'import InputField from './InputField'+import WrapperTableEditor from './WrapperTableEditor'import { WRAPPERS } from './Wrappers.constants'import {convertKVStringArrayToJson,formatWrapperTables,makeValidateRequired,} from './Wrappers.utils'-import WrapperTableEditor from './WrapperTableEditor'const EditWrapper = () => {const formId = 'edit-wrapper-form'@@ -120,7 +120,7 @@ const EditWrapper = () => {<div className="flex flex-col items-center justify-center w-full h-full space-y-4"><div className="space-y-2 flex flex-col items-center w-[400px]"><p>Unknown wrapper</p>- <p className="text-sm text-center text-foreground-light">+ <p className="text-sm text-center text-scale-1000">The wrapper ID {id} cannot be found in your project. Head back to select anotherwrapper.</p>@@ -189,7 +189,7 @@ const EditWrapper = () => {</a></Link></div>- <h3 className="mb-2 text-xl text-foreground">Edit wrapper: {wrapper.name}</h3>+ <h3 className="mb-2 text-xl text-scale-1200">Edit wrapper: {wrapper.name}</h3><div className="flex items-center space-x-2"><Link href="https://supabase.github.io/wrappers/stripe/"><a target="_blank" rel="noreferrer">@@ -312,7 +312,7 @@ const EditWrapper = () => {header={<FormSectionLabel><p>Foreign Tables</p>- <p className="text-foreground-light mt-2 w-[90%]">+ <p className="text-scale-1000 mt-2 w-[90%]">You can query your data from these foreign tables after the wrapper iscreated</p>@@ -337,7 +337,7 @@ const EditWrapper = () => {<p className="text-sm">{table.schema_name}.{table.table_name}</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">{wrapperMeta.tables[table.index].label}:{' '}{table.columns.map((column: any) => column.name).join(', ')}</p>diff --git a/studio/components/interfaces/Database/Wrappers/InputField.tsx b/studio/components/interfaces/Database/Wrappers/InputField.tsxindex ff44468b970..3eec5cde850 100644--- a/studio/components/interfaces/Database/Wrappers/InputField.tsx+++ b/studio/components/interfaces/Database/Wrappers/InputField.tsx@@ -32,7 +32,7 @@ const InputField = ({ option, loading, error }: InputFieldProps) => {<IconHelpCirclestrokeWidth={2}size={14}- className="text-foreground-light hover:text-foreground cursor-pointer transition"+ className="text-scale-1000 hover:text-scale-1200 cursor-pointer transition"/></a></Link>@@ -60,7 +60,7 @@ const InputField = ({ option, loading, error }: InputFieldProps) => {<IconHelpCirclestrokeWidth={2}size={14}- className="text-foreground-light hover:text-foreground cursor-pointer transition"+ className="text-scale-1000 hover:text-scale-1200 cursor-pointer transition"/></a></Link>diff --git a/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx b/studio/components/interfaces/Database/Wrappers/WrapperRow.tsxindex 2ff3cf2590a..d4460a8bba3 100644--- a/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx+++ b/studio/components/interfaces/Database/Wrappers/WrapperRow.tsx@@ -50,7 +50,7 @@ const WrapperRow = ({<Collapsible.Trigger asChild><buttontype="button"- className="flex items-center justify-between w-full px-6 py-3 rounded group text-foreground"+ className="flex items-center justify-between w-full px-6 py-3 rounded group text-scale-1200"><div className="flex items-center gap-3"><IconChevronUp@@ -67,14 +67,14 @@ const WrapperRow = ({<span className="text-sm capitalize">{wrapperMeta.label}</span></div><div className="flex items-center gap-3">- <div className="px-3 py-1 text-xs border rounded-md border-scale-500 bg-scale-100 text-foreground dark:border-scale-700 dark:bg-scale-300">+ <div className="px-3 py-1 text-xs border rounded-md border-scale-500 bg-scale-100 text-scale-1200 dark:border-scale-700 dark:bg-scale-300">{wrappers.length} wrapper{wrappers.length > 1 ? 's' : ''}</div></div></button></Collapsible.Trigger><Collapsible.Content>- <div className="border-t group border-scale-500 bg-scale-100 text-foreground dark:bg-scale-300 divide-y">+ <div className="border-t group border-scale-500 bg-scale-100 text-scale-1200 dark:bg-scale-300 divide-y">{wrappers.map((wrapper) => {const serverOptions = Object.fromEntries(wrapper.server_options.map((option: any) => option.split('='))@@ -93,7 +93,7 @@ const WrapperRow = ({{visibleMetadata.map((metadata) => (<divkey={metadata.name}- className="flex items-center space-x-2 text-sm text-foreground-light"+ className="flex items-center space-x-2 text-sm text-scale-1000"><p>{metadata.label}:</p><p>{serverOptions[metadata.name]}</p>@@ -101,11 +101,11 @@ const WrapperRow = ({))}{encryptedMetadata.map((metadata) => (<div key={metadata.name} className="flex items-center space-x-2 text-sm">- <p className="text-foreground-light">{metadata.label}:</p>+ <p className="text-scale-1000">{metadata.label}:</p><Linkhref={`/project/${ref}/settings/vault/secrets?search=${wrapper.name}_${metadata.name}`}>- <a className="transition text-foreground-light hover:text-foreground flex items-center space-x-2">+ <a className="transition text-scale-1000 hover:text-scale-1100 flex items-center space-x-2"><span>Encrypted in Vault</span><IconExternalLink size={14} strokeWidth={1.5} /></a>@@ -113,7 +113,7 @@ const WrapperRow = ({</div>))}<div className="!mt-3 space-y-1">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Foreign tables{wrapper.tables && `: (${wrapper.tables.length})`}</p><div className="flex flex-wrap gap-2">@@ -131,7 +131,7 @@ const WrapperRow = ({</Link>))) : (- <p className="text-sm text-foreground-light">No tables available</p>+ <p className="text-sm text-scale-1100">No tables available</p>)}</div></div>@@ -167,7 +167,7 @@ const WrapperRow = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to edit wrappers</span></div>@@ -196,7 +196,7 @@ const WrapperRow = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to add wrappers</span></div>diff --git a/studio/components/interfaces/Database/Wrappers/Wrappers.tsx b/studio/components/interfaces/Database/Wrappers/Wrappers.tsxindex 4df6da43ad1..6a2816aefe1 100644--- a/studio/components/interfaces/Database/Wrappers/Wrappers.tsx+++ b/studio/components/interfaces/Database/Wrappers/Wrappers.tsx@@ -43,8 +43,8 @@ const Wrappers = () => {<div><div className="flex items-center justify-between mb-6"><div>- <h3 className="mb-1 text-xl text-foreground">Foreign Data Wrappers</h3>- <div className="text-sm text-foreground-lighter">+ <h3 className="mb-1 text-xl text-scale-1200">Foreign Data Wrappers</h3>+ <div className="text-sm text-scale-900">Query your data warehouse directly from your database, or third-party APIs using SQL.</div></div>diff --git a/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx b/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsxindex 51ee54fabbc..2fc27512e7e 100644--- a/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx+++ b/studio/components/interfaces/Database/Wrappers/WrappersDisabledState.tsx@@ -1,19 +1,19 @@-import * as Tooltip from '@radix-ui/react-tooltip'-import { PermissionAction } from '@supabase/shared-types/out/constants'-import { observer } from 'mobx-react-lite'import Link from 'next/link'import { useState } from 'react'import { Button, IconExternalLink } from 'ui'+import { observer } from 'mobx-react-lite'+import * as Tooltip from '@radix-ui/react-tooltip'+import { PermissionAction } from '@supabase/shared-types/out/constants'-import { useTheme } from 'next-themes'import { useCheckPermissions, useStore } from 'hooks'import { useParams } from 'common/hooks'import { BASE_PATH } from 'lib/constants'+import { useTheme } from 'common'const WrappersDisabledState = () => {const { ui, meta } = useStore()const { ref } = useParams()- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const wrappersExtension = meta.extensions.byId('wrappers')const vaultExtension = meta.extensions.byId('supabase_vault')const isNotAvailable = wrappersExtension === undefined || vaultExtension === undefined@@ -71,16 +71,15 @@ const WrappersDisabledState = () => {style={{backgroundSize: '45%',backgroundPosition: '105% 40%',- backgroundImage:- theme === 'dark'- ? `url("${BASE_PATH}/img/wrappers-dark.png")`- : `url("${BASE_PATH}/img/wrappers-light.png")`,+ backgroundImage: isDarkMode+ ? `url("${BASE_PATH}/img/wrappers-dark.png")`+ : `url("${BASE_PATH}/img/wrappers-light.png")`,}}><div className="w-3/5 space-y-8"><div className="space-y-2"><h4 className="text-lg">Supabase Wrappers</h4>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Supabase Wrappers is a framework for building Postgres Foreign Data Wrappers (FDW)which connect Postgres to external systems. Query your data warehouse or third-partyAPIs directly from your database.@@ -90,10 +89,10 @@ const WrappersDisabledState = () => {<div className="space-y-4"><div className="rounded border border-scale-500 px-4 py-2 flex items-center justify-between"><div>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1100 text-sm">Wrappers is not available for this project yet.</p>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1000 text-sm">Do reach out to us if you're interested!</p></div>@@ -147,7 +146,7 @@ const WrappersDisabledState = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to enable Wrappers for this project</span></div>diff --git a/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx b/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsxindex cbbf548ef5b..a44288c5a94 100644--- a/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx+++ b/studio/components/interfaces/Database/Wrappers/WrappersDropdown.tsx@@ -4,15 +4,7 @@ import { observer } from 'mobx-react-lite'import Image from 'next/image'import Link from 'next/link'import { Fragment } from 'react'-import {- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconPlus,-} from 'ui'+import { Button, Dropdown, IconPlus } from 'ui'import { useParams } from 'common/hooks'import { useCheckPermissions } from 'hooks'@@ -44,7 +36,7 @@ const WrapperDropdown = ({ buttonText = 'Add wrapper', align = 'end' }: WrapperD'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to add wrappers</span></div>@@ -55,33 +47,43 @@ const WrapperDropdown = ({ buttonText = 'Add wrapper', align = 'end' }: WrapperD}return (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button type="primary" icon={<IconPlus strokeWidth={1.5} />}>- {buttonText}- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align={align}>- {WRAPPERS.map((wrapper, idx) => (- <Fragment key={idx}>- <Link href={`/project/${ref}/database/wrappers/new?type=${wrapper.name.toLowerCase()}`}>- <a>- <DropdownMenuItem_Shadcn_ key={wrapper.name} className="space-x-2">- <Image- src={wrapper.icon}- width={20}- height={20}- alt={`${wrapper.name} wrapper icon`}- />- <p className="text">{wrapper.label}</p>- </DropdownMenuItem_Shadcn_>- </a>- </Link>- {idx !== WRAPPERS.length - 1 && <DropdownMenuSeparator_Shadcn_ />}- </Fragment>- ))}- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown+ side="bottom"+ align={align}+ size="small"+ overlay={+ <>+ {WRAPPERS.map((wrapper, idx) => (+ <Fragment key={idx}>+ <Link+ href={`/project/${ref}/database/wrappers/new?type=${wrapper.name.toLowerCase()}`}+ >+ <a>+ <Dropdown.Item+ key={wrapper.name}+ icon={+ <Image+ src={wrapper.icon}+ width={20}+ height={20}+ alt={`${wrapper.name} wrapper icon`}+ />+ }+ >+ {wrapper.label}+ </Dropdown.Item>+ </a>+ </Link>+ {idx !== WRAPPERS.length - 1 && <Dropdown.Separator />}+ </Fragment>+ ))}+ </>+ }+ >+ <Button type="primary" icon={<IconPlus strokeWidth={1.5} />}>+ {buttonText}+ </Button>+ </Dropdown>)}diff --git a/studio/components/interfaces/Docs/Description.tsx b/studio/components/interfaces/Docs/Description.tsxindex e308488d9b4..a4f686417a2 100644--- a/studio/components/interfaces/Docs/Description.tsx+++ b/studio/components/interfaces/Docs/Description.tsx@@ -78,7 +78,7 @@ const Description = ({ content, metadata, onChange = noop }: DescrptionProps) =>if (!canUpdateDescription) {return (- <span className={`block ${value ? 'text-foreground' : ''}`}>{value || 'No description'}</span>+ <span className={`block ${value ? 'text-scale-1200' : ''}`}>{value || 'No description'}</span>)}diff --git a/studio/components/interfaces/Docs/GeneratingTypes.tsx b/studio/components/interfaces/Docs/GeneratingTypes.tsxindex 8f9f787d275..dc1ea1347e3 100644--- a/studio/components/interfaces/Docs/GeneratingTypes.tsx+++ b/studio/components/interfaces/Docs/GeneratingTypes.tsx@@ -86,7 +86,7 @@ export default function GeneratingTypes({ selectedLang }: Props) {</Button>)}</p>- <p className="text-xs text-center text-foreground-light bg-scale-200 p-4">+ <p className="text-xs text-center text-scale-1100 bg-scale-200 p-4">Remember to re-generate and download this file as you make changes to your tables.</p></div>diff --git a/studio/components/interfaces/Docs/LangSelector.tsx b/studio/components/interfaces/Docs/LangSelector.tsxindex e37b2714a53..2d89f836c53 100644--- a/studio/components/interfaces/Docs/LangSelector.tsx+++ b/studio/components/interfaces/Docs/LangSelector.tsx@@ -1,13 +1,6 @@import { PermissionAction } from '@supabase/shared-types/out/constants'import { useCheckPermissions } from 'hooks'-import {- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconKey,-} from 'ui'+import { Button, Dropdown, IconKey } from 'ui'import { showApiKey } from 'components/interfaces/Docs/Docs.types'@@ -43,9 +36,9 @@ const LangSelector = ({onClick={() => setSelectedLang('js')}className={`${selectedLang == 'js'- ? 'bg-scale-300 font-medium text-foreground dark:bg-scale-200'- : 'bg-scale-100 text-foreground-lighter dark:bg-scale-100'- } relative inline-flex items-center border-r border-scale-200 p-1 px-2 text-sm transition hover:text-foreground focus:outline-none`}+ ? 'bg-scale-300 font-medium text-scale-1200 dark:bg-scale-200'+ : 'bg-scale-100 text-scale-900 dark:bg-scale-100'+ } relative inline-flex items-center border-r border-scale-200 p-1 px-2 text-sm transition hover:text-scale-1200 focus:outline-none`}>JavaScript</button>@@ -54,29 +47,29 @@ const LangSelector = ({onClick={() => setSelectedLang('bash')}className={`${selectedLang == 'bash'- ? 'bg-scale-300 font-medium text-foreground dark:bg-scale-200'- : 'bg-scale-100 text-foreground-lighter dark:bg-scale-100'- } relative inline-flex items-center border-r border-scale-200 p-1 px-2 text-sm transition hover:text-foreground focus:outline-none`}+ ? 'bg-scale-300 font-medium text-scale-1200 dark:bg-scale-200'+ : 'bg-scale-100 text-scale-900 dark:bg-scale-100'+ } relative inline-flex items-center border-r border-scale-200 p-1 px-2 text-sm transition hover:text-scale-1200 focus:outline-none`}>Bash</button>{selectedLang == 'bash' && (<div className="flex">- <div className="flex items-center gap-2 p-1 pl-2 text-xs text-foreground-lighter">+ <div className="flex items-center gap-2 p-1 pl-2 text-xs text-scale-900"><IconKey size={12} strokeWidth={1.5} /><span>Project API key :</span></div>- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button type="default">{showApiKey.name}</Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ align="end" side="bottom">+ <Dropdown+ align="end"+ side="bottom"+ className="cursor-pointer border-none bg-transparent p-0 pl-2 pr-8 text-sm text-scale-900"+ overlay={<>- <DropdownMenuItem_Shadcn_ key="hide" onClick={() => setShowApiKey(DEFAULT_KEY)}>+ <Dropdown.Item key="hide" onClick={() => setShowApiKey(DEFAULT_KEY)}>hide- </DropdownMenuItem_Shadcn_>+ </Dropdown.Item>{apiKey && (- <DropdownMenuItem_Shadcn_+ <Dropdown.Itemkey="anon"onClick={() =>setShowApiKey({@@ -85,11 +78,11 @@ const LangSelector = ({})}>- <p className="text">anon (public)</p>- </DropdownMenuItem_Shadcn_>+ anon (public)+ </Dropdown.Item>)}{canReadServiceKey && (- <DropdownMenuItem_Shadcn_+ <Dropdown.Itemkey="service"onClick={() =>setShowApiKey({@@ -98,12 +91,14 @@ const LangSelector = ({})}>- <p className="text">service_role (secret)</p>- </DropdownMenuItem_Shadcn_>+ service_role (secret)+ </Dropdown.Item>)}</>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ }+ >+ <Button type="default">{showApiKey.name}</Button>+ </Dropdown></div>)}</div>diff --git a/studio/components/interfaces/Docs/Param.tsx b/studio/components/interfaces/Docs/Param.tsxindex 4a97f170848..15aba34245b 100644--- a/studio/components/interfaces/Docs/Param.tsx+++ b/studio/components/interfaces/Docs/Param.tsx@@ -46,12 +46,12 @@ const Param = ({<div className="mb-4 flex items-center justify-between "><div className="flex gap-2 items-center"><div className="flex items-center gap-2">- <label className="font-mono text-xs uppercase text-foreground-lighter min-w-[55px]">+ <label className="font-mono text-xs uppercase text-scale-900 min-w-[55px]">Column</label><div className="flex items-center gap-4">- <span className="text-md text-foreground pb-0.5">{name}</span>+ <span className="text-md text-scale-1200 pb-0.5">{name}</span></div></div></div>@@ -61,11 +61,9 @@ const Param = ({{format && (<div className="grid gap-2 mt-6"><div className="mb-4 flex items-center gap-2">- <label className="font-mono text-xs uppercase text-foreground-lighter min-w-[55px]">- Type- </label>+ <label className="font-mono text-xs uppercase text-scale-900 min-w-[55px]">Type</label><div>- <span className="flex grow-0 bg-slate-300 px-2 py-0.5 rounded-md text-foreground-light">+ <span className="flex grow-0 bg-slate-300 px-2 py-0.5 rounded-md text-scale-1000"><span className="flex items-center gap-2 text-sm"><IconCode size="tiny" /><span>{getColumnType(type, format)}</span>@@ -74,11 +72,11 @@ const Param = ({</div></div><div className="mb-4 flex items-center gap-2">- <label className="font-mono text-xs uppercase text-foreground-lighter min-w-[55px]">+ <label className="font-mono text-xs uppercase text-scale-900 min-w-[55px]">Format</label><div>- <span className="flex grow-0 bg-slate-300 px-2 py-0.5 rounded-md text-foreground-light">+ <span className="flex grow-0 bg-slate-300 px-2 py-0.5 rounded-md text-scale-1000"><span className="flex items-center gap-2 text-sm"><IconDatabase size="tiny" /><span>{format}</span>@@ -90,7 +88,7 @@ const Param = ({)}{description !== false && (<div className="grid gap-2 mt-2">- <label className="font-mono text-xs uppercase text-foreground-lighter">Description</label>+ <label className="font-mono text-xs uppercase text-scale-900">Description</label><Descriptioncontent={description?.toString()}metadata={metadata}diff --git a/studio/components/interfaces/Docs/ResourceContent.tsx b/studio/components/interfaces/Docs/ResourceContent.tsxindex 9078375a44d..3b86b547524 100644--- a/studio/components/interfaces/Docs/ResourceContent.tsx+++ b/studio/components/interfaces/Docs/ResourceContent.tsx@@ -40,7 +40,7 @@ const ResourceContent = ({return (<>- <h2 className="doc-section__table-name text-foreground mt-0 flex items-center px-6 gap-2">+ <h2 className="doc-section__table-name text-scale-1200 mt-0 flex items-center px-6 gap-2"><span className="bg-slate-300 dark:bg-slate-400 p-2 rounded-lg"><IconTable size="small" /></span>@@ -49,7 +49,7 @@ const ResourceContent = ({<div className="doc-section"><article className="text">- <label className="font-mono text-xs uppercase text-foreground-lighter inline-block mb-2">+ <label className="font-mono text-xs uppercase text-scale-900 inline-block mb-2">Description</label><Description@@ -97,7 +97,7 @@ const ResourceContent = ({)}{methods.includes('GET') && (<>- <h3 className="text-foreground mt-4 px-6">Read rows</h3>+ <h3 className="text-scale-1200 mt-4 px-6">Read rows</h3><div className="doc-section"><article className="text "><p>@@ -161,7 +161,7 @@ const ResourceContent = ({)}{methods.includes('POST') && (<>- <h3 className="text-foreground mt-4 px-6">Insert rows</h3>+ <h3 className="text-scale-1200 mt-4 px-6">Insert rows</h3><div className="doc-section"><article className="text "><p>@@ -200,7 +200,7 @@ const ResourceContent = ({)}{methods.includes('PATCH') && (<>- <h3 className="text-foreground mt-4 px-6">Update rows</h3>+ <h3 className="text-scale-1200 mt-4 px-6">Update rows</h3><div className="doc-section"><article className="text "><p>@@ -232,7 +232,7 @@ const ResourceContent = ({)}{methods.includes('DELETE') && (<>- <h3 className="text-foreground mt-4 px-6">Delete rows</h3>+ <h3 className="text-scale-1200 mt-4 px-6">Delete rows</h3><div className="doc-section"><article className="text "><p>@@ -260,7 +260,7 @@ const ResourceContent = ({)}{(methods.includes('DELETE') || methods.includes('POST') || methods.includes('PATCH')) && (<>- <h3 className="text-foreground mt-4 px-6">Subscribe to changes</h3>+ <h3 className="text-scale-1200 mt-4 px-6">Subscribe to changes</h3><div className="doc-section"><article className="text "><p>diff --git a/studio/components/interfaces/Docs/RpcContent.tsx b/studio/components/interfaces/Docs/RpcContent.tsxindex d9b972a328f..4ae7a1b0f89 100644--- a/studio/components/interfaces/Docs/RpcContent.tsx+++ b/studio/components/interfaces/Docs/RpcContent.tsx@@ -1,7 +1,7 @@+import Snippets from 'components/interfaces/Docs/Snippets'import CodeSnippet from 'components/interfaces/Docs/CodeSnippet'-import Description from 'components/interfaces/Docs/Description'import Param from 'components/interfaces/Docs/Param'-import Snippets from 'components/interfaces/Docs/Snippets'+import Description from 'components/interfaces/Docs/Description'/*** TODO: need to support rpc with the same name and different params type@@ -36,13 +36,13 @@ const RpcContent = ({return (<>- <h2 className="text-foreground mt-0">+ <h2 className="text-scale-1200 mt-0"><span className="px-6 text-2xl">{meta.id}</span></h2><div className="doc-section"><article className="text ">- <label className="font-mono text-xs uppercase text-foreground-lighter">Description</label>+ <label className="font-mono text-xs uppercase text-scale-900">Description</label><Description content={summary} metadata={{ rpc: rpcId }} onChange={refreshDocs} /></article><article className="code">@@ -61,7 +61,7 @@ const RpcContent = ({</div>{rpcParams.length > 0 && (<div>- <h3 className="text-foreground mt-0 px-6 capitalize">Function Arguments</h3>+ <h3 className="text-scale-1200 mt-0 px-6 capitalize">Function Arguments</h3>{rpcParams.map((x, i) => {return (<div key={i} className="doc-section">diff --git a/studio/components/interfaces/Functions/CommandRender.tsx b/studio/components/interfaces/Functions/CommandRender.tsxindex fede05f8ecf..c56be3351b5 100644--- a/studio/components/interfaces/Functions/CommandRender.tsx+++ b/studio/components/interfaces/Functions/CommandRender.tsx@@ -1,5 +1,5 @@-import { useState } from 'react'import { IconCheck, IconClipboard } from 'ui'+import { useState } from 'react'const CommandRender = ({ commands }: any) => {return (@@ -17,15 +17,15 @@ const Command = ({ item }: any) => {const [isCopied, setIsCopied] = useState(false)return (<div className="space-y-1">- <span className="font-mono text-sm text-foreground-lighter">{`> ${item.comment}`}</span>+ <span className="font-mono text-sm text-scale-900">{`> ${item.comment}`}</span><div className="flex items-center gap-2">- <div className="flex gap-2 font-mono text-sm font-normal text-foreground">- <span className="text-foreground-lighter">$</span>+ <div className="flex gap-2 font-mono text-sm font-normal text-scale-1200">+ <span className="text-scale-900">$</span><span><span className="">{item.jsx ? item.jsx() : null} </span><buttontype="button"- className="text-foreground-lighter hover:text-foreground"+ className="text-scale-900 hover:text-scale-1200"onClick={() => {function onCopy(value: any) {setIsCopied(true)diff --git a/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx b/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsxindex 49f75659756..48fcd0ee1ed 100644--- a/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx+++ b/studio/components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx@@ -192,7 +192,7 @@ const EdgeFunctionDetails = () => {for this function</p></div>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Import maps allow the use of bare specifiers in functions instead ofexplicit import URLs</p>@@ -220,7 +220,7 @@ const EdgeFunctionDetails = () => {><div className="flex items-center justify-between"><div className="flex items-center space-x-3">- <div className="flex h-8 w-8 items-center justify-center rounded border bg-scale-1200 p-2 text-scale-100 dark:bg-scale-100 dark:text-foreground">+ <div className="flex h-8 w-8 items-center justify-center rounded border bg-scale-1200 p-2 text-scale-100 dark:bg-scale-100 dark:text-scale-1200"><IconTerminal strokeWidth={2} /></div><h4>Command line access</h4>@@ -275,7 +275,7 @@ const EdgeFunctionDetails = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to delete an edge function</span></div>diff --git a/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx b/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsxindex 1db79118c12..c2d9dfc012d 100644--- a/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx+++ b/studio/components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecrets.tsx@@ -43,8 +43,8 @@ const EdgeFunctionSecrets = () => {return (<><div>- <h3 className="mb-2 text-xl text-foreground">Edge Function Secrets Management</h3>- <div className="text-sm text-foreground-lighter">+ <h3 className="mb-2 text-xl text-scale-1200">Edge Function Secrets Management</h3>+ <div className="text-sm text-scale-900">Manage the secrets for your project's edge functions</div></div>@@ -93,7 +93,7 @@ const EdgeFunctionSecrets = () => {) : secrets.length === 0 && searchString.length > 0 ? (<Table.tr><Table.td colSpan={3}>- <p className="text-sm text-foreground">No results found</p>+ <p className="text-sm text-scale-1200">No results found</p><p className="text-sm text-light">Your search for "{searchString}" did not return any results</p>@@ -102,7 +102,7 @@ const EdgeFunctionSecrets = () => {) : (<Table.tr><Table.td colSpan={3}>- <p className="text-sm text-foreground">No secrets created</p>+ <p className="text-sm text-scale-1200">No secrets created</p><p className="text-sm text-light">There are no secrets associated with your project yet</p>diff --git a/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx b/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsxindex feea28fb20f..cc40c235b31 100644--- a/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx+++ b/studio/components/interfaces/Functions/EdgeFunctionsListItem.tsx@@ -7,8 +7,8 @@ import { IconCheck, IconClipboard } from 'ui'import { useParams } from 'common/hooks'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import Table from 'components/to-be-cleaned/Table'-import { useCustomDomainsQuery } from 'data/custom-domains/custom-domains-query'import { EdgeFunctionsResponse } from 'data/edge-functions/edge-functions-query'+import { useCustomDomainsQuery } from 'data/custom-domains/custom-domains-query'interface EdgeFunctionsListItemProps {function: EdgeFunctionsResponse@@ -42,15 +42,15 @@ const EdgeFunctionsListItem = ({ function: item }: EdgeFunctionsListItemProps) =><Table.td className=""><div className="flex items-center gap-2">- <p className="text-sm text-foreground">{item.name}</p>+ <p className="text-sm text-scale-1200">{item.name}</p></div></Table.td><Table.td className="">- <div className="text-xs text-foreground-light flex gap-2 items-center truncate">+ <div className="text-xs text-scale-1100 flex gap-2 items-center truncate"><p className="font-mono truncate hidden md:inline">{endpoint}</p><buttontype="button"- className="text-foreground-lighter hover:text-foreground transition"+ className="text-scale-900 hover:text-scale-1200 transition"onClick={(event: any) => {function onCopy(value: any) {setIsCopied(true)@@ -78,15 +78,13 @@ const EdgeFunctionsListItem = ({ function: item }: EdgeFunctionsListItemProps) =</div></Table.td><Table.td className="hidden 2xl:table-cell">- <p className="text-foreground-light">- {dayjs(item.created_at).format('DD MMM, YYYY HH:mm')}- </p>+ <p className="text-scale-1100">{dayjs(item.created_at).format('DD MMM, YYYY HH:mm')}</p></Table.td><Table.td className="lg:table-cell"><Tooltip.Root delayDuration={0}><Tooltip.Trigger><div className="flex items-center space-x-2">- <p className="text-sm text-foreground-light">{dayjs(item.updated_at).fromNow()}</p>+ <p className="text-sm text-scale-1000">{dayjs(item.updated_at).fromNow()}</p></div></Tooltip.Trigger><Tooltip.Portal>@@ -98,7 +96,7 @@ const EdgeFunctionsListItem = ({ function: item }: EdgeFunctionsListItemProps) ='border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">Last updated on {dayjs(item.updated_at).format('DD MMM, YYYY HH:mm')}</span></div>@@ -107,7 +105,7 @@ const EdgeFunctionsListItem = ({ function: item }: EdgeFunctionsListItemProps) =</Tooltip.Root></Table.td><Table.td className="lg:table-cell">- <p className="text-foreground-light">{item.version}</p>+ <p className="text-scale-1100">{item.version}</p></Table.td></Table.tr>)diff --git a/studio/components/interfaces/Functions/FunctionsEmptyState.tsx b/studio/components/interfaces/Functions/FunctionsEmptyState.tsxindex c28db55ccb4..0e55b1d6103 100644--- a/studio/components/interfaces/Functions/FunctionsEmptyState.tsx+++ b/studio/components/interfaces/Functions/FunctionsEmptyState.tsx@@ -7,10 +7,10 @@ const FunctionsEmptyState = () => {<><div className="grid max-w-7xl gap-y-12 py-12 lg:grid-cols-12 lg:gap-x-16"><div className="col-span-5 space-y-4">- <p className="max-w-lg text-base text-foreground">+ <p className="max-w-lg text-base text-scale-1200">Scalable functions to run your code with no server management.</p>- <p className="max-w-lg text-sm text-foreground-light">+ <p className="max-w-lg text-sm text-scale-1100">Edge Functions are server-side Typescript functions, distributed globally at the edge -close to your users. They can be used for listening to webhooks or integrating yourSupabase project with third-parties.diff --git a/studio/components/interfaces/Functions/TerminalInstructions.tsx b/studio/components/interfaces/Functions/TerminalInstructions.tsxindex 80b77bbc185..216a4c6faa7 100644--- a/studio/components/interfaces/Functions/TerminalInstructions.tsx+++ b/studio/components/interfaces/Functions/TerminalInstructions.tsx@@ -118,8 +118,8 @@ const TerminalInstructions = ({{tokens && tokens.length === 0 ? (<div className="px-8 py-6 space-y-3 border-t"><div>- <h3 className="text-base text-foreground">You may need to create an access token</h3>- <p className="text-sm text-foreground-light">+ <h3 className="text-base text-scale-1200">You may need to create an access token</h3>+ <p className="text-sm text-scale-1100">You can create a secure access token in your account section</p></div>@@ -130,8 +130,8 @@ const TerminalInstructions = ({) : (<div className="px-8 py-6 space-y-3 border-t"><div>- <h3 className="text-base text-foreground">Need help?</h3>- <p className="text-sm text-foreground-light">+ <h3 className="text-base text-scale-1200">Need help?</h3>+ <p className="text-sm text-scale-1100">Read the documentation, or browse some sample code.</p></div>diff --git a/studio/components/interfaces/Home/ClientLibrary.tsx b/studio/components/interfaces/Home/ClientLibrary.tsxindex 63996fe2d52..ddd8dea5ec4 100644--- a/studio/components/interfaces/Home/ClientLibrary.tsx+++ b/studio/components/interfaces/Home/ClientLibrary.tsx@@ -28,7 +28,7 @@ const ClientLibrary = ({/><div className="space-y-4"><div>- <h5 className="flex items-center gap-2 text-base text-foreground">+ <h5 className="flex items-center gap-2 text-base text-scale-1200">{language} {!officialSupport && <Badge color="green">Community</Badge>}</h5></div>diff --git a/studio/components/interfaces/Home/ExampleProject.tsx b/studio/components/interfaces/Home/ExampleProject.tsxindex a741aee4bca..897e4f27d89 100644--- a/studio/components/interfaces/Home/ExampleProject.tsx+++ b/studio/components/interfaces/Home/ExampleProject.tsx@@ -1,7 +1,7 @@-import { BASE_PATH } from 'lib/constants'-import { useTheme } from 'next-themes'import Link from 'next/link'-import { IconChevronRight } from 'ui'+import { IconChevronRight, useTheme } from 'ui'++import { BASE_PATH } from 'lib/constants'interface ExampleProjectProps {framework: string@@ -11,7 +11,7 @@ interface ExampleProjectProps {}const ExampleProject = ({ framework, title, description, url }: ExampleProjectProps) => {- const { theme } = useTheme()+ const { isDarkMode } = useTheme()return (<Link href={url}>@@ -30,7 +30,7 @@ const ExampleProject = ({ framework, title, description, url }: ExampleProjectPrclassName="transition-all group-hover:scale-110"src={`${BASE_PATH}/img/libraries/${framework.toLowerCase()}${['expo', 'nextjs'].includes(framework.toLowerCase())- ? theme === 'dark'+ ? isDarkMode? '-dark': '': ''@@ -41,19 +41,19 @@ const ExampleProject = ({ framework, title, description, url }: ExampleProjectPr/></div><div className="w-4/5 space-y-2">- <h5 className="text-foreground">{title}</h5>- <p className="text-sm text-foreground-light">{description}</p>+ <h5 className="text-scale-1200">{title}</h5>+ <p className="text-sm text-scale-1000">{description}</p></div><divclassName="absoluteright-4top-3- text-foreground-lighter- transition-all- duration-200+ text-scale-900+ transition-all+ duration-200group-hover:right-3- group-hover:text-foreground+ group-hover:text-scale-1200"><IconChevronRight />diff --git a/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsx b/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsxindex f861eeedf47..bdb05b801b7 100644--- a/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsx+++ b/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsx@@ -4,13 +4,13 @@ import Link from 'next/link'import { useState } from 'react'import { IconAlertCircle, IconLoader, Input } from 'ui'+import { useProjectApiQuery } from 'data/config/project-api-query'+import { useJwtSecretUpdatingStatusQuery } from 'data/config/jwt-secret-updating-status-query'+import { useCheckPermissions } from 'hooks'import { useParams } from 'common/hooks'import Snippets from 'components/interfaces/Docs/Snippets'-import SimpleCodeBlock from 'components/to-be-cleaned/SimpleCodeBlock'import Panel from 'components/ui/Panel'-import { useJwtSecretUpdatingStatusQuery } from 'data/config/jwt-secret-updating-status-query'-import { useProjectApiQuery } from 'data/config/project-api-query'-import { useCheckPermissions } from 'hooks'+import SimpleCodeBlock from 'components/to-be-cleaned/SimpleCodeBlock'const APIKeys = () => {const { ref: projectRef } = useParams()@@ -59,7 +59,7 @@ const APIKeys = () => {title={<div className="space-y-3"><h5 className="text-base">Project API</h5>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Your API is secured behind an API gateway which requires an API Key for every request.<br />You can use the parameters below to use Supabase client libraries.@@ -70,14 +70,14 @@ const APIKeys = () => {{isProjectSettingsError || isJwtSecretUpdateStatusError ? (<div className="flex items-center justify-center py-8 space-x-2"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">{isProjectSettingsError ? 'Failed to retrieve API keys' : 'Failed to update JWT secret'}</p></div>) : isApiKeysEmpty || isProjectSettingsLoading || isJwtSecretUpdateStatusLoading ? (<div className="flex items-center justify-center py-8 space-x-2"><IconLoader className="animate-spin" size={16} strokeWidth={1.5} />- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">{isProjectSettingsLoading || isApiKeysEmpty? 'Retrieving API keys': 'JWT secret is being updated'}@@ -155,7 +155,7 @@ const APIKeys = () => {key={language.key}className={['px-3 py-1 text-sm cursor-pointer transition',- `${!isSelected ? 'bg-scale-200 text-foreground-light' : 'bg-scale-300'}`,+ `${!isSelected ? 'bg-scale-200 text-scale-1000' : 'bg-scale-300'}`,].join(' ')}onClick={() => setSelectedLanguage(language)}>diff --git a/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsx b/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsxindex fa8cf3096a3..d4401fd7a21 100644--- a/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsx+++ b/studio/components/interfaces/Home/NewProjectPanel/GetStartedHero.tsx@@ -8,49 +8,49 @@ const GetStartedHero = () => {].join(' ')}><div className="text-xs font-mono space-x-4 flex items-center">- <span className="text-foreground-light">1</span>+ <span className="text-scale-1000">1</span><p className="text-blue-900">- create table <span className="text-foreground">countries {`(`}</span>+ create table <span className="text-scale-1200">countries {`(`}</span></p></div><div className="text-xs font-mono space-x-8 flex items-center">- <span className="text-foreground-light">2</span>- <p className="text-foreground">+ <span className="text-scale-1000">2</span>+ <p className="text-scale-1200">id <span className="text-blue-900">bigint generated by default</span></p></div><div className="text-xs font-mono space-x-8 flex items-center">- <span className="text-foreground-light">3</span>- <p className="text-foreground">+ <span className="text-scale-1000">3</span>+ <p className="text-scale-1200">name <span className="text-blue-900">text</span></p></div><div className="text-xs font-mono space-x-8 flex items-center">- <span className="text-foreground-light">4</span>- <p className="text-foreground">+ <span className="text-scale-1000">4</span>+ <p className="text-scale-1200">iso2 <span className="text-blue-900">text not null</span></p></div><div className="text-xs font-mono space-x-8 flex items-center">- <span className="text-foreground-light">5</span>- <p className="text-foreground">+ <span className="text-scale-1000">5</span>+ <p className="text-scale-1200">iso3 <span className="text-blue-900">text</span></p></div><div className="text-xs font-mono space-x-8 flex items-center">- <span className="text-foreground-light">6</span>- <p className="text-foreground">+ <span className="text-scale-1000">6</span>+ <p className="text-scale-1200">local_name <span className="text-blue-900">text</span></p></div><div className="text-xs font-mono space-x-8 flex items-center">- <span className="text-foreground-light">7</span>- <p className="text-foreground">+ <span className="text-scale-1000">7</span>+ <p className="text-scale-1200">continent <span className="text-blue-900">continents</span></p></div><div className="text-xs font-mono space-x-4 flex items-center">- <span className="text-foreground-light">8</span>+ <span className="text-scale-1000">8</span><p className="text-blue-900">{`);`}</p></div></div>diff --git a/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx b/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsxindex 73d8ab6c0a2..b27c0c78a8d 100644--- a/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx+++ b/studio/components/interfaces/Home/NewProjectPanel/NewProjectPanel.tsx@@ -19,8 +19,8 @@ const NewProjectPanel = () => {<div className="flex flex-col space-y-20"><div className="flex h-full flex-col justify-between"><div className="space-y-2">- <h3 className="text-xl text-foreground">Welcome to your new project</h3>- <p className="text-base text-foreground-light">+ <h3 className="text-xl text-scale-1200">Welcome to your new project</h3>+ <p className="text-base text-scale-1100">Your project has been deployed on its own instance, with its own API all set up andready to use.</p>@@ -30,10 +30,10 @@ const NewProjectPanel = () => {<div className="grid grid-cols-12 gap-4"><div className="col-span-12 flex flex-col justify-center space-y-8 lg:col-span-7"><div className="space-y-2">- <h3 className="text-xl text-foreground">+ <h3 className="text-xl text-scale-1200">Get started by building out your database</h3>- <p className="text-base text-foreground-light">+ <p className="text-base text-scale-1100">Start building your app by creating tables and inserting data. Our Table Editormakes Postgres as easy to use as a spreadsheet, but there's also our SQL Editor ifyou need something more.@@ -96,8 +96,8 @@ const NewProjectPanel = () => {<div className="flex h-full flex-col justify-between space-y-6"><div className="max-w-2xl space-y-2">- <h3 className="text-xl text-foreground">Explore our other products</h3>- <p className="text-base text-foreground-light">+ <h3 className="text-xl text-scale-1200">Explore our other products</h3>+ <p className="text-base text-scale-1100">Supabase provides all the backend features you need to build a product. You can useit completely, or just the features you need.</p>@@ -106,13 +106,13 @@ const NewProjectPanel = () => {<Panel><Panel.Content className="flex flex-col space-y-4 md:px-3"><div className="flex items-center space-x-3">- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm"><IconKey strokeWidth={2} size={16} /></div><h5>Authentication</h5></div><div className="flex flex-grow md:min-h-[50px] xl:min-h-[75px]">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">A complete user management system that works without any additional tools.</p></div>@@ -140,13 +140,13 @@ const NewProjectPanel = () => {<Panel><Panel.Content className="flex flex-col space-y-4 md:px-3"><div className="flex items-center space-x-3">- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm"><IconArchive strokeWidth={2} size={16} /></div><h5>Storage</h5></div><div className="flex md:min-h-[50px] xl:min-h-[75px]">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Store, organize, and serve any file types of any size from multiple buckets.</p></div>@@ -174,13 +174,13 @@ const NewProjectPanel = () => {<Panel><Panel.Content className="flex flex-col space-y-4 md:px-3"><div className="flex items-center space-x-3">- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm"><IconCode strokeWidth={2} size={16} /></div><h5>Edge Functions</h5></div><div className="flex md:min-h-[50px] xl:min-h-[75px]">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Write custom code without deploying or scaling servers, with fast deploy timesand low latency.</p>@@ -208,13 +208,13 @@ const NewProjectPanel = () => {<Panel><Panel.Content className="flex flex-col space-y-4 md:px-3"><div className="flex items-center space-x-4">- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm"><IconActivity strokeWidth={2} size={16} /></div><h5>Realtime</h5></div><div className="flex md:min-h-[50px] xl:min-h-[75px]">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Listen to your PostgreSQL database in realtime via websockets.</p></div>@@ -241,15 +241,15 @@ const NewProjectPanel = () => {<div className="col-span-12 lg:col-span-4"><div className="space-y-6"><div className="space-y-2">- <h3 className="text-xl text-foreground">Connecting to your new project</h3>- <p className="text-base text-foreground-light lg:max-w-sm">+ <h3 className="text-xl text-scale-1200">Connecting to your new project</h3>+ <p className="text-base text-scale-1100 lg:max-w-sm">Interact with your database through the{' '}<Link href="https://supabase.com/docs/reference"><a className="text-brand">Supabase client libraries</a></Link>{' '}with your API keys.</p>- <p className="text-base text-foreground-light lg:max-w-sm">+ <p className="text-base text-scale-1100 lg:max-w-sm">More information about your project's keys can be found in your project's APIsettings.</p>diff --git a/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx b/studio/components/interfaces/Home/ProjectList/ProjectCard.tsxindex 2042f6ca176..f0b3c460ce5 100644--- a/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx+++ b/studio/components/interfaces/Home/ProjectList/ProjectCard.tsx@@ -1,12 +1,12 @@import { IconGitBranch, IconGitHub } from 'ui'import CardButton from 'components/ui/CardButton'-import { IntegrationProjectConnection } from 'data/integrations/integrations.types'-import { ResourceWarning } from 'data/usage/resource-warnings-query'import { BASE_PATH } from 'lib/constants'import { Project } from 'types'-import { inferProjectStatus } from './ProjectCard.utils'+import { IntegrationProjectConnection } from 'data/integrations/integrations.types'+import { ResourceWarning } from 'data/usage/resource-warnings-query'import { ProjectCardStatus } from './ProjectCardStatus'+import { inferProjectStatus } from './ProjectCard.utils'export interface ProjectCardProps {project: Project@@ -40,7 +40,7 @@ const ProjectCard = ({title={<div className="w-full justify-between space-y-1.5 px-6"><p className="flex-shrink truncate text-base">{name}</p>- <span className="text-sm lowercase text-foreground-light">{desc}</span>+ <span className="text-sm lowercase text-scale-1000">{desc}</span><div className="flex items-center space-x-1.5">{isVercelIntegrated && (<div className="w-fit p-1 border rounded-md flex items-center border-scale-600">@@ -61,7 +61,7 @@ const ProjectCard = ({<div className="w-fit p-1 border rounded-md flex items-center border-scale-600"><IconGitHub size={12} strokeWidth={1.5} /></div>- <p className="text-xs !ml-2 text-foreground-light">{githubRepository}</p>+ <p className="text-xs !ml-2 text-scale-1100">{githubRepository}</p></>)}</div>diff --git a/studio/components/interfaces/Home/ProjectList/ProjectList.tsx b/studio/components/interfaces/Home/ProjectList/ProjectList.tsxindex aaa65f13805..ab938e7de38 100644--- a/studio/components/interfaces/Home/ProjectList/ProjectList.tsx+++ b/studio/components/interfaces/Home/ProjectList/ProjectList.tsx@@ -14,10 +14,10 @@ import { useProjectsQuery } from 'data/projects/projects-query'import { ResourceWarning, useResourceWarningsQuery } from 'data/usage/resource-warnings-query'import { IS_PLATFORM } from 'lib/constants'import { makeRandomString } from 'lib/helpers'-import { useState } from 'react'import { Organization, Project, ResponseError } from 'types'import ProjectCard from './ProjectCard'import ShimmeringCard from './ShimmeringCard'+import { useState } from 'react'export interface ProjectListProps {rewriteHref?: (projectRef: string) => string@@ -214,7 +214,7 @@ const NoProjectsState = ({ slug }: { slug: string }) => {<div className="col-span-4 space-y-4 rounded-lg border-2 border-dashed border-gray-300 p-6 text-center"><div className="space-y-1"><p>No projects</p>- <p className="text-sm text-foreground-light">Get started by creating a new project.</p>+ <p className="text-sm text-scale-1100">Get started by creating a new project.</p></div><div><Link href={`/new/${slug}`}>diff --git a/studio/components/interfaces/Home/ProjectUsage.tsx b/studio/components/interfaces/Home/ProjectUsage.tsxindex 4e44cf2651e..ca593dd3ea6 100644--- a/studio/components/interfaces/Home/ProjectUsage.tsx+++ b/studio/components/interfaces/Home/ProjectUsage.tsx@@ -7,11 +7,7 @@ import { useState } from 'react'import { ChartIntervals } from 'types'import {Button,- DropdownMenuContent_Shadcn_,- DropdownMenuRadioGroup_Shadcn_,- DropdownMenuRadioItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,IconArchive,IconChevronDown,IconDatabase,@@ -82,23 +78,24 @@ const ProjectUsage = () => {return (<div className="space-y-6"><div className="flex flex-row items-center gap-2">- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button asChild type="default" iconRight={<IconChevronDown />}>- <span>{selectedInterval.label}</span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="start">- <DropdownMenuRadioGroup_Shadcn_ value={interval} onValueChange={setInterval}>+ <Dropdown+ side="bottom"+ align="start"+ overlay={+ <Dropdown.RadioGroup value={interval} onChange={setInterval}>{CHART_INTERVALS.map((i) => (- <DropdownMenuRadioItem_Shadcn_ key={i.key} value={i.key}>+ <Dropdown.Radio key={i.key} value={i.key}>{i.label}- </DropdownMenuRadioItem_Shadcn_>+ </Dropdown.Radio>))}- </DropdownMenuRadioGroup_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>- <span className="text-xs text-foreground-light">+ </Dropdown.RadioGroup>+ }+ >+ <Button asChild type="default" iconRight={<IconChevronDown />}>+ <span>{selectedInterval.label}</span>+ </Button>+ </Dropdown>+ <span className="text-xs text-scale-1000">Statistics for past {selectedInterval.label}</span></div>@@ -107,7 +104,7 @@ const ProjectUsage = () => {<Panel.Content className="space-y-4"><PanelHeadericon={- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm"><IconDatabase strokeWidth={2} size={16} /></div>}@@ -132,7 +129,7 @@ const ProjectUsage = () => {<Panel.Content className="space-y-4"><PanelHeadericon={- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm"><IconKey strokeWidth={2} size={16} /></div>}@@ -156,7 +153,7 @@ const ProjectUsage = () => {<Panel.Content className="space-y-4"><PanelHeadericon={- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm"><IconArchive strokeWidth={2} size={16} /></div>}@@ -181,7 +178,7 @@ const ProjectUsage = () => {<Panel.Content className="space-y-4"><PanelHeadericon={- <div className="rounded bg-scale-600 p-1.5 text-foreground-light shadow-sm">+ <div className="rounded bg-scale-600 p-1.5 text-scale-1000 shadow-sm"><IconZap strokeWidth={2} size={16} /></div>}diff --git a/studio/components/interfaces/Integrations/IntegrationConnection.tsx b/studio/components/interfaces/Integrations/IntegrationConnection.tsxindex 3cbffb84ca8..20368ec8b0d 100644--- a/studio/components/interfaces/Integrations/IntegrationConnection.tsx+++ b/studio/components/interfaces/Integrations/IntegrationConnection.tsx@@ -1,19 +1,7 @@import Link from 'next/link'import { useRouter } from 'next/router'import { forwardRef, useCallback, useState } from 'react'-import {- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconChevronDown,- IconLoader,- IconRefreshCw,- IconTrash,- Modal,-} from 'ui'+import { Button, Dropdown, IconChevronDown, IconLoader, IconRefreshCw, IconTrash, Modal } from 'ui'import {IntegrationConnection,@@ -69,58 +57,61 @@ const IntegrationConnectionItem = forwardRef<HTMLLIElement, IntegrationConnectio<><IntegrationConnectionactions={- <DropdownMenu_Shadcn_+ <Dropdownopen={dropdownVisible}onOpenChange={() => setDropdownVisible(!dropdownVisible)}modal={false}- >- <DropdownMenuTrigger_Shadcn_>- <Button asChild iconRight={<IconChevronDown />} type="default">- <span>Manage</span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="end">- {props.type === 'Vercel' && (- <>- {router.pathname !== projectIntegrationUrl && (- <Link- passHref- href={projectIntegrationUrl.replace(- '[ref]',- props.connection.supabase_project_ref- )}- >- <a>- <DropdownMenuItem_Shadcn_ disabled={isSyncEnvLoading}>- View project configuration- </DropdownMenuItem_Shadcn_>- </a>- </Link>- )}- <DropdownMenuItem_Shadcn_- className="space-x-2"- onSelect={(event) => {- event.preventDefault()- onReSyncEnvVars()- }}- disabled={isSyncEnvLoading}- >- {isSyncEnvLoading ? (- <IconLoader className="animate-spin" size={14} />- ) : (- <IconRefreshCw size={14} />+ side="bottom"+ align="end"+ size="medium"+ overlay={+ <>+ {props.type === 'Vercel' && (+ <>+ {router.pathname !== projectIntegrationUrl && (+ <Link+ passHref+ href={projectIntegrationUrl.replace(+ '[ref]',+ props.connection.supabase_project_ref+ )}+ >+ <a>+ <Dropdown.Item disabled={isSyncEnvLoading}>+ View project configuration+ </Dropdown.Item>+ </a>+ </Link>)}- <p className="text">Resync environment variables</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuSeparator_Shadcn_ />- </>- )}- <DropdownMenuItem_Shadcn_ className="space-x-2" onSelect={() => setIsOpen(true)}>- <IconTrash size={14} />- <p className="text">Delete connection</p>- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown.Item+ icon={+ isSyncEnvLoading ? (+ <IconLoader className="animate-spin" size={14} />+ ) : (+ <IconRefreshCw size={14} />+ )+ }+ onSelect={(event) => {+ event.preventDefault()+ onReSyncEnvVars()+ }}+ disabled={isSyncEnvLoading}+ >+ Resync environment variables+ </Dropdown.Item>+ <Dropdown.Separator />+ </>+ )}+ <Dropdown.Item icon={<IconTrash size={14} />} onSelect={() => setIsOpen(true)}>+ Delete connection+ </Dropdown.Item>+ </>+ }+ >+ <Button asChild iconRight={<IconChevronDown />} type="default">+ <span>Manage</span>+ </Button>+ </Dropdown>}{...props}/>diff --git a/studio/components/interfaces/Integrations/IntegrationPanels.tsx b/studio/components/interfaces/Integrations/IntegrationPanels.tsxindex 1f990a9b93c..df3117397fc 100644--- a/studio/components/interfaces/Integrations/IntegrationPanels.tsx+++ b/studio/components/interfaces/Integrations/IntegrationPanels.tsx@@ -6,9 +6,10 @@ import { Markdown } from 'components/interfaces/Markdown'import { Integration, IntegrationProjectConnection } from 'data/integrations/integrations.types'import { useProjectsQuery } from 'data/projects/projects-query'import { BASE_PATH } from 'lib/constants'+import { Badge, Button, IconArrowRight, IconExternalLink, IconGitHub, IconSquare, cn } from 'ui'import { getIntegrationConfigurationUrl } from 'lib/integration-utils'import Link from 'next/link'-import { Badge, Button, cn, IconArrowRight, IconExternalLink, IconGitHub } from 'ui'+import { BooleanFormatter } from 'components/grid/components/formatter'const ICON_STROKE_WIDTH = 2const ICON_SIZE = 14@@ -172,7 +173,7 @@ const IntegrationConnection = React.forwardRef<HTMLLIElement, IntegrationConnect<div className="flex gap-2 items-center"><HandleIcon type={'Supabase'} /><span className="text-sm">{project?.name}</span>- <IconArrowRight size={14} className="text-foreground-lighter" strokeWidth={1.5} />+ <IconArrowRight size={14} className="text-scale-900" strokeWidth={1.5} />{!connection?.metadata?.framework ? (<div className="bg-black text-white w-4 h-4 rounded flex items-center justify-center"><HandleIcon type={type} className={'!w-2.5'} />@@ -189,10 +190,10 @@ const IntegrationConnection = React.forwardRef<HTMLLIElement, IntegrationConnect</div><div className="flex flex-col gap-0">- <span className="text-foreground-lighter text-xs">+ <span className="text-scale-900 text-xs">Connected {dayjs(connection?.inserted_at).fromNow()}</span>- <span className="text-foreground-lighter text-xs">+ <span className="text-scale-900 text-xs">Added by {connection?.added_by?.primary_email}</span></div>@@ -223,7 +224,7 @@ const IntegrationConnectionOption = React.forwardRef<HTMLLIElement, IntegrationC<div className="flex gap-2 items-center"><HandleIcon type={'Supabase'} /><span className="text-sm">{project?.name}</span>- <IconArrowRight size={14} className="text-foreground-lighter" strokeWidth={1.5} />+ <IconArrowRight size={14} className="text-scale-900" strokeWidth={1.5} /><HandleIcon type={type} /><span className="text-sm">{connection.metadata.name}</span></div>diff --git a/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx b/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsxindex 16a64f65b61..56dda8f2de7 100644--- a/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx+++ b/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx@@ -239,7 +239,7 @@ const AuditLogs = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">{dateSortDesc ? 'Sort latest first' : 'Sort earliest first'}</span></div>@@ -292,11 +292,9 @@ const AuditLogs = () => {<div className="flex items-center space-x-4"><div>{userIcon}</div><div>- <p className="text-foreground-light">{user?.username ?? '-'}</p>+ <p className="text-scale-1100">{user?.username ?? '-'}</p>{role && (- <p className="mt-0.5 text-xs text-foreground-light">- {role?.name}- </p>+ <p className="mt-0.5 text-xs text-scale-1000">{role?.name}</p>)}</div></div>@@ -315,7 +313,7 @@ const AuditLogs = () => {</Table.td><Table.td><p- className="text-foreground-light max-w-[230px] truncate"+ className="text-scale-1100 max-w-[230px] truncate"title={project?.name ?? organization?.name ?? '-'}>{project?.name@@ -326,7 +324,7 @@ const AuditLogs = () => {{project?.name ?? organization?.name ?? 'Unknown'}</p><p- className="text-foreground-light text-xs mt-0.5 truncate"+ className="text-scale-1000 text-xs mt-0.5 truncate"title={log.target.metadata.project_ref ?? log.target.metadata.org_slug}diff --git a/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsx b/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsxindex a09fbb3cd77..2c6d7cf7235 100644--- a/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsx+++ b/studio/components/interfaces/Organization/BillingSettings/BillingAddress/BillingAddress.tsx@@ -165,7 +165,7 @@ const BillingAddress = () => {<div className="border-t border-scale-400" /><Panel.Content className="flex justify-between">{!canUpdateBillingAddress ? (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">You need additional permissions to update this organization's billingaddress</p>diff --git a/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx b/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsxindex ff41f5284c1..4df99f1b341 100644--- a/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx+++ b/studio/components/interfaces/Organization/BillingSettings/PaymentMethods.tsx@@ -6,10 +6,7 @@ import {Alert,Badge,Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,IconCreditCard,IconMoreHorizontal,IconPlus,@@ -138,7 +135,7 @@ const PaymentMethods = () => {footer={<div className="flex w-full justify-between">{!canUpdatePaymentMethods ? (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">You need additional permissions to manage this organization's payment methods</p>) : (@@ -206,7 +203,7 @@ const PaymentMethods = () => {'w-48 border border-scale-200 text-center', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">Your default payment method cannot be deleted</span></div>@@ -214,30 +211,30 @@ const PaymentMethods = () => {</Tooltip.Portal></Tooltip.Root>) : (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- type="outline"- icon={<IconMoreHorizontal />}- loading={isLoadingPaymentMethods}- className="hover:border-gray-500"- />- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_>- <DropdownMenuItem_Shadcn_+ <Dropdown+ size="tiny"+ overlay={[+ <Dropdown.Itemkey="make-default"onClick={() => setSelectedMethodForDefault(paymentMethod)}>- <p className="text">Make default</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuItem_Shadcn_+ Make default+ </Dropdown.Item>,+ <Dropdown.Itemkey="delete-method"onClick={() => setSelectedMethodToDelete(paymentMethod)}>- <p className="text">Delete</p>- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ Delete+ </Dropdown.Item>,+ ]}+ >+ <Button+ type="outline"+ icon={<IconMoreHorizontal />}+ loading={isLoadingPaymentMethods}+ className="hover:border-gray-500"+ />+ </Dropdown>)}</>)}diff --git a/studio/components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip.tsx b/studio/components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip.tsxindex 49bbd403f18..127f9741f06 100644--- a/studio/components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip.tsx+++ b/studio/components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip.tsx@@ -26,7 +26,7 @@ const ProjectUpdateDisabledTooltip = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">{projectUpdateDisabled? 'Subscription changes are currently disabled. Our engineers are working on a fix.': projectNotActivediff --git a/studio/components/interfaces/Organization/BillingSettings/ProjectsSummary.tsx b/studio/components/interfaces/Organization/BillingSettings/ProjectsSummary.tsxindex a4874c72b99..87ea901dfea 100644--- a/studio/components/interfaces/Organization/BillingSettings/ProjectsSummary.tsx+++ b/studio/components/interfaces/Organization/BillingSettings/ProjectsSummary.tsx@@ -93,7 +93,7 @@ const ProjectsSummary = ({ projects }: ProjectsSummaryProps) => {))}{projects.length === 0 && (<Panel.Content>- <p className="text-sm text-foreground-light">No projects created yet</p>+ <p className="text-sm text-scale-1100">No projects created yet</p></Panel.Content>)}</Panel>diff --git a/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsx b/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsxindex 9b9be26b446..29ab3fd3c94 100644--- a/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsx+++ b/studio/components/interfaces/Organization/BillingSettings/TaxID/TaxID.tsx@@ -157,7 +157,7 @@ const TaxID = () => {!isLoadingTaxIds && (<div className="flex w-full justify-between">{!canUpdateTaxIds ? (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">You need additional permissions to update this organization's tax IDs</p>) : (@@ -231,9 +231,7 @@ const TaxID = () => {</div>) : (<div>- <p className="flex items-center space-x-2 text-sm text-foreground-lighter">- No tax IDs- </p>+ <p className="flex items-center space-x-2 text-sm text-scale-900">No tax IDs</p></div>)}{canUpdateTaxIds && (diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/BillingAddress/BillingAddress.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/BillingAddress/BillingAddress.tsxindex c30aa76e556..aa209366fd4 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/BillingAddress/BillingAddress.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/BillingAddress/BillingAddress.tsx@@ -69,7 +69,7 @@ const BillingAddress = () => {<ScaffoldSectionDetail><div className="sticky space-y-2 top-12"><p className="text-base m-0">Billing Address</p>- <p className="text-sm text-foreground-light m-0">+ <p className="text-sm text-scale-1000 m-0">This will be reflected in every upcoming invoice, past invoices are not affected</p></div>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingBreakdown.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingBreakdown.tsxindex 02bc16683c0..c806533ad1b 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingBreakdown.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingBreakdown.tsx@@ -10,11 +10,11 @@ import AlertError from 'components/ui/AlertError'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'import { useOrgUsageQuery } from 'data/usage/org-usage-query'-import { useOrgSettingsPageStateSnapshot } from 'state/organization-settings'import { Alert, Button } from 'ui'import { BILLING_BREAKDOWN_METRICS } from './BillingBreakdown.constants'import BillingMetric from './BillingMetric'import UpcomingInvoice from './UpcomingInvoice'+import { useOrgSettingsPageStateSnapshot } from 'state/organization-settings'const BillingBreakdown = () => {const snap = useOrgSettingsPageStateSnapshot()@@ -53,7 +53,7 @@ const BillingBreakdown = () => {<ScaffoldSectionDetail><div className="sticky space-y-2 top-12"><p className="text-base m-0">Billing breakdown</p>- <p className="text-sm text-foreground-light m-0">+ <p className="text-sm text-scale-1000 m-0">Current billing cycle: {billingCycleStart.format('MMM DD')} -{' '}{billingCycleEnd.format('MMM DD')}</p>@@ -76,13 +76,13 @@ const BillingBreakdown = () => {<><p className="text-sm">Included usage summary</p>{isUsageBillingEnabled ? (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Your plan includes a limited amount of usage. If the usage on your organizationexceeds these quotas, your subscription will be charged for the overages. It maytake up to 24 hours for usage stats to update.</p>) : (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Your plan includes a limited amount of usage. If the usage on your organizationexceeds these quotas, you may experience restrictions, as you are currently notbilled for overages. It may take up to 24 hours for usage stats to update.@@ -146,10 +146,10 @@ const BillingBreakdown = () => {)}<p className="!mt-10 text-sm">Upcoming cost for next invoice</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">The following table shows your upcoming costs. Depending on your usage, the finalamount may vary. Next invoice on{' '}- <span className="text-foreground-light whitespace-nowrap">+ <span className="text-scale-1100 whitespace-nowrap">{billingCycleEnd.format('MMM DD, YYYY')}</span>.diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingMetric.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingMetric.tsxindex 0d9a579e650..00dd069207f 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingMetric.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/BillingMetric.tsx@@ -1,14 +1,14 @@-import * as Tooltip from '@radix-ui/react-tooltip'import clsx from 'clsx'import Link from 'next/link'+import * as Tooltip from '@radix-ui/react-tooltip'import { BILLING_BREAKDOWN_METRICS } from 'components/interfaces/BillingV2/Subscription/Subscription.constants'-import SparkBar from 'components/ui/SparkBar'+import { Button, IconAlertTriangle, IconChevronRight, IconInfo } from 'ui'+import { Metric, USAGE_APPROACHING_THRESHOLD } from './BillingBreakdown.constants'import { OrgSubscription } from 'data/subscriptions/org-subscription-query'import { OrgUsageResponse } from 'data/usage/org-usage-query'import { useOrgSettingsPageStateSnapshot } from 'state/organization-settings'-import { Button, IconAlertTriangle, IconChevronRight, IconInfo } from 'ui'-import { Metric, USAGE_APPROACHING_THRESHOLD } from './BillingBreakdown.constants'+import SparkBar from 'components/ui/SparkBar'export interface BillingMetricProps {idx: number@@ -35,9 +35,7 @@ const BillingMetric = ({ idx, slug, metric, usage, subscription }: BillingMetricconst isExceededLimit = hasLimit && usageRatio >= 1const usageCurrentLabel =- metric.units === 'bytes'- ? `${usageMeta?.usage?.toLocaleString() ?? 0} GB`- : usageMeta?.usage?.toLocaleString()+ metric.units === 'bytes' ? `${usageMeta?.usage?.toLocaleString() ?? 0} GB` : usageMeta?.usage?.toLocaleString()const usageLimitLabel =metric.units === 'bytes'? `${usageMeta?.pricing_free_units ?? 0} GB`@@ -57,7 +55,7 @@ const BillingMetric = ({ idx, slug, metric, usage, subscription }: BillingMetric<Link href={`/org/${slug}/usage#${metric.anchor}`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-scale-1100 group-hover:text-scale-1200 transition cursor-pointer">{metric.name}</p><IconChevronRight@@ -73,7 +71,7 @@ const BillingMetric = ({ idx, slug, metric, usage, subscription }: BillingMetric<Tooltip.Root delayDuration={0}><Tooltip.Trigger><div className="flex items-center">- <IconInfo size={14} strokeWidth={2} className="hover:text-foreground-light" />+ <IconInfo size={14} strokeWidth={2} className="hover:text-scale-1000" /></div></Tooltip.Trigger><Tooltip.Portal>@@ -85,7 +83,7 @@ const BillingMetric = ({ idx, slug, metric, usage, subscription }: BillingMetric'border border-scale-200',].join(' ')}>- <div className="text-xs text-foreground">+ <div className="text-xs text-scale-1200">{usageFee.pricingStrategy === 'UNIT' ? (<div><p>@@ -140,10 +138,10 @@ const BillingMetric = ({ idx, slug, metric, usage, subscription }: BillingMetric'border border-scale-200',].join(' ')}>- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">Exceeding your plans included usage will lead to restrictions to your project.</p>- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">Upgrade to a usage-based plan or disable the spend cap to avoid restrictions.</p></div>@@ -168,7 +166,7 @@ const BillingMetric = ({ idx, slug, metric, usage, subscription }: BillingMetric}bgClass="bg-gray-300 dark:bg-gray-600"labelBottom={usageLabel}- labelBottomClass="!text-foreground-light"+ labelBottomClass="!text-scale-1000"labelTop={hasLimit ? percentageLabel : undefined}labelTopClass={!hasLimit@@ -182,7 +180,7 @@ const BillingMetric = ({ idx, slug, metric, usage, subscription }: BillingMetric/>) : (<div className="flex items-center justify-between flex-grow">- <p className="text-sm text-foreground-light">Unavailable in your plan</p>+ <p className="text-sm text-scale-1000">Unavailable in your plan</p><Button type="default" onClick={() => snap.setPanelKey('subscriptionPlan')}>Upgrade</Button>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/UpcomingInvoice.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/UpcomingInvoice.tsxindex 507f9ddc836..bb2e2ffb5f4 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/UpcomingInvoice.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/BillingBreakdown/UpcomingInvoice.tsx@@ -4,8 +4,8 @@ import { partition } from 'lodash'import AlertError from 'components/ui/AlertError'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import { useOrgUpcomingInvoiceQuery } from 'data/invoices/org-invoice-upcoming-query'-import { useState } from 'react'import { Button, Collapsible, IconChevronRight } from 'ui'+import { useState } from 'react'export interface UpcomingInvoiceProps {slug?: string@@ -40,14 +40,10 @@ const UpcomingInvoice = ({ slug }: UpcomingInvoiceProps) => {<table className="w-full"><thead><tr className="border-b">- <th className="py-2 font-normal text-left text-sm text-foreground-light w-1/2">- Item- </th>- <th className="py-2 font-normal text-left text-sm text-foreground-light">Count</th>- <th className="py-2 font-normal text-left text-sm text-foreground-light">- Unit price- </th>- <th className="py-2 font-normal text-right text-sm text-foreground-light">Price</th>+ <th className="py-2 font-normal text-left text-sm text-scale-1000 w-1/2">Item</th>+ <th className="py-2 font-normal text-left text-sm text-scale-1000">Count</th>+ <th className="py-2 font-normal text-left text-sm text-scale-1000">Unit price</th>+ <th className="py-2 font-normal text-right text-sm text-scale-1000">Price</th></tr></thead><tbody>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/BillingEmail.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/BillingEmail.tsxindex a7ae06dad72..aa8f5d10ab8 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/BillingEmail.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/BillingEmail.tsx@@ -59,7 +59,7 @@ const BillingEmail = () => {<ScaffoldSectionDetail><div className="sticky space-y-2 top-12"><p className="text-base m-0">Email Recipient</p>- <p className="text-sm text-foreground-light m-0">+ <p className="text-sm text-scale-1000 m-0">All billing correspondence will go to this email</p></div>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/CostControl.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/CostControl.tsxindex 071b76ab2c2..e377cb39452 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/CostControl.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/CostControl.tsx@@ -1,7 +1,6 @@import Link from 'next/link'-import { useParams } from 'common'-import { useTheme } from 'next-themes'+import { useParams, useTheme } from 'common'import {ScaffoldSection,ScaffoldSectionContent,@@ -21,7 +20,7 @@ export interface CostControlProps {}const CostControl = ({}: CostControlProps) => {const { slug } = useParams()- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const snap = useOrgSettingsPageStateSnapshot()const projectUpdateDisabled = useFlag('disableProjectCreationAndUpdate')@@ -46,12 +45,12 @@ const CostControl = ({}: CostControlProps) => {<div className="sticky space-y-6 top-12"><div className="space-y-2"><p className="text-base m-0">Cost Control</p>- <p className="text-sm text-foreground-light m-0">+ <p className="text-sm text-scale-1000 m-0">Control whether to use beyond your plans included quota</p></div><div className="space-y-2">- <p className="text-sm text-foreground-light">More information</p>+ <p className="text-sm text-scale-1100">More information</p><div><Link href="https://supabase.com/docs/guides/platform/spend-cap"><a target="_blank" rel="noreferrer">@@ -96,7 +95,7 @@ const CostControl = ({}: CostControlProps) => {is exceeded will you be charged for any additional usage.</Alert>) : (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">You can control whether your organization is charged for additional usage beyondthe{' '}<Link href="#breakdown">@@ -118,12 +117,8 @@ const CostControl = ({}: CostControlProps) => {height={96}src={isUsageBillingEnabled- ? `${BASE_PATH}/img/spend-cap-off${- theme === 'dark' ? '' : '--light'- }.png?v=3`- : `${BASE_PATH}/img/spend-cap-on${- theme === 'dark' ? '' : '--light'- }.png?v=3`+ ? `${BASE_PATH}/img/spend-cap-off${isDarkMode ? '' : '--light'}.png?v=3`+ : `${BASE_PATH}/img/spend-cap-on${isDarkMode ? '' : '--light'}.png?v=3`}/></div>@@ -132,7 +127,7 @@ const CostControl = ({}: CostControlProps) => {<p className="mb-1">Spend cap is {isUsageBillingEnabled ? 'disabled' : 'enabled'}</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">{isUsageBillingEnabled ? (<span>You will be charged for any usage above the included quota.</span>) : (@@ -144,7 +139,7 @@ const CostControl = ({}: CostControlProps) => {)}</p>{isUsageBillingEnabled && (- <p className="text-sm text-foreground-light mt-1">+ <p className="text-sm text-scale-1000 mt-1">Your projects will never become unresponsive. Only when your usage reaches thequota limit will you be charged for any excess usage.</p>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/SpendCapSidePanel.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/SpendCapSidePanel.tsxindex 34dc4f9053f..c24aad41851 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/SpendCapSidePanel.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/CostControl/SpendCapSidePanel.tsx@@ -1,7 +1,6 @@import { PermissionAction } from '@supabase/shared-types/out/constants'import clsx from 'clsx'-import { useParams } from 'common'-import { useTheme } from 'next-themes'+import { useParams, useTheme } from 'common'import Table from 'components/to-be-cleaned/Table'import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'import { useOrgSubscriptionUpdateMutation } from 'data/subscriptions/org-subscription-update-mutation'@@ -39,7 +38,7 @@ const SpendCapSidePanel = () => {const { ui } = useStore()const router = useRouter()const { slug } = useParams()- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const [showUsageCosts, setShowUsageCosts] = useState(false)const [selectedOption, setSelectedOption] = useState<'on' | 'off'>()@@ -153,7 +152,7 @@ const SpendCapSidePanel = () => {size={16}className={showUsageCosts ? 'rotate-90' : ''}/>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">How are each resource charged after exceeding the included quota?</p></div>@@ -179,7 +178,7 @@ const SpendCapSidePanel = () => {<><Table.tr key={categoryId}><Table.td>- <p className="text-xs text-foreground">{category.title}</p>+ <p className="text-xs text-scale-1200">{category.title}</p></Table.td><Table.td>{null}</Table.td></Table.tr>@@ -255,14 +254,14 @@ const SpendCapSidePanel = () => {)}width={160}height={96}- src={theme === 'dark' ? option.imageUrl : option.imageUrlLight}+ src={isDarkMode ? option.imageUrl : option.imageUrlLight}/><pclassName={clsx('text-sm transition',- !isFreePlan && 'group-hover:text-foreground',- isSelected ? 'text-foreground' : 'text-foreground-light'+ !isFreePlan && 'group-hover:text-scale-1200',+ isSelected ? 'text-scale-1200' : 'text-scale-1000')}>{option.name}diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/CreditBalance.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/CreditBalance.tsxindex 9c809c4aaa9..6ad16720eec 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/CreditBalance.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/CreditBalance.tsx@@ -32,7 +32,7 @@ const CreditBalance = () => {{isCredit && <Badge>You have credits available</Badge>}{isDebt && <Badge color="red">Outstanding payments</Badge>}</div>- <p className="text-sm text-foreground-light m-0">+ <p className="text-sm text-scale-1000 m-0">Charges will be deducted from your balance first</p></div>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsxindex c293b648552..a89b13c3463 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/PaymentMethods/PaymentMethods.tsx@@ -19,22 +19,10 @@ import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-queimport { useCheckPermissions, useStore } from 'hooks'import { BASE_PATH } from 'lib/constants'import { getURL } from 'lib/helpers'-import Link from 'next/link'-import {- Alert,- Badge,- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconCreditCard,- IconMoreHorizontal,- IconPlus,-} from 'ui'+import { Alert, Badge, Button, Dropdown, IconCreditCard, IconMoreHorizontal, IconPlus } from 'ui'import ChangePaymentMethodModal from './ChangePaymentMethodModal'import DeletePaymentMethodModal from './DeletePaymentMethodModal'+import Link from 'next/link'const PaymentMethods = () => {const { ui } = useStore()@@ -68,7 +56,7 @@ const PaymentMethods = () => {<ScaffoldSectionDetail><div className="sticky space-y-2 top-12"><p className="text-base m-0">Payment methods</p>- <p className="text-sm text-foreground-light mb-2 pr-4 m-0">+ <p className="text-sm text-scale-1000 mb-2 pr-4 m-0">After adding a payment method, make sure to mark it as active to use it for billing.You can remove unused cards.</p>@@ -117,7 +105,7 @@ const PaymentMethods = () => {footer={<div className="flex items-center justify-between py-4 px-8">{!canUpdatePaymentMethods ? (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">You need additional permissions to manage payment methods</p>) : (@@ -168,40 +156,41 @@ const PaymentMethods = () => {</div>{isActive && <Badge color="green">Active</Badge>}{canUpdatePaymentMethods && !isActive ? (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- asChild- type="outline"- icon={<IconMoreHorizontal />}- className="hover:border-gray-500 px-1"- >- <span />- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ align="end">- {subscription?.plan.id !== 'free' &&- subscription?.payment_method_type === 'card' && (- <>- <DropdownMenuItem_Shadcn_+ <Dropdown+ size="tiny"+ align="end"+ overlay={[+ ...(subscription?.plan.id !== 'free' &&+ subscription?.payment_method_type === 'card'+ ? [+ <Dropdown.Itemkey="make-default"onClick={() =>setSelectedMethodForUse(paymentMethod)}>- <p className="text">Use this card</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuSeparator_Shadcn_ />- </>- )}- <DropdownMenuItem_Shadcn_+ Use this card+ </Dropdown.Item>,+ <Dropdown.Separator key="card-separator" />,+ ]+ : []),+ <Dropdown.Itemkey="delete-method"onClick={() => setSelectedMethodToDelete(paymentMethod)}>- <p className="text">Delete card</p>- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ Delete card+ </Dropdown.Item>,+ ]}+ >+ <Button+ asChild+ type="outline"+ icon={<IconMoreHorizontal />}+ className="hover:border-gray-500 px-1"+ >+ <span />+ </Button>+ </Dropdown>) : null}</div>)diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/EnterpriseCard.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/EnterpriseCard.tsxindex 9bf42adeefb..cbf139f924b 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/EnterpriseCard.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/EnterpriseCard.tsx@@ -1,6 +1,6 @@import clsx from 'clsx'-import { PricingInformation } from 'shared-data'import { Button, IconCheck } from 'ui'+import { PricingInformation } from 'shared-data'export interface EnterpriseCardProps {plan: PricingInformation@@ -20,7 +20,7 @@ const EnterpriseCard = ({ plan, isCurrentPlan }: EnterpriseCardProps) => {<div className="flex items-center space-x-2"><p className={clsx('text-brand text-sm uppercase')}>{plan.name}</p>{isCurrentPlan ? (- <div className="text-xs bg-scale-500 text-foreground-light rounded px-2 py-0.5">+ <div className="text-xs bg-scale-500 text-scale-1000 rounded px-2 py-0.5">Current plan</div>) : plan.nameBadge ? (@@ -40,14 +40,11 @@ const EnterpriseCard = ({ plan, isCurrentPlan }: EnterpriseCardProps) => {</div><div className="flex flex-col justify-center col-span-2 px-4 md:px-0">- <ul- role="list"- className="text-xs text-foreground-light md:grid md:grid-cols-2 md:gap-x-10"- >+ <ul role="list" className="text-xs text-scale-1000 md:grid md:grid-cols-2 md:gap-x-10">{plan.features.map((feature) => (<li key={feature} className="flex items-center py-2 first:mt-0"><IconCheck className="text-brand h-4 w-4" aria-hidden="true" strokeWidth={3} />- <span className="dark:text-foreground mb-0 ml-3 ">{feature}</span>+ <span className="dark:text-scale-1200 mb-0 ml-3 ">{feature}</span></li>))}</ul>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/ExitSurveyModal.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/ExitSurveyModal.tsxindex 04d265b4ad5..4e57308e7f2 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/ExitSurveyModal.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/ExitSurveyModal.tsx@@ -140,7 +140,7 @@ const ExitSurveyModal = ({ visible, subscription, onClose }: ExitSurveyModalProp><Modal.Content><div className="py-6 space-y-4">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">We always strive to improve Supabase as much as we can. Please let us know the reasonsyou are canceling your subscription so that we can improve in the future.</p>@@ -158,7 +158,7 @@ const ExitSurveyModal = ({ visible, subscription, onClose }: ExitSurveyModalProp${active? ` bg-scale-1200 text-scale-100 opacity-100 hover:bg-opacity-75`- : ` bg-scale-700 text-foreground opacity-25 hover:opacity-50`+ : ` bg-scale-700 text-scale-1200 opacity-25 hover:opacity-50`}`}>@@ -200,7 +200,7 @@ const ExitSurveyModal = ({ visible, subscription, onClose }: ExitSurveyModalProp</Modal.Content><div className="flex items-center justify-between border-t px-4 py-4">- <p className="text-xs text-foreground-lighter">+ <p className="text-xs text-scale-900">The unused amount for the remaining of your billing cycle will be refunded as credits</p><div className="flex items-center space-x-2">diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/MembersExceedLimitModal.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/MembersExceedLimitModal.tsxindex ebfb6403d87..7f64080e394 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/MembersExceedLimitModal.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/MembersExceedLimitModal.tsx@@ -25,11 +25,11 @@ const MembersExceedLimitModal = ({ visible, onClose }: MembersExceedLimitModalPr<div className="py-4 space-y-4"><Modal.Content><div className="space-y-2">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">The following members have reached their maximum limits for the number of active freeplan projects within organizations where they are an administrator or owner:</p>- <ul className="pl-5 text-sm list-disc text-foreground-light">+ <ul className="pl-5 text-sm list-disc text-scale-1100">{(membersExceededLimit || []).map((member, idx: number) => (<li key={`member-${idx}`}>{member.username || member.primary_email} (Limit: {member.free_project_limit} free@@ -37,7 +37,7 @@ const MembersExceedLimitModal = ({ visible, onClose }: MembersExceedLimitModalPr</li>))}</ul>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">These members will need to either delete, pause, or upgrade one or more of theseprojects before you're able to downgrade this project.</p>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PaymentMethodSelection.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PaymentMethodSelection.tsxindex 40cbb27233d..2f654f39ffa 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PaymentMethodSelection.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PaymentMethodSelection.tsx@@ -3,13 +3,13 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import { useEffect, useMemo, useState } from 'react'import { useParams } from 'common'-import { AddNewPaymentMethodModal } from 'components/interfaces/BillingV2'import { useOrganizationCustomerProfileQuery } from 'data/organizations/organization-customer-profile-query'import { useOrganizationPaymentMethodsQuery } from 'data/organizations/organization-payment-methods-query'import { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'import { BASE_PATH } from 'lib/constants'import { getURL } from 'lib/helpers'import { Button, IconAlertCircle, IconCreditCard, IconLoader, IconPlus, Listbox } from 'ui'+import { AddNewPaymentMethodModal } from 'components/interfaces/BillingV2'export interface PaymentMethodSelectionProps {selectedPaymentMethod?: string@@ -76,11 +76,11 @@ const PaymentMethodSelection = ({{isLoading ? (<div className="flex items-center px-4 py-2 space-x-4 border rounded-md border-scale-700 bg-scale-400"><IconLoader className="animate-spin" size={14} />- <p className="text-sm text-foreground-light">Retrieving payment methods</p>+ <p className="text-sm text-scale-1100">Retrieving payment methods</p></div>) : paymentMethods.length === 0 ? (<div className="flex items-center justify-between px-4 py-2 border border-dashed rounded-md bg-scale-100">- <div className="flex items-center space-x-4 text-foreground-light">+ <div className="flex items-center space-x-4 text-scale-1100"><IconAlertCircle size={16} strokeWidth={1.5} /><p className="text-sm">No saved payment methods</p></div>@@ -92,7 +92,7 @@ const PaymentMethodSelection = ({disabled={!canUpdatePaymentMethods}icon={<IconCreditCard />}onClick={() => setShowAddNewPaymentMethodModal(true)}- htmlType="button"+ htmlType='button'>Add new</Button>@@ -107,7 +107,7 @@ const PaymentMethodSelection = ({'w-48 border border-scale-200 text-center', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to add new payment methods to thisorganization</span>@@ -153,7 +153,7 @@ const PaymentMethodSelection = ({onClick={() => setShowAddNewPaymentMethodModal(true)}><IconPlus size={16} />- <p className="transition text-foreground-light group-hover:text-foreground">+ <p className="transition text-scale-1000 group-hover:text-scale-1200">Add new payment method</p></div>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsxindex 5e6515bc784..3b3a11436f8 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/PlanUpdateSidePanel.tsx@@ -4,16 +4,10 @@ import clsx from 'clsx'import Link from 'next/link'import { useEffect, useState } from 'react'-import Table from 'components/to-be-cleaned/Table'-import AlertError from 'components/ui/AlertError'-import InformationBox from 'components/ui/InformationBox'import ShimmeringLoader from 'components/ui/ShimmeringLoader'-import { useFreeProjectLimitCheckQuery } from 'data/organizations/free-project-limit-check-query'-import { useOrganizationBillingSubscriptionPreview } from 'data/organizations/organization-billing-subscription-preview'import { useOrgPlansQuery } from 'data/subscriptions/org-plans-query'import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'import { useOrgSubscriptionUpdateMutation } from 'data/subscriptions/org-subscription-update-mutation'-import { SubscriptionTier } from 'data/subscriptions/types'import { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'import { PRICING_TIER_PRODUCT_IDS } from 'lib/constants'import Telemetry from 'lib/telemetry'@@ -26,6 +20,12 @@ import EnterpriseCard from './EnterpriseCard'import ExitSurveyModal from './ExitSurveyModal'import MembersExceedLimitModal from './MembersExceedLimitModal'import PaymentMethodSelection from './PaymentMethodSelection'+import { useFreeProjectLimitCheckQuery } from 'data/organizations/free-project-limit-check-query'+import { useOrganizationBillingSubscriptionPreview } from 'data/organizations/organization-billing-subscription-preview'+import InformationBox from 'components/ui/InformationBox'+import AlertError from 'components/ui/AlertError'+import { SubscriptionTier } from 'data/subscriptions/types'+import Table from 'components/to-be-cleaned/Table'// [Joshen TODO] Need to remove all contexts of "projects"@@ -178,7 +178,7 @@ const PlanUpdateSidePanel = () => {<div className="flex items-center space-x-2"><p className={clsx('text-brand text-sm uppercase')}>{plan.name}</p>{isCurrentPlan ? (- <div className="text-xs bg-scale-500 text-foreground-light rounded px-2 py-0.5">+ <div className="text-xs bg-scale-500 text-scale-1000 rounded px-2 py-0.5">Current plan</div>) : plan.nameBadge ? (@@ -190,15 +190,15 @@ const PlanUpdateSidePanel = () => {)}</div><div className="mt-4 flex items-center space-x-1">- {(price ?? 0) > 0 && <p className="text-foreground-light text-sm">From</p>}+ {(price ?? 0) > 0 && <p className="text-scale-1000 text-sm">From</p>}{isLoadingPlans ? (<div className="h-[28px] flex items-center justify-center"><ShimmeringLoader className="w-[30px] h-[24px]" /></div>) : (- <p className="text-foreground text-lg">${price}</p>+ <p className="text-scale-1200 text-lg">${price}</p>)}- <p className="text-foreground-light text-sm">{tierMeta?.costUnitOrg}</p>+ <p className="text-scale-1000 text-sm">{tierMeta?.costUnitOrg}</p></div><div className={clsx('flex mt-1 mb-4', !tierMeta?.warning && 'opacity-0')}><div className="bg-scale-200 text-brand-600 border shadow-sm rounded-md bg-opacity-30 py-0.5 px-2 text-xs">@@ -252,7 +252,7 @@ const PlanUpdateSidePanel = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You do not have permission to change the subscription plan.</span></div>@@ -274,7 +274,7 @@ const PlanUpdateSidePanel = () => {strokeWidth={3}/></div>- <p className="ml-3 text-xs text-foreground-light">{feature}</p>+ <p className="ml-3 text-xs text-scale-1100">{feature}</p></li>))}</ul>@@ -282,7 +282,7 @@ const PlanUpdateSidePanel = () => {{plan.footer && (<div className="border-t pt-4 mt-4">- <p className="text-foreground-light text-xs">{plan.footer}</p>+ <p className="text-scale-1000 text-xs">{plan.footer}</p></div>)}</div>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/Subscription.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/Subscription.tsxindex bfa1903d67f..b03207f9c34 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/Subscription.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/Subscription/Subscription.tsx@@ -46,7 +46,7 @@ const Subscription = () => {<div className="sticky space-y-6 top-12"><p className="text-base m-0">Subscription Plan</p><div className="space-y-2">- <p className="text-sm text-foreground-light m-0">More information</p>+ <p className="text-sm text-scale-1100 m-0">More information</p><div><Link href="https://supabase.com/pricing"><a target="_blank" rel="noreferrer">@@ -140,7 +140,7 @@ const Subscription = () => {)}>- <div className="text-sm text-foreground-light mr-2">+ <div className="text-sm text-scale-1000 mr-2">When this organization exceeds its{' '}<Link href="#breakdown"><a className="text-sm text-green-900 transition hover:text-green-1000">@@ -172,7 +172,7 @@ const Subscription = () => {'MMM DD')} - ${billingCycleEnd.format('MMM DD')})`}bgClass="bg-gray-300 dark:bg-gray-600"- labelBottomClass="!text-foreground-light pb-1"+ labelBottomClass="!text-scale-1000 pb-1"labelTop={`${daysToCycleEnd} days remaining`}/></div>diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.tsx b/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.tsxindex cf1ca436d83..6f1a45e2baf 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.tsx+++ b/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.tsx@@ -136,11 +136,11 @@ const TaxID = () => {<ScaffoldSectionDetail><div className="sticky space-y-2 top-12"><p className="text-base m-0">Tax ID</p>- <p className="text-sm text-foreground-light pr-4 m-0">+ <p className="text-sm text-scale-1000 pr-4 m-0">If you would like to include specific tax ID(s) to your invoices. Old invoices are notaffected.</p>- <p className="text-sm text-foreground-light m-0">+ <p className="text-sm text-scale-1000 m-0">Make sure the tax ID looks exactly like the placeholder text.</p></div>@@ -232,7 +232,7 @@ const TaxID = () => {</div>) : (<div>- <p className="flex items-center space-x-2 text-sm text-foreground-lighter">+ <p className="flex items-center space-x-2 text-sm text-scale-900">No tax IDs</p></div>diff --git a/studio/components/interfaces/Organization/GeneralSettings/DeleteOrganizationButton.tsx b/studio/components/interfaces/Organization/GeneralSettings/DeleteOrganizationButton.tsxindex 4df0fb11ea4..c1804f245f3 100644--- a/studio/components/interfaces/Organization/GeneralSettings/DeleteOrganizationButton.tsx+++ b/studio/components/interfaces/Organization/GeneralSettings/DeleteOrganizationButton.tsx@@ -65,8 +65,8 @@ const DeleteOrganizationButton = () => {onCancel={() => setIsOpen(false)}header={<div className="flex items-baseline gap-2">- <h5 className="text-sm text-foreground">Delete organization</h5>- <span className="text-xs text-foreground-lighter">Are you sure?</span>+ <h5 className="text-sm text-scale-1200">Delete organisation</h5>+ <span className="text-xs text-scale-900">Are you sure?</span></div>}>@@ -79,9 +79,9 @@ const DeleteOrganizationButton = () => {{() => (<div className="space-y-4 py-3"><Modal.Content>- <p className="text-sm text-foreground-lighter">- This action <span className="text-foreground">cannot</span> be undone. This will- permanently delete the <span className="text-foreground">{orgName}</span>{' '}+ <p className="text-sm text-scale-900">+ This action <span className="text-scale-1200">cannot</span> be undone. This will+ permanently delete the <span className="text-scale-1200">{orgName}</span>{' '}organization and remove all of its projects.</p></Modal.Content>diff --git a/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx b/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsxindex ce482b6c887..69fbf343cf7 100644--- a/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx+++ b/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx@@ -127,13 +127,13 @@ const GeneralSettings = () => {size={16}className={clsx('transition-all', open ? 'rotate-90' : '')}/>- <p className="text-sm text-foreground-light underline">+ <p className="text-sm text-scale-1000 underline">Important information regarding opting in</p></div></Collapsible.Trigger><Collapsible.Content>- <div className="space-y-2 py-4 ml-16 text-sm text-foreground-light">+ <div className="space-y-2 py-4 ml-16 text-sm text-scale-1100"><p>Supabase AI is a chatbot support tool powered by OpenAI. Supabase willshare the query you submit and information about the databases youdiff --git a/studio/components/interfaces/Organization/GeneralSettings/MigrateOrganizationBillingButton.tsx b/studio/components/interfaces/Organization/GeneralSettings/MigrateOrganizationBillingButton.tsxindex a349dc359f5..9843a2aefdb 100644--- a/studio/components/interfaces/Organization/GeneralSettings/MigrateOrganizationBillingButton.tsx+++ b/studio/components/interfaces/Organization/GeneralSettings/MigrateOrganizationBillingButton.tsx@@ -19,12 +19,12 @@ import {} from 'ui'import { SpendCapModal } from 'components/interfaces/BillingV2'-import InformationBox from 'components/ui/InformationBox'import { useOrganizationBillingMigrationMutation } from 'data/organizations/organization-migrate-billing-mutation'import { useOrganizationBillingMigrationPreview } from 'data/organizations/organization-migrate-billing-preview-query'import { useCheckPermissions, useFlag, useSelectedOrganization, useStore } from 'hooks'import { PRICING_TIER_LABELS_ORG } from 'lib/constants'import PaymentMethodSelection from '../BillingSettingsV2/Subscription/PaymentMethodSelection'+import InformationBox from 'components/ui/InformationBox'const MigrateOrganizationBillingButton = observer(() => {const { ui } = useStore()@@ -149,7 +149,7 @@ const MigrateOrganizationBillingButton = observer(() => {'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">{!canMigrateOrg? 'You need additional permissions to migrate this organization': 'Migrations are temporarily disabled, please try again later.'}@@ -168,7 +168,7 @@ const MigrateOrganizationBillingButton = observer(() => {onCancel={toggle}header={<div className="flex items-baseline gap-2">- <h5 className="text-sm text-foreground">Migrate organization</h5>+ <h5 className="text-sm text-scale-1200">Migrate organization</h5></div>}>@@ -207,7 +207,7 @@ const MigrateOrganizationBillingButton = observer(() => {</>)}<Modal.Content>- <div className="text-foreground-light text-sm space-y-2">+ <div className="text-scale-1100 text-sm space-y-2"><p>Migrating to new organization-based billing combines subscriptions for all projectsin the organization into a single subscription.@@ -252,7 +252,7 @@ const MigrateOrganizationBillingButton = observer(() => {})}</Listbox>- <p className="text-sm text-foreground-light mt-4">+ <p className="text-sm text-scale-1100 mt-4">The pricing plan, along with included usage limits will apply to your entireorganization. See{' '}<a@@ -268,7 +268,7 @@ const MigrateOrganizationBillingButton = observer(() => {{tier !== '' && tier !== 'FREE' && (<div className="my-2 space-y-1 pb-4">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Paid plans come with one compute instance included. Additional projects will atleast cost the compute instance hours used (min $10/month). See{' '}<Link href="https://supabase.com/docs/guides/platform/org-based-billing#usage-based-billing-for-compute">@@ -310,7 +310,7 @@ const MigrateOrganizationBillingButton = observer(() => {</div><div className="col-span-12">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">When enabled, usage is limited to the plan's quota, with restrictions whenlimits are exceeded. When disabled, you scale beyond Pro limits withoutrestrictions and pay for over-usage beyond the quota.@@ -412,16 +412,16 @@ const MigrateOrganizationBillingButton = observer(() => {<table className="w-full"><thead><tr className="border-b">- <th className="py-2 font-normal text-left text-sm text-foreground-light w-1/2">+ <th className="py-2 font-normal text-left text-sm text-scale-1000 w-1/2">Item</th>- <th className="py-2 font-normal text-left text-sm text-foreground-light">+ <th className="py-2 font-normal text-left text-sm text-scale-1000">Count</th>- <th className="py-2 font-normal text-left text-sm text-foreground-light">+ <th className="py-2 font-normal text-left text-sm text-scale-1000">Unit price</th>- <th className="py-2 font-normal text-right text-sm text-foreground-light">+ <th className="py-2 font-normal text-right text-sm text-scale-1000">Price</th></tr>@@ -461,7 +461,7 @@ const MigrateOrganizationBillingButton = observer(() => {)}<Modal.Content>- <p className="mb-4 text-sm text-foreground-light">+ <p className="mb-4 text-sm text-scale-1100">The migration can take up to 30 seconds, please do not cancel the request or closeyour browser.</p>diff --git a/studio/components/interfaces/Organization/GeneralSettings/OrganizationBillingMigrationPanel.tsx b/studio/components/interfaces/Organization/GeneralSettings/OrganizationBillingMigrationPanel.tsxindex fd8a63d0404..80a75c570dc 100644--- a/studio/components/interfaces/Organization/GeneralSettings/OrganizationBillingMigrationPanel.tsx+++ b/studio/components/interfaces/Organization/GeneralSettings/OrganizationBillingMigrationPanel.tsx@@ -21,7 +21,7 @@ const OrganizationBillingMigrationPanel = observer(() => {<Panel.Content><div className="flex justify-between gap-12"><div className="space-y-2">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">You will have a single subscription for all projects inside the organization, ratherthan individual subscriptions per project. Migrating to organization-based billingis not reversible.diff --git a/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoSelection.tsx b/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoSelection.tsxindex fca792ca46f..fd695697de0 100644--- a/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoSelection.tsx+++ b/studio/components/interfaces/Organization/IntegrationSettings/SidePanelGitHubRepoSelection.tsx@@ -31,7 +31,7 @@ Check the details below before proceeding/></SidePanel.Content><SidePanel.Content className="flex flex-col gap-2">- <label className="text-sm text-foreground-lighter">GitHub scope / organization</label>+ <label className="text-sm text-scale-900">GitHub scope / organization</label><div className="flex gap-3 w-full"><Select icon={<IconGitHub />} className="w-full"><Select.Option value="mildtomato">MildTomato</Select.Option>diff --git a/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx b/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsxindex ae89f0cc9bc..61a002132ac 100644--- a/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx+++ b/studio/components/interfaces/Organization/InvoicesSettings/InvoicesSettings.tsx@@ -6,14 +6,14 @@ import { InvoiceStatusBadge } from 'components/interfaces/BillingV2'import { InvoiceStatus } from 'components/interfaces/BillingV2/Invoices.types'import { ScaffoldContainerLegacy } from 'components/layouts/Scaffold'import Table from 'components/to-be-cleaned/Table'-import AlertError from 'components/ui/AlertError'import NoPermission from 'components/ui/NoPermission'-import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import { getInvoice } from 'data/invoices/invoice-query'import { useInvoicesCountQuery } from 'data/invoices/invoices-count-query'import { useInvoicesQuery } from 'data/invoices/invoices-query'import { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'-import { Button, IconChevronLeft, IconChevronRight, IconDownload, IconFileText } from 'ui'+import { Button, IconChevronLeft, IconChevronRight, IconDownload, IconFileText, Loading } from 'ui'+import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'+import AlertError from 'components/ui/AlertError'const PAGE_LIMIT = 10@@ -81,7 +81,7 @@ const InvoicesSettings = () => {invoices.length === 0 ? (<Table.tr><Table.td colSpan={6} className="p-3 py-12 text-center">- <p className="text-foreground-light">+ <p className="text-scale-1000">{isLoading ? 'Checking for invoices' : 'No invoices for this organization yet'}</p></Table.td>diff --git a/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx b/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsxindex 3ed13fc6e20..e81f62ed73a 100644--- a/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx+++ b/studio/components/interfaces/Organization/NewOrg/NewOrgForm.tsx@@ -15,7 +15,6 @@ import {Toggle,} from 'ui'-import { useParams } from 'common'import { SpendCapModal } from 'components/interfaces/BillingV2'import InformationBox from 'components/ui/InformationBox'import Panel from 'components/ui/Panel'@@ -24,6 +23,7 @@ import { invalidateOrganizationsQuery } from 'data/organizations/organizations-qimport { useStore } from 'hooks'import { BASE_PATH, PRICING_TIER_LABELS_ORG } from 'lib/constants'import { getURL } from 'lib/helpers'+import { useParams } from 'common'const ORG_KIND_TYPES = {PERSONAL: 'Personal',@@ -183,9 +183,7 @@ const NewOrgForm = ({ onPaymentMethodReset }: NewOrgFormProps) => {Cancel</Button><div className="flex items-center space-x-3">- <p className="text-xs text-foreground-lighter">- You can rename your organization later- </p>+ <p className="text-xs text-scale-900">You can rename your organization later</p><ButtonhtmlType="submit"type="primary"@@ -200,7 +198,7 @@ const NewOrgForm = ({ onPaymentMethodReset }: NewOrgFormProps) => {><Panel.Content className="pt-0"><p className="text-sm">This is your organization within Supabase.</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">For example, you can use the name of your company or department.</p></Panel.Content>diff --git a/studio/components/interfaces/Organization/NewProject/FreeProjectLimitWarning.tsx b/studio/components/interfaces/Organization/NewProject/FreeProjectLimitWarning.tsxindex 6d2cf6b26bb..1d05c9c572c 100644--- a/studio/components/interfaces/Organization/NewProject/FreeProjectLimitWarning.tsx+++ b/studio/components/interfaces/Organization/NewProject/FreeProjectLimitWarning.tsx@@ -18,7 +18,7 @@ const FreeProjectLimitWarning = ({return (<div><InformationBox- icon={<IconAlertCircle className="text-foreground" size="large" strokeWidth={1.5} />}+ icon={<IconAlertCircle className="text-scale-1200" size="large" strokeWidth={1.5} />}defaultVisibility={true}hideCollapsetitle="The organization has members who have exceeded their free project limits"diff --git a/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx b/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsxindex 6fc508b5974..16d4edac3f7 100644--- a/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx+++ b/studio/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails.tsx@@ -15,11 +15,11 @@ const AuthorizeRequesterDetails = ({ icon, name, domain }: AuthorizeRequesterDetbackgroundImage: icon !== null ? `url('${icon}')` : 'none',}}>- {icon === null && <p className="text-foreground-light text-lg">{name[0]}</p>}+ {icon === null && <p className="text-scale-1000 text-lg">{name[0]}</p>}</div></div></div>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">{name} ({domain}) is requesting API access to an organization. The application will be ableto{' '}<span className="text-amber-1200">diff --git a/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx b/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsxindex 2134c6322c1..44d4a7851f1 100644--- a/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx+++ b/studio/components/interfaces/Organization/OAuthApps/OAuthAppRow.tsx@@ -5,11 +5,7 @@ import { copyToClipboard } from 'lib/helpers'import { useState } from 'react'import {Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,IconCheck,IconClipboard,IconEdit,@@ -69,30 +65,22 @@ const OAuthAppRow = ({ app, onSelectEdit, onSelectDelete }: OAuthAppRowProps) =></Table.td><Table.td>{dayjs(app.created_at).format('DD/MM/YYYY, HH:mm:ss')}</Table.td><Table.td align="right">- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button type="default" icon={<IconMoreVertical />} className="px-1" />- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ align="end" side="bottom">- <DropdownMenuItem_Shadcn_- className="space-x-2"- key="edit"- onClick={() => onSelectEdit()}- >- <IconEdit />- <p className="text">Edit app</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuSeparator_Shadcn_ />- <DropdownMenuItem_Shadcn_- className="space-x-2"- key="delete"- onClick={() => onSelectDelete()}- >- <IconTrash />- <p className="text">Delete app</p>- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown+ size="tiny"+ align="end"+ side="bottom"+ overlay={[+ <Dropdown.Item key="edit" icon={<IconEdit />} onClick={() => onSelectEdit()}>+ Edit app+ </Dropdown.Item>,+ <Dropdown.Separator key="separator" />,+ <Dropdown.Item key="delete" icon={<IconTrash />} onClick={() => onSelectDelete()}>+ Delete app+ </Dropdown.Item>,+ ]}+ >+ <Button type="default" icon={<IconMoreVertical />} className="px-1" />+ </Dropdown></Table.td></Table.tr>)diff --git a/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsx b/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsxindex 75cfa26c204..e91586f3899 100644--- a/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsx+++ b/studio/components/interfaces/Organization/OAuthApps/OAuthApps.tsx@@ -1,19 +1,19 @@import { useState } from 'react'import { useParams } from 'common'-import { ScaffoldContainerLegacy } from 'components/layouts/Scaffold'import Table from 'components/to-be-cleaned/Table'import AlertError from 'components/ui/AlertError'import ShimmeringLoader from 'components/ui/ShimmeringLoader'-import { AuthorizedApp, useAuthorizedAppsQuery } from 'data/oauth/authorized-apps-query'import { OAuthAppCreateResponse } from 'data/oauth/oauth-app-create-mutation'import { OAuthApp, useOAuthAppsQuery } from 'data/oauth/oauth-apps-query'import { Alert, Button, IconX, Input } from 'ui'-import AuthorizedAppRow from './AuthorizedAppRow'import DeleteAppModal from './DeleteAppModal'import OAuthAppRow from './OAuthAppRow'import PublishAppModal from './PublishAppSidePanel'+import { AuthorizedApp, useAuthorizedAppsQuery } from 'data/oauth/authorized-apps-query'+import AuthorizedAppRow from './AuthorizedAppRow'import RevokeAppModal from './RevokeAppModal'+import { ScaffoldContainerLegacy } from 'components/layouts/Scaffold'// [Joshen] Note on nav UX// Kang Ming mentioned that it might be better to split Published Apps and Authorized Apps into 2 separate tabs@@ -58,7 +58,7 @@ const OAuthApps = () => {<div className="flex items-center justify-between"><div><p>Published Apps</p>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1000 text-sm">Build integrations that extend Supabase's functionality</p></div>@@ -158,7 +158,7 @@ const OAuthApps = () => {<div><p>Authorized Apps</p>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1000 text-sm">Applications that have access to your organization's settings and projects</p>diff --git a/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel.tsx b/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel.tsxindex 7c654f21967..2ee0a6fe602 100644--- a/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel.tsx+++ b/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel.tsx@@ -10,21 +10,8 @@ import { useOAuthAppUpdateMutation } from 'data/oauth/oauth-app-update-mutation'import { OAuthApp } from 'data/oauth/oauth-apps-query'import { useStore } from 'hooks'import { isValidHttpUrl, uuidv4 } from 'lib/helpers'+import { Badge, Button, Dropdown, Form, IconEdit, IconUpload, Input, Modal, SidePanel } from 'ui'import { uploadAttachment } from 'lib/upload'-import {- Badge,- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- Form,- IconEdit,- IconUpload,- Input,- Modal,- SidePanel,-} from 'ui'import AuthorizeRequesterDetails from './AuthorizeRequesterDetails'export interface PublishAppSidePanelProps {@@ -240,31 +227,33 @@ const PublishAppSidePanel = ({}}><div className="absolute bottom-1 right-1">- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button type="default" icon={<IconEdit />} className="px-1" />- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ align="end" side="bottom">- <DropdownMenuItem_Shadcn_+ <Dropdown+ size="tiny"+ align="end"+ side="bottom"+ overlay={[+ <Dropdown.Itemkey="upload"onClick={() => {if (uploadButtonRef.current)(uploadButtonRef.current as any).click()}}>- <p className="text">Upload image</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuItem_Shadcn_+ Upload image+ </Dropdown.Item>,+ <Dropdown.Itemkey="remove"onClick={() => {setIconFile(undefined)setIconUrl(undefined)}}>- <p className="text">Remove image</p>- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ Remove image+ </Dropdown.Item>,+ ]}+ >+ <Button type="default" icon={<IconEdit />} className="px-1" />+ </Dropdown></div></div>) : (@@ -278,8 +267,8 @@ const PublishAppSidePanel = ({(uploadButtonRef.current as any).click()}}>- <IconUpload size={18} strokeWidth={1.5} className="text-foreground" />- <p className="text-xs text-foreground-light">Upload logo</p>+ <IconUpload size={18} strokeWidth={1.5} className="text-scale-1200" />+ <p className="text-xs text-scale-1100">Upload logo</p></div>)}<input@@ -300,7 +289,7 @@ const PublishAppSidePanel = ({<div className="mb-2 flex items-center justify-between"><div><p className="prose text-sm">Authorization callback URLs</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">All URLs must use HTTPS, except for localhost</p></div>@@ -381,7 +370,7 @@ const PublishAppSidePanel = ({<p className="prose text-sm">Select an organization to grant API access to</p>- <div className="border border-scale-600 text-foreground-light rounded px-4 py-2 text-sm bg-scale-400">+ <div className="border border-scale-600 text-scale-1000 rounded px-4 py-2 text-sm bg-scale-400">Organizations that you have access to will be listed here</div></div>diff --git a/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx b/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsxindex 699bec7fd3f..9d01e5e1dcb 100644--- a/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx+++ b/studio/components/interfaces/Organization/TeamSettings/InviteMemberButton.tsx@@ -108,7 +108,7 @@ const InviteMemberButton = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to invite a member to this organization</span></div>diff --git a/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx b/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsxindex 94539b0700c..180f16f771a 100644--- a/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx+++ b/studio/components/interfaces/Organization/TeamSettings/MemberActions.tsx@@ -1,5 +1,6 @@import * as Tooltip from '@radix-ui/react-tooltip'import { PermissionAction } from '@supabase/shared-types/out/constants'+import { observer } from 'mobx-react-lite'import { useParams } from 'common/hooks'import { confirmAlert } from 'components/to-be-cleaned/ModalsDeprecated/ConfirmModal'@@ -8,18 +9,8 @@ import { useOrganizationMemberInviteCreateMutation } from 'data/organizations/orimport { useOrganizationMemberInviteDeleteMutation } from 'data/organizations/organization-member-invite-delete-mutation'import { usePermissionsQuery } from 'data/permissions/permissions-query'import { useCheckPermissions, useSelectedOrganization, useStore } from 'hooks'-import { observer } from 'mobx-react-lite'import { Member, Role } from 'types'-import {- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconMoreHorizontal,- IconTrash,-} from 'ui'+import { Button, Dropdown, IconMoreHorizontal, IconTrash } from 'ui'import { isInviteExpired } from '../Organization.utils'import { useGetRolesManagementPermissions } from './TeamSettings.utils'@@ -51,7 +42,7 @@ const MemberActions = ({ member, roles }: MemberActionsProps) => {resource: { role_id: roleId },})- const { mutate: deleteOrganizationMember, isLoading: isDeletingMember } =+ const { mutate: deleteOrganizationMember, isLoading: isOrganizationMemberDeleteLoading } =useOrganizationMemberDeleteMutation({onSuccess: () => {ui.setNotification({@@ -61,21 +52,29 @@ const MemberActions = ({ member, roles }: MemberActionsProps) => {},})- const { mutate: createOrganizationMemberInvite, isLoading: isCreatingInvite } =- useOrganizationMemberInviteCreateMutation({- onSuccess: () => {- ui.setNotification({ category: 'success', message: 'Resent the invitation.' })- },- onError: (error) => {- ui.setNotification({- category: 'error',- message: `Failed to resend invitation: ${error.message}`,- })- },- })+ const {+ mutate: createOrganizationMemberInvite,+ isLoading: isOrganizationMemberInviteCreateLoading,+ } = useOrganizationMemberInviteCreateMutation({+ onSuccess: () => {+ ui.setNotification({ category: 'success', message: 'Resent the invitation.' })+ },+ onError: (error) => {+ ui.setNotification({+ category: 'error',+ message: `Failed to resend invitation: ${error.message}`,+ })+ },+ })- const { mutateAsync: asyncDeleteMemberInvite, isLoading: isDeletingInvite } =- useOrganizationMemberInviteDeleteMutation()+ const {+ mutate: deleteOrganizationMemberInvite,+ isLoading: isOrganizationMemberInviteDeleteLoading,+ } = useOrganizationMemberInviteDeleteMutation({+ onSuccess: () => {+ ui.setNotification({ category: 'success', message: 'Successfully revoked the invitation.' })+ },+ })const handleMemberDelete = async () => {confirmAlert({@@ -90,17 +89,13 @@ const MemberActions = ({ member, roles }: MemberActionsProps) => {}const handleResendInvite = async (member: Member) => {- const roleId = (member?.role_ids ?? [])[0]- const invitedId = member.invited_id-if (!slug) return console.error('Slug is required')- if (!invitedId) return console.error('Member invited ID is required')-- await asyncDeleteMemberInvite({ slug, invitedId, invalidateDetail: false })+ if (!member.invited_id) return console.error('Member invited ID is required')+ const roleId = (member?.role_ids ?? [])[0]createOrganizationMemberInvite({slug,invitedEmail: member.primary_email,- ownerId: invitedId,+ ownerId: member.invited_id,roleId: roleId,})}@@ -109,12 +104,7 @@ const MemberActions = ({ member, roles }: MemberActionsProps) => {const invitedId = member.invited_idif (!slug) return console.error('Slug is required')if (!invitedId) return console.error('Member invited ID is required')-- await asyncDeleteMemberInvite({ slug, invitedId })- ui.setNotification({- category: 'success',- message: 'Successfully revoked the invitation.',- })+ deleteOrganizationMemberInvite({ slug, invitedId })}if (!canRemoveMember || (isPendingInviteAcceptance && !canResendInvite && !canRevokeInvite)) {@@ -133,7 +123,7 @@ const MemberActions = ({ member, roles }: MemberActionsProps) => {'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to manage this team member</span></div>@@ -144,56 +134,59 @@ const MemberActions = ({ member, roles }: MemberActionsProps) => {)}- const isLoading = isDeletingMember || isDeletingInvite || isCreatingInvite+ const isLoading =+ isOrganizationMemberDeleteLoading ||+ isOrganizationMemberInviteDeleteLoading ||+ isOrganizationMemberInviteCreateLoadingreturn (<div className="flex items-center justify-end">- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- asChild- type="text"- disabled={isLoading}- loading={isLoading}- icon={<IconMoreHorizontal />}- >- <span></span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="end">+ <Dropdown+ side="bottom"+ align="end"+ size="small"+ overlay={<>{isPendingInviteAcceptance ? (<>{canRevokeInvite && (- <DropdownMenuItem_Shadcn_ onClick={() => handleRevokeInvitation(member)}>+ <Dropdown.Item onClick={() => handleRevokeInvitation(member)}><div className="flex flex-col"><p>Cancel invitation</p><p className="block opacity-50">Revoke this invitation.</p></div>- </DropdownMenuItem_Shadcn_>+ </Dropdown.Item>)}- {/* canResendInvite && isExpired */}- {true && (+ {canResendInvite && isExpired && (<>- <DropdownMenuSeparator_Shadcn_ />- <DropdownMenuItem_Shadcn_ onClick={() => handleResendInvite(member)}>+ <Dropdown.Separator />+ <Dropdown.Item onClick={() => handleResendInvite(member)}><div className="flex flex-col"><p>Resend invitation</p><p className="block opacity-50">Invites expire after 24hrs.</p></div>- </DropdownMenuItem_Shadcn_>+ </Dropdown.Item></>)}</>) : (- <DropdownMenuItem_Shadcn_ className="space-x-2" onClick={handleMemberDelete}>- <IconTrash size={16} />- <p className="text">Remove member</p>- </DropdownMenuItem_Shadcn_>+ <Dropdown.Item icon={<IconTrash size={16} />} onClick={handleMemberDelete}>+ <p>Remove member</p>+ </Dropdown.Item>)}</>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ }+ >+ <Button+ asChild+ type="text"+ disabled={isLoading}+ loading={isLoading}+ icon={<IconMoreHorizontal />}+ >+ <span></span>+ </Button>+ </Dropdown></div>)}diff --git a/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx b/studio/components/interfaces/Organization/TeamSettings/MembersView.tsxindex c41b258a3b6..8d30a6d915b 100644--- a/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx+++ b/studio/components/interfaces/Organization/TeamSettings/MembersView.tsx@@ -173,7 +173,7 @@ const MembersView = ({ searchString }: MembersViewProps) => {<IconUser size={20} strokeWidth={2} /></span>) : isEmailUser ? (- <div className="w-[40px] h-[40px] bg-scale-300 border border-scale-400 rounded-full text-foreground-lighter flex items-center justify-center">+ <div className="w-[40px] h-[40px] bg-scale-300 border border-scale-400 rounded-full text-scale-900 flex items-center justify-center"><IconUser strokeWidth={1.5} /></div>) : (@@ -187,9 +187,9 @@ const MembersView = ({ searchString }: MembersViewProps) => {)}</div><div>- <p className="text-foreground">{getUserDisplayName(x)}</p>+ <p className="text-scale-1200">{getUserDisplayName(x)}</p>{x.invited_id === undefined && (- <p className="text-foreground-light">{x.primary_email}</p>+ <p className="text-scale-1100">{x.primary_email}</p>)}</div></div>@@ -240,7 +240,7 @@ const MembersView = ({ searchString }: MembersViewProps) => {'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">Role can only be changed after the user has accepted theinvite</span>@@ -257,7 +257,7 @@ const MembersView = ({ searchString }: MembersViewProps) => {'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to manage this team member</span></div>@@ -269,7 +269,7 @@ const MembersView = ({ searchString }: MembersViewProps) => {</Tooltip.Root>) : (<div className="flex items-center space-x-2">- <p className="text-sm text-foreground-light">Invalid role</p>+ <p className="text-sm text-scale-1100">Invalid role</p><Tooltip.Root delayDuration={0}><Tooltip.Trigger><IconAlertCircle size={16} strokeWidth={1.5} />@@ -283,7 +283,7 @@ const MembersView = ({ searchString }: MembersViewProps) => {'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">This user has an invalid role, please reach out to us viasupport</span>@@ -310,7 +310,7 @@ const MembersView = ({ searchString }: MembersViewProps) => {<Table.td colSpan={12}><div className="flex items-center space-x-3 opacity-75"><IconAlertCircle size={16} strokeWidth={2} />- <p className="text-foreground-light">+ <p className="text-scale-1100">No users matched the search query "{searchString}"</p></div>@@ -323,7 +323,7 @@ const MembersView = ({ searchString }: MembersViewProps) => {className="bg-panel-secondary-light dark:bg-panel-secondary-dark"><Table.td colSpan={4}>- <p className="text-foreground-light">+ <p className="text-scale-1100">{searchString ? `${filteredMembers.length} of ` : ''}{members.length || '0'} {members.length == 1 ? 'user' : 'users'}</p>@@ -344,14 +344,14 @@ const MembersView = ({ searchString }: MembersViewProps) => {><div className="flex flex-col gap-2 py-4"><Modal.Content>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">You are changing the role of{' '}- <span className="text-foreground">{getUserDisplayName(selectedMember)}</span> from{' '}- <span className="text-foreground">{getRoleNameById(selectedMember?.oldRoleId)}</span>{' '}+ <span className="text-scale-1200">{getUserDisplayName(selectedMember)}</span> from{' '}+ <span className="text-scale-1200">{getRoleNameById(selectedMember?.oldRoleId)}</span>{' '}to{' '}- <span className="text-foreground">{getRoleNameById(selectedMember?.newRoleId)}</span>+ <span className="text-scale-1200">{getRoleNameById(selectedMember?.newRoleId)}</span></p>- <p className="mt-3 text-sm text-foreground">+ <p className="mt-3 text-sm text-scale-1200">By changing the role of this member their permissions will change.</p></Modal.Content>diff --git a/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsx b/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsxindex cdb4996658b..0a0024a4a99 100644--- a/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsx+++ b/studio/components/interfaces/Organization/TeamSettings/RolesHelperModal/RolesHelperModal.tsx@@ -25,7 +25,7 @@ const RolesHelperModal = () => {'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">Only available in Team/Enterprise plan.</span>+ <span className="text-xs text-scale-1200">Only available in Team/Enterprise plan.</span></div></Tooltip.Content></Tooltip.Portal>@@ -37,7 +37,7 @@ const RolesHelperModal = () => {<IconHelpCirclesize={16}strokeWidth={1.5}- className="cursor-pointer transition hover:text-foreground"+ className="cursor-pointer transition hover:text-scale-1200"onClick={() => setShowModal(!showModal)}/><Modaldiff --git a/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx b/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsxindex 3550faf55ec..fb50d911e68 100644--- a/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx+++ b/studio/components/interfaces/Organization/TeamSettings/TeamSettings.tsx@@ -124,7 +124,7 @@ const TeamSettings = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">An organization requires at least 1 owner</span></div>diff --git a/studio/components/interfaces/Organization/Usage/SectionContent.tsx b/studio/components/interfaces/Organization/Usage/SectionContent.tsxindex 05e76ef2d14..a316df9e863 100644--- a/studio/components/interfaces/Organization/Usage/SectionContent.tsx+++ b/studio/components/interfaces/Organization/Usage/SectionContent.tsx@@ -1,8 +1,8 @@-import { ScaffoldContainer, ScaffoldDivider } from 'components/layouts/Scaffold'-import Link from 'next/link'import { PropsWithChildren } from 'react'import { Badge, IconExternalLink } from 'ui'import { CategoryAttribute } from './Usage.constants'+import Link from 'next/link'+import { ScaffoldContainer, ScaffoldDivider } from 'components/layouts/Scaffold'export interface SectionContent {section: CategoryAttribute@@ -30,7 +30,7 @@ const SectionContent = ({</div><div className="grid gap-4">{description.split('\n').map((value, idx) => (- <p key={`desc-${idx}`} className="text-sm text-foreground-light pr-8">+ <p key={`desc-${idx}`} className="text-sm text-scale-1000 pr-8">{value}</p>))}@@ -38,7 +38,7 @@ const SectionContent = ({</div>{links && links.length && (<div className="space-y-2">- <p className="text-sm text-foreground dark:text-foreground-light mb-2">+ <p className="text-sm text-scale-1200 dark:text-scale-1100 mb-2">More information</p>{links.map((link) => (diff --git a/studio/components/interfaces/Organization/Usage/SectionHeader.tsx b/studio/components/interfaces/Organization/Usage/SectionHeader.tsxindex f896bf6d4be..0b7a5c43bb7 100644--- a/studio/components/interfaces/Organization/Usage/SectionHeader.tsx+++ b/studio/components/interfaces/Organization/Usage/SectionHeader.tsx@@ -8,7 +8,7 @@ const SectionHeader = ({ title, description }: SectionHeaderProps) => {<div className="mx-auto flex flex-col gap-10 py-14"><div><p className="text-xl">{title}</p>- <p className="text-sm text-foreground-light">{description}</p>+ <p className="text-sm text-scale-1000">{description}</p></div></div>)diff --git a/studio/components/interfaces/Organization/Usage/Usage.tsx b/studio/components/interfaces/Organization/Usage/Usage.tsxindex 3b4ceb6ea50..34942cc2873 100644--- a/studio/components/interfaces/Organization/Usage/Usage.tsx+++ b/studio/components/interfaces/Organization/Usage/Usage.tsx@@ -6,18 +6,18 @@ import { useParams } from 'common'import { ScaffoldContainer } from 'components/layouts/Scaffold'import DateRangePicker from 'components/to-be-cleaned/DateRangePicker'import AlertError from 'components/ui/AlertError'-import InformationBox from 'components/ui/InformationBox'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import { useProjectsQuery } from 'data/projects/projects-query'import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'-import { useOrgUsageQuery } from 'data/usage/org-usage-query'import { useSelectedOrganization } from 'hooks'import { TIME_PERIODS_BILLING, TIME_PERIODS_REPORTS } from 'lib/constants'-import Link from 'next/link'import { Alert, Button, IconExternalLink, IconInfo, Listbox } from 'ui'import Activity from './Activity'import Bandwidth from './Bandwidth'import SizeAndCounts from './SizeAndCounts'+import InformationBox from 'components/ui/InformationBox'+import Link from 'next/link'+import { useOrgUsageQuery } from 'data/usage/org-usage-query'const Usage = () => {const { slug, projectRef } = useParams()@@ -157,7 +157,7 @@ const Usage = () => {<p className={clsx('text-sm transition', isLoadingSubscription && 'opacity-50')}>Organization is on the {subscription.plan.name} plan</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">{billingCycleStart.format('DD MMM YYYY')} -{' '}{billingCycleEnd.format('DD MMM YYYY')}</p>diff --git a/studio/components/interfaces/Organization/Usage/UsageBarChart.tsx b/studio/components/interfaces/Organization/Usage/UsageBarChart.tsxindex d2253be4ccf..337f43e6edd 100644--- a/studio/components/interfaces/Organization/Usage/UsageBarChart.tsx+++ b/studio/components/interfaces/Organization/Usage/UsageBarChart.tsx@@ -1,6 +1,4 @@-import clsx from 'clsx'import { DataPoint } from 'data/analytics/constants'-import dayjs from 'dayjs'import {Bar,CartesianGrid,@@ -11,7 +9,9 @@ import {XAxis,YAxis,} from 'recharts'-import { Attribute, COLOR_MAP } from './Usage.constants'+import dayjs from 'dayjs'+import clsx from 'clsx'+import { COLOR_MAP, Attribute } from './Usage.constants'import { MultiAttributeTooltipContent, SingleAttributeTooltipContent } from './UsageChartTooltips'// [Joshen] This BarChart is specifically for usage, hence not a reusable component, and not@@ -83,7 +83,7 @@ const UsageBarChart = ({isAfterToday={isAfterToday}/>)}- <p className="text-xs text-foreground-light mt-1">+ <p className="text-xs text-scale-1100 mt-1">{dataPeriod.format('DD MMM YYYY')}</p></div>diff --git a/studio/components/interfaces/Organization/Usage/UsageChartTooltips.tsx b/studio/components/interfaces/Organization/Usage/UsageChartTooltips.tsxindex a10feab2f63..6a0a5680f45 100644--- a/studio/components/interfaces/Organization/Usage/UsageChartTooltips.tsx+++ b/studio/components/interfaces/Organization/Usage/UsageChartTooltips.tsx@@ -20,9 +20,9 @@ export const SingleAttributeTooltipContent = ({const formattedValue = unit === 'percentage' ? Number(value).toFixed(2) : Number(value)return (<>- <p className="text-xs text-foreground-light">{name}</p>+ <p className="text-xs text-scale-1000">{name}</p>{isAfterToday ? (- <p className="text-foreground-light text-lg">No data yet</p>+ <p className="text-scale-1000 text-lg">No data yet</p>) : (<p className="text-xl">{tooltipFormatter !== undefined ? tooltipFormatter(formattedValue) : formattedValue}@@ -78,7 +78,7 @@ export const MultiAttributeTooltipContent = ({return (<>{isAfterToday ? (- <p className="text-foreground-light text-lg">No data yet</p>+ <p className="text-scale-1000 text-lg">No data yet</p>) : (<div className="space-y-1 pb-1">{attributes.flatMap((attr) => {diff --git a/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx b/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsxindex 68ba64fe10c..0f0eac9c854 100644--- a/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx+++ b/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx@@ -9,7 +9,6 @@ import SparkBar from 'components/ui/SparkBar'import { OrgSubscription } from 'data/subscriptions/org-subscription-query'import { OrgUsageResponse, UsageMetric } from 'data/usage/org-usage-query'import { USAGE_APPROACHING_THRESHOLD } from 'lib/constants'-import { useMemo } from 'react'import { ResponseError } from 'types'import { Button, IconAlertTriangle, IconBarChart2 } from 'ui'import SectionContent from '../SectionContent'@@ -21,6 +20,7 @@ import {} from '../Usage.utils'import UsageBarChart from '../UsageBarChart'import { ChartMeta } from './UsageSection'+import { useMemo } from 'react'export interface AttributeUsageProps {slug: string@@ -134,11 +134,11 @@ const AttributeUsage = ({'border border-scale-200',].join(' ')}>- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">Exceeding your plans included usage will lead to restrictions toyour project.</p>- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">Upgrade to a usage-based plan or disable the spend cap to avoidrestrictions.</p>@@ -184,7 +184,7 @@ const AttributeUsage = ({{<div><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-foreground-light">+ <p className="text-xs text-scale-1000">Included in {subscription?.plan?.name.toLowerCase()} plan</p>{usageMeta.unlimited ? (@@ -199,7 +199,7 @@ const AttributeUsage = ({</div>{currentBillingCycleSelected && (<div className="flex items-center justify-between py-1">- <p className="text-xs text-foreground-light">+ <p className="text-xs text-scale-1000">{attribute.chartPrefix || 'Used '} in period</p><p className="text-xs">@@ -212,7 +212,7 @@ const AttributeUsage = ({{currentBillingCycleSelected &&(usageMeta?.pricing_free_units ?? 0) > 0 && (<div className="flex items-center justify-between border-t py-1">- <p className="text-xs text-foreground-light">Overage in period</p>+ <p className="text-xs text-scale-1000">Overage in period</p><p className="text-xs">{(usageMeta?.pricing_free_units ?? 0) === -1 || usageExcess < 0? `0${attribute.unit === 'bytes' ? ' GB' : ''}`@@ -234,7 +234,7 @@ const AttributeUsage = ({{attribute.chartPrefix || ''} {attribute.name} per day</p>{attribute.chartDescription.split('\n').map((paragraph, idx) => (- <p key={`para-${idx}`} className="text-sm text-foreground-light">+ <p key={`para-${idx}`} className="text-sm text-scale-1000">{paragraph}</p>))}@@ -259,11 +259,9 @@ const AttributeUsage = ({<Panel><Panel.Content><div className="flex flex-col items-center justify-center">- <IconBarChart2 className="text-foreground-light mb-2" />+ <IconBarChart2 className="text-scale-1100 mb-2" /><p className="text-sm">No data in period</p>- <p className="text-sm text-foreground-light">- May take up to 24 hours to show- </p>+ <p className="text-sm text-scale-1000">May take up to 24 hours to show</p></div></Panel.Content></Panel>@@ -276,7 +274,7 @@ const AttributeUsage = ({<div className="space-y-1"><p className="text-sm">Not included in plan</p><div>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">You need to be on a higher plan in order to use this feature.</p></div>diff --git a/studio/components/interfaces/Reports/ReportFilterBar.tsx b/studio/components/interfaces/Reports/ReportFilterBar.tsxindex abb2cf6d321..7cfae6d89a5 100644--- a/studio/components/interfaces/Reports/ReportFilterBar.tsx+++ b/studio/components/interfaces/Reports/ReportFilterBar.tsx@@ -1,12 +1,7 @@import { ComponentProps, useState } from 'react'import {Button,- cn,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,IconBox,IconChevronDown,IconCode,@@ -152,52 +147,54 @@ const ReportFilterBar = ({from={datepickerFrom}helpers={datepickerHelpers}/>- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- asChild- type="default"- className="inline-flex flex-row gap-2"- iconRight={<IconChevronDown size={14} />}- >- <span>- {currentProductFilter === null ? 'All Requests' : currentProductFilter.label}- </span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="start">- <DropdownMenuItem_Shadcn_ onClick={() => handleProductFilterChange(null)}>- <p className="text">All Requests</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuSeparator_Shadcn_ />- {PRODUCT_FILTERS.map((productFilter) => {- const Icon = productFilter.icon- return (- <DropdownMenuItem_Shadcn_- key={productFilter.key}- className="space-x-2"- disabled={productFilter.key === currentProductFilter?.key}- onClick={() => handleProductFilterChange(productFilter)}- >- <Icon size={20} className="mr-2" />- <div className="flex flex-col">+ <Dropdown+ size="small"+ side="bottom"+ align="start"+ overlay={+ <>+ <Dropdown.Item onClick={() => handleProductFilterChange(null)}>+ All Requests+ </Dropdown.Item>+ <Dropdown.Separator />++ {PRODUCT_FILTERS.map((productFilter) => {+ const Icon = productFilter.icon+ return (+ <Dropdown.Item+ key={productFilter.key}+ disabled={productFilter.key === currentProductFilter?.key}+ onClick={() => handleProductFilterChange(productFilter)}+ icon={<Icon size={20} className="mr-2" />}+ ><p- className={cn(+ className={[productFilter.key === currentProductFilter?.key ? 'font-bold' : '',- 'inline-block'- )}+ 'inline-block',+ ].join(' ')}>{productFilter.label}</p>- <p className=" text-left text-foreground-light inline-block w-[180px]">+ <p className=" text-left text-scale-1000 inline-block w-[180px]">{productFilter.description}</p>- </div>- </DropdownMenuItem_Shadcn_>- )- })}- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ </Dropdown.Item>+ )+ })}+ </>+ }+ >+ <Button+ asChild+ type="default"+ className="inline-flex flex-row gap-2"+ iconRight={<IconChevronDown size={14} />}+ >+ <span>+ {currentProductFilter === null ? 'All Requests' : currentProductFilter.label}+ </span>+ </Button>+ </Dropdown>{filters.filter((filter) =>@@ -215,7 +212,7 @@ const ReportFilterBar = ({size="tiny"className="!p-0 !space-x-0"onClick={() => onRemoveFilters([filter])}- icon={<IconX size="tiny" className="text-foreground-light" />}+ icon={<IconX size="tiny" className="text-scale-1100" />}><span className="sr-only">Remove</span></Button>@@ -225,7 +222,7 @@ const ReportFilterBar = ({align="end"header={<div className="flex justify-between items-center py-1">- <h5 className="text-sm text-foreground">Add Filter</h5>+ <h5 className="text-sm text-scale-1200">Add Filter</h5><Buttontype="primary"@@ -295,7 +292,7 @@ const ReportFilterBar = ({asChildtype="default"size="tiny"- icon={<IconPlus size="tiny" className={`text-foreground-light `} />}+ icon={<IconPlus size="tiny" className={`text-scale-1100 `} />}><span>Add filter</span></Button>diff --git a/studio/components/interfaces/Reports/ReportHeader.tsx b/studio/components/interfaces/Reports/ReportHeader.tsxindex bfe2a5fbd3d..62b51c36035 100644--- a/studio/components/interfaces/Reports/ReportHeader.tsx+++ b/studio/components/interfaces/Reports/ReportHeader.tsx@@ -8,7 +8,7 @@ interface Props {const ReportHeader: React.FC<Props> = ({ title, onRefresh, isLoading }) => (<div className="flex flex-row justify-between gap-4 items-center">- <h1 className="text-2xl text-foreground">{title}</h1>+ <h1 className="text-2xl text-scale-1200">{title}</h1><Buttontype="default"size="tiny"@@ -17,7 +17,7 @@ const ReportHeader: React.FC<Props> = ({ title, onRefresh, isLoading }) => (icon={<IconRefreshCwsize="tiny"- className={`text-foreground-light ${isLoading ? 'animate-spin' : ''}`}+ className={`text-scale-1100 ${isLoading ? 'animate-spin' : ''}`}/>}>diff --git a/studio/components/interfaces/Reports/ReportWidget.tsx b/studio/components/interfaces/Reports/ReportWidget.tsxindex ed36af0b3ce..6ada6bc5b4c 100644--- a/studio/components/interfaces/Reports/ReportWidget.tsx+++ b/studio/components/interfaces/Reports/ReportWidget.tsx@@ -1,9 +1,9 @@-import * as Tooltip from '@radix-ui/react-tooltip'-import Panel from 'components/ui/Panel'import { NextRouter, useRouter } from 'next/router'+import * as Tooltip from '@radix-ui/react-tooltip'import { Button, IconExternalLink, IconHelpCircle, Loading } from 'ui'-import { LogsEndpointParams } from '../Settings/Logs'import { BaseReportParams } from './Reports.types'+import { LogsEndpointParams } from '../Settings/Logs'+import Panel from 'components/ui/Panel'export interface ReportWidgetProps<T = any> {data: T[]@@ -45,11 +45,7 @@ const ReportWidget: React.FC<ReportWidgetProps> = (props) => {{props?.tooltip && (<Tooltip.Root delayDuration={0}><Tooltip.Trigger>- <IconHelpCircle- className="text-foreground-light"- size="tiny"- strokeWidth={1.5}- />+ <IconHelpCircle className="text-scale-1100" size="tiny" strokeWidth={1.5} /></Tooltip.Trigger><Tooltip.Portal><Tooltip.Content side="bottom">@@ -60,14 +56,14 @@ const ReportWidget: React.FC<ReportWidgetProps> = (props) => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">{props.tooltip}</span>+ <span className="text-xs text-scale-1200">{props.tooltip}</span></div></Tooltip.Content></Tooltip.Portal></Tooltip.Root>)}</div>- <p className="text-sm text-foreground-light">{props.description}</p>+ <p className="text-sm text-scale-1100">{props.description}</p></div>{props.params && (<Tooltip.Root delayDuration={0}>@@ -97,7 +93,7 @@ const ReportWidget: React.FC<ReportWidgetProps> = (props) => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">Open in Logs Explorer</span>+ <span className="text-xs text-scale-1200">Open in Logs Explorer</span></div></Tooltip.Content></Tooltip.Portal>diff --git a/studio/components/interfaces/Reports/Reports.tsx b/studio/components/interfaces/Reports/Reports.tsxindex 06b5c4e2dd6..f08e517394c 100644--- a/studio/components/interfaces/Reports/Reports.tsx+++ b/studio/components/interfaces/Reports/Reports.tsx@@ -7,15 +7,9 @@ import { useEffect, useState } from 'react'import {Badge,Button,- DropdownMenuCheckboxItem_Shadcn_,- DropdownMenuContent_Shadcn_,- DropdownMenuPortal_Shadcn_,- DropdownMenuSubContent_Shadcn_,- DropdownMenuSubTrigger_Shadcn_,- DropdownMenuSub_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,IconArrowRight,+ IconChevronRight,IconHome,IconPlus,IconSave,@@ -27,7 +21,7 @@ import DateRangePicker from 'components/to-be-cleaned/DateRangePicker'import Loading from 'components/ui/Loading'import NoPermission from 'components/ui/NoPermission'import { useCheckPermissions } from 'hooks'-import { METRICS, METRIC_CATEGORIES, TIME_PERIODS_REPORTS } from 'lib/constants'+import { METRIC_CATEGORIES, METRICS, TIME_PERIODS_REPORTS } from 'lib/constants'import { uuidv4 } from 'lib/helpers'import { useProfile } from 'lib/profile'import { useProjectContentStore } from 'stores/projectContentStore'@@ -273,29 +267,35 @@ const Reports = () => {<>{Object.values(METRIC_CATEGORIES).map((cat) => {return (- <DropdownMenuSub_Shadcn_ key={cat.key}>- <DropdownMenuSubTrigger_Shadcn_ className="space-x-2">- {cat.icon ? cat.icon : <IconHome size="tiny" />}- <p>{cat.label}</p>- </DropdownMenuSubTrigger_Shadcn_>- <DropdownMenuPortal_Shadcn_>- <DropdownMenuSubContent_Shadcn_>- {METRICS.filter((metric) => metric?.category?.key === cat.key).map((metric) => {- return (- <DropdownMenuCheckboxItem_Shadcn_- key={metric.key}- checked={config.layout?.some((x: any) => x.attribute === metric.key)}- onCheckedChange={(e) => handleChartSelection({ metric, value: e })}- >- <div className="flex flex-col space-y-0">- <span>{metric.label}</span>- </div>- </DropdownMenuCheckboxItem_Shadcn_>- )- })}- </DropdownMenuSubContent_Shadcn_>- </DropdownMenuPortal_Shadcn_>- </DropdownMenuSub_Shadcn_>+ <>+ <Dropdown+ isNested+ overlay={+ <>+ {METRICS.filter((metric) => metric?.category?.key === cat.key).map((metric) => {+ return (+ <Dropdown.Checkbox+ key={metric.key}+ checked={config.layout?.some((x: any) => x.attribute === metric.key)}+ onChange={(e) => handleChartSelection({ metric, value: e })}+ >+ <div className="flex flex-col space-y-0">+ <span>{metric.label}</span>+ </div>+ </Dropdown.Checkbox>+ )+ })}+ </>+ }+ >+ <Dropdown.TriggerItem icon={cat.icon ? cat.icon : <IconHome size="tiny" />}>+ {cat.label}+ <Dropdown.RightSlot>+ <IconChevronRight size={14} />+ </Dropdown.RightSlot>+ </Dropdown.TriggerItem>+ </Dropdown>+ </>)})}</>@@ -304,7 +304,7 @@ const Reports = () => {return (<div className="mx-6 flex flex-col space-y-4" style={{ maxHeight: '100%' }}>- <h1 className="text-xl text-foreground">Reports</h1>+ <h1 className="text-xl text-scale-1200">Reports</h1><div className="mb-4 flex items-center justify-between space-x-3"><div className="flex items-center space-x-3">@@ -317,13 +317,13 @@ const Reports = () => {{startDate && endDate && (<div className="hidden items-center space-x-1 lg:flex ">- <span className="text-sm text-foreground-light">+ <span className="text-sm text-scale-1100">{dayjs(startDate).format('MMM D, YYYY')}</span>- <span className="text-foreground-lighter">+ <span className="text-scale-900"><IconArrowRight size={12} /></span>- <span className="text-sm text-foreground-light">+ <span className="text-sm text-scale-1100">{dayjs(endDate).format('MMM D, YYYY')}</span></div>@@ -349,16 +349,11 @@ const Reports = () => {)}{canUpdateReport ? (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button asChild type="default" iconRight={<IconSettings />}>- <span>Add / Remove charts</span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="end">- <MetricOptions />- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown side="bottom" align="end" overlay={<MetricOptions />}>+ <Button asChild type="default" iconRight={<IconSettings />}>+ <span>Add / Remove charts</span>+ </Button>+ </Dropdown>) : (<Tooltip.Root delayDuration={0}><Tooltip.Trigger asChild>@@ -375,7 +370,7 @@ const Reports = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to update this project's report</span></div>@@ -389,20 +384,15 @@ const Reports = () => {{config.layout.length <= 0 ? (<div className="flex min-h-full items-center justify-center rounded border-2 border-dashed p-16 dark:border-dark">{canUpdateReport ? (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button asChild type="default" iconRight={<IconPlus />}>- <span>- {config.layout.length <= 0 ? 'Add your first chart' : 'Add another chart'}- </span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="center">- <MetricOptions />- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown side="bottom" align="center" overlay={<MetricOptions />}>+ <Button asChild type="default" iconRight={<IconPlus />}>+ <span>+ {config.layout.length <= 0 ? 'Add your first chart' : 'Add another chart'}+ </span>+ </Button>+ </Dropdown>) : (- <p className="text-sm text-foreground-light">No charts set up yet in report</p>+ <p className="text-sm text-scale-1000">No charts set up yet in report</p>)}</div>) : (diff --git a/studio/components/interfaces/Reports/Statistic.tsx b/studio/components/interfaces/Reports/Statistic.tsxindex 92211cd5053..3cc6cd8bdac 100644--- a/studio/components/interfaces/Reports/Statistic.tsx+++ b/studio/components/interfaces/Reports/Statistic.tsx@@ -29,7 +29,7 @@ const Statistic: React.FC<Props> = ({<div className="w-full"><div className="flex flex-row justify-center"><span>{prefix}</span>- <span className="text-3xl text-foreground">{value}</span>+ <span className="text-3xl text-scale-1200">{value}</span><span>{suffix}</span></div>{startingValue && (diff --git a/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx b/studio/components/interfaces/Reports/renderers/ApiRenderers.tsxindex 3451350ac98..8d72a882657 100644--- a/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx+++ b/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx@@ -1,15 +1,15 @@+import { ReportWidgetProps, ReportWidgetRendererProps } from '../ReportWidget'+import BarChart from 'components/ui/Charts/BarChart'+import Table from 'components/to-be-cleaned/Table'import {jsonSyntaxHighlight,TextFormatter,} from 'components/interfaces/Settings/Logs/LogsFormatters'-import Table from 'components/to-be-cleaned/Table'-import BarChart from 'components/ui/Charts/BarChart'-import useFillTimeseriesSorted from 'hooks/analytics/useFillTimeseriesSorted'-import sumBy from 'lodash/sumBy'-import { Fragment } from 'react'import { Button, Collapsible, IconChevronRight } from 'ui'import { queryParamsToObject } from '../Reports.utils'-import { ReportWidgetProps, ReportWidgetRendererProps } from '../ReportWidget'+import { Fragment } from 'react'+import useFillTimeseriesSorted from 'hooks/analytics/useFillTimeseriesSorted'+import sumBy from 'lodash/sumBy'export const NetworkTrafficRenderer = (props: ReportWidgetProps<{@@ -245,9 +245,9 @@ const RouteTdContent = (datum: RouteTdContentProps) => (/>)}<div className=" truncate max-w-sm lg:max-w-lg">- <TextFormatter className="text-foreground-light" value={datum.path} />+ <TextFormatter className="text-scale-1100" value={datum.path} /><TextFormatter- className="max-w-sm text-foreground-lighter truncate "+ className="max-w-sm text-scale-900 truncate "value={decodeURIComponent(datum.search || '')}/></div>@@ -264,7 +264,7 @@ const RouteTdContent = (datum: RouteTdContentProps) => (/></pre>) : (- <p className="text-xs text-foreground-lighter">No query parameters in this request</p>+ <p className="text-xs text-scale-900">No query parameters in this request</p>)}</Collapsible.Content></Collapsible>diff --git a/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx b/studio/components/interfaces/Reports/renderers/StorageRenderers.tsxindex 112341de0f5..cdff467d303 100644--- a/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx+++ b/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx@@ -65,9 +65,9 @@ export const TopCacheMissesRenderer = (<Table.tr className="p-0"><Table.td className={[cellClasses].join(' ')}><div className=" truncate max-w-sm lg:max-w-lg">- <TextFormatter className="text-foreground-light" value={datum.path} />+ <TextFormatter className="text-scale-1100" value={datum.path} /><TextFormatter- className="max-w-sm text-foreground-lighter truncate "+ className="max-w-sm text-scale-900 truncate "value={decodeURIComponent(datum.search || '')}/></div>diff --git a/studio/components/interfaces/SQLEditor/AISettingsModal.tsx b/studio/components/interfaces/SQLEditor/AISettingsModal.tsxindex 3ef85daf751..aaa07e7e107 100644--- a/studio/components/interfaces/SQLEditor/AISettingsModal.tsx+++ b/studio/components/interfaces/SQLEditor/AISettingsModal.tsx@@ -47,7 +47,7 @@ const AISettingsModal = (props: ModalProps) => {/><div className="grid gap-2"><p className="text-sm">Include anonymous database metadata in AI queries</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Includes table names, column names and their corresponding data types in the request.This will generate queries that are more relevant to your project.</p>diff --git a/studio/components/interfaces/SQLEditor/MonacoEditor.tsx b/studio/components/interfaces/SQLEditor/MonacoEditor.tsxindex 00ecad1f5fc..1ba9617554c 100644--- a/studio/components/interfaces/SQLEditor/MonacoEditor.tsx+++ b/studio/components/interfaces/SQLEditor/MonacoEditor.tsx@@ -3,7 +3,6 @@ import { useParams } from 'common'import { useRouter } from 'next/router'import { MutableRefObject, useRef } from 'react'import { cn } from 'ui'-import { debounce, memoize } from 'lodash'import { SqlSnippet } from 'data/content/sql-snippets-query'import { useSelectedProject } from 'hooks'@@ -75,14 +74,10 @@ const MonacoEditor = ({}}- const debouncedSetSql = debounce((id, value) => {- snap.setSql(id, value)- }, 1000)-function handleEditorChange(value: string | undefined) {if (id && value) {if (snap.snippets[id]) {- debouncedSetSql(id, value)+ snap.setSql(id, value)} else {const snippet = createSqlSnippetSkeleton({id,diff --git a/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx b/studio/components/interfaces/SQLEditor/RenameQueryModal.tsxindex 5cdb27d22d8..9e37e52a3e7 100644--- a/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx+++ b/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx@@ -4,7 +4,7 @@ import { useSqlTitleGenerateMutation } from 'data/ai/sql-title-mutation'import { SqlSnippet } from 'data/content/sql-snippets-query'import { isError } from 'data/utils/error-check'import { useFlag, useStore } from 'hooks'-import { useEffect, useState } from 'react'+import { useState } from 'react'import { useSqlEditorStateSnapshot } from 'state/sql-editor'import { AiIconAnimation, Button, Form, Input, Modal } from 'ui'import { subscriptionHasHipaaAddon } from '../BillingV2/Subscription/Subscription.utils'@@ -21,6 +21,7 @@ const RenameQueryModal = ({ snippet, visible, onCancel, onComplete }: RenameQuerconst { ref } = useParams()const snap = useSqlEditorStateSnapshot()const supabaseAIEnabled = useFlag('sqlEditorSupabaseAI')+const { data: subscription } = useProjectSubscriptionV2Query({ projectRef: ref })// Customers on HIPAA plans should not have access to Supabase AI@@ -31,10 +32,6 @@ const RenameQueryModal = ({ snippet, visible, onCancel, onComplete }: RenameQuerconst [nameInput, setNameInput] = useState(name)const [descriptionInput, setDescriptionInput] = useState(description)- useEffect(() => {- setNameInput(name)- }, [name])-const validate = () => {const errors: any = {}if (!nameInput) errors.name = 'Please enter a query name'diff --git a/studio/components/interfaces/SQLEditor/SQLEditor.tsx b/studio/components/interfaces/SQLEditor/SQLEditor.tsxindex b945ed482df..ad5816d7139 100644--- a/studio/components/interfaces/SQLEditor/SQLEditor.tsx+++ b/studio/components/interfaces/SQLEditor/SQLEditor.tsx@@ -8,11 +8,7 @@ import { format } from 'sql-formatter'import {AiIconAnimation,Button,- cn,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,IconCheck,IconChevronDown,IconCornerDownLeft,@@ -20,6 +16,7 @@ import {IconSettings,IconX,Input_Shadcn_,+ cn,} from 'ui'import ConfirmModal from 'components/ui/Dialogs/ConfirmDialog'@@ -707,39 +704,38 @@ const SQLEditor = () => {>{getDiffTypeButtonLabel(selectedDiffType)}</Button>- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- type="primary"- className="rounded-l-none border-l-0 px-[4px] py-[5px]"- icon={<IconChevronDown />}- />- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ align="end" side="bottom">- {Object.values(DiffType)- .filter((diffType) => diffType !== selectedDiffType)- .map((diffType) => (- <DropdownMenuItem_Shadcn_- key={diffType}- onClick={() => {- setSelectedDiffType(diffType)- switch (diffType) {- case DiffType.Modification:- return compareAsModification()- case DiffType.Addition:- return compareAsAddition()- case DiffType.NewSnippet:- return compareAsNewSnippet()- default:- throw new Error(`Unknown diff type '${diffType}'`)- }- }}- >- <p className="text">{getDiffTypeDropdownLabel(diffType)}</p>- </DropdownMenuItem_Shadcn_>- ))}- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown+ align="end"+ side="bottom"+ overlay={Object.values(DiffType)+ .filter((diffType) => diffType !== selectedDiffType)+ .map((diffType) => (+ <Dropdown.Item+ key={diffType}+ onClick={() => {+ setSelectedDiffType(diffType)+ switch (diffType) {+ case DiffType.Modification:+ return compareAsModification()+ case DiffType.Addition:+ return compareAsAddition()+ case DiffType.NewSnippet:+ return compareAsNewSnippet()+ default:+ throw new Error(`Unknown diff type '${diffType}'`)+ }+ }}+ >+ {getDiffTypeDropdownLabel(diffType)}+ </Dropdown.Item>+ ))}+ >+ <Button+ type="primary"+ className="rounded-l-none border-l-0 px-[4px] py-[5px]"+ icon={<IconChevronDown />}+ />+ </Dropdown></div><Buttontype="alternative"diff --git a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLCard.tsx b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLCard.tsxindex a6c3ca9162f..b02cab1ca40 100644--- a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLCard.tsx+++ b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLCard.tsx@@ -1,5 +1,5 @@-import CardButton from 'components/ui/CardButton'import { useState } from 'react'+import CardButton from 'components/ui/CardButton'export interface SQLCardProps {title: string@@ -20,7 +20,7 @@ const SQLCard = ({ title, description, sql, onClick }: SQLCardProps) => {title={title}loading={loading}onClick={() => handleOnClick()}- footer={<span className="text-foreground-light text-sm">{description}</span>}+ footer={<span className="text-scale-1100 text-sm">{description}</span>}/>)}diff --git a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsx b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsxindex 988b254a787..b9e26219e30 100644--- a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsx+++ b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLQuickstarts.tsx@@ -61,12 +61,12 @@ const SQLQuickstarts = observer(() => {<div className="block h-full space-y-8 overflow-y-auto p-6"><div className="mb-8"><div className="mb-4">- <h1 className="text-foreground mb-3 text-xl">Quickstarts</h1>- <p className="text-foreground-light text-sm">+ <h1 className="text-scale-1200 mb-3 text-xl">Quickstarts</h1>+ <p className="text-scale-1100 text-sm">While we're in beta, we want to offer a quick way to explore Supabase. While we buildimporters, check out these simple starters.</p>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1100 text-sm">Click on any script to fill the query box, modify the script, then click<span className="text-code">Run</span>.</p>diff --git a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsxindex df84619c0f9..8d68d6d1ee2 100644--- a/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx+++ b/studio/components/interfaces/SQLEditor/SQLTemplates/SQLTemplates.tsx@@ -63,9 +63,9 @@ const SQLTemplates = observer(() => {<div className="block h-full space-y-8 overflow-y-auto p-6"><div><div className="mb-4">- <h1 className="text-foreground mb-3 text-xl">Scripts</h1>- <p className="text-foreground-light text-sm">Quick scripts to run on your database.</p>- <p className="text-foreground-light text-sm">+ <h1 className="text-scale-1200 mb-3 text-xl">Scripts</h1>+ <p className="text-scale-1100 text-sm">Quick scripts to run on your database.</p>+ <p className="text-scale-1100 text-sm">Click on any script to fill the query box, modify the script, then click<span className="text-code">Run</span>.</p>diff --git a/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx b/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsxindex 98c545e761b..89d23421628 100644--- a/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx@@ -8,16 +8,7 @@ import { useRouter } from 'next/router'import { useMemo, useRef } from 'react'import { CSVLink } from 'react-csv'import { useSqlEditorStateSnapshot } from 'state/sql-editor'-import {- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconChevronDown,- IconClipboard,- IconDownload,-} from 'ui'+import { Button, Dropdown, IconChevronDown, IconClipboard, IconDownload } from 'ui'// @ts-ignoreimport MarkdownTable from 'markdown-table'@@ -105,38 +96,37 @@ const ResultsDropdown = ({ id, isExecuting }: ResultsDropdownProps) => {}return (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button asChild type="text" iconRight={<IconChevronDown />}>- <span>- Results- {!isExecuting &&- result &&- result.rows.length > 0 &&- ` (${result.rows.length.toLocaleString()})`}- </span>- </Button>- <CSVLink- ref={csvRef}- className="hidden"- headers={headers}- data={csvData}- filename={`supabase_${project?.ref}_${snap.snippets[id]?.snippet.name}`}- />- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="start">+ <Dropdown+ side="bottom"+ align="start"+ overlay={<>- <DropdownMenuItem_Shadcn_ onClick={onDownloadCSV} className="space-x-2">- <IconDownload size="tiny" />- <p className="text">Download CSV</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuItem_Shadcn_ onClick={onCopyAsMarkdown} className="space-x-2">- <IconClipboard size="tiny" />- <p className="text">Copy as markdown</p>- </DropdownMenuItem_Shadcn_>+ <Dropdown.Item icon={<IconDownload size="tiny" />} onClick={onDownloadCSV}>+ Download CSV+ </Dropdown.Item>+ <Dropdown.Item icon={<IconClipboard size="tiny" />} onClick={onCopyAsMarkdown}>+ Copy as markdown+ </Dropdown.Item></>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ }+ >+ <Button asChild type="text" iconRight={<IconChevronDown />}>+ <span>+ Results+ {!isExecuting &&+ result &&+ result.rows.length > 0 &&+ ` (${result.rows.length.toLocaleString()})`}+ </span>+ </Button>+ <CSVLink+ ref={csvRef}+ className="hidden"+ headers={headers}+ data={csvData}+ filename={`supabase_${project?.ref}_${snap.snippets[id]?.snippet.name}`}+ />+ </Dropdown>)}diff --git a/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsx b/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsxindex fa74f184829..a194ae4095c 100644--- a/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsx+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsx@@ -1,8 +1,8 @@import * as Tooltip from '@radix-ui/react-tooltip'+import { Button, IconAlertCircle, IconCheck, IconLoader, IconRefreshCcw } from 'ui'import { usePrevious } from 'hooks'import { useEffect, useState } from 'react'import { useSqlEditorStateSnapshot } from 'state/sql-editor'-import { Button, IconAlertCircle, IconCheck, IconLoader, IconRefreshCcw } from 'ui'export type SavingIndicatorProps = { id: string }@@ -57,7 +57,7 @@ const SavingIndicator = ({ id }: SavingIndicatorProps) => {'border-scale-200 border ',].join(' ')}>- <span className="text-foreground text-xs">All changes saved</span>+ <span className="text-scale-1200 text-xs">All changes saved</span></div></Tooltip.Content></Tooltip.Root>@@ -74,7 +74,7 @@ const SavingIndicator = ({ id }: SavingIndicatorProps) => {'border-scale-200 border',].join(' ')}>- <span className="text-foreground text-xs">Saving changes...</span>+ <span className="text-scale-1200 text-xs">Saving changes...</span></div></Tooltip.Content></Tooltip.Root>@@ -91,12 +91,12 @@ const SavingIndicator = ({ id }: SavingIndicatorProps) => {'border-scale-200 border ',].join(' ')}>- <span className="text-foreground text-xs">Failed to save changes</span>+ <span className="text-scale-1200 text-xs">Failed to save changes</span></div></Tooltip.Content></Tooltip.Root>) : null}- <span className="text-foreground-light text-sm">+ <span className="text-scale-1000 text-sm">{savingState === 'UPDATING_FAILED' && 'Failed to save'}</span></div>diff --git a/studio/components/interfaces/SQLEditor/UtilityPanel/SizeToggleButton.tsx b/studio/components/interfaces/SQLEditor/UtilityPanel/SizeToggleButton.tsxindex 9bc2349fa68..4df607c54dd 100644--- a/studio/components/interfaces/SQLEditor/UtilityPanel/SizeToggleButton.tsx+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/SizeToggleButton.tsx@@ -34,7 +34,7 @@ const SizeToggleButton = ({ id }: SizeToggleButton) => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">Show results</span>+ <span className="text-xs text-scale-1200">Show results</span></div></Tooltip.Content></Tooltip.Portal>@@ -58,7 +58,7 @@ const SizeToggleButton = ({ id }: SizeToggleButton) => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">Collapse results</span>+ <span className="text-xs text-scale-1200">Collapse results</span></div></Tooltip.Content></Tooltip.Portal>diff --git a/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx b/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsxindex 198e4732515..1e19d344e13 100644--- a/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx@@ -1,7 +1,7 @@-import * as Tooltip from '@radix-ui/react-tooltip'import { IS_PLATFORM } from 'lib/constants'import { detectOS } from 'lib/helpers'import { Button, IconAlignLeft, IconCommand, IconCornerDownLeft } from 'ui'+import * as Tooltip from '@radix-ui/react-tooltip'import FavoriteButton from './FavoriteButton'import SavingIndicator from './SavingIndicator'@@ -46,7 +46,7 @@ const UtilityActions = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">Prettify SQL</span>+ <span className="text-xs text-scale-1200">Prettify SQL</span></div></Tooltip.Content></Tooltip.Portal>@@ -63,7 +63,7 @@ const UtilityActions = ({{os === 'macos' ? (<IconCommand size={10} strokeWidth={1.5} />) : (- <p className="text-xs text-foreground-light">CTRL</p>+ <p className="text-xs text-scale-1100">CTRL</p>)}<IconCornerDownLeft size={10} strokeWidth={1.5} /></div>diff --git a/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx b/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsxindex 0661dd7cd4a..4e8f8178d1e 100644--- a/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx@@ -1,14 +1,12 @@-import { subscriptionHasHipaaAddon } from 'components/interfaces/BillingV2/Subscription/Subscription.utils'import { useSqlDebugMutation } from 'data/ai/sql-debug-mutation'import { useEntityDefinitionsQuery } from 'data/database/entity-definitions-query'-import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'import { isError } from 'data/utils/error-check'import {- useFlag,useLocalStorageQuery,useSelectedOrganization,useSelectedProject,useStore,+ useFlag,} from 'hooks'import { IS_PLATFORM, OPT_IN_TAGS } from 'lib/constants'import { format } from 'sql-formatter'@@ -17,6 +15,8 @@ import { AiIconAnimation, Button } from 'ui'import { useSqlEditor } from '../SQLEditor'import { sqlAiDisclaimerComment } from '../SQLEditor.constants'import Results from './Results'+import { subscriptionHasHipaaAddon } from 'components/interfaces/BillingV2/Subscription/Subscription.utils'+import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'export type UtilityTabResultsProps = {id: string@@ -136,7 +136,7 @@ const UtilityTabResults = ({ id, isExecuting }: UtilityTabResultsProps) => {} else if (!result) {return (<div className="bg-table-header-light dark:bg-table-header-dark">- <p className="m-0 border-0 px-6 py-4 text-sm text-foreground-light">+ <p className="m-0 border-0 px-6 py-4 text-sm text-scale-1100">Click <code>RUN</code> to execute your query.</p></div>diff --git a/studio/components/interfaces/Settings/API/JWTSettings.tsx b/studio/components/interfaces/Settings/API/JWTSettings.tsxindex ffa766cc6a3..932ef7158d8 100644--- a/studio/components/interfaces/Settings/API/JWTSettings.tsx+++ b/studio/components/interfaces/Settings/API/JWTSettings.tsx@@ -12,11 +12,7 @@ import {AlertTitle_Shadcn_,Alert_Shadcn_,Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,IconAlertCircle,IconAlertTriangle,IconChevronDown,@@ -98,7 +94,7 @@ const JWTSettings = () => {{isError ? (<div className="flex items-center justify-center py-8 space-x-2"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-foreground-light">Failed to retrieve JWT settings</p>+ <p className="text-sm text-scale-1100">Failed to retrieve JWT settings</p></div>) : (<>@@ -162,7 +158,7 @@ const JWTSettings = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to generate a new JWT secret</span></div>@@ -170,30 +166,31 @@ const JWTSettings = () => {</Tooltip.Portal></Tooltip.Root>) : (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button asChild type="default" iconRight={<IconChevronDown />}>- <span>Generate a new secret</span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ align="end" side="bottom">- <DropdownMenuItem_Shadcn_- className="space-x-2"- onClick={() => setIsGeneratingKey(true)}- >- <IconRefreshCw size={16} />- <p className="text">Generate a random secret</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuSeparator_Shadcn_ />- <DropdownMenuItem_Shadcn_- className="space-x-2"- onClick={() => setIsCreatingKey(true)}- >- <IconPenTool size={16} />- <p className="text">Create my own secret</p>- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown+ align="end"+ side="bottom"+ overlay={+ <>+ <Dropdown.Item+ onClick={() => setIsGeneratingKey(true)}+ icon={<IconRefreshCw size={16} />}+ >+ Generate a random secret+ </Dropdown.Item>+ <Dropdown.Separator />+ <Dropdown.Item+ onClick={() => setIsCreatingKey(true)}+ icon={<IconPenTool size={16} />}+ >+ Create my own secret+ </Dropdown.Item>+ </>+ }+ >+ <Button asChild type="default" iconRight={<IconChevronDown />}>+ <span>Generate a new secret</span>+ </Button>+ </Dropdown>)}</div></div>@@ -269,7 +266,7 @@ const JWTSettings = () => {><Modal.Content><div className="py-4 space-y-2">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Create a custom JWT secret. Make sure it is a strong combination of characters thatcannot be guessed easily.</p>diff --git a/studio/components/interfaces/Settings/API/PostgrestConfig.tsx b/studio/components/interfaces/Settings/API/PostgrestConfig.tsxindex 3be5a200e5d..e2415fa351a 100644--- a/studio/components/interfaces/Settings/API/PostgrestConfig.tsx+++ b/studio/components/interfaces/Settings/API/PostgrestConfig.tsx@@ -115,7 +115,7 @@ const PostgrestConfig = () => {{isError ? (<div className="flex items-center justify-center py-8 space-x-2"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-foreground-light">Failed to retrieve API settings</p>+ <p className="text-sm text-scale-1100">Failed to retrieve API settings</p></div>) : (<>diff --git a/studio/components/interfaces/Settings/API/ServiceList.tsx b/studio/components/interfaces/Settings/API/ServiceList.tsxindex 9cc552b6097..fa8e4813aee 100644--- a/studio/components/interfaces/Settings/API/ServiceList.tsx+++ b/studio/components/interfaces/Settings/API/ServiceList.tsx@@ -1,20 +1,20 @@-import { JwtSecretUpdateError, JwtSecretUpdateStatus } from '@supabase/shared-types/out/events'import { useQueryClient } from '@tanstack/react-query'+import { JwtSecretUpdateError, JwtSecretUpdateStatus } from '@supabase/shared-types/out/events'import { useEffect, useRef } from 'react'import { Badge, IconAlertCircle, Input } from 'ui'+import { useStore } from 'hooks'import { useParams } from 'common/hooks'import { useJwtSecretUpdatingStatusQuery } from 'data/config/jwt-secret-updating-status-query'-import { useStore } from 'hooks'+import { useProjectApiQuery } from 'data/config/project-api-query'+import { configKeys } from 'data/config/keys'import Panel from 'components/ui/Panel'import { DisplayApiSettings } from 'components/ui/ProjectSettings'-import { configKeys } from 'data/config/keys'-import { useProjectApiQuery } from 'data/config/project-api-query'-import { useCustomDomainsQuery } from 'data/custom-domains/custom-domains-query'import { JWT_SECRET_UPDATE_ERROR_MESSAGES } from './API.constants'import JWTSettings from './JWTSettings'import PostgrestConfig from './PostgrestConfig'+import { useCustomDomainsQuery } from 'data/custom-domains/custom-domains-query'const ServiceList = () => {const { ui } = useStore()@@ -67,14 +67,14 @@ const ServiceList = () => {return (<div>- <h3 className="mb-6 text-xl text-foreground">API Settings</h3>+ <h3 className="mb-6 text-xl text-scale-1200">API Settings</h3><section><Panel title={<h5 className="mb-0">Project URL</h5>}><Panel.Content>{isError ? (<div className="flex items-center justify-center py-4 space-x-2"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-foreground-light">Failed to retrieve project URL</p>+ <p className="text-sm text-scale-1100">Failed to retrieve project URL</p></div>) : (<Inputdiff --git a/studio/components/interfaces/Settings/Addons/Addons.tsx b/studio/components/interfaces/Settings/Addons/Addons.tsxindex 609b4d78fc4..ff9f17411e9 100644--- a/studio/components/interfaces/Settings/Addons/Addons.tsx+++ b/studio/components/interfaces/Settings/Addons/Addons.tsx@@ -2,8 +2,7 @@ import dayjs from 'dayjs'import Link from 'next/link'import { useMemo } from 'react'-import { useParams } from 'common'-import { useTheme } from 'next-themes'+import { useParams, useTheme } from 'common'import { getAddons } from 'components/interfaces/BillingV2/Subscription/Subscription.utils'import ProjectUpdateDisabledTooltip from 'components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip'import {@@ -39,7 +38,7 @@ import {import { ComputeInstanceSidePanel, CustomDomainSidePanel, PITRSidePanel } from './'const Addons = () => {- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const { ref: projectRef, panel } = useParams()const snap = useSubscriptionPageStateSnapshot()const projectUpdateDisabled = useFlag('disableProjectCreationAndUpdate')@@ -86,7 +85,7 @@ const Addons = () => {<div className="mx-auto flex flex-col gap-10 py-6"><div><p className="text-xl">Add ons</p>- <p className="text-sm text-foreground-light">Level up your project with add-ons</p>+ <p className="text-sm text-scale-1000">Level up your project with add-ons</p></div></div></ScaffoldContainer>@@ -140,7 +139,7 @@ const Addons = () => {<div className="space-y-6"><p className="m-0">Optimized compute</p><div className="space-y-2">- <p className="text-sm text-foreground-light m-0">More information</p>+ <p className="text-sm text-scale-1100 m-0">More information</p><div><Link href="https://supabase.com/docs/guides/platform/compute-add-ons"><a target="_blank" rel="noreferrer">@@ -175,17 +174,17 @@ const Addons = () => {src={computeInstance !== undefined? `${BASE_PATH}/img/optimized-compute-on${- theme === 'dark' ? '' : '--light'+ isDarkMode ? '' : '--light'}.png`: `${BASE_PATH}/img/optimized-compute-off${- theme === 'dark' ? '' : '--light'+ isDarkMode ? '' : '--light'}.png`}/></div></div><div className="flex-grow">- <p className="text-sm text-foreground-light">Current option:</p>+ <p className="text-sm text-scale-1000">Current option:</p><p className="">{computeInstance?.variant.name ?? 'Micro'}</p><ProjectUpdateDisabledTooltipprojectUpdateDisabled={projectUpdateDisabled}@@ -244,7 +243,7 @@ const Addons = () => {<Link href={`/project/${projectRef}/settings/infrastructure#ram`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-scale-1100 group-hover:text-scale-1200 transition cursor-pointer">Memory</p><IconChevronRight@@ -261,7 +260,7 @@ const Addons = () => {<Link href={`/project/${projectRef}/settings/infrastructure#cpu`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-scale-1100 group-hover:text-scale-1200 transition cursor-pointer">CPU</p><IconChevronRight@@ -278,13 +277,13 @@ const Addons = () => {</p></div><div className="w-full flex items-center justify-between border-b py-2">- <p className="text-sm text-foreground-light">No. of direct connections</p>+ <p className="text-sm text-scale-1000">No. of direct connections</p><p className="text-sm">{computeInstance?.variant?.meta?.connections_direct ?? 60}</p></div><div className="w-full flex items-center justify-between border-b py-2">- <p className="text-sm text-foreground-light">No. of pooler connections</p>+ <p className="text-sm text-scale-1000">No. of pooler connections</p><p className="text-sm">{computeInstance?.variant?.meta?.connections_pooler ?? 200}</p>@@ -293,7 +292,7 @@ const Addons = () => {<Link href={`/project/${projectRef}/settings/infrastructure#disk_io`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-scale-1100 group-hover:text-scale-1200 transition cursor-pointer">Max Disk Throughput</p><IconChevronRight@@ -314,7 +313,7 @@ const Addons = () => {<Link href={`/project/${projectRef}/settings/infrastructure#disk_io`}><a><div className="group flex items-center space-x-2">- <p className="text-sm text-foreground-light group-hover:text-foreground transition cursor-pointer">+ <p className="text-sm text-scale-1100 group-hover:text-scale-1200 transition cursor-pointer">Baseline Disk Throughput</p><IconChevronRight@@ -345,7 +344,7 @@ const Addons = () => {<div className="space-y-6"><p className="m-0">Point in time recovery</p><div className="space-y-2">- <p className="text-sm text-foreground-light m-0">More information</p>+ <p className="text-sm text-scale-1100 m-0">More information</p><div><Link href="https://supabase.com/docs/guides/platform/backups#point-in-time-recovery"><a target="_blank" rel="noreferrer">@@ -369,16 +368,14 @@ const Addons = () => {height={96}src={pitr !== undefined- ? `${BASE_PATH}/img/pitr-on${theme === 'dark' ? '' : '--light'}.png?v=2`- : `${BASE_PATH}/img/pitr-off${- theme === 'dark' ? '' : '--light'- }.png?v=2`+ ? `${BASE_PATH}/img/pitr-on${isDarkMode ? '' : '--light'}.png?v=2`+ : `${BASE_PATH}/img/pitr-off${isDarkMode ? '' : '--light'}.png?v=2`}/></div></div><div>- <p className="text-sm text-foreground-light">Current option:</p>+ <p className="text-sm text-scale-1000">Current option:</p><p className="">{pitr !== undefined? `Point in time recovery of ${pitr.variant.meta?.backup_duration_days} days is enabled`@@ -437,7 +434,7 @@ const Addons = () => {<div className="space-y-6"><p className="m-0">Custom domain</p><div className="space-y-2">- <p className="text-sm text-foreground-light m-0">More information</p>+ <p className="text-sm text-scale-1100 m-0">More information</p><div><Link href="https://supabase.com/docs/guides/platform/custom-domains"><a target="_blank" rel="noreferrer">@@ -461,18 +458,14 @@ const Addons = () => {height={96}src={customDomain !== undefined- ? `${BASE_PATH}/img/custom-domain-on${- theme === 'dark' ? '' : '--light'- }.png`- : `${BASE_PATH}/img/custom-domain-off${- theme === 'dark' ? '' : '--light'- }.png`+ ? `${BASE_PATH}/img/custom-domain-on${isDarkMode ? '' : '--light'}.png`+ : `${BASE_PATH}/img/custom-domain-off${isDarkMode ? '' : '--light'}.png`}/></div></div><div>- <p className="text-sm text-foreground-light">Current option:</p>+ <p className="text-sm text-scale-1000">Current option:</p><p className="">{customDomain !== undefined? 'Custom domain is enabled'diff --git a/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx b/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsxindex 79ad6a58038..0c13d84fe04 100644--- a/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx+++ b/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx@@ -5,8 +5,7 @@ import Link from 'next/link'import { useRouter } from 'next/router'import { useEffect, useState } from 'react'-import { useParams } from 'common'-import { useTheme } from 'next-themes'+import { useParams, useTheme } from 'common'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import { setProjectStatus } from 'data/projects/projects-query'import { useProjectAddonRemoveMutation } from 'data/subscriptions/project-addon-remove-mutation'@@ -47,7 +46,7 @@ const ComputeInstanceSidePanel = () => {const { ui } = useStore()const router = useRouter()const { ref: projectRef } = useParams()- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const { project: selectedProject } = useProjectContext()const organization = useSelectedOrganization()const isOrgBilling = !!organization?.subscription_id@@ -236,13 +235,13 @@ const ComputeInstanceSidePanel = () => {)}width={160}height={96}- src={theme === 'dark' ? option.imageUrl : option.imageUrlLight}+ src={isDarkMode ? option.imageUrl : option.imageUrlLight}/><pclassName={clsx('text-sm transition',- isSelected ? 'text-foreground' : 'text-foreground-light'+ isSelected ? 'text-scale-1200' : 'text-scale-1000')}>{option.name}@@ -300,19 +299,17 @@ const ComputeInstanceSidePanel = () => {<p className="text-sm">{option.name}</p></div><div className="px-4 py-2">- <p className="text-foreground-light">- {option.meta?.memory_gb ?? 0} GB memory- </p>- <p className="text-foreground-light">+ <p className="text-scale-1000">{option.meta?.memory_gb ?? 0} GB memory</p>+ <p className="text-scale-1000">{option.meta?.cpu_cores ?? 0}-core {cpuArchitecture} CPU ({option.meta?.cpu_dedicated ? 'Dedicated' : 'Shared'})</p><div className="flex justify-between items-center mt-2"><div className="flex items-center space-x-1">- <span className="text-foreground text-sm">+ <span className="text-scale-1200 text-sm">${option.price.toLocaleString()}</span>- <span className="text-foreground-light translate-y-[1px]">+ <span className="text-scale-1000 translate-y-[1px]">{' '}/ {option.price_interval === 'monthly' ? 'month' : 'hour'}</span>@@ -324,7 +321,7 @@ const ComputeInstanceSidePanel = () => {<IconInfosize={14}strokeWidth={2}- className="hover:text-foreground-light"+ className="hover:text-scale-1000"/></div></Tooltip.Trigger>@@ -338,7 +335,7 @@ const ComputeInstanceSidePanel = () => {].join(' ')}><div className="flex items-center space-x-1">- <p className="text-foreground text-sm">+ <p className="text-scale-1200 text-sm">${Number(option.price * 672).toFixed(0)} - ${Number(option.price * 744).toFixed(0)} per month</p>@@ -358,7 +355,7 @@ const ComputeInstanceSidePanel = () => {)}{selectedCategory === 'micro' && (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Your database will use the standard Micro size instance of 2-core {cpuArchitecture}{' '}CPU (Shared) with 1GB of memory.</p>@@ -366,15 +363,15 @@ const ComputeInstanceSidePanel = () => {{hasChanges &&(selectedCategory === 'micro' && !isOrgBilling ? (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Upon clicking confirm, the amount of that's unused during the current billingcycle will be returned as credits that can be used for subsequent billing cycles</p>) : selectedCategory !== 'micro' && selectedCompute?.price_interval === 'monthly' ? (// Monthly payment with project-level subscription- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Upon clicking confirm, the amount of{' '}- <span className="text-foreground">+ <span className="text-scale-1200">${selectedCompute?.price.toLocaleString()}</span>{' '}will be added to your monthly invoice. Any previous compute addon is prorated and@@ -384,7 +381,7 @@ const ComputeInstanceSidePanel = () => {</p>) : selectedCategory !== 'micro' ? (// Hourly usage-billing with org-based subscription- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">There are no immediate charges when changing compute. Compute Hours are ausage-based item and you're billed at the end of your billing cycle based on yourcompute usage. Read more about{' '}diff --git a/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx b/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsxindex e340d0307c3..9104db59821 100644--- a/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx+++ b/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx@@ -184,12 +184,10 @@ const CustomDomainSidePanel = () => {<p className="text-sm">No custom domain</p></div><div className="px-4 py-2">- <p className="text-foreground-light">- Use the default supabase domain for your API- </p>+ <p className="text-scale-1000">Use the default supabase domain for your API</p><div className="flex items-center space-x-1 mt-2">- <p className="text-foreground text-sm">$0</p>- <p className="text-foreground-light translate-y-[1px]"> / month</p>+ <p className="text-scale-1200 text-sm">$0</p>+ <p className="text-scale-1000 translate-y-[1px]"> / month</p></div></div></div>@@ -209,12 +207,10 @@ const CustomDomainSidePanel = () => {<p className="text-sm">{option.name}</p></div><div className="px-4 py-2">- <p className="text-foreground-light">- Present a branded experience to your users- </p>+ <p className="text-scale-1000">Present a branded experience to your users</p><div className="flex items-center space-x-1 mt-2">- <p className="text-foreground text-sm">${option.price}</p>- <p className="text-foreground-light translate-y-[1px]"> / month</p>+ <p className="text-scale-1200 text-sm">${option.price}</p>+ <p className="text-scale-1000 translate-y-[1px]"> / month</p></div></div></div>@@ -227,14 +223,14 @@ const CustomDomainSidePanel = () => {<>{selectedOption === 'cd_none' ||(selectedCustomDomain?.price ?? 0) < (subscriptionCDOption?.variant.price ?? 0) ? (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Upon clicking confirm, the amount of that's unused during the current billingcycle will be returned as credits that can be used for subsequent billing cycles</p>) : (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Upon clicking confirm, the amount of{' '}- <span className="text-foreground">+ <span className="text-scale-1200">${selectedCustomDomain?.price.toLocaleString()}</span>{' '}will be added to your monthly invoice. You're immediately charged for thediff --git a/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx b/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsxindex 7716aa4d01a..7249d8297e1 100644--- a/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx+++ b/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx@@ -4,8 +4,7 @@ import Link from 'next/link'import { useRouter } from 'next/router'import { useEffect, useState } from 'react'-import { useParams } from 'common'-import { useTheme } from 'next-themes'+import { useParams, useTheme } from 'common'import { useProjectAddonRemoveMutation } from 'data/subscriptions/project-addon-remove-mutation'import { useProjectAddonUpdateMutation } from 'data/subscriptions/project-addon-update-mutation'import { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query'@@ -41,7 +40,7 @@ const PITRSidePanel = () => {const { ui } = useStore()const router = useRouter()const { ref: projectRef } = useParams()- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const organization = useSelectedOrganization()const isOrgBilling = !!organization?.subscription_id@@ -207,13 +206,13 @@ const PITRSidePanel = () => {)}width={160}height={96}- src={theme === 'dark' ? option.imageUrl : option.imageUrlLight}+ src={isDarkMode ? option.imageUrl : option.imageUrlLight}/><pclassName={clsx('text-sm transition',- isSelected ? 'text-foreground' : 'text-foreground-light'+ isSelected ? 'text-scale-1200' : 'text-scale-1000')}>{option.name}@@ -291,15 +290,15 @@ const PITRSidePanel = () => {<p className="text-sm">{option.name}</p></div><div className="px-4 py-2">- <p className="text-foreground-light">+ <p className="text-scale-1000">Allow database restorations to any time up to{' '}{option.identifier.split('_')[1]} days ago</p><div className="flex items-center space-x-1 mt-2">- <p className="text-foreground text-sm">+ <p className="text-scale-1200 text-sm">${option.price.toLocaleString()}</p>- <p className="text-foreground-light translate-y-[1px]"> / month</p>+ <p className="text-scale-1000 translate-y-[1px]"> / month</p></div></div></div>@@ -313,14 +312,14 @@ const PITRSidePanel = () => {<>{selectedOption === 'pitr_0' ||(selectedPitr?.price ?? 0) < (subscriptionPitr?.variant.price ?? 0) ? (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Upon clicking confirm, the amount of that's unused during the current billingcycle will be returned as credits that can be used for subsequent billing cycles</p>) : (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Upon clicking confirm, the amount of{' '}- <span className="text-foreground">${selectedPitr?.price.toLocaleString()}</span>{' '}+ <span className="text-scale-1200">${selectedPitr?.price.toLocaleString()}</span>{' '}will be added to your monthly invoice. You're immediately charged for theremaining days of your billing cycle. The addon is prepaid per month and in caseof a downgrade, you get credits for the remaining time.diff --git a/studio/components/interfaces/Settings/Database/ConnectionPooling.tsx b/studio/components/interfaces/Settings/Database/ConnectionPooling.tsxindex 3a0b9490581..f12a0da1993 100644--- a/studio/components/interfaces/Settings/Database/ConnectionPooling.tsx+++ b/studio/components/interfaces/Settings/Database/ConnectionPooling.tsx@@ -80,7 +80,7 @@ const ConnectionPooling = () => {}><Panel.Content>- <p className="text-foreground-light">+ <p className="text-scale-1000">Please start a new project to enable this feature.</p></Panel.Content>@@ -223,7 +223,7 @@ export const PgbouncerConfig = ({ projectRef, bouncerInfo, connectionInfo }: ConerrorMessage="You must select one of the two options"/><div className="!mt-1 flex" style={{ marginLeft: 'calc(33% + 0.5rem)' }}>- <p className="text-sm text-foreground-lighter">+ <p className="text-sm text-scale-900">Specify when a connection can be returned to the pool. To find out the mostsuitable mode for your use case,{' '}<adiff --git a/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseSettings.tsx b/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseSettings.tsxindex f3846a72d31..e6ab31bea7b 100644--- a/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseSettings.tsx+++ b/studio/components/interfaces/Settings/Database/DatabaseSettings/DatabaseSettings.tsx@@ -18,7 +18,7 @@ const DatabaseSettings = () => {if (isError) {return (<div className="mx-auto p-6 text-center sm:w-full md:w-3/4">- <p className="text-foreground-light">Error loading database settings</p>+ <p className="text-scale-1000">Error loading database settings</p></div>)}@@ -27,7 +27,7 @@ const DatabaseSettings = () => {return (<div className="space-y-10"><section className="space-y-6">- <h3 className="text-foreground mb-2 text-xl">Database Settings</h3>+ <h3 className="text-scale-1200 mb-2 text-xl">Database Settings</h3><Paneltitle={<h5 key="panel-title" className="mb-0">@@ -133,7 +133,7 @@ const DatabaseSettings = () => {return (<div className="space-y-10"><section className="space-y-6">- <h3 className="text-foreground mb-2 text-xl">Database Settings</h3>+ <h3 className="text-scale-1200 mb-2 text-xl">Database Settings</h3><Paneltitle={<h5 key="panel-title" className="mb-0">diff --git a/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx b/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsxindex 15876cce29d..2408fcce454 100644--- a/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx+++ b/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx@@ -128,7 +128,7 @@ const ResetDbPassword = ({ disabled = false }) => {'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">{!canResetDbPassword? 'You need additional permissions to reset the database password': !isProjectActive@@ -146,7 +146,7 @@ const ResetDbPassword = ({ disabled = false }) => {</Panel><ModalhideFooter- header={<h5 className="text-sm text-foreground">Reset database password</h5>}+ header={<h5 className="text-sm text-scale-1200">Reset database password</h5>}confirmText="Reset password"size="medium"visible={showResetDbPass}diff --git a/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx b/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsxindex 685fd82ae51..2907fdc42b2 100644--- a/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx+++ b/studio/components/interfaces/Settings/Database/DiskSizeConfiguration.tsx@@ -1,19 +1,19 @@+import dayjs from 'dayjs'import * as Tooltip from '@radix-ui/react-tooltip'import { PermissionAction } from '@supabase/shared-types/out/constants'-import dayjs from 'dayjs'import Link from 'next/link'import { useState } from 'react'import { Alert, Button, Form, InputNumber, Modal } from 'ui'import { number, object } from 'yup'import { useParams } from 'common/hooks'-import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import { FormHeader } from 'components/ui/Forms'import Panel from 'components/ui/Panel'import { useProjectDiskResizeMutation } from 'data/config/project-disk-resize-mutation'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'import { useProjectUsageQuery } from 'data/usage/project-usage-query'import { useCheckPermissions, useStore } from 'hooks'+import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'export interface DiskSizeConfigurationProps {disabled?: boolean@@ -87,11 +87,11 @@ const DiskSizeConfiguration = ({ disabled = false }: DiskSizeConfigurationProps)<div className="grid grid-cols-1 items-center lg:grid-cols-3"><div className="col-span-2 space-y-1">{projectUsage?.disk_volume_size_gb && (- <span className="text-foreground-light flex gap-2 items-baseline">- <span className="text-foreground">Current Disk Storage Size:</span>- <span className="text-foreground text-xl">+ <span className="text-scale-1100 flex gap-2 items-baseline">+ <span className="text-scale-1200">Current Disk Storage Size:</span>+ <span className="text-scale-1200 text-xl">{currentDiskSize}- <span className="text-foreground text-sm">GB</span>+ <span className="text-scale-1200 text-sm">GB</span></span></span>)}@@ -121,7 +121,7 @@ const DiskSizeConfiguration = ({ disabled = false }: DiskSizeConfigurationProps)'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to increase the disk size</span></div>@@ -172,7 +172,7 @@ const DiskSizeConfiguration = ({ disabled = false }: DiskSizeConfigurationProps))}<Modal- header={<h5 className="text-sm text-foreground">Increase Disk Storage Size</h5>}+ header={<h5 className="text-sm text-scale-1200">Increase Disk Storage Size</h5>}size="medium"visible={showResetDbPass}loading={isUpdatingDiskSize}diff --git a/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx b/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsxindex 9d4e909255b..ae3b84e5135 100644--- a/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx+++ b/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx@@ -120,7 +120,7 @@ const AddRestrictionModal = ({<><Modal.Content><div className="py-6 space-y-4">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">This will add an IP address range to a list of allowed ranges that can accessyour database. Only IPv4 addresses are supported at the moment.</p>@@ -156,7 +156,7 @@ const AddRestrictionModal = ({'border border-scale-200 w-[300px]',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">Classless inter-domain routing (CIDR) notation is the notationused to identify networks and hosts in the networks. The blocksize tells us how many bits we need to take for the network@@ -198,11 +198,11 @@ const AddRestrictionModal = ({</code>{' '}will be restricted</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Selected address space: <code className="text-xs">{addressRange.start}</code>{' '}to <code className="text-xs">{addressRange.end}</code>{' '}</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Number of addresses: {availableAddresses}</p></div>@@ -211,7 +211,7 @@ const AddRestrictionModal = ({<Modal.Content><div className="pt-2 pb-4"><div className="h-[68px] flex items-center">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">A summary of your restriction will be shown here after entering a valid IPaddress and CIDR block size</p>diff --git a/studio/components/interfaces/Settings/Database/NetworkRestrictions/AllowAllModal.tsx b/studio/components/interfaces/Settings/Database/NetworkRestrictions/AllowAllModal.tsxindex 2afb599b262..edb8e167824 100644--- a/studio/components/interfaces/Settings/Database/NetworkRestrictions/AllowAllModal.tsx+++ b/studio/components/interfaces/Settings/Database/NetworkRestrictions/AllowAllModal.tsx@@ -1,3 +1,4 @@+import { FC } from 'react'import { Button, Modal } from 'ui'import { useParams } from 'common/hooks'@@ -31,7 +32,7 @@ const AllowAllModal = ({ visible, onClose }: AllowAllModalProps) => {><Modal.Content><div className="py-6 space-y-4">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">This will allow any IP address to access your project's database. Are you sure?</p></div>diff --git a/studio/components/interfaces/Settings/Database/NetworkRestrictions/DisallowAllModal.tsx b/studio/components/interfaces/Settings/Database/NetworkRestrictions/DisallowAllModal.tsxindex fae43938ad2..3f39e6e30b8 100644--- a/studio/components/interfaces/Settings/Database/NetworkRestrictions/DisallowAllModal.tsx+++ b/studio/components/interfaces/Settings/Database/NetworkRestrictions/DisallowAllModal.tsx@@ -30,7 +30,7 @@ const DisallowAllModal = ({ visible, onClose }: DisallowAllModalProps) => {><Modal.Content><div className="py-6 space-y-4">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">This will prevent any external IP addresses from accessing your project's database. Areyou sure?</p>diff --git a/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx b/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsxindex c1662c1ee65..e7d2b89e181 100644--- a/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx+++ b/studio/components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.tsx@@ -5,11 +5,11 @@ import Link from 'next/link'import { useState } from 'react'import { Button, IconAlertCircle, IconExternalLink, IconGlobe, IconLock } from 'ui'-import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import { FormHeader, FormPanel } from 'components/ui/Forms'import Panel from 'components/ui/Panel'import ShimmeringLoader from 'components/ui/ShimmeringLoader'import { useNetworkRestrictionsQuery } from 'data/network-restrictions/network-restrictions-query'+import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import { useCheckPermissions } from 'hooks'import AddRestrictionModal from './AddRestrictionModal'import AllowAllModal from './AllowAllModal'@@ -38,7 +38,7 @@ const AllowAllAccessButton = ({ disabled, onClick }: AccessButtonProps) => ('border border-scale-200 w-[250px]',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to update network restrictions</span></div>@@ -65,7 +65,7 @@ const DisallowAllAccessButton = ({ disabled, onClick }: AccessButtonProps) => ('border border-scale-200 w-[250px]',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to update network restrictions</span></div>@@ -136,7 +136,7 @@ const NetworkRestrictions = ({}) => {'border border-scale-200 w-[250px]',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to update network restrictions</span></div>@@ -162,10 +162,10 @@ const NetworkRestrictions = ({}) => {<div className="flex items-center justify-between"><div className="space-y-2"><div className="flex items-center space-x-2">- <IconAlertCircle strokeWidth={1.5} className="text-foreground-light" />+ <IconAlertCircle strokeWidth={1.5} className="text-scale-1000" /><p className="text-sm">Your network restrictions were not applied correctly</p></div>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Please try to add your network restrictions again</p></div>@@ -188,10 +188,10 @@ const NetworkRestrictions = ({}) => {<div className="px-8 py-8 flex items-center justify-between"><div className="flex items-start space-x-4"><div className="space-y-1">- <p className="text-foreground-light text-sm">+ <p className="text-scale-1100 text-sm">Your database can be accessed by all IP addresses</p>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1000 text-sm">You may start limiting access to your database by adding a networkrestriction.</p>@@ -207,17 +207,17 @@ const NetworkRestrictions = ({}) => {) : isDisallowedAll ? (<div className="px-8 py-8 flex items-center justify-between"><div className="flex items-start space-x-4">- <IconLock className="text-foreground-light" strokeWidth={1.5} />+ <IconLock className="text-scale-1100" strokeWidth={1.5} /><div className="space-y-1">- <p className="text-foreground-light text-sm">+ <p className="text-scale-1100 text-sm">Your database <span className="text-amber-900 opacity-80">cannot</span> beaccessed externally</p>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1000 text-sm">All external IP addresses have been disallowed from accessing your project'sdatabase.</p>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1000 text-sm">Note: Restrictions only apply to your database, and not to Supabase services</p></div>@@ -233,14 +233,14 @@ const NetworkRestrictions = ({}) => {<div className="divide-y"><div className="px-8 py-3 flex items-center justify-between"><div>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1100 text-sm">Only the following IP addresses have access to your database</p>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1000 text-sm">You may remove all of them to allow all IP addresses to have access to yourdatabase</p>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1000 text-sm">Note: Restrictions only apply to your database, and not to Supabase services</p></div>@@ -259,7 +259,7 @@ const NetworkRestrictions = ({}) => {return (<div key={ip} className="px-8 py-4 flex items-center justify-between"><div className="flex items-center space-x-5">- <IconGlobe size={16} className="text-foreground-light" />+ <IconGlobe size={16} className="text-scale-1000" /><p className="text-sm font-mono">{ip}</p></div><Button type="default" onClick={() => setSelectedRestrictionToRemove(ip)}>diff --git a/studio/components/interfaces/Settings/Database/NetworkRestrictions/RemoveRestrictionModal.tsx b/studio/components/interfaces/Settings/Database/NetworkRestrictions/RemoveRestrictionModal.tsxindex 7b9811e56ba..037469a7376 100644--- a/studio/components/interfaces/Settings/Database/NetworkRestrictions/RemoveRestrictionModal.tsx+++ b/studio/components/interfaces/Settings/Database/NetworkRestrictions/RemoveRestrictionModal.tsx@@ -56,7 +56,7 @@ const RemoveRestrictionModal = ({><Modal.Content><div className="py-6 space-y-4">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">The IPv4 address <code className="text-xs">{selectedRestriction}</code> will be removedfrom your list of network restrictions{isRemovingOnlyRestrictiondiff --git a/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx b/studio/components/interfaces/Settings/Database/SSLConfiguration.tsxindex 6a7aad20310..7d718e910f1 100644--- a/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx+++ b/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx@@ -5,7 +5,6 @@ import Link from 'next/link'import { useEffect, useState } from 'react'import { Alert, Button, IconDownload, IconExternalLink, IconLoader, Toggle } from 'ui'-import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import {FormHeader,FormPanel,@@ -17,6 +16,7 @@ import { useProjectSettingsQuery } from 'data/config/project-settings-query'import { useSSLEnforcementQuery } from 'data/ssl-enforcement/ssl-enforcement-query'import { useSSLEnforcementUpdateMutation } from 'data/ssl-enforcement/ssl-enforcement-update-mutation'import { useCheckPermissions, useStore } from 'hooks'+import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'const SSLConfiguration = () => {const { ui } = useStore()@@ -100,7 +100,7 @@ const SSLConfiguration = () => {className="lg:col-span-7"description={<div className="space-y-4">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Reject non-SSL connections to your database</p>{isSuccess && !sslEnforcementConfiguration?.appliedSuccessfully && (@@ -153,7 +153,7 @@ const SSLConfiguration = () => {'border border-scale-200 w-[250px]',].join(' ')}>- <span className="text-xs text-foreground text-center flex items-center justify-center">+ <span className="text-xs text-scale-1200 text-center flex items-center justify-center">{!canUpdateSSLEnforcement? 'You need additional permissions to update SSL enforcement for your project': !hasAccessToSSLEnforcement@@ -200,7 +200,7 @@ const SSLConfiguration = () => {'border border-scale-200 w-[250px]',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">Projects before 15:08 (GMT+08), 29th April 2021 do not have SSL certificatesinstalled</span>diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsxindex 85f926d6c9f..9443c5e59b4 100644--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainActivate.tsx@@ -61,11 +61,11 @@ const CustomDomainActivate = ({ projectRef, customDomain }: CustomDomainActivate<div className="flex flex-col items-start"><Panel.Content><div className="flex flex-col gap-2">- <h4 className="text-foreground">+ <h4 className="text-scale-1200">Setup complete! Press activate to enable the custom domain{' '}<code className="text-sm">{customDomain.hostname}</code> for this project.</h4>- <span className="text-sm text-foreground-light">+ <span className="text-sm text-scale-1100">We recommend that you schedule a downtime window of 20 - 30 minutes for yourapplication, as you will need to update any services that need to know about yourcustom domain (e.g client side code or OAuth providers)@@ -73,7 +73,7 @@ const CustomDomainActivate = ({ projectRef, customDomain }: CustomDomainActivate</div><div className="mt-4"><Alert_Shadcn_>- <IconAlertCircle className="text-foreground-light" strokeWidth={1.5} />+ <IconAlertCircle className="text-scale-1100" strokeWidth={1.5} /><AlertTitle_Shadcn_>Do remember to restore the original CNAME record from the first step beforeactivatingdiff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsxindex c1fc13403f3..d2e68280594 100644--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainConfig.tsx@@ -6,13 +6,13 @@ import Panel from 'components/ui/Panel'import UpgradeToPro from 'components/ui/UpgradeToPro'import { useProjectApiQuery } from 'data/config/project-api-query'import { useCustomDomainsQuery } from 'data/custom-domains/custom-domains-query'-import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'import { IconAlertCircle } from 'ui'import CustomDomainActivate from './CustomDomainActivate'import CustomDomainDelete from './CustomDomainDelete'+import CustomDomainVerify from './CustomDomainVerify'import CustomDomainsConfigureHostname from './CustomDomainsConfigureHostname'import CustomDomainsShimmerLoader from './CustomDomainsShimmerLoader'-import CustomDomainVerify from './CustomDomainVerify'+import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'const CustomDomainConfig = () => {const { ref } = useParams()@@ -47,7 +47,7 @@ const CustomDomainConfig = () => {<Panel.Content className="space-y-6"><div className="flex items-center justify-center space-x-2 py-8"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Failed to retrieve custom domain configuration. Please try again later or{' '}<Link href={`/support/new?ref=${ref}&category=sales`}><a className="underline">contact support</a>diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsxindex cc141f9dd88..ebeb95f35c8 100644--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainDelete.tsx@@ -33,14 +33,14 @@ const CustomDomainDelete = ({ projectRef, customDomain }: CustomDomainDeleteProp<><Panel.Content><div className="w-full space-y-2">- <p className="text-xs text-foreground-light">Active custom domain:</p>+ <p className="text-xs text-scale-1100">Active custom domain:</p><div className="flex items-center space-x-2"><code className="text-lg mx-0 flex items-center space-x-2"><div className="h-2 w-2 rounded-full bg-brand" /><span>{customDomain.hostname}</span></code></div>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Your custom domain is currently active and is serving traffic</p></div>diff --git a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsxindex 1fdd6a72c90..e70a148ec55 100644--- a/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx+++ b/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainVerify.tsx@@ -56,23 +56,23 @@ const CustomDomainVerify = ({ projectRef, customDomain, settings }: CustomDomain<><Panel.Content className="space-y-6"><div>- <h4 className="text-foreground mb-2">+ <h4 className="text-scale-1200 mb-2">Configure TXT verification for your custom domain{' '}<code className="text-sm">{customDomain.hostname}</code></h4>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Set the following TXT record(s) in your DNS provider, then click verify to confirm yourcontrol over the domain</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Records which have been successfully verified will be removed from this list below.</p><div className="mt-4 mb-2"><Alert_Shadcn_ variant="default">{isNotVerifiedYet ? (- <IconAlertCircle className="text-foreground-light" strokeWidth={1.5} />+ <IconAlertCircle className="text-scale-1100" strokeWidth={1.5} />) : (- <IconHelpCircle className="text-foreground-light" strokeWidth={1.5} />+ <IconHelpCircle className="text-scale-1100" strokeWidth={1.5} />)}<AlertTitle_Shadcn_>{isNotVerifiedYet@@ -128,16 +128,16 @@ const CustomDomainVerify = ({ projectRef, customDomain, settings }: CustomDomain<div className="space-y-2"><div className="flex gap-4"><div className="w-[50px]">- <p className="text-foreground-light text-sm">Type</p>+ <p className="text-scale-1100 text-sm">Type</p></div><div className="text-sm grid gap-2 md:grid md:grid-cols-12 md:gap-x-4 input-mono flex-1"><div className="flex flex-row space-x-2 justify-between col-span-12">- <label className="block text-foreground-light text-sm break-all">Name</label>+ <label className="block text-scale-1100 text-sm break-all">Name</label></div></div><div className="text-sm grid gap-2 md:grid md:grid-cols-12 md:gap-x-4 input-mono flex-1"><div className="flex flex-row space-x-2 justify-between col-span-12">- <label className="block text-foreground-light text-sm break-all">Content</label>+ <label className="block text-scale-1100 text-sm break-all">Content</label></div></div></div>@@ -171,7 +171,7 @@ const CustomDomainVerify = ({ projectRef, customDomain, settings }: CustomDomain{customDomain.ssl.status === 'pending_deployment' && (<div className="flex items-center justify-center space-x-2 py-8"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">SSL certificate is being deployed. Please wait a few minutes and try again.</p></div>@@ -180,12 +180,11 @@ const CustomDomainVerify = ({ projectRef, customDomain, settings }: CustomDomain)}<div className="!mt-4">- <p className="text-sm text-foreground-light">- One of the records requires you to{' '}- <span className="text-foreground-light">replace</span> the CNAME record set up in the- first step with a TXT record.+ <p className="text-sm text-scale-1000">+ One of the records requires you to <span className="text-scale-1100">replace</span> the+ CNAME record set up in the first step with a TXT record.</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">You'll be able to restore it back to the CNAME after the verification process has beencompleted.</p>diff --git a/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx b/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsxindex b992452981f..748741e5fea 100644--- a/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx+++ b/studio/components/interfaces/Settings/General/DeleteProjectPanel/DeleteProjectButton.tsx@@ -11,6 +11,7 @@ import { useSendDowngradeFeedbackMutation } from 'data/feedback/exit-survey-sendimport { useProjectDeleteMutation } from 'data/projects/project-delete-mutation'import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'import { useCheckPermissions, useStore } from 'hooks'+import { PRICING_TIER_PRODUCT_IDS } from 'lib/constants'export interface DeleteProjectButtonProps {type?: 'danger' | 'default'@@ -108,7 +109,7 @@ const DeleteProjectButton = ({ type = 'danger' }: DeleteProjectButtonProps) => {'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to delete this project</span></div>@@ -146,7 +147,7 @@ const DeleteProjectButton = ({ type = 'danger' }: DeleteProjectButtonProps) => {<><div className="space-y-1"><h4 className="text-base">We're sad that you're leaving.</h4>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">We always strive to improve Supabase as much as we can. Please let us know thereasons you are deleting your project so that we can improve in the future.</p>@@ -164,7 +165,7 @@ const DeleteProjectButton = ({ type = 'danger' }: DeleteProjectButtonProps) => {`${active? ` bg-scale-1200 text-scale-100 opacity-100 hover:bg-opacity-75`- : ` bg-scale-700 text-foreground opacity-25 hover:opacity-50`+ : ` bg-scale-700 text-scale-1200 opacity-25 hover:opacity-50`}`,].join(' ')}>diff --git a/studio/components/interfaces/Settings/General/General.tsx b/studio/components/interfaces/Settings/General/General.tsxindex 311e032e43b..82cc41c6e68 100644--- a/studio/components/interfaces/Settings/General/General.tsx+++ b/studio/components/interfaces/Settings/General/General.tsx@@ -124,7 +124,7 @@ const General = () => {<div><p className="text-sm">Restart project</p><div className="max-w-[420px]">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Your project will not be available for a few minutes.</p></div>@@ -135,7 +135,7 @@ const General = () => {<div><p className="text-sm">Pause project</p><div className="max-w-[420px]">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Your project will not be accessible while it is paused.</p></div>@@ -152,7 +152,7 @@ const General = () => {<IconBarChart2 strokeWidth={2} /><div><p className="text-sm">Project usage statistics has been moved</p>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1000 text-sm">You may view your project's usage under your organization's settings</p></div>diff --git a/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsx b/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsxindex 99af70d9865..42858f5fcad 100644--- a/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsx+++ b/studio/components/interfaces/Settings/General/Infrastructure/Infrastructure.tsx@@ -1,23 +1,24 @@-import * as Tooltip from '@radix-ui/react-tooltip'-import { observer } from 'mobx-react-lite'import Link from 'next/link'import { Alert, Badge, Button, IconPackage, Input } from 'ui'+import { observer } from 'mobx-react-lite'+import * as Tooltip from '@radix-ui/react-tooltip'+import { useFlag } from 'hooks'import { useParams } from 'common/hooks'-import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'+import { PRICING_TIER_PRODUCT_IDS } from 'lib/constants'import {FormHeader,FormPanel,FormSection,- FormSectionContent,FormSectionLabel,+ FormSectionContent,} from 'components/ui/Forms'-import { useProjectUpgradeEligibilityQuery } from 'data/config/project-upgrade-eligibility-query'-import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'-import { useFlag } from 'hooks'-import PauseProjectButton from './PauseProjectButton'import ProjectUpgradeAlert from './ProjectUpgradeAlert'+import PauseProjectButton from './PauseProjectButton'import RestartServerButton from './RestartServerButton'+import { useProjectUpgradeEligibilityQuery } from 'data/config/project-upgrade-eligibility-query'+import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'+import { useProjectSubscriptionV2Query } from 'data/subscriptions/project-subscription-v2-query'interface InfrastructureProps {}@@ -53,7 +54,7 @@ const Infrastructure = ({}: InfrastructureProps) => {<div><p className="text-sm">Restart server</p><div className="max-w-[420px]">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Your project will not be available for a few minutes.</p></div>@@ -68,7 +69,7 @@ const Infrastructure = ({}: InfrastructureProps) => {<div><p className="text-sm">Pause project</p><div className="max-w-[420px]">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Your project will not be accessible while it is paused.</p></div>@@ -113,7 +114,7 @@ const Infrastructure = ({}: InfrastructureProps) => {'border border-scale-200 w-[200px]',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">Project is on the latest version of Postgres that Supabase supports</span></div>@@ -126,7 +127,7 @@ const Infrastructure = ({}: InfrastructureProps) => {{showDbUpgrades && data?.eligible && <ProjectUpgradeAlert />}{showDbUpgrades && !data?.eligible && data?.requires_manual_intervention && (<Alert- icon={<IconPackage className="text-foreground-light" strokeWidth={1.5} />}+ icon={<IconPackage className="text-scale-1100" strokeWidth={1.5} />}variant="neutral"title="A new version of Postgres is available for your project">diff --git a/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx b/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsxindex 64defec19e0..5d63779c5d2 100644--- a/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx+++ b/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx@@ -72,7 +72,7 @@ const PauseProjectButton = () => {'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">{isPaused? 'Your project is already paused': !canPauseProjectdiff --git a/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert/ProjectUpgradeAlert.tsx b/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert/ProjectUpgradeAlert.tsxindex 75730c83b2d..2bf234e068d 100644--- a/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert/ProjectUpgradeAlert.tsx+++ b/studio/components/interfaces/Settings/General/Infrastructure/ProjectUpgradeAlert/ProjectUpgradeAlert.tsx@@ -94,7 +94,7 @@ const ProjectUpgradeAlert = () => {if (change !== undefined)return (<li key={reason}>- <p className="text-foreground">{change.title}</p>+ <p className="text-scale-1200">{change.title}</p><p className="flex items-center space-x-1"><span>This update has breaking changes. Read more </span><Link href={change.url}>diff --git a/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx b/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsxindex 2d353024155..9df235a01bc 100644--- a/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx+++ b/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx@@ -4,14 +4,7 @@ import { useQueryClient } from '@tanstack/react-query'import { observer } from 'mobx-react-lite'import { useRouter } from 'next/router'import { useState } from 'react'-import {- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconChevronDown,-} from 'ui'+import { Button, Dropdown, IconChevronDown } from 'ui'import {useIsProjectActive,@@ -106,17 +99,11 @@ const RestartServerButton = () => {Restart project</Button>{canRestartProject && isProjectActive && (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- type="default"- className="rounded-l-none px-[4px] py-[5px]"- icon={<IconChevronDown />}- disabled={!canRestartProject}- />- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ align="end" side="bottom">- <DropdownMenuItem_Shadcn_+ <Dropdown+ align="end"+ side="bottom"+ overlay={[+ <Dropdown.Itemkey="database"disabled={isLoading}onClick={() => {@@ -124,15 +111,22 @@ const RestartServerButton = () => {}}><div className="space-y-1">- <p className="block text-foreground">Fast database reboot</p>- <p className="block text-foreground-light text-xs">+ <p className="block text-scale-1200">Fast database reboot</p>+ <p className="block text-scale-1100 text-xs">Restarts only the database - faster but may not be able to recover from allfailure modes</p></div>- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ </Dropdown.Item>,+ ]}+ >+ <Button+ type="default"+ className="rounded-l-none px-[4px] py-[5px]"+ icon={<IconChevronDown />}+ disabled={!canRestartProject}+ />+ </Dropdown>)}</div></Tooltip.Trigger>@@ -146,7 +140,7 @@ const RestartServerButton = () => {'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">{!canRestartProject? 'You need additional permissions to restart this project': !isProjectActive@@ -166,7 +160,7 @@ const RestartServerButton = () => {description={<>Are you sure you want to restart the{' '}- <span className="text-foreground">{serviceToRestart}</span>? There will be a few minutes+ <span className="text-scale-1200">{serviceToRestart}</span>? There will be a few minutesof downtime.</>}diff --git a/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx b/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsxindex 1eecf14c5ca..1bd733e909a 100644--- a/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx+++ b/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx@@ -106,7 +106,7 @@ const TransferProjectButton = () => {'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">{!canTransferProject? 'You need additional permissions to transfer this project': 'Project transfers are temporarily disabled, please try again later.'}@@ -140,7 +140,7 @@ const TransferProjectButton = () => {</div>}>- <div className="space-y-4 py-4 text-foreground-light">+ <div className="space-y-4 py-4 text-scale-1100"><Modal.Content><p className="text-sm">To transfer projects, the owner must be a member of both the source and target@@ -225,7 +225,7 @@ const TransferProjectButton = () => {</Listbox>)}- <p className="text-foreground-light text-sm">+ <p className="text-scale-1000 text-sm">The target organization needs to use{' '}<Link href="https://supabase.com/docs/guides/platform/org-based-billing"><a target="_blank" rel="noreferrer" className="underline">@@ -248,7 +248,7 @@ const TransferProjectButton = () => {<Modal.Content><div className="px-4">{transferPreviewData && transferPreviewData.valid && (- <div className="text-sm text-foreground-light p-4 bg-scale-400">+ <div className="text-sm text-scale-1100 p-4 bg-scale-400">{transferPreviewData.source_subscription_plan !==transferPreviewData.target_subscription_plan ? (<div>@@ -322,12 +322,12 @@ const TransferProjectButton = () => {</div>{transferPreviewData.members_exceeding_free_project_limit.length > 0 && (<div className="space-y-2">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">These members have reached their maximum limits for the number of activeFree plan projects within organizations where they are an administrator orowner:</p>- <ul className="pl-5 text-sm list-disc text-foreground-light">+ <ul className="pl-5 text-sm list-disc text-scale-1100">{(transferPreviewData.members_exceeding_free_project_limit || []).map((member, idx: number) => (<li key={`member-${idx}`}>@@ -336,7 +336,7 @@ const TransferProjectButton = () => {))}</ul>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">These members will need to either delete, pause, or upgrade one or more oftheir projects before you can downgrade this project.</p>diff --git a/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsx b/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsxindex 3b7805bdf0c..e3eb9a72d01 100644--- a/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsx+++ b/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsx@@ -23,7 +23,7 @@ const TransferProjectPanel = () => {<IconTruck className="mt-1" /><div className="space-y-1 xl:max-w-lg"><p className="text-sm">Transfer project to another organization</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">To transfer projects, the owner must be a member of both the source and targetorganizations.</p>diff --git a/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx b/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsxindex 6d343850273..9a077356b21 100644--- a/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx+++ b/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx@@ -25,10 +25,10 @@ import { DataPoint } from 'data/analytics/constants'import { useInfraMonitoringQuery } from 'data/analytics/infra-monitoring-query'import { useOrgSubscriptionQuery } from 'data/subscriptions/org-subscription-query'import { useProjectAddonsQuery } from 'data/subscriptions/project-addons-query'-import { useResourceWarningsQuery } from 'data/usage/resource-warnings-query'import { useSelectedOrganization } from 'hooks'import { TIME_PERIODS_BILLING, TIME_PERIODS_REPORTS } from 'lib/constants'import { INFRA_ACTIVITY_METRICS } from './Infrastructure.constants'+import { useResourceWarningsQuery } from 'data/usage/resource-warnings-query'const InfrastructureActivity = () => {const { ref: projectRef } = useParams()@@ -178,7 +178,7 @@ const InfrastructureActivity = () => {<div className="mx-auto flex flex-col gap-10 pt-6"><div><p className="text-xl">Infrastructure Activity</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Activity statistics related to your server instance</p></div>@@ -195,7 +195,7 @@ const InfrastructureActivity = () => {loading={isLoadingSubscription}currentBillingPeriodStart={subscription?.current_period_start}/>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">{dayjs(startDate).format('DD MMM YYYY')} - {dayjs(endDate).format('DD MMM YYYY')}</p></>@@ -218,14 +218,14 @@ const InfrastructureActivity = () => {</div><div className="grid gap-4">{attribute.description.split('\n').map((value, idx) => (- <p key={`desc-${idx}`} className="text-sm text-foreground-light pr-8 m-0">+ <p key={`desc-${idx}`} className="text-sm text-scale-1000 pr-8 m-0">{value}</p>))}</div></div><div className="space-y-2">- <p className="text-sm text-foreground dark:text-foreground-light mb-2">+ <p className="text-sm text-scale-1200 dark:text-scale-1100 mb-2">More information</p>{attribute.links.map((link) => (@@ -259,12 +259,12 @@ const InfrastructureActivity = () => {{currentComputeInstanceSpecs.baseline_disk_io_mbs ===currentComputeInstanceSpecs.max_disk_io_mbs ? (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Your current compute can has a baseline and maximum disk throughput of{' '}{currentComputeInstanceSpecs.max_disk_io_mbs?.toLocaleString()} Mbps.</p>) : (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Your current compute can burst up to{' '}{currentComputeInstanceSpecs.max_disk_io_mbs?.toLocaleString()} Mbps for30 minutes a day and reverts to the baseline performance of{' '}@@ -276,11 +276,11 @@ const InfrastructureActivity = () => {<div><p className="text-sm mb-2">Overview</p><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-foreground-light">Current compute instance</p>+ <p className="text-xs text-scale-1000">Current compute instance</p><p className="text-xs">{computeInstance?.variant?.name ?? 'Micro'}</p></div><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-foreground-light">+ <p className="text-xs text-scale-1000">Maximum IO Bandwidth (burst limit)</p><p className="text-xs">@@ -288,7 +288,7 @@ const InfrastructureActivity = () => {</p></div><div className="flex items-center justify-between border-b py-1">- <p className="text-xs text-foreground-light">Baseline IO Bandwidth</p>+ <p className="text-xs text-scale-1000">Baseline IO Bandwidth</p><p className="text-xs">{currentComputeInstanceSpecs.baseline_disk_io_mbs?.toLocaleString()}{' '}Mbps@@ -297,7 +297,7 @@ const InfrastructureActivity = () => {{currentComputeInstanceSpecs.max_disk_io_mbs !==currentComputeInstanceSpecs?.baseline_disk_io_mbs && (<div className="flex items-center justify-between py-1">- <p className="text-xs text-foreground-light">Daily burst time limit</p>+ <p className="text-xs text-scale-1000">Daily burst time limit</p><p className="text-xs">30 mins</p></div>)}@@ -335,7 +335,7 @@ const InfrastructureActivity = () => {</div>{attribute.key === 'ram_usage' && (- <div className="text-sm text-foreground-light">+ <div className="text-sm text-scale-1000"><p>Your compute instance has {currentComputeInstanceSpecs.memory_gb} GB ofmemory.@@ -350,13 +350,13 @@ const InfrastructureActivity = () => {)}{attribute.key === 'max_cpu_usage' && (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Your compute instance has {currentComputeInstanceSpecs.cpu_cores} CPU cores.</p>)}{attribute.chartDescription.split('\n').map((paragraph, idx) => (- <p key={`para-${idx}`} className="text-sm text-foreground-light">+ <p key={`para-${idx}`} className="text-sm text-scale-1000">{paragraph}</p>))}@@ -381,11 +381,9 @@ const InfrastructureActivity = () => {<Panel><Panel.Content><div className="flex flex-col items-center justify-center space-y-2">- <IconBarChart2 className="text-foreground-light mb-2" />+ <IconBarChart2 className="text-scale-1100 mb-2" /><p className="text-sm">No data in period</p>- <p className="text-sm text-foreground-light">- May take a few minutes to show- </p>+ <p className="text-sm text-scale-1000">May take a few minutes to show</p></div></Panel.Content></Panel>diff --git a/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx b/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsxindex 706ab312116..a09021ff312 100644--- a/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx+++ b/studio/components/interfaces/Settings/Infrastructure/InfrastructureInfo.tsx@@ -45,7 +45,7 @@ const InfrastructureInfo = () => {<div className="mx-auto flex flex-col gap-10 py-6"><div><p className="text-xl">Infrastructure</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">General information regarding your server instance</p></div>@@ -56,7 +56,7 @@ const InfrastructureInfo = () => {<ScaffoldSection><ScaffoldSectionDetail><p>Configuration</p>- <p className="text-foreground-light text-sm">Information on your server provider</p>+ <p className="text-scale-1000 text-sm">Information on your server provider</p></ScaffoldSectionDetail><ScaffoldSectionContent><Input readOnly disabled value={project?.cloud_provider} label="Cloud provider" />@@ -66,9 +66,7 @@ const InfrastructureInfo = () => {<ScaffoldSection className="!pt-0"><ScaffoldSectionDetail><p>Service Versions</p>- <p className="text-foreground-light text-sm">- Information on your provisioned instance- </p>+ <p className="text-scale-1000 text-sm">Information on your provisioned instance</p></ScaffoldSectionDetail><ScaffoldSectionContent>{isLoadingUpgradeEligibility && <GenericSkeletonLoader />}@@ -111,7 +109,7 @@ const InfrastructureInfo = () => {'border border-scale-200 w-[200px]',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">Project is on the latest version of Postgres that Supabase supports</span></div>@@ -124,7 +122,7 @@ const InfrastructureInfo = () => {{showDbUpgrades && data?.eligible && <ProjectUpgradeAlert />}{showDbUpgrades && !data?.eligible && data?.requires_manual_intervention && (<Alert- icon={<IconPackage className="text-foreground-light" strokeWidth={1.5} />}+ icon={<IconPackage className="text-scale-1100" strokeWidth={1.5} />}variant="neutral"title="A new version of Postgres is available for your project">diff --git a/studio/components/interfaces/Settings/Logs/LogSelection.tsx b/studio/components/interfaces/Settings/Logs/LogSelection.tsxindex 9b2d0e49faf..5f0a537be97 100644--- a/studio/components/interfaces/Settings/Logs/LogSelection.tsx+++ b/studio/components/interfaces/Settings/Logs/LogSelection.tsx@@ -3,14 +3,12 @@ import { Button, IconX } from 'ui'import CopyButton from 'components/ui/CopyButton'import Connecting from 'components/ui/Loading/Loading'import useSingleLog from 'hooks/analytics/useSingleLog'-import { useMemo } from 'react'import {+ LogsEndpointParams,isDefaultLogPreviewFormat,isUnixMicro,- LogsEndpointParams,unixMicroToIsoTimestamp,} from '.'-import { LogData, QueryType } from './Logs.types'import AuthSelectionRenderer from './LogSelectionRenderers/AuthSelectionRenderer'import DatabaseApiSelectionRender from './LogSelectionRenderers/DatabaseApiSelectionRender'import DatabasePostgresSelectionRender from './LogSelectionRenderers/DatabasePostgresSelectionRender'@@ -18,6 +16,8 @@ import DefaultExplorerSelectionRenderer from './LogSelectionRenderers/DefaultExpimport DefaultPreviewSelectionRenderer from './LogSelectionRenderers/DefaultPreviewSelectionRenderer'import FunctionInvocationSelectionRender from './LogSelectionRenderers/FunctionInvocationSelectionRender'import FunctionLogsSelectionRender from './LogSelectionRenderers/FunctionLogsSelectionRender'+import { LogData, QueryType } from './Logs.types'+import { useMemo } from 'react'export interface LogSelectionProps {log: LogData | null@@ -41,30 +41,31 @@ const LogSelection = ({partialLog?.id)const Formatter = () => {+switch (queryType) {case 'api':if (!fullLog) return null- if (!fullLog.metadata) return <DefaultPreviewSelectionRenderer log={fullLog} />+ if (!fullLog.metadata) return <DefaultPreviewSelectionRenderer log={fullLog} />;return <DatabaseApiSelectionRender log={fullLog} />case 'database':if (!fullLog) return null- if (!fullLog.metadata) return <DefaultPreviewSelectionRenderer log={fullLog} />+ if (!fullLog.metadata) return <DefaultPreviewSelectionRenderer log={fullLog} />;return <DatabasePostgresSelectionRender log={fullLog} />case 'fn_edge':if (!fullLog) return null- if (!fullLog.metadata) return <DefaultPreviewSelectionRenderer log={fullLog} />+ if (!fullLog.metadata) return <DefaultPreviewSelectionRenderer log={fullLog} />;return <FunctionInvocationSelectionRender log={fullLog} />case 'functions':if (!fullLog) return null- if (!fullLog.metadata) return <DefaultPreviewSelectionRenderer log={fullLog} />+ if (!fullLog.metadata) return <DefaultPreviewSelectionRenderer log={fullLog} />;return <FunctionLogsSelectionRender log={fullLog} />case 'auth':if (!fullLog) return null- if (!fullLog.metadata) return <DefaultPreviewSelectionRenderer log={fullLog} />+ if (!fullLog.metadata) return <DefaultPreviewSelectionRenderer log={fullLog} />;return <AuthSelectionRenderer log={fullLog} />default:@@ -146,8 +147,8 @@ ${JSON.stringify(fullLog.metadata, null, 2)}</div></div><div className="flex flex-col gap-1">- <h3 className="text-sm text-foreground">Select an Event</h3>- <p className="text-xs text-foreground-lighter">+ <h3 className="text-sm text-scale-1200">Select an Event</h3>+ <p className="text-xs text-scale-900">Select an Event to view the code snippet (pretty view) or complete JSON payload (rawview).</p>@@ -162,10 +163,10 @@ ${JSON.stringify(fullLog.metadata, null, 2)}</div><Buttontype="text"- className="cursor-pointer transition hover:text-foreground h-8 w-8 px-0 py-0 flex items-center justify-center"+ className="cursor-pointer transition hover:text-scale-1200 h-8 w-8 px-0 py-0 flex items-center justify-center"onClick={onClose}>- <IconX size={14} strokeWidth={2} className="text-foreground-lighter" />+ <IconX size={14} strokeWidth={2} className="text-scale-900" /></Button></div><div className="h-px w-full bg-scale-600 rounded " />diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/AuthSelectionRenderer.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/AuthSelectionRenderer.tsxindex 215dbc3a096..9f80f0fb3d5 100644--- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/AuthSelectionRenderer.tsx+++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/AuthSelectionRenderer.tsx@@ -12,8 +12,8 @@ const AuthSelectionRenderer = ({ log }: { log: PreviewLogData }) => {return (<div className={`${LOGS_TAILWIND_CLASSES.log_selection_x_padding} space-y-6`}><div className="flex flex-col gap-3">- <h3 className="text-foreground-lighter text-sm">Event Message</h3>- <div className="text-xs text-wrap font-mono text-foreground whitespace-pre-wrap overflow-x-auto">+ <h3 className="text-scale-900 text-sm">Event Message</h3>+ <div className="text-xs text-wrap font-mono text-scale-1200 whitespace-pre-wrap overflow-x-auto">{log.metadata?.msg || log.event_message}</div></div>@@ -41,9 +41,9 @@ const AuthSelectionRenderer = ({ log }: { log: PreviewLogData }) => {)}<div className="flex flex-col gap-3">- <h3 className="text-foreground-lighter text-sm">Metadata</h3>+ <h3 className="text-scale-900 text-sm">Metadata</h3><pre- className=" className={`text-foreground text-sm col-span-8 overflow-x-auto text-xs font-mono`}"+ className=" className={`text-scale-1200 text-sm col-span-8 overflow-x-auto text-xs font-mono`}"dangerouslySetInnerHTML={{__html: jsonSyntaxHighlight(log.metadata!),}}diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabaseApiSelectionRender.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabaseApiSelectionRender.tsxindex fd0146dc4c6..04e463790e2 100644--- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabaseApiSelectionRender.tsx+++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabaseApiSelectionRender.tsx@@ -35,7 +35,7 @@ const DatabaseApiSelectionRender = ({ log }: any) => {</div><LogsDivider /><div className={`${LOGS_TAILWIND_CLASSES.log_selection_x_padding}`}>- <h3 className="text-lg text-foreground mb-4">Request Metadata</h3>+ <h3 className="text-lg text-scale-1200 mb-4">Request Metadata</h3><pre className="text-sm syntax-highlight overflow-x-auto"><divclassName="text-wrap"@@ -47,7 +47,7 @@ const DatabaseApiSelectionRender = ({ log }: any) => {</div><LogsDivider /><div className={`${LOGS_TAILWIND_CLASSES.log_selection_x_padding}`}>- <h3 className="text-lg text-foreground mb-4">Response Metadata</h3>+ <h3 className="text-lg text-scale-1200 mb-4">Response Metadata</h3><pre className="text-sm syntax-highlight overflow-x-auto"><divdangerouslySetInnerHTML={{diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabasePostgresSelectionRender.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabasePostgresSelectionRender.tsxindex ff4cf03666f..de9ed2e3edd 100644--- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabasePostgresSelectionRender.tsx+++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DatabasePostgresSelectionRender.tsx@@ -1,4 +1,5 @@import { Alert } from 'ui'+import React from 'react'import { LOGS_TAILWIND_CLASSES } from '../Logs.constants'import LogsDivider from '../Logs.Divider'import {@@ -17,9 +18,9 @@ const DatabasePostgresSelectionRender = ({ log }: any) => {return (<><div className={LOGS_TAILWIND_CLASSES.log_selection_x_padding}>- <span className="col-span-4 text-sm text-foreground-lighter">Event message</span>+ <span className="col-span-4 text-sm text-scale-900">Event message</span>- <div className="text-wrap mt-2 overflow-x-auto whitespace-pre-wrap font-mono text-xs text-foreground">+ <div className="text-wrap mt-2 overflow-x-auto whitespace-pre-wrap font-mono text-xs text-scale-1200">{log.event_message}</div></div>@@ -41,7 +42,7 @@ const DatabasePostgresSelectionRender = ({ log }: any) => {)}<LogsDivider /><div className={LOGS_TAILWIND_CLASSES.log_selection_x_padding}>- <h3 className="mb-4 text-lg text-foreground">Metadata</h3>+ <h3 className="mb-4 text-lg text-scale-1200">Metadata</h3><pre className="syntax-highlight overflow-x-auto text-sm"><divclassName="text-wrap"diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultExplorerSelectionRenderer.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultExplorerSelectionRenderer.tsxindex f56d2123791..a4be3324635 100644--- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultExplorerSelectionRenderer.tsx+++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultExplorerSelectionRenderer.tsx@@ -13,9 +13,9 @@ const DefaultExplorerSelectionRenderer = ({ log }: any) => {}) => {return (<div className="grid grid-cols-12">- <span className="text-foreground-lighter text-sm col-span-4">{label}</span>+ <span className="text-scale-900 text-sm col-span-4">{label}</span><span- className={`text-foreground text-sm col-span-8 overflow-x-auto ${+ className={`text-scale-1200 text-sm col-span-8 overflow-x-auto ${code && 'text-xs font-mono'}`}>diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultPreviewSelectionRenderer.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultPreviewSelectionRenderer.tsxindex a53f2c46718..b050562bc93 100644--- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultPreviewSelectionRenderer.tsx+++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultPreviewSelectionRenderer.tsx@@ -5,16 +5,16 @@ import { jsonSyntaxHighlight, SelectionDetailedTimestampRow } from '../LogsFormaconst DefaultPreviewSelectionRenderer = ({ log }: { log: PreviewLogData }) => (<div className={`${LOGS_TAILWIND_CLASSES.log_selection_x_padding} space-y-6`}><div className="flex flex-col gap-3">- <h3 className="text-foreground-lighter text-sm">Event Message</h3>- <div className="text-xs text-wrap font-mono text-foreground whitespace-pre-wrap overflow-x-auto">+ <h3 className="text-scale-900 text-sm">Event Message</h3>+ <div className="text-xs text-wrap font-mono text-scale-1200 whitespace-pre-wrap overflow-x-auto">{log.event_message}</div></div><SelectionDetailedTimestampRow value={log.timestamp} /><div className="flex flex-col gap-3">- <h3 className="text-foreground-lighter text-sm">Metadata</h3>+ <h3 className="text-scale-900 text-sm">Metadata</h3><pre- className=" className={`text-foreground text-sm col-span-8 overflow-x-auto text-xs font-mono`}"+ className=" className={`text-scale-1200 text-sm col-span-8 overflow-x-auto text-xs font-mono`}"dangerouslySetInnerHTML={{__html: jsonSyntaxHighlight(log.metadata || {}),}}diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionInvocationSelectionRender.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionInvocationSelectionRender.tsxindex 6f5feab61a3..fb2f2c0dfa1 100644--- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionInvocationSelectionRender.tsx+++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionInvocationSelectionRender.tsx@@ -38,7 +38,7 @@ const FunctionInvocationSelectionRender = ({ log }: { log: PreviewLogData }) =>/></div><div className={`${LOGS_TAILWIND_CLASSES.log_selection_x_padding}`}>- <h3 className="text-lg text-foreground mb-4">Request Metadata</h3>+ <h3 className="text-lg text-scale-1200 mb-4">Request Metadata</h3><pre className="text-sm syntax-highlight overflow-x-auto"><divclassName="text-wrap"@@ -49,7 +49,9 @@ const FunctionInvocationSelectionRender = ({ log }: { log: PreviewLogData }) =></pre></div><div className={`${LOGS_TAILWIND_CLASSES.log_selection_x_padding}`}>- <h3 className="text-lg text-foreground mb-4">Response Metadata</h3>+ <h3 className="text-lg text-scale-1200 mb-4">+ Response Metadata+ </h3><pre className="text-sm syntax-highlight overflow-x-auto"><divdangerouslySetInnerHTML={{diff --git a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionLogsSelectionRender.tsx b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionLogsSelectionRender.tsxindex ca1538bdede..2f5131fc802 100644--- a/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionLogsSelectionRender.tsx+++ b/studio/components/interfaces/Settings/Logs/LogSelectionRenderers/FunctionLogsSelectionRender.tsx@@ -1,3 +1,4 @@+import dayjs from 'dayjs'import { LOGS_TAILWIND_CLASSES } from '../Logs.constants'import {jsonSyntaxHighlight,@@ -12,8 +13,8 @@ const FunctionLogsSelectionRender = ({ log }: any) => {return (<><div className={`${LOGS_TAILWIND_CLASSES.log_selection_x_padding}`}>- <span className="text-foreground-lighter text-sm col-span-4">Event message</span>- <div className="text-xs text-wrap font-mono text-foreground mt-2 whitespace-pre-wrap overflow-x-auto">+ <span className="text-scale-900 text-sm col-span-4">Event message</span>+ <div className="text-xs text-wrap font-mono text-scale-1200 mt-2 whitespace-pre-wrap overflow-x-auto">{log.event_message}</div></div>@@ -30,7 +31,7 @@ const FunctionLogsSelectionRender = ({ log }: any) => {<SelectionDetailedRow label="Deployment ID" value={metadata.deployment_id} /></div><div className={`${LOGS_TAILWIND_CLASSES.log_selection_x_padding}`}>- <h3 className="text-lg text-foreground mb-4">Metadata</h3>+ <h3 className="text-lg text-scale-1200 mb-4">Metadata</h3><pre className="text-sm syntax-highlight overflow-x-auto"><divclassName="text-wrap"diff --git a/studio/components/interfaces/Settings/Logs/LogTable.tsx b/studio/components/interfaces/Settings/Logs/LogTable.tsxindex dd7da8b40f3..08133ed0dec 100644--- a/studio/components/interfaces/Settings/Logs/LogTable.tsx+++ b/studio/components/interfaces/Settings/Logs/LogTable.tsx@@ -13,9 +13,9 @@ import DatabasePostgresColumnRender from './LogColumnRenderers/DatabasePostgresCimport DefaultPreviewColumnRenderer from './LogColumnRenderers/DefaultPreviewColumnRenderer'import FunctionsEdgeColumnRender from './LogColumnRenderers/FunctionsEdgeColumnRender'import FunctionsLogsColumnRender from './LogColumnRenderers/FunctionsLogsColumnRender'+import LogSelection, { LogSelectionProps } from './LogSelection'import { LogData, QueryType } from './Logs.types'import { isDefaultLogPreviewFormat } from './Logs.utils'-import LogSelection, { LogSelectionProps } from './LogSelection'import DefaultErrorRenderer from './LogsErrorRenderers/DefaultErrorRenderer'import ResourcesExceededErrorRenderer from './LogsErrorRenderers/ResourcesExceededErrorRenderer'@@ -184,11 +184,11 @@ const LogTable = ({<div className="flex items-center gap-2">{data && data.length ? (<>- <span className="text-sm text-foreground">Query results</span>- <span className="text-sm text-foreground-light">{data && data.length}</span>+ <span className="text-sm text-scale-1200">Query results</span>+ <span className="text-sm text-scale-1100">{data && data.length}</span></>) : (- <span className="text-xs text-foreground">Results will be shown below</span>+ <span className="text-xs text-scale-1200">Results will be shown below</span>)}</div><div className="flex items-center gap-2">@@ -237,7 +237,7 @@ const LogTable = ({<div className="flex flex-col gap-1"><div className="relative flex h-4 w-32 items-center rounded border border-dashed border-scale-600 px-2 dark:border-scale-900"></div><div className="relative flex h-4 w-32 items-center rounded border border-dashed border-scale-600 px-2 dark:border-scale-900">- <div className="absolute right-1 -bottom-4 text-foreground-light">+ <div className="absolute right-1 -bottom-4 text-scale-1100"><svgxmlns="http://www.w3.org/2000/svg"className="h-6 w-6"@@ -256,10 +256,8 @@ const LogTable = ({</div></div><div className="flex flex-col gap-1 px-5">- <h3 className="text-lg text-foreground">No results</h3>- <p className="text-sm text-foreground-lighter">- Try another search, or adjusting the filters- </p>+ <h3 className="text-lg text-scale-1200">No results</h3>+ <p className="text-sm text-scale-900">Try another search, or adjusting the filters</p></div></div>)diff --git a/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx b/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsxindex fe38059e053..0c466ab5f41 100644--- a/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx+++ b/studio/components/interfaces/Settings/Logs/Logs.DatePickers.tsx@@ -1,16 +1,7 @@+import { Alert, Button, Dropdown, IconClock } from 'ui'import { DatePicker } from 'components/ui/DatePicker'import dayjs from 'dayjs'import { useEffect, useState } from 'react'-import {- Alert,- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuRadioGroup_Shadcn_,- DropdownMenuRadioItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconClock,-} from 'ui'import { DatetimeHelper, getDefaultHelper, LOGS_LARGE_DATE_RANGE_DAYS_THRESHOLD } from '.'interface Props {@@ -49,41 +40,37 @@ const DatePickers: React.FC<Props> = ({ to, from, onChange, helpers }) => {return (<div className="flex items-center">- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- asChild- type={helperValue ? 'secondary' : 'default'}- icon={<IconClock size={12} />}- className="rounded-r-none"- >- <span>{selectedHelper?.text || defaultHelper.text}</span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="start">- <DropdownMenuRadioGroup_Shadcn_- onValueChange={handleHelperChange}- value={selectedHelper?.text || ''}- >- {helpers.map((helper) => (- <DropdownMenuRadioItem_Shadcn_- key={helper.text}- value={helper.text}- disabled={helper.disabled}- >- <span- className={[- helper.disabled ? 'text-foreground-light cursor-not-allowed' : '',- ].join(' ')}- >- {helper.text}- </span>- </DropdownMenuRadioItem_Shadcn_>- ))}- </DropdownMenuRadioGroup_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>-+ <Dropdown+ size="small"+ side="bottom"+ align="start"+ overlay={+ <>+ <Dropdown.RadioGroup onChange={handleHelperChange} value={selectedHelper?.text || ''}>+ {helpers.map((helper) => (+ <Dropdown.Radio key={helper.text} value={helper.text} disabled={helper.disabled}>+ <span+ className={[helper.disabled ? 'text-scale-1000 cursor-not-allowed' : ''].join(+ ' '+ )}+ >+ {helper.text}+ </span>+ </Dropdown.Radio>+ ))}+ </Dropdown.RadioGroup>+ </>+ }+ >+ <Button+ asChild+ type={helperValue ? 'secondary' : 'default'}+ icon={<IconClock size={12} />}+ className="rounded-r-none"+ >+ <span>{selectedHelper?.text || defaultHelper.text}</span>+ </Button>+ </Dropdown><DatePickertriggerButtonClassName="rounded-l-none"triggerButtonType={selectedHelper ? 'default' : 'secondary'}diff --git a/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx b/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsxindex 65cb8967e58..7ac849da75b 100644--- a/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx+++ b/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx@@ -26,17 +26,17 @@ const SavedQueriesItem = ({ item }: SavedQueriesItemProps) => {<IconChevronRight strokeWidth={2} size={14} /></div></button>- <span className="text-sm text-foreground">{item.name}</span>+ <span className="text-sm text-scale-1200">{item.name}</span></div></Table.td><Table.td className="">- <span className="text-foreground-light">{item.description}</span>+ <span className="text-scale-1100">{item.description}</span></Table.td><Table.td className="">- <span className="text-foreground-light">{timestampLocalFormatter(item.inserted_at)}</span>+ <span className="text-scale-1100">{timestampLocalFormatter(item.inserted_at)}</span></Table.td><Table.td className="">- <span className="text-foreground-light">{timestampLocalFormatter(item.updated_at)}</span>+ <span className="text-scale-1100">{timestampLocalFormatter(item.updated_at)}</span></Table.td><Table.td className=" text-right"><Buttondiff --git a/studio/components/interfaces/Settings/Logs/Logs.SqlSnippetCode.tsx b/studio/components/interfaces/Settings/Logs/Logs.SqlSnippetCode.tsxindex 3f37f024500..fee91e43620 100644--- a/studio/components/interfaces/Settings/Logs/Logs.SqlSnippetCode.tsx+++ b/studio/components/interfaces/Settings/Logs/Logs.SqlSnippetCode.tsx@@ -1,5 +1,5 @@const SqlSnippetCode: React.FC = ({ children }) => (- <pre className="text-foreground text-sm break-words py-4 px-3 w-full">{children}</pre>+ <pre className="text-scale-1200 text-sm break-words py-4 px-3 w-full">{children}</pre>)export default SqlSnippetCodediff --git a/studio/components/interfaces/Settings/Logs/LogsErrorRenderers/ResourcesExceededErrorRenderer.tsx b/studio/components/interfaces/Settings/Logs/LogsErrorRenderers/ResourcesExceededErrorRenderer.tsxindex 312051db184..c8b76284adc 100644--- a/studio/components/interfaces/Settings/Logs/LogsErrorRenderers/ResourcesExceededErrorRenderer.tsx+++ b/studio/components/interfaces/Settings/Logs/LogsErrorRenderers/ResourcesExceededErrorRenderer.tsx@@ -2,7 +2,7 @@ import { Accordion, Input } from 'ui'import { ErrorRendererProps } from './DefaultErrorRenderer'const ResourcesExceededErrorRenderer: React.FC<ErrorRendererProps> = ({ error, isCustomQuery }) => (- <div className="flex flex-col gap-2 text-foreground-light">+ <div className="flex flex-col gap-2 text-scale-1100"><div className="flex flex-col gap-1 text-sm"><p>This query requires too much memory to be executed.</p><p>diff --git a/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx b/studio/components/interfaces/Settings/Logs/LogsFormatters.tsxindex b26a2cfd3a3..9a31cbe0b2d 100644--- a/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx+++ b/studio/components/interfaces/Settings/Logs/LogsFormatters.tsx@@ -4,11 +4,11 @@* for http response codes*/-import CopyButton from 'components/ui/CopyButton'+import { IconAlertCircle, IconInfo } from 'ui'import dayjs from 'dayjs'import React from 'react'-import { IconAlertCircle, IconInfo } from 'ui'import { isUnixMicro, unixMicroToIsoTimestamp } from '.'+import CopyButton from 'components/ui/CopyButton'export const RowLayout: React.FC = ({ children }) => (<div className="flex h-full w-full items-center gap-4">{children}</div>@@ -31,10 +31,8 @@ export const SelectionDetailedRow = ({}) => {return (<div className="grid grid-cols-12 group">- <span className="text-foreground-lighter text-sm col-span-4 whitespace-pre-wrap">- {label}- </span>- <span className="text-foreground text-sm col-span-6 whitespace-pre-wrap break-all">+ <span className="text-scale-900 text-sm col-span-4 whitespace-pre-wrap">{label}</span>+ <span className="text-scale-1200 text-sm col-span-6 whitespace-pre-wrap break-all">{valueRender ?? value}</span><CopyButton@@ -78,7 +76,7 @@ export const ResponseCodeFormatter = ({ value }: any) => {py-1 text-center dark:bg-scale-400">- <label className="block font-mono text-sm text-foreground-lighter">{value}</label>+ <label className="block font-mono text-sm text-scale-900">{value}</label></div></div>)@@ -126,7 +124,7 @@ export const ResponseCodeFormatter = ({ value }: any) => {">- <label className="block font-mono text-sm text-foreground-lighter">{value}</label>+ <label className="block font-mono text-sm text-scale-900">{value}</label></div></div>)@@ -216,7 +214,7 @@ export const SeverityFormatter = ({return (<Layout><div className="relative rounded px-2 py-1 text-center h-6 flex justify-center items-center bg-scale-300">- <label className="block font-mono text-sm text-foreground-lighter">{text}</label>+ <label className="block font-mono text-sm text-scale-900">{text}</label></div></Layout>)@@ -256,11 +254,7 @@ export const timestampLocalFormatter = (value: string | number) => {*/export const HeaderFormmater = ({ value }: any) => {- return (- <div className="flex h-full items-center text-xs font-normal text-foreground-lighter">- {value}- </div>- )+ return <div className="flex h-full items-center text-xs font-normal text-scale-900">{value}</div>}/*@@ -280,7 +274,7 @@ export function jsonSyntaxHighlight(input: Object) {var cls = 'number text-tomato-900'if (/^"/.test(match)) {if (/:$/.test(match)) {- cls = 'key text-foreground'+ cls = 'key text-scale-1200'} else {cls = 'string text-brand-600'}diff --git a/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx b/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsxindex f31ae1ac1e6..8687e36e43e 100644--- a/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx+++ b/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx@@ -1,17 +1,6 @@import * as Tooltip from '@radix-ui/react-tooltip'import { PermissionAction } from '@supabase/shared-types/out/constants'-import {- Alert,- Badge,- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconChevronDown,- IconPlay,- Popover,-} from 'ui'+import { Alert, Badge, Button, Dropdown, IconChevronDown, IconPlay, Popover } from 'ui'import { useCheckPermissions } from 'hooks'import { IS_PLATFORM } from 'lib/constants'@@ -20,10 +9,10 @@ import Link from 'next/link'import React from 'react'import {EXPLORER_DATEPICKER_HELPERS,- LogsTableName,- LogsWarning,LOGS_SOURCE_DESCRIPTION,LogTemplate,+ LogsTableName,+ LogsWarning,} from '.'import DatePickers from './Logs.DatePickers'@@ -67,47 +56,40 @@ const LogsQueryPanel = ({<div className="flex w-full items-center justify-between px-5 py-2"><div className="flex w-full flex-row items-center justify-between gap-x-4"><div className="flex items-center gap-2">- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button asChild type="default" iconRight={<IconChevronDown />}>- <span>Insert source</span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="start">- {Object.values(LogsTableName)- .sort((a, b) => a.localeCompare(b))- .map((source) => (- <DropdownMenuItem_Shadcn_ key={source} onClick={() => onSelectSource(source)}>- <div className="flex flex-col gap-1">- <span className="font-mono font-bold">{source}</span>- <span className="text-foreground-light">- {LOGS_SOURCE_DESCRIPTION[source]}- </span>- </div>- </DropdownMenuItem_Shadcn_>- ))}- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown+ side="bottom"+ align="start"+ overlay={Object.values(LogsTableName)+ .sort((a, b) => a.localeCompare(b))+ .map((source) => (+ <Dropdown.Item key={source} onClick={() => onSelectSource(source)}>+ <div className="flex flex-col gap-1">+ <span className="font-mono font-bold text-scale-1100">{source}</span>+ <span className="text-scale-1100">{LOGS_SOURCE_DESCRIPTION[source]}</span>+ </div>+ </Dropdown.Item>+ ))}+ >+ <Button asChild type="default" iconRight={<IconChevronDown />}>+ <span>Insert source</span>+ </Button>+ </Dropdown>- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button asChild type="default" iconRight={<IconChevronDown />}>- <span>Templates</span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="start">- {templates- .sort((a, b) => a.label!.localeCompare(b.label!))- .map((template) => (- <DropdownMenuItem_Shadcn_- key={template.label}- onClick={() => onSelectTemplate(template)}- >- <p className="text">{template.label}</p>- </DropdownMenuItem_Shadcn_>- ))}- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown+ side="bottom"+ align="start"+ overlay={templates+ .sort((a, b) => a.label!.localeCompare(b.label!))+ .map((template: LogTemplate) => (+ <Dropdown.Item key={template.label} onClick={() => onSelectTemplate(template)}>+ <p>{template.label}</p>+ </Dropdown.Item>+ ))}+ >+ <Button asChild type="default" iconRight={<IconChevronDown />}>+ <span>Templates</span>+ </Button>+ </Dropdown><DatePickersto={defaultTo}from={defaultFrom}@@ -170,7 +152,7 @@ const LogsQueryPanel = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to save your query</span></div>diff --git a/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx b/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsxindex 8f804576745..c59b4848e40 100644--- a/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx+++ b/studio/components/interfaces/Settings/Logs/PreviewFilterPanel.tsx@@ -3,8 +3,8 @@ import { Button, IconExternalLink, IconEye, IconEyeOff, IconRefreshCw, IconSearcimport CSVButton from 'components/ui/CSVButton'import { Filters, LogSearchCallback, LogTemplate, PREVIEWER_DATEPICKER_HELPERS } from '.'-import { FILTER_OPTIONS, LogsTableName } from './Logs.constants'import DatePickers from './Logs.DatePickers'+import { FILTER_OPTIONS, LogsTableName } from './Logs.constants'import LogsFilterPopover from './LogsFilterPopover'interface PreviewFilterPanelProps {@@ -117,7 +117,7 @@ const PreviewFilterPanel = ({handleInputSearch(e.target.value)}}icon={- <div className="text-foreground-lighter">+ <div className="text-scale-900"><IconSearch size={14} /></div>}@@ -126,7 +126,7 @@ const PreviewFilterPanel = ({hasEdits && (<buttononClick={() => handleInputSearch(search)}- className="mx-2 text-foreground-light hover:text-foreground"+ className="mx-2 text-scale-1100 hover:text-scale-1200">{'↲'}</button>diff --git a/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx b/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsxindex f1a56549106..bd88aa58a6e 100644--- a/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx+++ b/studio/components/interfaces/Settings/Logs/UpgradePrompt.tsx@@ -1,8 +1,8 @@import { Button, Modal } from 'ui'+import { TIER_QUERY_LIMITS } from '.'import Link from 'next/link'import { useRouter } from 'next/router'-import { TIER_QUERY_LIMITS } from '.'interface Props {show: boolean@@ -31,8 +31,8 @@ const UpgradePrompt: React.FC<Props> = ({ show, setShowUpgradePrompt }) => {</p><div className="border-scale-600 bg-scale-500 rounded border"><div className="flex items-center px-4 pt-2 pb-1">- <p className="text-foreground-light w-[40%] text-sm">Plan</p>- <p className="text-foreground-light w-[60%] text-sm">Retention duration</p>+ <p className="text-scale-1100 w-[40%] text-sm">Plan</p>+ <p className="text-scale-1100 w-[60%] text-sm">Retention duration</p></div><div className="py-1"><div className="flex items-center px-4 py-1">diff --git a/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx b/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsxindex 57ac6f3088f..ededd019c1a 100644--- a/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx+++ b/studio/components/interfaces/Settings/Vault/Keys/EncryptionKeysManagement.tsx@@ -167,7 +167,7 @@ const EncryptionKeysManagement = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to add keys</span></div>@@ -182,12 +182,8 @@ const EncryptionKeysManagement = () => {<div className="border border-scale-500 rounded">{!vault.isLoaded ? (<div className="px-6 py-6 space-x-2 flex items-center justify-center">- <IconLoader- className="animate-spin text-foreground-light"- size={16}- strokeWidth={1.5}- />- <p className="text-sm text-foreground">Loading keys from the Vault</p>+ <IconLoader className="animate-spin text-scale-1100" size={16} strokeWidth={1.5} />+ <p className="text-sm text-scale-1200">Loading keys from the Vault</p></div>) : (<>@@ -195,23 +191,20 @@ const EncryptionKeysManagement = () => {return (<Fragment key={key.key_id}><div className="px-6 py-4 flex items-center space-x-4">- <IconKey className="text-foreground-light" strokeWidth={2} />+ <IconKey className="text-scale-1100" strokeWidth={2} /><div className="space-y-1 min-w-[70%] max-w-[70%]"><p- className="text-sm truncate text-foreground"+ className="text-sm truncate text-scale-1200"title={key.name || DEFAULT_KEY_NAME}>{key.name || DEFAULT_KEY_NAME}</p>- <p- title={key.id}- className="text-xs text-foreground-light font-bold truncate"- >+ <p title={key.id} className="text-xs text-scale-1100 font-bold truncate">ID: <span className="font-mono">{key.id}</span></p></div><div className="flex items-center justify-end w-[30%] space-x-4">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Added on {dayjs(key.created).format('MMM D, YYYY')}</p><Tooltip.Root delayDuration={0}>@@ -234,7 +227,7 @@ const EncryptionKeysManagement = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to delete keys</span></div>@@ -252,16 +245,16 @@ const EncryptionKeysManagement = () => {<>{searchValue.length === 0 ? (<div className="px-6 py-6 space-y-1 flex flex-col items-center justify-center">- <p className="text-sm text-foreground">No encryption keys added yet</p>- <p className="text-sm text-foreground-light text-center">+ <p className="text-sm text-scale-1200">No encryption keys added yet</p>+ <p className="text-sm text-scale-1100 text-center">Encryption keys are created by the pgsodium extension and can be used toencrypt your columns and secrets</p></div>) : (<div className="px-6 py-4 space-y-1">- <p className="text-sm text-foreground">No results found</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1200">No results found</p>+ <p className="text-sm text-scale-1100">Your search for "{searchValue}" did not return any results</p></div>@@ -281,7 +274,7 @@ const EncryptionKeysManagement = () => {onCancel={() => setSelectedKeyToRemove(undefined)}onConfirm={confirmDeleteKey}loading={isDeletingKey}- header={<h5 className="text-sm text-foreground">Confirm to delete key</h5>}+ header={<h5 className="text-sm text-scale-1200">Confirm to delete key</h5>}><div className="py-4"><Modal.Content>@@ -297,10 +290,10 @@ const EncryptionKeysManagement = () => {The following key will be permanently removed and cannot be recovered.</p><div className="space-y-2">- <p className="text-sm text-foreground">+ <p className="text-sm text-scale-1200">{selectedKeyToRemove?.name ?? DEFAULT_KEY_NAME}</p>- <p className="text-xs text-foreground-light">+ <p className="text-xs text-scale-1100"><code className="!mx-0">ID: {selectedKeyToRemove?.id}</code></p></div>@@ -315,7 +308,7 @@ const EncryptionKeysManagement = () => {size="medium"visible={showAddKeyModal}onCancel={() => setShowAddKeyModal(false)}- header={<h5 className="text-sm text-foreground">Add a new key</h5>}+ header={<h5 className="text-sm text-scale-1200">Add a new key</h5>}><Formid="add-new-key-form"diff --git a/studio/components/interfaces/Settings/Vault/Secrets/AddNewSecretModal.tsx b/studio/components/interfaces/Settings/Vault/Secrets/AddNewSecretModal.tsxindex f4cc0955d44..0d8b1acc75f 100644--- a/studio/components/interfaces/Settings/Vault/Secrets/AddNewSecretModal.tsx+++ b/studio/components/interfaces/Settings/Vault/Secrets/AddNewSecretModal.tsx@@ -81,7 +81,7 @@ const AddNewSecretModal = ({ visible, onClose }: AddNewSecretModalProps) => {size="medium"visible={visible}onCancel={onClose}- header={<h5 className="text-sm text-foreground">Add new secret</h5>}+ header={<h5 className="text-sm text-scale-1200">Add new secret</h5>}><Formid="add-new-secret-form"diff --git a/studio/components/interfaces/Settings/Vault/Secrets/DeleteSecretModal.tsx b/studio/components/interfaces/Settings/Vault/Secrets/DeleteSecretModal.tsxindex bb2694e798c..814066b9976 100644--- a/studio/components/interfaces/Settings/Vault/Secrets/DeleteSecretModal.tsx+++ b/studio/components/interfaces/Settings/Vault/Secrets/DeleteSecretModal.tsx@@ -42,7 +42,7 @@ const DeleteSecretModal = ({ selectedSecret, onClose }: DeleteSecretModalProps)onCancel={onClose}onConfirm={onConfirmDeleteSecret}loading={isDeleting}- header={<h5 className="text-sm text-foreground">Confirm to delete secret</h5>}+ header={<h5 className="text-sm text-scale-1200">Confirm to delete secret</h5>}><div className="py-4"><Modal.Content>@@ -53,7 +53,7 @@ const DeleteSecretModal = ({ selectedSecret, onClose }: DeleteSecretModalProps)</p><div className="space-y-1"><p className="text-sm">{selectedSecret?.description}</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">ID: <span className="font-mono">{selectedSecret?.key_id}</span></p></div>diff --git a/studio/components/interfaces/Settings/Vault/Secrets/EditSecretModal.tsx b/studio/components/interfaces/Settings/Vault/Secrets/EditSecretModal.tsxindex f4314d74bb8..8b9e4700655 100644--- a/studio/components/interfaces/Settings/Vault/Secrets/EditSecretModal.tsx+++ b/studio/components/interfaces/Settings/Vault/Secrets/EditSecretModal.tsx@@ -86,7 +86,7 @@ const EditSecretModal = ({ selectedSecret, onClose }: EditSecretModalProps) => {size="medium"visible={selectedSecret !== undefined}onCancel={onClose}- header={<h5 className="text-sm text-foreground">Edit secret</h5>}+ header={<h5 className="text-sm text-scale-1200">Edit secret</h5>}><Formid="add-new-secret-form"diff --git a/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx b/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsxindex 95580c0ba0f..77be51a7963 100644--- a/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx+++ b/studio/components/interfaces/Settings/Vault/Secrets/SecretRow.tsx@@ -6,10 +6,7 @@ import Link from 'next/link'import { useState } from 'react'import {Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,IconEdit3,IconEye,IconEyeOff,@@ -57,11 +54,11 @@ const SecretRow = ({ secret, onSelectEdit, onSelectRemove }: SecretRowProps) =><div className="px-6 py-4 flex items-center space-x-4"><div className="space-y-1 min-w-[35%] max-w-[35%]"><div>- <p className="text-sm text-foreground" title={name}>+ <p className="text-sm text-scale-1200" title={name}>{name}</p>{secret.description !== undefined && (- <p className="text-sm text-foreground-light" title={secret.description}>+ <p className="text-sm text-scale-1100" title={secret.description}>{secret.description}</p>)}@@ -70,11 +67,11 @@ const SecretRow = ({ secret, onSelectEdit, onSelectRemove }: SecretRowProps) =><IconKeysize={14}strokeWidth={2}- className="text-foreground-light transition group-hover:text-brand"+ className="text-scale-1000 transition group-hover:text-brand"/><Link href={`/project/${ref}/settings/vault/keys?id=${secret.key_id}`}><a- className="text-foreground-light font-mono text-xs cursor-pointer transition group-hover:text-brand"+ className="text-scale-1100 font-mono text-xs cursor-pointer transition group-hover:text-brand"title={secret.key_id}>{secret.key_id}@@ -106,78 +103,78 @@ const SecretRow = ({ secret, onSelectEdit, onSelectRemove }: SecretRowProps) =></div></div><div className="flex items-center justify-end w-[25%] space-x-4">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">{secret.updated_at === secret.created_at ? 'Added' : 'Updated'} on{' '}{dayjs(secret.updated_at).format('MMM D, YYYY')}</p>- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button asChild type="text" className="px-1" icon={<IconMoreVertical />}>- <span></span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom">- <Tooltip.Root delayDuration={0}>- <Tooltip.Trigger asChild>- <DropdownMenuItem_Shadcn_- className="space-x-2"- disabled={!canManageSecrets}- onClick={() => onSelectEdit(secret)}- >- <IconEdit3 size="tiny" />- <p className="text">Edit</p>- </DropdownMenuItem_Shadcn_>- </Tooltip.Trigger>- {!canManageSecrets && (- <Tooltip.Portal>- <Tooltip.Content side="bottom">- <Tooltip.Arrow className="radix-tooltip-arrow" />- <div- className={[- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',- 'border border-scale-200',- ].join(' ')}- >- <span className="text-xs text-foreground">- You need additional permissions to edit secrets- </span>- </div>- </Tooltip.Content>- </Tooltip.Portal>- )}- </Tooltip.Root>-- <Tooltip.Root delayDuration={0}>- <Tooltip.Trigger asChild>- <DropdownMenuItem_Shadcn_- className="space-x-2"- disabled={!canManageSecrets}- onClick={() => onSelectRemove(secret)}- >- <IconTrash stroke="red" size="tiny" />- <p className="text-light">Delete</p>- </DropdownMenuItem_Shadcn_>- </Tooltip.Trigger>- {!canManageSecrets && (- <Tooltip.Portal>- <Tooltip.Content side="bottom">- <Tooltip.Arrow className="radix-tooltip-arrow" />- <div- className={[- 'rounded bg-scale-100 py-1 px-2 leading-none shadow',- 'border border-scale-200',- ].join(' ')}- >- <span className="text-xs text-foreground">- You need additional permissions to delete secrets- </span>- </div>- </Tooltip.Content>- </Tooltip.Portal>- )}- </Tooltip.Root>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown+ side="bottom"+ className="w-[120px]"+ overlay={+ <>+ <Tooltip.Root delayDuration={0}>+ <Tooltip.Trigger>+ <Dropdown.Item+ icon={<IconEdit3 size="tiny" />}+ disabled={!canManageSecrets}+ onClick={() => onSelectEdit(secret)}+ >+ Edit+ </Dropdown.Item>+ </Tooltip.Trigger>+ {!canManageSecrets && (+ <Tooltip.Portal>+ <Tooltip.Content side="bottom">+ <Tooltip.Arrow className="radix-tooltip-arrow" />+ <div+ className={[+ 'rounded bg-scale-100 py-1 px-2 leading-none shadow',+ 'border border-scale-200',+ ].join(' ')}+ >+ <span className="text-xs text-scale-1200">+ You need additional permissions to edit secrets+ </span>+ </div>+ </Tooltip.Content>+ </Tooltip.Portal>+ )}+ </Tooltip.Root>+ <Tooltip.Root delayDuration={0}>+ <Tooltip.Trigger>+ <Dropdown.Item+ disabled={!canManageSecrets}+ icon={<IconTrash stroke="red" size="tiny" />}+ onClick={() => onSelectRemove(secret)}+ >+ Delete+ </Dropdown.Item>+ </Tooltip.Trigger>+ {!canManageSecrets && (+ <Tooltip.Portal>+ <Tooltip.Content side="bottom">+ <Tooltip.Arrow className="radix-tooltip-arrow" />+ <div+ className={[+ 'rounded bg-scale-100 py-1 px-2 leading-none shadow',+ 'border border-scale-200',+ ].join(' ')}+ >+ <span className="text-xs text-scale-1200">+ You need additional permissions to delete secrets+ </span>+ </div>+ </Tooltip.Content>+ </Tooltip.Portal>+ )}+ </Tooltip.Root>+ </>+ }+ >+ <Button asChild type="text" className="px-1" icon={<IconMoreVertical />}>+ <span></span>+ </Button>+ </Dropdown></div></div>)diff --git a/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx b/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsxindex 9a4f1b6c54b..a9aad0594d7 100644--- a/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx+++ b/studio/components/interfaces/Settings/Vault/Secrets/SecretsManagement.tsx@@ -129,7 +129,7 @@ const SecretsManagement = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to add secrets</span></div>@@ -144,12 +144,8 @@ const SecretsManagement = () => {<div className="border border-scale-500 rounded">{!vault.isLoaded ? (<div className="px-6 py-6 space-x-2 flex items-center justify-center">- <IconLoader- className="animate-spin text-foreground-light"- size={16}- strokeWidth={1.5}- />- <p className="text-sm text-foreground">Loading secrets from the Vault</p>+ <IconLoader className="animate-spin text-scale-1100" size={16} strokeWidth={1.5} />+ <p className="text-sm text-scale-1200">Loading secrets from the Vault</p></div>) : (<>@@ -169,15 +165,15 @@ const SecretsManagement = () => {<>{searchValue.length === 0 ? (<div className="px-6 py-6 space-y-1 flex flex-col items-center justify-center">- <p className="text-sm text-foreground">No secrets added yet</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1200">No secrets added yet</p>+ <p className="text-sm text-scale-1100">The Vault allows you to store sensitive information like API keys</p></div>) : (<div className="px-6 py-4 space-y-1">- <p className="text-sm text-foreground">No results found</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1200">No results found</p>+ <p className="text-sm text-scale-1100">Your search for "{searchValue}" did not return any results</p></div>diff --git a/studio/components/interfaces/Settings/Vault/VaultToggle.tsx b/studio/components/interfaces/Settings/Vault/VaultToggle.tsxindex 7d1a3bb4869..b41cc8f6910 100644--- a/studio/components/interfaces/Settings/Vault/VaultToggle.tsx+++ b/studio/components/interfaces/Settings/Vault/VaultToggle.tsx@@ -1,7 +1,6 @@import * as Tooltip from '@radix-ui/react-tooltip'import { PermissionAction } from '@supabase/shared-types/out/constants'-import { useParams } from 'common'-import { useTheme } from 'next-themes'+import { useParams, useTheme } from 'common'import { observer } from 'mobx-react-lite'import Link from 'next/link'import { useState } from 'react'@@ -13,7 +12,7 @@ import { BASE_PATH } from 'lib/constants'const VaultToggle = () => {const { meta, ui } = useStore()const { ref } = useParams()- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const [isEnabling, setIsEnabling] = useState(false)const canToggleVault = useCheckPermissions(PermissionAction.TENANT_SQL_ADMIN_WRITE, 'extensions')@@ -64,16 +63,15 @@ const VaultToggle = () => {style={{backgroundSize: isNotAvailable ? '50%' : '40%',backgroundPosition: '100% 24%',- backgroundImage:- theme === 'dark'- ? `url("${BASE_PATH}/img/vault-dark.png")`- : `url("${BASE_PATH}/img/vault-light.png")`,+ backgroundImage: isDarkMode+ ? `url("${BASE_PATH}/img/vault-dark.png")`+ : `url("${BASE_PATH}/img/vault-light.png")`,}}><div className="w-3/5 space-y-8"><div className="space-y-2"><h4 className="text-lg">Enable Vault today</h4>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Supabase Vault is a Postgres extension for managing secrets and encryption inside yourdatabase without leaking any sensitive information.</p>@@ -82,10 +80,10 @@ const VaultToggle = () => {<div className="space-y-4"><div className="rounded border border-scale-500 px-4 py-2 flex items-center justify-between"><div>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1100 text-sm">Vault is not available for this project yet.</p>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1000 text-sm">Do reach out to us if you're interested!</p></div>@@ -139,7 +137,7 @@ const VaultToggle = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to enable Vault for this project</span></div>diff --git a/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsx b/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsxindex ecf776ea888..a2436717341 100644--- a/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsx+++ b/studio/components/interfaces/SignIn/PasswordConditionsHelper.tsx@@ -32,7 +32,7 @@ const PasswordCondition = ({ title, isMet }: PasswordConditionProps) => {<divclassName={'flex items-center gap-1 space-x-1.5 transition duration-200 ' +- (isMet ? 'text-foreground-light' : 'text-foreground-lighter')+ (isMet ? 'text-scale-1100' : 'text-scale-900')}>{isMet ? (diff --git a/studio/components/interfaces/SignIn/SignInForm.tsx b/studio/components/interfaces/SignIn/SignInForm.tsxindex 508128af482..fcfb9e20a42 100644--- a/studio/components/interfaces/SignIn/SignInForm.tsx+++ b/studio/components/interfaces/SignIn/SignInForm.tsx@@ -136,9 +136,7 @@ const SignInForm = () => {{/* positioned using absolute instead of labelOptional prop so tabbing between inputs works smoothly */}<Link href="/forgot-password">- <a className="absolute top-0 right-0 text-sm text-foreground-lighter">- Forgot Password?- </a>+ <a className="absolute top-0 right-0 text-sm text-scale-900">Forgot Password?</a></Link></div>diff --git a/studio/components/interfaces/SignIn/SignInMfaForm.tsx b/studio/components/interfaces/SignIn/SignInMfaForm.tsxindex d18ac5a3044..fd51788e8f1 100644--- a/studio/components/interfaces/SignIn/SignInMfaForm.tsx+++ b/studio/components/interfaces/SignIn/SignInMfaForm.tsx@@ -154,13 +154,13 @@ const SignInMfaForm = () => {<div className="my-8"><div className="text-sm">- <span className="text-foreground-light">Unable to sign in?</span>{' '}+ <span className="text-scale-1000">Unable to sign in?</span>{' '}</div><ul className="list-disc pl-6">{factors?.totp.length === 2 && (<li><a- className="text-sm text-foreground-light hover:text-foreground cursor-pointer"+ className="text-sm text-scale-1100 hover:text-scale-1200 cursor-pointer"onClick={() =>setSelectedFactor(factors.totp.find((f) => f.id !== selectedFactor?.id)!)}@@ -177,7 +177,7 @@ const SignInMfaForm = () => {<atarget="_blank"rel="noreferrer"- className="text-sm transition text-foreground-light hover:text-foreground"+ className="text-sm transition text-scale-1100 hover:text-scale-1200">Reach out to us via support</a>diff --git a/studio/components/interfaces/Storage/CreateBucketModal.tsx b/studio/components/interfaces/Storage/CreateBucketModal.tsxindex 6ca95df56e7..8c002cdd778 100644--- a/studio/components/interfaces/Storage/CreateBucketModal.tsx+++ b/studio/components/interfaces/Storage/CreateBucketModal.tsx@@ -159,7 +159,7 @@ const CreateBucketModal = ({ visible, onClose }: CreateBucketModalProps) => {<IconChevronDownsize={18}strokeWidth={2}- className={clsx('text-foreground-light', showConfiguration && 'rotate-180')}+ className={clsx('text-scale-1100', showConfiguration && 'rotate-180')}/></div></Collapsible.Trigger>@@ -209,7 +209,7 @@ const CreateBucketModal = ({ visible, onClose }: CreateBucketModalProps) => {</div>{IS_PLATFORM && (<div className="col-span-12">- <p className="text-foreground-light text-sm">+ <p className="text-scale-1000 text-sm">Note: The{' '}<Link href={`/project/${ref}/settings/storage`}><a className="text-brand opacity-80 hover:opacity-100 transition">diff --git a/studio/components/interfaces/Storage/EditBucketModal.tsx b/studio/components/interfaces/Storage/EditBucketModal.tsxindex 7316f8a74a0..4e7e590220c 100644--- a/studio/components/interfaces/Storage/EditBucketModal.tsx+++ b/studio/components/interfaces/Storage/EditBucketModal.tsx@@ -168,7 +168,7 @@ const EditBucketModal = ({ visible, bucket, onClose }: EditBucketModalProps) =><IconChevronDownsize={18}strokeWidth={2}- className={clsx('text-foreground-light', showConfiguration && 'rotate-180')}+ className={clsx('text-scale-1100', showConfiguration && 'rotate-180')}/></div></Collapsible.Trigger>@@ -218,7 +218,7 @@ const EditBucketModal = ({ visible, bucket, onClose }: EditBucketModalProps) =></div>{IS_PLATFORM && (<div className="col-span-12">- <p className="text-foreground-light text-sm">+ <p className="text-scale-1000 text-sm">Note: The{' '}<Link href={`/project/${ref}/settings/storage`}><a className="text-brand opacity-80 hover:opacity-100 transition">diff --git a/studio/components/interfaces/Support/DisabledStateForFreeTier.tsx b/studio/components/interfaces/Support/DisabledStateForFreeTier.tsxindex d2be8f09d06..ed1828a17f1 100644--- a/studio/components/interfaces/Support/DisabledStateForFreeTier.tsx+++ b/studio/components/interfaces/Support/DisabledStateForFreeTier.tsx@@ -14,7 +14,7 @@ const DisabledStateForFreeTier = ({ projectRef, category }: DisabledStateForFree<InformationBoxhideCollapsedefaultVisibility={true}- icon={<IconAlertCircle className="text-foreground" size="large" strokeWidth={1.5} />}+ icon={<IconAlertCircle className="text-scale-1200" size="large" strokeWidth={1.5} />}title={`Support for ${category} is only available on the Pro plan`}description={<div className="space-y-4 mb-1">diff --git a/studio/components/interfaces/Support/Success.tsx b/studio/components/interfaces/Support/Success.tsxindex fa045d86c69..c690d0fa9dd 100644--- a/studio/components/interfaces/Support/Success.tsx+++ b/studio/components/interfaces/Support/Success.tsx@@ -25,7 +25,7 @@ const Success = ({ sentCategory = '' }: SuccessProps) => {</div><div className="flex items-center flex-col space-y-2"><h3 className="text-xl">Support request successfully sent!</h3>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">We will reach out to you using your account's email address</p></div>@@ -36,7 +36,7 @@ const Success = ({ sentCategory = '' }: SuccessProps) => {</div><div className="flex flex-col items-center px-12 space-y-2"><p>In the meantime, tap into our community</p>- <p className="text-sm text-foreground-light text-center">+ <p className="text-sm text-scale-1000 text-center">Find the answers you need with fellow developers building with Supabase by joining ourGitHub discussions or on Discord - build the next best thing together</p>diff --git a/studio/components/interfaces/Support/SupportForm.tsx b/studio/components/interfaces/Support/SupportForm.tsxindex bb8f76cf2c7..8de0db33c57 100644--- a/studio/components/interfaces/Support/SupportForm.tsx+++ b/studio/components/interfaces/Support/SupportForm.tsx@@ -325,7 +325,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {<div className="space-y-2"><p className="text-sm prose">Which project is affected?</p><div className="border rounded-md px-4 py-2 flex items-center space-x-2">- <IconAlertCircle strokeWidth={2} className="text-foreground-light" />+ <IconAlertCircle strokeWidth={2} className="text-scale-1000" /><p className="text-sm prose">Failed to retrieve projects</p></div></div>@@ -374,14 +374,14 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {</div>{values.projectRef !== 'no-project' && subscription && isSuccessProjects ? (- <p className="text-sm text-foreground-light mt-2">+ <p className="text-sm text-scale-1000 mt-2">This project is on the{' '}- <span className="text-foreground-light">{subscription.plan.name} plan</span>+ <span className="text-scale-1100">{subscription.plan.name} plan</span></p>) : isLoadingSubscription && selectedProjectRef !== 'no-project' ? (<div className="flex items-center space-x-2 mt-2"><IconLoader size={14} className="animate-spin" />- <p className="text-sm text-foreground-light">Checking project's plan</p>+ <p className="text-sm text-scale-1000">Checking project's plan</p></div>) : (<></>@@ -403,7 +403,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {<div className="space-y-2"><p className="text-sm prose">Which organization is affected?</p><div className="border rounded-md px-4 py-2 flex items-center space-x-2">- <IconAlertCircle strokeWidth={2} className="text-foreground-light" />+ <IconAlertCircle strokeWidth={2} className="text-scale-1000" /><p className="text-sm prose">Failed to retrieve organizations</p></div></div>@@ -493,7 +493,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {<atarget="_blank"rel="noreferrer"- className="flex items-center space-x-2 text-foreground-light underline hover:text-foreground transition"+ className="flex items-center space-x-2 text-scale-1000 underline hover:text-scale-1100 transition">Github discussions<IconExternalLink size={14} strokeWidth={2} className="ml-1" />@@ -539,7 +539,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {{selectedLibrary !== undefined && (<div className="px-6 space-y-4 !mt-4"><div className="space-y-2">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Found an issue or a bug? Try searching our Github issues or submit a newone.</p>@@ -557,7 +557,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {><div className="space-y-1"><p className="text-sm">{library.name}</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">For issues regarding the {libraryLanguage} client library</p></div>@@ -584,7 +584,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {><div className="space-y-1"><p className="text-sm">supabase</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">For any issues about our API</p></div>@@ -607,9 +607,7 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {{values.category !== 'Login_issues' && (<div className="px-6 space-y-2">- <p className="text-sm text-foreground-light">- Which services are affected?- </p>+ <p className="text-sm text-scale-1100">Which services are affected?</p><MultiSelectoptions={SERVICE_OPTIONS}value={selectedServices}@@ -641,8 +639,8 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {)}<div className="space-y-4 px-6"><div className="space-y-1">- <p className="block text-sm text-foreground-light">Attachments</p>- <p className="block text-sm text-foreground-light">+ <p className="block text-sm text-scale-1100">Attachments</p>+ <p className="block text-sm text-scale-1000">Upload up to {MAX_ATTACHMENTS} screenshots that might be relevant to theissue that you're facing</p>@@ -693,11 +691,11 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {</div><div className="px-6"><div className="flex items-center space-x-1 justify-end block text-sm mt-0 mb-2">- <p className="text-foreground-light">We will contact you at</p>- <p className="text-foreground font-medium">{respondToEmail}</p>+ <p className="text-scale-1000">We will contact you at</p>+ <p className="text-scale-1200 font-medium">{respondToEmail}</p></div><div className="flex items-center space-x-1 justify-end block text-sm mt-0 mb-2">- <p className="text-foreground-light">+ <p className="text-scale-1000">Please ensure you haven't blocked Hubspot in your emails</p></div>diff --git a/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx b/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsxindex 940e58d83a5..a54ee88e5c7 100644--- a/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx+++ b/studio/components/interfaces/TableGridEditor/APIDocumentationPanel.tsx@@ -95,7 +95,7 @@ const APIDocumentationPanel = ({ visible, onClose }: APIDocumentationPanelProps)<div className="Docs Docs--table-editor Docs--inner-wrapper">{isErrorJSONSchema && (<div className="p-6 mx-auto text-center sm:w-full md:w-3/4">- <div className="text-foreground-light">+ <div className="text-scale-1000"><p>Error connecting to API</p><p>{`${jsonSchemaError}`}</p></div>diff --git a/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx b/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsxindex c599eca798d..36466c89bba 100644--- a/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx+++ b/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx@@ -154,7 +154,7 @@ const DeleteConfirmationDialogs = ({><Modal.Content><div className="py-4 space-y-4">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Are you sure you want to delete the selected column? This action cannot be undone.</p><Checkbox@@ -201,7 +201,7 @@ const DeleteConfirmationDialogs = ({><Modal.Content><div className="py-4 space-y-4">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Are you sure you want to delete the selected table? This action cannot be undone.</p><Checkboxdiff --git a/studio/components/interfaces/TableGridEditor/EmptyState.tsx b/studio/components/interfaces/TableGridEditor/EmptyState.tsxindex 6b17abbc366..e39d4d72bae 100644--- a/studio/components/interfaces/TableGridEditor/EmptyState.tsx+++ b/studio/components/interfaces/TableGridEditor/EmptyState.tsx@@ -43,9 +43,7 @@ const EmptyState = ({}: EmptyStateProps) => {ctaButtonLabel={canCreateTables ? 'Create a new table' : undefined}onClickCta={canCreateTables ? snap.onAddTable : undefined}>- <p className="text-sm text-foreground-light">- There are no tables available in this schema.- </p>+ <p className="text-sm text-scale-1100">There are no tables available in this schema.</p></ProductEmptyState>) : (<div className="flex flex-col items-center space-y-4">@@ -54,7 +52,7 @@ const EmptyState = ({}: EmptyStateProps) => {ctaButtonLabel={canCreateTables ? 'Create a new table' : undefined}onClickCta={canCreateTables ? snap.onAddTable : undefined}>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Select a table from the navigation panel on the left to view its data{canCreateTables && ', or create a new one.'}</p>diff --git a/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx b/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsxindex bb2d6d21376..75d3d195e1e 100644--- a/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx+++ b/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx@@ -135,7 +135,7 @@ const GridHeaderActions = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to manage your project's data</span></div>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsxindex 9f77fe7dc1e..b2cd2f4778c 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnForeignKey.tsx@@ -101,10 +101,8 @@ const ColumnForeignKeyInformation = ({title={<div className="flex flex-col space-y-4"><div className="space-y-2">- <p className="text-foreground-light">- This column has the following foreign key relation:- </p>- <div className="flex items-center space-x-2 text-foreground">+ <p className="text-scale-1100">This column has the following foreign key relation:</p>+ <div className="flex items-center space-x-2 text-scale-1200"><p className="text-xs text-code font-mono">{columnName}</p><IconArrowRight size={14} strokeWidth={2} /><p className="text-xs text-code font-mono">@@ -153,12 +151,12 @@ const ColumnForeignKeyAdded = ({<InformationBoxblocktitle={- <div className="flex flex-col space-y-4 text-foreground-light">+ <div className="flex flex-col space-y-4 text-scale-1100"><div className="space-y-2"><span>The following foreign key relation will be <span className="text-brand">added</span>:</span>- <div className="flex items-center space-x-2 text-foreground">+ <div className="flex items-center space-x-2 text-scale-1200"><pclassName={`${columnName.length > 0 ? 'text-code font-mono text-xs' : ''@@ -212,7 +210,7 @@ const ColumnForeignKeyRemoved = ({title={<div className="flex flex-col space-y-4"><div className="space-y-2">- <p className="text-foreground-light">+ <p className="text-scale-1100">The following foreign key relation will be{' '}<span className="text-amber-900">removed</span>:</p>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsxindex 159739e66db..4781c11e7df 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType.tsx@@ -75,19 +75,19 @@ const ColumnType = ({const inferIcon = (type: string) => {switch (type) {case 'number':- return <IconHash size={16} className="text-foreground" strokeWidth={1.5} />+ return <IconHash size={16} className="text-scale-1200" strokeWidth={1.5} />case 'time':- return <IconCalendar size={16} className="text-foreground" strokeWidth={1.5} />+ return <IconCalendar size={16} className="text-scale-1200" strokeWidth={1.5} />case 'text':- return <IconType size={16} className="text-foreground" strokeWidth={1.5} />+ return <IconType size={16} className="text-scale-1200" strokeWidth={1.5} />case 'json':return (- <div className="text-foreground" style={{ padding: '0px 1px' }}>+ <div className="text-scale-1200" style={{ padding: '0px 1px' }}>{'{ }'}</div>)case 'bool':- return <IconToggleRight size={16} className="text-foreground" strokeWidth={1.5} />+ return <IconToggleRight size={16} className="text-scale-1200" strokeWidth={1.5} />default:return <div />}@@ -158,8 +158,8 @@ const ColumnType = ({addOnBefore={() => inferIcon(option.type)}><div className="flex items-center space-x-4">- <span className="text-foreground">{option.name}</span>- <span className="text-foreground-lighter">{option.description}</span>+ <span className="text-scale-1200">{option.name}</span>+ <span className="text-scale-900">{option.description}</span></div></Listbox.Option>))}diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsxindex e632e8072bd..c17e21fafc9 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/InputWithSuggestions.tsx@@ -8,17 +8,7 @@import * as Tooltip from '@radix-ui/react-tooltip'import { noop } from 'lodash'import { useEffect, useRef, useState } from 'react'-import {- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuLabel_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconList,- Input,-} from 'ui'+import { Button, Dropdown, IconList, Input } from 'ui'import { Suggestion } from './ColumnEditor.types'@@ -93,50 +83,51 @@ const InputWithSuggestions = ({onChange={onInputChange}actions={showSuggestions && (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Tooltip.Root delayDuration={0}>- <Tooltip.Trigger asChild>- <Button- type="default"- className="!px-1 mr-1"- icon={<IconList strokeWidth={1.5} />}- />- </Tooltip.Trigger>- <Tooltip.Portal>- <Tooltip.Content side="bottom">- <Tooltip.Arrow className="radix-tooltip-arrow" />- <div- className={[- 'bg-scale-100 rounded py-1 px-2 leading-none shadow',- 'border-scale-200 border',- ].join(' ')}- >- <span className="text-foreground text-xs">- {suggestionsTooltip || 'Suggestions'}- </span>- </div>- </Tooltip.Content>- </Tooltip.Portal>- </Tooltip.Root>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ align="end" side="bottom">- <DropdownMenuLabel_Shadcn_>- {suggestionsHeader || 'Suggestions'}- </DropdownMenuLabel_Shadcn_>- <DropdownMenuSeparator_Shadcn_ />- {filteredSuggestions.map((suggestion: Suggestion) => (- <DropdownMenuItem_Shadcn_- className="space-x-2"- key={suggestion.name}- onClick={() => onSelectSuggestion(suggestion)}- >- <div>{suggestion.name}</div>- <div className="text-xs text-foreground-lighter">{suggestion.description}</div>- </DropdownMenuItem_Shadcn_>- ))}- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown+ size={'medium'}+ align="end"+ side="bottom"+ overlay={+ <>+ <Dropdown.Label>{suggestionsHeader || 'Suggestions'}</Dropdown.Label>+ <Dropdown.Separator />+ {filteredSuggestions.map((suggestion: Suggestion) => (+ <Dropdown.Item+ key={suggestion.name}+ onClick={() => onSelectSuggestion(suggestion)}+ >+ <div className="text-sm">{suggestion.name}</div>+ <div className="text-xs text-scale-900">{suggestion.description}</div>+ </Dropdown.Item>+ ))}+ </>+ }+ >+ <Tooltip.Root delayDuration={0}>+ <Tooltip.Trigger asChild>+ <Button+ type="default"+ className="!px-1 mr-1"+ icon={<IconList strokeWidth={1.5} />}+ />+ </Tooltip.Trigger>+ <Tooltip.Portal>+ <Tooltip.Content side="bottom">+ <Tooltip.Arrow className="radix-tooltip-arrow" />+ <div+ className={[+ 'bg-scale-100 rounded py-1 px-2 leading-none shadow',+ 'border-scale-200 border',+ ].join(' ')}+ >+ <span className="text-scale-1200 text-xs">+ {suggestionsTooltip || 'Suggestions'}+ </span>+ </div>+ </Tooltip.Content>+ </Tooltip.Portal>+ </Tooltip.Root>+ </Dropdown>)}/>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsxindex 60994455d69..d4e1c1e073a 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx@@ -239,7 +239,7 @@ const ForeignKeySelector = ({<div className="flex items-center gap-2">{/* For aria searching to target the schema name instead of schema */}<span className="hidden">{schema.name}</span>- <span className="text-foreground">{schema.name}</span>+ <span className="text-scale-1200">{schema.name}</span></div></Listbox.Option>)@@ -263,8 +263,8 @@ const ForeignKeySelector = ({<div className="flex items-center gap-2">{/* For aria searching to target the table name instead of schema */}<span className="hidden">{table.name}</span>- <span className="text-foreground-lighter">{table.schema}</span>- <span className="text-foreground">{table.name}</span>+ <span className="text-scale-900">{table.schema}</span>+ <span className="text-scale-1200">{table.name}</span></div></Listbox.Option>)@@ -308,8 +308,8 @@ const ForeignKeySelector = ({{(selectedTable?.columns ?? []).map((column: PostgresColumn) => (<Listbox.Option key={column.id} value={column.id} label={column.name}><div className="flex items-center gap-2">- <span className="text-foreground">{column.name}</span>- <span className="text-foreground-lighter">{column.format}</span>+ <span className="text-scale-1200">{column.name}</span>+ <span className="text-scale-900">{column.format}</span></div></Listbox.Option>))}@@ -410,7 +410,7 @@ const ForeignKeySelector = ({['no-action', 'cascade', 'restrict'].includes(option.key)).map((option) => (<Listbox.Option key={option.key} value={option.value} label={option.label}>- <p className="text-foreground">{option.label}</p>+ <p className="text-scale-1200">{option.label}</p></Listbox.Option>))}</Listbox>@@ -445,7 +445,7 @@ const ForeignKeySelector = ({>{FOREIGN_KEY_CASCADE_OPTIONS.map((option) => (<Listbox.Option key={option.key} value={option.value} label={option.label}>- <p className="text-foreground">{option.label}</p>+ <p className="text-scale-1200">{option.label}</p></Listbox.Option>))}</Listbox>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsxindex 85c2820d204..7b281a0b00d 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.utils.tsx@@ -15,8 +15,8 @@ export const generateCascadeActionDescription = (case FOREIGN_KEY_CASCADE_ACTION.NO_ACTION:return (<>- <span className="text-foreground-light">{actionName}</span>: {actionVerb} a record from{' '}- <code className="text-xs text-foreground-light">{reference}</code> will{' '}+ <span className="text-scale-1100">{actionName}</span>: {actionVerb} a record from{' '}+ <code className="text-xs text-scale-1100">{reference}</code> will{' '}<span className="text-amber-900 opacity-75">raise an error</span> if there are recordsexisting in this table that reference it</>@@ -24,8 +24,8 @@ export const generateCascadeActionDescription = (case FOREIGN_KEY_CASCADE_ACTION.CASCADE:return (<>- <span className="text-foreground-light">{actionName}</span>: {actionVerb} a record from{' '}- <code className="text-xs text-foreground-light">{reference}</code> will{' '}+ <span className="text-scale-1100">{actionName}</span>: {actionVerb} a record from{' '}+ <code className="text-xs text-scale-1100">{reference}</code> will{' '}<span className="text-amber-900 opacity-75">also {action}</span> any records thatreference it in this table</>@@ -33,10 +33,10 @@ export const generateCascadeActionDescription = (case FOREIGN_KEY_CASCADE_ACTION.RESTRICT:return (<>- <span className="text-foreground-light">{actionName}</span>+ <span className="text-scale-1100">{actionName}</span><Tooltip.Root delayDuration={0}><Tooltip.Trigger className="translate-y-[3px] mx-1">- <IconHelpCircle className="text-foreground-light" size={16} strokeWidth={1.5} />+ <IconHelpCircle className="text-scale-1100" size={16} strokeWidth={1.5} /></Tooltip.Trigger><Tooltip.Portal><Tooltip.Content side="bottom">@@ -47,7 +47,7 @@ export const generateCascadeActionDescription = ('w-[300px] space-y-2 border border-scale-200',].join(' ')}>- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">This is similar to no action, but the restrict check cannot be deferred tilllater in the transaction</p>@@ -55,27 +55,26 @@ export const generateCascadeActionDescription = (</Tooltip.Content></Tooltip.Portal></Tooltip.Root>- : {actionVerb} a record from{' '}- <code className="text-xs text-foreground-light">{reference}</code> will{' '}- <span className="text-amber-900 opacity-75">prevent {actionVerb.toLowerCase()}</span>{' '}+ : {actionVerb} a record from <code className="text-xs text-scale-1100">{reference}</code>{' '}+ will <span className="text-amber-900 opacity-75">prevent {actionVerb.toLowerCase()}</span>{' '}existing referencing rows from this table.</>)case FOREIGN_KEY_CASCADE_ACTION.SET_DEFAULT:return (<>- <span className="text-foreground-light">{actionName}</span>: {actionVerb} a record from{' '}- <code className="text-xs text-foreground-light">{reference}</code> will set the value of- any existing records in this table referencing it to their{' '}+ <span className="text-scale-1100">{actionName}</span>: {actionVerb} a record from{' '}+ <code className="text-xs text-scale-1100">{reference}</code> will set the value of any+ existing records in this table referencing it to their{' '}<span className="text-amber-900 opacity-75">default value</span></>)case FOREIGN_KEY_CASCADE_ACTION.SET_NULL:return (<>- <span className="text-foreground-light">{actionName}</span>: {actionVerb} a record from{' '}- <code className="text-xs text-foreground-light">{reference}</code> will set the value of- any existing records in this table referencing it{' '}+ <span className="text-scale-1100">{actionName}</span>: {actionVerb} a record from{' '}+ <code className="text-xs text-scale-1100">{reference}</code> will set the value of any+ existing records in this table referencing it{' '}<span className="text-amber-900 opacity-75">to NULL</span></>)diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsxindex 7fb588b4513..4a3620853f9 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/ForeignRowSelector.tsx@@ -4,10 +4,10 @@ import { DndProvider } from 'react-dnd'import { HTML5Backend } from 'react-dnd-html5-backend'import { parseSupaTable } from 'components/grid'-import FilterPopover from 'components/grid/components/header/filter'+import { formatFilterURLParams, formatSortURLParams } from 'components/grid/SupabaseGrid.utils'import RefreshButton from 'components/grid/components/header/RefreshButton'+import FilterPopover from 'components/grid/components/header/filter'import SortPopover from 'components/grid/components/header/sort'-import { formatFilterURLParams, formatSortURLParams } from 'components/grid/SupabaseGrid.utils'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import { ForeignKeyConstraint } from 'data/database/foreign-key-constraints-query'import { useTableRowsQuery } from 'data/table-rows/table-rows-query'@@ -105,13 +105,13 @@ const ForeignRowSelector = ({{isLoading && (<div className="flex h-full py-6 flex-col items-center justify-center space-y-2"><IconLoader className="animate-spin" />- <p className="text-sm text-foreground-light">Loading rows</p>+ <p className="text-sm text-scale-1100">Loading rows</p></div>)}{isError && (<div className="flex h-full py-6 flex-col items-center justify-center">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Unable to load rows from{' '}<code>{schemaName}.{tableName}@@ -164,7 +164,7 @@ const ForeignRowSelector = ({/>) : (<div className="flex h-full items-center justify-center border-b border-t border-scale-500">- <span className="text-foreground-light text-sm">No Rows Found</span>+ <span className="text-scale-1100 text-sm">No Rows Found</span></div>)}</div>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsxindex 3aa6d6cee28..a878ab46238 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/ForeignRowSelector/SelectorGrid.tsx@@ -28,7 +28,7 @@ const columnRender = (name: string, isPrimaryKey = false) => {<Tooltip.Content side="bottom"><Tooltip.Arrow className="radix-tooltip-arrow" /><div className="rounded bg-scale-100 py-1 px-2 leading-none shadow border border-scale-200">- <span className="text-xs text-foreground">Primary key</span>+ <span className="text-xs text-scale-1200">Primary key</span></div></Tooltip.Content></Tooltip.Portal>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsxindex a74758f4a64..2bc9d7c141b 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx@@ -80,17 +80,15 @@ const InputField = ({value={field.value ?? ''}descriptionText={<>- {field.comment && (- <span className="text-sm text-foreground-lighter">{field.comment} </span>- )}- <span className="text-sm text-foreground-lighter">+ {field.comment && <span className="text-sm text-scale-900">{field.comment} </span>}+ <span className="text-sm text-scale-900">{field.comment && '('}Has a foreign key relation to</span>- <span className="text-code font-mono text-xs text-foreground-lighter">+ <span className="text-code font-mono text-xs text-scale-900">{field.foreignKey.target_table_schema}.{field.foreignKey.target_table_name}.{field.foreignKey.target_column_name}</span>- {field.comment && <span className="text-sm text-foreground-lighter">{`)`}</span>}+ {field.comment && <span className="text-sm text-scale-900">{`)`}</span>}</>}labelOptional={field.format}diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsxindex 178f7379dc7..e561ef83f9f 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx@@ -1,23 +1,23 @@-import type { PostgresTable } from '@supabase/postgres-meta'-import { Dictionary } from 'components/grid'-import { isEmpty, isUndefined, noop, partition } from 'lodash'import { useEffect, useMemo, useState } from 'react'+import { isUndefined, partition, isEmpty, noop } from 'lodash'import { SidePanel } from 'ui'+import { Dictionary } from 'components/grid'+import type { PostgresTable } from '@supabase/postgres-meta'-import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import { useForeignKeyConstraintsQuery } from 'data/database/foreign-key-constraints-query'+import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'import ActionBar from '../ActionBar'-import ForeignRowSelector from './ForeignRowSelector/ForeignRowSelector'import HeaderTitle from './HeaderTitle'import InputField from './InputField'import JsonEdit from './JsonEditor'-import { JsonEditValue, RowField } from './RowEditor.types'+import ForeignRowSelector from './ForeignRowSelector/ForeignRowSelector'import {generateRowFields,+ validateFields,generateRowObjectFromFields,generateUpdateRowPayload,- validateFields,} from './RowEditor.utils'+import { JsonEditValue, RowField } from './RowEditor.types'export interface RowEditorProps {row?: Dictionary<any>@@ -169,8 +169,8 @@ const RowEditor = ({<SidePanel.Content><div className="space-y-10 py-6"><div>- <h3 className="text-base text-foreground">Optional Fields</h3>- <p className="text-sm text-foreground-lighter">+ <h3 className="text-base text-scale-1200">Optional Fields</h3>+ <p className="text-sm text-scale-900">These are columns that do not need any value</p></div>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsxindex 7b4887f3995..0118f6135ef 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx@@ -18,7 +18,6 @@ import { useTableEditorStateSnapshot } from 'state/table-editor'import { ColumnEditor, RowEditor, SpreadsheetImport, TableEditor } from '.'import ForeignRowSelector from './RowEditor/ForeignRowSelector/ForeignRowSelector'import JsonEdit from './RowEditor/JsonEditor/JsonEditor'-import SchemaEditor from './SchemaEditor'import {ColumnField,CreateColumnPayload,@@ -26,6 +25,7 @@ import {UpdateColumnPayload,} from './SidePanelEditor.types'import { ImportContent } from './TableEditor/TableEditor.types'+import SchemaEditor from './SchemaEditor'export interface SidePanelEditorProps {editable?: boolean@@ -609,7 +609,7 @@ const SidePanelEditor = ({}}><Modal.Content>- <p className="py-4 text-sm text-foreground-light">+ <p className="py-4 text-sm text-scale-1100">There are unsaved changes. Are you sure you want to close the panel? Your changes willbe lost.</p>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetFileUpload.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetFileUpload.tsxindex 277f2e10451..2f5ec1bf0b2 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetFileUpload.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetFileUpload.tsx@@ -37,13 +37,13 @@ const SpreadSheetFileUpload = ({return (<div className="space-y-4"><div>- <p className="mb-2 text-sm text-foreground-light">+ <p className="mb-2 text-sm text-scale-1100">Upload a CSV or TSV file. The first row should be the headers of the table, and yourheaders should not include any special characters other than hyphens (<span className="text-code">-</span>) or underscores (<span className="text-code">_</span>).</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Tip: Datetime columns should be formatted as YYYY-MM-DD HH:mm:ss</p></div>@@ -65,7 +65,7 @@ const SpreadSheetFileUpload = ({<div className="flex h-28 flex-col items-center justify-center space-y-2 rounded-md border border-dashed dark:border-gray-700"><div className="flex items-center space-x-2"><IconFileText size={14} strokeWidth={1.5} />- <p className="text-sm text-foreground">{uploadedFile.name}</p>+ <p className="text-sm text-scale-1200">{uploadedFile.name}</p></div>{parseProgress === 100 ? (<Button type="outline" onClick={removeUploadedFile}>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsxindex a80e2283b99..f77a9d7194d 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsx@@ -1,6 +1,6 @@import clsx from 'clsx'import { useState } from 'react'-import { Button, Collapsible, IconChevronDown, SidePanel } from 'ui'+import { SidePanel, Button, IconChevronDown, Collapsible } from 'ui'import { SpreadsheetData } from './SpreadsheetImport.types'interface SpreadSheetImportConfigurationProps {@@ -28,7 +28,7 @@ const SpreadsheetImportConfiguration = ({<IconChevronDownsize={18}strokeWidth={2}- className={clsx('text-foreground-light', expandConfiguration && 'rotate-180')}+ className={clsx('text-scale-1100', expandConfiguration && 'rotate-180')}/>}className="px-1"@@ -41,8 +41,8 @@ const SpreadsheetImportConfiguration = ({<SidePanel.Content><div className="py-2 space-y-3"><div>- <p className="text-sm text-foreground-light">Select which columns to import</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Select which columns to import</p>+ <p className="text-sm text-scale-1000">By default, all columns are selected to be imported from your CSV</p></div>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetTextInput.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetTextInput.tsxindex 402030b6ad4..285308a7738 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetTextInput.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetTextInput.tsx@@ -8,13 +8,13 @@ interface SpreadSheetTextInputProps {const SpreadSheetTextInput = ({ input, onInputChange }: SpreadSheetTextInputProps) => (<div className="space-y-10"><div>- <p className="mb-2 text-sm text-foreground-light">+ <p className="mb-2 text-sm text-scale-1100">Copy a table from a spreadsheet program such as Google Sheets or Excel and paste it in thefield below. The first row should be the headers of the table, and your headers should notinclude any special characters other than hyphens (<code>-</code>) or underscores (<code>_</code>).</p>- <p className="text-sm text-foreground-lighter">+ <p className="text-sm text-scale-900">Tip: Datetime columns should be formatted as YYYY-MM-DD HH:mm:ss</p></div>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsxindex 5fb93a5d7ff..5e967af0f64 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx@@ -1,19 +1,19 @@import clsx from 'clsx'import { useEffect, useState } from 'react'import {+ SidePanel,Badge,Button,Collapsible,- IconAlertCircle,- IconArrowRight,IconChevronDown,IconChevronRight,- SidePanel,+ IconArrowRight,+ IconAlertCircle,} from 'ui'-import { PostgresTable } from '@supabase/postgres-meta'import { SpreadsheetData } from './SpreadsheetImport.types'import SpreadsheetPreviewGrid from './SpreadsheetPreviewGrid'+import { PostgresTable } from '@supabase/postgres-meta'const MAX_ROWS = 20const MAX_HEADERS = 20@@ -72,7 +72,7 @@ const SpreadsheetImportPreview = ({<IconChevronDownsize={18}strokeWidth={2}- className={clsx('text-foreground-light', expandPreview && 'rotate-180')}+ className={clsx('text-scale-1100', expandPreview && 'rotate-180')}/>}className="px-1"@@ -84,7 +84,7 @@ const SpreadsheetImportPreview = ({<Collapsible.Content><SidePanel.Content><div className="mb-4">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">{selectedTable === undefined? `Your table will have ${spreadsheetData.rowCount.toLocaleString()} rows and thefollowing ${spreadsheetData.headers.length} columns.`@@ -92,7 +92,7 @@ const SpreadsheetImportPreview = ({selectedTable.name}"`}</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Here is a preview of the data that will be added (up to the first 20 columns and first20 rows).</p>@@ -102,8 +102,8 @@ const SpreadsheetImportPreview = ({<SpreadsheetPreviewGrid height={350} headers={previewHeaders} rows={previewRows} />) : (<div className="flex items-center justify-center py-4 border border-scale-600 rounded-md space-x-2">- <IconAlertCircle size={16} strokeWidth={1.5} className="text-foreground-light" />- <p className="text-sm text-foreground-light">+ <IconAlertCircle size={16} strokeWidth={1.5} className="text-scale-1000" />+ <p className="text-sm text-scale-1000">{previewHeaders.length === 0? 'No headers have been selected': previewRows.length === 0@@ -118,7 +118,7 @@ const SpreadsheetImportPreview = ({<div className="flex flex-col space-y-1"><p className="text-sm">Issues found in spreadsheet</p>{isCompatible && (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">{selectedTable !== undefined? 'This CSV can still be imported into your table despite issues in the following rows.': 'Your table can still be created nonetheless despite issues in the following rows.'}diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetPreviewGrid.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetPreviewGrid.tsxindex 7539927999d..671ace28386 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetPreviewGrid.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetPreviewGrid.tsx@@ -1,5 +1,5 @@-import DataGrid from '@supabase/react-data-grid'import clsx from 'clsx'+import DataGrid from '@supabase/react-data-grid'const MAX_ROWS = 20const MAX_HEADERS = 20@@ -38,9 +38,7 @@ const SpreadsheetPreviewGrid = ({formatter: ({ row }: { row: any }) => {const isEmpty = !row[header]return (- <span- className={clsx('text-sm flex items-center', isEmpty && 'text-foreground-light')}- >+ <span className={clsx('text-sm flex items-center', isEmpty && 'text-scale-1000')}>{isEmpty ? 'NULL' : row[header]}</span>)diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsxindex a1c31a019ae..031ac09b0ed 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/Column.tsx@@ -112,23 +112,23 @@ const Column = ({].join(' ')}>{column.foreignKey === undefined ? (- <span className="text-xs text-foreground">Edit foreign key relation</span>+ <span className="text-xs text-scale-1200">Edit foreign key relation</span>) : (<div>- <p className="text-xs text-foreground-light">Foreign key relation:</p>+ <p className="text-xs text-scale-1100">Foreign key relation:</p><div className="flex items-center space-x-1">- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">{column.foreignKey.source_schema}.{column.foreignKey.source_table_name}.{column.foreignKey.source_column_name}</p><IconArrowRight size="tiny" strokeWidth={1.5} />- <p className="text-xs text-foreground">+ <p className="text-xs text-scale-1200">{column.foreignKey.target_table_schema}.{column.foreignKey.target_table_name}.{column.foreignKey.target_column_name}</p></div>{column.foreignKey.deletion_action !== FOREIGN_KEY_CASCADE_ACTION.NO_ACTION && (- <p className="text-xs text-foreground mt-1">+ <p className="text-xs text-scale-1200 mt-1">On delete: {getForeignKeyCascadeAction(column.foreignKey.deletion_action)}</p>)}@@ -194,10 +194,9 @@ const Column = ({size="xlarge"className="pointer-events-auto"align="end"- modal={true}header={<div className="flex items-center justify-center">- <h5 className="text-sm text-foreground">Extra options</h5>+ <h5 className="text-sm text-scale-1200">Extra options</h5></div>}overlay={[@@ -262,11 +261,11 @@ const Column = ({><div className="group flex items-center -space-x-1">{settingsCount > 0 && (- <div className="rounded-full bg-scale-1200 py-0.5 px-2 text-xs text-scale-100 dark:bg-scale-100 dark:text-foreground-light">+ <div className="rounded-full bg-scale-1200 py-0.5 px-2 text-xs text-scale-100 dark:bg-scale-100 dark:text-scale-1100">{settingsCount}</div>)}- <div className="text-foreground-light transition-colors group-hover:text-foreground">+ <div className="text-scale-1100 transition-colors group-hover:text-scale-1200"><IconSettings size={18} strokeWidth={1} /></div></div>diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsxindex be2b15c43b5..fb8c0e58c12 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/ColumnManagement.tsx@@ -164,7 +164,7 @@ const ColumnManagement = ({</div>{hasImportContent && (- <p className="text-sm text-foreground-light my-2">+ <p className="text-sm text-scale-1000 my-2">Your table will be created with {importContent?.rowCount?.toLocaleString()} rows and thefollowing {columns.length} columns.</p>@@ -194,10 +194,10 @@ const ColumnManagement = ({{/* Drag handle */}{isNewRecord && <div className="w-[5%]" />}<div className="w-[25%] flex items-center space-x-2">- <h5 className="text-xs text-foreground-lighter">Name</h5>+ <h5 className="text-xs text-scale-900">Name</h5><Tooltip.Root delayDuration={0}><Tooltip.Trigger>- <h5 className="text-xs text-foreground-lighter">+ <h5 className="text-xs text-scale-900"><IconHelpCircle size={15} strokeWidth={1.5} /></h5></Tooltip.Trigger>@@ -210,7 +210,7 @@ const ColumnManagement = ({'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">Recommended to use lowercase and use an underscore to separate words e.g.column_name</span>@@ -220,14 +220,14 @@ const ColumnManagement = ({</Tooltip.Root></div><div className="w-[25%]">- <h5 className="text-xs text-foreground-lighter">Type</h5>+ <h5 className="text-xs text-scale-900">Type</h5></div><div className={`${isNewRecord ? 'w-[25%]' : 'w-[30%]'} flex items-center space-x-2`}>- <h5 className="text-xs text-foreground-lighter">Default Value</h5>+ <h5 className="text-xs text-scale-900">Default Value</h5><Tooltip.Root delayDuration={0}><Tooltip.Trigger>- <h5 className="text-xs text-foreground-lighter">+ <h5 className="text-xs text-scale-900"><IconHelpCircle size={15} strokeWidth={1.5} /></h5></Tooltip.Trigger>@@ -240,7 +240,7 @@ const ColumnManagement = ({'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">Can either be a literal or an expression. When using an expression wrap yourexpression in brackets, e.g. (gen_random_uuid())</span>@@ -250,7 +250,7 @@ const ColumnManagement = ({</Tooltip.Root></div><div className="w-[10%]">- <h5 className="text-xs text-foreground-lighter">Primary</h5>+ <h5 className="text-xs text-scale-900">Primary</h5></div>{/* Empty space */}<div className={`${hasImportContent ? 'w-[10%]' : 'w-0'}`} />@@ -344,7 +344,7 @@ const ColumnManagement = ({<a target="_blank" rel="noreferrer"><Buttontype="text"- className="text-foreground-light hover:text-foreground"+ className="text-scale-1000 hover:text-scale-1200"icon={<IconExternalLink size={12} strokeWidth={2} />}>Learn more about data typesdiff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSDisableModal.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSDisableModal.tsxindex ffc774b44ba..24928c3b897 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSDisableModal.tsx+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/RLSDisableModal.tsx@@ -1,10 +1,11 @@import Link from 'next/link'+import React from 'react'import { Alert, Button, IconAlertOctagon, IconBookOpen, IconLock, IconShieldOff } from 'ui'export default function RLSDisableModalContent() {return (<div className="my-6">- <div className="text-sm text-foreground-light grid gap-4">+ <div className="text-sm text-scale-1100 grid gap-4"><div className="grid gap-1"><Alertvariant="warning"diff --git a/studio/components/interfaces/TableGridEditor/TableDefinition.tsx b/studio/components/interfaces/TableGridEditor/TableDefinition.tsxindex 17cf8859086..13735eaf6c8 100644--- a/studio/components/interfaces/TableGridEditor/TableDefinition.tsx+++ b/studio/components/interfaces/TableGridEditor/TableDefinition.tsx@@ -1,6 +1,5 @@import Editor from '@monaco-editor/react'-import { useTheme } from 'next-themes'-import { useParams } from 'common'+import { useParams, useTheme } from 'common'import { observer } from 'mobx-react-lite'import { useMemo, useRef } from 'react'import { format } from 'sql-formatter'@@ -23,7 +22,7 @@ const TableDefinition = ({ id }: TableDefinitionProps) => {const { ref } = useParams()const editorRef = useRef(null)const monacoRef = useRef(null)- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const entityType = useEntityType(id)const { project } = useProjectContext()@@ -113,7 +112,7 @@ const TableDefinition = ({ id }: TableDefinitionProps) => {</Link><EditorclassName="monaco-editor"- theme={theme === 'dark' ? 'vs-dark' : 'vs'}+ theme={isDarkMode ? 'vs-dark' : 'vs'}onMount={handleEditorOnMount}defaultLanguage="pgsql"value={formattedDefinition}diff --git a/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx b/studio/components/interfaces/TableGridEditor/TableGridEditor.tsxindex 1ba1504284c..80052cc6ed3 100644--- a/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx+++ b/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx@@ -9,10 +9,10 @@ import { useEffect, useRef, useState } from 'react'import { useParams } from 'common'import {Dictionary,- parseSupaTable,+ SupaTable,SupabaseGrid,SupabaseGridRef,- SupaTable,+ parseSupaTable,} from 'components/grid'import { ERROR_PRIMARY_KEY_NOTFOUND } from 'components/grid/constants'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'@@ -371,7 +371,7 @@ const TableGridEditor = ({<p>SQL Definition of <code className="text-sm">{selectedTable.name}</code>{' '}</p>- <p className="text-foreground-light text-sm">(Read only)</p>+ <p className="text-scale-1000 text-sm">(Read only)</p></div>) : null}diff --git a/studio/components/layouts/APIAuthorizationLayout.tsx b/studio/components/layouts/APIAuthorizationLayout.tsxindex 01f2f041a87..143dd4a6526 100644--- a/studio/components/layouts/APIAuthorizationLayout.tsx+++ b/studio/components/layouts/APIAuthorizationLayout.tsx@@ -1,6 +1,6 @@import Head from 'next/head'import Image from 'next/image'-import { useTheme } from 'next-themes'+import { useTheme } from 'common'import { PropsWithChildren } from 'react'import { BASE_PATH } from 'lib/constants'import Divider from 'components/ui/Divider'@@ -8,7 +8,7 @@ import Divider from 'components/ui/Divider'export interface APIAuthorizationLayoutProps {}const APIAuthorizationLayout = ({ children }: PropsWithChildren<APIAuthorizationLayoutProps>) => {- const { theme } = useTheme()+ const { isDarkMode } = useTheme()return (<><Head>@@ -23,7 +23,7 @@ const APIAuthorizationLayout = ({ children }: PropsWithChildren<APIAuthorization<span className="sr-only">Supabase</span><Imagesrc={- theme === 'dark'+ isDarkMode? `${BASE_PATH}/img/supabase-dark.svg`: `${BASE_PATH}/img/supabase-light.svg`}diff --git a/studio/components/layouts/AccountLayout/SidebarItem.tsx b/studio/components/layouts/AccountLayout/SidebarItem.tsxindex 402f94bf075..bca3f7b14d3 100644--- a/studio/components/layouts/AccountLayout/SidebarItem.tsx+++ b/studio/components/layouts/AccountLayout/SidebarItem.tsx@@ -54,13 +54,13 @@ const SidebarItem = ({onClick={onClick}>{isExternal && (- <span className="truncate text-sm text-foreground-lighter transition group-hover:text-foreground-light">+ <span className="truncate text-sm text-scale-900 transition group-hover:text-scale-1100"><IconArrowUpRight size="tiny" /></span>)}<spantitle={label}- className="w-full truncate text-sm text-foreground-light transition group-hover:text-foreground"+ className="w-full truncate text-sm text-scale-1100 transition group-hover:text-scale-1200">{isSubitem ? <p>{label}</p> : label}</span>diff --git a/studio/components/layouts/AccountLayout/WithSidebar.tsx b/studio/components/layouts/AccountLayout/WithSidebar.tsxindex 385e15b473c..eecb7d020e5 100644--- a/studio/components/layouts/AccountLayout/WithSidebar.tsx+++ b/studio/components/layouts/AccountLayout/WithSidebar.tsx@@ -210,13 +210,13 @@ const SidebarLinkItem = ({<a className="block" target={isExternal ? '_blank' : '_self'}><span className="group flex max-w-full cursor-pointer items-center space-x-2 border-scale-500 py-1 font-normal outline-none ring-scale-1200 focus-visible:z-10 focus-visible:ring-1 group-hover:border-scale-900">{isExternal && (- <span className="truncate text-sm text-foreground-lighter transition group-hover:text-foreground-light">+ <span className="truncate text-sm text-scale-900 transition group-hover:text-scale-1100"><IconArrowUpRight size={'tiny'} /></span>)}<spantitle={label}- className="w-full truncate text-sm text-foreground-light transition group-hover:text-foreground"+ className="w-full truncate text-sm text-scale-1100 transition group-hover:text-scale-1200">{isSubitem ? <p>{label}</p> : label}</span>diff --git a/studio/components/layouts/AppLayout/BranchDropdown.tsx b/studio/components/layouts/AppLayout/BranchDropdown.tsxindex 3e81c01e3ff..29c46423f9e 100644--- a/studio/components/layouts/AppLayout/BranchDropdown.tsx+++ b/studio/components/layouts/AppLayout/BranchDropdown.tsx@@ -1,7 +1,7 @@-import { ListTree } from 'lucide-react'import Link from 'next/link'import { useRouter } from 'next/router'import { useRef, useState } from 'react'+import { ListTree } from 'lucide-react'import { useParams } from 'common'import ShimmeringLoader from 'components/ui/ShimmeringLoader'@@ -19,6 +19,7 @@ import {IconAlertCircle,IconCheck,IconCode,+ IconGitBranch,PopoverContent_Shadcn_,PopoverTrigger_Shadcn_,Popover_Shadcn_,@@ -101,7 +102,7 @@ const BranchDropdown = ({ isNewNav = false }: BranchDropdownProps) => {type="text"className="pr-2"iconRight={- <IconCode className="text-foreground-light rotate-90" strokeWidth={2} size={12} />+ <IconCode className="text-scale-1100 rotate-90" strokeWidth={2} size={12} />}><div className="flex items-center space-x-2">diff --git a/studio/components/layouts/AppLayout/IncidentBanner.tsx b/studio/components/layouts/AppLayout/IncidentBanner.tsxindex e2c4f5b16d4..4004c1922cb 100644--- a/studio/components/layouts/AppLayout/IncidentBanner.tsx+++ b/studio/components/layouts/AppLayout/IncidentBanner.tsx@@ -5,7 +5,7 @@ const IncidentBanner = () => {return (<Link href="https://status.supabase.com"><a target="_blank" rel="noreferrer">- <div className="flex cursor-pointer items-center justify-center space-x-2 bg-green-900 py-3 text-scale-400 transition hover:bg-green-1000 dark:text-foreground">+ <div className="flex cursor-pointer items-center justify-center space-x-2 bg-green-900 py-3 text-scale-400 transition hover:bg-green-1000 dark:text-scale-1200"><p className="text-sm font-medium">We are currently investigating a technical issue, follow status.supabase.com for updates</p>diff --git a/studio/components/layouts/AppLayout/OrganizationDropdown.tsx b/studio/components/layouts/AppLayout/OrganizationDropdown.tsxindex 1bf405ee521..6a24db67853 100644--- a/studio/components/layouts/AppLayout/OrganizationDropdown.tsx+++ b/studio/components/layouts/AppLayout/OrganizationDropdown.tsx@@ -56,7 +56,7 @@ const OrganizationDropdown = ({ isNewNav = false }: OrganizationDropdownProps) =type="text"className="pr-2"iconRight={- <IconCode className="text-foreground-light rotate-90" strokeWidth={2} size={12} />+ <IconCode className="text-scale-1100 rotate-90" strokeWidth={2} size={12} />}><div className="flex items-center space-x-2">diff --git a/studio/components/layouts/AppLayout/ProjectDropdown.tsx b/studio/components/layouts/AppLayout/ProjectDropdown.tsxindex 69ba333bce9..ea0e0218e3f 100644--- a/studio/components/layouts/AppLayout/ProjectDropdown.tsx+++ b/studio/components/layouts/AppLayout/ProjectDropdown.tsx@@ -138,9 +138,7 @@ const ProjectDropdown = ({ isNewNav = false }: ProjectDropdownProps) => {<Buttontype="text"className="pr-2"- iconRight={- <IconCode className="text-foreground-light rotate-90" strokeWidth={2} size={12} />- }+ iconRight={<IconCode className="text-scale-1100 rotate-90" strokeWidth={2} size={12} />}><div className="flex items-center space-x-2"><p className={isNewNav ? 'text-sm' : 'text-xs'}>{selectedProject?.name}</p>diff --git a/studio/components/layouts/AppLayout/SettingsButton.tsx b/studio/components/layouts/AppLayout/SettingsButton.tsxindex 035c5640933..ed5eb2f3a77 100644--- a/studio/components/layouts/AppLayout/SettingsButton.tsx+++ b/studio/components/layouts/AppLayout/SettingsButton.tsx@@ -12,7 +12,7 @@ const SettingsButton = () => {<Link href={slug ? `/org/${slug}/general` : '/'} passHref><Tooltip.Trigger type="button" asChild className="px-1"><a id="organization-settings">- <IconSettings size={18} strokeWidth={1.5} className="text-foreground-light" />+ <IconSettings size={18} strokeWidth={1.5} className="text-scale-1100" /></a></Tooltip.Trigger></Link>@@ -25,7 +25,7 @@ const SettingsButton = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">Organization settings</span>+ <span className="text-xs text-scale-1200">Organization settings</span></div></Tooltip.Content></Tooltip.Portal>diff --git a/studio/components/layouts/AppLayout/UserSettingsDropdown.tsx b/studio/components/layouts/AppLayout/UserSettingsDropdown.tsxindex a1384b37dcd..9e277044728 100644--- a/studio/components/layouts/AppLayout/UserSettingsDropdown.tsx+++ b/studio/components/layouts/AppLayout/UserSettingsDropdown.tsx@@ -1,11 +1,5 @@import Link from 'next/link'import { useRouter } from 'next/router'-import { useState } from 'react'--import { useTheme } from 'next-themes'-import { useFlag } from 'hooks'-import { useSignOut } from 'lib/auth'-import { useProfile } from 'lib/profile'import {DropdownMenuContent_Shadcn_,DropdownMenuGroup_Shadcn_,@@ -21,6 +15,12 @@ import {useCommandMenu,} from 'ui'+import { useTheme } from 'common'+import { useFlag } from 'hooks'+import { useSignOut } from 'lib/auth'+import { useProfile } from 'lib/profile'+import { useState } from 'react'+const UserSettingsDropdown = () => {const signOut = useSignOut()const router = useRouter()@@ -28,7 +28,7 @@ const UserSettingsDropdown = () => {const { profile } = useProfile()const showAuditLogs = useFlag('auditLogs')const { setIsOpen: setCommandMenuOpen } = useCommandMenu()- const { theme, setTheme } = useTheme()+ const { isDarkMode, toggleTheme } = useTheme()const onClickLogout = async () => {await signOut()@@ -40,7 +40,7 @@ const UserSettingsDropdown = () => {<DropdownMenuTrigger_Shadcn_ asChild><buttonid="user-settings-dropdown"- className="flex items-center justify-center border font-bold rounded-full h-7 w-7 text-foreground-light bg-surface-100"+ className="flex items-center justify-center border font-bold rounded-full h-7 w-7 text-scale-1100 bg-surface-100">{profile?.first_name ? profile?.first_name?.[0] : <IconUser size={14} strokeWidth={2} />}</button>@@ -48,10 +48,10 @@ const UserSettingsDropdown = () => {<DropdownMenuContent_Shadcn_ align="end" className="w-60"><DropdownMenuGroup_Shadcn_><div key="profile" className="px-2 py-1.5">- <p className="text-sm text-foreground">+ <p className="text-sm text-scale-1200">{profile?.first_name} {profile?.last_name}</p>- <p className="text-sm text-foreground-light truncate">{profile?.primary_email}</p>+ <p className="text-sm text-scale-1000 truncate">{profile?.primary_email}</p></div><DropdownMenuSeparator_Shadcn_ />@@ -98,12 +98,12 @@ const UserSettingsDropdown = () => {<DropdownMenuSeparator_Shadcn_ /><DropdownMenuLabel_Shadcn_>Theme</DropdownMenuLabel_Shadcn_><DropdownMenuRadioGroup_Shadcn_- value={theme}+ value={isDarkMode ? 'dark' : 'light'}onValueChange={(x) => {- setTheme(x)+ const dark = x === 'dark'+ toggleTheme(Boolean(dark))}}>- <DropdownMenuRadioItem_Shadcn_ value={'system'}>System</DropdownMenuRadioItem_Shadcn_><DropdownMenuRadioItem_Shadcn_ value={'dark'}>Dark</DropdownMenuRadioItem_Shadcn_><DropdownMenuRadioItem_Shadcn_ value={'light'}>Light</DropdownMenuRadioItem_Shadcn_></DropdownMenuRadioGroup_Shadcn_>diff --git a/studio/components/layouts/BillingLayout.tsx b/studio/components/layouts/BillingLayout.tsxindex 4ed3bdf85e5..5404de66c65 100644--- a/studio/components/layouts/BillingLayout.tsx+++ b/studio/components/layouts/BillingLayout.tsx@@ -17,15 +17,15 @@ const BillingLayout = ({ children }: PropsWithChildren<BillingLayoutProps>) => {{/* Header */}<div className="flex items-center space-x-4 border-b py-4 px-5 dark:border-dark"><Link href={`/project/${selectedProject?.ref}/settings/billing/subscription`} passHref>- <a className="text-foreground-lighter transition-colors hover:text-foreground">+ <a className="text-scale-900 transition-colors hover:text-scale-1200"><IconX size={16} strokeWidth={1.5} /></a></Link><div className="flex items-center space-x-6">- <h1 className="text-sm text-foreground">Customize your plan</h1>+ <h1 className="text-sm text-scale-1200">Customize your plan</h1><div className="h-6 w-px bg-scale-600"></div><div className="flex items-center space-x-3">- <p className="text-sm text-foreground-light">{selectedOrganization?.name}</p>+ <p className="text-sm text-scale-1100">{selectedOrganization?.name}</p><span className="text-scale-800"><svgviewBox="0 0 24 24"@@ -41,7 +41,7 @@ const BillingLayout = ({ children }: PropsWithChildren<BillingLayoutProps>) => {<path d="M16 3.549L7.12 20.600"></path></svg></span>- <p className="text-sm text-foreground-light">{selectedProject?.name}</p>+ <p className="text-sm text-scale-1100">{selectedProject?.name}</p></div></div></div>diff --git a/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx b/studio/components/layouts/DocsLayout/DocsLayout.utils.tsxindex 8ee2bb07119..99d4ae82d85 100644--- a/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx+++ b/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx@@ -71,7 +71,7 @@ export const generateDocsMenu = (<SVGsrc={`${BASE_PATH}/img/graphql.svg`}style={{ width: `${16}px`, height: `${16}px` }}- className="text-foreground"+ className="text-scale-1200"preProcessor={(code) => code.replace(/svg/, 'svg class="m-auto text-color-inherit"')}/>),diff --git a/studio/components/layouts/FunctionsLayout.tsx b/studio/components/layouts/FunctionsLayout.tsxindex 946dc05191b..b5ad0e62282 100644--- a/studio/components/layouts/FunctionsLayout.tsx+++ b/studio/components/layouts/FunctionsLayout.tsx@@ -51,7 +51,7 @@ const FunctionsLayout = ({ title, children }: PropsWithChildren<FunctionsLayoutP><div className="flex items-center gap-3"><div className="flex items-center space-x-4">- <h1 className="text-2xl text-foreground">Edge Functions</h1>+ <h1 className="text-2xl text-scale-1200">Edge Functions</h1></div></div></div>@@ -81,13 +81,13 @@ const FunctionsLayout = ({ title, children }: PropsWithChildren<FunctionsLayoutP<div className="flex items-center justify-between w-full"><div className="flex items-center space-x-4"><Link href={`/project/${ref}/functions`}>- <h1 className="cursor-pointer text-2xl text-foreground transition-colors hover:text-foreground-light">+ <h1 className="cursor-pointer text-2xl text-scale-1200 transition-colors hover:text-scale-1100">Edge Functions</h1></Link>{name && (<div className="mt-1.5 flex items-center space-x-4">- <span className="text-foreground-light">+ <span className="text-scale-1000"><svgviewBox="0 0 24 24"width="16"@@ -102,7 +102,7 @@ const FunctionsLayout = ({ title, children }: PropsWithChildren<FunctionsLayoutP<path d="M16 3.549L7.12 20.600"></path></svg></span>- <h5 className="text-lg text-foreground">{name}</h5>+ <h5 className="text-lg text-scale-1200">{name}</h5></div>)}</div>diff --git a/studio/components/layouts/ProjectLayout/BuildingState.tsx b/studio/components/layouts/ProjectLayout/BuildingState.tsxindex 2000ecb22ed..d2dd2a614cf 100644--- a/studio/components/layouts/ProjectLayout/BuildingState.tsx+++ b/studio/components/layouts/ProjectLayout/BuildingState.tsx@@ -52,7 +52,7 @@ const BuildingState = () => {<div className="mx-6 flex flex-col space-y-16"><div className=" flex flex-col gap-4"><div className="flex items-center space-x-3">- <h1 className="text-3xl text-foreground">{project?.name}</h1>+ <h1 className="text-3xl text-scale-1200">{project?.name}</h1><Badge color="brand"><div className="flex items-center gap-2"><IconLoader className="animate-spin" size={12} />@@ -65,22 +65,22 @@ const BuildingState = () => {</Badge></div><div>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">{' '}We are provisioning your database and API endpoints</p>- <p className="text-sm text-foreground-light"> This may take a few minutes</p>+ <p className="text-sm text-scale-1100"> This may take a few minutes</p></div></div><div><div className=" grid grid-cols-12 gap-12"><div className="col-span-12 space-y-12 lg:col-span-4"><div>- <h4 className="text-base text-foreground">While you wait</h4>+ <h4 className="text-base text-scale-1200">While you wait</h4><ChecklistItemdescription={- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Browse the Supabase{' '}<Link href="https://supabase.com/docs"><a@@ -97,10 +97,10 @@ const BuildingState = () => {/></div><div>- <h4 className="text-base text-foreground">Not working?</h4>+ <h4 className="text-base text-scale-1200">Not working?</h4><ChecklistItemdescription={- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Try refreshing after a couple of minutes.</p>}@@ -109,7 +109,7 @@ const BuildingState = () => {<ChecklistItemdescription={<>- <p className="mb-4 text-sm text-foreground-light">+ <p className="mb-4 text-sm text-scale-1100">If your dashboard hasn't connected within 2 minutes, you can open asupport ticket.</p>@@ -164,7 +164,7 @@ const ChecklistItem = ({ description }: any) => {return (<li className="my-3 flex flex-wrap space-x-3"><div className="mt-0.5">- <IconArrowRight className="text-foreground-lighter" size="tiny" />+ <IconArrowRight className="text-scale-900" size="tiny" /></div><div className="flex-1">{description}</div></li>diff --git a/studio/components/layouts/ProjectLayout/ConnectingState.tsx b/studio/components/layouts/ProjectLayout/ConnectingState.tsxindex 36708f85ff5..4068150d9e6 100644--- a/studio/components/layouts/ProjectLayout/ConnectingState.tsx+++ b/studio/components/layouts/ProjectLayout/ConnectingState.tsx@@ -57,13 +57,13 @@ const ConnectingState = ({ project }: ConnectingStateProps) => {<div className="mx-auto flex max-w-[300px] items-center justify-center"><div><div className="flex items-center justify-center w-12 h-12 rounded-md border">- <IconMonitor className="text-foreground-light" size={30} strokeWidth={1.5} />+ <IconMonitor className="text-scale-1100" size={30} strokeWidth={1.5} /></div></div><ShimmerLine active /><div><div className="flex items-center justify-center w-12 h-12 rounded-md border">- <IconServer className="text-foreground-light" size={30} strokeWidth={1.5} />+ <IconServer className="text-scale-1100" size={30} strokeWidth={1.5} /></div></div></div>diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsxindex 1075bd954ef..be10c7d934e 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx@@ -2,6 +2,7 @@ import { useState } from 'react'import {Button,IconMessageCircle,+ Popover,PopoverContent_Shadcn_,PopoverTrigger_Shadcn_,Popover_Shadcn_,@@ -43,7 +44,7 @@ const FeedbackDropdown = ({ alt = false }: FeedbackDropdownProps) => {type="default"icon={alt ? null : (- <IconMessageCircle size={16} strokeWidth={1.5} className="text-foreground-lighter" />+ <IconMessageCircle size={16} strokeWidth={1.5} className="text-scale-900" />)}>diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsxindex 54f57362b6b..cf5ec0d733a 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx@@ -118,11 +118,7 @@ const FeedbackWidget = ({pathname: router.asPath,})setFeedback('')- ui.setNotification({- category: 'success',- message:- 'Feedback sent. Thank you!\n\nPlease be aware that we do not provide responses to feedback. If you require assistance or a reply, consider submitting a support ticket.',- })+ ui.setNotification({ category: 'success', message: 'Feedback sent. Thank you!\n\nPlease be aware that we do not provide responses to feedback. If you require assistance or a reply, consider submitting a support ticket.' })} finally {setSending(false)}@@ -220,7 +216,7 @@ const FeedbackWidget = ({</Button></div></div>- <p className="text-xs text-foreground-light">+ <p className="text-xs text-scale-1000">Have a technical issue? Contact{' '}<Link href="/support/new"><a>diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsxindex 557f9d00f83..411eee235f6 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/HelpPopover.tsx@@ -40,7 +40,7 @@ const HelpPopover = ({ alt = false }: HelpPopoverProps) => {<IconHelpCirclesize={alt ? 18 : 16}strokeWidth={1.5}- className={alt ? 'text-foreground-light' : 'text-foreground-lighter'}+ className={alt ? 'text-scale-1100' : 'text-scale-900'}/>}>@@ -59,7 +59,7 @@ const HelpPopover = ({ alt = false }: HelpPopoverProps) => {'space-y-2 border border-scale-200',].join(' ')}>- <p className="text-xs text-foreground">Help</p>+ <p className="text-xs text-scale-1200">Help</p></div></Tooltip.Content></Tooltip.Portal>@@ -67,8 +67,8 @@ const HelpPopover = ({ alt = false }: HelpPopoverProps) => {</Tooltip.Root><PopoverContent_Shadcn_ className="w-[400px] space-y-4 p-0 py-5" align="end" side="bottom"><div className="mb-5 space-y-4 px-5">- <h5 className="text-foreground">Need help with your project?</h5>- <p className="text-sm text-foreground-lighter">+ <h5 className="text-scale-1200">Need help with your project?</h5>+ <p className="text-sm text-scale-900">For issues with your project hosted on supabase.com, or other inquiries about our hostedservices.</p>@@ -95,7 +95,7 @@ const HelpPopover = ({ alt = false }: HelpPopoverProps) => {</Button></Link></div>- <p className="text-sm text-foreground-lighter">+ <p className="text-sm text-scale-900">Expected response time is based on your billing plan. Pro and Pay as You Go plans areprioritized.</p>@@ -112,7 +112,7 @@ const HelpPopover = ({ alt = false }: HelpPopoverProps) => {<div className="mb-4 px-5"><h5 className={'mb-2'}>Reach out to the community</h5>- <p className="text-sm text-foreground-lighter">+ <p className="text-sm text-scale-900">For other support, including questions on our client libraries, advice, or bestpractices.</p>diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRow.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRow.tsxindex 53f6d1b42f8..35d2c42c055 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRow.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRow.tsx@@ -1,10 +1,12 @@+import * as Tooltip from '@radix-ui/react-tooltip'import { Notification, NotificationStatus } from '@supabase/shared-types/out/notifications'import dayjs from 'dayjs'-import { Button, IconX } from 'ui'+import { Button, IconArchive, IconX } from 'ui'import { useNotificationsDismissMutation } from 'data/notifications/notifications-dismiss-mutation'import { useProjectsQuery } from 'data/projects/projects-query'import { useStore } from 'hooks'+import { API_URL } from 'lib/constants'import { Project } from 'types'import NotificationActions from './NotificationActions'import { formatNotificationCTAText, formatNotificationText } from './NotificationRows.utils'@@ -62,7 +64,7 @@ const NotificationRow = ({<div className="w-9/10 space-y-2">{formatNotificationText(project, notification)}{formatNotificationCTAText(availableActions)}- <p className="text-foreground-light text-sm !mt-2">{insertedAt}</p>+ <p className="text-scale-1100 text-sm !mt-2">{insertedAt}</p></div><div className="w-1/10 flex justify-end"><div>@@ -74,7 +76,7 @@ const NotificationRow = ({<IconXsize={14}strokeWidth={2}- className="text-foreground-light group-hover:text-foreground transition"+ className="text-scale-1100 group-hover:text-scale-1200 transition"/>}onClick={() => dismissNotification(notification.id)}diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRows.utils.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRows.utils.tsxindex 52426c9abd6..b7b5ecadfce 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRows.utils.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/NotificationRows.utils.tsx@@ -1,3 +1,5 @@+import dayjs from 'dayjs'+import { Project } from 'types'import {Action,ActionType,@@ -8,11 +10,9 @@ import {ServiceUpgrade,ViolatedLimit,} from '@supabase/shared-types/out/notifications'-import { Markdown } from 'components/interfaces/Markdown'-import dayjs from 'dayjs'+import { IconArrowRight, IconExternalLink, Button } from 'ui'import Link from 'next/link'-import { Project } from 'types'-import { Button, IconArrowRight, IconExternalLink } from 'ui'+import { Markdown } from 'components/interfaces/Markdown'export const formatNotificationText = (project: Project, notification: Notification) => {const projectName = project.name@@ -111,7 +111,7 @@ export const formatNotificationText = (project: Project, notification: Notificat<Link href={upgrade.changelog_link}><a target="_blank" rel="noreferrer"><IconExternalLink- className="cursor-pointer text-foreground-light hover:text-foreground transition"+ className="cursor-pointer text-scale-1000 hover:text-scale-1200 transition"size={12}strokeWidth={2}/>diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsxindex 72cd52436a9..c1fa05eec5c 100644--- a/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsx+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/NotificationsPopover/index.tsx@@ -15,13 +15,13 @@ import ConfirmModal from 'components/ui/Dialogs/ConfirmDialog'import { useNotificationsQuery } from 'data/notifications/notifications-query'import { useNotificationsUpdateMutation } from 'data/notifications/notifications-update-mutation'import { getProjectDetail } from 'data/projects/project-detail-query'-import { useProjectRestartServicesMutation } from 'data/projects/project-restart-services-mutation'import { setProjectPostgrestStatus } from 'data/projects/projects-query'import { useStore } from 'hooks'import { delete_, post } from 'lib/common/fetch'import { API_URL } from 'lib/constants'import { Project } from 'types'import NotificationRow from './NotificationRow'+import { useProjectRestartServicesMutation } from 'data/projects/project-restart-services-mutation'interface NotificationsPopoverProps {alt?: boolean@@ -160,7 +160,7 @@ const NotificationsPopover = ({ alt = false }: NotificationsPopoverProps) => {<div className="flex items-center justify-between border-b border-gray-500 bg-gray-400 px-4 py-2"><p className="text-sm">Notifications</p>{/* Area for improvement: Paginate notifications and show in a side panel */}- {/* <p className="text-foreground-light hover:text-foreground cursor-pointer text-sm transition">+ {/* <p className="text-scale-1000 hover:text-scale-1200 cursor-pointer text-sm transition">See all{' '}{notifications.length > MAX_NOTIFICATIONS_TO_SHOW && `(${notifications.length})`}</p> */}@@ -168,7 +168,7 @@ const NotificationsPopover = ({ alt = false }: NotificationsPopoverProps) => {<div className="max-h-[380px] overflow-y-auto py-2">{notifications.length === 0 ? (<div className="py-2 px-4">- <p className="text-sm text-foreground-light">No notifications available</p>+ <p className="text-sm text-scale-1000">No notifications available</p></div>) : (<>@@ -222,18 +222,18 @@ const NotificationsPopover = ({ alt = false }: NotificationsPopoverProps) => {<p className="text-xs text-scale-100">{newNotifications.length}</p></div>) : alt ? (- <IconInbox size={18} strokeWidth={1.5} className="text-foreground-light" />+ <IconInbox size={18} strokeWidth={1.5} className="text-scale-1100" />) : (- <IconBell size={16} strokeWidth={1.5} className="text-foreground" />+ <IconBell size={16} strokeWidth={1.5} className="text-scale-1200" />)}iconRight={hasNewNotifications ? (<>{alt ? (- <IconInbox size={18} strokeWidth={1.5} className="text-foreground-light" />+ <IconInbox size={18} strokeWidth={1.5} className="text-scale-1100" />) : (- <IconBell size={16} strokeWidth={1.5} className="text-foreground" />+ <IconBell size={16} strokeWidth={1.5} className="text-scale-1200" />)}</>) : null@@ -252,7 +252,7 @@ const NotificationsPopover = ({ alt = false }: NotificationsPopoverProps) => {'border border-scale-200 flex items-center space-x-1',].join(' ')}>- <span className="text-xs text-foreground">Notifications</span>+ <span className="text-xs text-scale-1200">Notifications</span></div></Tooltip.Content></Tooltip.Portal>@@ -275,7 +275,7 @@ const NotificationsPopover = ({ alt = false }: NotificationsPopoverProps) => {title={`Apply schema migration for "${projectToApplyMigration?.name}"`}// @ts-ignoredescription={- <div className="text-foreground space-y-2">+ <div className="text-scale-1200 space-y-2"><div className="space-y-1"><p>The following schema migration will be applied to the project</p><ol className="list-disc pl-6">@@ -308,7 +308,7 @@ const NotificationsPopover = ({ alt = false }: NotificationsPopoverProps) => {title={`Rollback schema migration for "${projectToRollbackMigration?.name}"`}// @ts-ignoredescription={- <div className="text-foreground space-y-2">+ <div className="text-scale-1200 space-y-2"><div className="space-y-1"><p>The following schema migration will be rolled back for the project</p><ol className="list-disc pl-6">diff --git a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsxindex c1d8b1aea44..614154776f3 100644--- a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx+++ b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx@@ -1,23 +1,15 @@import * as Tooltip from '@radix-ui/react-tooltip'-import { useParams } from 'common'-import { useFlag } from 'hooks'-import { IS_PLATFORM } from 'lib/constants'-import { detectOS } from 'lib/helpers'+import { useParams, useTheme } from 'common'import { isUndefined } from 'lodash'-import { useTheme } from 'next-themes'import Link from 'next/link'import { useRouter } from 'next/router'++import { useFlag } from 'hooks'+import { IS_PLATFORM } from 'lib/constants'+import { detectOS } from 'lib/helpers'import {Button,- DropdownMenuContent_Shadcn_,- DropdownMenuGroup_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuLabel_Shadcn_,- DropdownMenuRadioGroup_Shadcn_,- DropdownMenuRadioItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,IconCommand,IconHome,IconSearch,@@ -32,12 +24,12 @@ import {generateToolRoutes,} from './NavigationBar.utils'import NavigationIconButton from './NavigationIconButton'-import ThemeToggle from '@ui/components/ThemeProvider/ThemeToggle'const NavigationBar = () => {const router = useRouter()- const { theme, setTheme } = useTheme()+ const { isDarkMode, toggleTheme } = useTheme()const { ref: projectRef } = useParams()+const os = detectOS()const { setIsOpen } = useCommandMenu()@@ -115,7 +107,7 @@ const NavigationBar = () => {className="border-none"><div className="py-1">- <IconSearch size={18} strokeWidth={2} className="text-foreground-lighter" />+ <IconSearch size={18} strokeWidth={2} className="text-scale-900" /></div></Button></Tooltip.Trigger>@@ -129,7 +121,7 @@ const NavigationBar = () => {].join(' ')}>{os === 'macos' ? (- <IconCommand size={11.5} strokeWidth={1.5} className="text-foreground" />+ <IconCommand size={11.5} strokeWidth={1.5} className="text-scale-1200" />) : (<p className="text-xs">CTRL</p>)}@@ -139,45 +131,44 @@ const NavigationBar = () => {</Tooltip.Portal></Tooltip.Root>)}- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button asChild type="text" size="tiny">- <span className="py-1 h-10 border-none">- <IconUser size={18} strokeWidth={2} className="text-foreground-lighter" />- </span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="right" align="start">- {IS_PLATFORM && (- <>- <Link href="/account/me">- <DropdownMenuItem_Shadcn_ key="header" className="space-x-2">- <IconSettings size={14} strokeWidth={1.5} />- <p className="text">Account Preferences</p>- </DropdownMenuItem_Shadcn_>- </Link>- <DropdownMenuSeparator_Shadcn_ />- </>- )}- <DropdownMenuLabel_Shadcn_>Theme</DropdownMenuLabel_Shadcn_>- <DropdownMenuGroup_Shadcn_>- <DropdownMenuRadioGroup_Shadcn_- value={theme}- onValueChange={(value) => {- setTheme(value)- }}+ <Dropdown+ side="right"+ align="start"+ overlay={+ <>+ {IS_PLATFORM && (+ <>+ <Link href="/account/me">+ <Dropdown.Item+ key="header"+ icon={<IconSettings size={14} strokeWidth={1.5} />}+ >+ Account Preferences+ </Dropdown.Item>+ </Link>+ <Dropdown.Separator />+ </>+ )}+ <Dropdown.Label>Theme</Dropdown.Label>+ <Dropdown.RadioGroup+ key="theme"+ value={isDarkMode ? 'dark' : 'light'}+ onChange={(e: any) => toggleTheme(e === 'dark')}>- <DropdownMenuRadioItem_Shadcn_ value={'system'}>- System- </DropdownMenuRadioItem_Shadcn_>- <DropdownMenuRadioItem_Shadcn_ value={'dark'}>Dark</DropdownMenuRadioItem_Shadcn_>- <DropdownMenuRadioItem_Shadcn_ value={'light'}>- Light- </DropdownMenuRadioItem_Shadcn_>- </DropdownMenuRadioGroup_Shadcn_>- </DropdownMenuGroup_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ {/* [Joshen] Removing system default for now, needs to be supported in useTheme from common packages */}+ {/* <Dropdown.Radio value="system">System default</Dropdown.Radio> */}+ <Dropdown.Radio value="dark">Dark</Dropdown.Radio>+ <Dropdown.Radio value="light">Light</Dropdown.Radio>+ </Dropdown.RadioGroup>+ </>+ }+ >+ <Button asChild type="text" size="tiny">+ <span className="py-1 h-10 border-none">+ <IconUser size={18} strokeWidth={2} className="text-scale-900" />+ </span>+ </Button>+ </Dropdown></ul>)}</div>diff --git a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsx b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsxindex 568a361d139..6a5b22d315c 100644--- a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsx+++ b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationIconButton.tsx@@ -26,8 +26,8 @@ const NavigationIconButton = ({ route, isActive = false }: NavigationIconButtonP'transition-colors duration-200','flex items-center justify-center h-10 w-10 rounded', // Layout'bg-scale-200 hover:bg-scale-500', // Light mode- 'text-foreground-lighter hover:text-foreground ', // Dark mode- `${isActive ? 'bg-scale-500 shadow-sm text-foreground' : ''}`,+ 'text-scale-900 hover:text-scale-1200 ', // Dark mode+ `${isActive ? 'bg-scale-500 shadow-sm text-scale-1200' : ''}`,].join(' ')}>{route.icon}@@ -44,7 +44,7 @@ const NavigationIconButton = ({ route, isActive = false }: NavigationIconButtonP'border border-scale-500 ', //border].join(' ')}>- <span className="text-foreground text-xs">{route.label}</span>+ <span className="text-scale-1200 text-xs">{route.label}</span></div></Tooltip.Content></Tooltip.Portal>diff --git a/studio/components/layouts/ProjectLayout/PausingState.tsx b/studio/components/layouts/ProjectLayout/PausingState.tsxindex eaea7241326..e2cce40abce 100644--- a/studio/components/layouts/ProjectLayout/PausingState.tsx+++ b/studio/components/layouts/ProjectLayout/PausingState.tsx@@ -2,12 +2,12 @@ import { useQueryClient } from '@tanstack/react-query'import { useParams } from 'common'import { Badge, IconCircle, IconLoader } from 'ui'-import { invalidateProjectDetailsQuery } from 'data/projects/project-detail-query'import { useProjectStatusQuery } from 'data/projects/project-status-query'import { invalidateProjectsQuery } from 'data/projects/projects-query'import { PROJECT_STATUS } from 'lib/constants'-import { useEffect, useState } from 'react'import { Project } from 'types'+import { useEffect, useState } from 'react'+import { invalidateProjectDetailsQuery } from 'data/projects/project-detail-query'export interface PausingStateProps {project: Project@@ -59,10 +59,10 @@ const PausingState = ({ project }: PausingStateProps) => {<div className="absolute flex h-full w-full items-center justify-center"><IconLoader className="animate-spin" size={20} strokeWidth={2} /></div>- <IconCircle className="text-foreground-lighter" size={50} strokeWidth={1.5} />+ <IconCircle className="text-scale-900" size={50} strokeWidth={1.5} /></div><p className="text-center">Pausing {project.name}</p>- <p className="mt-4 text-center text-sm text-foreground-light">+ <p className="mt-4 text-center text-sm text-scale-1100">You may restore your project anytime thereafter, and your data will be restored towhen it was initially paused.</p>diff --git a/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx b/studio/components/layouts/ProjectLayout/ProjectPausedState.tsxindex 51be102f24f..7f02480160b 100644--- a/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx+++ b/studio/components/layouts/ProjectLayout/ProjectPausedState.tsx@@ -76,14 +76,14 @@ const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {<div className="mx-6 flex h-[500px] items-center justify-center rounded border border-scale-400 bg-scale-300 p-8"><div className="grid w-[480px] gap-4"><div className="mx-auto flex max-w-[300px] items-center justify-center space-x-4 lg:space-x-8">- <IconPauseCircle className="text-foreground-light" size={50} strokeWidth={1.5} />+ <IconPauseCircle className="text-scale-1100" size={50} strokeWidth={1.5} /></div><div className="space-y-2"><p className="text-center">The project "{project?.name ?? ''}" is currently paused.</p>- <p className="text-sm text-foreground-light text-center">+ <p className="text-sm text-scale-1100 text-center">All of your project's data is still intact, but your project is inaccessible whilepaused.{' '}{product !== undefined ? (@@ -96,12 +96,12 @@ const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {)}</p>{isFreePlan && (- <p className="text-sm text-foreground-light text-center">+ <p className="text-sm text-scale-1100 text-center">You can also prevent project pausing in the future by upgrading to Pro.</p>)}{!isFreePlan && (- <p className="text-sm text-foreground-light text-center">+ <p className="text-sm text-scale-1100 text-center">Unpaused projects count towards compute usage. For every hour your instance isactive, we'll bill you based on the instance size of your project. See{' '}<Link href="https://supabase.com/docs/guides/platform/org-based-billing#usage-based-billing-for-compute">@@ -136,7 +136,7 @@ const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to resume this project</span></div>@@ -187,11 +187,11 @@ const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {<div className="py-4 space-y-4"><Modal.Content><div className="space-y-2">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">The following members have reached their maximum limits for the number of activefree plan projects within organizations where they are an administrator or owner:</p>- <ul className="pl-5 text-sm list-disc text-foreground-light">+ <ul className="pl-5 text-sm list-disc text-scale-1100">{(membersExceededLimit || []).map((member, idx: number) => (<li key={`member-${idx}`}>{member.username || member.primary_email} (Limit: {member.free_project_limit}{' '}@@ -199,7 +199,7 @@ const ProjectPausedState = ({ product }: ProjectPausedStateProps) => {</li>))}</ul>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">These members will need to either delete, pause, or upgrade one or more of theseprojects before you're able to unpause this project.</p>diff --git a/studio/components/layouts/ProjectLayout/RestoringState.tsx b/studio/components/layouts/ProjectLayout/RestoringState.tsxindex 3eb4e3c71d8..700f2a23bdf 100644--- a/studio/components/layouts/ProjectLayout/RestoringState.tsx+++ b/studio/components/layouts/ProjectLayout/RestoringState.tsx@@ -64,7 +64,7 @@ const RestoringState = () => {</div><div className="space-y-1"><p>Restoration complete!</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Your project has been successfully restored and is now back online.</p></div>@@ -83,7 +83,7 @@ const RestoringState = () => {</div><div className="space-y-1"><p>Something went wrong while restoring your project</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Our engineers have already been notified of this, do hang tight while we areinvestigating into the issue.</p>@@ -109,7 +109,7 @@ const RestoringState = () => {</div><div className="space-y-1"><p>Restoration in progress</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Restoration can take from a few minutes up to several hours depending on the sizeof your database. Your project will be offline while the restoration is running.</p>diff --git a/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx b/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsxindex 3050d8491c3..d978e253b6f 100644--- a/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx+++ b/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx@@ -15,7 +15,6 @@ import {IconSettings,} from 'ui'-import { useQueryClient } from '@tanstack/react-query'import { useParams } from 'common/hooks'import { useProjectUpgradingStatusQuery } from 'data/config/project-upgrade-status-query'import { getProjectDetail, invalidateProjectDetailsQuery } from 'data/projects/project-detail-query'@@ -23,6 +22,7 @@ import { useStore } from 'hooks'import { IS_PLATFORM } from 'lib/constants'import { useProjectContext } from '../ProjectContext'import { DATABASE_UPGRADE_MESSAGES } from './UpgradingState.constants'+import { useQueryClient } from '@tanstack/react-query'const UpgradingState = () => {const { ref } = useParams()@@ -79,7 +79,7 @@ const UpgradingState = () => {</div><div className="space-y-2"><p className="text-center">Upgrade completed!</p>- <p className="mt-4 text-center text-sm text-foreground-light w-[300px] mx-auto">+ <p className="mt-4 text-center text-sm text-scale-1100 w-[300px] mx-auto">Your project has been successfully upgraded to Postgres {target_version} and isnow back online.</p>@@ -97,7 +97,7 @@ const UpgradingState = () => {</div><div className="space-y-2"><p className="text-center">We ran into an issue while upgrading your project</p>- <p className="mt-4 text-center text-sm text-foreground-light w-[450px] mx-auto">+ <p className="mt-4 text-center text-sm text-scale-1100 w-[450px] mx-auto">Your project is back online and its data is not affected. Please reach out to usvia our support form for assistance with the upgrade.</p>@@ -121,11 +121,11 @@ const UpgradingState = () => {<div className="absolute flex items-center justify-center w-full h-full"><IconSettings className="animate-spin" size={20} strokeWidth={2} /></div>- <IconCircle className="text-foreground-lighter" size={50} strokeWidth={1.5} />+ <IconCircle className="text-scale-900" size={50} strokeWidth={1.5} /></div><div className="space-y-2"><p className="text-center">Upgrading in progress</p>- <p className="text-sm text-center text-foreground-light">+ <p className="text-sm text-center text-scale-1100">Upgrades can take from a few minutes up to several hours depending on the sizeof your database. Your project will be offline while it is being upgraded.</p>@@ -172,7 +172,7 @@ const UpgradingState = () => {<div className="flex items-center justify-center w-5 h-5 rounded-full"><IconLoadersize={20}- className="animate-spin text-foreground-light"+ className="animate-spin text-scale-1100"strokeWidth={2}/></div>@@ -186,11 +186,11 @@ const UpgradingState = () => {<pclassName={`text-sm ${isCurrent- ? 'text-foreground'+ ? 'text-scale-1200': isCompleted- ? 'text-foreground-light'- : 'text-foreground-lighter'- } hover:text-foreground transition`}+ ? 'text-scale-1100'+ : 'text-scale-1000'+ } hover:text-scale-1200 transition`}>{isCurrent? message.progress@@ -207,7 +207,7 @@ const UpgradingState = () => {{initiated_at !== undefined && (<Tooltip.Root delayDuration={0}><Tooltip.Trigger className="w-full">- <p className="text-sm text-center text-foreground-light">+ <p className="text-sm text-center text-scale-1000">Started on: {initiatedAtUTC} (UTC)</p></Tooltip.Trigger>@@ -220,7 +220,7 @@ const UpgradingState = () => {'border border-scale-200 ', //border].join(' ')}>- <span className="text-xs text-foreground">{initiatedAt}</span>+ <span className="text-xs text-scale-1200">{initiatedAt}</span></div></Tooltip.Content></Tooltip.Portal>diff --git a/studio/components/layouts/SQLEditorLayout/QueryItem.tsx b/studio/components/layouts/SQLEditorLayout/QueryItem.tsxindex e5c54792764..e4ddd6bb285 100644--- a/studio/components/layouts/SQLEditorLayout/QueryItem.tsx+++ b/studio/components/layouts/SQLEditorLayout/QueryItem.tsx@@ -10,11 +10,7 @@ import {AlertTitle_Shadcn_,Alert_Shadcn_,Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,IconAlertCircle,IconAlertTriangle,IconChevronDown,@@ -63,7 +59,7 @@ const QueryItem = ({ tabInfo }: QueryItemProps) => {key={id}className={clsx('flex items-center justify-between rounded-md group',- isActive && 'text-foreground bg-scale-400 dark:bg-scale-600 -active'+ isActive && 'text-scale-1200 bg-scale-400 dark:bg-scale-600 -active')}ref={isActive ? (activeItemRef as React.RefObject<HTMLDivElement>) : null}>@@ -71,13 +67,13 @@ const QueryItem = ({ tabInfo }: QueryItemProps) => {<a className="py-1 px-3 w-full overflow-hidden"><ptitle={description || name}- className="text-sm text-foreground-light group-hover:text-foreground transition overflow-hidden text-ellipsis"+ className="text-sm text-scale-1100 group-hover:text-scale-1200 transition overflow-hidden text-ellipsis">{name}</p></a></Link>- <div className="pr-1">{<QueryItemActions tabInfo={tabInfo} activeId={activeId} />}</div>+ <div className="pr-3">{<QueryItemActions tabInfo={tabInfo} activeId={activeId} />}</div></div>)}@@ -202,47 +198,46 @@ const QueryItemActions = observer(({ tabInfo, activeId }: QueryItemActionsProps)}return (- <div className="group [div&>button[data-state='open']>span]:text-foreground-lighter flex items-center">+ <div className="group [div&>button[data-state='open']>span]:text-scale-900">{IS_PLATFORM ? (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_ asChild>- <span- className={clsx(- 'rounded p-1',- isActive- ? 'text-foreground-light hover:bg-scale-800'- : 'text-scale-300 dark:text-scale-200 hover:bg-scale-500 group-hover:text-foreground-light'- )}- >- <IconChevronDown size="tiny" strokeWidth={2} />- </span>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="end">- <DropdownMenuItem_Shadcn_ onClick={onClickRename} className="space-x-2">- <IconEdit2 size="tiny" />- <p className="text">Rename query</p>- </DropdownMenuItem_Shadcn_>- {sharedSnippetsFeature && visibility === 'user' && canCreateSQLSnippet && (- <DropdownMenuItem_Shadcn_ onClick={onClickShare} className="space-x-2">- <IconShare size="tiny" />- <p className="text">Share query</p>- </DropdownMenuItem_Shadcn_>- )}- {sharedSnippetsFeature && visibility === 'project' && canCreateSQLSnippet && (- <DropdownMenuItem_Shadcn_ onClick={createPersonalCopy} className="space-x-2">- <IconCopy size="tiny" />- <p className="text">Duplicate personal copy</p>- </DropdownMenuItem_Shadcn_>- )}+ <Dropdown+ side="bottom"+ align="end"+ overlay={<>- <DropdownMenuSeparator_Shadcn_ />- <DropdownMenuItem_Shadcn_ onClick={onClickDelete} className="space-x-2">- <IconTrash size="tiny" />- <p className="text">Delete query</p>- </DropdownMenuItem_Shadcn_>+ <Dropdown.Item onClick={onClickRename} icon={<IconEdit2 size="tiny" />}>+ Rename query+ </Dropdown.Item>+ {sharedSnippetsFeature && visibility === 'user' && canCreateSQLSnippet && (+ <Dropdown.Item onClick={onClickShare} icon={<IconShare size="tiny" />}>+ Share query+ </Dropdown.Item>+ )}+ {sharedSnippetsFeature && visibility === 'project' && canCreateSQLSnippet && (+ <Dropdown.Item onClick={createPersonalCopy} icon={<IconCopy size="tiny" />}>+ Create a personal copy+ </Dropdown.Item>+ )}+ <>+ <Dropdown.Separator />+ <Dropdown.Item onClick={onClickDelete} icon={<IconTrash size="tiny" />}>+ Delete query+ </Dropdown.Item>+ </></>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ }+ >+ <span+ className={clsx(+ 'p-0.5 rounded-md',+ isActive+ ? 'text-scale-1100 hover:bg-scale-800'+ : 'text-scale-300 dark:text-scale-200 hover:bg-scale-500 group-hover:text-scale-1100'+ )}+ >+ <IconChevronDown size="tiny" strokeWidth={2} />+ </span>+ </Dropdown>) : (<Button asChild disabled type="text" style={{ padding: '3px' }}><span></span>@@ -266,7 +261,7 @@ const QueryItemActions = observer(({ tabInfo, activeId }: QueryItemActionsProps)><Modal.Content><div className="my-6">- <div className="text-sm text-foreground-light grid gap-4">+ <div className="text-sm text-scale-1100 grid gap-4"><div className="grid gap-1">{sharedSnippetsFeature && visibility === 'project' && (<Alert_Shadcn_ variant="destructive">@@ -294,7 +289,7 @@ const QueryItemActions = observer(({ tabInfo, activeId }: QueryItemActionsProps)><Modal.Content><div className="my-6">- <div className="text-sm text-foreground-light grid gap-4">+ <div className="text-sm text-scale-1100 grid gap-4"><div className="grid gap-1"><Alert_Shadcn_ variant="warning"><IconAlertTriangle strokeWidth={2} />diff --git a/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx b/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsxindex ebac3e7a9fa..5c6ff265a6b 100644--- a/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx+++ b/studio/components/layouts/SQLEditorLayout/SQLEditorMenu.tsx@@ -3,7 +3,7 @@ import { useParams } from 'common'import { observer } from 'mobx-react-lite'import { useRouter } from 'next/router'import { useMemo, useState } from 'react'-import { Button, cn, IconPlus, IconSearch, IconX, Input, Menu } from 'ui'+import { Button, IconPlus, IconSearch, IconX, Input, Menu, cn } from 'ui'import { untitledSnippetTitle } from 'components/interfaces/SQLEditor/SQLEditor.constants'import { createSqlSnippetSkeleton } from 'components/interfaces/SQLEditor/SQLEditor.utils'@@ -173,7 +173,7 @@ const SideBarContent = observer(() => {'w-4','h-4','cursor-pointer',- isFavoritesFilterOpen ? 'text-foreground' : 'text-foreground-lighter'+ isFavoritesFilterOpen ? 'text-scale-1200' : 'text-scale-900')}onClick={() => {setFavoritesFilterString('')@@ -240,9 +240,7 @@ const SideBarContent = observer(() => {'w-4','h-4','cursor-pointer',- isProjectSnippetsFilterOpen- ? 'text-foreground'- : 'text-foreground-lighter'+ isProjectSnippetsFilterOpen ? 'text-scale-1200' : 'text-scale-900')}onClick={() => {setProjectSnippetsFilterString('')@@ -308,7 +306,7 @@ const SideBarContent = observer(() => {'w-4','h-4','cursor-pointer',- isPersonalSnippetsFilterOpen ? 'text-foreground' : 'text-foreground-lighter'+ isPersonalSnippetsFilterOpen ? 'text-scale-1200' : 'text-scale-900')}onClick={() => {setPersonalSnippetsFilterString('')diff --git a/studio/components/layouts/SettingsLayout/ProjectSettingsMenuItem.tsx b/studio/components/layouts/SettingsLayout/ProjectSettingsMenuItem.tsxindex 447a84bdfab..2132e439e40 100644--- a/studio/components/layouts/SettingsLayout/ProjectSettingsMenuItem.tsx+++ b/studio/components/layouts/SettingsLayout/ProjectSettingsMenuItem.tsx@@ -37,14 +37,14 @@ const ProjectSettingsMenuItem = ({ project }: ProjectSettingsMenuItemProps) => {<AccordionItem_Shadcn_ value={project.ref} className="!border-none"><AccordionTrigger_Shadcn_hideIcon- className="py-1.5 hover:!no-underline [&[data-state=open]>div>svg]:!rotate-90 [&[data-state=open]>div>p]:text-foreground"+ className="py-1.5 hover:!no-underline [&[data-state=open]>div>svg]:!rotate-90 [&[data-state=open]>div>p]:text-scale-1200"><div className="flex items-center space-x-2"><IconChevronRightclassName="h-4 w-4 transition-transform duration-200"strokeWidth={1.5}/>- <p className="text-foreground-light text-sm font-normal transition duration-200">+ <p className="text-scale-1100 text-sm font-normal transition duration-200">{project.name}</p></div>diff --git a/studio/components/layouts/SettingsLayout/SettingsMenuItem.tsx b/studio/components/layouts/SettingsLayout/SettingsMenuItem.tsxindex 819b7e28e3e..e8bcf9b13a0 100644--- a/studio/components/layouts/SettingsLayout/SettingsMenuItem.tsx+++ b/studio/components/layouts/SettingsLayout/SettingsMenuItem.tsx@@ -14,7 +14,7 @@ const SettingsMenuItem = ({ href, label, isActive }: SettingsMenuItemProps) => {<aclassName={clsx('text-sm',- isActive ? 'text-foreground' : 'text-foreground-light hover:text-foreground transition'+ isActive ? 'text-scale-1200' : 'text-scale-1100 hover:text-scale-1200 transition')}>{label}diff --git a/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx b/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsxindex d15066e1e23..0452dd01118 100644--- a/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx+++ b/studio/components/layouts/SignInLayout/ForgotPasswordLayout.tsx@@ -1,9 +1,9 @@-import { useTheme } from 'next-themes'-import { BASE_PATH } from 'lib/constants'import { observer } from 'mobx-react-lite'import Image from 'next/image'import Link from 'next/link'import { PropsWithChildren } from 'react'+import { BASE_PATH } from 'lib/constants'+import { useTheme } from 'common'type ForgotPasswordLayoutProps = {heading: string@@ -19,7 +19,7 @@ const ForgotPasswordLayout = ({showHeadings = true,children,}: PropsWithChildren<ForgotPasswordLayoutProps>) => {- const { theme } = useTheme()+ const { isDarkMode } = useTheme()return (<div className="flex-1 bg-scale-200 flex flex-col gap-8 lg:gap-16 xl:gap-32">@@ -31,7 +31,7 @@ const ForgotPasswordLayout = ({<a><Imagesrc={- theme === 'dark'+ isDarkMode? `${BASE_PATH}/img/supabase-dark.svg`: `${BASE_PATH}/img/supabase-light.svg`}@@ -51,7 +51,7 @@ const ForgotPasswordLayout = ({{showHeadings && (<div className="mb-6"><h1 className="text-2xl lg:text-3xl mt-8 mb-2">{heading}</h1>- <h2 className="text-foreground-light text-sm">{subheading}</h2>+ <h2 className="text-scale-1100 text-sm">{subheading}</h2></div>)}diff --git a/studio/components/layouts/SignInLayout/SignInLayout.tsx b/studio/components/layouts/SignInLayout/SignInLayout.tsxindex 1ef3037277a..d8907e92cef 100644--- a/studio/components/layouts/SignInLayout/SignInLayout.tsx+++ b/studio/components/layouts/SignInLayout/SignInLayout.tsx@@ -1,5 +1,5 @@import { useQueryClient } from '@tanstack/react-query'-import { useTheme } from 'next-themes'+import { useTheme } from 'common'import { useFlag } from 'hooks'import { usePushNext } from 'hooks/misc/useAutoAuthRedirect'import { BASE_PATH } from 'lib/constants'@@ -29,7 +29,7 @@ const SignInLayout = ({const router = useRouter()const pushNext = usePushNext()const queryClient = useQueryClient()- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const ongoingIncident = useFlag('ongoingIncident')// This useEffect redirects the user to MFA if they're already halfway signed in@@ -103,7 +103,7 @@ const SignInLayout = ({<a><Imagesrc={- theme === 'dark'+ isDarkMode? `${BASE_PATH}/img/supabase-dark.svg`: `${BASE_PATH}/img/supabase-light.svg`}@@ -133,7 +133,7 @@ const SignInLayout = ({<div className="flex-1 flex flex-col justify-center w-[330px] sm:w-[384px]"><div className="mb-10"><h1 className="mt-8 mb-2 text-2xl lg:text-3xl">{heading}</h1>- <h2 className="text-sm text-foreground-light">{subheading}</h2>+ <h2 className="text-sm text-scale-1100">{subheading}</h2></div>{children}@@ -141,14 +141,14 @@ const SignInLayout = ({{showDisclaimer && (<div className="sm:text-center">- <p className="text-xs text-foreground-lighter sm:mx-auto sm:max-w-sm">+ <p className="text-xs text-scale-900 sm:mx-auto sm:max-w-sm">By continuing, you agree to Supabase's{' '}<Link href="https://supabase.com/terms">- <a className="underline hover:text-foreground-light">Terms of Service</a>+ <a className="underline hover:text-scale-1100">Terms of Service</a></Link>{' '}and{' '}<Link href="https://supabase.com/privacy">- <a className="underline hover:text-foreground-light">Privacy Policy</a>+ <a className="underline hover:text-scale-1100">Privacy Policy</a></Link>, and to receive periodic emails with updates.</p>@@ -178,7 +178,7 @@ const SignInLayout = ({/><div className="flex flex-col">- <cite className="not-italic font-medium text-foreground-light whitespace-nowrap">+ <cite className="not-italic font-medium text-scale-1100 whitespace-nowrap">@{quote.handle}</cite></div>diff --git a/studio/components/layouts/StorageLayout/BucketRow.tsx b/studio/components/layouts/StorageLayout/BucketRow.tsxindex 4a8b5792164..dc79e48b408 100644--- a/studio/components/layouts/StorageLayout/BucketRow.tsx+++ b/studio/components/layouts/StorageLayout/BucketRow.tsx@@ -2,19 +2,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import clsx from 'clsx'import { noop } from 'lodash'import Link from 'next/link'-import {- Badge,- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconChevronDown,- IconEdit2,- IconLoader,- IconTrash,-} from 'ui'+import { Badge, Button, Dropdown, IconChevronDown, IconEdit2, IconLoader, IconTrash } from 'ui'import { Bucket } from 'data/storage/buckets-query'import { useCheckPermissions } from 'hooks'@@ -41,14 +29,14 @@ const BucketRow = ({key={bucket.id}className={clsx('group flex items-center justify-between rounded-md',- isSelected && 'text-foreground bg-scale-300'+ isSelected && 'text-scale-1200 bg-scale-300')}><Link href={`/project/${projectRef}/storage/buckets/${bucket.id}`}><a className="py-1 px-3 w-full"><div className="flex items-center justify-between space-x-2 truncate w-full"><p- className="text-sm text-foreground-light group-hover:text-foreground transition truncate"+ className="text-sm text-scale-1100 group-hover:text-scale-1200 transition truncate"title={bucket.name}>{bucket.name}@@ -57,46 +45,45 @@ const BucketRow = ({</div></a></Link>- {/* [JOSHEN TODO] need to change this */}- {false ? (- <IconLoader className="animate-spin" size={16} strokeWidth={2} />- ) : canUpdateBuckets && isSelected ? (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_ asChild>+ <div className="pr-3">+ {/* [JOSHEN TODO] need to change this */}+ {false ? (+ <IconLoader className="animate-spin" size={16} strokeWidth={2} />+ ) : canUpdateBuckets && isSelected ? (+ <Dropdown+ side="bottom"+ align="start"+ overlay={[+ <Dropdown.Item+ key="toggle-private"+ icon={<IconEdit2 size="tiny" />}+ onClick={() => onSelectEditBucket(bucket)}+ >+ Edit bucket+ </Dropdown.Item>,+ <Dropdown.Separator key="bucket-separator" />,+ <Dropdown.Item+ key="delete-bucket"+ icon={<IconTrash size="tiny" />}+ onClick={() => onSelectDeleteBucket(bucket)}+ >+ Delete bucket+ </Dropdown.Item>,+ ]}+ ><ButtonasChildtype="text"- icon={- <IconChevronDown size="tiny" strokeWidth={2} className="text-foreground-light" />- }- className="mr-1 p-0.5"+ icon={<IconChevronDown size="tiny" strokeWidth={2} className="text-scale-1100" />}+ style={{ padding: '3px' }}><span></span></Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="start">- <DropdownMenuItem_Shadcn_- key="toggle-private"- className="space-x-2"- onClick={() => onSelectEditBucket(bucket)}- >- <IconEdit2 size="tiny" />- <p className="text">Edit bucket</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuSeparator_Shadcn_ />- <DropdownMenuItem_Shadcn_- key="delete-bucket"- className="space-x-2"- onClick={() => onSelectDeleteBucket(bucket)}- >- <IconTrash size="tiny" />- <p className="text">Delete bucket</p>- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>- ) : (- <div className="w-5" />- )}+ </Dropdown>+ ) : (+ <div className="w-5" />+ )}+ </div></div>)}diff --git a/studio/components/layouts/StorageLayout/StorageMenu.tsx b/studio/components/layouts/StorageLayout/StorageMenu.tsxindex 13628ad3409..fc313c8bfae 100644--- a/studio/components/layouts/StorageLayout/StorageMenu.tsx+++ b/studio/components/layouts/StorageLayout/StorageMenu.tsx@@ -44,7 +44,7 @@ const StorageMenu = () => {blocktype="default"icon={- <div className="text-foreground-lighter">+ <div className="text-scale-900"><IconEdit size={14} /></div>}@@ -65,7 +65,7 @@ const StorageMenu = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to create buckets</span></div>diff --git a/studio/components/layouts/TableEditorLayout/EntityListItem.tsx b/studio/components/layouts/TableEditorLayout/EntityListItem.tsxindex e1bb5270c15..f85860b8bfa 100644--- a/studio/components/layouts/TableEditorLayout/EntityListItem.tsx+++ b/studio/components/layouts/TableEditorLayout/EntityListItem.tsx@@ -1,32 +1,28 @@-import * as Tooltip from '@radix-ui/react-tooltip'-import clsx from 'clsx'import saveAs from 'file-saver'-import Link from 'next/link'import Papa from 'papaparse'+import clsx from 'clsx'import SVG from 'react-inlinesvg'+import * as Tooltip from '@radix-ui/react-tooltip'+import { ENTITY_TYPE } from 'data/entity-types/entity-type-constants'+import { Entity } from 'data/entity-types/entity-type-query'+import Link from 'next/link'import {- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconChevronDown,- IconCopy,- IconDownload,+ Dropdown,IconEdit,+ IconCopy,IconLock,IconTrash,+ IconChevronDown,+ IconDownload,} from 'ui'--import { parseSupaTable } from 'components/grid'-import { ENTITY_TYPE } from 'data/entity-types/entity-type-constants'-import { Entity } from 'data/entity-types/entity-type-query'-import { fetchAllTableRows } from 'data/table-rows/table-rows-query'-import { getTable } from 'data/tables/table-query'-import { useStore } from 'hooks'import { BASE_PATH } from 'lib/constants'import { useTableEditorStateSnapshot } from 'state/table-editor'+import { fetchAllTableRows } from 'data/table-rows/table-rows-query'+import { useParams } from 'common'import { useProjectContext } from '../ProjectLayout/ProjectContext'+import { getTable } from 'data/tables/table-query'+import { parseSupaTable } from 'components/grid'+import { useStore } from 'hooks'export interface EntityListItemProps {id: number@@ -114,7 +110,7 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt<divclassName={clsx('group flex items-center justify-between rounded-md',- isActive && 'text-foreground bg-scale-300'+ isActive && 'text-scale-1200 bg-scale-300')}><Link href={`/project/${projectRef}/editor/${entity.id}`}>@@ -146,8 +142,7 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListItentity.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-foreground-light bg-scale-800'+ entity.type === ENTITY_TYPE.PARTITIONED_TABLE && 'text-scale-1100 bg-scale-800')}>{Object.entries(ENTITY_TYPE)@@ -165,14 +160,14 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground capitalize">+ <span className="text-xs text-scale-1200 capitalize">{formatTooltipText(entity.type)}</span></div></Tooltip.Content></Tooltip.Portal></Tooltip.Root>- <p className="text-sm text-foreground-light group-hover:text-foreground transition max-w-[85%] overflow-hidden text-ellipsis whitespace-nowrap">+ <p className="text-sm text-scale-1100 group-hover:text-scale-1200 transition max-w-[85%] overflow-hidden text-ellipsis whitespace-nowrap">{/* only show tooltips if required, to reduce noise */}{entity.name.length > 20 ? (<Tooltip.Root delayDuration={0} disableHoverableContent={true}>@@ -188,7 +183,7 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">{entity.name}</span>+ <span className="text-xs text-scale-1200">{entity.name}</span></div></Tooltip.Content></Tooltip.Portal>@@ -201,71 +196,68 @@ const EntityListItem = ({ id, projectRef, item: entity, isLocked }: EntityListIt</Link><div className="pr-3">{entity.type === ENTITY_TYPE.TABLE && isActive && !isLocked && (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <div className="text-foreground-lighter transition-colors hover:text-foreground">- <IconChevronDown size={14} strokeWidth={2} />- </div>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="start">- <DropdownMenuItem_Shadcn_+ <Dropdown+ size="small"+ side="bottom"+ align="start"+ overlay={[+ <Dropdown.Itemkey="edit-table"- className="space-x-2"+ icon={<IconEdit size="tiny" />}onClick={(e) => {e.stopPropagation()snap.onEditTable()}}>- <IconEdit size="tiny" />- <p className="text">Edit Table</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuItem_Shadcn_+ Edit Table+ </Dropdown.Item>,+ <Dropdown.Itemkey="duplicate-table"- className="space-x-2"+ icon={<IconCopy size="tiny" />}onClick={(e) => {e.stopPropagation()snap.onDuplicateTable()}}>- <IconCopy size="tiny" />- <p className="text">Duplicate Table</p>- </DropdownMenuItem_Shadcn_>+ Duplicate Table+ </Dropdown.Item>,<Linkkey="view-policies"href={`/project/${projectRef}/auth/policies?search=${entity.id}`}><a>- <DropdownMenuItem_Shadcn_ key="delete-table" className="space-x-2">- <IconLock size="tiny" />- <p className="text">View Policies</p>- </DropdownMenuItem_Shadcn_>+ <Dropdown.Item key="delete-table" icon={<IconLock size="tiny" />}>+ View Policies+ </Dropdown.Item></a>- </Link>- <DropdownMenuItem_Shadcn_+ </Link>,+ <Dropdown.Itemkey="download-table-csv"- className="space-x-2"+ icon={<IconDownload size="tiny" />}onClick={(e) => {e.stopPropagation()exportTableAsCSV()}}>- <IconDownload size="tiny" />- <p className="text">Export as CSV</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuSeparator_Shadcn_ />- <DropdownMenuItem_Shadcn_+ Export as CSV+ </Dropdown.Item>,+ <Dropdown.Separator key="separator" />,+ <Dropdown.Itemkey="delete-table"- className="space-x-2"+ icon={<IconTrash size="tiny" />}onClick={(e) => {e.stopPropagation()snap.onDeleteTable()}}>- <IconTrash size="tiny" />- <p className="text">Delete Table</p>- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ Delete Table+ </Dropdown.Item>,+ ]}+ >+ <div className="text-scale-900 transition-colors hover:text-scale-1200">+ <IconChevronDown size={14} strokeWidth={2} />+ </div>+ </Dropdown>)}</div></div>diff --git a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsxindex a092a8c4c33..c45ddb71087 100644--- a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx+++ b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx@@ -148,11 +148,7 @@ const TableEditorMenu = () => {type="outline"className="w-full [&>span]:w-full"iconRight={- <IconCode- className="text-foreground-light rotate-90"- strokeWidth={2}- size={12}- />+ <IconCode className="text-scale-1100 rotate-90" strokeWidth={2} size={12} />}><div>@@ -232,7 +228,7 @@ const TableEditorMenu = () => {disabled={!canCreateTables}size="tiny"icon={- <div className="text-foreground-lighter">+ <div className="text-scale-900"><IconEdit size={14} strokeWidth={1.5} /></div>}@@ -253,7 +249,7 @@ const TableEditorMenu = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to create tables</span></div>@@ -283,13 +279,9 @@ const TableEditorMenu = () => {className="table-editor-search border-none"icon={isSearching ? (- <IconLoader- className="animate-spin text-foreground-lighter"- size={12}- strokeWidth={1.5}- />+ <IconLoader className="animate-spin text-scale-900" size={12} strokeWidth={1.5} />) : (- <IconSearch className="text-foreground-lighter" size={12} strokeWidth={1.5} />+ <IconSearch className="text-scale-900" size={12} strokeWidth={1.5} />)}placeholder="Search tables"@@ -310,21 +302,17 @@ const TableEditorMenu = () => {{isLoading ? (<div className="mx-4 flex items-center space-x-2"><IconLoader className="animate-spin" size={14} strokeWidth={1.5} />- <p className="text-sm text-foreground-light">Loading entities...</p>+ <p className="text-sm text-scale-1000">Loading entities...</p></div>) : searchText.length === 0 && (entityTypes?.length ?? 0) === 0 ? (<div className="mx-4 space-y-1 rounded-md border border-scale-400 bg-scale-300 py-3 px-4"><p className="text-xs">No entities available</p>- <p className="text-xs text-foreground-light">- This schema has no entities available yet- </p>+ <p className="text-xs text-scale-1100">This schema has no entities available yet</p></div>) : searchText.length > 0 && (entityTypes?.length ?? 0) === 0 ? (<div className="mx-4 space-y-1 rounded-md border border-scale-400 bg-scale-300 py-3 px-4"><p className="text-xs">No results found</p>- <p className="text-xs text-foreground-light">- There are no entities that match your search- </p>+ <p className="text-xs text-scale-1100">There are no entities that match your search</p></div>) : (<Menu@@ -385,7 +373,7 @@ const TableEditorMenu = () => {><Tooltip.Root delayDuration={0}><Tooltip.Trigger asChild>- <div className="text-foreground-lighter transition-colors hover:text-foreground">+ <div className="text-scale-900 transition-colors hover:text-scale-1200"><IconChevronsDown size={18} strokeWidth={1} /></div></Tooltip.Trigger>@@ -406,7 +394,7 @@ const TableEditorMenu = () => {</Dropdown><button- className="cursor-pointer text-foreground-lighter transition-colors hover:text-foreground"+ className="cursor-pointer text-scale-900 transition-colors hover:text-scale-1200"onClick={refreshTables}><IconRefreshCw className={isRefetching ? 'animate-spin' : ''} size={14} />diff --git a/studio/components/layouts/WizardLayout.tsx b/studio/components/layouts/WizardLayout.tsxindex 066565dcfb9..c576b121211 100644--- a/studio/components/layouts/WizardLayout.tsx+++ b/studio/components/layouts/WizardLayout.tsx@@ -5,9 +5,9 @@ import { IconChevronRight } from 'ui'import { useFlag, withAuth } from 'hooks'import { BASE_PATH } from 'lib/constants'-import { Organization, Project } from 'types'import FeedbackDropdown from './ProjectLayout/LayoutHeader/FeedbackDropdown'import HelpPopover from './ProjectLayout/LayoutHeader/HelpPopover'+import { Organization, Project } from 'types'interface WizardLayoutProps {organization: Organization | null | undefined@@ -56,16 +56,16 @@ const Header = ({ organization, project }: WizardLayoutProps) => {/></a></Link>- <IconChevronRight size="small" className="text-foreground-light" />+ <IconChevronRight size="small" className="text-scale-1100" /><p className="text-sm">{organization ? `Organization: ${organization.name}` : 'Create an organization'}</p>- <IconChevronRight size="small" className="text-foreground-light" />- <p className={`text-sm ${stepNumber < 1 ? 'text-foreground-light' : ''}`}>+ <IconChevronRight size="small" className="text-scale-1100" />+ <p className={`text-sm ${stepNumber < 1 ? 'text-scale-1100' : ''}`}>{project ? project.name : 'Create a new project'}</p>- <IconChevronRight size="small" className="text-foreground-light" />- <p className={`text-sm ${stepNumber < 2 ? 'text-foreground-light' : ''}`}>+ <IconChevronRight size="small" className="text-scale-1100" />+ <p className={`text-sm ${stepNumber < 2 ? 'text-scale-1100' : ''}`}>{project ? project.name : 'Extend your database'}</p></div>diff --git a/studio/components/to-be-cleaned/Charts/ChartHandler.tsx b/studio/components/to-be-cleaned/Charts/ChartHandler.tsxindex 5185b6a5d22..ebfc5854e66 100644--- a/studio/components/to-be-cleaned/Charts/ChartHandler.tsx+++ b/studio/components/to-be-cleaned/Charts/ChartHandler.tsx@@ -122,7 +122,7 @@ const ChartHandler = ({return (<div className="flex h-52 w-full flex-col items-center justify-center space-y-4"><IconLoader className="animate-spin text-scale-700" />- <p className="text-xs text-foreground-lighter">Loading data for {label}</p>+ <p className="text-xs text-scale-900">Loading data for {label}</p></div>)}@@ -131,7 +131,7 @@ const ChartHandler = ({return (<div className="flex h-52 w-full flex-col items-center justify-center space-y-4"><IconAlertCircle className="text-scale-700" />- <p className="text-xs text-foreground-lighter">Unable to load data for {label}</p>+ <p className="text-xs text-scale-900">Unable to load data for {label}</p></div>)}diff --git a/studio/components/to-be-cleaned/Charts/ChartRenderer.tsx b/studio/components/to-be-cleaned/Charts/ChartRenderer.tsxindex f11c5de3846..3e0651f0825 100644--- a/studio/components/to-be-cleaned/Charts/ChartRenderer.tsx+++ b/studio/components/to-be-cleaned/Charts/ChartRenderer.tsx@@ -1,19 +1,20 @@import dayjs from 'dayjs'+import { Loading } from 'ui'import { useState } from 'react'import {- Bar,BarChart as RechartBarChart,- Cell,- ResponsiveContainer,- Tooltip,+ Area,+ Bar,XAxis,YAxis,+ Tooltip,+ Cell,+ ResponsiveContainer,} from 'recharts'-import { Loading } from 'ui'-import { CHART_COLORS } from 'components/ui/Charts/Charts.constants'-import EmptyState from 'components/ui/Charts/EmptyState'import { formatBytes } from 'lib/helpers'+import EmptyState from 'components/ui/Charts/EmptyState'+import { CHART_COLORS } from 'components/ui/Charts/Charts.constants'function dataCheck(data: any, attribute: any) {const hasData = data && data.find((record: any) => record[attribute])@@ -80,14 +81,14 @@ const Header = ({const day = (value: number | string) => (displayDateInUtc ? dayjs(value).utc() : dayjs(value))const chartTitle = (- <h3 className={'text-foreground-lighter ' + (minimalHeader ? 'text-xs' : 'text-sm')}>+ <h3 className={'text-scale-900 ' + (minimalHeader ? 'text-xs' : 'text-sm')}>{label ?? attribute}</h3>)const highlighted = (<h5className={- 'text-xl font-normal text-foreground ' + (minimalHeader ? 'text-base' : 'text-2xl')+ 'text-xl font-normal text-scale-1200 ' + (minimalHeader ? 'text-base' : 'text-2xl')}>{title}@@ -95,7 +96,7 @@ const Header = ({</h5>)const date = (- <h5 className="text-xs text-foreground-lighter">+ <h5 className="text-xs text-scale-900">{focus ? (data && data[focus] && day(data[focus].period_start).format(FOCUS_FORMAT)) : (@@ -248,7 +249,7 @@ export function BarChart({</RechartBarChart></ResponsiveContainer>{data && (- <div className="-mt-5 flex items-center justify-between text-xs text-foreground-lighter">+ <div className="-mt-5 flex items-center justify-between text-xs text-scale-900"><span>{day(data[0].period_start).format(customDateFormat ? customDateFormat : DATE_FORMAT__WITH_TIMEdiff --git a/studio/components/to-be-cleaned/DateRangePicker.tsx b/studio/components/to-be-cleaned/DateRangePicker.tsxindex 148ebbc5419..d4061159430 100644--- a/studio/components/to-be-cleaned/DateRangePicker.tsx+++ b/studio/components/to-be-cleaned/DateRangePicker.tsx@@ -1,14 +1,6 @@import dayjs from 'dayjs'import { useEffect, useState } from 'react'-import {- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuRadioGroup_Shadcn_,- DropdownMenuRadioItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconChevronDown,-} from 'ui'+import { Button, Dropdown, IconChevronDown } from 'ui'import { DATE_FORMAT } from 'lib/constants'@@ -195,25 +187,27 @@ const DateRangePicker = ({return (<>- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button asChild type="default" iconRight={<IconChevronDown />}>- <span>{timePeriod && options.find((x) => x.key === timePeriod)?.label}</span>- </Button>- </DropdownMenuTrigger_Shadcn_>-- <DropdownMenuContent_Shadcn_ side="bottom" align="start">- <DropdownMenuRadioGroup_Shadcn_ value={timePeriod} onValueChange={(x) => handleChange(x)}>- {options.map((option) => {- return (- <DropdownMenuRadioItem_Shadcn_ value={option.key} key={option.key}>- {option.label}- </DropdownMenuRadioItem_Shadcn_>- )- })}- </DropdownMenuRadioGroup_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown+ side="bottom"+ align="start"+ overlay={+ <>+ <Dropdown.RadioGroup value={timePeriod} onChange={(x) => handleChange(x)}>+ {options.map((option: any) => {+ return (+ <Dropdown.Radio value={option.key} key={option.key}>+ {option.label}+ </Dropdown.Radio>+ )+ })}+ </Dropdown.RadioGroup>+ </>+ }+ >+ <Button asChild type="default" iconRight={<IconChevronDown />}>+ <span>{timePeriod && options.find((x: any) => x.key == timePeriod)?.label}</span>+ </Button>+ </Dropdown></>)}diff --git a/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.js b/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.jsnew file mode 100644index 00000000000..6dcbcaa358d--- /dev/null+++ b/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.js@@ -0,0 +1,43 @@+import { useRouter } from 'next/router'++import { Button, Dropdown, IconPlus } from 'ui'+import { EMPTY_ARR } from 'lib/void'++const OrganizationDropdown = ({ organizations = EMPTY_ARR }) => {+ const router = useRouter()++ return (+ <Dropdown+ side="bottom"+ align="center"+ overlay={+ <>+ <Dropdown.Label>Choose organization</Dropdown.Label>+ {organizations+ .sort((a, b) => a.name.localeCompare(b.name))+ .map((x) => (+ <Dropdown.Item+ key={x.slug}+ label={x.name}+ onClick={() => router.push(`/new/${x.slug}`)}+ >+ {x.name}+ </Dropdown.Item>+ ))}+ <Dropdown.Separator />+ <Dropdown.Item+ icon={<IconPlus size="tiny" />}+ onClick={() => router.push(`/new`)}+ >+ New organization+ </Dropdown.Item>+ </>+ }+ >+ <Button asChild>+ <span>New project</span>+ </Button>+ </Dropdown>+ )+}+export default OrganizationDropdowndiff --git a/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.tsx b/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.tsxdeleted file mode 100644index 225000d14ab..00000000000--- a/studio/components/to-be-cleaned/Dropdown/OrganizationDropdown.tsx+++ /dev/null@@ -1,49 +0,0 @@-import { useRouter } from 'next/router'--import { EMPTY_ARR } from 'lib/void'-import {- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuLabel_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconPlus,-} from 'ui'--const OrganizationDropdown = ({- organizations = EMPTY_ARR,-}: {- organizations: { name: string; slug: string }[]-}) => {- const router = useRouter()-- return (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button asChild>- <span>New project</span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="center">- <>- <DropdownMenuLabel_Shadcn_>Choose organization</DropdownMenuLabel_Shadcn_>- {organizations- .sort((a, b) => a.name.localeCompare(b.name))- .map((x) => (- <DropdownMenuItem_Shadcn_ key={x.slug} onClick={() => router.push(`/new/${x.slug}`)}>- {x.name}- </DropdownMenuItem_Shadcn_>- ))}- <DropdownMenuSeparator_Shadcn_ />- <DropdownMenuItem_Shadcn_ className="space-x-2" onClick={() => router.push(`/new`)}>- <IconPlus size="tiny" />- <p className="text">New organization</p>- </DropdownMenuItem_Shadcn_>- </>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>- )-}-export default OrganizationDropdowndiff --git a/studio/components/to-be-cleaned/ModalsDeprecated/ConfirmModal.js b/studio/components/to-be-cleaned/ModalsDeprecated/ConfirmModal.jsindex 20fffb585ef..e25a3d57690 100644--- a/studio/components/to-be-cleaned/ModalsDeprecated/ConfirmModal.js+++ b/studio/components/to-be-cleaned/ModalsDeprecated/ConfirmModal.js@@ -1,6 +1,6 @@-import { useState } from 'react'-import { render, unmountComponentAtNode } from 'react-dom'+import React, { useState } from 'react'import { Button, Modal } from 'ui'+import { render, unmountComponentAtNode } from 'react-dom'function ConfirmModal({title,@@ -59,7 +59,7 @@ function ConfirmModal({>{description && (<Modal.Content>- <p className="py-4 text-sm text-foreground-light">{description}</p>+ <p className="py-4 text-sm text-scale-1100">{description}</p></Modal.Content>)}</Modal>diff --git a/studio/components/to-be-cleaned/ProductEmptyState.tsx b/studio/components/to-be-cleaned/ProductEmptyState.tsxindex 412a5243f73..ab85f4820cb 100644--- a/studio/components/to-be-cleaned/ProductEmptyState.tsx+++ b/studio/components/to-be-cleaned/ProductEmptyState.tsx@@ -60,7 +60,7 @@ const ProductEmptyState = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">{disabledMessage}</span>+ <span className="text-xs text-scale-1200">{disabledMessage}</span></div></Tooltip.Content></Tooltip.Portal>diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsxindex 4cb6b132812..595d5a1a885 100644--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerColumn.tsx@@ -1,22 +1,22 @@-import { Transition } from '@headlessui/react'+import { useState, useRef, useEffect } from 'react'import { get, noop, sum } from 'lodash'-import { useEffect, useRef, useState } from 'react'-import { useContextMenu } from 'react-contexify'import { Checkbox, IconUpload } from 'ui'+import { Transition } from '@headlessui/react'+import { useContextMenu } from 'react-contexify'import InfiniteList from 'components/ui/InfiniteList'import ShimmeringLoader from 'components/ui/ShimmeringLoader'-import { BASE_PATH } from 'lib/constants'-import { formatBytes } from 'lib/helpers'-import { useStorageExplorerStateSnapshot } from 'state/storage-explorer'+import FileExplorerRow from './FileExplorerRow'import {- CONTEXT_MENU_KEYS,- STORAGE_ROW_STATUS,- STORAGE_ROW_TYPES,STORAGE_VIEWS,+ STORAGE_ROW_TYPES,+ STORAGE_ROW_STATUS,+ CONTEXT_MENU_KEYS,} from '../Storage.constants'+import { formatBytes } from 'lib/helpers'+import { BASE_PATH } from 'lib/constants'import { StorageColumn } from '../Storage.types'-import FileExplorerRow from './FileExplorerRow'+import { useStorageExplorerStateSnapshot } from 'state/storage-explorer'const DragOverOverlay = ({ isOpen, onDragLeave, onDrop, folderIsEmpty }: any) => {return (@@ -176,10 +176,10 @@ const FileExplorerColumn = ({{columnFiles.length > 0 ? (<><SelectAllCheckbox />- <p className="text-sm text-foreground-light">Select all {columnFiles.length} files</p>+ <p className="text-sm text-scale-1100">Select all {columnFiles.length} files</p></>) : (- <p className="text-sm text-foreground-light">No files available for selection</p>+ <p className="text-sm text-scale-1100">No files available for selection</p>)}</div>)}@@ -246,7 +246,7 @@ const FileExplorerColumn = ({className="opacity-75 pointer-events-none"/><p className="my-3 opacity-75">Drop your files here</p>- <p className="w-40 text-center text-sm text-foreground-light">+ <p className="w-40 text-center text-sm text-scale-1100">Or upload them via the "Upload file" button above</p></div>@@ -257,7 +257,7 @@ const FileExplorerColumn = ({isEmpty &&column.status !== STORAGE_ROW_STATUS.LOADING && (<div className="h-full w-full flex flex-col items-center justify-center">- <p className="text-sm my-3 text-foreground">No results found in this folder</p>+ <p className="text-sm my-3 text-scale-1200">No results found in this folder</p><p className="w-40 text-center text-sm text-light">Your search for "{itemSearchString}" did not return any results</p>diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.tsxindex 03e64342229..8877d3efa13 100644--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.tsx+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeader.tsx@@ -4,11 +4,7 @@ import { compact, debounce, isEqual, noop } from 'lodash'import { useCallback, useEffect, useRef, useState } from 'react'import {Button,- DropdownMenuContent_Shadcn_,- DropdownMenuRadioGroup_Shadcn_,- DropdownMenuRadioItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,IconChevronLeft,IconChevronRight,IconChevronsDown,@@ -27,8 +23,8 @@ import {import { useCheckPermissions } from 'hooks'import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore'-import { useStorageExplorerStateSnapshot } from 'state/storage-explorer'import { STORAGE_SORT_BY, STORAGE_SORT_BY_ORDER, STORAGE_VIEWS } from '../Storage.constants'+import { useStorageExplorerStateSnapshot } from 'state/storage-explorer'const HeaderPathEdit = ({ loading, isSearching, breadcrumbs, togglePathEdit }: any) => {return (@@ -329,104 +325,78 @@ const FileExplorerHeader = ({>Reload</Button>- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- asChild- icon={- view === 'LIST' ? (- <IconList size={16} strokeWidth={2} />- ) : (- <IconColumns size={16} strokeWidth={2} />- )- }- type="text"- disabled={breadcrumbs.length === 0}- onChange={setView}- >- <span>View as</span>- </Button>- </DropdownMenuTrigger_Shadcn_>-- <DropdownMenuContent_Shadcn_>- <DropdownMenuRadioGroup_Shadcn_- key="viewOptions"- value={view}- onValueChange={setView}- >- <DropdownMenuRadioItem_Shadcn_ value={STORAGE_VIEWS.COLUMNS}>- Columns- </DropdownMenuRadioItem_Shadcn_>- <DropdownMenuRadioItem_Shadcn_ value={STORAGE_VIEWS.LIST}>- List- </DropdownMenuRadioItem_Shadcn_>- </DropdownMenuRadioGroup_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- asChild- icon={<IconChevronsDown size={16} strokeWidth={2} />}- type="text"- disabled={breadcrumbs.length === 0}- >- <span>Sort by</span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_>- <DropdownMenuRadioGroup_Shadcn_- key="sortOptions"- value={sortBy}- onValueChange={setSortBy}- >- <DropdownMenuRadioItem_Shadcn_ value={STORAGE_SORT_BY.NAME}>- Name- </DropdownMenuRadioItem_Shadcn_>- <DropdownMenuRadioItem_Shadcn_ value={STORAGE_SORT_BY.CREATED_AT}>- Time created- </DropdownMenuRadioItem_Shadcn_>- <DropdownMenuRadioItem_Shadcn_ value={STORAGE_SORT_BY.UPDATED_AT}>- Time modified- </DropdownMenuRadioItem_Shadcn_>- <DropdownMenuRadioItem_Shadcn_ value={STORAGE_SORT_BY.LAST_ACCESSED_AT}>+ <Dropdown+ overlay={[+ <Dropdown.RadioGroup key="viewOptions" value={view} onChange={setView}>+ <Dropdown.Radio value={STORAGE_VIEWS.COLUMNS}>Columns</Dropdown.Radio>+ <Dropdown.Radio value={STORAGE_VIEWS.LIST}>List</Dropdown.Radio>+ </Dropdown.RadioGroup>,+ ]}+ >+ <Button+ asChild+ icon={+ view === 'LIST' ? (+ <IconList size={16} strokeWidth={2} />+ ) : (+ <IconColumns size={16} strokeWidth={2} />+ )+ }+ type="text"+ disabled={breadcrumbs.length === 0}+ onChange={setView}+ >+ <span>View as</span>+ </Button>+ </Dropdown>+ <Dropdown+ overlay={[+ <Dropdown.RadioGroup key="sortOptions" value={sortBy} onChange={setSortBy}>+ <Dropdown.Radio value={STORAGE_SORT_BY.NAME}>Name</Dropdown.Radio>+ <Dropdown.Radio value={STORAGE_SORT_BY.CREATED_AT}>Time created</Dropdown.Radio>+ <Dropdown.Radio value={STORAGE_SORT_BY.UPDATED_AT}>Time modified</Dropdown.Radio>+ <Dropdown.Radio value={STORAGE_SORT_BY.LAST_ACCESSED_AT}>Time last accessed- </DropdownMenuRadioItem_Shadcn_>- </DropdownMenuRadioGroup_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- asChild- icon={- sortByOrder === STORAGE_SORT_BY_ORDER.DESC ? (- <IconChevronsDown size={16} strokeWidth={2} />- ) : (- <IconChevronsUp size={16} strokeWidth={2} />- )- }- type="text"- disabled={breadcrumbs.length === 0}- >- <span>Sort Order</span>- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_>- <DropdownMenuRadioGroup_Shadcn_+ </Dropdown.Radio>+ </Dropdown.RadioGroup>,+ ]}+ >+ <Button+ asChild+ icon={<IconChevronsDown size={16} strokeWidth={2} />}+ type="text"+ disabled={breadcrumbs.length === 0}+ >+ <span>Sort by</span>+ </Button>+ </Dropdown>+ <Dropdown+ overlay={[+ <Dropdown.RadioGroupkey="sortOrderOptions"value={sortByOrder}- onValueChange={setSortByOrder}+ onChange={setSortByOrder}>- <DropdownMenuRadioItem_Shadcn_ value={STORAGE_SORT_BY_ORDER.ASC}>- Ascending- </DropdownMenuRadioItem_Shadcn_>- <DropdownMenuRadioItem_Shadcn_ value={STORAGE_SORT_BY_ORDER.DESC}>- Descending- </DropdownMenuRadioItem_Shadcn_>- </DropdownMenuRadioGroup_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown.Radio value={STORAGE_SORT_BY_ORDER.ASC}>Ascending</Dropdown.Radio>+ <Dropdown.Radio value={STORAGE_SORT_BY_ORDER.DESC}>Descending</Dropdown.Radio>+ </Dropdown.RadioGroup>,+ ]}+ >+ <Button+ asChild+ icon={+ sortByOrder === STORAGE_SORT_BY_ORDER.DESC ? (+ <IconChevronsDown size={16} strokeWidth={2} />+ ) : (+ <IconChevronsUp size={16} strokeWidth={2} />+ )+ }+ type="text"+ disabled={breadcrumbs.length === 0}+ >+ <span>Sort Order</span>+ </Button>+ </Dropdown></div><div className="h-6 border-r border-panel-border-light dark:border-panel-border-dark" /><div className="flex items-center space-x-1">@@ -455,7 +425,7 @@ const FileExplorerHeader = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to upload files</span></div>@@ -484,7 +454,7 @@ const FileExplorerHeader = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to create folders</span></div>@@ -505,7 +475,7 @@ const FileExplorerHeader = ({actions={[<IconXkey="close"- className="mx-2 cursor-pointer text-foreground"+ className="mx-2 cursor-pointer text-scale-1200"size="tiny"strokeWidth={2}onClick={onCancelSearch}diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeaderSelection.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeaderSelection.tsxindex b4cc96f3393..fa14c67cd88 100644--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeaderSelection.tsx+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerHeaderSelection.tsx@@ -20,7 +20,7 @@ const FileExplorerHeaderSelection = () => {onClick={() => clearSelectedItems()}/><div className="ml-4 flex items-center space-x-3">- <p className="mb-0 text-sm text-foreground">+ <p className="mb-0 text-sm text-scale-1200"><span style={{ fontVariantNumeric: 'tabular-nums' }}>{selectedItems.length}</span> itemsselected</p>diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsxindex 42f15ffe916..50852d22bb5 100644--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRow.tsx@@ -1,44 +1,37 @@-import * as Tooltip from '@radix-ui/react-tooltip'-import { PermissionAction } from '@supabase/shared-types/out/constants'import { find, isEmpty, isEqual } from 'lodash'-import { useContextMenu } from 'react-contexify'-import SVG from 'react-inlinesvg'import {Checkbox,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuPortal_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuSubContent_Shadcn_,- DropdownMenuSubTrigger_Shadcn_,- DropdownMenuSub_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,+ Dropdown,+ IconMoreVertical,+ IconLoader,+ IconImage,+ IconMusic,+ IconFilm,+ IconFile,IconAlertCircle,- IconClipboard,IconDownload,IconEdit,- IconFile,- IconFilm,- IconImage,- IconLoader,- IconMoreVertical,IconMove,- IconMusic,+ IconClipboard,IconTrash2,+ IconChevronRight,} from 'ui'+import SVG from 'react-inlinesvg'+import * as Tooltip from '@radix-ui/react-tooltip'+import { useContextMenu } from 'react-contexify'+import { PermissionAction } from '@supabase/shared-types/out/constants'import { useCheckPermissions } from 'hooks'-import { BASE_PATH } from 'lib/constants'-import { formatBytes } from 'lib/helpers'-import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore'import {- CONTEXT_MENU_KEYS,- STORAGE_ROW_STATUS,- STORAGE_ROW_TYPES,STORAGE_VIEWS,+ STORAGE_ROW_TYPES,+ STORAGE_ROW_STATUS,+ CONTEXT_MENU_KEYS,URL_EXPIRY_DURATION,} from '../Storage.constants'+import { formatBytes } from 'lib/helpers'+import { BASE_PATH } from 'lib/constants'+import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore'import FileExplorerRowEditing from './FileExplorerRowEditing'import { copyPathToFolder } from './StorageExplorer.utils'@@ -375,7 +368,7 @@ const FileExplorerRow = ({{item.isCorrupted && (<Tooltip.Root delayDuration={0}><Tooltip.Trigger>- <IconAlertCircle size={18} strokeWidth={2} className="text-foreground-light" />+ <IconAlertCircle size={18} strokeWidth={2} className="text-scale-1000" /></Tooltip.Trigger><Tooltip.Portal><Tooltip.Content side="bottom">@@ -386,7 +379,7 @@ const FileExplorerRow = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">File is corrupted, please delete and reupload again.</span></div>@@ -421,51 +414,61 @@ const FileExplorerRow = ({strokeWidth={2}/>) : (- <DropdownMenu_Shadcn_ modal={false}>- <DropdownMenuTrigger_Shadcn_>- <div className="storage-row-menu opacity-0">- <IconMoreVertical size={16} strokeWidth={2} />- </div>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="end">- {rowOptions.map((option) => {+ <Dropdown+ modal={false}+ side="bottom"+ align="end"+ overlay={[+ rowOptions.map((option) => {if ((option?.children ?? []).length > 0) {return (- <DropdownMenuSub_Shadcn_ key={option.name}>- <DropdownMenuSubTrigger_Shadcn_ className="space-x-2">- {option.icon || <></>}- <p className="text-xs">{option.name}</p>- </DropdownMenuSubTrigger_Shadcn_>- <DropdownMenuPortal_Shadcn_>- <DropdownMenuSubContent_Shadcn_>- {(option?.children ?? [])?.map((child) => {- return (- <DropdownMenuItem_Shadcn_ key={child.name} onClick={child.onClick}>- <p className="text-xs">{child.name}</p>- </DropdownMenuItem_Shadcn_>- )- })}- </DropdownMenuSubContent_Shadcn_>- </DropdownMenuPortal_Shadcn_>- </DropdownMenuSub_Shadcn_>+ <Dropdown+ isNested+ key={option.name}+ side="right"+ align="start"+ overlay={(option?.children ?? [])?.map((child) => {+ return (+ <Dropdown.Item key={child.name} onClick={child.onClick}>+ <p className="text-xs">{child.name}</p>+ </Dropdown.Item>+ )+ })}+ >+ <div+ className={[+ 'flex items-center justify-between px-4 py-1.5 text-xs text-scale-1100',+ 'w-full focus:bg-scale-300 dark:focus:bg-scale-500 focus:text-scale-1200',+ ].join(' ')}+ >+ <div className="flex items-center space-x-2">+ {option.icon}+ <p className="text">{option.name}</p>+ </div>+ <IconChevronRight size="tiny" />+ </div>+ </Dropdown>)} else if (option.name === 'Separator') {- return <DropdownMenuSeparator_Shadcn_ key={option.name} />+ return <Dropdown.Separator key="row-separator" />} else {return (- <DropdownMenuItem_Shadcn_- className="space-x-2"+ <Dropdown.Itemkey={option.name}+ icon={option.icon || <></>}onClick={option.onClick}>- {option.icon || <></>}<p className="text-xs">{option.name}</p>- </DropdownMenuItem_Shadcn_>+ </Dropdown.Item>)}- })}- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ }),+ ]}+ >+ <div className="storage-row-menu opacity-0">+ <IconMoreVertical size={16} strokeWidth={2} />+ </div>+ </Dropdown>)}</div></div>diff --git a/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx b/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsxindex da14b4547d3..af6d50ac595 100644--- a/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx+++ b/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx@@ -1,28 +1,25 @@-import { Transition } from '@headlessui/react'-import * as Tooltip from '@radix-ui/react-tooltip'-import { PermissionAction } from '@supabase/shared-types/out/constants'-import { BASE_PATH } from 'lib/constants'-import { formatBytes } from 'lib/helpers'import { isEmpty } from 'lodash'-import SVG from 'react-inlinesvg'import {Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconAlertCircle,- IconChevronDown,+ Dropdown,+ IconX,+ IconLoader,IconClipboard,IconDownload,- IconLoader,IconTrash2,- IconX,+ IconAlertCircle,+ IconChevronDown,} from 'ui'+import SVG from 'react-inlinesvg'+import { formatBytes } from 'lib/helpers'+import { BASE_PATH } from 'lib/constants'+import { Transition } from '@headlessui/react'+import * as Tooltip from '@radix-ui/react-tooltip'+import { PermissionAction } from '@supabase/shared-types/out/constants'import { useCheckPermissions } from 'hooks'-import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore'import { URL_EXPIRY_DURATION } from '../Storage.constants'+import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore'const PreviewFile = ({ mimeType, previewUrl }: { mimeType: string; previewUrl: string }) => {if (!mimeType || !previewUrl) {@@ -37,7 +34,7 @@ const PreviewFile = ({ mimeType, previewUrl }: { mimeType: string; previewUrl: s}if (previewUrl === 'loading') {return (- <div className="flex h-full w-full items-center justify-center text-foreground-lighter">+ <div className="flex h-full w-full items-center justify-center text-scale-900"><IconLoader size={14} strokeWidth={2} className="animate-spin" /></div>)@@ -70,7 +67,7 @@ const PreviewFile = ({ mimeType, previewUrl }: { mimeType: string; previewUrl: s<div className="flex h-full w-full items-center justify-center px-10"><audio key={previewUrl} controls style={{ width: 'inherit' }}><source src={previewUrl} type="audio/mpeg" />- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Your browser does not support the audio element.</p></audio>@@ -82,9 +79,7 @@ const PreviewFile = ({ mimeType, previewUrl }: { mimeType: string; previewUrl: s<div className="flex h-full w-full items-center justify-center"><video key={previewUrl} controls style={{ maxHeight: '100%' }}><source src={previewUrl} type="video/mp4" />- <p className="text-sm text-foreground-light">- Your browser does not support the video tag.- </p>+ <p className="text-sm text-scale-1100">Your browser does not support the video tag.</p></video></div>)@@ -141,7 +136,7 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {style={{ width }}>{/* Preview Header */}- <div className="flex w-full justify-end text-foreground-lighter transition-colors hover:text-foreground">+ <div className="flex w-full justify-end text-scale-900 transition-colors hover:text-scale-1200"><IconXclassName="cursor-pointer"size={14}@@ -160,17 +155,17 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {<div className="w-full space-y-6">{/* Preview Information */}<div className="space-y-1">- <h5 className="break-words text-base text-foreground">{file.name}</h5>+ <h5 className="break-words text-base text-scale-1200">{file.name}</h5>{file.isCorrupted && (<div className="flex items-center space-x-2">- <IconAlertCircle size={14} strokeWidth={2} className="text-foreground-light" />- <p className="text-sm text-foreground-light">+ <IconAlertCircle size={14} strokeWidth={2} className="text-scale-1100" />+ <p className="text-sm text-scale-1100">File is corrupted, please delete and reupload this file again</p></div>)}{mimeType && (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">{mimeType}{size && <span> - {size}</span>}</p>@@ -180,12 +175,12 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {{/* Preview Metadata */}<div className="space-y-2"><div>- <label className="mb-1 text-xs text-foreground-lighter">Added on</label>- <p className="text-sm text-foreground-light">{createdAt}</p>+ <label className="mb-1 text-xs text-scale-900">Added on</label>+ <p className="text-sm text-scale-1100">{createdAt}</p></div><div>- <label className="mb-1 text-xs text-foreground-lighter">Last modified</label>- <p className="text-sm text-foreground-light">{updatedAt}</p>+ <label className="mb-1 text-xs text-scale-900">Last modified</label>+ <p className="text-sm text-scale-1100">{updatedAt}</p></div></div>@@ -209,19 +204,11 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {Get URL</Button>) : (- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- type="outline"- icon={<IconClipboard size={16} strokeWidth={2} />}- iconRight={<IconChevronDown />}- disabled={file.isCorrupted}- >- Get URL- </Button>- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="center">- <DropdownMenuItem_Shadcn_+ <Dropdown+ side="bottom"+ align="center"+ overlay={[+ <Dropdown.Itemkey="expires-one-week"className="text-xs"onClick={async () =>@@ -229,8 +216,8 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {}>Expire in 1 week- </DropdownMenuItem_Shadcn_>- <DropdownMenuItem_Shadcn_+ </Dropdown.Item>,+ <Dropdown.Itemkey="expires-one-month"className="text-xs"onClick={async () =>@@ -238,8 +225,8 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {}>Expire in 1 month- </DropdownMenuItem_Shadcn_>- <DropdownMenuItem_Shadcn_+ </Dropdown.Item>,+ <Dropdown.Itemkey="expires-one-year"className="text-xs"onClick={async () =>@@ -247,16 +234,25 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {}>Expire in 1 year- </DropdownMenuItem_Shadcn_>- <DropdownMenuItem_Shadcn_+ </Dropdown.Item>,+ <Dropdown.Itemkey="custom-expiry"className="text-xs"onClick={() => setSelectedFileCustomExpiry(file)}>Custom expiry- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ </Dropdown.Item>,+ ]}+ >+ <Button+ type="outline"+ icon={<IconClipboard size={16} strokeWidth={2} />}+ iconRight={<IconChevronDown />}+ disabled={file.isCorrupted}+ >+ Get URL+ </Button>+ </Dropdown>)}</div><Tooltip.Root delayDuration={0}>@@ -281,7 +277,7 @@ const PreviewPane = ({ onCopyUrl }: PreviewPaneProps) => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">You need additional permissions to delete this file</span></div>diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.jsindex ee649b27dc1..f47e0ed45ad 100644--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.js+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePolicies.js@@ -1,19 +1,19 @@-import { filter, find, get, isEmpty } from 'lodash'-import { observer } from 'mobx-react-lite'import { useEffect, useState } from 'react'+import { observer } from 'mobx-react-lite'import { IconLoader } from 'ui'+import { find, get, isEmpty, filter } from 'lodash'-import ConfirmModal from 'components/ui/Dialogs/ConfirmDialog'import { useStore } from 'hooks'-import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore'import { formatPoliciesForStorage } from '../Storage.utils'+import StoragePoliciesPlaceholder from './StoragePoliciesPlaceholder'import StoragePoliciesBucketRow from './StoragePoliciesBucketRow'import StoragePoliciesEditPolicyModal from './StoragePoliciesEditPolicyModal'-import StoragePoliciesPlaceholder from './StoragePoliciesPlaceholder'+import ConfirmModal from 'components/ui/Dialogs/ConfirmDialog'+import { useStorageStore } from 'localStores/storageExplorer/StorageExplorerStore'-import { useParams } from 'common'import { PolicyEditorModal } from 'components/interfaces/Auth/Policies'import { useBucketsQuery } from 'data/storage/buckets-query'+import { useParams } from 'common'const StoragePolicies = () => {const { ui, meta } = useStore()@@ -151,7 +151,7 @@ const StoragePolicies = () => {return (<div className="flex min-h-full w-full flex-col"><h3 className="text-xl">Storage policies</h3>- <p className="mt-2 text-sm text-foreground-light">+ <p className="mt-2 text-sm text-scale-1100">Safeguard your files with policies that define the operations allowed for your users at thebucket level.</p>@@ -186,7 +186,7 @@ const StoragePolicies = () => {})}<div className="!mb-4 w-full border-b border-gray-600" />- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">You may also write policies for the tables under the storage schema directly for greatercontrol</p>diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.jsindex 5aac3531093..24cc64e8ff8 100644--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesBucketRow.js@@ -1,18 +1,6 @@-import Panel from 'components/ui/Panel'+import { Badge, Button, IconArchive, Dropdown, IconEdit, IconTrash, IconMoreVertical } from 'ui'import { isEmpty } from 'lodash'-import {- Badge,- Button,- DropdownMenuContent_Shadcn_,- DropdownMenuItem_Shadcn_,- DropdownMenuSeparator_Shadcn_,- DropdownMenuTrigger_Shadcn_,- DropdownMenu_Shadcn_,- IconArchive,- IconEdit,- IconMoreVertical,- IconTrash,-} from 'ui'+import Panel from 'components/ui/Panel'const PolicyRow = ({policy,@@ -26,39 +14,42 @@ const PolicyRow = ({<div className="group"><Panel.Content className="flex justify-between gap-2 border-b border-panel-border-light py-4 dark:border-panel-border-dark"><div className="flex flex-col gap-3 lg:flex-row lg:items-center">- <div className="font-mono text-xs text-foreground-lighter">{command}</div>+ <div className="font-mono text-xs text-scale-900">{command}</div><div className="flex flex-col gap-2 lg:flex-row">- <span className="truncate text-sm text-foreground">{name}</span>+ <span className="truncate text-sm text-scale-1200">{name}</span></div></div>- <DropdownMenu_Shadcn_>- <DropdownMenuTrigger_Shadcn_>- <Button- type="default"- style={{ paddingLeft: 4, paddingRight: 4 }}- icon={<IconMoreVertical />}- />- </DropdownMenuTrigger_Shadcn_>- <DropdownMenuContent_Shadcn_ side="bottom" align="end" size="small">- <DropdownMenuItem_Shadcn_- className="space-x-2"- type="outline"- onClick={() => onSelectPolicyEdit(policy, bucketName, table)}- >- <IconEdit size={14} />- <p className="text">Edit</p>- </DropdownMenuItem_Shadcn_>- <DropdownMenuSeparator_Shadcn_ />- <DropdownMenuItem_Shadcn_- type="outline"- className="space-x-2"- onClick={() => onSelectPolicyDelete(policy)}- >- <IconTrash size={14} />- <p className="text">Delete</p>- </DropdownMenuItem_Shadcn_>- </DropdownMenuContent_Shadcn_>- </DropdownMenu_Shadcn_>+ <Dropdown+ side="bottom"+ align="end"+ size="small"+ overlay={+ <>+ <Dropdown.Item+ icon={<IconEdit size={14} />}+ type="outline"+ className="mx-2"+ onClick={() => onSelectPolicyEdit(policy, bucketName, table)}+ >+ Edit+ </Dropdown.Item>+ <Dropdown.Separator />+ <Dropdown.Item+ icon={<IconTrash size={14} />}+ type="outline"+ onClick={() => onSelectPolicyDelete(policy)}+ >+ Delete+ </Dropdown.Item>+ </>+ }+ >+ <Button+ type="default"+ style={{ paddingLeft: 4, paddingRight: 4 }}+ icon={<IconMoreVertical />}+ />+ </Dropdown></Panel.Content></div>)@@ -88,7 +79,7 @@ const StoragePoliciesBucketRow = ({title={[<div key={label} className="flex w-full items-center justify-between"><div className="flex items-center space-x-4">- <IconArchive className="text-foreground-light" size="small" />+ <IconArchive className="text-scale-1000" size="small" /><h4 className="m-0 text-lg"><span>{label}</span></h4>@@ -102,7 +93,7 @@ const StoragePoliciesBucketRow = ({>{policies.length === 0 ? (<div className="p-4 px-6">- <p className="text-sm text-foreground-lighter">No policies created yet</p>+ <p className="text-sm text-scale-900">No policies created yet</p></div>) : (<div className="grid grid-cols-1 divide-y dark:divide-dark">@@ -118,7 +109,7 @@ const StoragePoliciesBucketRow = ({))}{policies.length !== 0 ? (<div className="px-6 py-2">- <p className="text-sm text-foreground-light">{getFooterLabel()}</p>+ <p className="text-sm text-scale-1100">{getFooterLabel()}</p></div>) : null}</div>diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditPolicyModal.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditPolicyModal.jsindex 0d0925f2b4f..ebcfe0bef98 100644--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditPolicyModal.js+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditPolicyModal.js@@ -1,14 +1,14 @@+import { Modal, IconChevronLeft } from 'ui'import { pull } from 'lodash'-import { useEffect, useState } from 'react'-import { IconChevronLeft, Modal } from 'ui'+import { useState, useEffect } from 'react'import { useStore } from 'hooks'+import { STORAGE_POLICY_TEMPLATES } from './StoragePolicies.constants'import {- applyBucketIdToTemplateDefinition,createPayloadsForAddPolicy,createSQLPolicies,+ applyBucketIdToTemplateDefinition,} from '../Storage.utils'-import { STORAGE_POLICY_TEMPLATES } from './StoragePolicies.constants'import {PolicySelection,@@ -181,7 +181,7 @@ const StoragePoliciesEditPolicyModal = ({<div className="flex items-center space-x-3"><spanonClick={onSelectBackFromTemplates}- className="cursor-pointer text-foreground-lighter transition-colors hover:text-foreground"+ className="cursor-pointer text-scale-900 transition-colors hover:text-scale-1200"><IconChevronLeft strokeWidth={2} size={14} /></span>diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.jsindex 11af6aaf5c3..f9c6adf292f 100644--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesEditor.js@@ -1,18 +1,19 @@-import { Badge, Button, Checkbox, Modal } from 'ui'+import { Badge, Button, Checkbox, Input, Modal } from 'ui'+import { get } from 'lodash'-import { PolicyName, PolicyRoles } from 'components/interfaces/Auth/Policies/PolicyEditor'-import SqlEditor from 'components/ui/SqlEditor'import { STORAGE_CLIENT_LIBRARY_MAPPINGS } from '../Storage.constants'import { deriveAllowedClientLibraryMethods } from '../Storage.utils'+import SqlEditor from 'components/ui/SqlEditor'+import { PolicyName, PolicyRoles } from 'components/interfaces/Auth/Policies/PolicyEditor'const PolicyDefinition = ({ definition = '', onUpdatePolicyDefinition = () => {} }) => {return (<div className="flex space-x-12"><div className="flex w-1/3 flex-col space-y-2">- <label className="text-base text-foreground-light" htmlFor="policy-name">+ <label className="text-base text-scale-1100" htmlFor="policy-name">Policy definition</label>- <p className="text-sm text-foreground-lighter">+ <p className="text-sm text-scale-900">Provide a SQL conditional expression that returns a boolean.</p></div>@@ -28,10 +29,10 @@ const PolicyAllowedOperations = ({ allowedOperations = [], onToggleOperation = (return (<div className="flex justify-between space-x-12"><div className="flex w-1/3 flex-col space-y-2">- <label className="text-base text-foreground-light" htmlFor="allowed-operation">+ <label className="text-base text-scale-1100" htmlFor="allowed-operation">Allowed operation</label>- <p className="text-sm text-foreground-lighter">+ <p className="text-sm text-scale-900">Based on the operations you have selected, you can use the highlighted functions in the{' '}<ahref="https://supabase.com/docs/reference/javascript/storage-from-list"diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesPlaceholder.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesPlaceholder.jsindex 60d4be88dc1..8e6e4abb30d 100644--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesPlaceholder.js+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesPlaceholder.js@@ -1,5 +1,5 @@-import Panel from 'components/ui/Panel'import { IconArchive } from 'ui'+import Panel from 'components/ui/Panel'const StoragePoliciesPlaceholder = ({ guiHeight }) => (<Panel@@ -13,9 +13,7 @@ const StoragePoliciesPlaceholder = ({ guiHeight }) => (]}><div className="p-4 px-6">- <p className="text-sm text-foreground-light">- Create a bucket first to start writing policies!- </p>+ <p className="text-sm text-scale-1100">Create a bucket first to start writing policies!</p></div></Panel>)diff --git a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesReview.js b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesReview.jsindex 23669b55339..e4f5ebadacf 100644--- a/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesReview.js+++ b/studio/components/to-be-cleaned/Storage/StoragePolicies/StoragePoliciesReview.js@@ -1,6 +1,6 @@-import SqlEditor from 'components/ui/SqlEditor'-import { useState } from 'react'import { Button, Modal } from 'ui'+import { useState } from 'react'+import SqlEditor from 'components/ui/SqlEditor'const ReviewEmptyState = () => {return (@@ -27,7 +27,7 @@ const StoragePoliciesReview = ({<div className="space-y-6 py-8"><div className="flex items-center justify-between space-y-8 space-x-4"><div className="flex flex-col">- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">These are the SQL statements that will be used to create your policies. The suffixappended to the end of your policy name (<code>[hashString]_[number]</code>) justfunctions as a unique identifier for each of your policies.diff --git a/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx b/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsxindex 1ace3909581..b0a07b8cac7 100644--- a/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx+++ b/studio/components/to-be-cleaned/Storage/StorageSettings/StorageSettings.tsx@@ -2,14 +2,14 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import { useState } from 'react'import { Button, Form, IconClock, Input, Listbox } from 'ui'-import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import UpgradeToPro from 'components/ui/UpgradeToPro'import { useProjectStorageConfigQuery } from 'data/config/project-storage-config-query'import { useProjectStorageConfigUpdateUpdateMutation } from 'data/config/project-storage-config-update-mutation'import { useCheckPermissions, useStore } from 'hooks'import { IS_PLATFORM } from 'lib/constants'-import { StorageSizeUnits, STORAGE_FILE_SIZE_LIMIT_MAX_BYTES } from './StorageSettings.constants'+import { STORAGE_FILE_SIZE_LIMIT_MAX_BYTES, StorageSizeUnits } from './StorageSettings.constants'import { convertFromBytes, convertToBytes } from './StorageSettings.utils'+import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'export type StorageSettingsProps = {projectRef: string | undefined@@ -108,8 +108,8 @@ const StorageConfig = ({ config, projectRef }: any) => {return (<><div className="mb-6">- <h3 className="mb-2 text-xl text-foreground">Storage Settings</h3>- <div className="text-sm text-foreground-lighter">+ <h3 className="mb-2 text-xl text-scale-1200">Storage Settings</h3>+ <div className="text-sm text-scale-900">Configure your project's storage settings</div></div>@@ -161,7 +161,7 @@ const StorageConfig = ({ config, projectRef }: any) => {</Listbox></div></div>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">{selectedUnit !== StorageSizeUnits.BYTES &&`Equivalent to ${convertToBytes(values.fileSizeLimit,@@ -187,7 +187,7 @@ const StorageConfig = ({ config, projectRef }: any) => {<div className="flex justify-between px-8 py-4"><div className="flex items-center justify-between w-full gap-2">{!canUpdateStorageSettings ? (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">You need additional permissions to update storage settings</p>) : (diff --git a/studio/components/to-be-cleaned/forms/SchemaFormPanel.js b/studio/components/to-be-cleaned/forms/SchemaFormPanel.jsindex bf405416218..b903d2abf63 100644--- a/studio/components/to-be-cleaned/forms/SchemaFormPanel.js+++ b/studio/components/to-be-cleaned/forms/SchemaFormPanel.js@@ -1,4 +1,4 @@-import { useState } from 'react'+import React, { useState } from 'react'import { Button } from 'ui'import SchemaForm from './SchemaForm'@@ -53,7 +53,7 @@ export default function SchemaFormPanel({<h6>{title || ''}</h6></div>{disabled && disabledMessage ? (- <p className="text-sm text-foreground-light">{disabledMessage}</p>+ <p className="text-sm text-scale-1000">{disabledMessage}</p>) : (<divclassName={`flex transition duration-150 ${@@ -74,7 +74,7 @@ export default function SchemaFormPanel({</Button></div>)}- <span className="text-sm text-foreground-lighter">{message}</span>+ <span className="text-sm text-scale-900">{message}</span></div><div className="Form section-block--body px-6 py-3">diff --git a/studio/components/to-be-cleaned/forms/SecretField.tsx b/studio/components/to-be-cleaned/forms/SecretField.tsxindex cc5e5f3dfdd..78d1cd28cf4 100644--- a/studio/components/to-be-cleaned/forms/SecretField.tsx+++ b/studio/components/to-be-cleaned/forms/SecretField.tsx@@ -37,9 +37,9 @@ const SecretField: React.FC = (props: any) => {/><div className="px-2" onClick={onToggleVisible}>{visible ? (- <IconEye className="text-foreground-lighter" />+ <IconEye className="text-scale-900" />) : (- <IconEyeOff className="text-foreground-lighter" />+ <IconEyeOff className="text-scale-900" />)}</div></div>diff --git a/studio/components/ui/CardButton.tsx b/studio/components/ui/CardButton.tsxindex a87949b4765..519e7076ab9 100644--- a/studio/components/ui/CardButton.tsx+++ b/studio/components/ui/CardButton.tsx@@ -83,10 +83,10 @@ const CardButton = ({)}{icon && <ImageContainer>{icon}</ImageContainer>}<div className="flex h-full w-full flex-col space-y-2">- {typeof title === 'string' ? <h5 className="text-foreground">{title}</h5> : title}+ {typeof title === 'string' ? <h5 className="text-scale-1200">{title}</h5> : title}{(children || description) && (<div className="flex w-full flex-1 flex-col">- <p className="text-sm text-foreground-light">{description}</p>+ <p className="text-sm text-scale-1100">{description}</p><div className="w-full">{children && children}</div></div>)}@@ -98,11 +98,11 @@ const CardButton = ({absoluteright-4top-4- text-foreground-lighter+ text-scale-900transition-allduration-200group-hover:right-3- group-hover:text-foreground+ group-hover:text-scale-1200">{loading ? <IconLoader className="animate-spin" /> : <IconChevronRight />}diff --git a/studio/components/ui/Charts/AreaChart.stories.tsx b/studio/components/ui/Charts/AreaChart.stories.tsxindex 77a3b92db6c..d7797fa7410 100644--- a/studio/components/ui/Charts/AreaChart.stories.tsx+++ b/studio/components/ui/Charts/AreaChart.stories.tsx@@ -1,7 +1,7 @@-import { ComponentMeta } from '@storybook/react'-import dayjs from 'dayjs'import React from 'react'+import { ComponentMeta } from '@storybook/react'import Chart, { AreaChartProps } from './AreaChart'+import dayjs from 'dayjs'export default {title: 'Charts',@@ -12,7 +12,7 @@ const DATA = [290, 430, 649, 422, 321, 893, 111].map((value, index) => ({timestamp: dayjs().subtract(index, 'day').toISOString(),}))-const PROPS: AreaChartProps<(typeof DATA)[number]> = {+const PROPS: AreaChartProps<typeof DATA[number]> = {title: 'Memory usage',xAxisKey: 'timestamp',yAxisKey: 'ram_usage',@@ -51,5 +51,5 @@ export const AreaChart = () => ()const ExampleName: React.FC = ({ children }) => (- <h1 className="font-bold text-foreground-light">{children}</h1>+ <h1 className="font-bold text-scale-1100">{children}</h1>)diff --git a/studio/components/ui/Charts/AreaChart.tsx b/studio/components/ui/Charts/AreaChart.tsxindex fd900a32d20..0c1b4277390 100644--- a/studio/components/ui/Charts/AreaChart.tsx+++ b/studio/components/ui/Charts/AreaChart.tsx@@ -1,12 +1,19 @@-import { CHART_COLORS, DateTimeFormats } from 'components/ui/Charts/Charts.constants'-import dayjs from 'dayjs'-import utc from 'dayjs/plugin/utc'import { useState } from 'react'-import { Area, AreaChart as RechartAreaChart, Tooltip, XAxis } from 'recharts'+import {+ AreaChart as RechartAreaChart,+ Area,+ XAxis,+ YAxis,+ Tooltip,+ ResponsiveContainer,+} from 'recharts'+import dayjs from 'dayjs'+import { CHART_COLORS, DateTimeFormats } from 'components/ui/Charts/Charts.constants'import ChartHeader from './ChartHeader'-import { CommonChartProps, Datum } from './Charts.types'-import { numberFormatter, useChartSize } from './Charts.utils'+import { Datum, CommonChartProps } from './Charts.types'+import utc from 'dayjs/plugin/utc'import ChartNoData from './NoDataPlaceholder'+import { numberFormatter, useChartSize } from './Charts.utils'dayjs.extend(utc)export interface AreaChartProps<D = Datum> extends CommonChartProps<D> {@@ -107,7 +114,7 @@ const AreaChart = ({</RechartAreaChart></Container>{data && (- <div className="text-foreground-lighter -mt-2 flex items-center justify-between text-xs">+ <div className="text-scale-900 -mt-2 flex items-center justify-between text-xs"><span>{dayjs(data[0][xAxisKey]).format(customDateFormat)}</span><span>{dayjs(data[data?.length - 1]?.[xAxisKey]).format(customDateFormat)}</span></div>diff --git a/studio/components/ui/Charts/BarChart.stories.tsx b/studio/components/ui/Charts/BarChart.stories.tsxindex 72894c415c9..53779c01763 100644--- a/studio/components/ui/Charts/BarChart.stories.tsx+++ b/studio/components/ui/Charts/BarChart.stories.tsx@@ -1,7 +1,7 @@-import { ComponentMeta } from '@storybook/react'-import dayjs from 'dayjs'import React from 'react'+import { ComponentMeta } from '@storybook/react'import Chart, { BarChartProps } from './BarChart'+import dayjs from 'dayjs'export default {title: 'Charts',@@ -12,7 +12,7 @@ const DATA = [290, 430, 649, 422, 321, 893, 111].map((value, index) => ({timestamp: dayjs().subtract(index, 'day').toISOString(),}))-const PROPS: BarChartProps<(typeof DATA)[number]> = {+const PROPS: BarChartProps<typeof DATA[number]> = {title: 'Memory usage',xAxisKey: 'timestamp',yAxisKey: 'ram_usage',@@ -52,5 +52,5 @@ export const BarChart = () => ()const ExampleName: React.FC = ({ children }) => (- <h1 className="font-bold text-foreground-light">{children}</h1>+ <h1 className="font-bold text-scale-1100">{children}</h1>)diff --git a/studio/components/ui/Charts/BarChart.tsx b/studio/components/ui/Charts/BarChart.tsxindex 77f08befb9a..938124bd744 100644--- a/studio/components/ui/Charts/BarChart.tsx+++ b/studio/components/ui/Charts/BarChart.tsx@@ -1,13 +1,13 @@-import { CHART_COLORS, DateTimeFormats } from 'components/ui/Charts/Charts.constants'-import dayjs from 'dayjs'-import utc from 'dayjs/plugin/utc'import { useState } from 'react'-import { Bar, BarChart as RechartBarChart, Cell, Tooltip, XAxis } from 'recharts'-import { CategoricalChartState } from 'recharts/types/chart/generateCategoricalChart'+import { BarChart as RechartBarChart, XAxis, Tooltip, Bar, Cell, BarProps } from 'recharts'+import dayjs from 'dayjs'+import { CHART_COLORS, DateTimeFormats } from 'components/ui/Charts/Charts.constants'import ChartHeader from './ChartHeader'-import { CommonChartProps, Datum } from './Charts.types'-import { numberFormatter, useChartSize } from './Charts.utils'+import { Datum, CommonChartProps } from './Charts.types'+import utc from 'dayjs/plugin/utc'import ChartNoData from './NoDataPlaceholder'+import { numberFormatter, useChartSize } from './Charts.utils'+import { CategoricalChartState } from 'recharts/types/chart/generateCategoricalChart'dayjs.extend(utc)export interface BarChartProps<D = Datum> extends CommonChartProps<D> {@@ -121,7 +121,7 @@ const BarChart = ({</RechartBarChart></Container>{data && (- <div className="text-foreground-lighter -mt-9 flex items-center justify-between text-xs">+ <div className="text-scale-900 -mt-9 flex items-center justify-between text-xs"><span>{day(data[0][xAxisKey]).format(customDateFormat)}</span><span>{day(data[data?.length - 1]?.[xAxisKey]).format(customDateFormat)}</span></div>diff --git a/studio/components/ui/Charts/ChartHeader.tsx b/studio/components/ui/Charts/ChartHeader.tsxindex e1e41ae5024..93ce980b751 100644--- a/studio/components/ui/Charts/ChartHeader.tsx+++ b/studio/components/ui/Charts/ChartHeader.tsx@@ -15,14 +15,12 @@ const ChartHeader: React.FC<ChartHeaderProps> = ({minimalHeader = false,}: ChartHeaderProps) => {const chartTitle = (- <h3 className={'text-foreground-lighter ' + (minimalHeader ? 'text-xs' : 'text-sm')}>- {title}- </h3>+ <h3 className={'text-scale-900 ' + (minimalHeader ? 'text-xs' : 'text-sm')}>{title}</h3>)const highlighted = (<h5- className={`text-foreground text-xl font-normal ${minimalHeader ? 'text-base' : 'text-2xl'}`}+ className={`text-scale-1200 text-xl font-normal ${minimalHeader ? 'text-base' : 'text-2xl'}`}>{highlightedValue !== undefined && String(highlightedValue)}<span className="text-lg">@@ -30,7 +28,7 @@ const ChartHeader: React.FC<ChartHeaderProps> = ({</span></h5>)- const label = <h5 className="text-foreground-lighter text-xs">{highlightedLabel}</h5>+ const label = <h5 className="text-scale-900 text-xs">{highlightedLabel}</h5>if (minimalHeader) {return (diff --git a/studio/components/ui/Charts/EmptyState.tsx b/studio/components/ui/Charts/EmptyState.tsxindex eceb65857c0..5673ba9a43d 100644--- a/studio/components/ui/Charts/EmptyState.tsx+++ b/studio/components/ui/Charts/EmptyState.tsx@@ -17,10 +17,10 @@ const EmptyState = ({border-dashed border-scale-600 py-4 text-center">- <IconBarChart2 className="text-foreground-light" />+ <IconBarChart2 className="text-scale-1100" /><div>- <p className="text-xs text-foreground-light">{title}</p>- <p className="text-xs text-foreground-light">{message}</p>+ <p className="text-xs text-scale-1100">{title}</p>+ <p className="text-xs text-scale-1000">{message}</p></div></div>)diff --git a/studio/components/ui/Charts/NoDataPlaceholder.tsx b/studio/components/ui/Charts/NoDataPlaceholder.tsxindex b9708e59e6a..54f36619dfe 100644--- a/studio/components/ui/Charts/NoDataPlaceholder.tsx+++ b/studio/components/ui/Charts/NoDataPlaceholder.tsx@@ -25,8 +25,8 @@ const NoDataPlaceholder: React.FC<Props> = ({><IconBarChart2 className="text-scale-800" /><div>- <p className="text-foreground-light text-xs">{title}</p>- {message && <p className="text-foreground-lighter text-xs">{message}</p>}+ <p className="text-scale-1100 text-xs">{title}</p>+ {message && <p className="text-scale-900 text-xs">{message}</p>}</div></div>)diff --git a/studio/components/ui/Charts/StackedBarChart.tsx b/studio/components/ui/Charts/StackedBarChart.tsxindex 582b27bb024..3dbf7e214e0 100644--- a/studio/components/ui/Charts/StackedBarChart.tsx+++ b/studio/components/ui/Charts/StackedBarChart.tsx@@ -1,15 +1,10 @@import { useState } from 'react'-import { Bar, BarChart, Cell, Legend, Tooltip, XAxis } from 'recharts'+import { BarChart, Bar, XAxis, Tooltip, Legend, Cell, TooltipProps } from 'recharts'import ChartHeader from './ChartHeader'-import {- CHART_COLORS,- DateTimeFormats,- DEFAULT_STACK_COLORS,- genStackColorScales,- ValidStackColor,-} from './Charts.constants'+import { CHART_COLORS, DateTimeFormats, DEFAULT_STACK_COLORS, genStackColorScales, ValidStackColor } from './Charts.constants'import { CommonChartProps } from './Charts.types'-import { precisionFormatter, timestampFormatter, useChartSize, useStacked } from './Charts.utils'+import { timestampFormatter, useChartSize, useStacked } from './Charts.utils'+import { precisionFormatter } from './Charts.utils'import NoDataPlaceholder from './NoDataPlaceholder'interface Props extends CommonChartProps<any> {xAxisKey: string@@ -39,7 +34,7 @@ const StackedBarChart: React.FC<Props> = ({displayDateInUtc,hideLegend = false,hideHeader = false,- stackColors = DEFAULT_STACK_COLORS,+ stackColors = DEFAULT_STACK_COLORS}) => {const { Container } = useChartSize(size)const { dataKeys, stackedData, percentagesStackedData } = useStacked({@@ -143,7 +138,7 @@ const StackedBarChart: React.FC<Props> = ({</BarChart></Container>{stackedData && stackedData[0] && (- <div className="text-foreground-lighter -mt-5 flex items-center justify-between text-xs">+ <div className="text-scale-900 -mt-5 flex items-center justify-between text-xs"><span>{timestampFormatter(stackedData[0][xAxisKey] as string,diff --git a/studio/components/ui/ClientLoadingError.tsx b/studio/components/ui/ClientLoadingError.tsxindex c0d6e345112..3a7b7b93ebf 100644--- a/studio/components/ui/ClientLoadingError.tsx+++ b/studio/components/ui/ClientLoadingError.tsx@@ -13,10 +13,10 @@ const ClientLoadingError = ({return (<div className="px-6 py-4 bg-scale-400 border border-scale-600 rounded flex justify-between items-center"><div className="flex space-x-4">- <IconAlertCircle strokeWidth={1.5} className="text-foreground-light" />+ <IconAlertCircle strokeWidth={1.5} className="text-scale-1100" /><div className="space-y-1">- <p className="text-sm text-foreground">{description}</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1200">{description}</p>+ <p className="text-sm text-scale-1000">Try refreshing your browser. However, if this issue persists, please reach out to us viasupport.</p>diff --git a/studio/components/ui/CodeEditor/CodeEditor.utils.ts b/studio/components/ui/CodeEditor/CodeEditor.utils.tsindex 02096107f15..3cf3c882200 100644--- a/studio/components/ui/CodeEditor/CodeEditor.utils.ts+++ b/studio/components/ui/CodeEditor/CodeEditor.utils.ts@@ -9,22 +9,22 @@ export const alignEditor = (editor: any) => {})}-export const getTheme = (theme: string) => {+export const getTheme = (isDarkTheme: boolean) => {// [TODO] Probably need better theming for light modereturn {- base: theme === 'dark' ? 'vs-dark' : 'vs', // can also be vs-dark or hc-black+ base: isDarkTheme ? 'vs-dark' : 'vs', // can also be vs-dark or hc-blackinherit: true, // can also be false to completely replace the builtin rulesrules: [- { background: theme === 'dark' ? '1f1f1f' : 'f0f0f0' },+ { background: isDarkTheme ? '1f1f1f' : 'f0f0f0' },{token: '',- background: theme === 'dark' ? '1f1f1f' : 'f0f0f0',- foreground: theme === 'dark' ? 'd4d4d4' : '444444',+ background: isDarkTheme ? '1f1f1f' : 'f0f0f0',+ foreground: isDarkTheme ? 'd4d4d4' : '444444',},{ token: 'string.sql', foreground: '24b47e' },{ token: 'comment', foreground: '666666' },- { token: 'predefined.sql', foreground: theme === 'dark' ? 'D4D4D4' : '444444' },+ { token: 'predefined.sql', foreground: isDarkTheme ? 'D4D4D4' : '444444' },],- colors: { 'editor.background': theme === 'dark' ? '#1f1f1f' : '#f0f0f0' },+ colors: { 'editor.background': isDarkTheme ? '#1f1f1f' : '#f0f0f0' },}}diff --git a/studio/components/ui/DatePicker/DatePicker.tsx b/studio/components/ui/DatePicker/DatePicker.tsxindex d12569c1648..e34910be428 100644--- a/studio/components/ui/DatePicker/DatePicker.tsx+++ b/studio/components/ui/DatePicker/DatePicker.tsx@@ -200,7 +200,7 @@ function _DatePicker({w-12items-centerjustify-center- text-foreground-lighter+ text-scale-900`}><IconArrowRight strokeWidth={1.5} size={14} />@@ -252,21 +252,19 @@ function _DatePicker({type="button"className={`${prevMonthButtonDisabled && 'cursor-not-allowed opacity-50'}- text-foreground-light hover:text-foreground focus:outline-none+ text-scale-1100 hover:text-scale-1200 focus:outline-none`}><IconChevronLeft size={16} strokeWidth={2} /></button>- <span className="text-sm text-foreground-light">- {format(date, 'MMMM yyyy')}- </span>+ <span className="text-sm text-scale-1100">{format(date, 'MMMM yyyy')}</span><buttononClick={increaseMonth}disabled={nextMonthButtonDisabled}type="button"className={`${nextMonthButtonDisabled && 'cursor-not-allowed opacity-50'}- text-foreground-light hover:text-foreground focus:outline-none+ text-scale-1100 hover:text-scale-1200 focus:outline-none`}><IconChevronRight size={16} strokeWidth={2} />diff --git a/studio/components/ui/DatePicker/DividerSlash.tsx b/studio/components/ui/DatePicker/DividerSlash.tsxindex 7508aff4acb..8071f95ba06 100644--- a/studio/components/ui/DatePicker/DividerSlash.tsx+++ b/studio/components/ui/DatePicker/DividerSlash.tsx@@ -1,6 +1,6 @@export default function DividerSlash() {return (- <span className="text-foreground-lighter">+ <span className="text-scale-900"><svgviewBox="0 0 24 24"width="14"diff --git a/studio/components/ui/DatePicker/TimeSplitInput.tsx b/studio/components/ui/DatePicker/TimeSplitInput.tsxindex c2db5875d18..ea93dbbe9c4 100644--- a/studio/components/ui/DatePicker/TimeSplitInput.tsx+++ b/studio/components/ui/DatePicker/TimeSplitInput.tsx@@ -3,7 +3,7 @@ import { IconClock } from 'ui'import { format } from 'date-fns'-import { TimeSplitInputProps, TimeType } from './DatePicker.types'+import { TimeType, Time, TimeSplitInputProps } from './DatePicker.types'const TimeSplitInput = ({type,@@ -161,11 +161,11 @@ const TimeSplitInput = ({<divclassName={`flex h-7 items-center justify-center- gap-0 rounded border border-scale-700 bg-scale-100 text-xs text-foreground-light dark:bg-scaleA-300+ gap-0 rounded border border-scale-700 bg-scale-100 text-xs text-scale-1100 dark:bg-scaleA-300${focus && ' border-scale-800 outline outline-2 outline-scale-500'}`}>- <div className="mr-1 text-foreground-lighter">+ <div className="mr-1 text-scale-900"><IconClock size={14} strokeWidth={1.5} /></div>@@ -183,14 +183,14 @@ const TimeSplitInput = ({border-nonebg-transparentp-0 text-center text-xs- text-foreground+ text-scale-1200outline-nonering-0focus:ring-0"value={time.HH}/>- <span className="text-foreground-lighter">:</span>+ <span className="text-scale-900">:</span><inputtype="text"onBlur={() => handleOnBlur()}@@ -205,14 +205,14 @@ const TimeSplitInput = ({border-nonebg-transparentp-0 text-center text-xs- text-foreground+ text-scale-1200outline-nonering-0focus:ring-0"value={time.mm}/>- <span className="text-foreground-lighter">:</span>+ <span className="text-scale-900">:</span><inputtype="text"onBlur={() => handleOnBlur()}@@ -227,7 +227,7 @@ const TimeSplitInput = ({border-nonebg-transparentp-0 text-center text-xs- text-foreground+ text-scale-1200outline-nonering-0focus:ring-0diff --git a/studio/components/ui/Dialogs/ConfirmDialog.js b/studio/components/ui/Dialogs/ConfirmDialog.jsindex d7ad5e3f88b..bc2302c9376 100644--- a/studio/components/ui/Dialogs/ConfirmDialog.js+++ b/studio/components/ui/Dialogs/ConfirmDialog.js@@ -1,5 +1,5 @@-import { useEffect, useState } from 'react'-import { Button, Form, Modal } from 'ui'+import { Modal, Button, Form } from 'ui'+import { useState, useEffect } from 'react'// [Joshen] As of 280222, let's just use ConfirmationModal as the one and only confirmation modal (Deprecate this)@@ -50,7 +50,7 @@ const ConfirmModal = ({return (<div className="space-y-4 py-4"><Modal.Content>- <p className="text-sm text-foreground-light">{description}</p>+ <p className="text-sm text-scale-1100">{description}</p></Modal.Content><Modal.Separator /><Modal.Content>diff --git a/studio/components/ui/Error.tsx b/studio/components/ui/Error.tsxindex 3e0acad8186..0ec01d2abbf 100644--- a/studio/components/ui/Error.tsx+++ b/studio/components/ui/Error.tsx@@ -1,5 +1,5 @@-import Link from 'next/link'import { useEffect } from 'react'+import Link from 'next/link'import { Button } from 'ui'export default function EmptyPageState({ error }: any) {@@ -11,7 +11,7 @@ export default function EmptyPageState({ error }: any) {<div className="mx-auto flex h-full w-full flex-col items-center justify-center space-y-6"><div className="flex w-[320px] flex-col items-center justify-center space-y-3"><h4 className="text-lg">Something went wrong 🤕</h4>- <p className="text-center text-sm text-foreground-light">+ <p className="text-center text-sm text-scale-1100">Sorry about that, please try again later or feel free to reach out to us if the problempersists.</p>@@ -28,7 +28,7 @@ export default function EmptyPageState({ error }: any) {</a></Link></div>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Error: [{error?.code}] {error?.message}</p></div>diff --git a/studio/components/ui/FormBoxEmpty.tsx b/studio/components/ui/FormBoxEmpty.tsxindex b8c9852bc00..a1016e2bf54 100644--- a/studio/components/ui/FormBoxEmpty.tsx+++ b/studio/components/ui/FormBoxEmpty.tsx@@ -8,10 +8,10 @@ interface Props {const FormBoxEmpty = ({ icon, text }: Props) => {return (<div className="flex items-center justify-center flex-row py-4 space-x-2">- <div className="relative bg-scale-300 text-foreground-lighter w-6 h-6 rounded-full flex items-center justify-center">+ <div className="relative bg-scale-300 text-scale-900 w-6 h-6 rounded-full flex items-center justify-center">{icon}</div>- <p className="text-foreground-light">{text}</p>+ <p className="text-scale-1000">{text}</p></div>)}diff --git a/studio/components/ui/Forms/FormActions.tsx b/studio/components/ui/Forms/FormActions.tsxindex 44057325313..d5f4789ceac 100644--- a/studio/components/ui/Forms/FormActions.tsx+++ b/studio/components/ui/Forms/FormActions.tsx@@ -29,7 +29,7 @@ const FormActions = ({helper ? 'justify-between' : 'justify-end',].join(' ')}>- {helper && <span className="text-sm text-foreground-lighter">{helper}</span>}+ {helper && <span className="text-sm text-scale-900">{helper}</span>}<div className="flex items-center gap-2"><Button disabled={isDisabled} type="default" htmlType="reset" onClick={() => handleReset()}>Canceldiff --git a/studio/components/ui/Forms/FormHeader.tsx b/studio/components/ui/Forms/FormHeader.tsxindex c1ed34ea1ca..4e6ef50f73d 100644--- a/studio/components/ui/Forms/FormHeader.tsx+++ b/studio/components/ui/Forms/FormHeader.tsx@@ -3,13 +3,13 @@ import ReactMarkdown from 'react-markdown'const FormHeader = ({ title, description }: { title: string; description?: string }) => {return (<div className="mb-6">- <h3 className="text-foreground mb-2 text-xl">+ <h3 className="text-scale-1200 mb-2 text-xl"><ReactMarkdown unwrapDisallowed disallowedElements={['p']}>{title}</ReactMarkdown></h3>{description && (- <div className="text-foreground-lighter text-sm">+ <div className="text-scale-900 text-sm"><ReactMarkdown>{description}</ReactMarkdown></div>)}diff --git a/studio/components/ui/Forms/FormSection.tsx b/studio/components/ui/Forms/FormSection.tsxindex e75ea3cdb2c..5baa7ca7f56 100644--- a/studio/components/ui/Forms/FormSection.tsx+++ b/studio/components/ui/Forms/FormSection.tsx@@ -42,13 +42,13 @@ const FormSectionLabel = ({if (description !== undefined) {return (<div className={`flex flex-col space-y-2 col-span-12 lg:col-span-5 ${className}`}>- <label className="text-foreground text-sm">{children}</label>+ <label className="text-scale-1200 text-sm">{children}</label>{description}</div>)} else {return (- <label className={`text-foreground col-span-12 text-sm lg:col-span-5 ${className}`}>+ <label className={`text-scale-1200 col-span-12 text-sm lg:col-span-5 ${className}`}>{children}</label>)diff --git a/studio/components/ui/Forms/FormsContainer.tsx b/studio/components/ui/Forms/FormsContainer.tsxindex d2368eb4918..be2c58e1eba 100644--- a/studio/components/ui/Forms/FormsContainer.tsx+++ b/studio/components/ui/Forms/FormsContainer.tsx@@ -1,7 +1,7 @@function FormsContainer(props: { children: React.ReactNode; header?: string }) {return (<div className="mx-auto max-w-4xl px-5 pt-12 pb-20">- {props.header && <h1 className="text-foreground mb-8 text-3xl">{props.header}</h1>}+ {props.header && <h1 className="text-scale-1200 mb-8 text-3xl">{props.header}</h1>}<div className="space-y-20">{props.children}</div></div>)diff --git a/studio/components/ui/InformationBox.tsx b/studio/components/ui/InformationBox.tsxindex 7422ca0383b..760effcb74c 100644--- a/studio/components/ui/InformationBox.tsx+++ b/studio/components/ui/InformationBox.tsx@@ -37,14 +37,14 @@ const InformationBox = ({<div className="flex flex-col px-4"><div className="flex items-center justify-between"><div className="flex w-full space-x-3 lg:items-start">- {icon && <span className="text-foreground-lighter">{icon}</span>}+ {icon && <span className="text-scale-900">{icon}</span>}<div className="flex-grow">- <h5 className="text-sm text-foreground">{title}</h5>+ <h5 className="text-sm text-scale-1200">{title}</h5></div></div>{description && !hideCollapse ? (<div- className="cursor-pointer text-foreground-lighter"+ className="cursor-pointer text-scale-900"onClick={() => setIsExpanded(!isExpanded)}>{isExpanded ? (@@ -62,7 +62,7 @@ const InformationBox = ({}`}style={{ maxHeight: isExpanded ? 500 : 0 }}>- <div className="text-foreground-light text-sm">{description}</div>+ <div className="text-scale-1100 text-sm">{description}</div>{url && (<Link href={url}>diff --git a/studio/components/ui/Logs/LogsExplorerHeader.tsx b/studio/components/ui/Logs/LogsExplorerHeader.tsxindex d3eac01b171..2425c0e48cb 100644--- a/studio/components/ui/Logs/LogsExplorerHeader.tsx+++ b/studio/components/ui/Logs/LogsExplorerHeader.tsx@@ -35,8 +35,8 @@ const LogsExplorerHeader = ({ subtitle }: LogsExplorerHeaderProps) => {<IconList size={14} strokeWidth={3} /></div>- <h1 className="text-2xl text-foreground">Logs Explorer</h1>- {subtitle && <span className="text-2xl text-foreground-light">{subtitle}</span>}+ <h1 className="text-2xl text-scale-1200">Logs Explorer</h1>+ {subtitle && <span className="text-2xl text-scale-1000">{subtitle}</span>}</div><div className="flex flex-row gap-2"><Link href={LOGS_EXPLORER_DOCS_URL}>@@ -147,7 +147,7 @@ const Field = ({return (<Table.tr><Table.td- className="font-mono text-xs !p-2 cursor-pointer hover:text-foreground transition flex items-center space-x-2"+ className="font-mono text-xs !p-2 cursor-pointer hover:text-scale-1200 transition flex items-center space-x-2"onClick={() =>copyToClipboard(field.path, () => {setIsCopied(true)@@ -170,7 +170,7 @@ const Field = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">Copied</span>+ <span className="text-xs text-scale-1200">Copied</span></div></Tooltip.Content></Tooltip.Portal>@@ -189,7 +189,7 @@ const Field = ({'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">Copy value</span>+ <span className="text-xs text-scale-1200">Copy value</span></div></Tooltip.Content></Tooltip.Portal>diff --git a/studio/components/ui/Modals/TextConfirmModal.tsx b/studio/components/ui/Modals/TextConfirmModal.tsxindex 5ee814a43ee..7f9b10d6fe5 100644--- a/studio/components/ui/Modals/TextConfirmModal.tsx+++ b/studio/components/ui/Modals/TextConfirmModal.tsx@@ -77,8 +77,7 @@ const TextConfirmModal = ({id="confirmValue"label={<span>- Type <span className="text-foreground break-all">{confirmString}</span> to- confirm.+ Type <span className="text-scale-1200 break-all">{confirmString}</span> to confirm.</span>}placeholder={confirmPlaceholder}diff --git a/studio/components/ui/MultiSelect/index.tsx b/studio/components/ui/MultiSelect/index.tsxindex ae9c46d292d..275e1e704c3 100644--- a/studio/components/ui/MultiSelect/index.tsx+++ b/studio/components/ui/MultiSelect/index.tsx@@ -150,7 +150,7 @@ export default function MultiSelect({onClick={() => setOpen(true)}>{selectedOptions.length === 0 && placeholder && (- <div className="px-2 text-sm text-foreground-light h-full flex items-center">+ <div className="px-2 text-sm text-scale-1000 h-full flex items-center">{placeholder}</div>)}@@ -175,7 +175,7 @@ export default function MultiSelect({}})}<div className="absolute inset-y-0 right-0 pl-3 pr-2 flex space-x-1 items-center cursor-pointer ">- <IconChevronDown size={16} strokeWidth={2} className="text-foreground-lighter" />+ <IconChevronDown size={16} strokeWidth={2} className="text-scale-900" /></div></div></PopoverTrigger_Shadcn_>@@ -248,12 +248,8 @@ export default function MultiSelect({emptyMessage) : (<div className="flex w-full items-center space-x-2">- <IconAlertCircle- strokeWidth={1.5}- size={18}- className="text-foreground-light"- />- <p className="text-sm text-foreground-light">No options available</p>+ <IconAlertCircle strokeWidth={1.5} size={18} className="text-scale-1000" />+ <p className="text-sm text-scale-1000">No options available</p></div>)}</div>@@ -268,7 +264,7 @@ export default function MultiSelect({emptyMessage) : (<div className="flex w-full items-center space-x-2">- <p className="text-sm text-foreground-light">No options found</p>+ <p className="text-sm text-scale-1000">No options found</p></div>)}</div>diff --git a/studio/components/ui/NoPermission.tsx b/studio/components/ui/NoPermission.tsxindex 06377fe605f..19e8fb138c5 100644--- a/studio/components/ui/NoPermission.tsx+++ b/studio/components/ui/NoPermission.tsx@@ -22,7 +22,7 @@ const NoPermission = ({ resourceText, isFullPage = false }: NoPermissionProps) =<div className="space-y-1"><p className="text-sm">You need additional permissions to {resourceText}</p><div>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Contact your organization owner or adminstrator for assistance.</p></div>diff --git a/studio/components/ui/NoSearchResults.tsx b/studio/components/ui/NoSearchResults.tsxindex 2d232ce32f2..54e94c82772 100644--- a/studio/components/ui/NoSearchResults.tsx+++ b/studio/components/ui/NoSearchResults.tsx@@ -9,8 +9,8 @@ const NoSearchResults = ({ searchString, onResetFilter }: NoSearchResultsProps)return (<div className="bg-scale-100 dark:bg-scale-300 border border-scale-300 dark:border-scale-500 px-6 py-4 rounded flex items-center justify-between"><div className="space-y-1">- <p className="text-sm text-foreground-light">No results found</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">No results found</p>+ <p className="text-sm text-scale-1000">Your search for "{searchString}" did not return any results</p></div>diff --git a/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx b/studio/components/ui/ProjectSettings/DisplayApiSettings.tsxindex fc305589537..a19d5f34d48 100644--- a/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx+++ b/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx@@ -41,7 +41,7 @@ const DisplayApiSettings = () => {title={<div className="space-y-3"><h5 className="text-base">Project API keys</h5>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">Your API is secured behind an API gateway which requires an API Key for every request.<br />You can use the keys below in the Supabase client libraries.@@ -58,14 +58,14 @@ const DisplayApiSettings = () => {{isProjectSettingsError || isJwtSecretUpdateStatusError ? (<div className="flex items-center justify-center py-8 space-x-2"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">{isProjectSettingsError ? 'Failed to retrieve API keys' : 'Failed to update JWT secret'}</p></div>) : isApiKeysEmpty || isProjectSettingsLoading || isJwtSecretUpdateStatusLoading ? (<div className="flex items-center justify-center py-8 space-x-2"><IconLoader className="animate-spin" size={16} strokeWidth={1.5} />- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">{isProjectSettingsLoading || isApiKeysEmpty? 'Retrieving API keys': 'JWT secret is being updated'}diff --git a/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsx b/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsxindex 5cf6557a9db..575cc79b202 100644--- a/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsx+++ b/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsx@@ -40,7 +40,7 @@ const DisplayConfigSettings = () => {{isProjectSettingsError || isJwtSecretUpdateStatusError ? (<div className="flex items-center justify-center py-8 space-x-2"><IconAlertCircle size={16} strokeWidth={1.5} />- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">{isProjectSettingsError? 'Failed to retrieve configuration': 'Failed to update JWT secret'}@@ -49,7 +49,7 @@ const DisplayConfigSettings = () => {) : isProjectSettingsLoading || isJwtSecretUpdateStatusLoading ? (<div className="flex items-center justify-center py-8 space-x-2"><IconLoader className="animate-spin" size={16} strokeWidth={1.5} />- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">{isProjectSettingsLoading ? 'Retrieving API keys' : 'JWT secret is being updated'}</p></div>diff --git a/studio/components/ui/SparkBar.tsx b/studio/components/ui/SparkBar.tsxindex 0c64a00d001..05079942518 100644--- a/studio/components/ui/SparkBar.tsx+++ b/studio/components/ui/SparkBar.tsx@@ -36,14 +36,14 @@ const SparkBar = ({<div className="flex align-baseline justify-between pb-1 space-x-8"><pclassName={clsx(- 'text-foreground text-sm truncate capitalize-sentence',+ 'text-scale-1200 text-sm truncate capitalize-sentence',labelTop.length > 0 && 'max-w-[75%]',labelBottomClass)}>{labelBottom}</p>- <p className={clsx('text-foreground-light text-sm', labelTopClass)}>{labelTop}</p>+ <p className={clsx('text-scale-1100 text-sm', labelTopClass)}>{labelTop}</p></div>)}<divdiff --git a/studio/components/ui/States/EmptyListState.tsx b/studio/components/ui/States/EmptyListState.tsxindex 616aad74ce2..d5691e3f5af 100644--- a/studio/components/ui/States/EmptyListState.tsx+++ b/studio/components/ui/States/EmptyListState.tsx@@ -31,8 +31,8 @@ const EmptyListState = ({ title, description }: { title: string; description: st</div></div><div className="flex flex-col gap-1 px-5">- <h3 className="text-foreground text-sm">{title}</h3>- <p className="text-foreground-lighter text-sm">{description}</p>+ <h3 className="text-scale-1200 text-sm">{title}</h3>+ <p className="text-scale-900 text-sm">{description}</p></div></div>)diff --git a/studio/components/ui/States/NoTableState.tsx b/studio/components/ui/States/NoTableState.tsxindex fed3f31d7ec..d5428a1a3bd 100644--- a/studio/components/ui/States/NoTableState.tsx+++ b/studio/components/ui/States/NoTableState.tsx@@ -17,7 +17,7 @@ const NoTableState: React.FC<Props> = ({ message }) => {router.push(`/project/${ref}/editor`)}}>- <p className="text-sm text-foreground-light">{message}</p>+ <p className="text-sm text-scale-1100">{message}</p></ProductEmptyState>)}diff --git a/studio/components/ui/TwoOptionToggle.tsx b/studio/components/ui/TwoOptionToggle.tsxindex 8495cf8d0bb..2fc1a5640e3 100644--- a/studio/components/ui/TwoOptionToggle.tsx+++ b/studio/components/ui/TwoOptionToggle.tsx@@ -19,7 +19,7 @@ const TwoOptionToggle = ({isActive: boolean) => `absolute top-0 z-1 text-xs inline-flex h-full items-center justify-center font-medium${- isActive ? 'hover:text-foreground-light dark:hover:text-white' : 'hover:text-gray-600'+ isActive ? 'hover:text-scale-1100 dark:hover:text-white' : 'hover:text-gray-600'} dark:hover:text-white focus:z-10 focus:outline-none focus:border-blue-300 focus:ring-bluetransition ease-in-out duration-150`@@ -41,7 +41,7 @@ const TwoOptionToggle = ({key={`toggle_${index}`}style={{ width: width + 1 }}className={`- ${activeOption === option ? 'text-foreground' : 'text-foreground-light'}+ ${activeOption === option ? 'text-scale-1200' : 'text-scale-1000'}${index === 0 ? 'right-0' : 'left-0'}${buttonStyle(activeOption === option)}cursor-pointer@@ -50,8 +50,8 @@ const TwoOptionToggle = ({><spanclassName={clsx(- 'capitalize hover:text-foreground dark:hover:text-foreground',- activeOption === option ? 'text-foreground' : 'text-foreground-light'+ 'capitalize hover:text-scale-1200 dark:hover:text-scale-1200',+ activeOption === option ? 'text-scale-1200' : 'text-scale-1000')}>{option}diff --git a/studio/components/ui/UpgradeToPro.tsx b/studio/components/ui/UpgradeToPro.tsxindex 68cb12af358..0be22608974 100644--- a/studio/components/ui/UpgradeToPro.tsx+++ b/studio/components/ui/UpgradeToPro.tsx@@ -45,7 +45,7 @@ const UpgradeToPro = ({<div className="space-y-1"><p className="text-sm">{primaryText}</p><div>- <p className="text-sm text-foreground-light">{secondaryText}</p>+ <p className="text-sm text-scale-1100">{secondaryText}</p></div></div><Tooltip.Root delayDuration={0}>@@ -70,7 +70,7 @@ const UpgradeToPro = ({'rounded bg-scale-100 py-1 px-2 leading-none shadow', // background].join(' ')}>- <span className="text-xs text-foreground">+ <span className="text-xs text-scale-1200">{projectUpdateDisabled ? (<>Subscription changes are currently disabled.diff --git a/studio/components/ui/WarningBanner.tsx b/studio/components/ui/WarningBanner.tsxindex 5ca30d5092f..591de4ff076 100644--- a/studio/components/ui/WarningBanner.tsx+++ b/studio/components/ui/WarningBanner.tsx@@ -8,7 +8,7 @@ const WarningBanner = ({ title, description }: { title: string; description?: st<IconAlertCircle size={14} strokeWidth={2} /></div><div className="flex flex-col items-start gap-x-3 xl:flex-row xl:items-center">- <h2 className="text-sm text-foreground dark:text-scale-100">{title}</h2>+ <h2 className="text-sm text-scale-1200 dark:text-scale-100">{title}</h2>{description && (<p className="text-xs text-yellow-1200 dark:text-yellow-800">{description}</p>)}diff --git a/studio/data/organizations/organization-member-invite-delete-mutation.ts b/studio/data/organizations/organization-member-invite-delete-mutation.tsindex 45f733f548c..374f3146d50 100644--- a/studio/data/organizations/organization-member-invite-delete-mutation.ts+++ b/studio/data/organizations/organization-member-invite-delete-mutation.ts@@ -9,7 +9,6 @@ import { organizationKeys } from './keys'export type OrganizationMemberInviteDeleteVariables = {slug: stringinvitedId: number- invalidateDetail?: boolean}export async function deleteOrganizationMemberInvite({@@ -46,12 +45,10 @@ export const useOrganizationMemberInviteDeleteMutation = ({OrganizationMemberInviteDeleteVariables>((vars) => deleteOrganizationMemberInvite(vars), {async onSuccess(data, variables, context) {- const { slug, invalidateDetail } = variables+ const { slug } = variablesawait Promise.all([- ...(invalidateDetail ?? true- ? [queryClient.invalidateQueries(organizationKeys.detail(slug))]- : []),+ queryClient.invalidateQueries(organizationKeys.detail(slug)),queryClient.invalidateQueries(organizationKeys.roles(slug)),])diff --git a/studio/hooks/analytics/useLogsPreview.tsx b/studio/hooks/analytics/useLogsPreview.tsxindex 4b307575a69..c5eab5c11a6 100644--- a/studio/hooks/analytics/useLogsPreview.tsx+++ b/studio/hooks/analytics/useLogsPreview.tsx@@ -97,24 +97,7 @@ function useLogsPreview(})- // memoize all this calculations stuff- const { logData, error, oldestTimestamp } = useMemo(() => {- let logData: LogData[] = []-- let error: null | string | object = rqError ? (rqError as any).message : null- data?.pages.forEach((response) => {- if (isResponseOk(response) && response.result) {- logData = [...logData, ...response.result]- }- if (!error && response && response.error) {- error = response.error- }- })-- const oldestTimestamp = logData[logData.length - 1]?.timestamp-- return { logData, error, oldestTimestamp }- }, [data?.pages])+ let logData: LogData[] = []const countUrl = () => {return `${API_URL}/projects/${projectRef}/analytics/endpoints/logs.all?${genQueryParams({@@ -134,10 +117,7 @@ function useLogsPreview(({ signal }) => get<Count>(countUrl(), { signal }),{refetchOnWindowFocus: false,- // refresh each minute only- refetchInterval: 60000,- // only enable if no errors are found and data has already been loaded- enabled: !error && data && data.pages.length > 0 ? true : false,+ refetchInterval: 5000,})@@ -145,7 +125,7 @@ function useLogsPreview(// chart data- const chartQuery = useMemo(() => genChartQuery(table, params, filters), [params, filters])+ const chartQuery = useMemo(()=> genChartQuery(table, params, filters) , [params, filters])const chartUrl = useMemo(() => {return `${API_URL}/projects/${projectRef}/analytics/endpoints/logs.all?${genQueryParams({iso_timestamp_end: params.iso_timestamp_end,@@ -173,6 +153,18 @@ function useLogsPreview(refetch()}+ let error: null | string | object = rqError ? (rqError as any).message : null+ data?.pages.forEach((response) => {+ if (isResponseOk(response) && response.result) {+ logData = [...logData, ...response.result]+ }+ if (!error && response && response.error) {+ error = response.error+ }+ })++ const oldestTimestamp = logData[logData.length - 1]?.timestamp+const handleSetFilters: LogsPreviewHook['setFilters'] = (newFilters) => {if (typeof newFilters === 'function') {setFilters((prev) => {diff --git a/studio/hooks/misc/useStore.tsx b/studio/hooks/misc/useStore.tsxindex 191e6ccad57..7abc9c6043a 100644--- a/studio/hooks/misc/useStore.tsx+++ b/studio/hooks/misc/useStore.tsx@@ -48,7 +48,7 @@ export const StoreProvider = ({ children, rootStore }: PropsWithChildren<StorePrlabelTop={`${progress.toFixed(2)}%`}/>{description !== undefined && (- <p className="text-xs text-foreground-light">{description}</p>+ <p className="text-xs text-scale-1100">{description}</p>)}</div>,{ id }diff --git a/studio/pages/404.tsx b/studio/pages/404.tsxindex e9e1030cd3d..acf5db37979 100644--- a/studio/pages/404.tsx+++ b/studio/pages/404.tsx@@ -3,11 +3,12 @@ import Image from 'next/image'import Link from 'next/link'import { useEffect, useState } from 'react'import { Button } from 'ui'-import { useTheme } from 'next-themes'+import { BASE_PATH } from 'lib/constants'+import { useTheme } from 'common'const Error404: NextPage = ({}) => {- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const [show404, setShow404] = useState<boolean>(false)useEffect(() => {@@ -26,7 +27,7 @@ const Error404: NextPage = ({}) => {<a><Imagesrc={- theme === 'dark'+ isDarkMode? `${BASE_PATH}/img/supabase-dark.svg`: `${BASE_PATH}/img/supabase-light.svg`}@@ -54,9 +55,7 @@ const Error404: NextPage = ({}) => {><div className="flex w-[380px] flex-col items-center justify-center space-y-3 text-center"><h3 className="text-xl">Looking for something? 🔍</h3>- <p className="text-foreground-light">- We couldn't find the page that you're looking for!- </p>+ <p className="text-scale-1100">We couldn't find the page that you're looking for!</p></div><div className="flex items-center space-x-4"><Link href="/projects">diff --git a/studio/pages/500.tsx b/studio/pages/500.tsxindex 21d865c5e14..e6f43a48713 100644--- a/studio/pages/500.tsx+++ b/studio/pages/500.tsx@@ -6,11 +6,11 @@ import { Button } from 'ui'import { observer } from 'mobx-react-lite'import { useSignOut } from 'lib/auth'-import { useTheme } from 'next-themes'+import { useTheme } from 'common'const Error500: NextPage = () => {const router = useRouter()- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const signOut = useSignOut()const onClickLogout = async () => {@@ -29,7 +29,7 @@ const Error500: NextPage = () => {<a><Imagesrc={- theme === 'dark'+ isDarkMode? `${router.basePath}/img/supabase-dark.svg`: `${router.basePath}/img/supabase-light.svg`}diff --git a/studio/pages/_app.tsx b/studio/pages/_app.tsxindex 3477ed3ad37..04ab81a71a9 100644--- a/studio/pages/_app.tsx+++ b/studio/pages/_app.tsx@@ -184,12 +184,7 @@ function CustomApp({ Component, pageProps }: AppPropsWithLayout) {<PageTelemetry><TooltipProvider><RouteValidationWrapper>- <ThemeProvider- attribute="class"- defaultTheme="system"- enableSystem- disableTransitionOnChange- >+ <ThemeProvider><CommandMenuWrapper><AppBannerWrapper>{getLayout(<Component {...pageProps} />)}diff --git a/studio/pages/_document.tsx b/studio/pages/_document.tsxindex 72fe3436392..1d2acb0ec21 100644--- a/studio/pages/_document.tsx+++ b/studio/pages/_document.tsx@@ -26,7 +26,7 @@ class MyDocument extends Document {/><link rel="stylesheet" type="text/css" href={`${BASE_PATH}/css/fonts.css`} /></Head>- <body>+ <body className="dark"><Main /><NextScript /></body>diff --git a/studio/pages/account/me.tsx b/studio/pages/account/me.tsxindex a19015c0fc8..2c6a0dbc7bb 100644--- a/studio/pages/account/me.tsx+++ b/studio/pages/account/me.tsx@@ -1,21 +1,22 @@import { observer } from 'mobx-react-lite'import Link from 'next/link'-import { useTheme } from 'next-themes'-+import { useTheme } from 'common'import { AccountLayout } from 'components/layouts'import SchemaFormPanel from 'components/to-be-cleaned/forms/SchemaFormPanel'-import AlertError from 'components/ui/AlertError'import Panel from 'components/ui/Panel'-import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'import { useProfileUpdateMutation } from 'data/profile/profile-update-mutation'import { Profile as ProfileType } from 'data/profile/types'import { useStore } from 'hooks'import { useSession } from 'lib/auth'import { useProfile } from 'lib/profile'-import { useAppStateSnapshot } from 'state/app-state'import { NextPageWithLayout } from 'types'import { Button, IconMoon, IconSun, Input, Listbox, Toggle } from 'ui'+import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'+import AlertError from 'components/ui/AlertError'+import { LOCAL_STORAGE_KEYS } from 'lib/constants'+import { useEffect, useState } from 'react'+import { useAppStateSnapshot } from 'state/app-state'const User: NextPageWithLayout = () => {return (@@ -152,7 +153,7 @@ const Profile = ({ profile }: { profile?: ProfileType }) => {{session?.user.app_metadata.provider === 'email' && (<div className="text-sm grid gap-2 md:grid md:grid-cols-12 md:gap-x-4"><div className="flex flex-col space-y-2 col-span-4 ">- <p className="text-foreground-light break-all">Password</p>+ <p className="text-scale-1100 break-all">Password</p></div><div className="col-span-8"><Link href="/reset-password">@@ -172,23 +173,24 @@ const Profile = ({ profile }: { profile?: ProfileType }) => {}const ThemeSettings = observer(() => {- const { theme, setTheme } = useTheme()+ const { isDarkMode, toggleTheme } = useTheme()return (<Panel title={<h5 key="panel-title">Theme</h5>}><Panel.Content><Listbox- value={theme}+ value={isDarkMode ? 'dark' : 'light'}label="Interface theme"descriptionText="Choose a theme preference"layout="horizontal"style={{ width: '50%' }}- icon={theme ? <IconMoon /> : <IconSun />}- onChange={(value: string) => setTheme(value)}+ icon={isDarkMode ? <IconMoon /> : <IconSun />}+ onChange={(themeOption: any) => toggleTheme(themeOption === 'dark')}>- <Listbox.Option label="System default" value="system">+ {/* [Joshen] Removing system default for now, needs to be supported in useTheme from common packages */}+ {/* <Listbox.Option label="System default" value="system">System default- </Listbox.Option>+ </Listbox.Option> */}<Listbox.Option label="Dark" value="dark">Dark</Listbox.Option>diff --git a/studio/pages/account/security.tsx b/studio/pages/account/security.tsxindex f7db473474f..c44af798c73 100644--- a/studio/pages/account/security.tsx+++ b/studio/pages/account/security.tsx@@ -35,7 +35,7 @@ const Security: NextPageWithLayout = () => {<Collapsible.Trigger asChild><buttontype="button"- className="group flex w-full items-center justify-between rounded py-3 px-6 text-foreground"+ className="group flex w-full items-center justify-between rounded py-3 px-6 text-scale-1200"><div className="flex flex-row gap-4 items-center py-1"><IconSmartphone strokeWidth={1.5} />@@ -49,7 +49,7 @@ const Security: NextPageWithLayout = () => {) : null}</button></Collapsible.Trigger>- <Collapsible.Content className="group border-t border-scale-500 bg-scale-100 py-6 px-6 text-foreground dark:bg-scale-300">+ <Collapsible.Content className="group border-t border-scale-500 bg-scale-100 py-6 px-6 text-scale-1200 dark:bg-scale-300"><TOTPFactors /></Collapsible.Content></Collapsible>diff --git a/studio/pages/forgot-password.tsx b/studio/pages/forgot-password.tsxindex be3312adcd1..01132fa0e22 100644--- a/studio/pages/forgot-password.tsx+++ b/studio/pages/forgot-password.tsx@@ -11,9 +11,9 @@ const ForgotPasswordPage: NextPageWithLayout = () => {</div><div className="my-8 self-center text-sm">- <span className="text-foreground-light">Already have an account?</span>{' '}+ <span className="text-scale-1100">Already have an account?</span>{' '}<Link href="/sign-in">- <a className="underline hover:text-foreground-light">Sign In</a>+ <a className="underline hover:text-scale-1100">Sign In</a></Link></div></>diff --git a/studio/pages/integrations/github/[integrationId]/choose-project.tsx b/studio/pages/integrations/github/[integrationId]/choose-project.tsxindex b2bda6ff510..2bf35deb49b 100644--- a/studio/pages/integrations/github/[integrationId]/choose-project.tsx+++ b/studio/pages/integrations/github/[integrationId]/choose-project.tsx@@ -70,11 +70,11 @@ const ChooseProjectGitHubPage: NextPageWithLayout = () => {<><ScaffoldContainer className="flex flex-col gap-6 grow py-8"><header>- <h1 className="text-xl text-foreground">+ <h1 className="text-xl text-scale-1200">Link a Supabase project to a GitHub repository</h1><Markdown- className="text-foreground-lighter"+ className="text-scale-900"// explain what this integration doescontent={`This Supabase integration will allow you to link a Supabase project to a GitHub repository. This will allow you to deploy your database schema to your Supabase project.@@ -100,10 +100,10 @@ This Supabase integration will allow you to link a Supabase project to a GitHub<ScaffoldDivider /></main><ScaffoldContainer className="bg-body flex flex-row gap-6 py-6 border-t">- <div className="flex items-center gap-2 text-xs text-foreground-lighter">+ <div className="flex items-center gap-2 text-xs text-scale-900"><IconBook size={16} /> Docs</div>- <div className="flex items-center gap-2 text-xs text-foreground-lighter">+ <div className="flex items-center gap-2 text-xs text-scale-900"><IconLifeBuoy size={16} /> Support</div></ScaffoldContainer>diff --git a/studio/pages/integrations/github/install.tsx b/studio/pages/integrations/github/install.tsxindex 902c5e56b00..24904d94565 100644--- a/studio/pages/integrations/github/install.tsx+++ b/studio/pages/integrations/github/install.tsx@@ -124,7 +124,7 @@ const GitHubIntegration: NextPageWithLayout = () => {<><ScaffoldContainer className="flex flex-col gap-6 grow py-8"><ScaffoldColumn className="mx-auto">- <h1 className="text-xl text-foreground">Choose organization</h1>+ <h1 className="text-xl text-scale-1200">Choose organization</h1><><Markdown content={`Choose the Supabase organization you wish to install in`} /><OrganizationPicker@@ -178,10 +178,10 @@ const GitHubIntegration: NextPageWithLayout = () => {<ScaffoldDivider /></main><ScaffoldContainer className="bg-body flex flex-row gap-6 py-6">- <div className="flex items-center gap-2 text-xs text-foreground-lighter">+ <div className="flex items-center gap-2 text-xs text-scale-900"><IconBook size={16} /> Docs</div>- <div className="flex items-center gap-2 text-xs text-foreground-lighter">+ <div className="flex items-center gap-2 text-xs text-scale-900"><IconLifeBuoy size={16} /> Support</div></ScaffoldContainer>diff --git a/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx b/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsxindex abe2d0b0f63..248126f21ff 100644--- a/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx+++ b/studio/pages/integrations/vercel/[slug]/deploy-button/new-project.tsx@@ -32,7 +32,7 @@ const VercelIntegration: NextPageWithLayout = () => {<><ScaffoldContainer className="max-w-md flex flex-col gap-6 grow py-8">- <h1 className="text-xl text-foreground">New project</h1>+ <h1 className="text-xl text-scale-1200">New project</h1><><Markdown content={`Choose the Supabase organization you wish to install in`} /><CreateProject loading={loading} setLoading={setLoading} />@@ -50,10 +50,10 @@ const VercelIntegration: NextPageWithLayout = () => {<ScaffoldDivider /></main><ScaffoldContainer className="bg-body flex flex-row gap-6 py-6 border-t">- <div className="flex items-center gap-2 text-xs text-foreground-lighter">+ <div className="flex items-center gap-2 text-xs text-scale-900"><IconBook size={16} /> Docs</div>- <div className="flex items-center gap-2 text-xs text-foreground-lighter">+ <div className="flex items-center gap-2 text-xs text-scale-900"><IconLifeBuoy size={16} /> Support</div></ScaffoldContainer>@@ -318,7 +318,7 @@ const CreateProject = ({/>)}>- <span className="text-foreground">{label}</span>+ <span className="text-scale-1200">{label}</span></Listbox.Option>)})}diff --git a/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsx b/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsxindex 01cff8dc030..1ca69a39354 100644--- a/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsx+++ b/studio/pages/integrations/vercel/[slug]/marketplace/choose-project.tsx@@ -151,9 +151,9 @@ const VercelIntegration: NextPageWithLayout = () => {<ScaffoldContainer className="flex flex-col gap-6 grow py-8"><ScaffoldColumn className="!max-w-[900px] mx-auto w-full"><header>- <h1 className="text-xl text-foreground">Create your first Project Connection</h1>+ <h1 className="text-xl text-scale-1200">Create your first Project Connection</h1><Markdown- className="text-foreground-lighter"+ className="text-scale-900"content={`This Supabase integration manages your environment variables automatically to provide the latest keys in the unlikely event that you will need to refresh your JWT token.`}diff --git a/studio/pages/integrations/vercel/install.tsx b/studio/pages/integrations/vercel/install.tsxindex 6405a62f455..c2b4c80cdc3 100644--- a/studio/pages/integrations/vercel/install.tsx+++ b/studio/pages/integrations/vercel/install.tsx@@ -187,7 +187,7 @@ const VercelIntegration: NextPageWithLayout = () => {<><ScaffoldContainer className="flex flex-col gap-6 grow py-8"><ScaffoldColumn className="mx-auto w-full max-w-md">- <h1 className="text-xl text-foreground">Choose organization</h1>+ <h1 className="text-xl text-scale-1200">Choose organization</h1><><Markdown content={`Choose the Supabase organization you wish to install in`} /><OrganizationPickerdiff --git a/studio/pages/join/index.tsx b/studio/pages/join/index.tsxindex a1a80c0ab30..54a5c395993 100644--- a/studio/pages/join/index.tsx+++ b/studio/pages/join/index.tsx@@ -111,7 +111,7 @@ const JoinOrganizationPage = () => {<divclassName={['flex flex-col items-center justify-center gap-3 text-sm',- isError ? 'text-foreground-light' : 'text-foreground',+ isError ? 'text-scale-1100' : 'text-scale-1200',].join(' ')}>{children}@@ -123,7 +123,7 @@ const JoinOrganizationPage = () => {) : token_does_not_exist ? (<><p>The invite token is invalid.</p>- <p className="text-foreground-lighter">+ <p className="text-scale-900">Try copying and pasting the link from the invite email, or ask the organization owner toinvite you again.</p>@@ -134,7 +134,7 @@ const JoinOrganizationPage = () => {Your email address {profile?.primary_email} does not match the email address thisinvitation was sent to.</p>- <p className="text-foreground-lighter">+ <p className="text-scale-900">To accept this invitation, you will need to{' '}<aclassName="cursor-pointer text-brand"@@ -152,9 +152,7 @@ const JoinOrganizationPage = () => {) : expired_token ? (<><p>The invite token has expired.</p>- <p className="text-foreground-lighter">- Please request a new one from the organization owner.- </p>+ <p className="text-scale-900">Please request a new one from the organization owner.</p></>) : (''@@ -167,24 +165,22 @@ const JoinOrganizationPage = () => {<><div className="flex flex-col gap-2 px-6 py-8"><>- <p className="text-sm text-foreground">You have been invited to join </p>+ <p className="text-sm text-scale-1200">You have been invited to join </p>{organization_name ? (<>- <p className="text-3xl text-foreground">+ <p className="text-3xl text-scale-1200">{name ? name : organization_name ? `${organization_name}` : 'an organization'}</p>{!token_does_not_exist && (- <p className="text-sm text-foreground-lighter">an organization on Supabase</p>+ <p className="text-sm text-scale-900">an organization on Supabase</p>)}</>) : (<>- <p className="text-3xl text-foreground">{'an organization'}</p>+ <p className="text-3xl text-scale-1200">{'an organization'}</p></>)}- {slug && (- <p className="text-xs text-foreground-lighter">{`organization slug: ${slug}`}</p>- )}+ {slug && <p className="text-xs text-scale-900">{`organization slug: ${slug}`}</p>}</></div>@@ -215,7 +211,7 @@ const JoinOrganizationPage = () => {{!profile && (<div className="flex flex-col gap-3">- <p className="text-xs text-foreground-lighter">+ <p className="text-xs text-scale-900">You will need to sign in to accept this invitation</p><div className="flex justify-center gap-3">diff --git a/studio/pages/new/[slug].tsx b/studio/pages/new/[slug].tsxindex b238a53f408..6bce0bddebb 100644--- a/studio/pages/new/[slug].tsx+++ b/studio/pages/new/[slug].tsx@@ -271,9 +271,7 @@ const Wizard: NextPageWithLayout = () => {</Button><div className="items-center space-x-3">{!projectCreationDisabled && (- <span className="text-xs text-foreground-lighter">- You can rename your project later- </span>+ <span className="text-xs text-scale-900">You can rename your project later</span>)}<ButtononClick={onClickNext}@@ -288,7 +286,7 @@ const Wizard: NextPageWithLayout = () => {><><Panel.Content className="pt-0 pb-6">- <p className="text-sm text-foreground-lighter">+ <p className="text-sm text-scale-900">Your project will have its own dedicated instance and full postgres database.<br />An API will be set up so you can easily interact with your new database.@@ -397,7 +395,7 @@ const Wizard: NextPageWithLayout = () => {const value = providerObj['id']return (<Listbox.Option key={value} label={label} value={value}>- <span className="text-foreground">{label}</span>+ <span className="text-scale-1200">{label}</span></Listbox.Option>)})}@@ -453,7 +451,7 @@ const Wizard: NextPageWithLayout = () => {/>)}>- <span className="text-foreground">{label}</span>+ <span className="text-scale-1200">{label}</span></Listbox.Option>)})}diff --git a/studio/pages/new/index.tsx b/studio/pages/new/index.tsxindex 7c4cb98f771..5a14b15fa9b 100644--- a/studio/pages/new/index.tsx+++ b/studio/pages/new/index.tsx@@ -1,8 +1,7 @@import HCaptcha from '@hcaptcha/react-hcaptcha'import { Elements } from '@stripe/react-stripe-js'import { loadStripe } from '@stripe/stripe-js'-import { useParams } from 'common'-import { useTheme } from 'next-themes'+import { useParams, useTheme } from 'common'import { observer } from 'mobx-react-lite'import { useCallback, useEffect, useState } from 'react'@@ -19,7 +18,7 @@ const stripePromise = loadStripe(STRIPE_PUBLIC_KEY)* No org selected yet, create a new one*/const Wizard: NextPageWithLayout = () => {- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const [intent, setIntent] = useState<any>()const captchaLoaded = useIsHCaptchaLoaded()@@ -43,7 +42,7 @@ const Wizard: NextPageWithLayout = () => {const options = {clientSecret: intent ? intent.client_secret : '',- appearance: { theme: theme === 'dark' ? 'night' : 'flat', labels: 'floating' },+ appearance: { theme: isDarkMode ? 'night' : 'flat', labels: 'floating' },} as anyconst loadPaymentForm = async () => {diff --git a/studio/pages/old-org.tsx b/studio/pages/old-org.tsxindex 1689751b44d..be52ba18366 100644--- a/studio/pages/old-org.tsx+++ b/studio/pages/old-org.tsx@@ -91,9 +91,7 @@ const Wizard: NextPageWithLayout = () => {Cancel</Button><div className="flex items-center space-x-3">- <p className="text-xs text-foreground-lighter">- You can rename your organization later- </p>+ <p className="text-xs text-scale-900">You can rename your organization later</p><Button onClick={onClickSubmit} loading={newOrgLoading} disabled={newOrgLoading}>Create organization</Button>@@ -103,7 +101,7 @@ const Wizard: NextPageWithLayout = () => {><Panel.Content className="pt-0"><p className="text-sm">This is your organization within Supabase.</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">For example, you can use the name of your company or department.</p></Panel.Content>diff --git a/studio/pages/org/[slug]/index.tsx b/studio/pages/org/[slug]/index.tsxindex fbafe9e4dd7..1607bf71bdd 100644--- a/studio/pages/org/[slug]/index.tsx+++ b/studio/pages/org/[slug]/index.tsx@@ -1,16 +1,16 @@import Link from 'next/link'import { Button, IconPlus } from 'ui'-import NoProjectsOnPaidOrgInfo from 'components/interfaces/BillingV2/NoProjectsOnPaidOrgInfo'import ProjectCard from 'components/interfaces/Home/ProjectList/ProjectCard'import ShimmeringCard from 'components/interfaces/Home/ProjectList/ShimmeringCard'import AppLayout from 'components/layouts/AppLayout/AppLayout'import { ScaffoldContainer, ScaffoldSection } from 'components/layouts/Scaffold'import AlertError from 'components/ui/AlertError'-import { useOrgIntegrationsQuery } from 'data/integrations/integrations-query-org-only'import { useProjectsQuery } from 'data/projects/projects-query'import { useSelectedOrganization } from 'hooks'import { NextPageWithLayout } from 'types'+import { useOrgIntegrationsQuery } from 'data/integrations/integrations-query-org-only'+import NoProjectsOnPaidOrgInfo from 'components/interfaces/BillingV2/NoProjectsOnPaidOrgInfo'const ProjectsPage: NextPageWithLayout = () => {const {@@ -63,7 +63,7 @@ const ProjectsPage: NextPageWithLayout = () => {<div className="col-span-4 space-y-4 rounded-lg border-2 border-dashed border-gray-300 p-6 text-center"><div className="space-y-1"><p>No projects</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Get started by creating a new project.</p></div>diff --git a/studio/pages/org/_/[[...routeSlug]].tsx b/studio/pages/org/_/[[...routeSlug]].tsxindex 272ea7fa405..b7bec24174a 100644--- a/studio/pages/org/_/[[...routeSlug]].tsx+++ b/studio/pages/org/_/[[...routeSlug]].tsx@@ -72,7 +72,7 @@ const GenericOrganizationPage: NextPage = () => {<div className="col-span-4 space-y-4 rounded-lg border-2 border-dashed border-gray-300 p-6 text-center"><div className="space-y-1"><p>You are not part of any organizations yet</p>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Get started by creating a new organization.</p></div>@@ -102,7 +102,7 @@ const GenericOrganizationPage: NextPage = () => {}footer={<div className="flex items-end justify-between">- <span className="text-sm lowercase text-foreground-light">+ <span className="text-sm lowercase text-scale-1000">{organization.slug}</span></div>diff --git a/studio/pages/project/[ref]/api/graphiql.tsx b/studio/pages/project/[ref]/api/graphiql.tsxindex 5726881f0e4..d1040650eca 100644--- a/studio/pages/project/[ref]/api/graphiql.tsx+++ b/studio/pages/project/[ref]/api/graphiql.tsx@@ -1,8 +1,8 @@-import { createGraphiQLFetcher, Fetcher } from '@graphiql/toolkit'+import { Fetcher, createGraphiQLFetcher } from '@graphiql/toolkit'import { observer } from 'mobx-react-lite'import { useEffect, useMemo } from 'react'-import { useTheme } from 'next-themes'+import { useTheme } from 'common'import { useParams } from 'common/hooks'import ExtensionCard from 'components/interfaces/Database/Extensions/ExtensionCard'import GraphiQL from 'components/interfaces/GraphQL/GraphiQL'@@ -17,8 +17,8 @@ import { NextPageWithLayout } from 'types'const GraphiQLPage: NextPageWithLayout = () => {const { ref: projectRef } = useParams()const { ui, meta } = useStore()- const { theme } = useTheme()- const currentTheme = theme === 'dark' ? 'dark' : 'light'+ const { isDarkMode } = useTheme()+ const theme = isDarkMode ? 'dark' : 'light'const isExtensionsLoading = meta.extensions.isLoadingconst pgGraphqlExtension = meta.extensions.byId('pg_graphql')@@ -67,7 +67,7 @@ const GraphiQLPage: NextPageWithLayout = () => {<div className="w-full max-w-md"><div className="mb-6"><h1 className="mt-8 mb-2 text-2xl">Enable the GraphQL Extension</h1>- <h2 className="text-sm text-foreground-light">+ <h2 className="text-sm text-scale-1100">Toggle the switch below to enable the GraphQL extension. You can then use the GraphQLAPI with your Supabase Database.</h2>@@ -79,7 +79,7 @@ const GraphiQLPage: NextPageWithLayout = () => {)}- return <GraphiQL fetcher={fetcher} theme={currentTheme} accessToken={anonKey} />+ return <GraphiQL fetcher={fetcher} theme={theme} accessToken={anonKey} />}GraphiQLPage.getLayout = (page) => <DocsLayout title="GraphiQL">{page}</DocsLayout>diff --git a/studio/pages/project/[ref]/api/index.tsx b/studio/pages/project/[ref]/api/index.tsxindex c159b220e02..e4f8b718a03 100644--- a/studio/pages/project/[ref]/api/index.tsx+++ b/studio/pages/project/[ref]/api/index.tsx@@ -91,7 +91,7 @@ const DocView = observer(() => {if (error || jsonSchemaError)return (<div className="p-6 mx-auto text-center sm:w-full md:w-3/4">- <p className="text-foreground-light">+ <p className="text-scale-1000"><p>Error connecting to API</p><p>{`${error || jsonSchemaError}`}</p></p>diff --git a/studio/pages/project/[ref]/auth/policies.tsx b/studio/pages/project/[ref]/auth/policies.tsxindex 742856bad92..c66ea97a317 100644--- a/studio/pages/project/[ref]/auth/policies.tsx+++ b/studio/pages/project/[ref]/auth/policies.tsx@@ -140,9 +140,9 @@ const AuthPoliciesPage: NextPageWithLayout = () => {key={schema.id}value={schema.name}label={schema.name}- addOnBefore={() => <span className="text-foreground-lighter">schema</span>}+ addOnBefore={() => <span className="text-scale-900">schema</span>}>- <span className="text-foreground text-sm">{schema.name}</span>+ <span className="text-scale-1200 text-sm">{schema.name}</span></Listbox.Option>))}<Listbox.Option@@ -158,9 +158,9 @@ const AuthPoliciesPage: NextPageWithLayout = () => {key={schema.id}value={schema.name}label={schema.name}- addOnBefore={() => <span className="text-foreground-lighter">schema</span>}+ addOnBefore={() => <span className="text-scale-900">schema</span>}>- <span className="text-foreground text-sm">{schema.name}</span>+ <span className="text-scale-1200 text-sm">{schema.name}</span></Listbox.Option>))}</Listbox>diff --git a/studio/pages/project/[ref]/database/backups/pitr.tsx b/studio/pages/project/[ref]/database/backups/pitr.tsxindex 945824f1672..d26020d3228 100644--- a/studio/pages/project/[ref]/database/backups/pitr.tsx+++ b/studio/pages/project/[ref]/database/backups/pitr.tsx@@ -26,7 +26,7 @@ const DatabasePhysicalBackups: NextPageWithLayout = () => {<ScaffoldSection><div className="col-span-12"><div className="space-y-6">- <h3 className="text-xl text-foreground">Database Backups</h3>+ <h3 className="text-xl text-scale-1200">Database Backups</h3><Tabstype="underlined"diff --git a/studio/pages/project/[ref]/database/backups/scheduled.tsx b/studio/pages/project/[ref]/database/backups/scheduled.tsxindex b146a78bd67..6a4863b24d9 100644--- a/studio/pages/project/[ref]/database/backups/scheduled.tsx+++ b/studio/pages/project/[ref]/database/backups/scheduled.tsx@@ -36,7 +36,7 @@ const DatabaseScheduledBackups: NextPageWithLayout = () => {<ScaffoldSection><div className="col-span-12"><div className="space-y-6">- <h3 className="text-xl text-foreground">Database Backups</h3>+ <h3 className="text-xl text-scale-1200">Database Backups</h3><Tabstype="underlined"@@ -60,7 +60,7 @@ const DatabaseScheduledBackups: NextPageWithLayout = () => {{isSuccess && (<>{!isPitrEnabled && (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Projects are backed up daily around midnight of your project's region and canbe restored at any time.</p>diff --git a/studio/pages/project/[ref]/database/extensions.tsx b/studio/pages/project/[ref]/database/extensions.tsxindex 89ea5c976f6..255b03f496e 100644--- a/studio/pages/project/[ref]/database/extensions.tsx+++ b/studio/pages/project/[ref]/database/extensions.tsx@@ -22,7 +22,7 @@ const DatabaseExtensions: NextPageWithLayout = () => {<ScaffoldSection><div className="col-span-12"><div className="mb-4">- <h3 className="mb-1 text-xl text-foreground">Database Extensions</h3>+ <h3 className="mb-1 text-xl text-scale-1200">Database Extensions</h3></div><Extensions /></div>diff --git a/studio/pages/project/[ref]/database/functions.tsx b/studio/pages/project/[ref]/database/functions.tsxindex 36fa02edb3e..dfd219a8326 100644--- a/studio/pages/project/[ref]/database/functions.tsx+++ b/studio/pages/project/[ref]/database/functions.tsx@@ -53,7 +53,7 @@ const FunctionsPage: NextPageWithLayout = () => {<ScaffoldSection><div className="col-span-12"><div className="mb-4">- <h3 className="mb-1 text-xl text-foreground">Database Functions</h3>+ <h3 className="mb-1 text-xl text-scale-1200">Database Functions</h3></div><FunctionsListcreateFunction={createFunction}diff --git a/studio/pages/project/[ref]/database/hooks.tsx b/studio/pages/project/[ref]/database/hooks.tsxindex eea3c6443dd..099950eda65 100644--- a/studio/pages/project/[ref]/database/hooks.tsx+++ b/studio/pages/project/[ref]/database/hooks.tsx@@ -82,7 +82,7 @@ const HooksPage: NextPageWithLayout = () => {return (<div className="w-full h-full flex items-center justify-center space-x-2"><IconLoader className="animate-spin" size="tiny" strokeWidth={1.5} />- <p className="text-sm text-foreground-light">Checking if hooks are enabled</p>+ <p className="text-sm text-scale-1100">Checking if hooks are enabled</p></div>)}@@ -101,11 +101,11 @@ const HooksPage: NextPageWithLayout = () => {!canCreateWebhooks ? 'You need additional permissions to enable webhooks' : undefined}>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1100">Database Webhooks can be used to trigger serverless functions or send requests to anHTTP endpoint.</p>- <p className="text-sm text-foreground-light">Enable database webhooks on your project.</p>+ <p className="text-sm text-scale-1100">Enable database webhooks on your project.</p></ProductEmptyState></div>)diff --git a/studio/pages/project/[ref]/database/replication.tsx b/studio/pages/project/[ref]/database/replication.tsxindex 21ccdc63bbf..e5e19a2fac7 100644--- a/studio/pages/project/[ref]/database/replication.tsx+++ b/studio/pages/project/[ref]/database/replication.tsx@@ -34,7 +34,7 @@ const DatabaseReplication: NextPageWithLayout = () => {<ScaffoldSection><div className="col-span-12"><div className="mb-4">- <h3 className="mb-1 text-xl text-foreground">Database Replications</h3>+ <h3 className="mb-1 text-xl text-scale-1200">Database Replications</h3></div>{selectedPublicationId === undefined ? (<PublicationsList onSelectPublication={setSelectedPublicationId} />diff --git a/studio/pages/project/[ref]/database/schemas.tsx b/studio/pages/project/[ref]/database/schemas.tsxindex d6737367a75..d9e67017988 100644--- a/studio/pages/project/[ref]/database/schemas.tsx+++ b/studio/pages/project/[ref]/database/schemas.tsx@@ -55,9 +55,9 @@ const SchemasPage: NextPageWithLayout = () => {key={schema.id}value={schema.name}label={schema.name}- addOnBefore={() => <span className="text-foreground-lighter">schema</span>}+ addOnBefore={() => <span className="text-scale-900">schema</span>}>- <span className="text-foreground text-sm">{schema.name}</span>+ <span className="text-scale-1200 text-sm">{schema.name}</span></Listbox.Option>))}<Listbox.Option@@ -73,9 +73,9 @@ const SchemasPage: NextPageWithLayout = () => {key={schema.id}value={schema.name}label={schema.name}- addOnBefore={() => <span className="text-foreground-lighter">schema</span>}+ addOnBefore={() => <span className="text-scale-900">schema</span>}>- <span className="text-foreground text-sm">{schema.name}</span>+ <span className="text-scale-1200 text-sm">{schema.name}</span></Listbox.Option>))}</Listbox>diff --git a/studio/pages/project/[ref]/database/triggers.tsx b/studio/pages/project/[ref]/database/triggers.tsxindex be05f80951e..ff1abd91597 100644--- a/studio/pages/project/[ref]/database/triggers.tsx+++ b/studio/pages/project/[ref]/database/triggers.tsx@@ -54,7 +54,7 @@ const TriggersPage: NextPageWithLayout = () => {<ScaffoldSection><div className="col-span-12"><div className="mb-4">- <h3 className="mb-1 text-xl text-foreground">Database Triggers</h3>+ <h3 className="mb-1 text-xl text-scale-1200">Database Triggers</h3></div><TriggersListcreateTrigger={createTrigger}diff --git a/studio/pages/project/[ref]/editor/[id].tsx b/studio/pages/project/[ref]/editor/[id].tsxindex 5e9e4f30bde..0b31931bf2b 100644--- a/studio/pages/project/[ref]/editor/[id].tsx+++ b/studio/pages/project/[ref]/editor/[id].tsx@@ -1,4 +1,4 @@-import { useTheme } from 'next-themes'+import { useTheme } from 'common'import { useParams } from 'common/hooks'import { TableGridEditor } from 'components/interfaces'import DeleteConfirmationDialogs from 'components/interfaces/TableGridEditor/DeleteConfirmationDialogs'@@ -10,7 +10,7 @@ import { NextPageWithLayout } from 'types'const TableEditorPage: NextPageWithLayout = () => {const router = useRouter()- const { theme } = useTheme()+ const { isDarkMode } = useTheme()const { id: _id, ref: projectRef } = useParams()const id = _id ? Number(_id) : undefined@@ -21,7 +21,7 @@ const TableEditorPage: NextPageWithLayout = () => {<TableGridEditorisLoadingSelectedTable={isLoading}selectedTable={selectedTable}- theme={theme === 'dark' ? 'dark' : 'light'}+ theme={isDarkMode ? 'dark' : 'light'}/><DeleteConfirmationDialogsprojectRef={projectRef}diff --git a/studio/pages/project/[ref]/functions/[functionSlug]/index.tsx b/studio/pages/project/[ref]/functions/[functionSlug]/index.tsxindex 84983c243c9..bb67f902225 100644--- a/studio/pages/project/[ref]/functions/[functionSlug]/index.tsx+++ b/studio/pages/project/[ref]/functions/[functionSlug]/index.tsx@@ -1,22 +1,23 @@+import dayjs, { Dayjs } from 'dayjs'+import { useMemo, useState } from 'react'+import { useRouter } from 'next/router'+import { Button } from 'ui'+import { observer } from 'mobx-react-lite'import { PermissionAction } from '@supabase/shared-types/out/constants'+import { useCheckPermissions } from 'hooks'import { useParams } from 'common/hooks'-import ReportWidget from 'components/interfaces/Reports/ReportWidget'-import { isUnixMicro, unixMicroToIsoTimestamp } from 'components/interfaces/Settings/Logs'-import FunctionsLayout from 'components/layouts/FunctionsLayout'-import AreaChart from 'components/ui/Charts/AreaChart'-import BarChart from 'components/ui/Charts/BarChart'+import { ChartIntervals, NextPageWithLayout } from 'types'import NoPermission from 'components/ui/NoPermission'-import { useFunctionsInvStatsQuery } from 'data/analytics/functions-inv-stats-query'+import FunctionsLayout from 'components/layouts/FunctionsLayout'import { useEdgeFunctionQuery } from 'data/edge-functions/edge-function-query'-import dayjs, { Dayjs } from 'dayjs'-import { useCheckPermissions } from 'hooks'-import useFillTimeseriesSorted from 'hooks/analytics/useFillTimeseriesSorted'+import { useFunctionsInvStatsQuery } from 'data/analytics/functions-inv-stats-query'+import ReportWidget from 'components/interfaces/Reports/ReportWidget'+import BarChart from 'components/ui/Charts/BarChart'+import AreaChart from 'components/ui/Charts/AreaChart'+import { isUnixMicro, unixMicroToIsoTimestamp } from 'components/interfaces/Settings/Logs'+import meanBy from 'lodash/meanBy'import sumBy from 'lodash/sumBy'-import { observer } from 'mobx-react-lite'-import { useRouter } from 'next/router'-import { useMemo, useState } from 'react'-import { ChartIntervals, NextPageWithLayout } from 'types'-import { Button } from 'ui'+import useFillTimeseriesSorted from 'hooks/analytics/useFillTimeseriesSorted'const CHART_INTERVALS: ChartIntervals[] = [{@@ -105,7 +106,7 @@ const PageLayout: NextPageWithLayout = () => {})}</div>- <span className="text-xs text-foreground-light">+ <span className="text-xs text-scale-1000">Statistics for past {selectedInterval.label}</span></div>diff --git a/studio/pages/project/[ref]/functions/index.tsx b/studio/pages/project/[ref]/functions/index.tsxindex c1f42d31df0..4b180f754a6 100644--- a/studio/pages/project/[ref]/functions/index.tsx+++ b/studio/pages/project/[ref]/functions/index.tsx@@ -41,7 +41,7 @@ const PageLayout: NextPageWithLayout = () => {{hasFunctions ? (<div className="py-6 space-y-4"><div className="flex justify-between items-center">- <span className="text-sm text-foreground-lighter">{`${functions.length} function${+ <span className="text-sm text-scale-900">{`${functions.length} function${functions.length > 1 ? 's' : ''} deployed`}</span><Button type="primary" onClick={() => setShowTerminalInstructions(true)}>diff --git a/studio/pages/project/[ref]/logs/explorer/recent.tsx b/studio/pages/project/[ref]/logs/explorer/recent.tsxindex 2e2d3c06695..72917678f32 100644--- a/studio/pages/project/[ref]/logs/explorer/recent.tsx+++ b/studio/pages/project/[ref]/logs/explorer/recent.tsx@@ -50,8 +50,8 @@ export const LogsSavedPage: NextPageWithLayout = () => {<><div className="my-auto flex h-full flex-grow flex-col items-center justify-center gap-1"><IconClock className="animate-bounce" />- <h3 className="text-lg text-foreground">No Recent Queries Yet</h3>- <p className="text-sm text-foreground-lighter">+ <h3 className="text-lg text-scale-1200">No Recent Queries Yet</h3>+ <p className="text-sm text-scale-900">Your recent queries run from the{' '}<Link href={`/project/${ref}/logs/explorer`}><span className="cursor-pointer font-bold underline">Query</span>diff --git a/studio/pages/project/[ref]/logs/explorer/saved.tsx b/studio/pages/project/[ref]/logs/explorer/saved.tsxindex b40313517ea..b327cec4755 100644--- a/studio/pages/project/[ref]/logs/explorer/saved.tsx+++ b/studio/pages/project/[ref]/logs/explorer/saved.tsx@@ -48,8 +48,8 @@ export const LogsSavedPage: NextPageWithLayout = () => {{saved.length === 0 && (<div className="my-auto flex h-full flex-grow flex-col items-center justify-center gap-1"><IconSave className="animate-bounce" />- <h3 className="text-lg text-foreground">No Saved Queries Yet</h3>- <p className="text-sm text-foreground-lighter">+ <h3 className="text-lg text-scale-1200">No Saved Queries Yet</h3>+ <p className="text-sm text-scale-900">Saved queries will appear here. Queries can be saved from the{' '}<Link href={`/project/${ref}/logs/explorer`}><span className="cursor-pointer font-bold underline">Query</span>diff --git a/studio/pages/project/[ref]/reports/database.tsx b/studio/pages/project/[ref]/reports/database.tsxindex 77ac07a0262..fcec21f4fc3 100644--- a/studio/pages/project/[ref]/reports/database.tsx+++ b/studio/pages/project/[ref]/reports/database.tsx@@ -79,7 +79,7 @@ const DatabaseUsage = observer(() => {{orgLevelBilling ? (<Panel.Content><div className="space-y-1">- <h5 className="text-sm text-foreground">Disk Usage</h5>+ <h5 className="text-sm text-scale-1200">Disk Usage</h5><SparkBartype="horizontal"value={databaseSize}@@ -103,7 +103,7 @@ const DatabaseUsage = observer(() => {{isPaidTier && (<div className="flex justify-between items-center mt-3">- <div className="flex flex-row space-x-3 text-foreground-light text-sm">+ <div className="flex flex-row space-x-3 text-scale-1000 text-sm"><Badge>Auto-Scaling</Badge></div>@@ -122,7 +122,7 @@ const DatabaseUsage = observer(() => {) : (<Panel.Content><div className="space-y-1">- <h5 className="text-sm text-foreground">Database size</h5>+ <h5 className="text-sm text-scale-1200">Database size</h5><SparkBartype="horizontal"value={databaseSize}@@ -142,7 +142,7 @@ const DatabaseUsage = observer(() => {{isPaidTier && (<div className="flex justify-between items-center mt-3">- <div className="flex flex-row space-x-3 text-foreground-light text-sm">+ <div className="flex flex-row space-x-3 text-scale-1000 text-sm">{usage?.disk_volume_size_gb && (<span>Disk Size: {usage.disk_volume_size_gb} GB</span>)}@@ -166,7 +166,7 @@ const DatabaseUsage = observer(() => {{!orgLevelBilling && (<Panel.Content><div className="space-y-1">- <h5 className="text-sm text-foreground">Database egress</h5>+ <h5 className="text-sm text-scale-1200">Database egress</h5><SparkBartype="horizontal"value={usage?.db_egress?.usage ?? 0}@@ -188,7 +188,7 @@ const DatabaseUsage = observer(() => {{orgLevelBilling && (<Panel.Content>- <p className="text-sm text-foreground">+ <p className="text-sm text-scale-1200">Head to your{' '}<Link href={`/org/${selectedOrganization?.slug}/usage`}><a>@@ -215,13 +215,13 @@ const DatabaseUsage = observer(() => {/>{dateRange && (<div className="flex items-center space-x-2">- <p className="text-foreground-light">+ <p className="text-scale-1000">{dayjs(dateRange.period_start.date).format('MMMM D, hh:mma')}</p>- <p className="text-foreground-light">+ <p className="text-scale-1000"><IconArrowRight size={12} /></p>- <p className="text-foreground-light">+ <p className="text-scale-1000">{dayjs(dateRange.period_end.date).format('MMMM D, hh:mma')}</p></div>diff --git a/studio/pages/project/[ref]/reports/index.tsx b/studio/pages/project/[ref]/reports/index.tsxindex a853d628454..4a0f7d9fc26 100644--- a/studio/pages/project/[ref]/reports/index.tsx+++ b/studio/pages/project/[ref]/reports/index.tsx@@ -65,8 +65,8 @@ export const UserReportPage: NextPageWithLayout = () => {disabled={!canCreateReport}disabledMessage="You need additional permissions to create a report">- <p className="text-foreground-light text-sm">Create custom reports for your projects.</p>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1100 text-sm">Create custom reports for your projects.</p>+ <p className="text-scale-1100 text-sm">Get a high level overview of your network traffic, user actions, and infrastructurehealth.</p>diff --git a/studio/pages/project/[ref]/reports/query-performance.tsx b/studio/pages/project/[ref]/reports/query-performance.tsxindex 4e9f281a3c3..a8c3b156bd2 100644--- a/studio/pages/project/[ref]/reports/query-performance.tsx+++ b/studio/pages/project/[ref]/reports/query-performance.tsx@@ -66,7 +66,7 @@ const QueryPerformanceReport: NextPageWithLayout = () => {indexHitRate && tableHitRate && (indexHitRate <= 0.99 || tableHitRate <= 0.99)const headerText = (- <p className="whitespace-pre-wrap prose text-sm max-w-2xl text-foreground-light">+ <p className="whitespace-pre-wrap prose text-sm max-w-2xl text-scale-1000">Identify the queries that consume the most time and database resources.{'\n\n'}It relies on the <code>pg_stat_statements</code> table. Read more about{' '}<Link@@ -96,7 +96,7 @@ const QueryPerformanceReport: NextPageWithLayout = () => {Look for queries with high or mean execution times. These are often good candidates for optimization.`const panelClassNames = 'text-sm max-w-none flex flex-col gap-8 py-4'- const helperTextClassNames = 'prose text-sm max-w-2xl text-foreground-light'+ const helperTextClassNames = 'prose text-sm max-w-2xl text-scale-1000'return (<ReportPadding>@@ -155,7 +155,7 @@ const QueryPerformanceReport: NextPageWithLayout = () => {</div></div><div className="px-8 pt-4 m-0">- <p className="text-foreground-light text-sm max-w-2xl">+ <p className="text-scale-1100 text-sm max-w-2xl">For best performance, ensure that the cache hit rate ratios above 99%. <br />{' '}Consider upgrading to an instance with more memory if the ratios dip below 95%.</p>diff --git a/studio/pages/project/[ref]/settings/api.tsx b/studio/pages/project/[ref]/settings/api.tsxindex 99c3b18c49d..295c9f848e2 100644--- a/studio/pages/project/[ref]/settings/api.tsx+++ b/studio/pages/project/[ref]/settings/api.tsx@@ -14,10 +14,10 @@ const ApiSettings: NextPageWithLayout = () => {<ServiceList />) : (<div>- <h3 className="mb-6 text-xl text-foreground">API Settings</h3>+ <h3 className="mb-6 text-xl text-scale-1200">API Settings</h3><div className="flex items-center justify-center rounded border border-scale-400 bg-scale-300 p-8"><IconAlertCircle strokeWidth={1.5} />- <p className="text-sm text-foreground-light ml-2">+ <p className="text-sm text-scale-1100 ml-2">API settings are unavailable as the project is not active</p></div>diff --git a/studio/pages/project/[ref]/settings/billing/invoices.tsx b/studio/pages/project/[ref]/settings/billing/invoices.tsxindex a07620a782c..ca536f73645 100644--- a/studio/pages/project/[ref]/settings/billing/invoices.tsx+++ b/studio/pages/project/[ref]/settings/billing/invoices.tsx@@ -2,11 +2,11 @@ import Link from 'next/link'import { Invoices } from 'components/interfaces/BillingV2'import { SettingsLayout } from 'components/layouts'-import InformationBox from 'components/ui/InformationBox'import { useSelectedOrganization } from 'hooks'+import { NextPageWithLayout } from 'types'import { useRouter } from 'next/router'import { useEffect } from 'react'-import { NextPageWithLayout } from 'types'+import InformationBox from 'components/ui/InformationBox'import { Button, IconExternalLink, IconInfo } from 'ui'const ProjectBilling: NextPageWithLayout = () => {@@ -87,7 +87,7 @@ const Settings = () => {<h4 className="text-lg">Invoices</h4>- <div className="text-sm text-foreground-light">+ <div className="text-sm text-scale-1000">To manage your billing address, emails or Tax ID, head to your{' '}<Link href={`/org/${orgSlug}/billing`} passHref><a className="text-sm text-green-900 transition hover:text-green-1000">diff --git a/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx b/studio/pages/project/[ref]/storage/buckets/[bucketId].tsxindex ee97c0bd770..99dde9c3777 100644--- a/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx+++ b/studio/pages/project/[ref]/storage/buckets/[bucketId].tsx@@ -1,6 +1,6 @@-import { useParams } from 'common'import { find } from 'lodash'import { observer } from 'mobx-react-lite'+import { useParams } from 'common'import { StorageLayout } from 'components/layouts'import { useProjectContext } from 'components/layouts/ProjectLayout/ProjectContext'@@ -26,7 +26,7 @@ const PageLayout: NextPageWithLayout = () => {{isSuccess ? (!bucket ? (<div className="flex h-full w-full items-center justify-center">- <p className="text-sm text-foreground-light">Bucket {bucketId} cannot be found</p>+ <p className="text-sm text-scale-1100">Bucket {bucketId} cannot be found</p></div>) : (// @ts-ignorediff --git a/studio/pages/project/[ref]/storage/buckets/index.tsx b/studio/pages/project/[ref]/storage/buckets/index.tsxindex 072f853fb75..cb611229f85 100644--- a/studio/pages/project/[ref]/storage/buckets/index.tsx+++ b/studio/pages/project/[ref]/storage/buckets/index.tsx@@ -26,10 +26,10 @@ const PageLayout: NextPageWithLayout = () => {infoButtonLabel="About storage"infoButtonUrl="https://supabase.com/docs/guides/storage">- <p className="text-foreground-light text-sm">+ <p className="text-scale-1100 text-sm">Create buckets to store and serve any type of digital content.</p>- <p className="text-foreground-light text-sm">+ <p className="text-scale-1100 text-sm">Make your buckets private or public depending on your security preference.</p></ProductEmptyState>diff --git a/studio/pages/reset-password.tsx b/studio/pages/reset-password.tsxindex 3778991fb82..1336eaef9c0 100644--- a/studio/pages/reset-password.tsx+++ b/studio/pages/reset-password.tsx@@ -12,9 +12,9 @@ const ResetPasswordPage: NextPageWithLayout = () => {</div><div className="my-8 self-center text-sm">- <span className="text-foreground-light">Already have an account?</span>{' '}+ <span className="text-scale-1100">Already have an account?</span>{' '}<Link href="/sign-in">- <a className="underline hover:text-foreground-light">Sign In</a>+ <a className="underline hover:text-scale-1100">Sign In</a></Link></div></>diff --git a/studio/pages/sign-in-sso.tsx b/studio/pages/sign-in-sso.tsxindex fe1896dfc5b..45cbe1b0827 100644--- a/studio/pages/sign-in-sso.tsx+++ b/studio/pages/sign-in-sso.tsx@@ -1,5 +1,6 @@import SignInSSOForm from 'components/interfaces/SignIn/SignInSSOForm'import { SignInLayout } from 'components/layouts'+import Link from 'next/link'import { NextPageWithLayout } from 'types'const SignInSSOPage: NextPageWithLayout = () => {@@ -11,11 +12,11 @@ const SignInSSOPage: NextPageWithLayout = () => {<div className="my-8 self-center text-sm"><div>- <span className="text-foreground-light">Interested in SSO?</span>{' '}+ <span className="text-scale-1000">Interested in SSO?</span>{' '}<ahref="https://supabase.com/contact/enterprise"rel="noopener noreferrer"- className="underline text-foreground hover:text-foreground-light transition"+ className="underline text-scale-1200 hover:text-scale-1100 transition">Let Us Know</a>diff --git a/studio/pages/sign-in.tsx b/studio/pages/sign-in.tsxindex fd2a4f46288..1fcb8f41d84 100644--- a/studio/pages/sign-in.tsx+++ b/studio/pages/sign-in.tsx@@ -29,7 +29,7 @@ const SignInPage: NextPageWithLayout = () => {<div className="w-full border-t border-scale-700" /></div><div className="relative flex justify-center text-sm">- <span className="px-2 text-sm bg-scale-200 text-foreground">or</span>+ <span className="px-2 text-sm bg-scale-200 text-scale-1200">or</span></div></div>@@ -38,9 +38,9 @@ const SignInPage: NextPageWithLayout = () => {<div className="self-center my-8 text-sm"><div>- <span className="text-foreground-light">Don't have an account?</span>{' '}+ <span className="text-scale-1000">Don't have an account?</span>{' '}<Link href="/sign-up">- <a className="underline transition text-foreground hover:text-foreground-light">+ <a className="underline transition text-scale-1200 hover:text-scale-1100">Sign Up Now</a></Link>diff --git a/studio/pages/sign-up.tsx b/studio/pages/sign-up.tsxindex 9e63bd0fce9..5770049599e 100644--- a/studio/pages/sign-up.tsx+++ b/studio/pages/sign-up.tsx@@ -15,7 +15,7 @@ const SignUpPage: NextPageWithLayout = () => {<div className="w-full border-t border-scale-700" /></div><div className="relative flex justify-center text-sm">- <span className="bg-scale-200 px-2 text-sm text-foreground">or</span>+ <span className="bg-scale-200 px-2 text-sm text-scale-1200">or</span></div></div>@@ -23,11 +23,9 @@ const SignUpPage: NextPageWithLayout = () => {</div><div className="my-8 self-center text-sm">- <span className="text-foreground-light">Have an account?</span>{' '}+ <span className="text-scale-1000">Have an account?</span>{' '}<Link href="/sign-in">- <a className="underline text-foreground hover:text-foreground-light transition">- Sign In Now- </a>+ <a className="underline text-scale-1200 hover:text-scale-1100 transition">Sign In Now</a></Link></div></>diff --git a/studio/pages/support/new.tsx b/studio/pages/support/new.tsxindex fe146593723..bfee176efd2 100644--- a/studio/pages/support/new.tsx+++ b/studio/pages/support/new.tsx@@ -74,7 +74,7 @@ const SupportPage = () => {'border border-scale-200',].join(' ')}>- <span className="text-xs text-foreground">Check Supabase status page</span>+ <span className="text-xs text-scale-1200">Check Supabase status page</span></div></Tooltip.Content></Tooltip.Portal>diff --git a/studio/pages/vercel/integrate.tsx b/studio/pages/vercel/integrate.tsxindex 3b9a466d8d8..1f2f30fd86c 100644--- a/studio/pages/vercel/integrate.tsx+++ b/studio/pages/vercel/integrate.tsx@@ -3,9 +3,10 @@ import { makeAutoObservable, runInAction } from 'mobx'import { observer, useLocalObservable } from 'mobx-react-lite'import Link from 'next/link'import { useRouter } from 'next/router'-import { ChangeEvent, createContext, useContext, useEffect, useState } from 'react'+import { ChangeEvent, createContext, FC, useContext, useEffect, useState } from 'react'import { toast } from 'react-hot-toast'+import { Button, IconChevronRight, IconPlusCircle, IconX, Listbox, Select } from 'ui'import { Dictionary } from 'components/grid'import VercelIntegrationLayout from 'components/layouts/VercelIntegrationLayout'import {@@ -17,7 +18,7 @@ import {import { databaseIcon, vercelIcon } from 'components/to-be-cleaned/ListIcons'import Loading from 'components/ui/Loading'import { useProjectsQuery } from 'data/projects/projects-query'-import { withAuth } from 'hooks'+import { useStore, withAuth } from 'hooks'import { get } from 'lib/common/fetch'import { API_URL } from 'lib/constants'import {@@ -25,7 +26,6 @@ import {VERCEL_DEFAULT_EXTERNAL_ID,VERCEL_INTEGRATION_CONFIGS,} from 'lib/vercelConfigs'-import { Button, IconChevronRight, IconPlusCircle, IconX, Listbox, Select } from 'ui'interface IVercelIntegrationStore {code: string@@ -288,7 +288,7 @@ const IntegrationProject = observer(() => {</Button></div></div>- {errorMsg && <p className="py-4 text-foreground-light">{errorMsg}</p>}+ {errorMsg && <p className="py-4 text-scale-1000">{errorMsg}</p>}</div>)})@@ -446,9 +446,9 @@ const ProjectLinks = observer(() => {<Divider light /><div className="space-y-2"><div className="flex justify-between">- <p className="text-foreground-light">Vercel Projects</p>+ <p className="text-scale-1000">Vercel Projects</p><div />- <p className="text-foreground-light">Supabase Projects</p>+ <p className="text-scale-1000">Supabase Projects</p></div><ProjectLinkList /><Divider light />@@ -485,7 +485,7 @@ const ProjectLinkList = observer(() => {</ul><div className="py-2">{_store.projectLinkRemaining == 0 ? (- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">All Vercel projects for selected scope have been added</p>) : (@@ -498,7 +498,7 @@ const ProjectLinkList = observer(() => {>{`Add another Vercel Project`}</Button>- <p className="text-sm text-foreground-light">+ <p className="text-sm text-scale-1000">{_store.projectLinkRemaining} project(s) remaining</p></div>@@ -578,7 +578,7 @@ const ProjectLinkItem = observer(</Listbox></div><div className="flex flex-shrink items-center">- <IconChevronRight className="text-foreground-light" />+ <IconChevronRight className="text-scale-1000" /></div><div className="w-1/2 flex-grow"><Listbox@@ -611,15 +611,15 @@ const ProjectLinkItem = observer(</div>)}</div>- {error && <p className="text-sm text-foreground-light">{error}</p>}+ {error && <p className="text-sm text-scale-1000">{error}</p>}{_store.waitingIntegration && result && (<pclassName={`text-sm ${result.status === 'waiting'- ? 'text-foreground-light'+ ? 'text-scale-1000': result.status === 'fail'- ? 'text-foreground-light'- : 'text-foreground'+ ? 'text-scale-1000'+ : 'text-scale-1200'}`}>{result?.message ?? 'Processing...'}diff --git a/studio/pages/vercel/setupProject.tsx b/studio/pages/vercel/setupProject.tsxindex 34c74f20ecc..8b950d33569 100644--- a/studio/pages/vercel/setupProject.tsx+++ b/studio/pages/vercel/setupProject.tsx@@ -301,7 +301,7 @@ const CreateProject = observer(() => {/>)}>- <span className="text-foreground">{label}</span>+ <span className="text-scale-1200">{label}</span></Listbox.Option>)})}diff --git a/studio/styles/code.scss b/studio/styles/code.scssindex 3009884e0a3..d679eb8e7c6 100644--- a/studio/styles/code.scss+++ b/studio/styles/code.scss@@ -16,13 +16,13 @@.token.imports,.token.property-access {- @apply text-foreground-lighter #{!important};+ @apply text-scale-900 #{!important};}.token.keyword.module,.token.function {font-style: normal !important;- @apply text-foreground-lighter #{!important};+ @apply text-scale-900 #{!important};}.token.plain,@@ -35,7 +35,7 @@.token.doc-comment.parameter.punctuation,.token.doc-comment.optional-parameter.punctuation {font-style: normal !important;- @apply text-foreground-light #{!important};+ @apply text-scale-1100 #{!important};}.token.keyword,@@ -56,7 +56,7 @@.token.comment {font-style: normal !important;- @apply text-foreground-lighter #{!important};+ @apply text-scale-900 #{!important};}.token.number {diff --git a/studio/styles/date-picker.scss b/studio/styles/date-picker.scssindex f4c101c5d46..491e5a5e1f8 100644--- a/studio/styles/date-picker.scss+++ b/studio/styles/date-picker.scss@@ -38,7 +38,7 @@}.react-datepicker__day-names {- @apply flex -space-x-px text-foreground-lighter font-normal text-center text-xs;+ @apply flex -space-x-px text-scale-900 font-normal text-center text-xs;}.react-datepicker__day-name {@@ -58,7 +58,7 @@}.react-datepicker__day {- @apply w-10 h-10 flex items-center font-normal justify-center text-sm leading-loose transition text-foreground-light;+ @apply w-10 h-10 flex items-center font-normal justify-center text-sm leading-loose transition text-scale-1100;/* @apply mb-1 py-1; */@apply -space-y-px;@apply border border-scale-500;@@ -102,5 +102,5 @@}.react-datepicker__day--highlighted {- @apply bg-brand-600 text-foreground-light;+ @apply bg-brand-600 text-scale-1100;}diff --git a/studio/styles/grid.scss b/studio/styles/grid.scssindex 0e616d6f534..831262f414a 100644--- a/studio/styles/grid.scss+++ b/studio/styles/grid.scss@@ -12,7 +12,7 @@@apply flex;@apply text-grid;@apply border-scale-400 dark:border-scale-500 border-r border-b;- @apply text-foreground;+ @apply text-scale-1200;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;@@ -477,13 +477,13 @@}.sb-grid-column-header__inner__name {- @apply text-foreground overflow-hidden overflow-ellipsis text-xs select-text;+ @apply text-scale-1200 overflow-hidden overflow-ellipsis text-xs select-text;}.sb-grid-column-header__inner__format {@apply text-xs;@apply overflow-hidden overflow-ellipsis font-normal;- @apply text-foreground-light;+ @apply text-scale-1000;}.sb-grid-column-header__inner__primary-key {diff --git a/studio/styles/main.scss b/studio/styles/main.scssindex 6cd6bb705b8..3e392282242 100644--- a/studio/styles/main.scss+++ b/studio/styles/main.scss@@ -26,7 +26,7 @@ body,#__next,.main {@apply bg-scale-200;- @apply text-foreground;+ @apply text-scale-1200;height: 100%;padding: 0;margin: 0;@@ -40,7 +40,7 @@ body,.form-group .form-text,.Form .form-text {- @apply text-foreground-lighter;+ @apply text-scale-900;}.form-group input,@@ -68,7 +68,7 @@ input.form-control,@apply rounded-md;@apply shadow-sm;@apply transition-all;- @apply text-foreground;+ @apply text-scale-1200;@apply border;@apply focus:shadow-md;@@ -131,11 +131,11 @@ input[type='submit']:hover {}input::placeholder {- @apply text-foreground-lighter;+ @apply text-scale-900;}.form-group input::placeholder {- @apply text-foreground-lighter;+ @apply text-scale-900;}.billing-input-fixed {diff --git a/studio/styles/react-data-grid-logs.scss b/studio/styles/react-data-grid-logs.scssindex a3396962b92..723030f95b7 100644--- a/studio/styles/react-data-grid-logs.scss+++ b/studio/styles/react-data-grid-logs.scss@@ -1,7 +1,7 @@.data-grid--simple-logs {.rdg-cell,.rdg-cell span {- @apply text-foreground-light font-normal #{!important};+ @apply text-scale-1100 font-normal #{!important};border-left: none;border-right: none;}@@ -21,7 +21,7 @@&.rdg-row--focused .rdg-cell,&.rdg-row--focused .rdg-cell span {- @apply text-foreground font-semibold #{!important};+ @apply text-scale-1200 font-semibold #{!important};}}}@@ -31,7 +31,7 @@.rdg-cell,.rdg-cell span {- @apply text-foreground-light font-normal #{!important};+ @apply text-scale-1100 font-normal #{!important};}.rdg-cell:first-child {@@ -49,7 +49,7 @@&.rdg-row--focused .rdg-cell,&.rdg-row--focused .rdg-cell span {- @apply text-foreground-light font-semibold #{!important};+ @apply text-scale-1100 font-semibold #{!important};}}}diff --git a/studio/styles/ui.scss b/studio/styles/ui.scssindex c64e59460bb..afe63893d05 100644--- a/studio/styles/ui.scss+++ b/studio/styles/ui.scss@@ -33,7 +33,7 @@// TO DO: REMOVE.form-group label {- @apply inline-block text-foreground-light text-sm py-2;+ @apply inline-block text-scale-1100 text-sm py-2;width: 33%;align-self: top;}@@ -54,7 +54,7 @@.Form .form-text,.Form .form-error {- @apply block text-sm text-foreground-lighter my-1;+ @apply block text-sm text-scale-900 my-1;display: block;margin-left: calc(33% + 0.5rem);width: 100%;@@ -118,7 +118,7 @@}.table-container thead th {- @apply text-foreground-light font-normal text-sm;+ @apply text-scale-1100 font-normal text-sm;@apply bg-table-header-light dark:bg-table-header-dark;@apply border-t border-b border-table-border-light dark:border-table-border-dark;}@@ -276,7 +276,7 @@max-width: 50%;h4 {- @apply uppercase font-normal m-1 p-0 text-sm text-foreground-light;+ @apply uppercase font-normal m-1 p-0 text-sm text-scale-1100;}h4:not(:first-child) {diff --git a/studio/tests/pages/projects/LogsPreviewer.test.js b/studio/tests/pages/projects/LogsPreviewer.test.jsindex 2aed28883f3..f395cfd902b 100644--- a/studio/tests/pages/projects/LogsPreviewer.test.js+++ b/studio/tests/pages/projects/LogsPreviewer.test.js@@ -40,15 +40,9 @@ beforeEach(() => {// in the event that log metadata is not available, fall back to default renderer// generate test cases for each query typeconst defaultRendererFallbacksCases = [- 'api',- 'database',- 'auth',- 'pgbouncer',- 'postgrest',- 'storage',- 'realtime',+ 'api', 'database', 'auth', 'pgbouncer', 'postgrest', 'storage', 'realtime'].map((queryType) => ({- testName: 'fallback to default render',+ testName: "fallback to default render",queryType,tableName: undefined,tableLog: logDataFixture({@@ -110,6 +104,7 @@ test.each([],},{+queryType: 'auth',tableName: undefined,tableLog: logDataFixture({@@ -142,7 +137,7 @@ test.each([},...defaultRendererFallbacksCases,// these all use teh default selection/table renderers- ...['pgbouncer', 'postgrest', 'storage', 'realtime', 'supavisor'].map((queryType) => ({+ ...['pgbouncer', 'postgrest', 'storage', 'realtime', "supavisor"].map((queryType) => ({queryType,tableName: undefined,tableLog: logDataFixture({@@ -259,24 +254,6 @@ test('poll count for new messages', async () => {await waitFor(() => screen.queryByText(/999/) === null)await screen.findByText(/some-uuid123/)})--test('stop polling for new count on error', async () => {- get.mockImplementation((url) => {- if (url.includes('count')) {- return { result: [{ count: 999 }] }- }- return {- error: [{ message: 'some logflare error' }],- }- })- render(<LogsPreviewer projectRef="123" tableName={LogsTableName.EDGE} />)- await waitFor(() => screen.queryByText(/some-uuid123/) === null)- // should display error- await screen.findByText(/some logflare error/)- // should not load refresh counts if no data from main query- await expect(screen.findByText(/999/)).rejects.toThrowError()-})-test('log event chart', async () => {get.mockImplementation((url) => {// truncate