Commit Graph

47 Commits

Author SHA1 Message Date
yangdx
a461ccebe3 Fix version display problem when server does not require auth 2025-03-22 03:41:06 +08:00
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
42a5bd3a8b Merge branch 'main' into i18n-france-arabic 2025-03-22 00:32:13 +08:00
yangdx
dcbb6bf8cf Add French and Arabic language support 2025-03-22 00:31:18 +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
6aab0eaea2 Remove unused shouldRender state and related rendering control logic 2025-03-19 13:07:16 +08:00
yangdx
8145046115 Remove login modal state from auth store 2025-03-18 23:12:02 +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
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
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
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
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
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
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
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
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
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
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
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
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
620d31e878 Update translations and add language settings 2025-03-12 13:49:22 +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
choizhang
7bf2d51bd0 Added language and theme switching function to login page and homepage 2025-03-12 00:42:12 +08:00
choizhang
6b22e8065b Added loginPage 2025-03-11 14:48:19 +08:00
yangdx
1fddc8552e Added minimum degree filter for graph queries
- Introduced min_degree parameter in graph query
- Updated UI to include minimum degree setting
- Modified API to handle min_degree parameter
- Updated graph query logic in LightRAG
2025-03-05 11:37:55 +08:00
ArnoChen
40a1a94a31 add graph depth and layout iteration settings 2025-02-25 18:32:53 +08:00
ArnoChen
6da53a302a add api tab in webui and handle invalid num_turns 2025-02-17 12:32:04 +08:00
ArnoChen
fc3ca2777f add query settings 2025-02-16 21:43:14 +08:00
ArnoChen
d1358c30f3 enhance web UI with retrieval testing and UI improvements 2025-02-16 04:34:22 +08:00
ArnoChen
1fe456666a add document manager and site heaer
clean

format
2025-02-15 23:29:30 +08:00
ArnoChen
85e6989abc move lightrag_webui folder to top directory 2025-02-13 17:29:51 +08:00