The logs page rendered every filtered row, so a full 2000-line view mounted ~10k DOM nodes and cost ~66ms of layout per commit. Switch to a virtualized list (@tanstack/react-virtual) that mounts only the visible window plus a small overscan — a few dozen nodes regardless of how many lines the view holds. Rows are dynamically measured (measureElement) so wrap mode's variable-height lines need no fixed row-height assumption; the size cache is keyed by row id so the maxLines front-drop doesn't mis-attribute heights across the index shift. The column header moved just outside the scroll viewport so the virtual list is the sole scroll content (no sticky-offset math). Auto-scroll now follows the tail via scrollToIndex with a next-frame re-pin (freshly-appended rows carry the size estimate until measured, which otherwise left wrap-mode tails short), and re-runs on filter/level/wrap/maxLines changes, not just new logs. ScrollArea gained an optional viewportRef so the virtualizer can drive off the real Radix scroll element. The per-row entrance fade is dropped (rows mount/unmount on scroll); divide-y became a per-row border.
52 lines
1.4 KiB
JSON
52 lines
1.4 KiB
JSON
{
|
|
"license": "SEE LICENSE IN LICENSE",
|
|
"name": "webui",
|
|
"private": true,
|
|
"version": "1.11.4",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc -b && vite build",
|
|
"typecheck": "tsc -b",
|
|
"lint": "eslint .",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@radix-ui/react-alert-dialog": "^1.1.7",
|
|
"@radix-ui/react-dialog": "^1.1.7",
|
|
"@radix-ui/react-label": "^2.1.3",
|
|
"@radix-ui/react-scroll-area": "^1.2.4",
|
|
"@radix-ui/react-separator": "^1.1.3",
|
|
"@radix-ui/react-slot": "^1.1.3",
|
|
"@radix-ui/react-tooltip": "^1.1.9",
|
|
"@tanstack/react-router": "^1.169.2",
|
|
"@tanstack/react-virtual": "^3.14.5",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"gridstack": "^12.6.0",
|
|
"lucide-react": "^0.469.0",
|
|
"motion": "^12.0.0",
|
|
"react": "^19.2.5",
|
|
"react-dom": "^19.2.5",
|
|
"tailwind-merge": "^3.5.0",
|
|
"tw-animate-css": "^1.2.5"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@tailwindcss/vite": "^4.2.2",
|
|
"@types/node": "^25.6.0",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"eslint": "^10.2.0",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
"globals": "^17.5.0",
|
|
"jiti": "^2.6.1",
|
|
"tailwindcss": "^4.2.2",
|
|
"typescript": "catalog:",
|
|
"typescript-eslint": "^8.58.2",
|
|
"vite": "catalog:"
|
|
}
|
|
}
|