feat(FN-4782): complete Step 7 — document preload templating

Fusion-Task-Id: FN-4782
Fusion-Task-Lineage: 5d6b5632-a135-4d25-9382-57fa23e22484
This commit is contained in:
Fusion (runfusion.ai)
2026-05-17 01:56:01 -07:00
committed by gsxdsm
parent 41a8aca91c
commit 2f2f7de85a
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@runfusion/fusion": patch
---
Dashboard now preloads the last-used view's JS chunk during HTML parse for faster reloads.

View File

@@ -680,6 +680,8 @@ See [docs/task-management.md](./docs/task-management.md) for the archive and res
This guide documents the dashboard's design system so that any AI agent or developer building new UI components follows established conventions automatically. This guide documents the dashboard's design system so that any AI agent or developer building new UI components follows established conventions automatically.
The dashboard `index.html` shell is templated server-side at request time: the server injects a per-user `<link rel="modulepreload">` bootstrap script for the last-used `taskView` chunk. The chunk map is derived from Vite's `dist/client/.vite/manifest.json`, and the inline preload logic reads `kb-dashboard-current-project` plus `kb:<projectId>:kb-dashboard-task-view` from localStorage.
### CSS Architecture ### CSS Architecture
The dashboard's CSS has been split into modular per-component files alongside a consolidated global stylesheet: The dashboard's CSS has been split into modular per-component files alongside a consolidated global stylesheet: