The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Expose access tokens page on dashboard and update a bit of styling
Joshen Lim6b31e8d15a92
diff --git a/studio/components/interfaces/Account/NewAccessTokenButton.tsx b/studio/components/interfaces/Account/NewAccessTokenButton.tsxindex 525492750ad..5cc2120fe32 100644--- a/studio/components/interfaces/Account/NewAccessTokenButton.tsx+++ b/studio/components/interfaces/Account/NewAccessTokenButton.tsx@@ -1,5 +1,5 @@import { FC, useState } from 'react'-import { Input, Button, Modal, Form } from '@supabase/ui'+import { Input, Button, Modal, Form, Alert } from '@supabase/ui'import { useStore } from 'hooks'import { post } from 'lib/common/fetch'import { API_URL } from 'lib/constants'@@ -101,15 +101,21 @@ interface NewTokenItemProps {const NewTokenItem: FC<NewTokenItemProps> = observer(({ data }) => {return (- <Input- label="Successfully generated a new token!"- readOnly- copy={true}- className="input-mono max-w-xl"- disabled- value={data.token}- onChange={() => {}}- descriptionText="This token never will be displayed again."- />+ <Alert withIcon variant="success" title="Successfully generated a new token!">+ <div className="w-full space-y-2">+ <p className="text-sm">+ Do copy this access token and store it in a secure place - you will not be able to see it+ again.+ </p>+ <Input+ readOnly+ size="small"+ copy={true}+ className="input-mono max-w-xl"+ value={data.token}+ onChange={() => {}}+ />+ </div>+ </Alert>)})diff --git a/studio/components/layouts/AccountLayout/AccountLayout.tsx b/studio/components/layouts/AccountLayout/AccountLayout.tsxindex 43f933c9056..4e91a52eb55 100644--- a/studio/components/layouts/AccountLayout/AccountLayout.tsx+++ b/studio/components/layouts/AccountLayout/AccountLayout.tsx@@ -74,13 +74,13 @@ const AccountLayout = ({ children, title, breadcrumbs }: any) => {href: `/account/me`,key: `/account/me`,},- // {- // isActive: router.pathname == `/account/tokens`,- // icon: '/img/user.svg',- // label: 'Tokens',- // href: `/account/tokens`,- // key: `/account/tokens`,- // },+ {+ isActive: router.pathname == `/account/tokens`,+ icon: '/img/user.svg',+ label: 'Access Tokens',+ href: `/account/tokens`,+ key: `/account/tokens`,+ },logoutLink,],},