Commit Graph
506 Commits
Author SHA1 Message Date
Ivan Vasilov bdd849cd7e fix: Fix a render error in the foreign key selector (#18628)
The table in SelectorGrid wasn't migrated to the new column format of react-select-grid.
2023-11-01 12:31:30 +00: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
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
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
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 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
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
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
Ivan Vasilov 282b08ba60 Migrate CSS classes for lighter text (#17728)
Change all occurences of text-scale-900 to text-foreground-lighter.
2023-09-27 12:01:25 +08:00
9910073432 Chore/proper theme switcher (#17635)
* Add theme switcher

* Update

* Update

* Fix docs

* Update

* Fix www

* Componentize ThemeToggle

* Remove unused TopBarRef, rename existing component

* Update apps/www/pages/launch-week/6/index.tsx

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>

* Update apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>

* Update apps/www/pages/launch-week/index.tsx

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>

* Update apps/www/pages/launch-week/7/index.tsx

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>

* Update apps/www/pages/launch-week/tickets/[username].tsx

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>

* Update always-on darkmode pages

* update

* Prettier

* Check resolved theme for images

* use resolved theme

* Fix customer stories

* Update apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>

---------

Co-authored-by: Greg Richardson <greg.nmr@gmail.com>
Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
2023-09-26 16:27:45 +00:00
Ivan Vasilov 76db9f27b3 Migrate dropdowns to use the new Dropdown component (#17427)
* Remove unneeded component.

* Update the dropdown content to support size prop (medium by default). Add space-x-2 to the dropdown item. Add flex to DropdownTrigger so that it's more vertically centered.

* Migrate Insert row dropdown in the TableEditor.

* Refactor UserDropdown to use the new Dropdown from shadcn.

* Migrate the ColumnMenu to use the new dropdown.

* Migrate the rest of the dropdowns.

* Remove the size prop and set the w-64 as default.

* Fix build errors.

* More dropdown fixes.

* More fixes.

* More fixes to various dropdowns.

* Remove the flex from the DropdownTrigger and add it in where it's needed.

* Snapshot.

* Remove keys on dropdown separators.

* Fix the dropdown in the SQL editor.

* Minor type fix.

* Remove space-x-2 from DropdownMenuItem and add it to each item where it's needed.

* Remove the space from the dropdown item.

* Fix a build error.

* Fix the item text in some of the dropdowns.

* Remove duplicate CSS from all dropdown items.

* The SubMenuContent text should be lighter to match MenuContent.

* Fix various CSS issues.

* Revert "Remove unneeded component."

This reverts commit ef606f6695.

* Fix migrated CSS classes.

* Last round of feedback fixes.
2023-09-26 15:29:07 +02:00
Ivan Vasilov 6648acacea Migrate CSS classes for light text (#17725)
* Replace all occurences of text-scale-1100 to text-foreground-light.

* Replace all occurences of text-scale-1000 with text-foreground-light.

* Fix double uses of text-foreground-light.
2023-09-26 11:05:28 +02:00
Joshen Lim 7aee78a8b8 Replace all occurences of text-scale-1200 with text-foreground (#17723)
* Replace all occurences of text-scale-1200 with text-foreground

* Fix spelling
2023-09-26 15:53:03 +08:00
Joshen Lim ced1312810 Add warning when trying to import CSV above 100MB (#17641) 2023-09-25 12:42:54 +08:00
b2bbbc3bde Fix: Delete JSON Data from Table Editor's Side Panel Editor (#17107)
* deletion of json blob data from table editor's side panel code editor fixed

* ensure null json values are saved and fix ts error

* Fix

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
Co-authored-by: Alaister Young <a@alaisteryoung.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-09-22 13:53:06 +08: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 b76b9590e5 Allow users to open entity definition in SQL editor (#17616) 2023-09-22 13:10:03 +08:00
Terry Sutton acbe2dcd10 Chore/swap realtime icon (#17625)
Swap realtime icon
2023-09-21 14:15:59 -02:30
Joshen Lim a3dc1ba457 Merge pull request #17582 from supabase/chore/small-style-fix-to-API-docs-side-panel
Add darker background to code snippets in API side panel
2023-09-20 21:51:39 +08:00
Joshen Lim 08647efc92 Merge pull request #17517 from supabase/feat/add-info-alert-to-foreign-key
Show an info alert when selecting a foreign key
2023-09-20 21:21:43 +08:00
Joshen Lim d82a6d465b Update studio/components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx 2023-09-20 21:09:34 +08:00
Ivan Vasilov b896200e56 Update the wording. 2023-09-20 14:30:49 +02:00
Joshen Lim 7609cba65a Add darker background to code snippets in API side panel 2023-09-20 19:29:21 +08:00
Ivan Vasilov 6f5842f946 Fix the input field for booleans in the insert new/edit row in the table editor. 2023-09-19 18:40:31 +02:00
Joshen Lim 8459db1be5 fix 2023-09-19 12:52:25 +08:00
Joshen Lim de36c82e37 Bring changes from 14058 and resolve conflicts 2023-09-19 12:48:25 +08:00
Joshen Lim 9af3e786b5 Merge pull request #17460 from supabase/chore/add-realtime-toggle-button-in-table-editor
Add realtime toggle button in table editor
2023-09-19 12:42:18 +08:00
Joshen Lim 70b93c7f66 Small copy change 2023-09-19 12:24:22 +08:00
Greg Richardson 75e1f75551 feat(dashboard): header wording on discard modal warnings 2023-09-18 13:04:01 -06:00
Greg Richardson f86fd17e64 feat(dashboard): button wording on discard modal warnings 2023-09-18 12:44:16 -06:00
Ivan Vasilov 49fbcfea04 When the referenced column has no type, show an info alert describing the actions to the user. 2023-09-18 11:47:17 +02:00
Alaister Young 76d84cda70 fix can't edit column after creating error 2023-09-16 09:42:27 +02:00
Alaister Young 63b568a472 Merge branch 'master' into chore/remove-pg-meta-schema-store 2023-09-16 09:05:22 +02:00
Joshen Lim 230cb33586 Merge pull request #17454 from supabase/chore/support-cascade-update-foreign-key
Chore/support cascade update foreign key
2023-09-16 11:44:02 +08:00
Joshen LimandAlaister Young 008b71240a Update studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2023-09-16 11:39:22 +08:00
Alaister Young 1bd73f22e7 address feedback 2023-09-15 16:40:52 +02:00
Alaister Young 33dbaa2c50 Merge branch 'master' into chore/remove-pg-meta-table-store 2023-09-15 16:37:15 +02:00
Joshen Lim c78cc45401 Add realtime toggle button in table editor 2023-09-15 16:10:41 +08:00
Joshen Lim 18a12b01de Remove padding around API docs side panel 2023-09-15 15:49:24 +08:00
Joshen Lim e4b5f96834 Fix small padding issue 2023-09-15 15:47:41 +08:00
Joshen Lim d5844e3f31 Fix 2023-09-15 15:08:23 +08:00
Joshen Lim e474839a9a Improve support for viewing data in table editor for readonly entities 2023-09-15 15:04:55 +08:00
Joshen Lim afb5c3b90f Fix 2023-09-15 13:57:03 +08:00
Joshen Lim 51e72153ec Implement cascade update support 2023-09-15 13:30:28 +08:00
Terry Sutton c683a66eb4 Fix sentry error on fk lookup 2023-09-14 13:58:58 -02:30
Joshen Lim aa5ef66568 Init cascade update 2023-09-14 18:02:08 +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