Commit Graph
120 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
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
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
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
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
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 de36c82e37 Bring changes from 14058 and resolve conflicts 2023-09-19 12:48:25 +08:00
Alaister Young 33dbaa2c50 Merge branch 'master' into chore/remove-pg-meta-table-store 2023-09-15 16:37:15 +02: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
Terry Sutton ffab323ded Update studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx 2023-09-12 15:30:33 -02:30
samueldenzil 4acdd8b2df fix default value of boolean column not respecting 2023-09-09 09:39:24 +05:30
Alaister Young 01af133bb6 Merge branch 'chore/remove-pg-meta-schema-store' into chore/remove-pg-meta-table-store 2023-09-07 18:05:33 +10:00
Joshen Lim 72a0431bb1 Clean up feature flags 2023-08-29 14:04:18 +08:00
Joshen Lim dc464e54dc Fix comparison logic specifically for datetime values in generateUpdateRowPayload 2023-08-25 12:34:16 +08:00
Joshen Lim 6124425e17 Remove and unify monaco editor define theming 2023-08-21 16:19:31 +08:00
Joshen Lim 74884a910a Remove all usage of FC part 4 2023-08-07 10:42:21 +02:00
Jonathan Summers-Muir ab46d23d58 chore: update brand-900 to brand 2023-07-30 16:58:54 +08:00
Terry Sutton 49cec4b484 Table editor sidepanel not handling null properly 2023-06-07 12:40:46 -02:30
Terry Sutton 7869e4b16b Check if value is an object before returning it 2023-06-04 23:19:53 -02:30
Alaister Young 7e9079af22 swaps meta store read methods for react-query 2023-05-03 22:35:45 +10:00
Joshen Lim 93a72c360c Add onInteractOutside logic into the SidePanel component directly 2023-04-25 13:28:56 +08:00
Joshen Lim 145a9c857d Refactor themeing logic for dashboard to use useTheme from common, and fix theme changing via cmdk for dashboard 2023-04-05 18:03:56 +08:00
Joshen Lim ff2e9a5f3d Merge pull request #13284 from supabase/feat/show-view-definition
Feat/show view definition
2023-03-30 13:15:47 +08:00
Joshen Lim 637041fc42 fix 2023-03-30 12:53:30 +08:00
Jonathan Summers-Muir c81e0c9098 update radix and tailwind to correct versions. update all tooltips with Portal subcomponent 2023-03-24 14:48:01 +08:00
Alaister Young 80ff7827dc fix ForeignRowSelector keys 2023-03-23 13:56:21 +08:00
Alaister Young f0de1b1829 fixes foreign row selector 2023-03-23 13:56:21 +08:00
Joshen Lim 1a863eea7b Add RQ for database triggers and webnhooks 2023-03-22 21:38:20 +08:00
Joshen Lim 59e597a16f Remove logs 2023-03-22 12:12:23 +08:00
Joshen Lim 0fcb540f25 Fixrow editor bool column value gets set to null if no changes made + conditionally rendering listbox option for bool 2023-03-22 12:12:23 +08:00
Joshen Lim 7f1dade2ee Remove console log 2023-03-16 14:56:11 +08:00
Joshen Lim dcb8c8aeca Merge branch 'master' into chore/support-setting-to-null-in-table-editor 2023-03-16 09:49:07 +08:00
Alaister Young be4c29de5a adds double click to foreign keys on grid 2023-03-15 15:24:16 +08:00
Joshen Lim 85bf421d31 More minor fixes 2023-03-15 15:24:16 +08:00
Joshen Lim 6ee5f9ccf6 Apply dynamic width to foreign row selector grid 2023-03-15 15:24:16 +08:00
Joshen Lim e344d0d086 Small styling 2023-03-15 15:24:16 +08:00
Alaister Young c7487ee512 remove initial filter when a value exists 2023-03-15 15:24:16 +08:00
Alaister Young f17d009da5 reset page to 1 on filters change 2023-03-15 15:24:16 +08:00
Alaister Young ed91d2b4d2 adds cursor pointer to clickable rows 2023-03-15 15:24:16 +08:00
Alaister Young e4442c2fa9 adds default filter to view referenced row 2023-03-15 15:24:16 +08:00
Alaister Young ed91bf5882 adds basic pagination to foreign row selector 2023-03-15 15:24:16 +08:00
Alaister Young 802741cfc4 adds filter and sort to foreign row selector 2023-03-15 15:24:16 +08:00
Alaister Young edd36ad47c feat: basic foreign key value selection 2023-03-15 15:24:16 +08:00
Alaister Young 0af811b105 renames ReferenceRowViewer to ForeignKeySelector 2023-03-15 15:24:16 +08:00
Joshen Lim bd43202645 Update row editor bool field to use listbox instead of a toggle 2023-03-15 14:02:28 +08:00
Joshen Lim 17c3672427 Add support in row editor side panel to set nullable boolean column value to null 2023-03-10 17:44:41 +08:00