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:
7
.changeset/todos-plugin-nav-entry.md
Normal file
7
.changeset/todos-plugin-nav-entry.md
Normal 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.
|
||||||
@@ -2,5 +2,15 @@
|
|||||||
"id": "fusion-plugin-roadmap",
|
"id": "fusion-plugin-roadmap",
|
||||||
"name": "Roadmaps",
|
"name": "Roadmaps",
|
||||||
"version": "0.1.0",
|
"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
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,15 @@
|
|||||||
"id": "fusion-plugin-todos",
|
"id": "fusion-plugin-todos",
|
||||||
"name": "Todo Lists",
|
"name": "Todo Lists",
|
||||||
"version": "0.1.0",
|
"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
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user