@yemi33/minions 0.1.52 → 0.1.53
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 +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -191,10 +191,12 @@ function renderPlans(plans) {
|
|
|
191
191
|
|
|
192
192
|
let actions = '';
|
|
193
193
|
if (needsAction) {
|
|
194
|
+
// Approve/Reject target the PRD .json file (not the .md plan) since the API parses it as JSON
|
|
195
|
+
const actionTarget = prdFile || p.file;
|
|
194
196
|
actions = '<div class="plan-card-actions" onclick="event.stopPropagation()">' +
|
|
195
|
-
'<button class="plan-btn approve" onclick="planApprove(\'' + escHtml(
|
|
197
|
+
'<button class="plan-btn approve" onclick="planApprove(\'' + escHtml(actionTarget) + '\')">Approve</button>' +
|
|
196
198
|
'<button class="plan-btn" style="color:var(--blue);border-color:var(--blue)" onclick="planDiscuss(\'' + escHtml(p.file) + '\')">Discuss & Revise</button>' +
|
|
197
|
-
'<button class="plan-btn reject" onclick="planReject(\'' + escHtml(
|
|
199
|
+
'<button class="plan-btn reject" onclick="planReject(\'' + escHtml(actionTarget) + '\')">Reject</button>' +
|
|
198
200
|
'</div>' +
|
|
199
201
|
'<div id="revise-input-' + escHtml(p.file).replace(/\./g, '-') + '" style="display:none">' +
|
|
200
202
|
'<textarea class="plan-feedback-input" placeholder="What should be changed? Be specific..." id="revise-feedback-' + escHtml(p.file).replace(/\./g, '-') + '"></textarea>' +
|
package/package.json
CHANGED