mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-15 05:02:16 +01:00
The app held every flow in memory and redid all of its work for each new one: the sidebar mounted every domain and path node (its tree scrolled inside a container that never bounded it), every tree row looked up its atoms by scanning every atom the family had made, and the layout, detail pane and list rows re-rendered per flow. At 3,000 flows each new one cost about 90 ms of main thread, more than the traffic left time for. The app now holds a window of the newest 2,000 flows, applies new ones in batches, and loads older ones in pages from the database on scrolling to the top, through a new list_flows RPC that pages in SQL. The database keeps every flow. Also adds clear_flows: an RPC, POST /flows/clear on the control API, and a Clear button in the header that Cmd+K opens, confirming first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
JSON
{
|
|
"name": "@yaakapp/yaak-proxy",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vp dev --force",
|
|
"build": "vp build",
|
|
"lint": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@tanstack/react-query": "^5.104.2",
|
|
"@tanstack/react-virtual": "^3.14.17",
|
|
"@tauri-apps/api": "^2.12.3",
|
|
"@tauri-apps/plugin-os": "^2.4.0",
|
|
"@yaakapp-internal/proxy-lib": "^1.0.0",
|
|
"@yaakapp-internal/theme": "^1.0.0",
|
|
"@yaakapp-internal/ui": "^1.0.0",
|
|
"classnames": "^2.5.1",
|
|
"jotai": "^2.18.0",
|
|
"jotai-family": "^1.0.1",
|
|
"motion": "^14.0.0",
|
|
"react": "^19.2.0",
|
|
"react-dom": "^19.2.0",
|
|
"vkbeautify": "^0.99.3"
|
|
},
|
|
"devDependencies": {
|
|
"@rolldown/plugin-babel": "^0.2.3",
|
|
"@types/babel__core": "^7.20.5",
|
|
"@types/react": "^19.2.0",
|
|
"@types/react-dom": "^19.2.0",
|
|
"@vitejs/plugin-react": "^6.1.2",
|
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
"typescript": "^5.8.3",
|
|
"vite": "npm:@voidzero-dev/vite-plus-core@^0.3.3",
|
|
"vite-plus": "^0.3.3"
|
|
}
|
|
}
|