The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add links to audit logs to all nav panels and dropdowns.
Ivan Vasilov4b6a0f1ac34d
diff --git a/studio/components/layouts/AccountLayout/AccountLayout.tsx b/studio/components/layouts/AccountLayout/AccountLayout.tsxindex f9e308a04b3..f4f77fda73a 100644--- a/studio/components/layouts/AccountLayout/AccountLayout.tsx+++ b/studio/components/layouts/AccountLayout/AccountLayout.tsx@@ -81,13 +81,6 @@ const AccountLayout = ({ children, title, breadcrumbs }: PropsWithChildren<Accouhref: `/account/me`,key: `/account/me`,},- {- isActive: router.pathname === `/account/audit`,- icon: `${router.basePath}/img/user.svg`,- label: 'Audit Logs',- href: `/account/audit`,- key: `/account/audit`,- },{isActive: router.pathname === `/account/tokens`,icon: `${router.basePath}/img/user.svg`,@@ -108,6 +101,13 @@ const AccountLayout = ({ children, title, breadcrumbs }: PropsWithChildren<Accou},]: []),+ {+ isActive: router.pathname === `/account/audit`,+ icon: `${router.basePath}/img/user.svg`,+ label: 'Audit Logs',+ href: `/account/audit`,+ key: `/account/audit`,+ },],},]diff --git a/studio/components/layouts/AppLayout/UserSettingsDropdown.tsx b/studio/components/layouts/AppLayout/UserSettingsDropdown.tsxindex 19871d5866f..6cc7cc475d0 100644--- a/studio/components/layouts/AppLayout/UserSettingsDropdown.tsx+++ b/studio/components/layouts/AppLayout/UserSettingsDropdown.tsx@@ -56,9 +56,6 @@ const UserSettingsDropdown = () => {<Link passHref href="/account/me"><DropdownMenuItem_Shadcn_className="cursor-pointer"- onSelect={() => {- router.push('/account/me')- }}onClick={() => setOpen(false)}asChild>@@ -68,15 +65,21 @@ const UserSettingsDropdown = () => {<Link passHref href="/account/tokens"><DropdownMenuItem_Shadcn_className="cursor-pointer"- onSelect={() => {- router.push('/account/tokens')- }}onClick={() => setOpen(false)}asChild><a>Access tokens</a></DropdownMenuItem_Shadcn_></Link>+ <Link passHref href="/account/audit">+ <DropdownMenuItem_Shadcn_+ className="cursor-pointer"+ onClick={() => setOpen(false)}+ asChild+ >+ <a>Audit logs</a>+ </DropdownMenuItem_Shadcn_>+ </Link><DropdownMenuSeparator_Shadcn_ /><DropdownMenuItem_Shadcn_className="cursor-pointer"diff --git a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsxindex 52c1554eab0..614154776f3 100644--- a/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx+++ b/studio/components/layouts/ProjectLayout/NavigationBar/NavigationBar.tsx@@ -10,7 +10,6 @@ import { detectOS } from 'lib/helpers'import {Button,Dropdown,- IconBookOpen,IconCommand,IconHome,IconSearch,@@ -147,14 +146,6 @@ const NavigationBar = () => {Account Preferences</Dropdown.Item></Link>- <Link href="/account/audit">- <Dropdown.Item- key="header"- icon={<IconBookOpen size={14} strokeWidth={1.5} />}- >- Audit Logs- </Dropdown.Item>- </Link><Dropdown.Separator /></>)}