Commit Graph

82 Commits

Author SHA1 Message Date
67699d9cfa Fix persona auto-lock to chat not working
- When auto lock was enabled, it didn't auto-lock to chat when the persona was already selected (like choosing the same persona you have used before)
2025-03-09 15:27:48 +01:00
90be2eee71 Only navigate to persona if switched by connection 2025-02-26 00:13:55 +02:00
6541dcbc66 Comment out persona preservation on character swap with personas open 2025-02-26 00:03:46 +02:00
0274d800f9 Navigate to current persona on switching chats 2025-02-25 23:50:49 +02:00
cf792c8195 Don't choose chat persona if it's already chosen 2025-02-25 23:37:02 +02:00
fec0e248c5 Fix persona UI states sometimes not updating 2025-02-25 21:57:25 +01:00
e27e045054 Update persona.js code documentation for exported 2025-02-23 04:58:48 +01:00
76fa90ed9e Switch to char from persona panel decision tree 2025-02-23 02:33:51 +01:00
7f9960fa7a Clickable char personas 2025-02-22 22:48:51 +02:00
e0f3a22b80 Refactor: move persona slash commands 2025-02-22 21:45:35 +01:00
ac8c2799b8 Add missing personas on load 2025-02-22 22:26:34 +02:00
2194bdfd56 Rerender the list if migrated persona 2025-02-22 22:20:45 +02:00
bb03c60c39 Refactor: move showCharConnections 2025-02-22 21:17:56 +01:00
8f38298f90 fix linting errors 2025-02-22 20:48:41 +01:00
9e7f485b65 Merge branch 'persona-improvements' of https://github.com/SillyTavern/SillyTavern into persona-improvements 2025-02-22 20:47:10 +01:00
4a9503c056 Align message block baseline 2025-02-22 21:43:16 +02:00
f37541d629 Remove unused old username functions 2025-02-22 20:42:35 +01:00
8bd4fd76ae Merge branch 'staging' into persona-improvements 2025-02-22 19:23:59 +01:00
d5bdf1cb90 Add settings.json-backed KV string storage
Fixes #3461, #3443
2025-02-11 20:17:48 +02:00
cbeb7ddcec Update persona upload methods to fetch 2025-01-30 02:30:51 +02:00
3d817352ec Add rename personas functionality 2025-01-30 01:17:43 +01:00
f9324c74cd Streamline persona toasts, infos and states
- Added "info" block to persona description panel to show when a temporary persona is in use. Hide the long text behind a tooltip
- Reduce toast spam even further, not showing toasts when persona panel is open
- Restyle connection state buttons a bit
- Designed common 'info-block' utility to show markdown-like info blocks, with CSS styling
2025-01-30 00:50:48 +01:00
e5db40cf2d Add persona connection states to persona list
- Show persona connection/lock states in persona list (chat & char lock)
- Refactor persona images url to 'data-avatar-id' attribute
- Try make persona blocks' height consistent
- Fix persona list not correctly updating selected persona on navigating pages
- Fix group/char difference not correctly working
- Create common style template for hover-able images buttons/tags where the label only appears on hover
2025-01-29 22:54:22 +01:00
2344d98e20 Move persona buttons to right panel
- Move all buttons from the persona list to the right panel, to the already existing ones
- Common CSS class/style for '.buttons_block'
- Common CSS style for a red button
- Refactored a few persona buttons' functionalities
2025-01-28 20:53:55 +01:00
913509f887 Don't look at this 2025-01-26 22:27:59 +01:00
1f116d9afe Reduce persona toast spam 2025-01-26 22:13:32 +01:00
2cfb9e8dab Fix lock icon state on auto-lock to chat 2025-01-26 20:50:10 +01:00
9a79c6b1a4 Remove all connections button for the popups 2025-01-25 19:54:45 +01:00
3fc4207cdb Temporary persona toast respects setting 2025-01-25 19:27:29 +01:00
0141a60eb8 Add hint on how to use persona connections 2025-01-25 19:20:21 +01:00
2253990898 Highlight personas from current chat in popup 2025-01-25 18:47:53 +01:00
076e5e3186 Fix temporary persona toast
- Temporary persona toast was appearing when auto-lock was enabled, which didn't make sense
2025-01-25 18:23:00 +01:00
608e1c195b Add button to show connections for current char 2025-01-25 02:52:41 +01:00
7c12a286c3 Fix one persona connected warning 2025-01-24 23:27:31 +01:00
7454532641 Expand /persona-lock command for type
- Add new main alias for /lock, renamed to /persona-lock
- Allow no state to be provided to return the current lock state
- Deprecate the old usage of /lock without state, without breaking it
2025-01-24 23:24:35 +01:00
91dabeff53 Add css class to allow multiple avatar lists 2025-01-24 21:57:47 +01:00
7c9b347116 Refactor chid/grid attributes to data attributes
- We don't believe in imaginary HTML attributes that we make up, right?
2025-01-24 21:12:49 +01:00
beced225a3 Update persona toasts 2025-01-15 02:48:35 +01:00
776dedea82 Persona settings for auto-lock & multi connection
- Add setting to auto-lock persona to chat. Triggered on chat changed (creation/loaded) and on persona selection.
- Add setting to allow multiple persona<->char connections, which then triggers the popup to select one
- If no multi connections allowed, the connect toggle will remove all existing connections from personas to that character
2025-01-15 02:20:48 +01:00
08a4cee48f Add/expand persona auto selection from char / chat
- Persona selection on chat based on three levels:
  1. Chat Locking
  2. Char connected personas
  3. Default persona
- Add popup if multiple personas are connected to char
- Add utility function to print persona avatar lists
2025-01-15 01:18:31 +01:00
255e75c6cf Show connected characters in persona panel
- Print list of connected characters in persona panel
- Fix smaller bugs with missing connections in persona description
2025-01-14 01:37:45 +01:00
74fc259c9c Reworked persona lock buttons + lock to character
- Slight redesign of the persona panel right side, add headers
- Add buttons for all three different lock states (chat, character, default)
- Update lock and toggle lock functions to accept toggle type
- Write persona locking to chat functionality (saves to persona description object)
2025-01-14 00:59:21 +01:00
fae11fc04a Update personas.js: fix i18n 2025-01-04 15:14:14 +08:00
a702dab68b Alt+Click to open lorebook 2024-12-04 13:53:10 +00:00
af582f43a6 [wip] Persona lorebook 2024-12-02 02:52:00 +02:00
9d664bc679 Update tl 2024-11-06 01:33:24 +07:00
8ec509c777 Unify default user avatars
Closes #2862
2024-09-16 22:08:40 +03:00
9cf53c6a55 Handle null values for missing persona descriptor fields 2024-07-26 19:45:45 +03:00
472b08d0e5 Update popups to new 2024-07-25 23:57:00 +03:00
00d74ec683 #2558 Add persona duping 2024-07-25 23:44:34 +03:00