fix: restore Todos and Roadmaps plugin nav entries via manifest dashboardViews

Both plugins declared dashboardViews only in their src/index.ts module.
PluginLoader.getCurrentManifestDashboardViews treats a successfully-read
manifest as authoritative and returns an empty list when the key is absent,
and getPluginDashboardViews only falls back to the module definition when the
manifest read fails. The module-level entries were therefore discarded and
neither view appeared on any nav surface -- header overflow, desktop sidebar,
or mobile More sheet all consume the same array from usePluginDashboardViews.

Mirror the manifest shape used by fusion-plugin-compound-engineering.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-08-07 07:49:23 -07:00
parent fc2040ca84
commit 039db99307
3 changed files with 29 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
---
"@runfusion/fusion": patch
---
summary: The Todo Lists and Roadmaps plugins now appear in dashboard navigation after being enabled.
category: fix
dev: Both plugin `manifest.json` files were missing the `dashboardViews` block that `PluginLoader.getPluginDashboardViews` treats as authoritative, so the module-level `dashboardViews` in each `src/index.ts` was discarded and the views were absent from every nav surface.

View File

@@ -2,5 +2,15 @@
"id": "fusion-plugin-roadmap",
"name": "Roadmaps",
"version": "0.1.0",
"description": "Standalone roadmap planning plugin"
"description": "Standalone roadmap planning plugin",
"dashboardViews": [
{
"viewId": "roadmaps",
"label": "Roadmaps",
"componentPath": "./dashboard-view",
"icon": "Map",
"placement": "primary",
"order": 30
}
]
}

View File

@@ -2,5 +2,15 @@
"id": "fusion-plugin-todos",
"name": "Todo Lists",
"version": "0.1.0",
"description": "Project-scoped todo lists that hand items into Fusion planning."
"description": "Project-scoped todo lists that hand items into Fusion planning.",
"dashboardViews": [
{
"viewId": "todos",
"label": "Todos",
"componentPath": "./dashboard-view",
"icon": "CheckSquare",
"placement": "overflow",
"order": 70
}
]
}