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
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
aa90e578ca
Chore/show unlock icon next to view entities ( #23238 )
...
* Show unlock icon next to views and foreign tables
* Temp header actions for all entities
* Add warnings for views and foreign tables
* Add labels for each entity type
* Cleanup
* Unneeded comma
* Remove unneeded useEffect
* Check lints on the entities menu too
* Pass exposed schemas to lint query
* Type cleanup
* Update
* Update lint, add 0016
* Fix materialized view logic
* Cleanup
* Grab lint count
* Update apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
Co-authored-by: Inian <inian1234@gmail.com >
* Update apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
Co-authored-by: Inian <inian1234@gmail.com >
* Update apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
Co-authored-by: Inian <inian1234@gmail.com >
* Update apps/studio/components/interfaces/TableGridEditor/GridHeaderActions.tsx
Co-authored-by: Inian <inian1234@gmail.com >
* Language changes
* Use lints for gridheaderactions
* Types cleanup
---------
Co-authored-by: Inian <inian1234@gmail.com >
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com >
2024-05-23 16:52:03 -02:30
Mohammed Yasin Mulla and Charis
2dc39a75a0
refactor: change the content of .env.local file of code block to all… ( #26671 )
...
refactor: change the content of .env.local file of code block to allow the environment variables to be used in the Expo app directly without installing any 3rd party library & also refactored the utils/supabase.ts file to use the process.env formate while createing the client
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com >
2024-05-23 18:08:04 +00:00
Terry Sutton and Ivan Vasilov
607a6930c5
move linting to api ( #26341 )
...
* Start
* Fix type issues.
* Remove client side lints
* Fix error handler
---------
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com >
2024-05-23 14:34:29 -02:30
Terry Sutton
4ea0698cf3
Chore/add backup warning ( #26704 )
...
* Show warning that storage objects arent backed up
* Move alert to own component
2024-05-23 13:03:43 -02:30
Ivan Vasilov
71f860b28d
fix: Use beforeSend hook in Sentry to check for telemetry consent ( #26700 )
...
* Add a beforeSend hook to sentry client config.
* Remove the canSendTelemetry function and all its uses.
* Use captureException for capturing unhandled error messages.
2024-05-23 17:04:27 +02: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
Kevin Grüneberg
f6fe8238d8
chore: switch to new slug based invoice endpoints ( #26693 )
2024-05-23 18:51:31 +08:00
Kamil Ogórek
22b651ab3e
feat: Show Logs button in branching table ( #26385 )
2024-05-23 12:21:34 +02:00
Thomas
707f2fce4e
fix/various improvements to Free plan downgrade [GEN-8955] ( #26670 )
2024-05-23 12:14:28 +02:00
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
Greg Richardson and Charis
3f1df65bba
SQL to REST translator ( #25978 )
...
* feat: sql-to-rest poc
* feat: sql-to-supabase-js poc
* chore: upgrade to libpg-query@15
* feat: sql-to-rest docs tool
* docs(sql-to-rest): add introduction
* docs: wording improvements
* fix: theme
* chore: tailwind placeholder
* feat(sql-to-rest): limit, offset, and range
* feat(sql-to-rest): sort by
* fix(sql-to-rest): ui theme
* feat(sql-to-rest): casts
* feat(sql-to-rest): dynamic faqs in ui
* feat(sql-to-rest): improve ui responsiveness
* feat(sql-to-rest): more advanced faqs in ui
* feat(sql-to-rest): http and curl syntax highlighting
* feat(sql-to-rest): baseUrl in http/curl rendering
* docs(sql-to-rest): clarification on curl flags
* feat(sql-to-rest): more faqs
* refactor(sql-to-rest): split faqs into own file
* refactor(sql-to-rest): move formatters to sql-to-rest package
* docs(sql-to-rest): move page to new tools section
* feat(sql-to-rest): joins and resource embeddings
* chore(sql-to-rest): rename 'convert' to 'translate'
* feat(sql-to-rest): add faqs
* feat(sql-to-rest): ui improvements
* feat(sql-to-rest): faq title adjustment
* feat(sql-to-rest): link to client lib docs
* feat(sql-to-rest): assumptions
* feat(sql-to-rest): friendly 'not supported yet' errors
* feat(sql-to-rest): json columns
* feat(sql-to-rest): remove curl -G flag if unused
* feat(sql-to-rest): better error handling
* chore: revert accidental rls ai work
* fix: build errors
* fix(sql-to-rest): theme
* feat(sql-to-rest): change base url
* feat(sql-to-rest): basic aggregate poc
* feat(sql-to-rest): group by
* feat(sql-to-rest): more group by checks
* feat(sql-to-rest): count(*) special case
* fix(sql-to-rest): tests
* feat(sql-to-rest): faq on 'and' operator
* fix(sql-to-rest): error messages
* fix(sql-to-rest): multiple filters on same column
* refactor(sql-to-rest): error hints
* feat(sql-to-rest): match and imatch
* feat(sql-to-rest): in operator
* feat(sql-to-rest): parsing error hints
* feat(sql-to-rest): default language to curl
* feat(sql-to-rest): format on cmd+s
* feat(sql-to-rest): format initial value
* fix(sql-to-rest): turn off tab query group
* feat(sql-to-rest): improve wording in error messages
* feat(sql-to-rest): animated code blocks
* feat(sql-to-rest): more error hints
* fix(sql-to-rest): strip primary relation prefix from columns
* feat(sql-to-rest): json column in order by clause
* feat(sql-to-rest): validate all referenced relations exist in from clause
* refactor(sql-to-rest): split core sql-to-rest lib into separate repo
* feat(sql-to-rest): upgrade to v0.1.1
* feat(sql-to-rest): upgrade to v0.1.2
* feat(sql-to-rest): upgrade to v0.1.4
* chore: upgrade libpg-query
* feat: update 'create a pr' link
* fix: app builds
* fix: prettier
* fix: typecheck
* fix: studio tests
* chore: remove console.log
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com >
* docs(sql-to-rest): remove broken link to client libraries
---------
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com >
2024-05-22 12:37:01 -06:00
Charis
69c1988965
fix: replace non-word chars in uploaded filenames ( #26022 )
...
fix: replace non-word chars in uploaded filenames
Storage maintains a list of allowed characters, which excludes some
characters used automatically by OSes for naming files (e.g., Mac
default screenshot naming). To preempt errors, replace any characters
that aren't alphanumerics, underscores, hyphens, or periods with
underscores.
See: https://forum.obsidian.md/t/unable-to-attach-screenshot-images-in-macos-14-0-when-wikilinks-turned-off-urlencode-u-202f-char/68410/6
2024-05-22 12:11:18 -04:00
Jordi Enric
9ded715346
fix crash in security advisor ( #26658 )
2024-05-22 10:56:35 -02:30
Monica Khoury and Terry 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 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
3558dc0c61
Fix security advisor check on OTP length ( #26604 )
2024-05-21 14:52:58 -02:30
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 Lim and Ivan 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 Lim and Alaister 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
91c6026784
resolve find of undefined in api ( #26382 )
...
* resolve find of undefined in api
* Fix
2024-05-17 17:56:25 +08: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 and Ivan Vasilov
163263c3c5
First round of wrapping RQ errors with handleError ( #26384 )
...
* 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.
---------
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com >
2024-05-17 16:30:55 +08:00