Commit Graph
3910 Commits
Author SHA1 Message Date
42773a3a3b chore: upgrade to next 14 (#22234)
* chore: upgrade to next 14

* upgrade related next deps

* sync deps

* fix lock

* package lock

* bump deps

---------

Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
2024-03-28 19:23:55 +11:00
Kang MingandJoshen Lim 0a569e4790 feat: add anonymous sign-ins config (#21813)
* feat: add anonymous sign-ins config

* fix: update anonymous sign-ins toggle & policy editor

* Couple of UX changes

* fix: update user impersonation with is_anonymous claim

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-03-28 00:14:42 +07:00
Joshen Lim 05400d88ec Fix 'Fix with assistant' for RLS editor (#22283)
* Fix 'Fix with assistant' for RLS editor

* Code editor height will consider line wraps + support right click format query

* Fix content height and line count on mnount rls ediutor

* Update comment
2024-03-27 17:01:53 +07:00
Alaister Young 7d1911bb3d fix: incorrect pool size (#22285) 2024-03-27 08:45:43 +00:00
Jordi EnricandJoshen Lim 62475bd614 Preload RLS form with selected table. (#22263)
* check and load val from search

* Fix

* Add scroll area for table selection in RLS editor

* Further contextualize RLS templates on hover

* Fix RLS feature preview with the new UI

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-03-27 14:43:58 +07:00
b361544461 fix(studio): empty arrays become empty string in row editor (#16882)
* fix(studio): empty arrays become empty string in row editor

* test: update test case to match the new parseValue behavior

---------

Co-authored-by: Ryan Martin <rmrt1n@users.noreply.github.com>
Co-authored-by: Han Qiao <sweatybridge@gmail.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-03-27 11:22:50 +07:00
Terry Sutton 24627e1ed3 Swap check for using in insert commands (#22260)
* Swap check for using in insert commands

* Cleanup
2024-03-26 15:29:23 -02:30
Kevin Grüneberg 65a440806d chore: upgrade yup (#22252) 2024-03-26 23:14:59 +07:00
Kevin Grüneberg 55afcccd39 chore: bump markdown-table (#22249) 2024-03-26 23:13:17 +07:00
Jonathan Summers-MuirandFrancesco Sansalvadore f2b13fd326 Chore/favicon fix (#22226)
* chore: move favicon logic to package

* update application names

* Delete Favicons.tsx

* add more props

* add more props

* update

* cleamn

* clean up

* Update _app.tsx

* Update _app.tsx

* add missing favicons and size optimization

---------

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
2024-03-26 14:34:24 +01:00
Kevin Grüneberg 27f9f96ff7 chore: upgrade to node 20 (#22240) 2024-03-26 18:54:22 +07:00
Jordi EnricandJoshen Lim 2179c94095 ui fixes in Logs Templates (#22232)
* fix icon colors and layout in smaller windows

* lint

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-03-26 12:35:47 +01:00
Jordi Enric aa01f780ea feat: store sql editor charts (#21990)
* save chart config when the user changes it

* add optimistic update on change

* fix wrong snippet being updated when changing fast or internet slow

* fix ui state resetting between changes 2

* fix chart config not changing state when working on a new query that only exists locally
2024-03-26 16:37:25 +07:00
Florian Lefebvre e211bec61a feat: improve ToastLoader progress display (#22230)
Update ToastLoader.tsx
2024-03-26 19:59:31 +11:00
Joshen Lim 5e5586d0ad Remove the check for connection string in create schema mutation (#22229) 2024-03-26 15:42:35 +07:00
Alaister YoungandJoshen Lim 27a8b89526 fix: editing RLS policies (#22228)
* fix: editing RLS policies

* make useEffect conditional on isEditing

* Fix updating policy insert command with check statement

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-03-26 08:26:19 +00:00
Joshen Lim 8f950a111e Add validations for new RLS editor (#22227) 2024-03-26 12:22:55 +07:00
Joshen Lim 4327d58df5 Hybrid RLS Assistant (#21806)
* Midway checking on hybrid rls assistant

* Demo

* Midway

* Polish + hook up everything for policy creation

* Temp fix for open in sql editor

* Resolve conflicts

* Support updating policies with new hybrid ui

* Fix generateQuery for altering policies

* Update to support feature preview

* Fix spelling lint

* Addressing small bugs

* Fix

* Clean upo

* Add new MultiSelectV2 in ui-patterns, use in RLS editor

* More clean uo

* Fix RadioGroupLargeItem label cursor state when disabled

* Lint lowercase sql
2024-03-25 16:02:50 +07:00
Wen Bo XieandJoshen Lim 318ad83fd3 fix: prevent project in transaction mode from changing pooler mode (#22150)
* fix: prevent project in transaction mode from changing pooler mode

* Small update to UI

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-03-25 15:59:46 +07:00
Chris GwilliamsandBobbie Soedirgo 2b6c17acbd Hide supautils extension and remove from docs (#20820)
* hide supautils extension and remove from docs page

* newline

---------

Co-authored-by: Bobbie Soedirgo <bobbie@soedirgo.dev>
2024-03-25 15:56:48 +07:00
Joshen Lim 8b43a2b564 Add trims to table and column names (#22170) 2024-03-22 14:47:45 +07:00
Joshen Lim 654170b31a Fix storage explorer deleting parent folder doesnt delete sub folders despite them being empty already (#22125)
* Fix storage explorer deleting parent folder doesnt delete sub folders despite them being empty already

* Add row id column options to stripe wrapper for tables which can be updated

* Remove commented out lines

* Remove rowid column changes
2024-03-22 10:30:49 +07:00
Joshen Lim 742e7df396 Fix CSV text import not supporting null values (#22146) 2024-03-22 10:25:07 +07:00
Joshen Lim 89f97fb958 fix stripe wrapper not providing row id column for tables that can be updated (#22127) 2024-03-22 10:16:03 +07:00
Joshen Lim 37f549c36e Fix applying table privileges changes to wrong table if there are multiple tables with same name in different schema (#22123) 2024-03-22 09:41:36 +07:00
Joshen Lim 180c052d4d Support updating column is unique when editing table in side panel (#22121) 2024-03-22 09:24:53 +07:00
Joshen Lim 8925d1f72e Add validation when creating enumerated types to ensure that name doesnt conflict with a native PG data type (#22120) 2024-03-21 16:02:37 +07:00
Joshen Lim e05fed45aa Storage delete bucket modal fix styling (#22109)
* Storage delete bucket modal fix styling

* Fix TextConfirmModal
2024-03-21 14:57:05 +07:00
Joshen Lim 8a8110a3a8 Fix toast handling extremely long messages (#22122) 2024-03-21 14:47:46 +07:00
Joshen Lim f3708451a6 Fix consistency for RLS in table editor (#22119)
fix consistency for RLS in table editor
2024-03-20 13:41:47 +07:00
cc9ed7174f feat: limit sign-in password length to 72 (#20571)
* feat: limit sign-in password length to 72

* limit password length on signup

* Update apps/studio/lib/schemas.ts

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Update apps/studio/components/interfaces/SignIn/SignInForm.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* don't limit password length on sign in

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-03-19 16:45:25 +07:00
Jordi Enric fbe6d15b53 chore: rm feature flag in sql editor charts (#22093)
rm feature flag in sql editor charts
2024-03-19 09:36:12 +00:00
Jonathan Summers-Muir a4a4a7e26d Deprecate old Badge component (#22037)
* Update Badge.tsx

* refactor apps with new props

* Update APIKeys.tsx

* format

* remove old code
2024-03-19 10:33:12 +01:00
Alaister Young 3750ad3f69 feat: CONTRIBUTING.md (#22107)
* feat: CONTRIBUTING.md

* add full stop
2024-03-19 09:27:47 +00:00
hallidayo fe1313c329 feat: archive badge added for examples (#21577)
* archive badge added for examples

* deleted out archived repo examples
2024-03-19 09:10:13 +00:00
Joshen Lim 9f2c7c8571 Chore/fix connect UI pooler mode link (#22105)
* Fix connect ui pooler mode link

* Fix apdding
2024-03-19 16:23:04 +08:00
Joshen LimandAlaister Young a6a7e8d327 Chore/fix database tables add foreign key not working (#22104)
* Shift database tables to id route and fix add foreign key CTA not working

* Clean up unused imports

* Fix

* Update apps/studio/components/interfaces/TableGridEditor/DeleteConfirmationDialogs.tsx

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-03-19 13:59:09 +08:00
Jordi Enric 419b5379df fix notification button (#22060)
* fix spacing in notifications btn

* restore spacing, make it stay on top with relative

* no need for z-20 actually
2024-03-19 12:52:05 +07:00
Alaister Young 138adb2e11 fix: auth provider callback url for staging (#22082) 2024-03-18 13:03:06 +07:00
Joshen Lim e4f25c4694 Remove using statement for one of the RLS policy templates that's an INSERT command (#22080)
* Remove using statement for one of the RLS policy templates that's an INSERT command

* Fix
2024-03-18 12:48:11 +07:00
Ivan Vasilov e93316657c fix: Unset the width on the popover to be the same as the trigger (#22053)
* Don't make the width same as the trigger on all popovers.

* The schemaSelector should have the same width.
2024-03-15 22:04:48 +00:00
221ee13f79 feat: Expandable code editor in the Create Function panel (#22000)
* Refactor and remove the CreateFunctionStore.

* Fix a duplicate key in the functions table.

* More fixes for the create-function form.

* Add excluded schemas to schema selector.

* Cleanup the createFunction code after the merge.

* Remove unneeded wrapper fragments.

* Minor fixes for the FormItemLayout stories.

* Refactor the CreateFunction panel using the new FormItemLayout.

* Revert the migration to use FormItemLayout. Will revisit later.

* Add a CSS class for popover content width to match its trigger width. Use it on the schema selector.

* Replace all listboxes with selects.

* Fix the comments.

* Switch to FormItemLayout wherever possible.

* Move the createFunction file to its own folder.

* Refactor the panel to use shadcn components: Sheet, SheetContent and SheetHeader.

* Add showClose prop to the Sheet component.

* Add function editor and a feature to maximize/minimize the code editor.

* Some fixes

* Add sameWidthAsTrigger to the popover component.

* Fix the icon size.

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-03-15 10:36:48 +01:00
Joshen Lim 37e83af2e7 Fix notification row org slug (#22021) 2024-03-15 15:16:50 +08:00
Austin Tran 6e8538f957 fix: the pagination of storage is not functioning on self-hosted systems (#21925) 2024-03-14 15:18:55 +01:00
Austin Tran 48eee8fa58 fix: failed to retrieve postgres version in setting (#20556)
* chore: make a fake api to avoid showing error page

* chore: use redirect to limit access to setting page

* chore: revert change
2024-03-14 14:07:35 +00:00
Austin Tran 2f4cb194ed fix: Cannot access list projects on self-host (#21748)
* fix: cannot access list projects on self-host

* chore: direct to default project
2024-03-14 14:48:43 +01:00
divit dba7399145 feat: use empty allow list for restrict all access (#22023) 2024-03-14 18:46:15 +05:30
a775e3ba69 chore: Migrate create-function store from mobx to react-hook-form (#21888)
* Refactor and remove the CreateFunctionStore.

* Fix a duplicate key in the functions table.

* More fixes for the create-function form.

* Add excluded schemas to schema selector.

* Cleanup the createFunction code after the merge.

* Remove unneeded wrapper fragments.

* Minor fixes for the FormItemLayout stories.

* Refactor the CreateFunction panel using the new FormItemLayout.

* Revert the migration to use FormItemLayout. Will revisit later.

* Add a CSS class for popover content width to match its trigger width. Use it on the schema selector.

* Replace all listboxes with selects.

* Fix the comments.

* Switch to FormItemLayout wherever possible.

* Some fixes

* minor lint

* One more lint

---------

Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-03-14 14:38:52 +08:00
Jonathan Summers-Muir e79e04bafd Update Button height size and icon auto sizing (#21992)
* Update Button.tsx

* fixes
2024-03-14 12:49:55 +08:00
Kamil Ogórek 45421ed917 ref: Add GitHub configuration/revoke links for better UX (#22005) 2024-03-14 12:38:57 +11:00