Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

One more UI update

Joshen Limb32d9bd36505
diff --git a/studio/components/interfaces/Account/NewAccessTokenButton.tsx b/studio/components/interfaces/Account/NewAccessTokenButton.tsx
index 5c2a74caecd..4c71655d9f0 100644
--- a/studio/components/interfaces/Account/NewAccessTokenButton.tsx
+++ b/studio/components/interfaces/Account/NewAccessTokenButton.tsx
@@ -1,8 +1,9 @@
import { useState } from 'react'
-import { Input, Button, Modal, Form, Alert, IconChevronDown, Dropdown } from 'ui'
+import { Input, Button, Modal, Form, Alert, IconChevronDown, Dropdown, IconExternalLink } from 'ui'
import { useStore } from 'hooks'
import { useAccessTokenCreateMutation } from 'data/access-tokens/access-tokens-create-mutation'
import { observer } from 'mobx-react-lite'
+import Link from 'next/link'
export interface NewAccessTokenButtonProps {
onCreateToken: (token: any) => void
@@ -106,9 +107,21 @@ const NewAccessTokenButton = observer(({ onCreateToken }: NewAccessTokenButtonPr
<Alert
withIcon
variant="warning"
- title="The experimental API provides endpoints that can delete your organizations and projects."
+ title="The experimental API provides additional endpoints which allows you to manage your organizations and projects."
>
- These actions cannot be undone and hence, is reserved for advanced users only.
+ <p>
+ These include deleting organizations and projects which cannot be undone. As
+ such, be very careful when using this API.
+ </p>
+ <div className="mt-4">
+ <Link href="https://api.supabase.com/api/v0">
+ <a target="_blank">
+ <Button type="default" icon={<IconExternalLink strokeWidth={1.5} />}>
+ Experimental API documentation
+ </Button>
+ </a>
+ </Link>
+ </div>
</Alert>
</Modal.Content>
)}
diff --git a/studio/pages/account/tokens.tsx b/studio/pages/account/tokens.tsx
index 8559b7bab1c..a7f85064b93 100644
--- a/studio/pages/account/tokens.tsx
+++ b/studio/pages/account/tokens.tsx
@@ -9,6 +9,9 @@ import {
} from 'components/interfaces/Account'
import { NewAccessToken } from 'data/access-tokens/access-tokens-create-mutation'
+import Link from 'next/link'
+import { Button, IconExternalLink } from 'ui'
+
const UserAccessTokens: NextPageWithLayout = () => {
const [newToken, setNewToken] = useState<NewAccessToken | undefined>()
@@ -19,7 +22,23 @@ const UserAccessTokens: NextPageWithLayout = () => {
title="Access Tokens"
description="Personal access tokens can be used with our management API or the Supabase CLI"
/>
- <div className="flex items-center space-x-4">
+ <div className="flex items-center space-x-4 mb-6">
+ <div className="flex items-center space-x-2">
+ <Link href="https://supabase.com/docs/reference/api/introduction">
+ <a target="_blank">
+ <Button type="default" icon={<IconExternalLink strokeWidth={1.5} />}>
+ API Docs
+ </Button>
+ </a>
+ </Link>
+ <Link href="https://supabase.com/docs/reference/cli/start">
+ <a target="_blank">
+ <Button type="default" icon={<IconExternalLink strokeWidth={1.5} />}>
+ CLI docs
+ </Button>
+ </a>
+ </Link>
+ </div>
<NewAccessTokenButton onCreateToken={setNewToken} />
</div>
</div>