text-generation-webui-mirror/js
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
..
highlightjs Improved instruct style (with syntax highlighting & LaTeX rendering) (#5936) 2024-04-26 10:13:11 -03:00
katex Improved instruct style (with syntax highlighting & LaTeX rendering) (#5936) 2024-04-26 10:13:11 -03:00
morphdom Use morphdom to make chat streaming 1902381098231% faster (#6653) 2025-01-11 12:55:19 -03:00
dark_theme.js Add missing dark_theme.js (oops) 2024-07-21 09:47:55 -07:00
global_scope_js.js UI: Add message versioning and navigation (integrated boogaplus extension) 2025-05-04 14:57:19 -04:00
main.js UI: Add message versioning and navigation (integrated boogaplus extension) 2025-05-04 14:57:19 -04:00
save_files.js Lint the javascript code 2023-10-07 19:07:57 -07:00
show_controls.js Improved UI (#6575) 2024-12-17 00:47:41 -03:00
switch_tabs.js Bump gradio to 4.23 (#5758) 2024-03-26 16:32:20 -03:00
update_big_picture.js Restructure the repository (#6904) 2025-04-26 08:56:54 -03:00