yangdx
fca3ea5d20
Fix linting
2025-09-22 03:29:17 +08:00
yangdx
8af097a8e4
fix(webui): resolve theme switching crashes and optimize graph rendering
...
- Implement theme switching isolation to prevent component access during transitions by hidding GraphSearch
- Fix NotFoundGraphError during theme switching by adding defensive programming
- Replace problematic NodeById component with custom safe implementation
- Add comprehensive error handling and node/edge existence checks
- Optimize sigma settings with memoization to prevent unnecessary re-renders
- Remove redundant theme update logic and simplify event listener management
2025-09-22 03:03:53 +08:00
yangdx
139ec869e8
Extract light theme label color to constant for consistency
2025-09-16 17:31:56 +08:00
Roman Marchuk
20402f515f
fix: resolve dark mode text visibility issue in knowledge graph view
...
- Replace hardcoded black text colors (#000 ) with dynamic theme-based colors
- Add createSigmaSettings function to generate settings based on theme
- Use labelColorDarkTheme (#B2EBF2) for dark mode and black (#000 ) for light mode
- Update GraphViewer component to react to theme changes
- Fixes issue where node and edge labels were invisible in dark mode
Fixes: Dark mode text visibility in knowledge graph visualization
2025-09-15 23:24:26 -04:00
yangdx
2c4f621ded
fix(webui): Correct edge renderer for sigma.js v3
...
The `curvedNoArrow` edge type was incorrectly configured, causing a `TypeError` during graph rendering. This commit updates the `edgeProgramClasses` in `GraphViewer.tsx` to use the `createEdgeCurveProgram()` factory function as required by `@sigma/edge-curve` v3, resolving the crash.
2025-07-26 08:42:19 +08:00
yangdx
ad96bed7ac
Change to undirected graph
2025-04-07 01:17:44 +08:00
yangdx
f200b6e161
Move legend to lower right cornner
2025-04-05 15:25:57 +08:00
choizhang
81355481c1
feat: Add legend components and toggle buttons
2025-04-03 22:42:13 +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
d7dfc914a4
Remove unused initAttemptedRef from GraphViewer
2025-03-19 13:23:45 +08:00
yangdx
6aab0eaea2
Remove unused shouldRender state and related rendering control logic
2025-03-19 13:07:16 +08:00
yangdx
bc4c16b06a
Improve cleanup and state reset logic in GraphViewer and NavigationService.
...
- Add proper Sigma instance cleanup on unmount
- Ensure error handling for Sigma cleanup
2025-03-19 01:03:24 +08:00
yangdx
2753cbed97
Fix overflow issues in UI components
...
- Set overflow-hidden for main container
- Add overflow-auto to documents tab
- Add overflow-hidden to graph and retrieval tabs
- Set overflow-hidden for SigmaContainer
- Set overflow-hidden for retrieval testing container
2025-03-17 05:00:37 +08:00
yangdx
f4c6b00b4b
Remove redundant sigma instance setup code in GraphViewer component
...
• Remove unused useLayoutEffect hook
2025-03-16 11:15:52 +08:00
yangdx
64dfa65455
refactor: reorder icons order in control bool bar
2025-03-15 23:45:23 +08:00
yangdx
fdaf199b15
Fix linting and upate webui assets
2025-03-15 00:33:53 +08:00
yangdx
5decd03e2e
Avoid graphics flickering during node operations
2025-03-14 23:25:38 +08:00
yangdx
87366c63da
Fix show node label settings error
2025-03-14 03:42:46 +08:00
yangdx
2777715403
Fix edge event and show edge label error
2025-03-14 03:33:40 +08:00
yangdx
55d796c669
Fix linting
2025-03-14 00:03:45 +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
c1e931b9f2
Fix linting
2025-03-13 01:49:50 +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
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
ArnoChen
c5f380986d
implement API key alert
2025-02-17 01:59:36 +08:00
ArnoChen
1fe456666a
add document manager and site heaer
...
clean
format
2025-02-15 23:29:30 +08:00