Commit Graph
7107 Commits
Author SHA1 Message Date
Greg Richardson e207378f2d Fix: search edge function URL (#18416)
fix: search edge function url
2023-10-24 10:51:14 -06:00
b1eafd3957 docs: Revamp storage docs (#18259)
Co-authored-by: Greg Richardson <greg.nmr@gmail.com>
Co-authored-by: Fabrizio <fabri.feno@gmail.com>
Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
Co-authored-by: Inian <inian1234@gmail.com>
2023-10-24 23:46:55 +08:00
Joshen Lim 237fdb8db0 Chore/update branch selection UI (#18402)
* Set up branch selection UI in EnableBranchingModal to be text input

* Scaffold new CreateBranchModal

* Refactor Enable Branching Modal to use RHF and implement async validation

* midway updating create branch modal

* Update create branch modal with branch checking through text input

* Deprecate create branch side panel

* Remove unused import

* Small improvement to validation

* Remove console log
2023-10-24 18:29:42 +08:00
Kevin Grüneberg c4b20e114a feat: partner billing (#18386) 2023-10-24 11:33:53 +02:00
divit b65b5b6013 chore: allow updating pool size for supavisor (#18409) 2023-10-24 17:19:28 +08:00
Stojan Dimitrovski 7c0457f7c1 feat: bump to v4 of random logouts counter (#18412) 2023-10-24 10:29:55 +02:00
Joshen LimandJonathan Summers-Muir 09f82460b2 Chore/update network restrictions (#18420)
* Default CIDR block value to 32 and add input validations

* Shift banned ips and rename title

* Update studio/components/interfaces/Settings/Database/BannedIPs.tsx

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2023-10-24 14:42:14 +08:00
Greg Richardson 43875eacf4 Fix: Hide function doc link for triggers (#18344)
fix: hide function doc link for triggers
2023-10-23 21:35:07 -02:30
Joshen Lim 7e2cd927c3 Chore/api side panel fixes (#18369)
* Open documentation in new tab under Unable to find what you're looking for section

* Small fixes to address feedback
2023-10-23 13:25:14 +08:00
Joshen Lim a0416f22d8 SQL editor open last viewed snippet (#18350) 2023-10-23 13:17:59 +08:00
Pamela Chia ae4a8e092b feat: add documents tab in org settings (#18307) 2023-10-23 02:48:58 +11:00
Joshen Lim 471756cadc Fix database page edit/delete tables (#18364)
* Fix database page edit/delete tables

* Add comment
2023-10-20 16:03:58 +00:00
Ivan Vasilov 2f3e628774 Fix the projects dropdown in the Org Audit Logs (#18312)
In the filter dropdown in Org Audit Logs, show projects from the currently viewed org.
2023-10-20 13:21:48 +08:00
Joshen Lim e670d4d04f Reinstate rate limit fields for token refresh and verify (#18328)
* reinstate rate limit fields for token refresh and verify

* Update max limit for rate limits
2023-10-20 10:37:22 +08:00
Kevin GrünebergandJoshen Lim ebebd56cd6 fix: edit/add column on db page (#18335)
* fix: edit/add column on db page

* Update tables.tsx

* Use useTable RQ hook in ColumnList to ensure that columns get updated after SidePanelEditor saves

* Lint import statements

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-10-19 22:44:19 +08:00
Ivan VasilovandJoshen Lim c18f021707 fix: When inserting a row, default value on optional fields was not working (#18319)
* When inserting a row, omit all null values so that they can be defaulted by the DB.

* Add test cases for generateRowObjectFromFields

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-10-19 14:52:29 +02:00
Kevin Grüneberg 9a8647a9ca feat: partner billing plan upgrades (#18311) 2023-10-19 11:47:28 +02:00
Joshen LimandAlaister Young 651138a88e Chore/improved error surfacing in sql editor (#18327)
* Improved error surfacing for SQL editor

* Remove unnecessary style

* Improve logic

* Update studio/components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>

* Add guard

* Update studio/components/interfaces/SQLEditor/SQLEditor.tsx

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2023-10-19 15:12:14 +08:00
Alaister Young 79a886e6b7 chore: toast sync errors in side panel linker (#18167)
* fix: sync env vars in side panel linker

* organize imports

* toast env_sync_error

* remove id

* rename envSyncError

* update api.d.ts
2023-10-19 15:02:40 +11:00
e16a1b4850 updated the let to const (#18185)
Co-authored-by: shishiro <dheervathshishiro@gmail.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
2023-10-18 17:03:48 -02:30
Joel Leeandjoel@joellee.org 911d0a4d47 feat: add LinkedIn OIDCProvider (#18225)
* feat: initial commit for linkedin

* fix: update docs

* chore: add italics on linkedin

* feat: add scopes image

* Apply suggestions from code review

* chore: run prettier

---------

Co-authored-by: joel@joellee.org <joel@joellee.org>
2023-10-18 21:02:02 +08:00
Joshen Lim 8be40f1fdb Chore/separate auth rate limits into its own page (#18265)
* Create new auth rate limits page

* Hook up RQ

* Remove rate limit fields from phone provider and SMTP settings

* Update default value and descriptions for token and verification rate limits

* Add ID to each form limit rate section

* Improve rate limit descriptions

* Hide token refresh and verify rate limits
2023-10-18 19:26:41 +08:00
Joshen Lim dd7a681dd7 Chore/standardize UI in database pages (#18300)
* Update database/tables to use SchemaSelector and add warning for protected schema

* Update database/triggers to use SchemaSelector and add warning for protected schema

* Update database/functions to use SchemaSelector and add warning for protected schema

* Update database/schemas to use SchemaSelector

* Small tweak to database/extensions page

* Update database/types to use SchemaSelector

* Add protected schemas warning for enumerated type and prevent edit/delete of types from protected schema

* Small style fix
2023-10-18 19:03:50 +08:00
Joshen Lim dc9f296a75 Escape single quote when commenting on enum type (#18289) 2023-10-18 18:31:24 +08:00
Joshen Lim 6d192a1f61 fix project wild card route not parsing query param properly (#18268)
* fix project wild card route not parsing query param properly

* Update based on feedback

* Add ts ignore

* address comments
2023-10-18 17:47:33 +08:00
Kevin Grüneberg 6ef8195e8b feat: rework database health report disk space (#18023) 2023-10-18 10:51:27 +02:00
Joshen Lim cc6d188852 Chore/fix wrappers UI (#18293)
* Fix schema listbox in WrapperTableEditor crashing if schemas has not loaded

* Fix client side crashing when editing existing wrappers
2023-10-18 15:36:05 +08:00
Ivan Vasilov a7f88c8611 chore: Run prettier on studio/data/api folder (#18261)
* Remove studio/data to not be ignored when running prettier.

* Run prettier format on the whole repo.

* Run prettier format after each codegen.
2023-10-17 10:50:48 +02:00
Alaister YoungandJoshen Lim dec916bbb1 chore: better github installation flow (#18066)
* chore: better github installation flow

* Update studio/components/interfaces/Integrations/ProjectLinker.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update studio/components/interfaces/Integrations/ProjectLinker.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* remove organizationIntegrationId state

* open Install Github Integration in current window

* enabledBranching -> enableBranching

* adds loading state for ProjectLinker

* add new project connection opens linker

* filter connections by projectRef

* truncate github repo name

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-10-17 17:59:19 +11:00
Alaister Young feb6dea7e9 fix: disable new project button when disabled (#18256) 2023-10-17 16:27:32 +11:00
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
Ziinc c4320bd0ae fix: api reports styling (#17739)
* fix: tweak padding of ReportWidget append

* feat: add link to logs explorer for routes tables, add collapsible toggle

* chore: formatting

* chore: remove table padding

* chore: fix padding around report item actions

* chore: formatting
2023-10-17 12:29:41 +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
Greg Richardson 90ae844a0b feat(hooks): update default edge function url (#18186) 2023-10-16 16:41:37 +08:00
Ivan Vasilov cde1731b43 fix: content param doesn't work in the SQL editor (#18176)
* Fix the content parameter for the SQL editor.

* Add comment.
2023-10-16 16:31:56 +08:00
Joshen LimandInian a8accf8525 Add bash snippets for storage in API side panel (#18138)
* Add bash snippets for storage in API side panel

* Update studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts

Co-authored-by: Inian <inian1234@gmail.com>

---------

Co-authored-by: Inian <inian1234@gmail.com>
2023-10-16 14:44:50 +08: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 Lim 82c5662e2f Small fixes to service status component (#18161) 2023-10-13 11:41:00 +08:00
Kevin Grüneberg aaf144d7fb fix: org dropdown with two orgs with same name (#18142) 2023-10-12 14:16:22 +02:00
Kevin Grüneberg a77e639013 chore: improve copy for cumulative usage metrics (#18121) 2023-10-12 13:27:06 +02:00
Bobbie Soedirgo 61b5bdffe8 chore(studio): stronger wording on access tokens page (#18101) 2023-10-12 14:24:49 +08:00
Joshen Lim 45e0bea280 Temp hide storage service status (#18131) 2023-10-12 12:21:15 +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
Kevin Grüneberg f4eebc5061 feat: auto-redirect to base path if set (#18076)
try auto redirect
2023-10-10 16:20:09 +02:00
Joshen Lim c813b54efa add flag behind project upgrade failed banner (#18068) 2023-10-10 18:01:53 +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