Commit Graph
655 Commits
Author SHA1 Message Date
Ivan VasilovandJoshen Lim dbccdf8beb Add support for scopes oAuth apps (#17976)
* Bump @supabase/shared-types.

* Add scopes parameter to all queries and mutations.

* Refactor the publish app side panel to include scopes.

* Refactor the authorize page to show the app scopes.

* Remove a console.log.

* Address all feedback.

* Simplify the scope rendering.

* Simplify the scopes wording when creating an app.

* Make the modal a bit wider so that some of the text doesn't overflow.

* Add docs url to oauth scopes

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-10-17 13:07:02 +08:00
Joshen Lim 317a177b5d Support temp enable db writes (#18249) 2023-10-17 09:45:43 +08:00
Ivan Vasilov 3d70a1cdca Revert "Chore/support temp enable db writes (#18171)" (#18229)
This reverts commit d200ed9414.
2023-10-16 10:55:43 +02:00
Joshen LimandIvan Vasilov d200ed9414 Chore/support temp enable db writes (#18171)
* Deprecate old project-read-only-query and add temp-disable-read-only-mode-mutation

* Scaffold enable writes UI

* Implement temp enable writes

* Bump @supabase/shared-types.

* Add scopes parameter to all queries and mutations.

* Refactor the publish app side panel to include scopes.

* Refactor the authorize page to show the app scopes.

* Remove a console.log.

* Address all feedback.

* Simplify the scope rendering.

* Simplify the scopes wording when creating an app.

* Make the modal a bit wider so that some of the text doesn't overflow.

* Add URL to docs for oauth apps scopes

* Remove unnecessary async await

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-10-16 13:52:42 +08:00
3dca7ff61c feat: disable features (#17553)
* feat: groundwork for disabling features

* update to use profile endpoint & disable features

* fix ts error

* add useIsFeatureEnabled mock

* fix merge conflicts

* fix test

* upgrade to pro

* prettier

* add more billing enabled feature checks

* disable more stuff

* update useIsFeatureEnabled hook

* Fix database reports disk size

* Fix database reports disk size

* disable log sources

* disable moar things

* Tiny fix

---------

Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-10-16 12:59:36 +08:00
Monica KhouryandKevin Grüneberg 0c3c3673ab Fix: schema on create index page (#18151)
* Fix: schema on create index page

* Fix Deploy issues

* Remove space

Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>

* Remove line break

Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>

* Removed unecessary console import

---------

Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
2023-10-13 11:47:51 +08:00
Joshen LimandSteve Chavez 0bd81110f2 Chore/service status indications (#17693)
* Midway adding queries for service statues

* Add service status check react queries for postgrest, storage and auth

* Add service status check for realtime and postgres

* Simplify loading and all services operational logic

* Update based on feedback

* Small fix

* Hide status checks for auth and realtime if api key not available

* Update studio/components/interfaces/Home/ServiceStatus.tsx

Co-authored-by: Steve Chavez <stevechavezast@gmail.com>

* Use new endpoints to check auth storage realtime rest service status, and deprecate unused RQs

* Add health check for edge functions

* Add ts-ignore

* Small fix

* Remove unnecessary param in edge functions status query

* Add comment RE troubleshooting docs

---------

Co-authored-by: Steve Chavez <stevechavezast@gmail.com>
2023-10-12 11:47:38 +08:00
angelico 19746b1245 chore: reinstate backup download button (#18070) 2023-10-11 14:42:46 +08:00
Ivan VasilovandAlaister Young 5ac5e20fd8 chore: Remove ProjectContent mobx store (#18044)
* Migrate the saved logs page to use RQ.

* Remove ProjectContentStore and replace its functionalities with useLocalStorage and RQ API calls.

* remove console.logs

* add useLocalStorage mock

* Filter only the log data.

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2023-10-10 11:22:30 +02:00
Joshen LimandTerry Sutton 69d16750a6 Feat/enum types management (#17953)
* Set up react queries for enumerated types

* Add delete enumerated type RQ

* Implement types UI + deleting types

* Implement create enumerated type

* Implement update enumerated type

* Tidy enumb dropdown in table editor

* Fix default value dropdown for enum in column editor

* Remove unused code

* Add create enum type cta in column editor

* Support updating enum description

* Add learn more URL RE inability to delete a single enum value

* Add sorting when creating enums

* Support updating existing values in an enum type

* Support updating order when editing existing enum

* Address comments part 1

* Address comments part 2

* Use lucide icons

* Update icons

* Address comments part 3

* Refactor enum type forms to use react hook form

* Update studio/components/interfaces/Database/EnumeratedTypes/EditEnumeratedTypeSidePanel.tsx

* Update studio/components/interfaces/Database/EnumeratedTypes/EditEnumeratedTypeSidePanel.tsx

* Copy

* Small style fix to API panel

* Use new input components and add alert when creating enum type

* Address comments

* Address comments

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2023-10-10 14:08:29 +08:00
Joshen LimandTerry Sutton 94f5fc5a61 Feat/api side panel (#17880)
* Demo api side panel

* Add docs for storage and edge functions

* Add content

* fix

* Add scroll to logic

* Add storage docs

* Add docs URLs

* Add connecting to project section in getting started

* Link back to docs site for product + resource specific docs

* Add entry points into API side panel for table editor, auth users and storage

* Add entry points into API side panel for edge functions

* Beef up feature preview modal with content

* Fix asset path

* Address several feedback

* Addressing more feedback

* Shift GraphiQL page to database if new api docs flag enabled

* Spelling

* Wording changes

* Spacing and wording

* Fix small issues

* Fix

* Update key showing toggle button

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2023-10-05 13:30:12 +08:00
Kevin Grüneberg bc1c9090c2 fix: use prettier on studio too (#17787) 2023-09-28 20:31:07 +02:00
Monica Khoury 65afbccdef Feat: Add UI for displaying and unbanning IP addresses (#17782)
* Chore: Add UI for displaying and unbanning IP addresses

* Fix build errors

* Address minor code review feedback

* Add a description title for the form

* Fix ponctuation marks

* Removed comments
2023-09-28 20:40:40 +03:00
Joshen Lim ac14b7de2d Fix resend org member invitation (#17746)
* Fix resend org member invitation

* Update feedback
2023-09-27 16:03:59 +02:00
Joshen Lim 76b6fd28bf Add option to download table as CSV in table dropdown (#17638) 2023-09-26 13:30:21 +08:00
Joshen Lim 95344c246b Chore/deprecate local observable (#17642)
* Deprecate local observable in api.tsx

* Deprecate local observable in auth users pqage

* Replace prop drilling refetch with proper query invalidation in mutations
2023-09-26 13:25:38 +08:00
aaa0ba9685 Sync studio -> master (#17691)
* [hotfix studio] Update toast text (#17648)

Update ConsentToast.tsx

* fix: nav org redirect (#17651)

fix: nav v2 org redirect

* hotfix: wrappers tables bug (#17682)

Fix: Resolve null.length TypeError in WrapperRow.tsx (#17679)

* Fix: Resolved null.length TypeError in WrapperRow.tsx

* prettier

* switch to &&

---------

Co-authored-by: Monica Khoury <99693443+monicakh@users.noreply.github.com>

* Fix missing connection string when fetching foreign table (#17690)

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
Co-authored-by: Monica Khoury <99693443+monicakh@users.noreply.github.com>
2023-09-25 06:20:56 +00:00
Joshen Lim c9a01f2566 Feat/support schema creation in table editor (#17615)
* Refactor schema selection to CommandBox

* Add Schema editor and schema create RQ

* Add modal to inform about protected schemas
2023-09-22 13:18:29 +08:00
Joshen Lim 9587503ba7 Refactor project IntegrationsSettings into smaller files 2023-09-20 15:14:32 +08:00
Joshen Lim 72f9910fa3 Merge pull request #17518 from supabase/feat/secrets-management-edge-functions
Feat/secrets management edge functions
2023-09-19 17:14:31 +08:00
Joshen Lim 17a7a5651f Merge pull request #17514 from supabase/chore/remove-apikey-from-autodocs
Chore/remove apikey from autodocs
2023-09-19 13:16:29 +08:00
Joshen Lim f0bcca649e Add secrets management for edge functions in project settings 2023-09-18 17:59:46 +08:00
Joshen Lim 469ce7d1ad Add react queries for edge functions secrets 2023-09-18 17:01:28 +08:00
Joshen Lim d739228db5 Convert files to ts 2023-09-18 15:27:38 +08:00
Alaister Young 63b568a472 Merge branch 'master' into chore/remove-pg-meta-schema-store 2023-09-16 09:05:22 +02:00
Alaister Young e8e3d91b24 Merge branch 'chore/remove-pg-meta-schema-store' into chore/remove-pg-meta-table-store 2023-09-15 16:46:50 +02:00
Alaister Young 9c9b8feaca remove unused schema key 2023-09-15 16:46:05 +02:00
Joshen Lim 51e72153ec Implement cascade update support 2023-09-15 13:30:28 +08:00
Joshen Lim 8f7ba1fdc5 Rename FOREIGN_KEY_DELETION_ACTION to FOREIGN_KEY_CASCADE_ACTION 2023-09-14 17:36:00 +08:00
Joshen Lim ecdea366eb Bring changes from 14058 and resolve conflicts 2023-09-13 17:43:12 +08:00
Joshen Lim 89cfc865ef Bring changes from master and reesolve conflicts 2023-09-13 16:29:53 +08:00
Terry Sutton abb0c6d3b1 Merge branch 'master' into feat/project-exhaustion-warnings 2023-09-12 22:21:16 -02:30
Kevin Grüneberg 5e3dec3aa7 Merge pull request #17328 from supabase/chore/urge-legacy-billing
chore: educate people about legacy billing
2023-09-12 13:05:33 +02:00
Kevin Grüneberg 8c85dd6015 chore: educate people about legacy billing 2023-09-12 12:53:14 +02:00
Alaister Young 2796f5ef5f address feedback 2023-09-12 22:43:25 +12:00
Joshen Lim e947ca24af Merge pull request #17351 from supabase/chore/small-fixes-to-backups-ui
Small fixes to loading states of backups UI
2023-09-12 14:39:28 +08:00
Joshen Lim 6d7e84756d Small fixes to loading states of backups UI 2023-09-12 14:14:30 +08:00
Joshen Lim 550712d936 fix 2023-09-12 13:54:36 +08:00
Terry Sutton 9dab6b26e9 Merge branch 'master' into feat/project-exhaustion-warnings 2023-09-11 11:47:36 -02:30
Joshen Lim ce34b229eb Use custom domain if active in API docs 2023-09-11 16:55:30 +08:00
Alaister Young f0a90120c5 Merge branch 'chore/remove-pg-meta-schema-store' into chore/remove-pg-meta-table-store 2023-09-11 18:08:07 +10:00
Alaister Young a9b5880d78 Merge branch 'master' into chore/remove-pg-meta-schema-store 2023-09-11 17:45:34 +10:00
Joshen Lim f59a3e6422 Merge pull request #16969 from supabase/feat/audit-profile-logs
feat: Profile audit logs
2023-09-11 15:42:04 +08:00
Joshen Lim 7128dac7c7 Bring in changes from master and resolve conflicts 2023-09-08 15:13:12 +08:00
Joshen Lim 43e55fbbe8 Remove console log 2023-09-08 14:04:22 +08:00
Joshen Lim 75af676d93 Merge pull request #17229 from supabase/fix/self-hosted-platform-routes
fix(self-hosted): platform routes with codegen
2023-09-08 12:16:09 +08:00
Ivan Vasilov 3a6ed05990 Fix a typo. 2023-09-07 11:24:46 +02:00
Ivan Vasilov 3f84395668 Minor type fixes. 2023-09-07 10:50:19 +02:00
Ivan Vasilov 2a921544a9 Reuse the AuditLog type. 2023-09-07 10:50:19 +02:00
Ivan Vasilov 24820c5f3f Add profile audit logs page. 2023-09-07 10:50:19 +02:00