Commit graph

10 commits

Author SHA1 Message Date
Th-Underscore
d72f7c8618
Update method name 2025-05-07 09:35:08 -04:00
Th-Underscore
f35c1ae2b7
Update methods
Tweaked method names and typing
Removed logs, debugs, and other unnecessary lines
2025-05-07 09:23:16 -04:00
Th-Underscore
90348ee560
Update event handling 2025-05-06 17:37:48 -04:00
Th-Underscore
097c5d2568
Pass only necessary values 2025-05-06 16:46:19 -04:00
Th-Underscore
266b35e546
Fix 'mode' usage 2025-05-06 16:29:59 -04:00
Th-Underscore
e43e076b75
Rename global vars 2025-05-06 16:26:39 -04:00
Th-Underscore
0d22849ae2
Refactor caching temp info 2025-05-06 15:40:57 -04:00
Th-Underscore
f9bedb302a
Avoid saving irrelevant temp info 2025-05-06 15:32:17 -04:00
Th-Underscore
a758d49115
Fix code styling 2025-05-04 22:32:34 -04:00
Th-Underscore
bc0df8a518
UI: Add message versioning and navigation (integrated boogaplus extension)
- Created a new module (message_versioning.py) for managing message versioning logic and data storage
- Added relevant Gradio communication in ui_chat.py
- Updated chat.py to append messages to versioning history and other history-related operations
- Updated HTML generation to include message version navigation elements
- Implemented JavaScript functions for handling message version navigation, selection, and history management
- Added relevant CSS styling (handling all three message classes is a little messy, but changing the original class structure might be problematic)

Notes:
- Doesn't always update on first load via `shared.gradio['unique_id'].select()`
- No go-to-first or go-to-last nav arrows
- Some of the methods and variables are... long-winded
- Have only tested with a couple extensions, but this _shouldn't_ break anything and should be completely backwards-compatible
- Haven't put any documentation for controls (Ctrl+Left/Right Arrow for navigation, Ctrl+Up/Down Arrow as an alternative for selection)
- The original footer buttons aren't set to full opacity when the message is selected, only the new nav container
- Output file extension is `.boogaplus` cuz it's cool
- Tried using `None` as a placeholder in the history storage dict (`null` in the JSON) instead of always saving the text to save space, but sometimes leads to client-server issues
2025-05-04 14:57:19 -04:00