Commit graph

42 commits

Author SHA1 Message Date
yangdx
93a3e47134 Remove deprecated response_type parameter from query settings
- Bump API version to 0254
- Remove response format UI controls
- Hard-code response_type in query params
- Add migration for version 19
- Clean up settings store structure
2025-11-17 12:54:32 +08:00
yangdx
dab1c35834 Optimize chat performance by reducing animations in inactive tabs
• Add isTabActive prop to ChatMessage
• Disable spinner in inactive tabs
• Reduce opacity for inactive content
• Hide loading indicator when inactive
• Pass tab state from RetrievalTesting
2025-10-17 21:17:01 +08:00
yangdx
b6a1832324 feat: prevent LaTeX parsing errors during streaming by implementing completeness detection
- Add latexRendered flag to control KaTeX plugin application
- Implement detectLatexCompleteness function to check formula closure
- Maintain backward compatibility for historical messages
2025-09-28 20:59:56 +08:00
yangdx
16e574a083 Fix query mode prefix regex to handle multiline queries in WebUI
- Allow newlines in query text
- Change `.+` to `[\s\S]+` in regex
- Support multiline input parsing
- Fix prefix matching edge case
2025-09-28 14:56:05 +08:00
yangdx
71367c7bc2 Add user prompt history dropdown to query settings
- Create UserPromptInputWithHistory component
- Move user prompt field to top of panel
- Add history tracking to settings store
- Include keyboard navigation support
- Auto-save prompts on query execution
2025-09-25 06:16:32 +08:00
yangdx
c358f83d2d Implement robust clipboard functionality with multiple fallback strategies
• Add comprehensive clipboard utility
• Support legacy browser environments
• Provide detailed user feedback
• Handle security context failures
2025-09-24 23:12:16 +08:00
yangdx
3d7635e097 refactor: addinging copy buttons beside each message 2025-09-24 20:43:22 +08:00
yangdx
5b0ad167d6 feat: Force sending history messages in bypass mode
• Force history turns to 3 for bypass mode if current setting is 0
• Add this feature allowing the LLM to generate output based on conversation history.
2025-09-22 15:09:34 +08:00
yangdx
40c8f1ef7b feat: add smart input switching between Input and Textarea components
• Switch to Textarea for multi-line input
• Handle Shift+Enter for newlines
• Maintain focus during component switch
• Support multi-line paste operations
• Auto-adjust textarea height dynamically
2025-09-22 13:00:22 +08:00
yangdx
d2029fd804 Replace Input with auto-resizing Textarea in RetrievalTesting
• Add new Textarea component
• Auto-resize between 40px-120px height
• Support Enter to submit, Shift+Enter for newline
• Add form autocomplete attributes
• Reset height after message submission
2025-09-22 02:01:39 +08:00
yangdx
9288ae1703 Refactor COT parsing to handle multiple think blocks robustly 2025-09-22 01:01:39 +08:00
yangdx
62aa0726a5 Fix conversation history handling when history_turns is 0
• Check history_turns > 0 before filtering
• Prevent sending all history converstion to backend when history_turns is 0
2025-09-21 23:51:19 +08:00
yangdx
8ad7109313 Fix linting 2025-09-08 20:11:21 +08:00
yangdx
4346846e5a Fix thinking content extraction to prevent duplication and overwriting
- Add thinkingProcessed ref to track state
- Extract thinking content only once
- Preserve real-time thinking updates
- Reset processed flag on new queries
- Always update display content stream
2025-09-08 19:34:05 +08:00
yangdx
eeff0d5c67 Fix thinking state management and UI improvements for chat messages
- Reset expansion state on new thinking
- Prevent content leakage during thinking
- Update thinkingTime type to allow null
- Add memory leak prevention cleanup
- Add missing i18n translations
2025-09-08 18:47:41 +08:00
yangdx
2ba10dbb5b Add AI thinking process display with expandable UI and timing
- Add thinking fields to Message type
- Create expandable thinking section
- Track thinking time during streaming
2025-09-08 18:09:04 +08:00
yangdx
4f523366aa Fix browse compatible problem for crypto.randomUUID 2025-04-29 02:37:05 +08:00
yangdx
4e2e668def Bump webui setting version to 12 2025-04-29 02:36:17 +08:00
yangdx
9792841a07 Stablize mermaid render in history messages 2025-04-26 12:30:29 +08:00
yangdx
e0d99d3c29 Postpond mermaid rendering untill streaming streaming respond stopped. 2025-04-26 10:16:13 +08:00
yangdx
1cbcb2a150 Optimize scrolling login of query view 2025-04-23 21:54:21 +08:00
yangdx
e97e54b7a5 Feat: support query mode prefix in retrieval input 2025-04-23 01:26:34 +08:00
yangdx
6f064925eb Simplified scroll to bottom logic 2025-04-23 00:38:35 +08:00
yangdx
5bfa2e7dc6 Improve scrolling logic 2025-04-22 22:15:42 +08:00
yangdx
f53115aaa1 Fix scrolling to bottom problem 2025-04-22 21:25:15 +08:00
yangdx
1b63149a11 Fix linting 2025-04-22 18:34:30 +08:00
yangdx
6c556cd65f Improve scrollToBottom logic 2025-04-22 18:05:08 +08:00
yangdx
6125116355 Fix useCallback Hook 2025-04-22 16:56:48 +08:00
yangdx
2b51ea7480 Merge branch 'fix-history-turns' 2025-04-11 00:45:37 +08:00
choizhang
10513d7ca5 fix(RetrievalTesting): auto scrollToBottom 2025-04-11 00:31:14 +08:00
choizhang
6009c25886 fix(RetrievalTesting): Limit the length of conversation history records 2025-04-10 17:02:28 +08:00
yangdx
46ffb6afa4 fix: improve form accessibility with proper label associations
Added missing htmlFor attributes to labels and corresponding IDs to form elements throughout the web UI to enhance accessibility. This ensures screen readers can correctly identify form controls and improves browser autofill functionality. Changes include:

- Fixed label associations in login form
- Added proper IDs to form elements in Settings component
- Replaced decorative labels with semantic headings in PropertiesView
- Added screen reader accessible labels in RetrievalTesting
- Improved checkbox accessibility in QuerySettings
2025-04-07 05:20:12 +08:00
yangdx
2753cbed97 Fix overflow issues in UI components
- Set overflow-hidden for main container
- Add overflow-auto to documents tab
- Add overflow-hidden to graph and retrieval tabs
- Set overflow-hidden for SigmaContainer
- Set overflow-hidden for retrieval testing container
2025-03-17 05:00:37 +08:00
zrguo
2ffd7f9111 fix linting 2025-03-11 21:13:50 +08:00
baoheping
59a2202e7c Added Minimum Degree 2025-03-08 11:01:10 +00:00
ArnoChen
e2b4e661e3 feat: retrieval message code highlight, message copy button 2025-02-24 18:17:17 +08:00
ArnoChen
eaf1e92e76 render chat message as markdown 2025-02-18 00:42:31 +08:00
ArnoChen
e083ebb95a improve streaming error handling 2025-02-18 00:30:51 +08:00
ArnoChen
cf7c45b5dd format 2025-02-17 01:05:48 +08:00
ArnoChen
e5b89c5400 fix retrieval testing and query settings 2025-02-16 21:58:30 +08:00
ArnoChen
fc3ca2777f add query settings 2025-02-16 21:43:14 +08:00
ArnoChen
d1358c30f3 enhance web UI with retrieval testing and UI improvements 2025-02-16 04:34:22 +08:00