Commit Graph
2171 Commits
Author SHA1 Message Date
Joshen Lim 5a3d00a56e Support drag drop SQL block from assistant to empty custom report (#34930) 2025-04-14 16:54:33 +08:00
Francesco SansalvadoreandTheOtherBrian1 939e5c855a feat: reports infra o11y (#33310)
* test client connections charts

* add granularity to database dashboard

* add range selection

* add selection to area charts

* refactor ChartHeader

* fix default

* fix time preset selected label and add tooltip actions

* client connections stacked chart

* polish all new chartts

* change attribute

* fix

* add real queries

* memory stack

* cleanup

* precision 1

* update charts

* add endpoints

* tooltip

* format

* improve charts

* toggle max value

* show limit

* cleanup

* cleanup

* update api schema

* fix ram_usage_max_available

* remove pgbouncer and comments

* show total with percentage in chart header

* pretty

* hide

* update reports database

* remove client_connections

* revert

* fix connectionStrings error

* restore correct queries and conditions

* vertically zoom in to percentage data

* add feature flag logic on charts

* add feature flag logic to date picker

* chore: remove comment

* add tooltip to charts metrics

* chore: comment new pg endpoints

* feat: lazy load ComposedChartHandler queries

* feat: dim non-hovered chart values when hovering chart label item

* feat: improve dim styling

* chore: improve light mode stacked chart colors

* chore: remove 15s interval

* chore: sync types

* chore: remove type

* chore: restore type

* fix hook error

* show chart type toggle

* remove console log

* temp

* keep connections charts as before

* restore DateRangePicker

* show last aggregate value when not hovering

* clean up imports

* disk IOps read and write

* restore flag

* refactor queries

* clean up grafana promo banner

* Update database-charts.ts | updated language

* fix hook error

* fix hook error

* fix hook error

* attempt fix hook error

---------

Co-authored-by: TheOtherBrian1 <91111415+TheOtherBrian1@users.noreply.github.com>
2025-04-14 10:53:52 +02:00
Han QiaoandJoshen Lim 698e585a65 feat: fetch beta cli release version (#34923)
* feat: fetch beta cli release version

* Small refactors

* Fix

* Fix

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-04-14 16:20:03 +08:00
Joshen Lim f7fbd6a4ca Fix mobile nav menu for org nav layout (#34990) 2025-04-14 15:58:27 +08:00
Kevin Grüneberg 416f83325f feat: confirmation before creating paid org (#34973) 2025-04-14 15:00:42 +08:00
Joshen Lim caae765a6e Obfuscate org invite name and slug if not logged in (#34986) 2025-04-14 13:36:04 +08:00
Kevin Grüneberg 5fa5118b35 chore: add warning if upgrade without projects (#34943) 2025-04-14 13:24:04 +08:00
Kevin Grüneberg 838c4227d0 chore: route credit package requests to sales instead of billing (#34951) 2025-04-14 09:10:33 +12:00
Kevin Grüneberg 43cba0dae0 chore: clarify custom domain / PITR pricing (#34941)
Customers sometimes upgrade without knowing custom domains cost extra.
2025-04-11 17:00:07 +00:00
Jordi Enric 4ffa3ac447 fix deleting a column not removing it from filters/sorts (#34934) 2025-04-11 14:45:39 +02:00
Kevin Grüneberg edd832bf14 fix: upcoming invoice compute costs (#34931) 2025-04-11 18:29:55 +08:00
Jonathan Summers-MuirandJoshen Lim 36a2d79e8e chore: add warning text to restore dialog (#34920)
* Update BackupsList.tsx

* Add base variant warning

* Update size

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-04-11 18:09:00 +08:00
Joshen Lim 84f73bb675 Chore/use readonly connection string for queryblock (#34892)
* Use read only connection string in queryblock

* Add comments
2025-04-11 16:43:06 +08:00
Saxon Fletcher 3e1f02d11d Move assistant stored state in to IndexedDB (#34848) 2025-04-11 18:33:33 +10:00
Alaister Young af462c0e57 chore: refactor role impersonation (#34827)
* chore: refactor role impersonation

* fix: handle undefined claims in role impersonation SQL generation
2025-04-11 08:17:13 +00:00
Kevin Grüneberg 3ce7e400a1 feat: revamped invoice breakdown (#34861)
- Read Replica and Branching Compute is now explicitly listed (previously Read Replica compute was not distinguishable)
- All usage items have a link to their respective docs
- Branching Compute is aggregated into a single line item to avoid listing dozens of branches (they are listed in the tooltip still)
- Displays basic discounts with a strike-through price
- For Replica+Compute, it specifically lists the projects as sub line items, whereas other line items are not broken down, it's shown on the tooltip
- Compute credits are a sub line item under compute, rather than having it separate 
- Pricing is displayed on the tooltip
- Breakdown focuses on costs, rather than mixing cost, usage and line item pricing descriptions
- Avoid confusing users in the breakdown with hourly usage (for add-ons)
- Fixed number formatting to properly work with negative number and 0 (use 2 decimals)
- Upcoming Invoice Section is hidden for Free Plan users
2025-04-11 12:40:59 +08:00
Terry SuttonandJoshen Lim 9f6faa65bb Fix toggling of roles apply to all projects (#34871)
* Store initial state

* fixes

* Minor

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-04-11 10:41:07 +08:00
Kamil Ogórek c3a352331a ref: Fix all API types after Zod migration (#34903) 2025-04-11 10:28:08 +08:00
Joshen Lim 5e9c2a3c71 remove restriction banner component (#34887) 2025-04-11 10:08:52 +08:00
Ivan Vasilov f05a714eef fix: Fix the modality of dropdowns in sheets (#34911)
Fix the dropdowns modal.
2025-04-10 15:41:44 -02:30
Terry Sutton cc7fde65bf Chore/dropdows (#34902)
suggested expressions
2025-04-10 14:21:37 +00:00
Terry Sutton ee24dbe271 Fix dropdowns (#34901) 2025-04-10 14:01:47 +00:00
Alaister Young 9fbbc8b12a fix: oauth scopes dropdown bug (#34899) 2025-04-10 13:22:02 +00:00
Joshen Lim 5df921ba12 Fix overflow in ResourceList (#34894) 2025-04-10 18:27:50 +08:00
Joshen Lim 4b7570fd12 Chore/org nav layout fixes 01 (#34884)
* Fix padding in org settings layout for when preview is off

* redirect to /organizations instead of /projects when deleting org if preview is on

* Remove unused file
2025-04-10 18:09:42 +08:00
Joshen LimandAlaister Young 04600dd711 Fix compute size check in PITR side panel (#34858)
* Fix compute size check in PITR side panel

* Disable confirm button if trying to enable without sufficient compute size

* Prevent downgrading to micro if PITR enabled

* Tiny fgix

* Update apps/studio/components/interfaces/DiskManagement/fields/ComputeSizeField.tsx

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

* Pretty

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2025-04-10 15:53:05 +08:00
Saxon Fletcher ad6693fe1c preview copy (#34883) 2025-04-10 06:22:14 +00:00
Joshen Lim 09959606e8 Add toast messages for success and failure when downloading schema visualizer current view (#34833)
* Add toast messages for success and failure when downloading schema visualizer view

* Support downloading as either PNG or SVG
2025-04-10 10:44:23 +08:00
Terry Sutton dbc416137b Make label shorter (#34808)
* Make label shorter

* Unprotected, actually
2025-04-09 14:26:59 -02:30
Jordi Enric a5b626b7bc Fix filters and sort not added to query in table editor (#34862)
fix filters and sort not added to query in table editor
2025-04-09 14:08:44 +02:00
Joshen Lim 252cfcc488 Adjust AI assistant panel styles (#34855) 2025-04-09 16:58:05 +08:00
Joshen Lim d49c0ad300 Show IOPS price change in DiskManagementReviewAndSubmitDialog when switching storage type but no changes to IOPS value (#34854) 2025-04-09 16:47:40 +08:00
divit 1f32f1909d chore: expand default europe region selection (#34853) 2025-04-09 13:40:28 +05:30
Joshen Lim 22b888bd46 Adjust organization managed by alert (#34851) 2025-04-09 15:46:52 +08:00
Saxon FletcherandJoshen Lim 5fe1bdd54d container queries basics (#34724)
* container queries basics

* refine padding

* add contain

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-04-09 15:28:21 +08:00
Jordi EnricandJoshen Lim 7283c3103e Update project usage chart date picker (#34734)
* update project usage chart date picker

* Refactor ProjectUsage component: comment out unused chart intervals and update default interval state

* rm commented out options

* Fix TS issues

* Small fix

* Smol fix

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-04-09 15:11:24 +08:00
Saxon FletcherandJoshen Lim c7378b0bf5 remove flag for just accessing inline editor (#34849)
* remove flag for just accessing inline editor

* remove feature flag in header

* clean up

* fix

* Tiny tiny style fix

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-04-09 14:42:15 +08:00
Joshen Lim 09c6f0aa2c DropdownMenu component modal prop default to false, but allow passing prop value (#34846)
* DropdownMenu component modal prop default to false, but allow passing prop value

* Smol fix for advisor
2025-04-09 13:59:57 +08:00
Thomas 1bbe434961 chore: project transfer preview supports messages of level INFO (#34754)
chore: project transfer preview now supports messages of level INFO
2025-04-09 13:06:40 +08:00
Terry Sutton 28c1c213eb Fix modal locking up page (#34837) 2025-04-08 22:35:36 +02:00
Pranav Patil cf2b48db1a Fix: Removed unnecessary white space in dashboard (#34169)
Fix:removed unnecessary white space in dashboard
2025-04-08 14:07:53 +00:00
Jordi EnricandJoshen Lim 1d4c0af295 Table Editor filters: Add backwards compatible filter parser (#34796)
* add custom parser

* pass old params to setParams

* refactor all this bullshit code to something simpler, add tests

* rm consolelogs

* Address feedback

* fix and rename

* solve conflict

* add testing lib hooks dep

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-04-08 15:46:11 +02:00
Saxon Fletcher 61a18cdcb6 set default value if empty array (#34828) 2025-04-08 21:30:35 +10:00
Joshen Lim ec7e80bbef Add studio version in header for local self host (#34018)
* Add studio version in header for local self host

* Fix

* Address feedback

* Fix

* Remove Docker Hub context, everything is CLI

* Update to use CLI version as the comparator instead of docker image version

* Fix
2025-04-08 18:06:48 +08:00
Ivan Vasilov 35145f3d10 fix: Add an hcaptcha error to sentry ignore list (#34822)
* Ignore hcaptcha error.

* Ignore hcaptcha errors using a more resilient approach, props to Kamil.
2025-04-08 11:57:15 +02:00
Kevin Grüneberg 4532286e04 fix: align with API types (#34821)
* fix: align with API types

* Update new-project.constants.ts
2025-04-08 17:17:35 +08:00
Alaister Young 98ece986b9 fix: org restriction banner links (#34820) 2025-04-08 15:47:09 +08:00
Alaister Young d16fe56f89 fix: minor org layout fixes (#34816) 2025-04-08 13:05:55 +08:00
fb24d91305 Feat/ Org layout (#33150)
* update test

* move back button, fix width issues on sidebar

* update sidebar logic

* Update ProjectLayout.tsx

* lots of updates. layouts now streamlined. localstorage for tabs in use

* moar

* bunch of new tab logic

* fix empty tab issue

* Update tabs.ts

* layouts switched

* new pages now have fixed layouts

* fix tabs

* fix code bg

* add tabs support for multiple project refs

* intialization issue

* update ID handling

* fixed isOpened state for SQL snippets

* remove old assistant because its bugging up panels

* preview style works in sql editor

* fix border

* removes preview tab if there is one

* fix background of loading skeleton

* lots of issues with types/icons/redirect

* new tab cards

* snippets in empty state now work

* moar stuff

* tabs now in feature flags

* Update tabs.ts

* Update tabs.ts

* moar

* add feature previews

* remove code not needed

* Update next-env.d.ts

* Delete FeaturePreviewModal.tsx

* fix typescript errors. remove more explorer stuff

* remove explorer files

* fixed issues with templates and quickstarts tab

* fixed active state when tabs are not opted in

* logic error

* fix open/highlight issue when opted out of tabs

* templates/quickstarts now displayed with new cards

* Update recent-items.tsx

* Update new-tab.tsx

* add icon back in

* add old empty state back in

* recent items updated to respect project ref

* localstorage cleanup on deletion

* moar

* overflow tabs now working

* correct tab names used for new sql templates/quickstarts

* ongoing queries fix

* cleanup

* update images

* Update RouteValidationWrapper.tsx

* Update AppLayout.tsx

* Update NavigationBar.tsx

* add headers back into side panels

* improve writing

* tabs now drag and drop a billion times better

* Update tabs.tsx

* Update tabs.tsx

* init issues on stores, which caused a race condition.

* fix hydration error

* init

* init sidebars

* init

* Update app-default-navigation.tsx

* user dropdown updates

* moar layouts

* init

* moar

* moar

* updat

* reverse top bar

* some banners

* moar

* start adding account page

* change styling of dropdowns

* Update sidebar.tsx

* fix new tab issue in sql

* Update ProjectLayout.tsx

* Update pnpm-lock.yaml

* latest

* Update pnpm-lock.yaml

* moar layouts on account

* getLayout updates

* more fixes

* force a cache build

* moar

* Update app-default-navigation.tsx

* fix AI button animation

* moar layout

* account pages refactored

* Update user-dropdown.tsx

* Update new-tab.tsx

* move EditorMenuListSkeleton

* Fix type issues

* fixes: DESIGN-87

fixes: DESIGN-87

* refactor sort/filter components

* Update rules-set-button-text.tsx

* remove discussions for now

* small styling fixes

* Update FeaturePreviewModal.tsx

* Update FeaturePreviewModal.tsx

* Update RouteValidationWrapper.tsx

* revert

* revert

* revert

* revert

* revert

* more revert

* Update collapse-button.tsx

* Update SQLEditorTreeViewItem.tsx

* revert

* Update SchemaGraph.tsx

* Delete new-upcoming.tsx

* revert

* Update ProjectLayout.tsx

* fix home link

* Update table-editor.spec.ts

* test update

* Update projects.tsx

* remove

* Delete sidebar-open-top-banner.tsx

* add organizations page

* Update table-editor.spec.ts

* Fix the playwright tests.

* layout fixes

* layout fix

* revert sort/filter

* Update LastSignInWrapper.tsx

* revert

* revert

* remove

* update file names

* revert

* revert

* revert

* advisor lint page tabs revert

* revert

* revert

* revert

* revert

* revert

* revert tabs

* remove packages

* add sidebar

* sidebar docs added

* add sidebar

* fixed issues

* fix mobile

* fixes

* add org side bar in

* redirect updated

* fix more layouts

* move settings icon back down

* remove old stuff

* Delete SideBar.tsx

* use ProfileImage component

* spelling

* Update ThemeSettings.tsx

* Update ThemeSettings.tsx

* Update Sidebar.tsx

* layout udpate

* Update Sidebar.tsx

* fixes

* Minor lints

* Update Sidebar.tsx

* create a alt user dropdown for self hosting and local

* add fragment back in

* Adds Theme Selector for local/self hosting

* Update UserDropdown.tsx

* fix theme selector for local self host

* Update index.ts

* Update DefaultLayout.tsx

* now supports feature preview

* remove old files

* rename files

* revert

* Update LayoutHeader.tsx

* clean

* revert

* revert

* Update resource-banner.tsx

* remove redundant side bar stuff

* organizations action bar updated. removed hardcoded value

* fix type errors

* fix tests

* Undo test changes

* Fix account pages for when feature preview is off

* Bug fixes 1

* Missing key in map of EmailTemplates

* Fix missing border in StorageExplorer

* fix missing header in performance advisor

* Final clean up

* Fix DefaultLayout re-rendering issue on auth pages

* A couple of fixes

* Redirect to /organizations if land on /projects with feature preview on

* Route back to /projects if toggling preview off on /organizations

* Add HomePageActions to /org/slug

* make re-routing nicer

* Moar fixes

* Fix logging in redirect to /organizations irregardless of feature preview

* Fix missing withAuth in OrganizationLayout

* Minor clean upo

* Fix branch dropdown not aligned

* Add feature preview for update layout

* update dropdowns to only be chevron triggered in new layout

* Update content-query.ts

* Update entity-types-infinite-query.ts

* add IS_PLATFORM for org dropdown

* Add IS_PLATFORM check for EnableBranchingDropdown in LayoutHeader

* Midway fixing mobile nav

* Mobile nav fixes

* Address feedbacks

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Alaister Young <a@alaisteryoung.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Jordi Enric <jordi.err@gmail.com>
2025-04-08 11:32:29 +08:00
Joshen LimandAlaister Young f8265f1b42 Fix version selector if only one result returned, and default to first result if no GA version found (#34815)
* Fix version selector if only one result returned, and default to first result if no GA version found

* Update apps/studio/components/interfaces/ProjectCreation/PostgresVersionSelector.tsx

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

* Lint

---------

Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
2025-04-08 11:01:54 +08:00