Commit Graph

108 Commits

Author SHA1 Message Date
yangdx
20b8a9d7e9 Remove redundant label fetch on mount 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
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
yangdx
f1d312a2ce Update UI and refine node property display for compatible with legacy data 2025-03-11 15:54:41 +08:00
yangdx
30310c2845 Fix relation info in kownledge graph UI 2025-03-11 15:36:38 +08:00
baoheping
ed1e44f925 Merge branch 'main' into multi-language 2025-03-08 19:04:32 +08:00
baoheping
59a2202e7c Added Minimum Degree 2025-03-08 11:01:10 +00:00
yangdx
7e088ca528 Refactor code and update environment type definitions.
- Consolidate type definitions in vite-env.d.ts
- Update TypeScript include paths
2025-03-07 08:17:25 +08:00
yangdx
81b78bda76 Refactor Vite configuration and add environment type definitions
- Removed local Vite config file
- Updated dev scripts to use default config
- Added env.d.ts for type definitions
- Enhanced Vite config with dynamic proxy
- Simplified build and dev script commands
2025-03-05 18:25:51 +08:00
yangdx
b08bf51b69 Apply graph force layout on maxIterations change 2025-03-05 14:30:30 +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
yangdx
d52b6bead1 Refactor graph search and add local Vite config.
- Simplify graph search parameters in API
- Add inclusive search and min degree options
- Update Vite config for local development
- Enhance graph query endpoint in web UI
- Add new Vite config file for local setup
2025-03-05 10:39:27 +08:00
ArnoChen
798c37d4fa build webui 2025-02-25 18:36:34 +08:00
ArnoChen
40a1a94a31 add graph depth and layout iteration settings 2025-02-25 18:32:53 +08:00
ArnoChen
dbf5481959 replace react-shiki with react-syntax-highlighter to reduce package size 2025-02-24 18:58:57 +08:00
ArnoChen
e2b4e661e3 feat: retrieval message code highlight, message copy button 2025-02-24 18:17:17 +08:00
Saifeddine ALOUI
3f3e9ef367 Upgraded webui to show more upload options and added building without using bun to the webui 2025-02-20 11:25:57 +01:00
Saifeddine ALOUI
427118c8a4 Update FileUploader.tsx 2025-02-20 11:03:56 +01:00
Saifeddine ALOUI
f8ad7ffac1 Added more types 2025-02-20 11:02:32 +01: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
6da53a302a add api tab in webui and handle invalid num_turns 2025-02-17 12:32:04 +08:00
ArnoChen
dfd7f702dc new build
fix api alert
2025-02-17 02:08:55 +08:00
ArnoChen
c5f380986d implement API key alert 2025-02-17 01:59:36 +08:00