Commit Graph
3261 Commits
Author SHA1 Message Date
angelico d038b26751 fix: smol nit (#27484)
* fix: smol nit

* chore: feedback
2024-06-24 15:29:04 +08:00
Joshen Lim d80befbae2 More auth related sentry whitelist errors (#27481)
* More auth related sentry whitelist errors

* Make pretty
2024-06-24 14:29:12 +08:00
Joshen Lim 45066f6b65 Handle if flag is false for restore disable check (#27483) 2024-06-24 14:17:16 +08:00
Joshen Lim 0bf85c32d6 Update restore validity logic for paused projects behind feature flag (#27404)
* Reinstate 90 day restore disable logic with feature flag

* Update types

* Fix

* Fix conditionalg

* Fix minor UI papercuts

* Add exact date for pause disable

* Error handler for pause status

* Update flag nmame
2024-06-24 13:43:52 +08:00
Kevin Grüneberg eecafc41e0 fix: Updating EU tax ids (#27440) 2024-06-22 17:19:53 +08:00
Charis 253668fd93 fix: types (#27433) 2024-06-21 12:22:42 -04:00
Terry Sutton d95a0fdfd4 Add link to smtp settings (#27429) 2024-06-21 09:46:36 -02:30
Kevin GrünebergandThomas bcda19a3bc chore: text adjustments for upcoming invoice section (#27419)
Co-authored-by: Thomas <31189692+ecktoteckto@users.noreply.github.com>
2024-06-21 17:26:57 +08:00
Charis 9d6d29c4db feat(cmd menu): add hooks (#27044) 2024-06-20 19:17:32 -04:00
Terry Sutton 6fa71c6c8e Chore/allow index advisor for postgrest queries (#27364)
* Run index advisor on postgrest queries

* Fix loading state
2024-06-20 17:47:30 +03:00
Kamil Ogórek 18e4f72b1d ref: Do not disable branching when removing GitHub connection (#27412) 2024-06-20 20:43:40 +08:00
Joshen Lim 8a703de845 Temp fix show tooltip message for restore project button (#27408) 2024-06-20 16:08:58 +08:00
Terry SuttonandJoshen Lim d6f9cb53f9 Set the primary key as the default sort if no other sort exists (#27097)
* Set the primary key as the default sort if no other sort exists

* Rename

* Add contextual toast messages when trying to update/delete row on table with no PKs

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-06-19 14:58:48 +08:00
Kevin Grüneberg f541107196 chore: use new tax id endpoints (#27246)
Adapts the tax id view to the new MGMT-API endpoints. Users can now only manage a single tax id instead of adding multiple.

Besides
- Use non-deprecated fetchers
- Use Shadcn components
2024-06-19 12:19:20 +08:00
Terry Sutton cae67a747a Chore/add dupe table button (#27359)
Add duplicate table button
2024-06-18 21:40:04 +03:00
Monica KhouryandTerry Sutton c3af755d29 Chore: preserve whitespace in SQL Editor result table (#27324)
* Chore: preserve whitespace in result

* Update apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx

* Update apps/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-06-18 12:38:20 -02:30
Terry Sutton 45998fd31a Chore/fix limit in sql query (#27179)
* Dont append limit on fetch first queries

* Add some tests
2024-06-18 20:46:00 +08:00
Terry Sutton 6b869dc9bc Case insensitive search (#27337) 2024-06-18 17:49:51 +08:00
Kevin Grüneberg e559600d76 chore: handle invoice issued status and adjust pay now link (#27233) 2024-06-13 15:39:20 +08:00
Joshen Lim 8fb4f4f985 Remove 90 day check on paused project (#27232) 2024-06-13 11:35:16 +07:00
Long Hoang c106aea52a chore: highlight preferred option (#27173) 2024-06-13 11:11:54 +07:00
Ivan VasilovandAlaister Young 3c6c3db48f fix: Make the copy in the Create User modal clearer (#27205)
* Separate the message because it's not connected to the checkbox.

* Fix obsolete fields.

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

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

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-06-12 13:18:33 +00:00
Terry Sutton 950370b0df New link for interpreting disk io (#27190) 2024-06-11 17:07:37 -02:30
Mankirat Singh 59b7eed1df Fix template overflow (#27156) 2024-06-11 09:24:42 -02:30
Joshen LimandAlaister Young a6b2b93f92 Disable restores if project paused for longer than 90 days (#27053)
* Disable restores if project paused for longer than 30 days

* Update to 90 days

* Update copy

* PRetty

* Update based on API changfes

* Prettier

* Update

* Minor copy fix

* simplify wording

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2024-06-11 18:02:56 +07:00
Jānis RuduksandCharis e8ca554bee fix: .env variable typo (#22884)
typo fix

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-06-11 05:18:03 +00:00
Ivan Vasilov 9b72cd8cf6 fix: Move the sentry user generation logic into the telemetry component (#27152)
* Move the sentry user generation logic into the telemetry component.

* Fix a missing import.
2024-06-10 14:41:18 +00:00
Joel Lee 7547c52e4f fix: revoke role on public for hooks (#27077)
* fix: revoke role on public for hooks

* fix: update SQL editor queries

* fix: update examples

* fix: update RBAC doc

* fix: update description to describe why we revoke public

* fix: correct use of we

* fix: run prettier

* fix: remove unintentionally added files
2024-06-07 22:03:12 +02:00
Ivan Vasilov 5847ad54cf fix: Test the playwright tests in Github actions (#26799)
* Add an API page for run-lints endpoint.

* Fix the playwright test.

* Make the check mandatory in the github action.

* Fix a console.log.

* Use a more stable way of waiting for buttons before clicking them.

* Add helper method for dismissing toasts.

* Wait for the other toast.

* Try and fix the flakiness of the toasts.

* Minor fix.

* Upload artifacts at the end of the github action run.

* Fix yaml stuff.

* Use the newer action for uploading. Shorten the retention period to 7 days.

* Add waitForResponse for the entity types API call.

* snapshot.

* Wait for the page to be loaded.

* Make the timeout bigger when waiting for response.

* Try to fix the timeouts.

* Minor restructuring of the test.

* Add another test and few minor todo tests.

* Fix the table names.

* Don't render hcaptcha in test mode.

* Expand the test to include sorting and filtering.

* Add a test for checking if the other schemas are can be listed.

* Make the sort popover button more stable.

* Fix a unused forward ref in the NavMenuItem component.

* Don't render the Toaster container when in test mode.

* Simplify starting the dev server when testing.

* Fix all inputs to have proper test ids.

* Fix the command for testing.
2024-06-07 17:44:28 +02:00
Alaister YoungandIvan Vasilov a82bf1311d chore: branches tabs use url state (#27085)
* chore: branches tabs use url state

* break out tab type

* Add extra type niceness.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-06-07 22:13:06 +08:00
Monica KhouryandTerry Sutton 538b59b698 Feat: Populate docs search on support form subject field (#23667)
* Draft: Docs Search

* Add: Command_Shadcn_

* Fix: typecheck error

* Fix: typecheck null error

* Fix: docs search when the subject field is emptied

* Make the design more compact and show only 5 results

* Add inset around results

* Fix inset

* Fix conflict errors

* Fix hover effect

* replace commands with links

* Fix broken links

* Nudges

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-06-07 10:16:01 -02:30
Ivan Vasilov cc47815af9 fix: Show the notice only on local/staging (#27089)
Show the notice only on local/staging.
2024-06-07 17:40:18 +07:00
Alaister Young e169e47171 fix: create preview branch modal (#27083)
* fix: create preview branch modal

* remove console.log
2024-06-07 08:26:08 +00:00
Joshen Lim e89c66fafd Add note for project creation region selection for local/staging (#27082) 2024-06-07 15:01:10 +07:00
Kevin Grüneberg 6f708d3f62 chore: adapt to new v2 customer update endpoint (#27081) 2024-06-07 15:40:06 +08:00
1e108491c1 chore: Refactor the StorageExplorerStore to use API calls from the data folder (#23222)
* Migrate all API calls to data folder.

* Remove unused mutation.

* MInor leftover type fixes.

* chore: Make the `StorageExplorerStore` fully typed (#23397)

* Migrate all API calls to data folder.

* Convert the poor man enums into proper enums.

* Add types to most of the methods.

* Add types around the methods for uploading files.

* Add types for file cache.

* Add types for buckets.

* Fix bunch of type errors.

* Add types to all store methods. Fix all types in components related to the store.

* Remove all anys from the Storage components.

* Fix the multiple selection.

* Fix the selected checkbox.

* Set all private methods to private and delete some unneeded code.

* Remove unneeded mutation.

* Update all mutations for storage explorer to follow template syntax

* Update apps/studio/components/to-be-cleaned/Storage/StorageExplorer/PreviewPane.tsx

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

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2024-06-07 14:01:45 +07:00
Joshen Lim 72fd5f5121 More whitelisting non critical errors (#27057)
* More whitelisting non critical errors

* 2 more whitelist errors
2024-06-07 13:51:20 +07:00
Jonathan Summers-Muir 4b1780b764 [Dashboard] fix: dialog branching, add block (#27064)
* fix: dialog branching

* TS fixes
2024-06-06 16:23:36 +02:00
Jonathan Summers-MuirandJoshen Lim 330ae6e407 [Dashboard] Chore/refactor new project form (#26997)
* init layouts in project settings

* Update general.tsx

* update gap

* Update Scaffold.tsx

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* spacing issues

* now added a enabled switch

* Revert "now added a enabled switch"

This reverts commit f22050302a.

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* revert

* Update project-postgrest-config-update-mutation.ts

* add bottom padding

* init changes

* Update PostgrestConfig.tsx

* Update [slug].tsx

* Update PostgrestConfig.tsx

* fix

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* Pull updates, resolve conflicts

* remove staging/local specific logic.

• stopped provider Select from flashing
•

* Update [slug].tsx

* split up region query

* Update [slug].tsx

* Update [slug].tsx

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-06-06 19:32:10 +08:00
Joshen Lim fcbf4f8f06 White list some non critical auth errors (#27049) 2024-06-06 12:45:42 +07:00
Kevin Grüneberg 53bc34fa9e chore: adjust project transfer texts (#27048) 2024-06-06 13:40:39 +08:00
Joshen Lim 3a9e99f30e Add sentry alerts for critical points of failures (#27029)
* Add sentry alerts for critical points of failures

* Prettier
2024-06-06 11:07:34 +07:00
Terry SuttonandIvan Vasilov 91c8e6538d Chore/hide infrainfo on fly (#27035)
* Hide InfraInfo component on fly projects

* Show loading screen on the read replicas widget until the project details come in.

* Revert "Show loading screen on the read replicas widget until the project details come in."

This reverts commit 79611f4b57.

* Fix the flash on read replicas on Fly deploys.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2024-06-05 19:14:36 +00:00
Jonathan Summers-Muir 972773ca87 [Dashboard] Chore: update Modal component to use new components (#26844)
* init

* add more examples

* update modal

* update modals

* more modals updated

* update modal

* Update NewAccessTokenButton.tsx

* Update NewAccessTokenButton.tsx

* fix: issue with scale on dialog opening. chore: added bg-dialog color

* fix modals

* add deprecation notices

* revert bg

* revert

* Update Modal.tsx

* Update PITRSelection.tsx

* update dialog docs

* fix: issue with payment method modal

* update terminal instructions

* update padding defaults
2024-06-05 10:06:55 +00:00
Joshen Lim 21890675e5 Chore/sentry fixes 050624 (#27025)
* Add check before generating nodes in settings infrastructure

* Fix conditional in ResourceContent and add some typing

* Wrap checkIfPrivate with try catch

* Add ? in TableEditor.utils generateTableFieldsFromPostgresTable

* More typing

* Add ternary in RPC

* Remove mobx from API docs v1

* Fix renaming folder in storage explorer
2024-06-05 16:32:24 +07:00
Alaister Young 0a4295e119 chore: remove custom domain activation warning (#27023)
* chore: remove custom domain activation warning

* update language
2024-06-05 14:17:58 +08:00
Kevin Grüneberg 56c9b5e651 chore: adapt to new payment endpoints (#26990) 2024-06-04 21:13:11 +08:00
Alaister Young 99af0e4483 Revert "[Dashboard] New project form now using react-hook-form" (#26995)
Revert "[Dashboard] New project form now using react-hook-form (#26808)"

This reverts commit 2dc2178dcc.
2024-06-04 13:09:43 +00:00
Jonathan Summers-MuirandJoshen Lim 2dc2178dcc [Dashboard] New project form now using react-hook-form (#26808)
* init layouts in project settings

* Update general.tsx

* update gap

* Update Scaffold.tsx

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* spacing issues

* now added a enabled switch

* Revert "now added a enabled switch"

This reverts commit f22050302a.

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* revert

* Update project-postgrest-config-update-mutation.ts

* add bottom padding

* init changes

* Update PostgrestConfig.tsx

* Update [slug].tsx

* Update PostgrestConfig.tsx

* fix

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* Pull updates, resolve conflicts

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-06-04 17:41:38 +07:00
Jonathan Summers-MuirandJoshen Lim 79c5bb9788 [Dashboard] Data API on/off switch (#26796)
* init layouts in project settings

* Update general.tsx

* update gap

* Update Scaffold.tsx

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* spacing issues

* now added a enabled switch

* Revert "now added a enabled switch"

This reverts commit f22050302a.

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* revert

* Update project-postgrest-config-update-mutation.ts

* add bottom padding

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* fix

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* add collapible

* update FormPanel component to be more composable

* Update PostgrestConfig.tsx

* Update PostgrestConfig.tsx

* update callout to warning variant

* Update FormLayout.tsx

* Update PostgrestConfig.tsx

* Small copy changes

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-06-04 16:02:47 +07:00