Commit Graph

45 Commits

Author SHA1 Message Date
yangdx
c5362d90e8 feat: Improve graph zoom reset to fit all nodes with proper scaling
- Add smarter node boundary calculation
- Include padding around graph nodes
- Calculate optimal scale ratio
- Add error handling and null checks
- Animate transition to new zoom level
2025-03-15 14:34:14 +08:00
yangdx
abda12f63b style: change double quotes to single quotes in ZoomControl.tsx 2025-03-15 11:45:10 +08:00
yangdx
f4fceca7f3 Refactor graph search to update search engin after node expand or prune 2025-03-15 10:52:47 +08:00
yangdx
fdaf199b15 Fix linting and upate webui assets 2025-03-15 00:33:53 +08:00
yangdx
413d201525 Fix refresh layout button failure 2025-03-15 00:00:29 +08:00
yangdx
5decd03e2e Avoid graphics flickering during node operations 2025-03-14 23:25:38 +08:00
yangdx
20c976584b Fix linting 2025-03-14 16:45:02 +08:00
yangdx
de016025ba Add Node Expansion and Pruning Features 2025-03-14 15:58:50 +08:00
yangdx
87366c63da Fix show node label settings error 2025-03-14 03:42:46 +08:00
yangdx
9b01d50823 Update webui assets 2025-03-14 03:34:32 +08:00
yangdx
2777715403 Fix edge event and show edge label error 2025-03-14 03:33:40 +08:00
yangdx
c9c9f3d911 Translate common property names to Chinese 2025-03-14 01:56:10 +08:00
yangdx
496a208bf9 Update comment translations to English 2025-03-14 01:00:40 +08:00
yangdx
55d796c669 Fix linting 2025-03-14 00:03:45 +08:00
yangdx
b4d3da3b39 Optimize graph state management & performance for tab switching visibility
• Reset graph data without recreating instance
• Fix search result caching on graph updates
2025-03-13 21:56:31 +08:00
yangdx
e30162e50a Minimized API request between Tab view change 2025-03-13 19:50:37 +08:00
yangdx
642d17b774 Moved refreshLayout from settings to graph store. 2025-03-13 09:44:51 +08:00
yangdx
c1e931b9f2 Fix linting 2025-03-13 01:49:50 +08:00
yangdx
06bff7e836 Improve graph label search functionality and UI behavior
- Display a drop down list box when user input is empty
- Ensure graph is available before searching
2025-03-13 01:48:40 +08:00
yangdx
d06d3a20b1 Fix auto fit disabled afther zoom in or out manually
- Enhanced FocusOnNode component logic
- Added reset to default view when no node
- Updated mouse event handling for custom BBox
- Added sigmaRef for future use
- Triggered camera reset after graph updates
2025-03-13 00:34:20 +08:00
yangdx
727b137506 Limit the search scope to labels in the current subgraph
- Decouple datasource label selection from the search input field
- Improve label selection handling logic
2025-03-13 00:20:53 +08:00
yangdx
fa1e7b13a1 Fix linting 2025-03-12 22:43:01 +08:00
yangdx
8388647bf6 Optimize dependency arrays in graph components
- Add `t` to `GraphLabels` dependency array
- Add `isFetching` to `useLightragGraph` dependencies
2025-03-12 19:06:47 +08:00
yangdx
330f608fa9 Fix linting 2025-03-12 18:55:15 +08:00
yangdx
215dd76a46 Fix duplicate api requuests for graph fetching
- Optimize graph data fetching conditions
- Add isFetching state to prevent duplicate requests
- Improve label selection handling
2025-03-12 18:53:28 +08:00
yangdx
f43478505b Add translations for graph settings depth and degree labels 2025-03-12 14:36:58 +08:00
yangdx
32d54dc297 Merge branch 'main' into improve-property-tooltip 2025-03-12 13:25:02 +08:00
yangdx
24418a04fe Increased graph layout iteration limits and defaults.
- Raised max layout iterations to 30
- Set default iterations to 15
2025-03-12 09:30:28 +08:00
yangdx
ee0700d288 Ensure seamless toggling between selected labels and the complete graph 2025-03-12 08:52:28 +08:00
yangdx
b9e22ef64d Refactor graph label handling to extract labels directly from graph data
- Remove redundant label caching logic
- Add graphLabels state to graph store
2025-03-12 07:15:54 +08:00
yangdx
dad36e948f Added refresh layout button to graph settings 2025-03-12 06:22:39 +08:00
yangdx
c910ba1d28 Add SettingsDisplay component to show graph settings
- Create SettingsDisplay component
- Display graphQueryMaxDepth and graphMinDegree
- Position display at bottom-left corner
2025-03-12 06:10:48 +08:00
yangdx
0e234beaf5 Always fetch data for "*" label 2025-03-12 05:44:27 +08:00
yangdx
32e7fdc4fc fix(Tooltip): fix truncated content and add scrollbar in property tooltips 2025-03-12 04:59:18 +08:00
yangdx
a124c2d391 Renamed relationship type from 'Target' to 'Neighbour' 2025-03-12 03:49:11 +08:00
yangdx
f1d312a2ce Update UI and refine node property display for compatible with legacy data 2025-03-11 15:54:41 +08:00
yangdx
30310c2845 Fix relation info in kownledge graph UI 2025-03-11 15:36:38 +08:00
baoheping
ed1e44f925 Merge branch 'main' into multi-language 2025-03-08 19:04:32 +08:00
baoheping
59a2202e7c Added Minimum Degree 2025-03-08 11:01:10 +00:00
yangdx
b08bf51b69 Apply graph force layout on maxIterations change 2025-03-05 14:30:30 +08:00
yangdx
1fddc8552e Added minimum degree filter for graph queries
- Introduced min_degree parameter in graph query
- Updated UI to include minimum degree setting
- Modified API to handle min_degree parameter
- Updated graph query logic in LightRAG
2025-03-05 11:37:55 +08:00
ArnoChen
798c37d4fa build webui 2025-02-25 18:36:34 +08:00
ArnoChen
40a1a94a31 add graph depth and layout iteration settings 2025-02-25 18:32:53 +08:00
ArnoChen
7c68bf7ab7 move ThemeProvider and ThemeToggle components 2025-02-17 12:35:35 +08:00
ArnoChen
c5f380986d implement API key alert 2025-02-17 01:59:36 +08:00