Commit Graph
376 Commits
Author SHA1 Message Date
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
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 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
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
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
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
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
Ivan Vasilov cb67c8691a Merge pull request #17291 from samueldenzil/fix-default-value-of-boolean-column-issue#17284
Fix default value of boolean column not respecting
2023-09-13 10:44:49 +02:00
Terry Sutton f72ef25e18 Update 2023-09-12 16:27:55 -02:30
Terry Sutton ffab323ded Update studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx 2023-09-12 15:30:33 -02:30
Alaister Young 2796f5ef5f address feedback 2023-09-12 22:43:25 +12:00
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
Alaister Young 4100321c3e address feedback 2023-09-07 17:03:18 +10:00
Alaister Young aea640c2a8 Merge branch 'master' into chore/remove-pg-meta-schema-store 2023-09-07 16:46:01 +10:00
Ivan Vasilov d5b1f219a9 Handle empty column names and types. 2023-09-04 17:03:35 +02:00
Ivan Vasilov 9705aea5a6 Add a warning and disable save when the column types don't match during foreign column selection. 2023-09-01 13:14:22 +02: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 b895c5b189 Remove all usage of FC part 5 2023-08-07 11:12:59 +02:00
Joshen Lim d8391e05c7 Fix lint 2023-08-07 10:42:30 +02:00
Joshen Lim 74884a910a Remove all usage of FC part 4 2023-08-07 10:42:21 +02:00
Joshen Lim a2a2d00fd4 Fix 2023-08-07 15:39:35 +08:00
Joshen Lim 993c8e4c75 Update studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.constants.ts 2023-08-07 15:03:42 +08:00
Ivan Vasilov c8ddd1d1c2 Add auth.uid for uuid suggestions. 2023-08-03 12:38:21 +02:00
Ivan Vasilov ebdcaca6e0 When creating a foreign key, always default to the primary key in column dropdown of the referenced table. 2023-08-03 11:36:47 +02:00
Ivan Vasilov be71680792 When creating a table, created_at should not be a nullable since it defaults to now() function. 2023-08-03 11:36:47 +02:00
Terry Sutton 4b82ef30dd Adds vector and double precision argument types 2023-08-02 10:59:38 -02:30