Commit Graph
3261 Commits
Author SHA1 Message Date
Monica Khoury cd43912a2f Chore: block multiple account deletion requests (#26304)
* Chore: block multiple account deletion requests

* add key to LOCAL_STORAGE_KEYS
2024-05-23 09:02:47 +00:00
Monica Khoury 702539a4db Chore: change support category for Account Deletions request (#26675)
Change support category for Account Deletions request
2024-05-23 11:26:57 +03:00
Joshen Lim 5d5a5d57b6 Support viewing postgrest logs for replicas (#26692)
* Support viewing postgrest logs for replicas

* Fix
2024-05-23 15:52:52 +08:00
Joshen Lim 706ff040dc Update pool size warning (#26694)
* Update pool size warning

* Update warning if session mode is selected

* Update warning if session mode is selected

* Set warning
2024-05-23 15:46:54 +08:00
Joshen Lim 35506d8550 Allow dropping replica irregardless of status (#26691)
* Allow dropping replica irregardless of status

* Prettier lint
2024-05-23 14:37:36 +08:00
Jordi Enric ac83ab8e9e fix icon size and color (#26662) 2024-05-22 22:09:04 +02:00
Jordi Enric 9ded715346 fix crash in security advisor (#26658) 2024-05-22 10:56:35 -02:30
Monica KhouryandTerry Sutton adcf22c9aa Chore: Reorder support form fields for better user flow and clarity (#26473)
* Reorder support form fields for better user flow and clarity

* Modify subscription information box

* Modify whats shown after ticket submission

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-05-22 09:18:01 -02:30
Ivan Vasilov 79dbfd1ccc fix: Add sourcemaps and error stacks in Sentry errors (#26474)
* Use Sentry Error boundary.

* Add a button for throwing error to test the sentry error boundary.

* trigger an error during rendering.

* Move the throwing of error.

* Fix the error boundary state.

* Try to throw an error from the project list.

* Revert to using react error boundary.

* Minor fixes.

* Add an example page for throwing an exception to be caught by Sentry. Remove the error filter from the Sentry client config.

* Remove config for allowing errors only from our code.

* When capturing an exception with Sentry, add a tag if the exception is in the boundary.

* Minor fixes.

* Remove testing code.

* Move forgotten code.

* Add a function for anonymized user id.

* Set the sentry user id by anonymizing the actual user id.

* Don't send Sentry reports if the user hasn't consented to the telemetry.

* Add a helper function whether the studio can send telemetry data.

* Reuse the helper function in the _app file.
2024-05-22 10:35:15 +00:00
Jordi Enric a9aa3acf72 Sentry: capture message on support form err (#26656)
capture message on support form err
2024-05-22 10:05:18 +02:00
Tim McEwanandCharis d230f6efed Correct minor typo in Logs.constants.ts (#26475)
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-05-22 01:02:31 +00:00
Joshen Lim 3654f8e74b Resolve query of undefined error in query-performance page (#26600)
* Resolve query of undefined error in query-performance page

* smol update

* Lint
2024-05-21 17:59:51 +08:00
Joshen Lim 82a0ad93c8 Fix ref issue on AlertError component (#26602) 2024-05-21 17:42:34 +08:00
Joshen LimandIvan Vasilov bb6349f34f Second round of wrapping RQ errors with handleError (#26428)
* First round of wrapping RQ errors with handleError

* Remove the throw before the handleError usage.

* Make the handling of an API error more versatile. Add logging in Sentry if the error is of unknown type.

* Remove throwing of the handleError function.

* Add return type to the handleError function to be never so that we're sure it always throws.

* Second round of wrapping RQ errors with handleError

* Temp fix in delete credential mutation, and fix loading state

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-05-21 15:51:11 +08:00
Joshen LimandAlaister Young 429f3d2851 Error boundary handle removeChild error (#26580)
* Error boundary handle removeChild error

* Update apps/studio/components/ui/ErrorBoundaryState.tsx

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

* Lint

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-05-21 10:55:35 +08:00
Terry Sutton f6fa953d69 Chore/fix cardbutton (#26496)
Fix cardbutton overlapping
2024-05-20 09:42:27 -02:30
Terry Sutton aa02bd2188 Chore/sentry fixes (#26402)
* Add a key

* Make full page crashes errors

* Add a span around form label
2024-05-17 08:28:14 -02:30
Joshen Lim 80d748facb Disable restart button if replica is not active healthy (#26429)
* Disable restart button if replica is not active healthy

* Prettier
2024-05-17 17:38:19 +08:00
Joshen Lim 434d7ea74d Fix maximum call stack error in SQL editor (#26434) 2024-05-17 17:31:40 +08:00
Joshen Lim 48869ee26f Add redirect identifier to log selection if available (#26383) 2024-05-17 15:24:11 +08:00
Joshen Lim b4f5c0c16a Chore/support more granular updates via events for spinning up replica (#26378)
* Support more granular updates via events for spinning up replica

* Add duration estimates as tooltips

* Show granular error message if error happens during replica set up

* Add support for hours in duration estimates
2024-05-17 14:09:58 +08:00
Joshen Lim a25242e352 POC resolve google translate remove node problem in table editor (#26380) 2024-05-16 12:59:35 +02:00
Joshen Lim 12222ca641 Support checking API gateway logs for load balancer (#26353) 2024-05-16 13:05:14 +08:00
Joshen Lim b638f53ce0 Chore/remove optimistic rendering for spinning up replicas (#26331)
* Remove optimistic rendering when spinning up read replicas

* Fix missing edge when load balancer renders

* Tiny style fix
2024-05-16 13:04:18 +08:00
Thomas 7f61132bc2 chore: adjust copy in addon update modal for partner billing[GEN-8953] (#26306) 2024-05-16 11:40:39 +08:00
Thomas 4e111f8f4d chore: adjust copy for partner billed org when up/downgrading plan [GEN-8952] (#26361) 2024-05-16 11:26:03 +08:00
Ivan Vasilov 6e0441334c fix: Make the sentry error message better (#26292)
* Make the sentry message more explanatory.

* Add intentional error for testing the sentry reports.

* Fix the intentional errors.

* Remove the buttons for testing.
2024-05-14 16:04:18 +02:00
Ivan Vasilov 6f5cabdc62 feat: Make the conversational AI in the SQL editor default (#23142)
* Remove feature preview for the conversational AI for SQL editor.

* Remove all code related to the previous implementation of editor ai.

* Update the snapshots for the ai commands.

* Remove unneeded code from the ai panel.

* Show the diff bar when debugging.

* Convert the updateEditor function into a callback.

* Simplify the debugging functionality by using react state instead of react context.

* Erase the AI disclaimer when formatting code as modification.

* Add a button to clear the chat history.
2024-05-14 15:40:42 +02:00
Joshen Lim 271734eec2 Chore/support checking replication lag in database reports (#26290)
* Init replication lag chart in database reports

* Navigate to replication lag chart via query params

* Add view replication lag CTA in map view

* Add replication lag metric to instance node view

* Prettier
2024-05-14 20:00:20 +08:00
Monica Khoury 448cf84e3d Fix: spelling error in countries quickstarts (#26296) 2024-05-14 08:40:48 -02:30
Joshen Lim 99635fbb5e Support restarting replicas (#26240)
* Support restarting replicas

* Support restarting replica through map view

* Lint

* Lint
2024-05-14 15:47:27 +08:00
Joshen Lim 3f07934905 Support checking API reports by replicas (#26238)
* Support checking API reports by replicas

* Fix API report for replica and add error handling

* Fix tests

* Add load balancer as an option for API reports
2024-05-14 14:13:33 +08:00
hallidayo b17841ced1 feat: mobile connect tab (#22830)
* mobile connect tab

* prettier changes
2024-05-13 09:02:00 -02:30
hallidayo 74c7eb40ce fix/prisma connect missing pgbouncer param (#22762)
added pgbouncer
2024-05-13 09:08:48 +00:00
Joshen LimandAlaister Young a72220efde Custom error boundary (#25946)
* Test custom error boundary

* Test

* Test

* Add error boundary to catch full page crashes

* Update apps/studio/components/ui/ErrorBoundaryState.tsx

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

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-05-13 13:24:08 +08:00
Joshen Lim 88bbe7042a Chore/update filter sort table editor to new popover (#25832)
* Update table editor FilterPopover to new popover component

* Update table editor SortPopover to new popover component

* Don't close popovers

* Address feedback
2024-05-13 12:36:51 +08:00
Joshen LimandTzeYiing d025e0f739 chore/fix studio jest tests (#25872)
* Fix tests in tests/unit, tests/components and files under tests, looking into tests/pages

* Fix tests under pages/projects root

* Fix

* Comment out broken tests that im stuck with

* Fix api-report.test

* Fix storage-report-test

* chore: fix some tests

* chore: remove logging

* Fix LogsPreviewer.test.js

* Fix most of logs-query-test

* Skip broken tests instead of false positiving them

---------

Co-authored-by: TzeYiing <ty@tzeyiing.com>
2024-05-11 12:05:25 +02:00
Alaister Young 155570bfa7 fix: allow sql language functions (#25986) 2024-05-10 09:48:49 -02:30
Terry SuttonandJoshen Lim 94ebace4bc Fix wrapper label not present (#25974)
* Fix wrapper label not present

* Fix

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-05-10 08:56:52 -02:30
Pamela Chia fe1e165bbf chore: remove services from docs (#25989)
* chore: remove services from docs

* fix: prettier
2024-05-10 18:25:59 +08:00
Alaister Young abe0d4b0e7 fix: don't use github avatars for fly users (#25983) 2024-05-10 17:32:24 +10:00
Wen Bo Xie db24eb2e90 fix: revert renaming vector to pgvector on the client (#25911)
* Revert "docs: rename vector to pgvector (#23308)"

This reverts commit c30d5f0b1f.

* Revert "docs: update vector reference to pgvector (#23305)"

This reverts commit b2bae1351c.

* Revert "Fix vector extension (#23386)"

This reverts commit 7341b30c27.

* Revert "Rename vector to pgvector on client side (#23286)"

This reverts commit b48b6e201b.

* docs: add note to pgvector docs that ext name is vector

* fix: add link to vector ext card
2024-05-09 21:19:02 -07:00
Jordi Enric d5a0759db9 Fix S3 cred form validation (#25885)
fix form validation
2024-05-09 12:12:14 +02:00
Alaister Young fa2fed63ae fix: branch query enabling condition (#25914) 2024-05-09 14:20:47 +10:00
Jonathan Summers-MuirandJordi Enric e19b3f53bf Chore/tidy s3 creds (#25871)
* chore: use standard primitives for dialog

* chore: remove gap-4 from dialogs

* chore: missing DialogSection

* update stories

* Update S3Connection.tsx

* Update S3Connection.tsx

* Update S3Connection.tsx

* Update S3Connection.tsx

* add which credential youre deleting in the dialog

---------

Co-authored-by: Jordi Enric <jordi.err@gmail.com>
2024-05-08 17:08:04 +02:00
divit 02f540b929 fix: missing space in restore confirm modal (#25865) 2024-05-08 13:26:41 +05:30
Jordi Enric 8b05a80d0c fix undefined timestamp in log explorer (#25844) 2024-05-07 15:30:19 +00:00
Kamil Ogórek 9cb7361a25 ref: Update vercel connection toast message (#25839) 2024-05-07 13:53:35 +00:00
Kamil Ogórek b18be7e4d2 feat: Allow for configuring target envs for Vercel integration (#25782) 2024-05-07 21:19:07 +10:00
1afaae6447 Chore/reports read replicas filter (#23711)
* Scaffold for API reports

* Add support for filtering database reports by replicas

* midway adding read replica support for custom reports

* Refactor reports page to use react query and deprecate project content mobxstore

* Reports add chart labels if metric is read replica specific

* Give an easier way to remove charts from reports

* make reports layout non-blocking

* Update apps/studio/components/interfaces/Reports/Reports.tsx

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

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-05-07 16:44:23 +08:00