Commit Graph
85 Commits
Author SHA1 Message Date
Joshen Lim dd7a681dd7 Chore/standardize UI in database pages (#18300)
* Update database/tables to use SchemaSelector and add warning for protected schema

* Update database/triggers to use SchemaSelector and add warning for protected schema

* Update database/functions to use SchemaSelector and add warning for protected schema

* Update database/schemas to use SchemaSelector

* Small tweak to database/extensions page

* Update database/types to use SchemaSelector

* Add protected schemas warning for enumerated type and prevent edit/delete of types from protected schema

* Small style fix
2023-10-18 19:03:50 +08: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
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 82206f828e Migrate the last dropdowns to shadcn and delete the old Dropdown component (#17780)
Miigrate all leftover dropdowns to shadcn in www, docs and studio.
2023-09-29 13:39:43 +02: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
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
Alaister Young 2796f5ef5f address feedback 2023-09-12 22:43:25 +12:00
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 aea640c2a8 Merge branch 'master' into chore/remove-pg-meta-schema-store 2023-09-07 16:46:01 +10:00
Joshen Lim 588bbb4a40 Revert changes in useSelectedProject, add error state for schema picker in tbale editor 2023-07-26 11:48:06 +08:00
Alaister Young 3bc70549c3 chore: checkPermissions -> useCheckPermissions 2023-06-30 15:15:09 +10:00
Jonathan Summers-Muir f68e79ff71 fixed errors with Button from new changes 2023-06-13 17:36:36 +08:00
Alaister Young 10e541a2de refactor to valtio table editor state 2023-05-03 16:37:35 +10:00
Alaister Young 3c6a28d9c8 restore isLoadingTableMetadata in TableEditorMenu 2023-05-02 00:19:13 +10:00
Alaister Young 04575b65b1 chore: remove pg meta schema store 2023-05-02 00:13:39 +10:00
Joshen Lim 5279e3796e Small style fix 2023-04-20 14:21:03 +07:00
Joshen Lim e8b67a5557 Refactor menu items for storage, sql editor and table editor 2023-04-06 22:25:18 +08:00
Alaister Young 26443a96bc stop event propagation on table editor menu dropdown 2023-04-03 18:31:17 +10:00
Terry Sutton 5f865e160c Merge branch 'master' into chore/move-useparams-to-packages 2023-03-31 11:51:43 -02:30
Jonathan Summers-Muir 0ec5bee59b add disableHoverableContent to table list tooltips 2023-03-28 15:52:10 +08:00
Jonathan Summers-Muir 8925c07ee3 add portal to new tooltips 2023-03-28 15:51:23 +08:00
Jonathan Summers-Muir a7a00ed21e Merge branch 'master' into feat/cmdk-2 2023-03-28 14:07:55 +08:00
Joshen Lim 6640bb85bb Format tooltip text 2023-03-27 20:22:22 +08:00
Joshen Lim a52ef648eb Add tooltip 2023-03-27 20:20:59 +08:00
Joshen Lim bbf6ec1c30 add icon for table 2023-03-27 20:17:08 +08:00
Joshen Lim 0861591149 Midway updating icons 2023-03-27 19:32:22 +08:00
Terry Sutton 1e6477bf11 Move useParams to common packages 2023-03-24 15:16:44 -02:30
Joshen Lim 5d2cfd2c3f Add some colors to icons 2023-03-24 17:06:41 +08:00
Alaister Young c99cc40d63 updates sort name to Entity Type 2023-03-24 19:32:02 +11:00
Alaister Young 53ad215087 adds table sort selector 2023-03-24 19:27:16 +11: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 c6fce98c88 swaps entity type to an enum 2023-03-23 13:56:21 +08:00
Joshen Lim c9db4f8a0d small style fix 2023-03-23 13:56:21 +08:00
Alaister Young 3e720574b2 adds search to table editor entities 2023-03-23 13:56:21 +08:00
Alaister Young fc7d2882d0 adds support for loading views and foreign tables 2023-03-23 13:56:21 +08:00
Alaister Young eb32e5f6eb add coalesce calls for empty schemas 2023-03-23 13:56:21 +08:00
Alaister Young 7888148959 adds loadById for views 2023-03-23 13:56:21 +08:00
Alaister Young 289b0531b0 feat: adds infinite scroll to tables list 2023-03-23 13:56:21 +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
Ruggero Tomaselli af28a42fd6 Add type to import to be more explicit 2023-01-27 14:56:54 +08:00
Joshen Lim fb8cb39ba4 Resolve merge conflict 2023-01-13 14:41:55 +08:00
Joshen Lim 633f296eee Fix tables not loading in table editor on [id] route after new refactor 2023-01-13 14:25:37 +08:00
Joshen Lim e34989cbf2 Add ViewStore 2023-01-13 14:25:37 +08:00
Joshen Lim 8dc866897e Support loadBySchema in meta store and loading tables in table editor based on selected schema 2023-01-13 14:25:37 +08:00
Joshen Lim a258844ba6 Refactor policies page 2023-01-10 16:26:33 +08:00
Joshen Lim 2c1a0296d7 Actually pull foreign tables 2022-12-15 02:24:27 +07:00
Joshen Lim a6e04e31bb Show foreign tables as read only in table editor 2022-12-15 02:24:27 +07:00
Joshen Lim b2def29d4e Fetch views after deleting table 2022-11-30 01:13:42 +08:00