Commit Graph
3910 Commits
Author SHA1 Message Date
Ivan Vasilov c867205b20 chore: Migrate ViewsStore (#19975)
* Move useEncryptedColumns hook and use it in the TableGridEditor.

* Convert the viewsQuery to use data/fetchers. It also handles invalidation of schemas.

* Invalidate the view when deleting a column or a table.

* Use the new query function in VaultStore.

* Remove the viewStore.

* Fix two more edge cases. Add comments for it.
2024-01-02 12:52:06 +01:00
Stojan Dimitrovski ebb28813ca feat: remove sentry sign in events (#20084) 2024-01-02 09:22:57 +01:00
Joshen Lim 32c0205288 Fix view policies from table editor (#20100) 2024-01-02 14:55:31 +07:00
Austin TranandAlaister Young 654e19711a fix: unable to delete enumerated type from dashboard (#20023)
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-01-02 18:49:16 +11:00
Alaister YoungandJoshen Lim e9c1966ab5 chore: improve auth screens loading (#19940)
* chore: improve auth screens loading

* Update apps/studio/components/interfaces/Auth/Users/UsersList.tsx

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

* handle error

* better pagination for users list

* disgusting boolean logic

* return user to previous page after deleting last user

* only show reloading indicator when it's refetching

* fix date formatting

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-01-02 05:13:33 +00:00
Paul Cioanca 8e4a094f26 Revert "Chore: change EU aws region name" (#20050)
Revert "Chore: change EU aws region name (#20044)"

This reverts commit e51fdbdba7.
2023-12-28 20:22:38 +00:00
Monica Khoury e51fdbdba7 Chore: change EU aws region name (#20044)
* Chore: change EU aws region name

* Prettier

* Prettier
2023-12-28 16:31:41 +01:00
Monica Khoury f36b2f706c Add: new regex for custom scheme URLs (#19948)
* Add: new regex for custom scheme URLs

* Prettier

* Prettier
2023-12-28 11:01:22 +01:00
Ivan Vasilov fdfdb5282b chore: Remove released feature flags (#19917)
* Remove roleImpersonation flag.

* Remove realtimeDashboard.

* Fix forgotten uses of the role impersonation flag.
2023-12-26 10:35:20 +01:00
Ivan Vasilov 7073c51baa fix: Enable the Node polyfills flag (#19965)
Enable the fallback node polyfills flag
2023-12-22 12:19:21 +01:00
Pamela Chia 90f17f52eb chore: add additional detail below legal docs (#19947) 2023-12-22 12:07:12 +08:00
Terry SuttonandIvan Vasilov c37fa950ea Chore/rewrite roles form with shadcn (#19923)
* Fix new role form

* Rewrite form

* Commit a sin against ts

* Make the afterLabel a ReactNode.

* Fix minor type issues.

* Fix type

* Types

* Use lodash sortBy instead of the mutating array.sort.

* Fix the order of the roles with active connections.

* Sort the roles by lowercased names.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-12-21 23:45:47 +01:00
Terry SuttonandIvan Vasilov c685d654b6 Feat/sortby on tables (#19841)
* Sort by name

* Not name

* Fix

* Migrate the table query to use the new fetchers.

* Cleanup

* Cleanup

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-12-21 15:53:38 -03:30
Joel Leeandjoel@joellee.org d9e061c36e feat: fix indentation on hook SQL template snippets (#19900)
* feat: fix indentation on hook snippets

* feat: run prettier

---------

Co-authored-by: joel@joellee.org <joel@joellee.org>
2023-12-21 23:33:49 +08:00
Kevin Grüneberg 9a1bd73339 chore: stop polyfilling node modules (#19909) 2023-12-21 11:31:32 +01:00
Francesco Sansalvadore 8da4fd2f18 chore: Migrate Lottie animation (#19922) 2023-12-21 08:45:26 +01:00
Joshen Lim c69c7ac6e3 Disable pause project button for projects on paid plan (#19936) 2023-12-21 14:14:53 +07:00
Joshen Lim 6f78b4fc2e Fix Listbox not re rendering properly (#19933)
* Fix Listbox not re rendering properly

* Remove console log

* Fix listbox not re rendering properly
2023-12-21 12:38:28 +07:00
Terry Sutton 22d7d1139f Fix new role form (#19921) 2023-12-20 16:46:19 -03:30
Kevin Grüneberg 542d984b3e chore: reduce main bundle size (#19918) 2023-12-20 17:49:15 +01:00
Kevin Grüneberg 23e095580c chore: bump octokit (#19912) 2023-12-20 16:32:36 +01:00
Austin Tran a637a73847 chore: fixed issue when delete sorted column cause crash on table editor (#19178)
* chore: fixed issue when delete sorted column cause crash on table editor

* chore: fixed issue on typecheck

* chore: better way to check and handle error

* chore: reduce nested error in error response

* chore: revert checking error in error response

* chore: solved conflict
2023-12-20 14:35:23 +00:00
Joshen Lim f8d30a35c0 Fix policy count in table editor header (#19903) 2023-12-20 11:09:31 +00:00
Joshen Lim b6f8a05a79 Support prettify JSON in side panel editor (#19899)
* Support prettify JSON in side panel edito

* Fix
2023-12-20 17:59:53 +07:00
Joshen LimandAlaister Young da792ba0ba Chore/show rr UI only if project is enabled (#19642)
* Only show RR UI if project is enabled

* Only show RR UI if project has read replicas enabled, shift DatabaseSelector state to valtio, add Database Selector to API URl

* Update usage of Project interface from types to Project from project-details-query

* Fix ts errors

* Another one

* Another one...

* God one more

* Fingers crossed

* jesus

* Add deprecate mark on ProjectBase

* Resolve conflicts

* Rename ProjectState from valtio to DatabaseSelectorState

* Rename file

* fix imports

* tiny code changes

* Fixes

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2023-12-20 16:49:53 +07:00
Joshen Lim fe5e274697 Default to PITR page when accessing db backups if project has pitr enabled (#19898) 2023-12-20 16:39:08 +07:00
Alaister Young 4b232096a9 chore: use data/fetchers for custom domains (#19892)
* chore: use data/fetchers for custom domains

* type error as response error
2023-12-20 15:55:55 +11:00
Terry Sutton ee3aecafa7 consent banner visibility (#19875)
only on hosted
2023-12-19 13:46:36 -03:30
Pamela Chia 9057b3c149 feat: track rls ai editor usage (#19811)
* feat: track rls ai editor usage
when user accepts consent, we track when rls editor:
ai suggestion accepted
ai suggestion discarded
copy code from code block in ai assistant
apply changes from code block in ai assistant
when question is asked in ai assistant
when sql has and error and ai debugger was requested

* fix: add asking part and change to past tense

* chore: add fix with assistant tracking

* fix: deploy error and merge master

* fix: action label fixed at queryerror
2023-12-19 20:41:04 +08:00
Ivan Vasilov 2c990284fa chore: Remove OpenApi mobx Store (#19778)
* Use RQ in DocsLayout.

* Remove OpenAPIStore.

* Use the project ref from the useSelectedProject.

* Use the ref from the params.
2023-12-19 12:57:14 +01:00
Terry SuttonandIvan Vasilov db3ff7b7b8 Alpha sort db functions, triggers and indexes tables (#19852)
* Alpha sort db functions, triggers and indexes tables

* Use lowercased names when sorting.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-12-19 11:53:12 +01:00
Joshen LimandAlaister Young 5649330f96 Chore/deprecate roles store (#19718)
* Init RQ for database roles

* Shift all use of roles from pg meta mobx store to RQ

* Deprecate and remove roles pg meta mobx store

* Fix import

* Fix

* Address comments

* remove function child

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2023-12-19 15:02:57 +07:00
Greg RichardsonandIvan Vasilov a6f1313490 AI SQL: Update model + add test suite (#19644)
* refactor: ai sql logic to common package

* feat: ai sql tests

* feat: test rls policy ai chat assistant

* refactor: jest env loading

* feat(ai): improve sql title and description quality

* fix: ai message role type

* Move the new files to a separate package.

* Remove a forgotten console.log.

* Migrate the tests to use snapshots and commit the snapshots.

* Separate the functions which require edge runtime to be exported via /edge subpath.

* Bust the turbo cache when one of the deps has been rebuilt.

* chore: fix package main/type references

* fix: package lock out of sync

* fix: ai sql debugging to fix typos

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2023-12-18 11:23:59 -07:00
Ivan Vasilov 563ef1cff2 chore: Remove dangling dependencies and files (#19785)
* Delete probably unneeded files.

* Remove unused deps.
2023-12-18 12:11:15 +00:00
Anton J b5b26fc110 fixed typo (#19813) 2023-12-18 05:45:19 +00:00
Alaister YoungandJoshen Lim 5b70f74eb5 chore: warn about using pg_cron on fly (#19588)
* chore: warn about using pg_cron on fly

* order imports & adjust icon size

* Update style

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-12-18 05:35:34 +00:00
Joshen Lim d0c730d08e Chore/deprecate policies store (#19723)
* Add database policies RQ and shift all usage of policies from pg meta mobx to RQ

* Deprecate and remove policies store from pg meta mobx store

* Fix policies not showing by table and schema

* Update create policy mutation body
2023-12-18 12:17:57 +07:00
Alaister Young 8706865e85 chore: move sign_in telemetry event (#19823)
* chore: move sign_in telemetry event

* don't clear telemetry consent on logout

* remove # section of page location telemetry url
2023-12-18 15:52:15 +11:00
Ivan Vasilov 82d21d7ed6 chore: Migrate Connection Pooling form to use react-hook-form (#19743)
* Fix the position of the error in the profile information form.

* Update the query and the mutation for the connection pooling to use data/fetchers methods.

* Refactor the connection pooling form to use react-hook-form.

* Handle null values also.

* Make the headers same case everywhere.

* Set the data after updating.
2023-12-15 08:17:36 -03:30
5ba3bc0705 Chore/update branching copy (#19740)
* Update EnableBranchingModal.tsx

* Update branching.mdx

* Update CreateBranchModal.tsx

* Update branching.mdx

* update

* disclaimers added

* Apply suggestions from code review

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2023-12-15 06:26:14 +00:00
Monica Khoury e7b6dbd1bc Fix: misnamed CSV files (#19741) 2023-12-14 15:21:11 -03:30
Monica Khoury 4f8ef91180 Add: bagde from 'ui' to Banned IPs component (#19746) 2023-12-14 18:56:28 +01:00
Adams AbdulhakeemandGeekyAdams 166a2f461a fix: swift client library svg icon update to show on light mode (#19733)
Co-authored-by: GeekyAdams <adams.abdulhakeem@leatherback.co>
2023-12-14 13:53:02 -03:30
Monica Khoury 2cf0194315 feat: highlight user's banned IP in UI (#19666) 2023-12-14 17:38:07 +01:00
Jonathan Summers-Muir da182838f1 Update EnableBranchingModal.tsx (#19736)
* Update EnableBranchingModal.tsx

* Update branching.mdx

* Update CreateBranchModal.tsx
2023-12-14 16:28:28 +00:00
hallidayo f9941d4134 fix: branching docs link (#19639)
added link for docs
2023-12-14 16:19:48 +00:00
Ivan Vasilov e5cd2686f7 chore: Migrate profile information to use react-hook-form (#19675)
* Fix the icon in the theme listbox.

* Remove visible prop on FormSection since it used block which clashes with grid CSS class.

* Migrate the user profile form to use react-hook-form.
2023-12-14 15:08:56 +01:00
Pamela Chia 19f9c85418 chore: add support sla of plans and non abuse copy (#19572)
* chore: add support sla of plans and non abuse copy
reword the SLA description of the popup to cover all paid plans
add support sla shown in support form based on plan
default expand support sla shown in support form
add non-abuse copy if user tries to submit high or urgent severity tickets

* fix: mispelling on prioritized

* fix: update copy based on comments
2023-12-14 19:18:53 +08:00
Joshen Lim 09de17cac3 Chore/deprecate functions store (#19714)
* Shift all usage of database functions from pg meta store to RQ

* Remove functions store from pg meta mobx store

* fix

* Fix

* Fixes

* fix

* Address comments
2023-12-14 15:30:26 +07:00
Jonathan Summers-MuirandJoshen Lim ad8fc65337 Update branching info (#19715)
* Update branching info

* swap

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2023-12-14 06:05:37 +00:00