Commit Graph
5170 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
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
Joshen Lim c813b54efa add flag behind project upgrade failed banner (#18068) 2023-10-10 18:01:53 +08: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
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 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
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
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
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
Terry Sutton 38a231bf3a Chore/fix system theme bugs 2 (#17812)
* Schema visualizer

* Fix icons
2023-09-29 19:07:30 +00:00
Ivan Vasilov 82206f828e Migrate the last dropdowns to shadcn and delete the old Dropdown component (#17780)
Miigrate all leftover dropdowns to shadcn in www, docs and studio.
2023-09-29 13:39:43 +02:00
Ivan Vasilov 18c11843ee Dropdowns migration followup (#17730)
* Remove text color from all dropdown items. The color was set by a class but it should be left to be decided by the parent.

* Make the text smaller in all dropdown elements.

(cherry picked from commit 9a71b3f987047ad26de6e5d496ccf53bc559f71d)

* Fix mismatched colors.

* Remove obsolete text-xs.

* Fix the button in the AI SQL editor.
2023-09-29 11:11:33 +00:00
Kishan KumarandIvan Vasilov 6169977cbf feat: add editing support for citext data type in table editor (#17666)
* feat: add editing support for `citext` data type in table editor

* chore: minor refactoring

* feat: add citext in `ColumnType`

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-09-29 10:47:35 +00:00
Joshen LimandJonathan Summers-Muir 0330ef01dc Prompt users to migrate to org billing if trying to enable branching but on legacy billing (#17776)
* Prompt users to migrate to org billing if trying to enable branching but on legacy billing

* Lint

* Update studio/components/layouts/AppLayout/EnableBranchingButton/EnableBranchingModal.tsx

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

* Update studio/components/layouts/AppLayout/EnableBranchingButton/EnableBranchingModal.tsx

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

* Update studio/components/layouts/AppLayout/EnableBranchingButton/EnableBranchingModal.tsx

* Lint

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2023-09-29 13:33:34 +08:00
Joshen Lim 32dda1bb23 Feat/UI feature previews (#17775)
* Break me.tsx into smaller components

* Deprecate duplicate app valtio state

* Initialize feature preview modal

* Add telemetry

* Address comments
2023-09-29 13:20:30 +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
Kevin Grüneberg 3a970ccb04 chore: adjust redirect after org deletion (#17777) 2023-09-28 12:03:52 +02:00
Terry Sutton dde0bde57c Use resolved theme (#17753)
* Use resolved theme

* Update
2023-09-27 20:49:41 +02:00
abe6ae0a84 Changed Popover Setting to not be Dismissed when a Form Option is Cha… (#17742)
Changed Popover Setting to not be Dismissed when a Form Option is Changed

Co-authored-by: Faizan Rasool <faizanrasool@Faizans-MacBook-Pro.local>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
2023-09-27 16:13:03 -02:30