Commit Graph
674 Commits
Author SHA1 Message Date
Youssef BentalebandTerry Sutton 0e8c97b54a 🐞 fix: undefined webhook name when edit (#18624)
Co-authored-by: Terry Sutton <saltcod@gmail.com>
2023-11-02 14:26:40 +00:00
Alaister Young 9def73b269 fix: enums in other schemas (#18653) 2023-11-02 11:41:28 +00:00
Kevin Grüneberg 11914a55de chore: remove old billing code (#18610) 2023-11-01 10:52:52 +01:00
Joshen Lim 5b7923d1d8 Update branch management UI (#18583)
* Wrap up scaffolding for updated branch management UI

* Update dynamic PR target

* Update API spec, fix next 13 issues with new branch UIs

* Fix pull requiests and all branches tabs
2023-11-01 07:26:08 +00:00
7f1de2f9fb feat: add content_sid variable (#18164)
* feat: add content_sid variable

* feat: update docs

* fix: update description and image

* Apply suggestions from code review

* fix: run prettier

* Update sid labels

---------

Co-authored-by: joel@joellee.org <joel@joellee.org>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-10-31 17:10:51 +08:00
8057309e51 chore: upgrade next 13 + react 18 (#17839)
* update deps + image codemod (studio)

* update next links (studio)

* update deps

* update links (ui)

* remove next-transpile-modules

* move next-themes dependency

* chore: update ConfirmDialog

* chore: remove old ConfirmModal js file. migrated to TS

* dependency wrangling

* remove empty page

* update next links (www)

* First run bump react-data-grid-v7 beta 4

* fix package-lock.json

* more deps wrangling

* update recharts

* update sentry options

* fix some broken things in www

* studio fixes

* fix graphiql

* fix studio build

* fix menu hydration

* small build error

* update turbo

* fix www typescript errors

* docs image codemod

* links codemod docs

* fix docs typescript errors

* move useConsent to ui to prevent circular deps

* Fix links

* Fix homepage

* Fix links

* move studio/ to apps/

* Revert "move studio/ to apps/"

This reverts commit 1b0a985fcb.

* disable outputFileTracingRoot

* remove outputFileTracingRoot

* fix homepage product cards

* fix PrivacySettings links

* Fix links

* Fix the build for www.

* Minor fixes for JWTGenerator.

* Fix the docs and ui tests.

* Revert codehike back to 0.8.3

* remove ConfirmAlert()

* reenable babel because mobx hates me

* fix blog image and comparison page avatar

* Fix svg errors

* update image synthax

* Fix code hike

* Move the button in a div so that it doesn't inherit its parent height and make the button look weird.

* When components are defined in a component, they get recreated on each render. This makes them unstable in certain cases and causes infinite rerenders.

* Replace the next/head usage with next/script.

* Chore/upgrade next 13 fix table editor (#18431)

* fix table editor styling and fix row deletion logic

* Fix deleting selected rows from header, and fix checkboxes not clearing up

* Fix deleting all rows when filter applied, and fix deleting all rows

* Fix grid size styling issue

* Fix TS error

* Hydration errors

* studio org pages fixes

* fix more studio links

* audit logs fixes

* dropdown icon styling fixes

* fix some images in www

* upgrade to next 14

* try new sentry wrapper for api

* see if this is even invoked

* Revert "see if this is even invoked"

This reverts commit 86c3973ffa.

* Revert "try new sentry wrapper for api"

This reverts commit f67623ebad.

* Revert "upgrade to next 14"

This reverts commit a24dd6131e.

* chore: allow node version 19/20

* Try to fix the LogTable so that it renders with the newer "react-data-grid" version.

* Fix type errors in the log renderer code.

* Fix the replication screen.

* Add the CSS for the GraphiQL.

* Fix SQL editor results rendering

* Lint

* Fix SQL editor results height issue

* Fix auth RLS not invalidating RQ when toggling RLS

* Fix database tables new/edit column regressed

* Fix migrations page empty state if migrations schema not yet created

* Fix API side panel docs temp remove postgrest text for column description PK and FK

* Fix + improve timeout handling in SQL editor

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
Co-authored-by: Terry Sutton <saltcod@gmail.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
2023-10-31 05:51:46 +00:00
Eskinder AberaandAlaister Young c7e634613e studio: fixed dropping enum types (#18526)
* studio: fixed dropping enum types

* fix prettier

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2023-10-30 17:32:25 +11:00
f16a311a4c chore: upgrade upgrade duration estimations, detection of legacy auth roles and dependent objects which might be dropped, light mode and timezone fixes (#18411)
* chore: upgrade duration estimations, detection of legacy auth roles and dependent objects which might be dropped, light mode and timezone fixes

* chore: docs + extra UX

* chore: revert accidental merge

* Use the new Alert component in ProjectUpgradeAlert.

* Migrate an alert in InfrastructureInfo to the new alert component.

* chore: apply suggestions from code review

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

* Fix the restart server button so that it's aligned to the dropdown button.

* Fix the icon colors on upgrading panel.

* Migrate all alerts to the new shadcn one.

* chore: change wording related to rollbacking upgrades


---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-10-26 13:58:35 +03:00
Kamil Ogórek fa4e2180df ref: Fetch all GitHub repositories for GitHub integration config page (#18470)
* ref: Fix all GitHub repositories for GitHub integration config page
* Add API schema
2023-10-26 12:54:02 +02:00
Kamil Ogórek 63571ea0ed ref: Use label instead of name for GitHub branches (#18471) 2023-10-26 10:48:11 +02: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
Pamela Chia ae4a8e092b feat: add documents tab in org settings (#18307) 2023-10-23 02:48:58 +11: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ü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
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 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
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