Commit Graph
1567 Commits
Author SHA1 Message Date
Saxon Fletcher cf173d6917 add suggestions for policy 2024-11-25 11:28:59 +10:00
Saxon Fletcher d43557b912 add table and schema context 2024-11-25 10:58:08 +10:00
Saxon Fletcher 05beda5482 sql toggle copy and border fix 2024-11-25 10:56:55 +10:00
Saxon Fletcher 9f39ace2c3 show thinking if last message is empty 2024-11-25 09:39:58 +10:00
Joshen Lim b61a5bdf9c fixc 2024-11-22 18:35:05 +08:00
Joshen Lim c6b502cd37 Address all comments 2024-11-22 17:10:54 +08:00
Joshen Lim 1509c43824 Add policy satement to assistant when editing 2024-11-22 17:07:11 +08:00
Joshen Lim 625fc8d40d Merge master resolve conflicts 2024-11-22 16:59:50 +08:00
Joshen Lim ecf001ab90 Refactor restore to new project by breaking into smaller components (#30604)
* Refactor restore to new project by breaking into smaller components

* Shift generateStrongPassword into a utils

* Update each notice component in restore to new project to be more consistent

* Add long polling in restore to new project

* Call refetch
2024-11-22 16:42:12 +08:00
Alaister Young 8c72360707 chore: update invoice pay now redirect (#30565) 2024-11-22 12:07:50 +08:00
37f77ae482 Add new ui for restore to new project (#30325)
* add new ui for restore to new project

* rm false

* fix typeerr badly

* add form with name and new project pass

* fix flash in loading > results state change

* restore api types

* update api types, add pitr picker

* add additional monthly spend section

* fix loading state jump

* update copy

* update api types

* update to new clone status api res

* fix mutation missing vars

* dont render logical backups in list

* fix state issue on submit

* better pitr empty state

* Update apps/studio/pages/project/[ref]/database/backups/restore-to-new-project.tsx

Co-authored-by: Wen Bo Xie <5532241+w3b6x9@users.noreply.github.com>

* Update apps/studio/pages/project/[ref]/database/backups/restore-to-new-project.tsx

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>

* Apply suggestions from code review

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Wen Bo Xie <5532241+w3b6x9@users.noreply.github.com>

* update api types to accept recoveryTimeTarget for PITR restores

* simplify pitr code a bit cleanup state bugs

* cleanup

* add PITR submit

* dont show restore btn unless status is complete

* update api types

* fix backups nav

* markdown descs and fix type err in nav

* check if project is cloned

* fix: make source project data optional

* fix datepicker highlighted day style

* fix tz picker

* check if its same or before/after in isWithinRange

* update api types fix issue with clones

* unsus

* fix markdown rendering issues

* add badge

* Update database roles and permissions description

* Update restore message text in PITR form component

* Update key attribute to item.id in DatabaseBackupsNav component

* Add conditional rendering for multiple available dates

* Refactor dialog section styles in restore-to-new-project.tsx

* Update null to undefined in conditional text assignment

* reuse component in pitr backups

* Update apps/studio/pages/project/[ref]/database/backups/restore-to-new-project.tsx

Co-authored-by: Wen Bo Xie <5532241+w3b6x9@users.noreply.github.com>

* Update link to original project in RestoreToNewProject

* fix prettier

---------

Co-authored-by: Wen Bo Xie <5532241+w3b6x9@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Crispy1975 <12525875+Crispy1975@users.noreply.github.com>
2024-11-21 17:52:10 +01:00
Jonathan Summers-Muir 5cd436a16f override feature flag for FLY (#30578) 2024-11-21 11:49:50 +08:00
Terry SuttonandJoshen Lim 4fb9b58486 Chore/cron ai nudges (#30527)
* Adjust prompt, ui

* Account for seconds properly

* More minute adjustments

* Account for seconds properly, again

* Lint

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-11-20 08:18:22 -03:30
Monica Khoury 72e8c84bf9 fix: LinkedIn (OIDC) & Slack (OIDC) providers filter under Authentication > Users (#30474)
* fix: linkedin & slack providers filter

* Fix typecheck
2024-11-20 12:14:20 +01:00
Alaister Young a2b3415236 feat: display trigger condition (#30521) 2024-11-20 19:01:42 +08:00
6e456911c7 Fix: Dynamic texts for CHECK constraint placeholder (#29230)
* Create dynamic texts for CHECK constraint placeholder relative to the selected option of Postgres Data types

* modify text to use column name instead of hard-coded string

* prettier and small updates

* only update placeholder when format or name changes

* remove extra whitespace

---------

Co-authored-by: Jason <jason@debian>
Co-authored-by: Alaister Young <alaister@users.noreply.github.com>
Co-authored-by: Alaister Young <a@alaisteryoung.com>
2024-11-20 06:56:13 +00:00
Saxon Fletcher 7f114b0b01 Update generate-v3.ts
prompt to get auth schema too
2024-11-20 11:25:53 +10:00
Saxon Fletcher c137c1305f fix rls editing via assistant 2024-11-20 11:16:01 +10:00
Terry Sutton c931e3001a Chore/realtime policies (#30552)
Allow editing realtime messages rls policies
2024-11-19 12:03:29 -03:30
Terry Sutton 0c99d0dc5d Chore/pass islocked to policy rows (#30495)
Pass isLocked all the way down to the row
2024-11-19 10:43:05 -03:30
Joshen Lim 678c2f092c Update prompts 2024-11-19 21:56:47 +08:00
Jordi Enric bf3b251934 capitalize editor (#30549)
fix
2024-11-19 11:33:10 +00: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 5727b64828 ONly show ai button within a project 2024-11-19 11:19:40 +08:00
Joshen Lim f38b00be9e Fix 2024-11-19 10:31:03 +08:00
Alaister Young da01e5a354 chore: add prefetching delay (#30519)
* chore: add prefetching delay

* adjust delay to 75ms
2024-11-18 22:20:49 +08:00
Terry Sutton 1b0dc084c8 Chore/side panel formatting (#30498)
side panel header area formatting
2024-11-18 09:50:19 -03:30
Joshen Lim 267291c37e Fix 2024-11-18 18:28:40 +08:00
Joshen Lim 548edcea0a Update feature preview content 2024-11-18 18:06:05 +08:00
Joshen Lim 62d5c88eb8 Add link to abort ongoing queries from SqlSnippet 2024-11-18 17:47:02 +08:00
Joshen Lim e446dffeea Add explain code action to SQL editor 2024-11-18 16:23:45 +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
Joshen Lim af4cc07a36 Add users length to dependency array for formatting user column (#30507)
* Add users length to dependency array for formatting user column

* Just check on users
2024-11-18 12:29:44 +08: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 ec61292097 Smol fix 2024-11-15 18:56:36 +08:00
Joshen Lim b2a00150bb Rename feature preview property for new assistant 2024-11-15 18:56:00 +08:00
Joshen Lim fcbe23f16c some fixes for backwards compability depending on feature preview toggled 2024-11-15 18:49:48 +08:00
Joshen Lim e745ec1ce3 Bump ai package in packages 2024-11-15 18:44:05 +08:00
Kevin Grüneberg e36be4e102 fix: copy for downgrading Fly partner org (#30464) 2024-11-15 17:01:20 +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
Jonathan Summers-MuirandJoshen Lim 59ecdeb1b9 chore: update compute redirect with flag (#30408)
* Update ComputeInstanceSidePanel.tsx

* add redirect on new page

* Update ComputeInstanceSidePanel.tsx

* Fix order

* Small refactor

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2024-11-15 15:48:11 +08:00