Commit Graph
1818 Commits
Author SHA1 Message Date
Joshen Lim 1ca992100a Add default array for cron http headers (#33255) 2025-02-03 15:55:59 +08:00
Joshen Lim 02d943e9d6 Add refresh button to reports (#33211)
* Add refresh to custom reports

* Add refresh button to API and storage reports

* Add refresh button to database report

* Clean up database report

* Clean up custom report
2025-02-03 11:59:28 +08:00
Joshen Lim 7dc467d843 Hide auth header from invoke command if enforce jwt is not true (#33209) 2025-02-03 11:36:04 +08:00
Joshen Lim 710e1c871a Fix custom report charts (#33199) 2025-01-31 16:10:41 +01:00
Ivan Vasilov 9d573abfc3 chore: Bump sentry to fix warnings (#33201)
Bump sentry.
2025-01-31 11:34:19 +00:00
Joshen Lim 956c2a9708 Show SSO badge if member is SSO (#33197) 2025-01-31 10:51:51 +08:00
Joshen Lim 39d56c1f67 Fix padding in organization delete panel (#33196) 2025-01-31 10:44:49 +08:00
Greg Richardson 1106bfea32 fix: ai prompt to discourage security_invoker=on for table creations (#33207) 2025-01-30 17:08:15 -07:00
Terry Sutton bc74c12b58 Chore/fix webhook params (#33155)
* Parse params with quotes

* Simplify function

* Fix headers as well
2025-01-30 11:24:14 -03:30
Ivan Vasilov 6f3c46f5da fix: Change the healthcheck route for docker Studio (#33180)
* Fix the healthcheck for the docker image for studio.

* Various fixes related to the self-hosted environment.
2025-01-30 00:31:52 +01:00
Ivan Vasilov 03515ee277 fix: Push the user to blank table editor when switching schemas (#33122)
* Push the user to blank table editor when switching schemas.

* Add missing import.
2025-01-29 14:46:45 +01:00
dependabot[bot] 0014d97f55 chore(deps): bump @sentry/nextjs from 8.34.0 to 8.49.0 (#33158)
Bumps [@sentry/nextjs](https://github.com/getsentry/sentry-javascript) from 8.34.0 to 8.49.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/8.49.0/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/8.34.0...8.49.0)

---
updated-dependencies:
- dependency-name: "@sentry/nextjs"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-29 14:45:45 +01:00
ThomasandIvan Vasilov b60a4df059 fix: changed overflow-x from scroll to auto for Grid footer (#32916)
fix: Changed overflow-x from scroll to auto

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2025-01-29 09:52:35 +01:00
Joshen Lim dbafc765ba Support peeking referencing record from table editor (#33141)
* Support peeking referencing record from table editor

* Clean up
2025-01-29 11:43:28 +08:00
Jordi Enric e59f2794f2 Service Status: fix status checks (#33125) 2025-01-28 18:15:15 +01:00
Joshen Lim e770d1322f Support dupe query (#33113)
* Support dupe query

* Update

* Small refactor
2025-01-28 17:23:17 +08:00
Joshen Lim 36637a8c94 SQL editor persist open close state of each section (#33112)
* SQL editor persist open close state of each section

* Address feedback
2025-01-28 17:09:17 +08:00
Joshen Lim aca05551d1 Update GetStartedHero (#33123) 2025-01-28 00:24:46 +08:00
Ivan Vasilov 8b9d5736e4 chore: Fix Monaco editor in strict mode (#33075)
* Move the code for adding code completion definitions to Monaco instance from the sql editor page to a hook.

* Use the hook the in the SQL Editor.
2025-01-27 14:42:27 +01:00
Ivan Vasilov 8f90c86050 chore: Use react-query cache for file previews (#23398)
* Empty spaces.

* Remove prop drilling for selectedFilePreview and just use it from the store.

* Add a hook for getting a fetch url. Use it in all places where it's needed. Remove the file cache from the store.

* Simplify the onCopyUrl hook further.

* Fix some bugs in the preview pane.
2025-01-27 14:32:03 +01:00
Ivan Vasilov 98ca85156a chore: Use sql-formatter for formatting all SQL in the studio (#33071)
* Bump the sql-formatter dependency.

* Add a function formatQuery which is a wrapper around sql-formatter.

* Replace all formatSQL features to use the new function formatSql.

* Remove unneeded RQ for formatting.

* Small fix.
2025-01-27 13:04:31 +01:00
Ivan Vasilov dbd6c3866d chore: Bump all versions of vitest to the v3+. Fix a vuln in vite (#33041)
* Bump all versions of vitest to the v3+.

* Bump vite to a non-vulnerable version (5.4.12).
2025-01-27 13:03:44 +01:00
Jordi Enric cf75f7a33e Notification filters: fix icon size (#33117)
* fix icon size

* undo notifpopover

* undo notifpopover
2025-01-27 12:02:50 +01:00
Kevin Grüneberg c96bd5c107 refactor: database size metric for Free Plan (#33039)
Instead of basing the database size metric for the Free Plan on summing up the average database size per project in the organization, we are going to simply enforce a database size limit of 0.5 GB per active project. Deleted projects are irrelevant and it should be much easier for customers to understand. We are querying the database size directly via the project to avoid delays.
2025-01-27 18:34:07 +08:00
Joshen Lim 4425e05f04 Update SQL editor search to return a flat list (#33064)
* Update SQL editor search to return a flat list

* Open folder when clicking on a snippet from searching and snippet belongs to a folder

* Update snipet page limit

* Set keep previous data true for count

* Add hover card for SQL search list

* Fix issues from feedback

* Make count loader less jarring
2025-01-27 15:40:51 +08:00
Joshen Lim 1a3a8cb353 Add colors quickstart SQL (#33107)
* Add colors quickstart SQL

* Update enum to be UPPER_CAMEL_CASE
2025-01-27 15:17:36 +08:00
Joshen Lim e20c36c505 Smol fix (#33109) 2025-01-27 15:08:26 +08:00
Kamil Ogórek 219962e0e3 misc: Disable Sentry Tracing (#33072) 2025-01-24 16:07:33 +01:00
Terry SuttonandDhairya Shah 89c324af84 fixed: infinite loading in storage explorer rows (#33051)
* fixed: infinite loading in storage explorer rows

* prettier

---------

Co-authored-by: Dhairya Shah <hello@dhairyashah.dev>
2025-01-24 11:25:41 -03:30
Joshen Lim 3aec212a60 Hide RLS button for tables in protected schemas (#33038) 2025-01-24 11:08:36 +08:00
Wen Bo Xie 3f6adea49c fix: change functions dependencies url (#33050)
* fix: change functions dependencies url

* change file name to dependencies.mdx
2025-01-23 14:50:10 -08:00
Alaister Young c4b6becdb9 chore: sentry capture profile creation errors (#33048) 2025-01-23 18:04:37 +00:00
Saxon FletcherandJoshen Lim d8b034ad69 remove globe dependencies (#33033)
* remove globe dependencies

* Remove unused imports

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-01-24 00:39:58 +08:00
Jordi Enric 6477f54610 Add warnings to logs stacked bar chart (#33036) 2025-01-23 16:12:52 +01:00
Joshen Lim 794529eddf Chore/add export functionality to advisors (#33030)
* Add export functionality to security and performance advisors

* Add download results button to query performance advisor

* Add refresh buttons to security and performance advisors

* Add LoadingLine to Query performance to make UI consistent with the other advisors

* Minor change
2025-01-23 17:06:28 +08:00
Saxon Fletcher 79e656f735 remove globe in onboarding (#33021) 2025-01-23 17:16:58 +10:00
Joshen Lim 154dd0d010 Fix SQL block not rendering if its the only block in the report (#33026)
* Fix SQL block not rendering if its the only block in the report

* Update
2025-01-23 14:54:28 +08:00
Joshen LimandSaxon Fletcher 90a939506c Feat/reports v2/misc wrap up (#32989)
* Add telemetry for add SQL block and dragging SQL block from assistant

* Add UI indication for drag support block in Assistant

* Add UI indication for SQL block support in SQL editor Chart options

* Feat/reports v2/create report (#33022)

* re-add chart label

* fix undefined value

* remove mouse over on chart

---------

Co-authored-by: Saxon Fletcher <saxonafletcher@gmail.com>
2025-01-23 13:25:31 +08:00
30c390c19c chore: unify telemetry event sending (#32861)
* chore: unify telemetry event sending

* organize some imports

* remove final useTelemetryProps

* add www telemetry actions typing and docs

* remove gaevents

* fix build

* move telemetry identify into PageTelemetry

* fix telemetry constants import

---------

Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-01-22 23:52:32 +08:00
Long HoangandPamela Chia feaf64e55d Fix event grouping (#32928)
* fix: pass ref and slug for event grouping

* fix: add missing imports

* fix: correct types

* remove duplicate import

* fix: duplicates and extra events from merge

---------

Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
2025-01-22 22:41:41 +08:00
Sanden GockaandAlaister Young ecd7b5f4dd Prototype: Enhance Supabase Studio User Impersonation with External Auth Support (#32786)
* feat: add support for impersonation with external auth

* update typescript type

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2025-01-22 18:00:58 +08:00
Joshen Lim 60763ab1e7 Reports V2: support dragging blocks from assistant to custom report (#32964)
* Support dragging blocks from assistant to custom report

* Show toast when new snippet is created from dragging block into custom report

* Only show drag handle for block in assistant panel if in custom reports

* Feature flag dragging Assistant query block to custom report

* Optimize DX for dragging block into report from assistant

* Update import

* Remove max width

* Fix dragging non sql block causing client crash

* Fix chart suffix

* Fix tooltip value for non % values

* Misc fixes

* Support persisting non sql block line or bar view, and fix cancelling not resetting the block state

* Update

* Preserve chart config when dragging block from assistant to report

* Fix
2025-01-22 16:35:52 +08:00
Joshen Lim c635d46b53 Add missing users delete endpoint for local/self-host (#32945)
* Add missing users delete endpoint for local/self-host

* Update
2025-01-22 16:22:45 +08:00
Ziinc 45f7561d30 fix: show database charts at 1h resolution (#32962)
* fix: drop default interval

* fix: add datepicker override

* chore: remove comments
2025-01-22 14:26:29 +08:00
Joshen Lim 12645ec023 Fix SQL editor menu wrongly hiding results (#32960) 2025-01-22 14:26:20 +08:00
Joshen Lim cedcc5315f Swap PATCH content to PUT (#32950)
* Swap PATCH content to PUT

* Fix tests

* Swap create Logs Explorer query to use upsert content
2025-01-22 14:14:34 +08:00
Joshen Lim 6b4fd6c088 Set chart height to 1 (#32987) 2025-01-22 13:32:20 +08:00
Jordi Enric ee9931afd3 service status: hide info footer if all services OK (#32966)
hide if all services are operational
2025-01-21 18:01:16 +01:00
Ivan Vasilov b5437c630e feat: Add a banner for clock skew in studio (#32866)
* Add a ClockSkewBanner on top of studio.

* Fix the color of the RestrictionBanner.

* Add an API endpoint which return the current UTC time on the server.

* Fix the glob pattern for docs in turbo.json.

* Force docs to build.

* Revert unneeded changes.

* Add feature flag for clock skew banner.

* Add a comment.
2025-01-21 17:45:06 +01:00
Joshen Lim 3f5e586995 Fix table editor selected row BG color (#32961) 2025-01-22 00:28:21 +08:00