diff --git a/studio/components/interfaces/Database/Hooks/CreateHook/index.tsx b/studio/components/interfaces/Database/Hooks/CreateHook/index.tsx index 1821fdaa2d7..6bd292ccbce 100644 --- a/studio/components/interfaces/Database/Hooks/CreateHook/index.tsx +++ b/studio/components/interfaces/Database/Hooks/CreateHook/index.tsx @@ -415,7 +415,7 @@ const CreateHook: FC = ({ hook, visible = true, setVisible }) =
-
HTTP Headers
+
HTTP Headers
Read only
@@ -442,6 +442,10 @@ const CreateHook: FC = ({ hook, visible = true, setVisible }) = )}
+

+ Note: You can only edit a webhook's name and mode. To change + other settings, you'll need to delete and recreate the webhook. +

)} @@ -450,7 +454,7 @@ const CreateHook: FC = ({ hook, visible = true, setVisible }) =
-
HTTP Parameters
+
HTTP Parameters
Read only
@@ -487,13 +491,13 @@ const CreateHook: FC = ({ hook, visible = true, setVisible }) =
-
Conditions to fire hook
+
Conditions to fire hook
-
Type of hook
+
Type of hook
diff --git a/studio/components/interfaces/Functions/FunctionsEmptyState.tsx b/studio/components/interfaces/Functions/FunctionsEmptyState.tsx index fc9e4c12eac..607529dabd0 100644 --- a/studio/components/interfaces/Functions/FunctionsEmptyState.tsx +++ b/studio/components/interfaces/Functions/FunctionsEmptyState.tsx @@ -1,11 +1,11 @@ import Link from 'next/link' -import { Button, IconBookOpen } from '@supabase/ui' +import { Button, IconBookOpen, IconCode } from '@supabase/ui' import TerminalInstructions from './TerminalInstructions' const FunctionsEmptyState = () => { return ( <> -
+

Scalable functions to run your code with no server management. @@ -21,6 +21,14 @@ const FunctionsEmptyState = () => { Documentation + + +

diff --git a/studio/components/interfaces/Functions/TerminalInstructions.tsx b/studio/components/interfaces/Functions/TerminalInstructions.tsx index ead46f004d5..d2097c24fcd 100644 --- a/studio/components/interfaces/Functions/TerminalInstructions.tsx +++ b/studio/components/interfaces/Functions/TerminalInstructions.tsx @@ -1,11 +1,19 @@ import { useRouter } from 'next/router' -import { Button, IconTerminal, IconMaximize2, IconMinimize2 } from '@supabase/ui' +import { + Button, + IconTerminal, + IconMaximize2, + IconMinimize2, + IconBookOpen, + IconCode, +} from '@supabase/ui' import { useProjectSettings } from 'hooks' import { useAccessTokens } from 'hooks/queries/useAccessTokens' import { Commands } from './Functions.types' import CommandRender from 'components/interfaces/Functions/CommandRender' import { FC, useState } from 'react' import { useStore } from 'hooks' +import Link from 'next/link' interface Props { closable?: boolean @@ -85,13 +93,13 @@ const TerminalInstructions: FC = ({ closable = false }) => { return (
-
+
-
+

Terminal instructions

@@ -111,7 +119,7 @@ const TerminalInstructions: FC = ({ closable = false }) => {
{tokens && tokens.length === 0 ? ( -
+

You may need to create an access token

@@ -122,7 +130,31 @@ const TerminalInstructions: FC = ({ closable = false }) => { Access tokens

- ) : null} + ) : ( +
+
+

Need help?

+

+ Read the documentation, or browse some sample code. +

+
+
+ + + + + + +
+
+ )}
) } diff --git a/studio/components/interfaces/SQLEditor/TabSqlQuery/FavouriteButton.tsx b/studio/components/interfaces/SQLEditor/TabSqlQuery/FavouriteButton.tsx index a1dc3e3b6a1..7e3784e16f2 100644 --- a/studio/components/interfaces/SQLEditor/TabSqlQuery/FavouriteButton.tsx +++ b/studio/components/interfaces/SQLEditor/TabSqlQuery/FavouriteButton.tsx @@ -1,7 +1,7 @@ import { observer } from 'mobx-react-lite' import { useState } from 'react' import { Button, IconHeart } from '@supabase/ui' - +import * as Tooltip from '@radix-ui/react-tooltip' import { useStore } from 'hooks' import Telemetry from 'lib/telemetry' import { useSqlStore } from 'localStores/sqlEditor/SqlEditorStore' @@ -99,27 +99,36 @@ const FavouriteButton = () => { } } + const isFavorite = sqlEditorStore.activeTab.favorite + return ( <> - {sqlEditorStore.activeTab.favorite ? ( -
-

Getting Started

+

API URL

-

Your API consists of both a RESTful interface and a realtime interface.

-

- For interacting with the realtime streams, we provide client libraries that handle the - websockets. -

+

The API URL for your project.

{ } return ( -
+
{ return (

- Click RUN to execute your query. + Click RUN or hit{' '} + {window.navigator.platform.match(/^Mac/) ? 'cmd' : 'ctrl'} + ⏎ to execute + your query.

)