Commit graph

140 commits

Author SHA1 Message Date
yangdx
ad247f2fc1 refactor: improve accessibility and i18n for search components
• Replace label with ariaLabel prop
• Add searchPlaceholder support
• Use i18n keys for messages
• Improve aria-label attributes
• Standardize noResultsMessage fallback
2025-09-24 19:59:56 +08:00
yangdx
7b63c16b1c Set empty query labels to wildcard '*' for proper graph display
• Handle empty/whitespace query labels
• Auto-set to '*' when label is blank
• Ensure consistent graph behavior
• Prevent invalid query states
2025-09-23 22:41:31 +08:00
yangdx
7a66c009ed Refactor node type legend color mapping
- Reduce chaos legend by storing standard node type
- Reset lengend on graph manual refresh
- Optimize color mapping for new node type schema
2025-09-23 19:48:16 +08:00
yangdx
fa2938cf33 Increase tooltip max width in PropertiesView 2025-09-23 13:24:31 +08:00
yangdx
cc0eed1c8c Format <SEP> separators as newlines in properties view for non editable value
- Convert <SEP> to semicolon + newline
- Apply formatting to text and tooltip
2025-09-23 13:10:06 +08:00
yangdx
fca3ea5d20 Fix linting 2025-09-22 03:29:17 +08:00
yangdx
8af097a8e4 fix(webui): resolve theme switching crashes and optimize graph rendering
- Implement theme switching isolation to prevent component access during transitions by hidding GraphSearch
- Fix NotFoundGraphError during theme switching by adding defensive programming
- Replace problematic NodeById component with custom safe implementation
- Add comprehensive error handling and node/edge existence checks
- Optimize sigma settings with memoization to prevent unnecessary re-renders
- Remove redundant theme update logic and simplify event listener management
2025-09-22 03:03:53 +08:00
yangdx
68883c0e7a Fix legend translation keys by removing spaces from node types 2025-09-20 23:27:34 +08:00
yangdx
446767ba50 feat: enhance graph refresh with dynamic tooltips and loading states
• Add refresh loading state with spinner
• Dynamic tooltips based on current label
• Improved refresh logic for labels
• Force dropdown re-render on refresh
• Update i18n for new tooltip messages
2025-09-20 22:46:09 +08:00
yangdx
9db8f2fce5 feat: Add popular labels and search APIs with history management
- Add popular/search label endpoints
- Implement SearchHistoryManager utility
- Replace client-side with server search
- Add graph data version tracking
- Update UI for better label discovery
2025-09-20 02:03:47 +08:00
yangdx
25b5d176cd Fix label selection with leading/trailing whitespace
• Fix AsyncSelect value trimming issue
• Preserve whitespace in label display
• Use safe keys for command items
• Add GraphControl dependency fix
• Add debug logging for graph labels
2025-08-31 02:54:39 +08:00
yangdx
9bf048a4b1 Sync frontend with backend MAX_GRAPH_NODES
- Auto-adjust graph nodes when limit changes
- Add refresh trigger for node count changes
- Store backend limit in settings
2025-07-08 00:21:42 +08:00
yangdx
fd5f61f166 Enhances property edit dialog with error handling and loading states
- Displays error messages when save operations fail
- Shows loading spinner during save attempts
- Improves UX with loading state indicators
- Updates translations for save-related strings in multiple languages
2025-05-11 12:35:51 +08:00
yangdx
af42fc9b04 Hide created_at property on webui 2025-05-05 00:07:50 +08:00
yangdx
300a092132 Increase the threshold value of enabling middle content search. 2025-04-18 17:46:05 +08:00
yangdx
67f6d14e5b Switch rotation bottun posstion 2025-04-17 04:33:34 +08:00
yangdx
c50b3dc79c Update toptips position 2025-04-15 16:09:40 +08:00
yangdx
085cfffdf6 fix: limit property value display length to prevent horizontal scrollbars 2025-04-15 14:33:40 +08:00
yangdx
0a9e96640d Optimize tooltips posistion 2025-04-15 14:23:42 +08:00
yangdx
cdd69845c9 Remove grapOperation.ts 2025-04-15 13:04:51 +08:00
yangdx
28d26c3a4a refactor: improve graph property update mechanism
- Move graph data and UI state update logic into store
- Ensure all property updates trigger PropertiesView refresh
- Add graphDataVersion dependency to PropertiesView
- Follow React best practices by avoiding direct UI state modification in utility functions
- Fix issue where non-entity_id property changes weren't reflected in UI
2025-04-15 12:41:51 +08:00
yangdx
f58fb43f67 Fix Neo4j node and edge edit problem 2025-04-15 12:41:41 +08:00
yangdx
f7ee5be658 Fix linting 2025-04-14 14:53:13 +08:00
yangdx
5ce334d807 Fix tooltips missing for editable properties 2025-04-14 14:47:30 +08:00
yangdx
85a9462650 Enhanced textarea configuration in property editor
- Added dynamic textarea sizing configuration
- Special handling for description field
- Improved resizing behavior
2025-04-14 13:01:34 +08:00
yangdx
414264f25e Use DialogDescription component for description
- Remove aria-describedby attribute
2025-04-14 12:45:42 +08:00
choizhang
88947c7ece refactor(graph): Refactoring the attribute line component to extract common logic into a separate file 2025-04-14 10:13:54 +08:00
choizhang
5b1938e5b3 feat(webui): Add attribute editing dialog box and optimize editable attribute row component 2025-04-13 23:32:35 +08:00
choizhang
830b69fd89 refactor(graph): Refactoring the EditablePeopleRow component 2025-04-13 11:13:23 +08:00
choizhang
5e5f3640d7 2025-04-13 10:50:42 +08:00
choizhang
272b101974 feat: Add double-click editing prompt text and optimize editable attribute line style 2025-04-12 14:33:40 +08:00
choizhang
58eeacda20 refactor(graph): Refactoring node attribute update logic to improve code maintainability 2025-04-12 13:17:09 +08:00
choizhang
ea43f3537e fix(graph): Fixed the issue of incorrect handling of edges and nodes during node ID updates 2025-04-12 10:36:05 +08:00
choizhang
7e3e685763 feat(graph): Add editing function for entity and relationship attributes 2025-04-12 00:48:19 +08:00
yangdx
2e3e1fedcc Add middle-content matching for GraphViewer 2025-04-09 18:36:54 +08:00
yangdx
6e162ec297 Add fallback support for translation missing 2025-04-08 14:59:20 +08:00
yangdx
648a024af2 Add node types 2025-04-08 13:38:06 +08:00
yangdx
11392fc20f Udate node types 2025-04-08 13:09:25 +08:00
yangdx
6401b88ab4 Modify legend box hight 2025-04-08 13:02:28 +08:00
yangdx
2731634ba4 Fix graph label drop down list position problem 2025-04-07 22:12:58 +08:00
yangdx
09719bb9cf Fix Safari popover problem 2025-04-07 20:09:43 +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
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
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