Commit Graph

26 Commits

Author SHA1 Message Date
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
101e1c907c Fix linting 2025-03-21 21:51:52 +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
5e22e034e9 Fix linting 2025-03-20 01:38:08 +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
202f7befaf Remove redundant debug log for graph labels fetching 2025-03-19 14:08:28 +08:00
yangdx
3efcf4684c Added data reload button to graph labels component 2025-03-17 21:12:29 +08:00
yangdx
7d4390af96 Remove graphSearchTypes.ts, move OptionItem type to GraphSearch.tsx 2025-03-16 03:01:36 +08:00
yangdx
59ac94c61d Improve graph state cleanup by fully resetting sigma instance on label change
• Modify reset logic to clear sigma instance
• Remove manual node deletion
• Update GraphLabels to use reset()
• Simplify state cleanup process
• Ensure complete graph refresh
2025-03-15 22:21:56 +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
c1e931b9f2 Fix linting 2025-03-13 01:49:50 +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
32d54dc297 Merge branch 'main' into improve-property-tooltip 2025-03-12 13:25:02 +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
baoheping
59a2202e7c Added Minimum Degree 2025-03-08 11:01:10 +00:00
ArnoChen
40a1a94a31 add graph depth and layout iteration settings 2025-02-25 18:32:53 +08:00
ArnoChen
c5f380986d implement API key alert 2025-02-17 01:59:36 +08:00