Commit Graph

310 Commits

Author SHA1 Message Date
yangdx
36ac95720f Update webui assets 2025-04-07 22:15:00 +08:00
yangdx
2731634ba4 Fix graph label drop down list position problem 2025-04-07 22:12:58 +08:00
yangdx
6a0909ea32 Fix i18n direction problem 2025-04-07 20:24:51 +08:00
yangdx
09719bb9cf Fix Safari popover problem 2025-04-07 20:09:43 +08:00
yangdx
56865816f1 Fix linting 2025-04-07 06:20:48 +08:00
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
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
7d63cfb87a Fix confusing i18n translation 2025-04-07 05:22:59 +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
74d015fdba Add description to status dialog 2025-04-07 04:13:40 +08:00
yangdx
0261ebcf51 Fix linting 2025-04-07 01:18:18 +08:00
yangdx
ad96bed7ac Change to undirected graph 2025-04-07 01:17:44 +08:00
yangdx
fe7b5ac13b Add edge size handling for nodeexpansion 2025-04-07 01:04:45 +08:00
yangdx
f5c1ad2c92 Optimize node corlor 2025-04-07 00:27:42 +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
b94c1e406b Optimize node color 2025-04-06 23:04:45 +08:00
yangdx
9b7a8395b5 Optimize node color by pre-set colors 2025-04-06 22:01:05 +08:00
yangdx
7371516860 Add node cololr by type feature to node expansion 2025-04-06 17:07:20 +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
cd98f5e54a Fix backendBaseUrl problem 2025-04-05 15:50:20 +08:00
yangdx
1b939493d2 Fix linting 2025-04-05 15:26:46 +08:00
yangdx
bfc28625aa Fix merge problem 2025-04-05 15:26:08 +08:00
yangdx
f200b6e161 Move legend to lower right cornner 2025-04-05 15:25:57 +08:00
yangdx
be87f27612 Fix merge conflicts 2025-04-05 15:13:42 +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
cc2d604782 Keep graph query label after 401 error for post-login data reload 2025-04-05 12:05:37 +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
a752a58b88 Merge branch 'fix-query-label-missing' 2025-04-05 06:07:44 +08:00
yangdx
20da87f8f6 Optimize ui for intialization stage 2025-04-05 05:40:53 +08:00
yangdx
4fe66e7364 Fix guest login expiration problem 2025-04-05 05:23:19 +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
dcba3f776d Fix linting 2025-04-05 02:41:06 +08:00
yangdx
299c508f27 Fix webtitle display problem 2025-04-05 02:24:23 +08:00
yangdx
1c0b94c46f Fix web title cleaning problem 2025-04-05 00:41:49 +08:00
yangdx
4851f4e01e Fix linting 2025-04-04 22:52:50 +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
yangdx
247be483eb Merge branch 'main' into clear-doc 2025-04-04 05:45:06 +08:00