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:
committed by
gsxdsm
parent
41a8aca91c
commit
2f2f7de85a
5
.changeset/fn-4782-view-preload.md
Normal file
5
.changeset/fn-4782-view-preload.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@runfusion/fusion": patch
|
||||
---
|
||||
|
||||
Dashboard now preloads the last-used view's JS chunk during HTML parse for faster reloads.
|
||||
@@ -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.
|
||||
|
||||
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
|
||||
|
||||
The dashboard's CSS has been split into modular per-component files alongside a consolidated global stylesheet:
|
||||
|
||||
Reference in New Issue
Block a user