Commit Graph
7077 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
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
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
Alaister Young 4b0ca12ae9 fix: users reload button show spinner (#18065) 2023-10-10 04:06:22 +00:00
Terry SuttonandIvan Vasilov 5396145494 Chore/fix api preview columns (#18053)
* Fix code column layout

* Fix the rest of the doc blocks.

* Fix the API side panel also.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-10-09 18:02:21 -02:30
Ivan Vasilov ae4a06f715 Change all occurences of text with text-foreground (#17890)
* Change all occurences of text with text-foreground.

* Minor fix.
2023-10-09 16:11:18 +00:00
Joshen Lim af77be7d32 Update discussions URL (#18042) 2023-10-09 12:47:42 -02:30
Joshen LimandJonathan Summers-Muir b0d6f407e0 chore/Remove option to change production branch (#17925)
* Fix loading state for github project picker, fix vercel/github icons not showing on project cards if integrated, remove option to change production branch

* Disable changing production branch form

* lock supabase directory input field

* Add alert

* Update studio/components/interfaces/Settings/Integrations/GithubIntegration/GitHubIntegrationConnectionForm.tsx

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

* Fix lint

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2023-10-09 18:15:40 +08:00
Kevin GrünebergandJoshen Lim 780209440a fix: misleading CTA / current billing cycle check (#18024)
* fix: misleading CTA / current billing cycle check

* Update studio/components/interfaces/Organization/Usage/Usage.tsx

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-10-09 10:50:43 +08:00
Inian 217cc9cc90 re-enable frankfurt (#18015) 2023-10-08 14:49:20 +08:00
Inian 68594ca1ba Revert "Remove use1 for project creation (#18001)" (#18013) 2023-10-08 12:45:17 +08:00
angelico 74df68dd3b hotfix: temporarily disable central EU (#18005) 2023-10-07 21:15:30 +08:00
Joshen Lim 0af9480867 Remove use1 for project creation (#18001)
* Remove use1 for project creation

* Update default region
2023-10-07 12:10:10 +08:00
Ivan Vasilov 7fbe48af55 fix: Fix the loading state on the Continue with Github button (#17959)
Use the loading state on the continue with github button on sign-in.
2023-10-06 10:15:37 +02:00
Ivan Vasilov bd70ae7d95 Better description for required org plan for audit logs (#17928)
* Handle the special case where the org needs better subscription to access the logs.

* Change the wording.

* Fix a flashing of the error message.

* Missed the fix for the title.

* Minor copy edit.

* Copy fix.
2023-10-06 16:10:59 +08:00
Greg Richardson 285a299b9b Fix: SQL Editor destructive query false positive (#17965)
fix(sql-editor): destructive query false positive
2023-10-05 16:06:35 -02:30
Denzil Samuel ae8ca3332f fix: Add right padding to project name (#17946)
Add right padding to project name
2023-10-05 18:21:13 +11:00
Joshen LimandAlaister Young 6a5433f033 Redirect to sign in if assurance level check fails on MFA page (#17906)
* Redirect to sign in if assurance level check fails on MFA page

* Update studio/pages/sign-in-mfa.tsx

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

* Fix lint

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2023-10-05 14:40:02 +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
Jonathan Summers-Muir 1c842d5a05 chore: tidy project padding. remove redundant classes (#17929)
* chore: tidy project padding. remove redundant classes

* Update ProjectCardStatus.tsx

* chore: update size

* Update ProjectCardStatus.tsx
2023-10-04 12:03:06 -02:30
dependabot[bot]andIvan Vasilov 71412180d5 chore(deps): bump postcss from 8.4.24 to 8.4.31 (#17915)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.24 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.24...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-10-04 08:43:06 +00:00
Ivan Vasilov 5c6719c8ea Fix the bucket url to handle trailing whitespace (#17095)
* Fix the bucket url to handle trailing whitespace.

* Migrate the bucket CRUD methods to use data/fetchers.

* Revert the validation for bucket names where names with spaces are invalid.

* Revert the mutations refactors.

* Trim trailing whitespace from its name when creating a new bucket.

* Add error message for bucket names and whitespaces.
2023-10-04 08:19:52 +02:00
1281a9b9ce turbo type-check command and GHA (#11658)
* turbo type-check command and GHA

* Update quality.yml

* Update package.json

* Update packages/common/package.json

Co-authored-by: Ruggero Tomaselli <ruggerotomaselli@gmail.com>

* Run prettier.

* Updating package-lock.

* Fix all prettier errors.

* Add type-check command to studio. Remove the one from common package since it depends on ui package and cannot be built at the moment.

* Rename all commands to typecheck (without -) because it's easier to type.

* Add cache and concurrency to the typecheck github job.

* Rename the quality workflow to typecheck.yml.

---------

Co-authored-by: Ruggero Tomaselli <ruggerotomaselli@gmail.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-10-04 17:12:05 +11:00
Ivan Vasilov 276b32f331 fix: Set the default value for boolean fields when creating a new row (#17844)
* When creating a new row with boolean fields, preselect the default value for those fields.

* When preparing row fields to be sent to the API, omit only fields which are not nullable. The not nullables can be sent to the API and they'll be interpreted correctly.
2023-10-04 13:50:15 +08:00
Terry Sutton cecb244ac6 Chore/nudge project cards (#17857)
* Nudge project cards to reduce visual weight

* Nudge dark scale
2023-10-04 13:36:44 +08:00
Terry Sutton 6a651a1837 Chore/update theme switcher (#17866)
Use resolved theme
2023-10-03 11:12:19 -02:30
Ivan Vasilov 7dea89cc35 Drop the _shadcn_ suffix from the the Dropdown component (#17804)
Replaced all occurrences of _shadcn_ for the Dropdown component.
2023-10-03 13:12:34 +02:00
Jonathan Summers-Muir 2dae3a036e fix: vercel deploy button layouts (#17697)
* fix: layouts

* Update choose-project.tsx

* Update choose-project.tsx

* Update choose-project.tsx

* swap

* Update choose-project.tsx
2023-10-02 17:48:55 +00:00
Terry SuttonandIvan Vasilov 522a921fda Chore/add settings panels to cmdk (#17784)
* Fix searchable item command, add settings panel ids

* Update

* Add support for hash urls to no-project-selected page (_).

* Fix some of the labels.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-10-02 13:09:34 -02:30
Terry Sutton da37e0423e Change table header for security type (#17848)
* Change table header for security type

* No centering
2023-10-02 12:44:27 -02:30
Kevin Grüneberg 0405e22ece chore: copy for billing migration (#17843) 2023-10-02 11:58:07 +02:00
Ziinc cdb53688c0 fix: memory issues and speed improvements to generated query (#17808)
* fix: memory issues and speed improvements to generated query

* chore: formatting
2023-10-02 13:27:36 +08:00