Commit Graph

53 Commits

Author SHA1 Message Date
yangdx
0df0ba269d Implemented version display in SiteHeader of webui
- Updated API version to 1.2.0
- Stored versions in localStorage
2025-03-22 01:51:39 +08:00
yangdx
bb7074d793 Fix: disabel document fecting in backup
- Replace useTabVisibility with useSettingsStore
- Remove unused initialLoadRef
- Simplify document fetching logic
2025-03-19 21:37:12 +08:00
yangdx
32dcbec7b5 Update webui assets 2025-03-19 19:09:03 +08:00
yangdx
99814b57d9 Refactor navigation and authentication flow
- Move navigation setup to AppRouter
- Prevent protected route logic to handle login 401
2025-03-19 19:08:09 +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
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
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
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
yangdx
2856107f46 Merge branch 'loginPage' into webui-node-expansion 2025-03-18 00:39:48 +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
choizhang
5fef68b62f Language switching and merging
Add the webuiInitialize variable, dev: '', build:'/webui'
2025-03-15 00:52:21 +08:00
yangdx
fdaf199b15 Fix linting and upate webui assets 2025-03-15 00:33:53 +08:00
choizhang
b58729751a Merge branch 'improve-property-tooltip' into loginPage 2025-03-15 00:11:50 +08:00
yangdx
5decd03e2e Avoid graphics flickering during node operations 2025-03-14 23:25:38 +08:00
choizhang
10c23aabfd Change to hash routing, webuiInitialize controls project prefix 2025-03-14 17:00:36 +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
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
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
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
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
choizhang
7bf2d51bd0 Added language and theme switching function to login page and homepage 2025-03-12 00:42:12 +08:00
choizhang
e5214f1a70 Merge branch 'main' into loginPage 2025-03-11 23:57:03 +08:00
zrguo
2ffd7f9111 fix linting 2025-03-11 21:13:50 +08:00
choizhang
6b22e8065b Added loginPage 2025-03-11 14:48:19 +08:00
baoheping
59a2202e7c Added Minimum Degree 2025-03-08 11:01:10 +00:00
ArnoChen
e2b4e661e3 feat: retrieval message code highlight, message copy button 2025-02-24 18:17:17 +08:00
ArnoChen
eaf1e92e76 render chat message as markdown 2025-02-18 00:42:31 +08:00
ArnoChen
e083ebb95a improve streaming error handling 2025-02-18 00:30:51 +08:00
ArnoChen
7c68bf7ab7 move ThemeProvider and ThemeToggle components 2025-02-17 12:35:35 +08:00
ArnoChen
c5f380986d implement API key alert 2025-02-17 01:59:36 +08:00
ArnoChen
cf7c45b5dd format 2025-02-17 01:05:48 +08:00
ArnoChen
c2a7079392 finish document manager 2025-02-17 01:05:31 +08:00
ArnoChen
be4cdedfa1 add API tab to display backend documentation 2025-02-17 01:04:14 +08:00
ArnoChen
e5b89c5400 fix retrieval testing and query settings 2025-02-16 21:58:30 +08:00