@yemi33/minions 0.1.47 → 0.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/dashboard/js/render-plans.js +9 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -164,11 +164,18 @@ function renderPlans(plans) {
|
|
|
164
164
|
|
|
165
165
|
function renderPlanCard(p) {
|
|
166
166
|
const prdFile = planToPrdFile[p.file] || (p.file.endsWith('.json') ? p.file : '');
|
|
167
|
-
const rawStatus = p.status || 'active';
|
|
168
167
|
const isArchived = p.archived;
|
|
169
168
|
|
|
169
|
+
// For .md plans with a linked PRD, use the PRD's status as the authoritative intent
|
|
170
|
+
// (p.status for .md is 'draft'/'converted'/'active', not the PRD lifecycle status)
|
|
171
|
+
let prdJsonStatus = p.status || 'active';
|
|
172
|
+
if (prdFile && p.format !== 'prd') {
|
|
173
|
+
const linkedPrd = plans.find(pp => pp.file === prdFile && pp.format === 'prd');
|
|
174
|
+
if (linkedPrd) prdJsonStatus = linkedPrd.status || prdJsonStatus;
|
|
175
|
+
}
|
|
176
|
+
|
|
170
177
|
// Single source of truth: derive status from work items
|
|
171
|
-
const effectiveStatus = isArchived ? 'completed' : derivePlanStatus(prdFile, p.file,
|
|
178
|
+
const effectiveStatus = isArchived ? 'completed' : derivePlanStatus(prdFile, p.file, prdJsonStatus, allWi);
|
|
172
179
|
|
|
173
180
|
const statusLabelsMap = {
|
|
174
181
|
'completed': 'Completed', 'in-progress': 'In Progress', 'paused': 'Paused',
|
package/package.json
CHANGED