Commit Graph
312 Commits
Author SHA1 Message Date
MAX-TABandCohee 63dcda8609 feat: Send Quick Reply Before Message Generation (#4407)
* feat: Send Quick Reply Before Message Generation

* fix: Use correct event and check for dry runs on before-generation

* Replace icon

* Skip for events in groups outside of group wrapper

* Compatibility with API and slash commands

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-08-21 20:39:16 +03:00
MAX-TABandCohee f107df8ca6 feat: Add Character Quick Reply Sets (#4215)
* charQR

* fix

* fix_2

* fix_3

* Fix refresh errors and Implement confirmation dialog logic

* FIX : The character's quick reply set is executed three times during the initial authorization and import.

* Enhance warning dialog content and layout

* refactor: Use local linking for Char QR sets instead of embedding

* Lint fixes

* Clean-up

* Emit CHAT_CHANGED on character deletion

* Remove isVisible filter, I'm sure it was by design

* Revert order of search in executeQuickReplyByName

* fix: Address review comments

* Add private tag to Char Sets

* Add QR rebind on renamed character

* Clean-up diff

* Don't save empty config lists

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-08-20 20:53:21 +03:00
Cohee c8b02dfd68 Fix duplicateQrSet
Fixes #4364
2025-08-10 16:10:41 +03:00
Cohee 88ef9ca0de Properly save chat QR metadata in groups
Fixes #4121
2025-07-06 15:11:00 +03:00
Cohee 4fa7de9c93 Add typing for QR API global 2025-06-09 22:53:34 +03:00
Cohee 90f58bb553 Fix mobile QR popout style 2025-06-07 18:37:26 +03:00
Cohee 9bcbe957af Refactor transition durations to use CSS variables 2025-06-07 16:40:30 +03:00
Cohee 0af4a3ebd7 Fix unfixable lints 2025-03-19 21:10:42 +02:00
e23f3a6314 feature: 'kokoro-js' supports TTS #3412 (#3656)
* feature: 'kokoro-js' supports TTS #3412

* Linting, add credits for kokoro library

* Fix voice preview

* Fix display languages on previews

* Fix settings restoration. Debounce model init on settings change

* Fix engine sorting

* Move TTS processing to a web worker. Remove unused gain setting

* Speaking rate fix

* Update status when recreating a worker

* Pass voices list from TTS engine

* Call dispose function on provider change

* Extend worker init timeout to 10 minutes

---------

Co-authored-by: ryan <1014670860@qq.com>
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-03-10 22:54:54 +02:00
Cohee a434d217cc Fix input prompt title for creating a new Quick Reply Set 2025-02-16 16:25:08 +02:00
Cohee 34d17a4fcb Migrate QR editor preferences to accountStorage 2025-02-12 11:29:27 +02:00
Eradev 055a6527fc PR fixes 2025-02-02 03:10:32 -05:00
Eradev 842b59605b Merge branch 'staging' into staging-3071-v2 2025-02-02 02:44:21 -05:00
Wolfsblvt 2a322faa6a Toast on /qr-get if no label and id are provided 2025-01-30 22:51:40 +01:00
Eradev 1f9fa74786 Rewritten minLogLevel feature 2025-01-15 10:02:32 -05:00
Wolfsblvt b89d41a701 Refactor prepare/redraw for consistency 2025-01-11 02:31:14 +01:00
Wolfsblvt 3455da404a Add QR set duplicate button 2025-01-11 02:22:10 +01:00
Wolfsblvt 0f45ebda03 Refactor QR set popups to new popup 2025-01-11 01:59:38 +01:00
Wolfsblvt 4c1c62a56b Add QR set rename button 2025-01-11 01:41:46 +01:00
ceruleandeep 2f7bc7ca8d Filter out hidden items in context menus
Add CSS to apply label show/hide settings to QRs in context menus

Add provision for QR set applied to one of its own buttons as "burger" menu
2024-11-30 00:46:04 +11:00
Cohee 2384031d09 Merge pull request #3121 from ceruleandeep/fix/handleIdForQRMenuAdd
Wire up id= parameter for /qr-context*
2024-11-29 14:27:57 +02:00
ceruleandeep 3a1a955164 Make QR context menu display options more consistent with QR bar
Use QR title as tooltip if set on the QR

Add qr--hidden class to "invisible" context items to allow hiding with CSS

Add title and isHidden props to MenuItem

Remove domIcon and domLabel props: not needed for ctx menu rendering; isForceExpanded: unimplemented
2024-11-29 17:44:51 +11:00
ceruleandeep e8004b5b56 Wire up id= parameter for /qr-context*
Parameter is in the named arguments but was not handled in the handler. Added `args.id !== undefined ? Number(args.id) : args.label` etc, as used elsewhere.
2024-11-29 11:52:57 +11:00
Cohee e03e32d66a unvendor: Replace morphdom 2024-10-17 11:12:22 +00:00
Cohee 416282ae1f unvendor: Replace hljs 2024-10-16 23:18:23 +03:00
RossAscends 5d6d7568c3 clarify QR popout only possible on desktop 2024-10-12 06:01:44 +09:00
RossAscends cdb271e6ec fix QR popout controlBar display, hide QR popout button for mobile 2024-10-12 05:58:39 +09:00
Cohee eaefcaa6bc Fix QR editor sizing 2024-09-28 01:00:07 +03:00
Cohee cc2e82ce8f Fix execute on new chat not saving 2024-09-15 18:52:56 +03:00
Wolfsblvt e3f4b554c7 I wiped, I swear 2024-09-05 23:12:45 +02:00
Cohee de335a4a96 QR: Add toggle to hide popout button 2024-08-20 23:06:36 +03:00
Cohee 06d300ad36 Quick Replies: Add auto-execute on new chat 2024-08-14 00:08:16 +03:00
LenAnderson 88d3771863 compile LESS 2024-07-30 16:00:41 -04:00
LenAnderson 92eec72c6d draw attention to debug buttons 2024-07-30 16:00:32 -04:00
LenAnderson 3343f3122b stop chat input and progress bar from collapsing 2024-07-30 16:00:13 -04:00
Wolfsblvt 7c27211bc9 QR label alignment/wrapping 2024-07-30 20:51:55 +02:00
Wolfsblvt 023bd840fa Fix QR context error on no set chosen 2024-07-30 19:54:17 +02:00
LenAnderson 18e3659914 fix syntax loop debugger misalignment 2024-07-29 21:43:38 -04:00
LenAnderson 1d4c44fcf6 fix AbortController missing from imported closures 2024-07-29 21:01:58 -04:00
LenAnderson 039c27e201 add "for {{input}}" comment to chat input placeholder and title 2024-07-28 08:33:18 -04:00
LenAnderson 2470f775e2 Merge branch 'staging' into parser-followup-2 2024-07-28 08:32:25 -04:00
LenAnderson b5d90a4259 let /qr-arg overwrite wildcard macros 2024-07-27 15:30:50 -04:00
Cohee 0253ef9cfd Merge branch 'staging' into dvh-units 2024-07-26 11:09:49 +00:00
LenAnderson 59c617a7a7 adjust debugger highlights for scroll position 2024-07-23 20:49:49 -04:00
LenAnderson 8df6353725 fix some execCommand weirdness 2024-07-23 16:46:46 -04:00
LenAnderson 80879e0c51 don't try to parse empty qrJson on add from text 2024-07-23 11:40:23 -04:00
LenAnderson 3b2dcd60da add console warning when delete set is not found in list 2024-07-22 19:06:02 -04:00
LenAnderson 133a3663f4 await API calls 2024-07-22 18:48:01 -04:00
LenAnderson 2ac2a2537d don't cancel syntax highlight update if previously disabled 2024-07-22 18:25:43 -04:00
LenAnderson 2b653ac8a1 sync scroll after syntax highlight update 2024-07-22 18:25:16 -04:00