From ebb899c4d5dddf9bfa98e9f7a4346e4ef1c6a591 Mon Sep 17 00:00:00 2001 From: Terry Sutton Date: Fri, 23 Sep 2022 12:21:34 -0230 Subject: [PATCH 1/7] Update webhook warning --- .../interfaces/Database/Hooks/CreateHook/index.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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
From 7f5d646e94b13b11feb807f043c1bc7586d5dd5d Mon Sep 17 00:00:00 2001 From: Terry Sutton Date: Fri, 23 Sep 2022 12:49:52 -0230 Subject: [PATCH 2/7] Sort the list of tables in the api docs --- studio/components/layouts/DocsLayout/DocsLayout.utils.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx b/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx index 38a28bb7186..a169b513dae 100644 --- a/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx +++ b/studio/components/layouts/DocsLayout/DocsLayout.utils.tsx @@ -34,7 +34,7 @@ export const generateDocsMenu = ( url: `/project/${ref}/api?page=tables-intro`, items: [], }, - ...tables.map((table) => { + ...tables.sort().map((table) => { return { name: table, key: table, From 79c3385de9c22a997e324ba5477485ad0b39949d Mon Sep 17 00:00:00 2001 From: Terry Sutton Date: Fri, 23 Sep 2022 12:50:02 -0230 Subject: [PATCH 3/7] Add tooltip to SQL favourite button --- .../SQLEditor/TabSqlQuery/FavouriteButton.tsx | 49 +++++++++++-------- 1 file changed, 29 insertions(+), 20 deletions(-) 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 ? ( - + + +
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. +

+
+
+ + + + + + +
+
+ )}
) } From 740569607dc7a8cd7db38fb5ce3bad882f737c28 Mon Sep 17 00:00:00 2001 From: Terry Sutton Date: Fri, 23 Sep 2022 13:14:38 -0230 Subject: [PATCH 5/7] Add cmd return to sql instruction --- studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js b/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js index 2b46001a02b..97da82a85ac 100644 --- a/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js +++ b/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js @@ -183,7 +183,7 @@ const MonacoEditor = ({ error, updateSqlSnippet, setUpdatingRequired }) => { } return ( -
+
{ return (

- Click RUN to execute your query. + Click RUN or hit cmd/ctrl + return to execute your query.

) From ad188db2fcd399c7dc56de0a949b7e2caf2c8829 Mon Sep 17 00:00:00 2001 From: Terry Sutton Date: Fri, 23 Sep 2022 13:20:21 -0230 Subject: [PATCH 6/7] Remove duplicated Getting Started section from api docs --- .../components/to-be-cleaned/Docs/Pages/Introduction.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/studio/components/to-be-cleaned/Docs/Pages/Introduction.js b/studio/components/to-be-cleaned/Docs/Pages/Introduction.js index 4c99d469592..39ffb158499 100644 --- a/studio/components/to-be-cleaned/Docs/Pages/Introduction.js +++ b/studio/components/to-be-cleaned/Docs/Pages/Introduction.js @@ -24,14 +24,10 @@ export default function Introduction({ autoApiService, selectedLang }) {
-

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.

Date: Mon, 26 Sep 2022 11:06:55 -0230 Subject: [PATCH 7/7] Check for OS --- studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js b/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js index 97da82a85ac..ed250a9b1f0 100644 --- a/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js +++ b/studio/components/to-be-cleaned/SqlEditor/TabSqlQuery.js @@ -289,7 +289,9 @@ const UtilityTabResults = observer(() => { return (

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

)