84 Commits

Author SHA1 Message Date
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
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
1a92d46bff Add min width to parameters sidebar of retrieval web page 2025-03-13 22:56:59 +08:00
yangdx
1864da4f45 fix: improve tab switching behavior to preserve WebGL context in graph viewer
• Force mount inactive tabs
• Maintain WebGL context across tab switches
• Add visibility styles to TabsContent
• Update conditional rendering logic
2025-03-13 22:03:54 +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
3b6fabca0e Added tab visibility context and provider for dynamic tab management
- Introduced TabVisibilityProvider component
- Created TabContent for conditional rendering
- Added context and hooks for tab visibility
- Updated DocumentManager dependencies
- Integrated provider in App component
2025-03-13 15:15:42 +08:00
yangdx
d28a94d55d Refactor AsyncSearch component for better key management 2025-03-13 15:04:42 +08:00
yangdx
20b8a9d7e9 Remove redundant label fetch on mount 2025-03-13 13:00:14 +08:00
yangdx
002d675dc6 Explicitly set API docs and schema URLs.
- Set OpenAPI schema URL to `/openapi.json`
- Set docs URL to `/docs`
- Set redoc URL to `/redoc`
- Update Vite config for API docs routing
- Ensure proper path handling for docs endpoints
2025-03-13 13:00:14 +08:00
yangdx
642d17b774 Moved refreshLayout from settings to graph store. 2025-03-13 09:44:51 +08:00
yangdx
2bc41bebf8 Fix state persistence handling problem
- Removed `getInitialState` helper function.
- Set default theme to 'system'.
- Changed default language to 'en'.
2025-03-13 09:39:21 +08:00
yangdx
3e4edf92c2 Increased search and label list limits. 2025-03-13 02:00:22 +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
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
fa1e7b13a1 Fix linting 2025-03-12 22:43:01 +08:00
yangdx
8129cbd964 Bumped settings storage version to 8
- Updated settings version and added new graph features
- Added enableNodeDrag setting
- Added enableHideUnselectedEdges
- Disabled edge events by default
- Set graphMinDegree to 0
2025-03-12 19:55:02 +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
5c1cf6a8ff Prevent caching problem of HTML files for web UI
- Add NoCacheStaticFiles class
- Set Cache-Control headers for HTML files
2025-03-12 18:54:35 +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
fb0f8e11fd Resolve the language setting persistence issue
- Move i18n initialization to async function
- Sync i18n with settings store language
- Add Root component for i18n loading state
- Convert i18n.js to TypeScript
2025-03-12 14:36:34 +08:00
yangdx
e118cf6d92 Changed default language from Chinese to English 2025-03-12 13:52:41 +08:00
yangdx
620d31e878 Update translations and add language settings 2025-03-12 13:49:22 +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
zrguo
2ffd7f9111 fix linting 2025-03-11 21:13:50 +08:00