choizhang
9518360021
fix(useLightragGraph): Change the label of the edge from type to keyword
2025-03-29 23:27:40 +08:00
yangdx
fe72b9d65d
Updated relationships label in locale files.
2025-03-22 15:07:46 +08:00
yangdx
2ed5cdce5e
Update the node size of the expanded node
2025-03-22 14:49:04 +08:00
yangdx
ebd73a54b9
Fix node size calculation bugs
2025-03-22 12:39:16 +08:00
yangdx
613c06c52b
Fix max dgree calculation error in node expansion
2025-03-22 12:09:33 +08:00
yangdx
86709a5e8e
Update webui assets
2025-03-22 11:40:52 +08:00
yangdx
133bc40735
Improve node size calculation logic for node expansion to prevent oversized
2025-03-22 11:39:46 +08:00
yangdx
2fd38381c0
Simplify log message for graph query
2025-03-22 11:29:04 +08:00
yangdx
101e1c907c
Fix linting
2025-03-21 21:51:52 +08:00
yangdx
a5aa3da3bc
Handle empty graph data and add empty graph hints
...
- Add empty data handling flag
- Display "Graph Is Empty" node
2025-03-21 21:49:36 +08:00
yangdx
35e00f1eb2
Fix: emtpy graph not display correctly after cleaning the database
...
- Improved graph validation with detailed checks
- Added empty graph state handling
- Enhanced label fetching and refresh logic
- Tracked last successful query label
- Optimized data fetching flow
2025-03-21 19:56:45 +08:00
yangdx
e9fc12042c
Fetch all labels and graph data again on refresh
2025-03-20 01:37:26 +08:00
yangdx
0210170ecd
Fix: graph label not set on grapview initial mount
2025-03-20 01:37:15 +08:00
yangdx
ffaa3493bd
Update web assets
2025-03-19 13:52:38 +08:00
yangdx
61734313b2
Remove useless tab visibility checks from graph components
2025-03-19 13:51:15 +08:00
yangdx
6aab0eaea2
Remove unused shouldRender state and related rendering control logic
2025-03-19 13:07:16 +08:00
yangdx
3279948dcd
Skip graph creation if no data or empty nodes
...
- Add log for skipped graph creation
2025-03-18 20:23:22 +08:00
yangdx
77c23a23e4
Added error logging for duplicate edges in rawGraph.
2025-03-18 09:51:53 +08:00
yangdx
07b13ee739
Prevent duplicate edges in Lightrag graph
...
- Check for reverse edge existence
2025-03-17 22:54:23 +08:00
yangdx
eb17a7782d
fix: Replace global searchCache with Zustand state management
2025-03-16 02:40:48 +08:00
yangdx
bfbcdcb06a
fix: improve graph zoom control and node expansion functionality
...
• Fix container padding in zoom calculation
• Extract node size update into helper fn
• Update node sizes for empty expansions
2025-03-15 20:40:22 +08:00
yangdx
b9dd53b1e3
Optimize node degree and size calculation for expanded graph nodes
2025-03-15 20:11:03 +08:00
yangdx
6555d5ac08
Optimize node spread animation with better spacing and randomized angle offset
...
• Adjust spread factor calculation
• Add debug logging
2025-03-15 18:06:47 +08:00
yangdx
a138000f0f
Remove reduntant search engine update functions
2025-03-15 17:46:13 +08:00
yangdx
97696ddb76
Fix Graph TAB flickering issue in node expansion
2025-03-15 17:03:08 +08:00
yangdx
1d4b0242e8
Fix linting
2025-03-15 14:47:21 +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
fc4582b260
Improve node layout by using polar coordinates for positioning expanded nodes
2025-03-15 00:32:40 +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
1ae65c9272
Refactor node expansion logic with improved degree and size calculation
2025-03-14 18:15:52 +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
063ad8a35a
Remove unused codes
2025-03-14 04:25:45 +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
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