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
Alaister Young
6547f02d14
Revert "Project creation pre select region" ( #26994 )
...
Revert "Project creation pre select region (#26991 )"
This reverts commit 8886f011c0 .
2024-06-04 13:01:24 +00:00
Ivan Vasilov
09b4e2b336
fix: Check the message if it's a string when handling API errors ( #26436 )
...
Check for string when handling API errors.
2024-06-04 13:22:46 +02:00
Joshen Lim
8886f011c0
Project creation pre select region ( #26991 )
2024-06-04 19:07:33 +08: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
9e45053d25
Chore/sql editor pagination of results ( #26857 )
...
* Add pagination to SQL editor for results longer than 100 rows
* Change pagination to automatically setting a limit
* Fix
* Address initial comments
* Compress SQL editor actions when ai assistant is open and screen is of a certain width
* Fix checking
* Add some fixes and tests
* Add a message if the query had an error and the limit was applied
* Rename to suffixWithLimit
* Small refactor and fix
2024-06-04 15:20:18 +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
Joshen Lim
e904030bd1
Improve enabled check on ongoing queries ( #26984 )
2024-06-04 14:19:11 +07:00
Joshen Lim
63493daa65
Allow viewing ongoing queries and aborting them ( #26887 )
...
* Allow viewing ongoing queries and aborting them
* Fix
* Add refresh button + shift view running queries CTA
* Fix scrolling in SqlEditorMenu
* Small styling fix for table editor menu schema selector error state
2024-06-04 13:07:55 +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
Punith G
4e7ff2a245
docs: wrap url and anon key strings in quotes for flutter connection example ( #26939 )
...
docs: wrap url and anon key strings in quotes
2024-06-03 23:33:45 +00: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
Alaister Young
8e47d317fa
chore: pg-meta functions ( #26881 )
...
* start pg-meta functions
* pg meta create function
* pg meta database functions update and delete
* fix ts
* update execute sql error type
* update execute sql error type
* remove duplicate database functions query
2024-06-03 23:21:19 +08: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
hallidayo
e252b4ec00
feat: creating/editing enums margin ( #26843 )
...
top and bottom margin
2024-05-31 18:05:49 +00: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
Dan Ryland and Charis
92b7a33b49
fix: switch undefined variable ref from countries to todos ( #26743 )
...
* fix: switch variable ref from countries to todos
* fix: duplicate const
---------
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com >
2024-05-31 16:24:17 +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
14526f1b96
Update storage settings max file upload size ( #26916 )
2024-05-31 16:13:42 +08:00
Joshen Lim
6df893bfc7
Fix icon size in storage settings ( #26912 )
2024-05-31 14:48:27 +08: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
Joshen Lim
97853287f3
Add empty state for auth hooks page ( #26889 )
...
* Add empty state for auth hooks page
* Remove unused imports
2024-05-31 10:02:55 +08:00
Kevin Grüneberg
6fedc2a7bf
chore: more clear read replica costs ( #26883 )
2024-05-30 19:43:38 +08:00
Alaister Young and Han Qiao
193ce3ba8d
fix(studio): jwt secret for self-hosted ( #26858 )
...
* fix(studio): jwt secret for self-hosted
* update jwt secret variable name in postgrest config files
* fix: add jwt secret to self hosted studio (#26859 )
* fix: add jwt secret to self hosted
* chore: rename env var
---------
Co-authored-by: Han Qiao <sweatybridge@gmail.com >
2024-05-30 05:53:23 +00: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
Ivan Vasilov
e1cf9d61ae
fix: Fix the sort feature in the Table editor ( #26865 )
...
* Expand the Sort type with a table property.
* Add a qualifier for the sort when sending a fetch table query.
* Fix the tests.
2024-05-29 17:02:54 -02:30
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
0a0f2260f9
Chore/gracefully handle large text or json in table editor ( #26792 )
...
* Support rendering large text/jsons in grid
* Support rendering large json in side panel, and large text in grid
* Support rendering large text in side panel
* Fix
* Update comment
* Fix the editValue type for json fields.
* Fix
* Update blur value
* Fix
* Feex
* Padding bump
* Small refactor
---------
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com >
Co-authored-by: Terry Sutton <saltcod@gmail.com >
2024-05-29 17:10:07 +08: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
35645efc6f
feat: add UI For Auth HTTP Hooks ( #22495 )
...
* feat: add https auth hook support
* fix: commit changes
* fix: add enterprise hook config
* fix: add descriptionText
* Revert the changes to the ui components.
* Refactor the whole hooks page into a table with adding/editing hook in a side panel.
* Dele te unused file.
* Rename all web strings to HTTPS.
* Put all fields in the hook card in a copyable and revealable input.
* Start nudges
* Nudges
* Add validation for both types of hooks.
* Reorganize the layouts for the both types of hooks.
* Move the button for enabling a hook in the side panel.
* Move the button for deleting a hook in the side panel.
* Minor redesign of the hook card.
* Add a link to upgrade to enterprise.
* Fix type errors.
* Simplify function selector.
* Add checked prop to the toggle.
* Wait when deleting a hook.
* Use the new RadioGroup.
* Add a flag for https hooks.
* Minor CSS fixes.
* Change the page to use scaffold containers.
* Minor fixes.
* Convert the description to markdown. Fix. the generate secret onClick handler.
---------
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com >
Co-authored-by: Terry Sutton <saltcod@gmail.com >
2024-05-29 10:31:29 +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
Wen Bo Xie
decccaf763
fix: add logical backup warning to dbdev template ( #26816 )
2024-05-28 21:13:33 -02:30
Terry Sutton
83679e3ddf
Chore/move security advisor basics ( #26669 )
...
* Start
* Start
* Move advisors
* cleanup
* Add redirects
* Check for an id
* Cleanup
* Link to the advisor from the table editor
* Cleanup
* Link to rows in performance grid
2024-05-28 16:05:21 -02:30
Terry Sutton
0c7d5dc306
Fix value set for storage upload unit ( #26803 )
...
* Fix value set for storage upload unit
* Convert to RHF
* Update select
* Load config properly
* Cleanup
2024-05-28 12:13:36 -02:30
Jordi Enric
33abcaa873
fix url query breaking active tab ( #25953 )
...
* fix
* rm unused arg
* forwardRef NavMenuItem
2024-05-28 11:03:22 +02:00
Alaister Young
6f6bcb9b08
chore: move edge functions to new fetchers ( #26812 )
...
* chore: move edge functions to new fetchers
* invalidate edge functions list query cache on update mutation
2024-05-28 16:53:39 +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
Jonathan Summers-Muir
423397e858
remove old misc tailwind ( #26788 )
...
Update ServiceStatus.tsx
2024-05-27 14:49:30 +02:00
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
Terry Sutton
24f9b54db1
Chore/lint gridheaderactions ( #26750 )
...
Adjust logic for GridHeaderActions
2024-05-24 18:00:56 -02:30
Jonathan Summers-Muir
ec760d4e97
add Admonition to Design System ( #26710 )
...
* add Admonition to Design System
* added notices about FormLabel
* Update label.mdx
2024-05-24 09:21:41 +00:00
Joshen Lim and Jonathan Summers-Muir
73d77a2fd8
Fix text confirmation modal not resetting input field ( #26696 )
...
* Fix text confirmation modal not resetting input field
* Remove usage for undeclared variable folderName
* Update dependency array to reset form in text confirmation modal to be confirmString instead
---------
Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com >
2024-05-24 17:18:31 +08:00