Commit Graph

191 Commits

Author SHA1 Message Date
yangdx
6aab0eaea2 Remove unused shouldRender state and related rendering control logic 2025-03-19 13:07:16 +08:00
yangdx
50a8b5fb6d Refactor navigation and authentication flow, prevent mounting login page multiple times
- Improved protected route handling
- Enhanced direct login access detection
- Centralized navigation logic
- Optimized state reset process
- Fixed logout navigation behavior
2025-03-19 12:45:08 +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
77cb9da384 Add application state reset on login page mount
- Reset all application state on login page
- Clear authentication and session storage
- Reset graph, backend, and settings state
- Ensure clean environment for new session
- Centralized state reset in navigation service
2025-03-19 00:00:20 +08:00
yangdx
8145046115 Remove login modal state from auth store 2025-03-18 23:12:02 +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
c42f08c0e6 Add navigation service for centralized login redirect routing
- Simplify token validation logic in API
- Update axios interceptor to use navigation service
2025-03-18 19:45:43 +08:00
yangdx
d80ca4dc07 Added root redirect to /webui and updated webui config 2025-03-18 15:38:41 +08:00
yangdx
331b1194f0 Added camera rotation controls to graph panel. 2025-03-18 12:34:04 +08:00
yangdx
00e05a12b0 Adjust layout noverlap margin and grid size. 2025-03-18 11:26:39 +08:00
yangdx
77c23a23e4 Added error logging for duplicate edges in rawGraph. 2025-03-18 09:51:53 +08:00
yangdx
43996656d3 Fix linting 2025-03-18 03:30:43 +08:00
yangdx
f8440c8f80 feat(auth): implement auto guest mode and enhance token system
- Add role-based token system with metadata support
- Implement automatic guest mode for unconfigured authentication
- Create new /auth-status endpoint for authentication status checking
- Modify frontend to auto-detect auth status and bypass login when appropriate
- Add guest mode indicator in site header for better UX

This change allows users to automatically access the system without manual
login when authentication is not configured, while maintaining secure
authentication when credentials are properly set up.
2025-03-18 02:56:02 +08:00
Saifeddine ALOUI
9021bfb8a6 Added french locale 2025-03-17 18:57:48 +01:00
Saifeddine ALOUI
5470f9dfee added arabic locale 2025-03-17 18:56:50 +01:00
yangdx
2a18b04f7f Added authentication checks and token validation
- Added auth checks in health check logic
- Protected routes require authentication
- Validated token on app startup
- Added auth check in API interceptor
- Clear token on 401 unauthorized error
2025-03-18 01:46:12 +08:00
yangdx
1727130c47 Added /login to VITE_API_ENDPOINTS 2025-03-18 01:16:40 +08:00
yangdx
2856107f46 Merge branch 'loginPage' into webui-node-expansion 2025-03-18 00:39:48 +08:00
yangdx
07b13ee739 Prevent duplicate edges in Lightrag graph
- Check for reverse edge existence
2025-03-17 22:54:23 +08:00
yangdx
3efcf4684c Added data reload button to graph labels component 2025-03-17 21:12:29 +08:00
yangdx
4ecb13d24c Optimize layout configurations for better node arrangement.
- Increased margin in Noverlap layout
- Adjusted Force layout iterations
- Enhanced Noverlap settings for spacing
- Standardized maxIterations across layouts
2025-03-17 20:44:17 +08:00
yangdx
971034fbba Optimized graph layout animation parameters, Smoothed overlapping animations
- Reduced animation duration to 300ms
- Decreased update interval to 200ms
- Extended auto-stop timeout to 3 seconds
2025-03-17 20:00:14 +08:00
yangdx
e03e1206c7 Remove refresh layout button and related code 2025-03-17 19:48:18 +08:00
yangdx
90c64b9f8d Fix: Let tooltips show on top of layout tool bar
- Removed PopoverPrimitive.Portal wrapper
- Added z-60 to TooltipContent
2025-03-17 19:38:57 +08:00
yangdx
a40c9ef3d4 Updated layout animation and force atlas translations 2025-03-17 19:32:07 +08:00
yangdx
f231f2df7a Enhance graph layout control with improved animations and stability
- Added custom animation timer for smoother transitions
- Improved Force Directed layout parameters
- Added auto-stop feature for animations
2025-03-17 15:18:33 +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
e7456c8579 Added sample environment configuration files for webui development and local setups. 2025-03-16 14:13:26 +08:00
yangdx
1b8fd42a08 Revise the comment to enhance clarity and precision 2025-03-16 12:26:32 +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
6f60c34d1e Fix linting 2025-03-16 03:06:33 +08:00
yangdx
7d4390af96 Remove graphSearchTypes.ts, move OptionItem type to GraphSearch.tsx 2025-03-16 03:01:36 +08:00
yangdx
eb17a7782d fix: Replace global searchCache with Zustand state management 2025-03-16 02:40:48 +08:00
yangdx
6b2e4186ac refactor: remove legacy node expansion and pruning methods from graph store 2025-03-16 01:41:51 +08:00
yangdx
64dfa65455 refactor: reorder icons order in control bool bar 2025-03-15 23:45:23 +08:00
yangdx
ce6ad75b23 Simplify zoom control logic by using fixed ratio 2025-03-15 23:23:48 +08:00
yangdx
1b5c3d5676 style: Update colors and button styles in PropertiesView component 2025-03-15 22:53:38 +08:00
yangdx
55fc1914ff Change zoom reset animation duration from 500ms to 1000ms in ZoomControl 2025-03-15 22:29:58 +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
550b4d110c feat: add react-error-boundary package to web UI dependencies 2025-03-15 21:52:35 +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
4ea0b85a03 fix(graph): improve fit-to-screen calculation with proper padding and zero size check 2025-03-15 20:19:48 +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
4f4d7cbd4c Fix empty graph check problem of graph view load 2025-03-15 16:01:03 +08:00
yangdx
1d4b0242e8 Fix linting 2025-03-15 14:47:21 +08:00
yangdx
c5362d90e8 feat: Improve graph zoom reset to fit all nodes with proper scaling
- Add smarter node boundary calculation
- Include padding around graph nodes
- Calculate optimal scale ratio
- Add error handling and null checks
- Animate transition to new zoom level
2025-03-15 14:34:14 +08:00
yangdx
abda12f63b style: change double quotes to single quotes in ZoomControl.tsx 2025-03-15 11:45:10 +08:00