Commit graph

125 commits

Author SHA1 Message Date
yangdx
cbc8796bb0 Update logo from png to svg 2025-05-12 18:49:58 +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
d7552a2a87 Keep chat history when login with same user 2025-04-28 02:14:50 +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
13eeb9a52b Optimze document status change monitor 2025-04-16 00:51:09 +08:00
yangdx
6c90a919f0 Optimize health check 2025-04-15 21:23:29 +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
67fafedf64 Fix document list sorting problem while filter is off 2025-04-09 23:35:53 +08:00
yangdx
6a0909ea32 Fix i18n direction problem 2025-04-07 20:24:51 +08:00
yangdx
56865816f1 Fix linting 2025-04-07 06:20:48 +08:00
yangdx
d2efc80fad fix: prevent promise errors in async operations after component unmount
This commit addresses the "Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received" error that occurs when async operations attempt to update state after component unmount.

Changes:

- Add component mount status tracking with useRef in App.tsx and DocumentManager.tsx
- Implement beforeunload event listeners to handle page reload scenarios
- Add mount status checks before and after async operations
- Add try-catch blocks to properly handle errors in async operations
- Ensure state updates only occur when components are still mounted
- Prevent health check and document polling from causing errors during unmount
2025-04-07 06:04:18 +08:00
yangdx
f33ff7f2c2 Fix linting 2025-04-07 05:23: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
01fc513621 refactor(login): update input field IDs to be more specific
Changed username/password input IDs from generic 'username'/'password' to more explicit 'username-input'/'password-input' and updated corresponding label htmlFor attributes for better clarity and consistency.
2025-04-07 05:00:42 +08:00
yangdx
ad96bed7ac Change to undirected graph 2025-04-07 01:17:44 +08:00
yangdx
f200b6e161 Move legend to lower right cornner 2025-04-05 15:25:57 +08:00
yangdx
9d6a3c281b Merge branch 'feat-node-color' into merge-node-color 2025-04-05 14:39:49 +08:00
yangdx
299c508f27 Fix webtitle display problem 2025-04-05 02:24:23 +08:00
yangdx
29d01e1c74 Add title support for webui 2025-04-04 22:51:07 +08:00
yangdx
e86fda5894 Optimize document sorting with useCallback
- Memoize sortDocuments function
- Add dependencies to useCallback
- Improve performance
2025-04-04 14:49:47 +08:00
yangdx
4aeb562aa9 Enhanced status filter button styling
- Added active state styles for all buttons
- Improved visual feedback for selected filters
2025-04-04 14:48:51 +08:00
yangdx
ce0b8045f4 Merge branch 'feat-document-filter' 2025-04-04 14:11:41 +08:00
choizhang
81355481c1 feat: Add legend components and toggle buttons 2025-04-03 22:42:13 +08:00
yangdx
4372024ad6 feat(ui): Add document list refresh to UploadDocumentsDialog
- Add callback pattern for document list refresh after upload
- Implement conditional refresh based on upload success
- Ensure backend state is updated after successful uploads
2025-04-01 14:55:27 +08:00
yangdx
0d93ed2f2c feat(ui): Improve document list refresh mechanism in ClearDocumentsDialog
- Replace direct API call with callback pattern for document list refresh
- Ensure document list updates regardless of operation success/failure
- Improve component decoupling between ClearDocumentsDialog and DocumentManager
2025-04-01 14:46:52 +08:00
yangdx
66d0b0322d Optimize layout 2025-03-29 01:55:46 +08:00
yangdx
0d315be8e6 Optima document TAB layout 2025-03-29 01:52:18 +08:00
yangdx
8cd7d418dc Fix: tooltip flickering problem 2025-03-28 12:03:30 +08:00
yangdx
f182cf4a09 Fix liting 2025-03-27 16:55:15 +08:00
yangdx
441d1b8ced Optime tooltips display 2025-03-27 16:50:27 +08:00
yangdx
4fae0fa54e Optimed table header 2025-03-27 15:38:57 +08:00
yangdx
73e5916f99 Fix linting 2025-03-27 13:38:36 +08:00
yangdx
fa5d39d8a2 feat: add sortable columns to document manager
- Add sorting capability for ID, created_at and updated_at columns
- Implement ascending/descending sort with visual indicators
- Handle special case for filename sorting in ID column
- Add hover effects on sortable column headers
2025-03-27 13:37:50 +08:00
yangdx
d149fd1bae Optimize tooltips and layout 2025-03-27 11:11:59 +08:00
yangdx
3f52c7985f Optimize collum width 2025-03-27 10:45:28 +08:00
yangdx
1cae6d77e7 Optimize tooltips 2025-03-27 10:41:21 +08:00
yangdx
92f68024ef Fix linting 2025-03-27 08:37:43 +08:00
yangdx
9eed63bd6f Improve tooltips display for small table list 2025-03-27 08:37:09 +08:00