Commit Graph
3910 Commits
Author SHA1 Message Date
Alaister YoungandJoshen Lim 31f5347d6e fix: stop needlessly saving snippets (#34739)
* fix: stop needlessly saving snippets

* Small fix

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-04-04 21:40:20 +08:00
Joshen Lim 8c57907f0d Remove safe parse checking in NewOrgForm updateForm preventing completely removing organization name in input field (#34735) 2025-04-04 08:49:18 -02:30
Joshen Lim d25451efe5 Remove useKeyboardShortcuts in Results.tsx (#34733)
* Remove useKeyboardShortcuts in Results.tsx

* Remove Cmd C overrides in table editor

* Refactor onCellKeydown to a common utils, and add check for ctrlKey
2025-04-04 18:50:02 +08:00
Jordi Enric 2865138adb Update reports datepickers (#34727)
* default to 69mins add 3 hours opt

* Enhance Reports Datepicker Helpers with Plan Availability

- Introduced `ReportsDatetimeHelper` interface to include `availableIn` property for plan-specific availability.
- Updated existing datepicker helpers to specify availability for different plans.
- Renamed 'Last 30 days' to 'Last 28 days' for consistency.
- Added `createFilteredDatePickerHelpers` function to filter helpers based on the user's plan.

* Refactor Datepicker Helpers in API Overview Report

- Replaced the usage of `REPORTS_DATEPICKER_HELPERS` with the new `createFilteredDatePickerHelpers` function to enhance plan-specific filtering.
- This change streamlines the datepicker helper logic based on user plan availability.

* Refactor Storage Report Datepicker Helpers

- Updated the Storage Report component to use `createFilteredDatePickerHelpers` for plan-specific datepicker logic.
- This change simplifies the datepicker helper implementation and enhances maintainability.

* fix test
2025-04-04 11:58:42 +02:00
Joshen Lim 0b75914d25 fix: project Dropdown only show projects from selected organization (#34732) 2025-04-04 17:45:02 +08:00
Terry Sutton 0383f7562b More specific query key (#34711) 2025-04-04 11:44:09 +02:00
Joshen Lim 21cd562f40 Fix error handling for table side panel editor (#34691)
* Fix error handling for table side panel editor

* Minor copy update
2025-04-04 16:43:07 +08:00
Joshen Lim caf9a4e962 QueryBlock whitelist now() and left() functions (#34729) 2025-04-04 15:50:03 +08:00
Saxon Fletcher 9549464ec9 handle string error (#34725) 2025-04-04 13:47:13 +10:00
Saxon Fletcher 6211ecbcae Update new function copy (#34722) 2025-04-04 09:53:26 +08:00
47fe4738d3 Prevent disabling PITR when hipaa is enabled (#34513)
* Prevent disabling PITR when hipaa is enabled

* Tweaks

* Sm word change

* Fix addon change

* Only allow changes if the changes are on 28 days. Use is_sensitive flag. When turning on PITR, set the default to 28 days.

* Simplify the illegal states.

* Fix the bad state for HIPAA.

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2025-04-03 18:20:10 +02:00
Saxon FletcherandPamela Chia 48da3abc18 add tracking for project create form (#34694)
* add tracking for project create form

* standardise to more common verb

* Update telemetry-constants.ts

---------

Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
2025-04-03 14:50:38 +02:00
Ivan Vasilov ae0fbd4ee2 fix: Set the description field in column to empty string when cleared (#34695)
Set the description field in column to empty string.
2025-04-03 10:09:47 -02:30
Joshen Lim 6d0a742ab7 Chore/fix linkedin OIDC checking in user overview (#34690)
* Fix linkedin oidc checking in UserOverview

* Improve refactor

* Update

* Last fix
2025-04-03 13:56:30 +02:00
Joshen LimandIvan Vasilov fa8cf46d50 Chore/refactor download results button to use papaparse (#34693)
* refactor LogTable and PreviewFilterPanel to use DownloadResultsButton

* Remove CSVButton file and remove react-csv dependency

* Update

* Change the download button to use file-saver.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2025-04-03 13:44:16 +02:00
Alaister Young 98c7cbff4d fix: disallow edit row on protected schemas (#34692)
* fix: edit row on protected schemas

* disable editing on side panel editor

* allow viewing of json and text
2025-04-03 10:57:14 +00:00
Ivan Vasilov 6d077a3e28 chore: Bump vite and vitest (#34664)
* Set overrides for vite/esbuild packages, they're not used in production, low risk of something breaking.

* Bump vitest.

* Remove lodash.template from design-system.

* Forgot to run pnpm.
2025-04-03 12:43:28 +02:00
Joshen Lim 0f0b02e0d9 chore: rework disk validation and cleanup (#34533) 2025-04-03 16:58:23 +08:00
Thomas 673449cfa9 feat: require explicit user confirmation when creating project on size > small 2025-04-03 10:41:39 +02:00
Joshen LimandAlaister Young 74723eccb6 Fix single date selection in organization audit logs (#34689)
* Fix single date selection in organization audit logs

* Update apps/studio/components/interfaces/Account/AuditLogs.tsx

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

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2025-04-03 16:14:11 +08:00
Joshen Lim 06091157d9 Table editor filter convert empty string value to null if column is not text based type (#34674) 2025-04-03 15:46:29 +08:00
Ivan Vasilov 86a690b00a fix: Add a catch block around a JSON.parse when rendering AI assistant messages (#34671)
Add a catch block around a json.parse.
2025-04-03 09:44:44 +02:00
Joshen Lim 6fc55300ed Support 1dp for inactivity timeout (#34654)
* Support 1dp for inactivity timeout

* Clean
2025-04-02 18:41:33 +08:00
Pamela Chia 89764b836d chore: add via cli origin tracking (#34637) 2025-04-02 11:46:10 +02:00
dependabot[bot]andIvan Vasilov 6dce651a94 chore(deps-dev): bump vite from 6.2.1 to 6.2.4 (#34590)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.2.1 to 6.2.4.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.2.4/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.2.4/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2025-04-02 08:45:30 +00:00
Alaister Young e3dae9ec36 chore: only load data in modals when they're visible (#34617)
* chore: only load data in modals when they're visible

* SidePanelGitHubRepoLinker

* scrolling is not my strong suit

* simple loading state for add new secret

* fix button width

* update to use shadcn

* fix ts
2025-04-02 16:41:47 +08:00
Joshen Lim 5fb29be685 Dont re route after selecting schema in table editor (#34653) 2025-04-02 14:34:29 +08:00
Kevin Grüneberg 2ab40e48fd chore: increase stale times for a few common queries (#34643) 2025-04-02 13:57:36 +08:00
Kevin Grüneberg 8d48d5bfae refactor: use database status from general health check endpoint (#34629) 2025-04-02 13:27:04 +08:00
Kevin Grüneberg ab73c916c1 chore: only load data if needed (#34624)
Builds on top of #34617 (can be merged independently)
2025-04-02 09:23:58 +08:00
Alaister Young b0837d3e73 chore: don't prefetch log requests count and project log status (#34625) 2025-04-01 22:00:57 +08:00
Paul Cioanca fac3974974 fix: reuse existing project info instead of querying endpoint (#34613) 2025-04-01 17:25:31 +08:00
divit 4762198252 chore: change default region to us-east-2 (#34609)
Revert "chore: change default region to us-east-1 (#34336)"

This reverts commit 26ffce6537.
2025-04-01 12:21:43 +05:30
Saxon Fletcher e9e8387d48 change to untitled default name (#34603) 2025-04-01 10:22:13 +08:00
Kamil Ogórek b06e0aa0cd ref: Remove redundant payload for backup download (#34541) 2025-03-31 16:33:00 +02:00
Stojan Dimitrovski 63d1dfb941 fix: underline clerk connect page link (#34574) 2025-03-31 16:13:53 +02:00
Joshen LimandAlaister Young 8239e2f27b Cache results in assistant panel (#34509)
* Cache results in assistant panel

* Small fixes

* fix

* disable switching chats while new messages are streaming in

* small comment

* Fix Create new snippet CTA in query block

* Add useCallbacks

* Update

* Remove console log

---------

Co-authored-by: Alaister Young <a@alaisteryoung.com>
2025-03-31 19:24:21 +08:00
a4cac72473 Deploy edge function warning (#34555)
* fix: add jsr:@std/path module

* fix: use relative paths for files in editor

* add a deploy warning to edge functions update

* hide deploy if can't write

* remove retry

* Fix

* Small clean up

* Address feedback

* Fix

---------

Co-authored-by: Lakshan Perera <lakshan@laktek.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-03-31 18:02:41 +08:00
Lakshan Perera 2f703c1483 chore: update Function templates (#34559) 2025-03-31 17:06:42 +08:00
Lakshan PereraandJoshen Lim a66278b811 Use relative paths in File editor and support existing entrypoint, import map settings (#34553)
* fix: add jsr:@std/path module

* fix: use relative paths for files in editor

* Smol fix

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-03-31 15:23:12 +08:00
Joshen Lim b9b748391d Add download edge functions CTA to edge function details header (#34501)
* Add download edge functions CTA to edge function details header

* Add CLI command

* Update copy

* Small tweak based on feedback
2025-03-31 14:06:25 +08:00
Joshen Lim c41afbb565 chore: Show replica tooltip text in modal directly (#34539) 2025-03-31 12:06:31 +08:00
Stojan Dimitrovski 884a66639b fix: reword clerk tpa dialog (#34534) 2025-03-29 12:44:55 +00:00
Stojan DimitrovskiandJoshen Lim 672cc26eab fix: improve description for remove mfa factors button (#34105)
* fix: improve description for remove mfa factors button

* Update copy

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-03-29 13:28:50 +01:00
Joshen Lim 7710e54873 Fix wrong replacement of iops value when switching GP3 to IO2 (#34532) 2025-03-29 19:08:49 +08:00
Stojan Dimitrovski b71191fd96 feat: add error_code to log preview (#33929) 2025-03-28 17:33:11 +01:00
Stojan Dimitrovski 8b8a29ddf2 feat: clerk tpa fully available (#34402) 2025-03-28 17:23:31 +01:00
Kevin Grüneberg 5eb57a4fa2 chore: mention larger instance sizes (#34473) 2025-03-28 12:55:41 +01:00
Joshen Lim 27277ba4c5 Temporarily remove usage of nuqs in advisor rules (#34511)
* Temporarily remove usage of nuqs in advisor rules

* Another one
2025-03-28 12:52:04 +01:00
Joshen Lim e88595be86 Fix edge functions secrets permissions state (#34506)
* Fix edge functions secrets permissions state

* Fix type issues from advisor rules PR
2025-03-28 17:17:01 +08:00