Commit Graph
222 Commits
Author SHA1 Message Date
Joshen Lim 678c2f092c Update prompts 2024-11-19 21:56:47 +08:00
Joshen Lim 6ccb67567e A bit more telemetry stuff 2024-11-19 19:24:28 +08:00
Joshen Lim f0a0064a16 Rough fix to padding when assistant is open 2024-11-19 18:11:22 +08:00
Joshen Lim 56df0faa16 Beef up a bit more event tracking 2024-11-19 17:11:36 +08:00
Joshen Lim 8c6b14bd6e Fix PH tracking 2024-11-19 16:55:25 +08:00
Joshen Lim 62d5c88eb8 Add link to abort ongoing queries from SqlSnippet 2024-11-18 17:47:02 +08:00
Joshen Lim 619449a6ac Add basic contextual invalidation 2024-11-18 16:10:20 +08:00
Joshen Lim 71fdbd213d Merge master resolve conflicts 2024-11-18 15:31:20 +08:00
Alaister YoungandJoshen Lim 6c592dec99 chore: remove useExecuteSqlQuery() part 2 (#30467)
* foreign-key-constraints

* update entity-types stale time

* schemas query

* deprecate useExecuteSqlQuery

* users count query

* database size query

* indexes query

* keywords query

* migrations query

* table columns

* database functions

* database roles query

* fdws query

* replication lag query

* ongoing queries query

* vault secrets query

* remove unneeded staleTime: 0

* max connections query

* fix entity types key in tests

* Some fixes

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-11-18 05:15:37 +00:00
Saxon Fletcher ce60c932ab add debug to failed ai queries 2024-11-18 15:02:31 +10:00
Saxon Fletcher 1b3d093977 save chat state to global state 2024-11-18 12:17:20 +10:00
Saxon Fletcher bd50934d0d fix z-index 2024-11-18 10:30:10 +10:00
Saxon Fletcher 7590884ea2 only loading last message 2024-11-18 10:23:11 +10:00
Joshen Lim 6e8b16a9b1 Prevent SQL snippet from running until message is finished 2024-11-15 19:39:49 +08:00
Joshen Lim 05c3d19e0d Add admonitions for when disablePrompt is toggled on, and if no api key is set. Add footer note RE rate limitation 2024-11-15 16:04:50 +08:00
Joshen Lim e953f55cb1 Add cmd i shortcut 2024-11-15 15:47:42 +08:00
Joshen Lim b81d9b4b29 revert adding snippet to assistant when opening assistant in sql editor 2024-11-15 15:37:53 +08:00
Joshen Lim 646958e41b Add the necessary checks for opt in and hipaa 2024-11-15 11:17:10 +08:00
Joshen Lim b678297463 Add SQL snippet content to assistant if opening assistant in sql editor 2024-11-15 10:46:24 +08:00
Saxon Fletcher d3be76a1b3 assistant button corners 2024-11-15 11:47:04 +10:00
Joshen Lim be68c7601d Implement diffing if using assistant in sql editor 2024-11-14 16:56:53 +08:00
Saxon Fletcher 7b45e421d4 fix table condition 2024-11-14 17:15:16 +10:00
Saxon Fletcher 349fb04ad6 updated empty state if no tables exist 2024-11-14 16:40:23 +10:00
Saxon Fletcher 3e68322813 add suggestions 2024-11-14 15:05:45 +10:00
Saxon Fletcher 808129e0ee remove canvas 2024-11-14 14:01:01 +10:00
Saxon Fletcher 20032d5534 use icon 2024-11-13 15:48:42 +10:00
Saxon Fletcher f4cbcb84e9 resizable assistant kinda 2024-11-13 14:36:50 +10:00
Saxon Fletcher e55dd91154 clean up 2024-11-13 14:17:23 +10:00
Saxon Fletcher 3df4fe96e3 fixes and refinements 2024-11-13 11:18:19 +10:00
Kevin Grüneberg 06c53f3472 chore: use in-browser sha256 (#30398) 2024-11-12 16:34:46 +08:00
Saxon Fletcher 533a7392d8 remove stuff 2024-11-12 09:40:59 +10:00
Ivan Vasilov 54d11a6a7f feat: Queues v0 (#30300)
* Make the title prop on ProjectIntegrationLayout mandatory. Fix the title on some of the integration pages. Fix wrong layout on wrappers/new.

* Add code for the initial page.

* Make the FilterPopover more type-safe.

* Add a page to list message in a single queue.

* Add feature flag for queues.

* Handle the case where pgmq is not available on the database.

* Minor fixes.

* Some minor fixes.

* Fix the query when fetching only archived messages.

* Fix the filters when there's no choices selected.

* Add a comment for local dev.

* Add a max size to the queue name input.
2024-11-08 13:06:05 +01:00
Joshen Lim 225d461381 Hook up RLS to new assistant if feature flag is enabled (#30357)
* Hook up RLS to new assistant if feature flag is enabled

* Reset conversation if opening a different entity

* Add prompt to use alter policy if policy definition is provided

* Remove console log
2024-11-08 18:03:30 +08:00
Joshen Lim 4342c4c3ab Chore/disk mgt UI fixes (#30358)
* Fix percentage width for disk space bar

* Add warning in disk size section if 90% + within cooldown

* Show read only warning in compute and disks

* Fix copy

* Add conditional
2024-11-08 17:32:38 +08:00
Saxon Fletcher 6db1354a9b added panels 2024-11-08 16:19:32 +10:00
Saxon Fletcher 202e41f401 start 2024-11-08 14:51:28 +10:00
TheOtherBrian1andTerry Sutton 60c0d5fe84 Update DisplayApiSettings.tsx | add note on how to rotate service_rol… (#30366)
* Update DisplayApiSettings.tsx | add note on how to rotate service_role key

* Update apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2024-11-07 18:47:54 +00:00
Joshen Lim 1f2f431b59 Remove clsx library from dashboard (#30311)
* Remove clsx library from dashboard

* PRETTY
2024-11-07 18:45:18 +08:00
Alaister Young c59be649a3 chore: prefetch project homepage (#30317) 2024-11-07 16:29:07 +08:00
Ivan VasilovandJoshen Lim f29003e0e7 fix: Use protocol property when building API url (#30332)
* Fix the types for API settings to include protocol.

* Use the protocol property in all usages of endpoints.

* Update

* Lint

* Revert changes to retrieving protocol

* Remove console.logs

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-11-06 22:22:24 +01:00
Joshen Lim 943d804444 Chore/address UI feedbacks (#30292)
* Refactor pro plan with no projects warning with admonition

* Refactor delete organization to use admonition

* Refactor organization limited by included usage to admonition
2024-11-06 11:14:30 +08:00
Jonathan Summers-MuirandJoshen Lim 73c7b3fb81 Chore/styling spam banner (#30280)
* Add spam assassin footer note

* Update to use new table component

* update styling

* Update SpamValidation.tsx

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-11-05 10:25:10 +08:00
Jonathan Summers-MuirandJoshen Lim 9f420962e1 Feat/compute and disk (#30068)
* inited. added disk config to a new page

* add instances

* move moar

* moved things around. billing badges updated. compute added

* tidy

* new components

* form now dynamically updating itself

* updated compute form. moved warning panels. added collapsible for advanced options

* review dialog now only showing what is relevant

* Update DiskManagementForm.tsx

* compute sizes now a reccomendation

* fix old form

* started adding flags

* removed unused code. fixed issue with IOPS price showing on smaller compute

* moar clearning

* IOPS logic wrong way round

* type fixes

* start adding better error handling

* TIDY

* moved everything to own file

* tidy

* fix hydration issue

* moved some components around

* clean up

* inline errors

* update form message

* Update DiskManagementForm.tsx

* error fields fixed. some formatting issues. nano added as an option

* fix constants

* add some plan restrictions

* moar

* units updated. labels updated

* Update DiskManagement.schema.ts

* fix a ton of type issues

* text udpates

* add panel to suggest switching to io2

* more notice board stuff

* number formatting. moved a file

* Update DiskManagementForm.tsx

* remove console logs

* upgrade comms. more type fixes

* add empty states for the old areas

* more links

* updated some label issues

* hide labels when chart is active

* Update DiskManagement.utils.ts

* Delete next-env.d.ts

* Update DiskManagementForm.tsx

* Update DiskManagement.schema.ts

* text updates

* Update DiskManagement.constants.tsx

* Update next-env.d.ts

* Update next-env.d.ts

* Small clean uop

* Clean up empty files

* Clean up spelling

* Clean up more

* Fix typo in file name

* Clean up import statements

* Update DiskManagementForm.tsx

* fix issues

* Update ProjectLayout.tsx

* Remove unused import

* Fix

* Address nit

* Update database.tsx

* remove supress toast

* Update DiskManagement.schema.ts

* Update database.tsx

* change upgrade comms

* Update DiskManagementPanelForm.tsx

* fixes

* fix button size on old form

* Update DiskManagementForm.tsx

* Update StorageTypeField.tsx

* update labels on compute

* dont show banner when infra is FLY

* update comms. hide disk config for FLY

* Fix TS

* Last round of clean upo

* fix message state

* fix message

* Fix TS

* Update DiskManagement.utils.ts

* fix errors

* Update BillingChangeBadge.tsx

* fixed some label issues

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-11-04 09:05:37 +00:00
Joshen Lim 7016b9db90 Smol tweak to consent toast on mobile (#30195)
* Smol tweak to consent toast on mobile

* Use useConsent hook from packages in dashboard, and remove manual calling of ConsentToast + deprecate dashboard's copy of telemetry local storage key

* Attempt to fix playwright tests

* Fix
2024-11-01 17:25:40 +08:00
Terry SuttonandJoshen Lim d30ec48b50 Chore/self hosted assistant disabled (#30198)
* Add a message if openai_api_key not set

* Fix disabled state

* Some fixes

* Add same check in global assistant

* Remove check for api key for platform

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-10-31 09:19:03 -02:30
Joshen Lim 585477752a Update all documentation buttons (#30163) 2024-10-31 13:58:17 +08:00
Joshen Lim db2e977f7d Add spam validation check in auth email templates (#30188)
* Add spam validation check in auth email templates

* Update comment

* Add another banding

* Update
2024-10-31 10:07:53 +08:00
Joshen Lim 01e81fd400 Chore/assistant tweaks 281024 (#30134)
* Add alpha notice

* Close assistant via cmd i if not focused on monaco

* Add edit with assistant CTA for database functions

* Attach existing function definition when editing a function to prompt

* Leave comments

* Small refactor
2024-10-29 15:10:00 +08:00
Alaister Young 7e360731a3 fix: api types + remove old telemetry (#30096)
* fix: api types + remove old telemetry

* SendEventPH -> SendEvent

* address feedback
2024-10-25 20:47:31 +08:00
Joshen Lim 0070265e6d Chore/assistant tweaks (#30074)
* Add cmd i to close the assistant

* Update command in side nav

* Add kill switch for sending assistant prompts

* Add basic telemetry around quick sql editor assistant

* Fix
2024-10-25 09:57:09 +08:00