Commit Graph

17 Commits

Author SHA1 Message Date
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
20b8a9d7e9 Remove redundant label fetch on mount 2025-03-13 13:00:14 +08:00
yangdx
c1e931b9f2 Fix linting 2025-03-13 01:49:50 +08:00
yangdx
dc74c889b0 Clear selection and highlights before graph fetch
- Reset node selection before fetching
- Remove existing node highlights
- Prevent react rendering broken problem
2025-03-13 01:25:17 +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
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
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
0e234beaf5 Always fetch data for "*" label 2025-03-12 05:44:27 +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
40a1a94a31 add graph depth and layout iteration settings 2025-02-25 18:32:53 +08:00
ArnoChen
70fc4cbfb0 handle missing edge types in graph data 2025-02-15 00:34:38 +08:00
ArnoChen
85e6989abc move lightrag_webui folder to top directory 2025-02-13 17:29:51 +08:00