Commit Graph

209 Commits

Author SHA1 Message Date
yangdx
1d5c6570ea fix: add null checks in FileUploader to prevent split() on undefined
- Add validation for file.name existence before accessing split() method
- Ensure extensions array exists before calling includes() method
- Add similar checks in onDrop file filtering logic
- Fix TypeError that occurred when processing files with missing properties
2025-04-07 06:19:28 +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
74d015fdba Add description to status dialog 2025-04-07 04:13:40 +08:00
yangdx
44e7a18a77 Fix linting 2025-04-06 23:42:39 +08:00
yangdx
688be94085 Add i18n translation 2025-04-06 23:42:39 +08:00
yangdx
daf4175be0 Fix * display problem on graph label box 2025-04-06 16:33:53 +08:00
yangdx
b003d613ee Add initial value display for AsyncSelect 2025-04-06 15:53:04 +08:00
yangdx
11b93f1a25 Fix linting 2025-04-06 14:57:21 +08:00
yangdx
df0594852a Set queryLabel after query on page first load 2025-04-06 14:56:55 +08:00
yangdx
9d6a3c281b Merge branch 'feat-node-color' into merge-node-color 2025-04-05 14:39:49 +08:00
yangdx
0ce765362e Add reset button for edge size 2025-04-05 13:38:28 +08:00
yangdx
f8fb882241 Limit max edge size to 10 2025-04-05 13:38:15 +08:00
yangdx
ae1e991724 Merge branch 'feat-edge-thickness' into merge-edge-thickness 2025-04-05 13:06:28 +08:00
yangdx
62174e6abd Fix <div> in <p> problem of webui 2025-04-05 11:02:57 +08:00
yangdx
9969bf102d Fix linting 2025-04-05 06:18:59 +08:00
yangdx
5d80c69855 Add label validation in GraphLabels component
- Validate queryLabel against available labels
- Reset to default if label not found
- Log warning when resetting label
2025-04-05 04:39:42 +08:00
yangdx
c3934ccccb Fix linting 2025-04-04 04:46:40 +08:00
yangdx
9c81963908 Optimize server setting dialogue 2025-04-04 04:35:57 +08:00
choizhang
81355481c1 feat: Add legend components and toggle buttons 2025-04-03 22:42:13 +08:00
yangdx
8f46ce75b8 Update i18n translation 2025-04-02 23:55:28 +08:00
yangdx
76351590b2 Update UI component styling in dark mode 2025-04-02 23:45:14 +08:00
yangdx
f9f588aa16 Feat: add reset button to the right of input box 2025-04-02 23:40:16 +08:00
yangdx
7b1c946069 Update i18n translation 2025-04-02 23:28:58 +08:00
yangdx
1a1f934e27 Feat: replace min_degree with max_nodes in webui 2025-04-02 18:35:32 +08:00
yangdx
002738b197 Preventing document list reload from blocking dialogs to close faster
- Changed document refresh operations to execute asynchronously, no longer blocking UI response
- Added proper error handling to ensure refresh failures don't affect user experience
- Removed redundant health check calls as the document manager already includes state update logic
2025-04-01 16:26:41 +08:00
yangdx
4bb22046e0 Improve toast notifications and document clearing flow
- Enhanced Toaster component with theme, close button and rich colors
    - Added immediate feedback for document clearing operation
2025-04-01 15:44:36 +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
e83f6c0c63 Fix lingting 2025-04-01 13:32:05 +08:00
yangdx
4c9c600472 Refactoring clear document UI 2025-04-01 13:31:14 +08:00
choizhang
cd3817ce30 feat (graph settings): Add edge thickness range configuration function 2025-04-01 00:36:32 +08:00
yangdx
adb4ca9294 Fix linting 2025-03-28 16:49:35 +08:00
yangdx
35d4503677 Feat: add duplicate file check 2025-03-28 16:48:46 +08:00
yangdx
5e06d01de4 UI adaptation for dark mode 2025-03-28 14:36:55 +08:00
yangdx
34c92e1045 Feat: improve file upload error handling for unspported files 2025-03-28 14:16:53 +08:00
yangdx
c9ee13c7a1 Fix linting 2025-03-26 20:37:58 +08:00
yangdx
b82e4825e9 Add i18n translation for upload module 2025-03-26 20:33:56 +08:00
yangdx
b804d74d34 feat(upload): improve file upload progress and error handling
- Add persistent progress bars and error states
- Remove individual file toasts in favor of batch status
- Keep dialog open until manual close
- Move Progress component inline to reduce dependencies
2025-03-26 20:06:14 +08:00
yangdx
53b6b95e9e Fix linting 2025-03-26 19:52:20 +08:00
yangdx
b2963b8a9c Add unit to progress indicator on pipeline status dialog 2025-03-26 18:59:50 +08:00
yangdx
208ee8b577 Revert AlerDialog implementation 2025-03-26 18:22:18 +08:00
yangdx
fb262e0f4a Improve empty history message handling 2025-03-26 17:40:06 +08:00
yangdx
46f5c5b47f Fix linting 2025-03-26 17:30:06 +08:00
yangdx
03934b1385 fix(ui): improve pipeline status dialog layout and styling
- Switch from AlertDialog to Dialog component for better modal behavior
- Adjust dialog positioning and alignment controls
- Remove custom close button to avoid duplication
- Add proper spacing between alignment buttons and close button
- Simplify history container height with min/max height
- Reduce overlay opacity for better visibility
2025-03-26 16:24:38 +08:00
yangdx
4adfcdc8fe feat(accessibility): add screen reader text for pipeline status dialog 2025-03-26 14:40:54 +08:00
yangdx
af3c9f30dc feat(PipelineStatusDialog): add responsive height adjustment with minimum height guarantee 2025-03-26 14:14:29 +08:00
yangdx
43ccb7d113 feat(DocumentManager): optimize document status monitoring
- Improve document status change detection by caching previous counts and properly handling null states.
- This ensures more accurate pipeline status updates.
2025-03-26 14:02:20 +08:00
yangdx
51be3fcfa5 feat(i18n): add translations for pipeline status UI 2025-03-26 12:50:33 +08:00
yangdx
d7c0b420b9 feat: add pipeline status monitoring dialog
- Add pipeline status API and types
- Create PipelineStatusDialog component with position control
- Unify modal overlay style across components
2025-03-26 12:05:54 +08:00