Alaister Young
c918aea9ee
chore: new project statuses ( #27213 )
...
* chore: new project statuses
* add restarting layout
* add restore failed state
* update project cards
* update wording
* fix ts errors
* address feedback
* add pause failed state
2024-06-24 16:06:58 +08:00
Kamil Ogórek
18e4f72b1d
ref: Do not disable branching when removing GitHub connection ( #27412 )
2024-06-20 20:43:40 +08:00
Terry Sutton
950370b0df
New link for interpreting disk io ( #27190 )
2024-06-11 17:07:37 -02:30
Jonathan Summers-Muir and Joshen 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
Kevin Grüneberg
53bc34fa9e
chore: adjust project transfer texts ( #27048 )
2024-06-06 13:40:39 +08:00
Terry Sutton and Ivan 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
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-Muir and Joshen 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-Muir and Joshen 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
Joshen Lim
403c981aae
Update physical backups enable flow for read replicas ( #26981 )
...
* Only show physical backups CTA if project already has a small compute
* Update physical backups UX flow
* Revert modal, go back to alert
2024-06-04 15:00:00 +07:00
Lakshan Perera
c44b9fe54e
fix: show execution ID in Function invocation details ( #26982 )
...
fix: show execution ID in Function invocations details
2024-06-04 12:46:02 +07:00
Jordi Enric and Terry Sutton
7c1d83e910
add panel to show selected log in logs explorer, and some ui fixes ( #26925 )
...
* add panel to show selected log in logs explorer, and some ui fixes
* fix type error
---------
Co-authored-by: Terry Sutton <saltcod@gmail.com >
2024-06-03 17:31:44 +02:00
Joshen Lim and Alaister Young
4637140e72
Fix downgrade network error causing UI crash ( #26919 )
...
* Fix downgrade network error causing UI crash
* Ensure that all try blocks have at least a catch block and not an empty finally block
* Update apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx
Co-authored-by: Alaister Young <alaister@users.noreply.github.com >
* Update
---------
Co-authored-by: Alaister Young <alaister@users.noreply.github.com >
2024-06-03 11:08:39 +08:00
Jordi Enric
aa84f7f60b
fix warehouse rows & update UI for event detail ( #26891 )
...
* ui fixes, rendering data in warehouse table fixed
* reduce padding in header
* rm test of copy button since it was moved elsewhere
2024-05-31 20:59:28 +02:00
Wen Bo Xie and Joshen Lim
cd930f5a2f
feat: add IPv4 add on direct conn notice ( #26903 )
...
* feat: add IPv4 add on direct conn notice
* feat: add session mode warning
* fix: remove statement from Supavisor-related types
* Revert change in api types file
* Revert change in api types file
* Update API types file via codegen
* Smol feex
* Temp lint fix
* Fix
* fix: include serverless mention
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
2024-05-31 17:07:25 +00:00
Alaister Young
c8c52bbca9
feat: disable project upgrade ( #26920 )
2024-05-31 17:10:47 +08:00
Alaister Young
54046046b0
feat: disable project restarts ( #26918 )
...
* feat: disable project restarts
* invert
2024-05-31 08:46:50 +00:00
Joshen Lim
0d7137209c
Chore/sentry fixes 280524 ( #26828 )
...
* UpgradeToPro remove project ref and org slug props
* Add check in Docs/ResourceContent
* Add conditional for accessing query property in QueryPerformanceGrid
* Add fallback value for lastPage in notifications-v2-query
* Simplify logic for finding api key in TerminalInstructions, EdgeFunctionDetails, [ref]/api/index
* Minor fixes and refactors
* Fix type issues
2024-05-31 10:52:18 +08:00
Kevin Grüneberg
6fedc2a7bf
chore: more clear read replica costs ( #26883 )
2024-05-30 19:43:38 +08:00
Jordi Enric
483492564d
disable warehouse tenant query when ff is disabled ( #26873 )
...
* disable warehouse tenant query when ff is disabled
* rm unecessary check
* disable warehouse queries when warehouse flag is off or not in warehouse querytype
* fix useeffect forcing query to refetch when disabled
2024-05-30 01:30:43 +02:00
764d10986d
vitest & msw integration ( #26303 )
...
* 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
* Replace jest with vitest
* Rename all *.test.js to *.test.ts
* Configure vitest to work with jsx
* fix vitest issues, fix tests, skip broken tests, add msw, add next-router-mock
* uncomment file
* add tests for msw and nrm
* Fix failing tests
* fix tests in RowEditor
* fix datepicker tests
* fix type errors and comment out tests that need some refactoring
* leave 1 test so test script works
* rm clog and aaaaa
* rename script
* move msw to studio
* add pckg json which i forgot in last commit
* rm consolelog
* move vitest ui dep
* Move next-router-mock to studio.
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
Co-authored-by: TzeYiing <ty@tzeyiing.com >
Co-authored-by: Kamil Ogórek <kamil.ogorek@gmail.com >
Co-authored-by: Terry Sutton <saltcod@gmail.com >
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com >
2024-05-29 17:31:20 +02:00
Jonathan Summers-Muir
81b1dc2161
[Dashboard] Postgrest API settings renamed to "Data API" settings. now using react-hook-form ( #26793 )
...
* 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 project-postgrest-config-update-mutation.ts
* add bottom padding
* Update PostgrestConfig.tsx
* Update PostgrestConfig.tsx
* Update multi-select.tsx
* Update multi-select.tsx
* Update PostgrestConfig.tsx
* Update PostgrestConfig.tsx
* Update PostgrestConfig.tsx
* Update PostgrestConfig.tsx
2024-05-29 17:01:56 +08:00
9fd85e76fb
feature: warehouse ( #23714 )
...
* add event collection ui, queries, routing
* fix alignment issue
* renaming
* wip
* feat: initial data hooks and integration with feature flagging
* update with naming, correct mocks, etc
* feat: add source crud integration
* mock data, fix form, add motion to drawer
* feat: optimize warehouse fetch behaviour
* feat: add in valid query
* chore: ermove collection mocks
* feat: optimize tenant fetching
* cleanup + update openapi client + fix fetch calls
* cleanup imporst
* on delete success, redirect to main logs page
* fix dropdown event propagating to link and opening page
* Refactor code to use useParams and useRouter in CreateWarehouseCollection.tsx, WarehouseCollectionDetail.tsx, and LogsLayout.tsx
* clean warehouse query
* warehouse access tokens create, list
* add warehouse access token revokal
* fix access tokens table, fix access tokens revoke feature
* format date in access tokens table
* fix some state issues and warnings in access tokens forms
* warehouse/feat: introduction when creating event collections (#23244 )
feat: add introduction for event collections
* warehouse/feat: rename headers and nav items (#23243 )
* feat: rename headers
* feat: use feature flag for navigation bar
* move header name flag to component
* fix typeerror in create collection query
---------
Co-authored-by: Jordi Enric <jordi.err@gmail.com >
* ui fixes, rm deprecated icons
* render table with events
* fix typeerror results arr
* add pagination
* some ui fixes
* fix loading states, format dates, test connection dialog
* patch type errors
* Fix access token selection in TestCollectionDialog and update column name in WarehouseAccessTokens
* rm unused querytype
* rm unused querytype in logtable
* patch type errors in warhouse collection mutations
* rm unused component
* mr unused import
* show connection dialog in staging
* fix Run btn now showing up
* fix undef argument
* show pagination only when there are results
* fix issues in connection dialog, improve ux
* Update apps/studio/components/interfaces/DataWarehouse/CreateWarehouseAccessToken.tsx
Co-authored-by: Ziinc <Ziinc@users.noreply.github.com >
* Update apps/studio/components/interfaces/DataWarehouse/CreateWarehouseAccessToken.tsx
Co-authored-by: Ziinc <Ziinc@users.noreply.github.com >
* fix infinite render loop, adapt component to render log metadata on log selection
* rm unused import, prevent ui from breaking when some data may be missing from an event
* update WAT create mutation to use template
* follow mutation template in delete access token mutation
* refactor naming, improve code in some areas
* rm unused mocks for msw
* skip tests - this will get fixed on the vitest PR
* Update apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
* fix loading compo
* rm unused import
* use correct alert title
* rm unnecessary div
* fix layout in projectpaused alert
* fix type err, refactor to new method
* rm observer
* rm observer
* refactor warehouse collections update
* use correct get method, comment out so it doesnt err
* use correct method
* fix formatting issues
* ref imports
* ref imports
* clean up imports
* clean imports
* clean imports
* rename props
* destructure props
* cleanup imports
* Update apps/studio/components/interfaces/DataWarehouse/CreateWarehouseCollection.tsx
Co-authored-by: Ziinc <Ziinc@users.noreply.github.com >
* ref scale class
* cleanup divs
* Update apps/studio/components/interfaces/DataWarehouse/TestCollectionDialog.tsx
Co-authored-by: Ziinc <Ziinc@users.noreply.github.com >
* refactor to rhf
* reuse types, cleanup, refactor to react query hooks instead of el events
* refactor table component to handle empty state
* Update TestCollectionDialog to use unique keys for SelectItem components
* Update TestCollectionDialog to use unique keys for SelectItem components
* Update TestCollectionDialog to use unique keys for SelectItem components
* fix empty state ui
* use destructured queries
* rename query types
* Update apps/studio/components/interfaces/DataWarehouse/WarehouseAccessTokens.tsx
Co-authored-by: Ziinc <Ziinc@users.noreply.github.com >
* chore: Refactor WarehouseCollectionDetail component
* rm unused imports
* rename loadolder
* rm typcast
* rhf in create token
* improve err handling
* refactor to rhf, refactor queries, use cn utils, cleanup
* fix loading logselection
* add correct type to warehouse access tokens query
* use correct types in err & clean unused types
* toggle token in curl exampel
* use product empty state component in warehouse
* add client side validation of collection name, temp fix
* add New badge
* update testcolldialog
* cleanup unnecessary div and rm double border
* code style fixes
* handle err
* code style fix
* add correct type
* add correct err type
* fix type error
* fix type err
* fix missing type
---------
Co-authored-by: TzeYiing <ty@tzeyiing.com >
Co-authored-by: Ziinc <Ziinc@users.noreply.github.com >
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
2024-05-29 10:32:46 +02:00
Joshen Lim
578a0291f3
Chore/read replica fixes 290524 ( #26852 )
...
* Bring up warning for pg version not at least 15 for deploying replicas
* Add database selector for infra activity charts
2024-05-29 15:30:22 +08:00
Joshen Lim
cd4b7c0497
Remove all usage of read replicas enabled flag ( #26819 )
...
* Remove all usage of read replicas enabled flag
* Add fix for fly
* Fixes
* Prettier
* Swap to DropdownMenuRadioGroup
2024-05-29 11:46:15 +08:00
Jonathan Summers-Muir
2109d22c46
[Dashboard] init layouts in project settings ( #26790 )
...
* init layouts in project settings
* Update general.tsx
* update gap
* Update Scaffold.tsx
* spacing issues
* add bottom padding
* Update api.tsx
2024-05-28 05:28:23 +00:00
Terry Sutton
5e7817548b
Fix connect ui bg ( #26794 )
...
* Fix connect ui bg
* Remove unused bodyclassname prop
2024-05-27 10:38:01 -02:30
Joshen Lim and Alaister Young
dd7c1d19ed
Small RR fixes ( #26739 )
...
* Small RR fixes
* Fix
* Update apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/DeployNewReplicaPanel.tsx
Co-authored-by: Alaister Young <alaister@users.noreply.github.com >
---------
Co-authored-by: Alaister Young <alaister@users.noreply.github.com >
2024-05-27 15:26:48 +08:00
Joshen Lim and Alaister Young
0c81551110
RQ convert mutateAsync calls to mutate where possible, otherwise add try finally blocks ( #26737 )
...
* RQ convert mutateAsync calls to mutate where possible, otherwise add try finally blocks
* Skip eligibility query if project status is coming up
* Small UI update to replicas side panel
* Update apps/studio/components/interfaces/SQLEditor/RenameQueryModal.tsx
Co-authored-by: Alaister Young <alaister@users.noreply.github.com >
* Add error handling in CIDR
* Prettier lint
---------
Co-authored-by: Alaister Young <alaister@users.noreply.github.com >
2024-05-24 16:58:49 +08:00
Jonathan Summers-Muir
6dff3a7369
[Design System] feat: Multi Select ( #26719 )
...
* chore: deprecate old files. add new one with first story
* init multi select
* docs
* Update multi-select.mdx
* deprecation notices
* Delete MultiSelect.stories.tsx
2024-05-24 15:54:51 +08:00
Kamil Ogórek and Alaister Young
d590ec1ccc
Add note regarding branching being disabled for GitHub integration panel ( #26707 )
...
* Add note regarding branching being disabled for GitHub integration panel
* tweak styling
---------
Co-authored-by: Alaister Young <a@alaisteryoung.com >
2024-05-23 12:24:08 +00:00
Kamil Ogórek
d6ed076ef2
feat: Allow for configuring branch limit per connection ( #26394 )
2024-05-23 11:04:01 +00: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
Tim McEwan and Charis
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
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
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
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
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 and TzeYiing
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
Jordi Enric
8b05a80d0c
fix undefined timestamp in log explorer ( #25844 )
2024-05-07 15:30:19 +00:00