Commit Graph
123 Commits
Author SHA1 Message Date
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
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
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
Alaister Young 63b568a472 Merge branch 'master' into chore/remove-pg-meta-schema-store 2023-09-16 09:05:22 +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
Alaister Young aea640c2a8 Merge branch 'master' into chore/remove-pg-meta-schema-store 2023-09-07 16:46:01 +10:00
Joshen Lim 72a0431bb1 Clean up feature flags 2023-08-29 14:04:18 +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
Jonathan Summers-Muir dec542a85a chore: update old brand-500 to new brand-300 2023-07-30 17:01:49 +08:00
Jonathan Summers-Muir e92931390c chore: update old brand-800 to new brand-500 2023-07-30 17:00:56 +08:00
Jonathan Summers-Muir ab46d23d58 chore: update brand-900 to brand 2023-07-30 16:58:54 +08:00
Jonathan Summers-Muir f68e79ff71 fixed errors with Button from new changes 2023-06-13 17:36:36 +08:00
Ollie Halliday 8b5ab850d5 changed uuid default to gen_random_uuid() 2023-05-01 20:22:22 +01:00
Alaister Young 04575b65b1 chore: remove pg meta schema store 2023-05-02 00:13:39 +10:00
Joshen Lim 93a72c360c Add onInteractOutside logic into the SidePanel component directly 2023-04-25 13:28:56 +08:00
Joshen Lim aac25c5ab5 Fix eslint errors 2023-04-20 17:56:06 +07:00
Greg Richardson 49f08d0176 Merge branch 'master' into studio-default-values 2023-04-12 09:10:26 -06:00
Greg Richardson e540b2618d docs: fix bracket example 2023-04-12 09:04:04 -06:00
Alaister YoungandJoshen Lim 447a599d12 Update studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-04-11 19:35:03 +10:00
Alaister Young e10cf3ebfd adds updating of check constraints 2023-04-11 19:29:30 +10:00
Alaister Young 8a51990f05 feat: create check constraints 2023-04-05 15:45:16 +10:00
Terry Sutton 2d160c5211 Update studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnDefaultValue.tsx 2023-03-31 17:00:15 -02:30
Terry Sutton 5f865e160c Merge branch 'master' into chore/move-useparams-to-packages 2023-03-31 11:51:43 -02:30
Terry Sutton 1e6477bf11 Move useParams to common packages 2023-03-24 15:16:44 -02:30
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
Ollie Halliday 56fbecf8cc changed tooltip and hint 2023-03-23 20:18:07 +00:00
Joshen Lim dcb8c8aeca Merge branch 'master' into chore/support-setting-to-null-in-table-editor 2023-03-16 09:49:07 +08:00
Joshen Lim 85bf421d31 More minor fixes 2023-03-15 15:24:16 +08:00
Joshen Lim 7d07ae8932 Add set to null action in row side panel editor for text types 2023-03-10 16:51:56 +08:00
Joshen Lim af53f26134 First round of feedback address 2023-03-09 16:02:45 +08:00
Joshen Lim 8f02734db9 Support all deletion actions instead of only cascade delete 2023-03-09 16:02:45 +08:00
Joshen Lim 4855bfe459 Add tooltips for grid column foreign key 2023-03-09 16:02:45 +08:00
Joshen Lim 5248435753 Add tooltips for foreign keys in table editor side panel 2023-03-09 16:02:45 +08:00
Joshen Lim 10a10a5d7c Invalidate foreign key constraints query after saving column 2023-03-09 16:02:45 +08:00
Joshen Lim 1742c9b2aa Add query to fetch foreign key constraints meta and implement cascade deletes via column editor side panel 2023-03-09 16:02:45 +08:00
Joshen Lim 13d2b866f9 Fix table editor foreign key selector cannot select tables outside of public schema 2023-02-10 17:22:49 +08:00
Joshen Lim 078980accf Fix showing column recommendation breakingin table side panel editor 2023-02-07 12:54:05 +08:00
Joshen Lim 3a7dc79a74 Improve experience for unrecommended data types 2023-02-02 14:00:44 +08:00
Ruggero Tomaselli af28a42fd6 Add type to import to be more explicit 2023-01-27 14:56:54 +08:00