create-pmos 0.741.0 → 0.743.0
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/package.json +260 -66
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/briefing-premium-insights-test.js +1 -1
- package/workspace/changelog.json +259 -27
- package/workspace/guide/cli.md +28 -0
- package/workspace/guide/layout.md +2 -2
- package/workspace/lib/decision-journal.js +107 -6
- package/workspace/lib/decisions-cli.js +24 -8
- package/workspace/lib/driver-decide.js +18 -1
- package/workspace/lib/parked-reasons.js +4 -1
- package/workspace/lib/pmos-verbs.js +6 -0
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-proposals.js +23 -4
- package/workspace/lib/routes-try.js +39 -0
- package/workspace/lib/signal-cli.js +41 -0
- package/workspace/lib/try-it.js +194 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/cozy-ev.css +8 -0
- package/workspace/public/pm/cozy-settings.js +12 -2
- package/workspace/public/pm/home-app.js +6 -1
- package/workspace/public/pm/library-keys.js +41 -0
- package/workspace/public/pm/live-edit.js +1 -1
- package/workspace/public/pm/premium-library.js +5 -12
- package/workspace/public/pm/try-view.js +99 -0
- package/workspace/server.js +2 -0
- package/workspace/test-lists/decisions-from-approvals.json +5 -0
- package/workspace/test-lists/try-what-shipped.json +9 -0
|
@@ -447,6 +447,8 @@ function rankIn() {
|
|
|
447
447
|
for (const l of S.lab || []) extra.push({ key: 'lab:' + l.ws, go: 'lab', ws: l.ws, board: l.board, title: l.n + (l.n === 1 ? ' Lab finding' : ' Lab findings') + ' to keep or drop', sub: l.say || 'Keep one to start an initiative, or let it go.' });
|
|
448
448
|
// weekly-what-moved (A441): last week's date and scope moves of every product, one row until the PM opens the list (pm/moves-view.js)
|
|
449
449
|
if (S.movesRow) extra.push(S.movesRow);
|
|
450
|
+
// try-what-shipped: one row while the updates brought changes to try (beta only; GET /api/try says the row, pm/try-view.js opens the list)
|
|
451
|
+
if (S.tryRow) extra.push(S.tryRow);
|
|
450
452
|
return { products, programs: S.D.programs || [], move: S.move || {}, mentions: MEN.mentionsOf(S.D).waiting, outbox: S.outbox || [], gaps: (S.wait && S.wait.gaps) || [], extra };
|
|
451
453
|
}
|
|
452
454
|
/** Each product's GET /api/your-move, read when Your day opens (never on Home's first draw: page speed). */
|
|
@@ -473,10 +475,12 @@ async function readMove() {
|
|
|
473
475
|
S.moves = mv.filter((r) => r && r.ok);
|
|
474
476
|
const prevMoves = JSON.stringify(S.movesRow || null);
|
|
475
477
|
try { const MV = await import('./moves-view.js'); S.movesRow = MV.rowOf(S.moves, { looked: MV.lookedWeek() }); } catch { S.movesRow = null; }
|
|
478
|
+
const prevTry = JSON.stringify(S.tryRow || null);
|
|
479
|
+
try { const TV = await import('./try-view.js'); S.tryRow = TV.rowOf(await pmGet('/api/try').catch(() => null)); } catch { S.tryRow = null; }
|
|
476
480
|
const ob = await pmGet('/api/outbox').catch(() => null);
|
|
477
481
|
const outbox = ob && ob.ok && Array.isArray(ob.entries) ? ob.entries.filter((e) => e && (e.state === 'queued' || e.state === 'blocked')) : [];
|
|
478
482
|
const lab = labs.filter(Boolean);
|
|
479
|
-
const same = JSON.stringify(next) === JSON.stringify(S.move || null) && JSON.stringify(outbox) === JSON.stringify(S.outbox || []) && JSON.stringify(lab) === JSON.stringify(S.lab || []) && prevMoves === JSON.stringify(S.movesRow || null);
|
|
483
|
+
const same = JSON.stringify(next) === JSON.stringify(S.move || null) && JSON.stringify(outbox) === JSON.stringify(S.outbox || []) && JSON.stringify(lab) === JSON.stringify(S.lab || []) && prevMoves === JSON.stringify(S.movesRow || null) && prevTry === JSON.stringify(S.tryRow || null);
|
|
480
484
|
S.move = next; S.outbox = outbox; S.lab = lab;
|
|
481
485
|
if (!same) { redrawLater(); drawList(); }
|
|
482
486
|
// a demotion notice is said once: drawn now, then marked seen so the next read leaves it out
|
|
@@ -514,6 +518,7 @@ async function movePress(b) {
|
|
|
514
518
|
if (r.go === 'impact') { S.day = false; S.sel = 'impact'; if (isPhone()) S.phoneChat = true; openTarget(homeTarget()); drawList(); return; }
|
|
515
519
|
if (r.go === 'loose') { VW.drill(); LPV.open(lpHost); return; }
|
|
516
520
|
if (r.go === 'moves') { VW.drill(); import('./moves-view.js').then((MV) => { MV.openMoves(S.moves || [], { toast }); S.movesRow = null; drawList(); }); return; }
|
|
521
|
+
if (r.go === 'try') { VW.drill(); import('./try-view.js').then((TV) => TV.openTry({ toast, toastUndo, onChange: (l) => { S.tryRow = TV.rowOf({ ...l, ok: true, row: l.total ? { ...S.tryRow, title: l.total + (l.total === 1 ? ' new thing to try' : ' new things to try') } : null }); drawList(); } })); return; }
|
|
517
522
|
if (r.go === 'lab') { VW.drill(); import('./cozy-lab-ins.js').then((LB) => LB.openLab({ where: () => ({ ws: r.ws, board: r.board }), iniHref: (id) => '/premium-initiative.html?' + (r.ws ? 'ws=' + encodeURIComponent(r.ws) + '&' : '') + 'id=' + encodeURIComponent(id), toast: (m, undo) => (undo ? toastUndo(m, undo) : toast(m)) })); return; }
|
|
518
523
|
return;
|
|
519
524
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* pm/library-keys.js — what a key and a press do on the Library page (initiative library-place, D1 and D6; A437).
|
|
2
|
+
* The page (premium-library.js) binds these to the real window and list; library-place.test.js presses the same keys on a stand-in
|
|
3
|
+
* EventTarget in node, so the tests run the handlers themselves and not a search over the source.
|
|
4
|
+
*
|
|
5
|
+
* bindSlash(target, { focus, popupOpen }) "/" anywhere but a text field, with no modifier and no popup open, puts the cursor in the search (D1)
|
|
6
|
+
* pressStep(x, { wide, pick }) a press on a row: on a desk (≥ 1200 px) the first press shows its Detail block → 'show',
|
|
7
|
+
* the second press opens it as the full popup → 'open'; a link, or a narrow screen, opens at once (D6)
|
|
8
|
+
* bindEnterOpen(target, { open }) Enter on a row's name opens the item, on any screen (D6)
|
|
9
|
+
*/
|
|
10
|
+
const TEXT = /^(INPUT|TEXTAREA|SELECT)$/;
|
|
11
|
+
|
|
12
|
+
export function slashFocuses(e, { popupOpen = false } = {}) {
|
|
13
|
+
if (!e || e.key !== '/' || e.metaKey || e.ctrlKey || e.altKey) return false;
|
|
14
|
+
const t = e.target;
|
|
15
|
+
if (t && (t.isContentEditable || TEXT.test(t.tagName || ''))) return false;
|
|
16
|
+
return !popupOpen;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function bindSlash(target, { focus, popupOpen = () => false }) {
|
|
20
|
+
const on = (e) => { if (!slashFocuses(e, { popupOpen: popupOpen() })) return; e.preventDefault(); focus(); };
|
|
21
|
+
target.addEventListener('keydown', on);
|
|
22
|
+
return on;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function pressStep(x, { wide = false, pick = null } = {}) {
|
|
26
|
+
if (!x) return null;
|
|
27
|
+
return wide && pick !== x.id && !(x.open && x.open.url) ? 'show' : 'open';
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// the row element of an event target that is a row's name (data-lb-open), or null
|
|
31
|
+
export function nameRow(e) {
|
|
32
|
+
const t = e && e.target;
|
|
33
|
+
if (!e || e.key !== 'Enter' || !t || typeof t.matches !== 'function' || !t.matches('[data-lb-open]')) return null;
|
|
34
|
+
return (typeof t.closest === 'function' && t.closest('[data-lb-i]')) || null;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function bindEnterOpen(target, { open }) {
|
|
38
|
+
const on = (e) => { const row = nameRow(e); if (!row) return false; e.preventDefault(); open(row); return true; };
|
|
39
|
+
target.addEventListener('keydown', on);
|
|
40
|
+
return on;
|
|
41
|
+
}
|
|
@@ -259,7 +259,7 @@ export function install(g = globalThis) {
|
|
|
259
259
|
const url = typeof input === 'string' ? input : input && input.url;
|
|
260
260
|
const method = String((init && init.method) || (input && typeof input === 'object' && input.method) || 'GET').toUpperCase();
|
|
261
261
|
if (method === 'POST' && url && init && typeof init.body === 'string') {
|
|
262
|
-
const p = new URL(url, 'http://
|
|
262
|
+
const p = new URL(url, 'http://127.0.0.1/').pathname;
|
|
263
263
|
if (TASK_WRITE.test(p) || JIRA_MOVE.test(p)) le = begin(p, JSON.parse(init.body));
|
|
264
264
|
}
|
|
265
265
|
} catch { le = null; }
|
|
@@ -27,6 +27,7 @@ import * as SC from './scope-chip.js';
|
|
|
27
27
|
const { scopeChipHtml, openScope, matches: scopeMatches, narrowed, scopeWords, whenNames } = SC;
|
|
28
28
|
import { FAMILIES, GROUPS, STATES, view, counts, passes, matches, aboutText, stateText, dayText, when, noteOf, hiddenText } from './library-model.js';
|
|
29
29
|
import { openItem } from './library-open.js';
|
|
30
|
+
import { bindSlash, bindEnterOpen, pressStep } from './library-keys.js'; // D1 and D6: the keys and presses, tested by pressing them (A437)
|
|
30
31
|
import { STEP, nextShown, moreHtml, totalOf, logMore } from './list-cap.js'; // lists stay short (A455): one step for every long list
|
|
31
32
|
|
|
32
33
|
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
@@ -405,7 +406,7 @@ $('lbMore').onclick = () => openMenu('lbMore', moreMenu, morePress, 'pm-menu lb-
|
|
|
405
406
|
addEventListener('pp:changed', (e) => { if (e.detail && e.detail.products) { S.P = e.detail; draw(); } });
|
|
406
407
|
function press(x) {
|
|
407
408
|
if (!x) return;
|
|
408
|
-
if (wide()
|
|
409
|
+
if (pressStep(x, { wide: wide(), pick: S.pick }) === 'show') { S.pick = x.id; draw(); return; }
|
|
409
410
|
openItem(x, { from: 'Library' });
|
|
410
411
|
}
|
|
411
412
|
async function saveName(id, name) {
|
|
@@ -448,12 +449,9 @@ body.onkeydown = (e) => {
|
|
|
448
449
|
if (e.key === 'Escape') { e.preventDefault(); e.stopPropagation(); S.naming = null; draw(); }
|
|
449
450
|
return;
|
|
450
451
|
}
|
|
451
|
-
// Enter on a name opens the item, on any screen
|
|
452
|
-
if (e.key === 'Enter' && e.target.matches('[data-lb-open]')) {
|
|
453
|
-
e.preventDefault();
|
|
454
|
-
const row = e.target.closest('[data-lb-i]'); const x = row && S.shown[Number(row.dataset.lbI)]; if (x) openItem(x, { from: 'Library' });
|
|
455
|
-
}
|
|
456
452
|
};
|
|
453
|
+
// Enter on a name opens the item, on any screen
|
|
454
|
+
bindEnterOpen(body, { open: (row) => { const x = S.shown[Number(row.dataset.lbI)]; if (x) openItem(x, { from: 'Library' }); } });
|
|
457
455
|
pv.onclick = (e) => {
|
|
458
456
|
const x = S.pick && (S.items || []).find((i) => i.id === S.pick);
|
|
459
457
|
let b;
|
|
@@ -463,12 +461,7 @@ pv.onclick = (e) => {
|
|
|
463
461
|
};
|
|
464
462
|
qBox.addEventListener('input', () => { S.q = qBox.value.trim(); draw(); findByMeaning(); });
|
|
465
463
|
qBox.addEventListener('keydown', (e) => { if (e.key === 'Escape' && qBox.value) { e.stopPropagation(); qBox.value = ''; S.q = ''; S.meaning = null; draw(); } });
|
|
466
|
-
|
|
467
|
-
if (e.key !== '/' || e.metaKey || e.ctrlKey || e.altKey) return;
|
|
468
|
-
const t = e.target; if (t && (t.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName))) return;
|
|
469
|
-
if (document.body.classList.contains('cz-pop-on')) return;
|
|
470
|
-
e.preventDefault(); qBox.focus();
|
|
471
|
-
});
|
|
464
|
+
bindSlash(window, { focus: () => qBox.focus(), popupOpen: () => document.body.classList.contains('cz-pop-on') });
|
|
472
465
|
addEventListener('resize', () => { if (S.pick) drawPreview(); });
|
|
473
466
|
// the +: Ask PMOS, with the words ready to finish; PMOS adds the file, the link or the new document, fills its record and shows it to confirm
|
|
474
467
|
$('lbAdd').onclick = async () => {
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* pm/try-view.js — try what shipped (initiative try-what-shipped; lib/try-it.js is the store and the list, lib/routes-try.js the HTTP).
|
|
2
|
+
* Pure apart from mountTry and openTry: Node imports it (try-it.test.js Y5).
|
|
3
|
+
*
|
|
4
|
+
* rowOf(list) → Home's Your move row ({ key, go, title, sub }) or null; the server's GET /api/try already says row
|
|
5
|
+
* listHtml(list, { esc }) → one card per change: its title, 1 to 3 steps, what you should see, Show me, Works, Didn't work, a note
|
|
6
|
+
* mountTry(host, H) reads GET /api/try and draws the list in host, with its presses. H: { toast, onChange, phone }
|
|
7
|
+
* openTry(H) the list in the Viewer (Home's row opens it)
|
|
8
|
+
* Beta only: a computer on the GA line gets an empty list, and the list draws nothing (zero is silence).
|
|
9
|
+
* Every answer is the PM's press (pmPost carries the launch nonce) and has Undo. Nothing is sent: the answers stay on this computer. */
|
|
10
|
+
import { pmGet, pmPost } from './http.js';
|
|
11
|
+
|
|
12
|
+
const escDefault = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
13
|
+
const ICON = 'M9 11l3 3L22 4M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11';
|
|
14
|
+
const svg = (d) => `<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="${d}"/></svg>`;
|
|
15
|
+
const YES = svg('M20 6 9 17l-5-5'), NO = svg('M18 6 6 18M6 6l12 12');
|
|
16
|
+
const OPEN_RE = /^\/(?!\/)[A-Za-z0-9._~!$&'()*+,;=:@%/?#-]{0,300}$/;
|
|
17
|
+
|
|
18
|
+
export function rowOf(list) {
|
|
19
|
+
if (!list || !list.ok || !list.beta) return null;
|
|
20
|
+
return list.row || null;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function cardHtml(c, esc, i) {
|
|
24
|
+
const steps = c.steps.map((s) => `<li>${esc(s)}</li>`).join('');
|
|
25
|
+
const open = c.open && OPEN_RE.test(c.open) ? `<a class="ev-btn sm" href="${esc(c.open)}" data-try-open="${esc(c.key)}">Show me</a>` : '';
|
|
26
|
+
return `<section class="pm-block try-card" data-try-key="${esc(c.key)}" aria-label="${esc(c.title)}">`
|
|
27
|
+
+ `<div class="head"><h3 class="pm-h-sm">${esc(c.title)}</h3><span class="pm-meta">${esc(c.v)}</span></div>`
|
|
28
|
+
+ `<ol class="try-steps">${steps}</ol>`
|
|
29
|
+
+ (c.see ? `<p class="pm-meta">You should see: ${esc(c.see)}</p>` : '')
|
|
30
|
+
+ `<div class="try-acts">${open}`
|
|
31
|
+
+ `<button type="button" class="ev-btn sm" data-try-act="works" data-try-i="${i}" aria-label="It works" title="It works">${YES} Works</button>`
|
|
32
|
+
+ `<button type="button" class="ev-btn sm" data-try-act="broken" data-try-i="${i}" aria-label="It did not work" title="It did not work">${NO} Didn't work</button>`
|
|
33
|
+
+ `<button type="button" class="ev-btn sm" data-try-act="note" data-try-i="${i}" aria-label="Add a note" title="Add a note">Note</button>`
|
|
34
|
+
+ `</div></section>`;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** The list, or '' when there is nothing to try (zero is silence). */
|
|
38
|
+
export function listHtml(list, { esc = escDefault, head = false } = {}) {
|
|
39
|
+
if (!list || !list.beta || !list.items || !list.items.length) return '';
|
|
40
|
+
const more = list.total > list.shown ? `<p class="pm-meta">${list.total - list.shown} more after these.</p>` : '';
|
|
41
|
+
return `<div class="try-list">${head ? `<div class="head"><h3 class="pm-h">To try</h3><span class="pm-meta">${list.total}</span></div>` : ''}<p class="pm-meta">Your recent updates brought these. Each takes under a minute. Didn't work goes to the front of the fix queue.</p>`
|
|
42
|
+
+ list.items.map((c, i) => cardHtml(c, esc, i)).join('') + more + '</div>';
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const SAID = { works: 'Thanks. Marked as working.', broken: 'Marked as not working. It goes to the front of the fix queue.', note: 'Note kept.' };
|
|
46
|
+
|
|
47
|
+
/** Draw the list in host and handle its presses. Returns { list } once read. */
|
|
48
|
+
export async function mountTry(host, H = {}) {
|
|
49
|
+
const toast = H.toast || (() => {});
|
|
50
|
+
const r = await pmGet('/api/try').catch(() => null);
|
|
51
|
+
let list = r && r.ok ? r : { ok: false, beta: false, items: [] };
|
|
52
|
+
const draw = () => { host.innerHTML = listHtml(list, { head: !!H.head }) || (H.empty || ''); };
|
|
53
|
+
draw();
|
|
54
|
+
const send = async (c, verdict, note) => {
|
|
55
|
+
const a = await pmPost('/api/try/answer', { key: c.key, verdict, ...(note ? { note } : {}) }).catch((e) => ({ ok: false, error: String(e && e.message || e) }));
|
|
56
|
+
if (!a || !a.ok) { toast('Not saved: ' + ((a && a.error) || 'the workspace did not answer') + '.'); return false; }
|
|
57
|
+
return true;
|
|
58
|
+
};
|
|
59
|
+
// the presses are real <button>s in host; one listener on the document reads them (a remounted host drops its old one)
|
|
60
|
+
if (host._tryOff) host._tryOff();
|
|
61
|
+
const onPress = async (ev) => {
|
|
62
|
+
const b = ev.target && ev.target.closest && ev.target.closest('[data-try-act]'); if (!b || !host.contains(b)) return;
|
|
63
|
+
const c = list.items[Number(b.dataset.tryI)]; if (!c) return;
|
|
64
|
+
const verdict = b.dataset.tryAct;
|
|
65
|
+
let note = '';
|
|
66
|
+
if (verdict === 'note' || verdict === 'broken') {
|
|
67
|
+
const card = b.closest('.try-card');
|
|
68
|
+
const box = card && card.querySelector('textarea.try-note');
|
|
69
|
+
if (!box) { // the first press opens a note box under the card; broken may be sent without text
|
|
70
|
+
card.insertAdjacentHTML('beforeend', `<label class="pm-meta">${verdict === 'broken' ? 'What happened? (optional)' : 'Your note'}<textarea class="try-note" rows="2"></textarea></label>`
|
|
71
|
+
+ `<div class="try-acts"><button type="button" class="ev-btn sm pri" data-try-act="${verdict}" data-try-i="${b.dataset.tryI}" data-try-send="1">Send</button></div>`);
|
|
72
|
+
card.querySelector('textarea.try-note').focus();
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
note = box.value.trim();
|
|
76
|
+
if (verdict === 'note' && !note) { box.focus(); return; }
|
|
77
|
+
}
|
|
78
|
+
b.disabled = true;
|
|
79
|
+
if (!(await send(c, verdict, note))) { b.disabled = false; return; }
|
|
80
|
+
list = { ...list, items: list.items.filter((x) => x.key !== c.key), total: Math.max(0, list.total - 1), shown: Math.max(0, list.shown - 1) };
|
|
81
|
+
draw();
|
|
82
|
+
if (H.onChange) H.onChange(list);
|
|
83
|
+
if (H.toastUndo) H.toastUndo(SAID[verdict], async () => { if (await send(c, 'undo')) { list = await pmGet('/api/try').catch(() => list) || list; draw(); if (H.onChange) H.onChange(list); } });
|
|
84
|
+
else toast(SAID[verdict]);
|
|
85
|
+
};
|
|
86
|
+
host.ownerDocument.addEventListener('click', onPress);
|
|
87
|
+
host._tryOff = () => host.ownerDocument.removeEventListener('click', onPress);
|
|
88
|
+
return { list };
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** The list in the Viewer: Home's row opens it. */
|
|
92
|
+
export function openTry(H = {}) {
|
|
93
|
+
const VW = window.czViewer;
|
|
94
|
+
if (!VW) { if (H.toast) H.toast('The list could not open here.'); return; }
|
|
95
|
+
VW.open({ id: 'try', kind: 'To try', title: 'New things to try', icon: ICON, presses: [],
|
|
96
|
+
render: (b) => { mountTry(b, { ...H, empty: '<p class="pm-meta">Nothing new to try. Each update you install brings its own list.</p>' }); } });
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function later() { return pmPost('/api/try/later', {}).catch(() => null); }
|
package/workspace/server.js
CHANGED
|
@@ -10731,6 +10731,8 @@ async function handleRequest(req, res) {
|
|
|
10731
10731
|
: 'could not record the change — nothing was saved', sink, ...(wrote ? { grant, unsaved: rest } : {}) }, 500);
|
|
10732
10732
|
}
|
|
10733
10733
|
boardCache.invalidate(w.root);
|
|
10734
|
+
// decisions-from-approvals: a hold with a reason is one line in the product's decision journal; the hold's Undo takes it out
|
|
10735
|
+
try { for (const r of recs) require('./lib/decision-journal.js').onLifecycle(w.root, r); } catch { /* the lifecycle line holds the hold */ }
|
|
10734
10736
|
return json(res, bulk ? { ok: true, recorded: recs, grant, sink } : { ok: true, recorded: rec, sink });
|
|
10735
10737
|
}
|
|
10736
10738
|
if (p === '/api/doc/save' && req.method === 'POST') {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "decisions-from-approvals (bet A475): the PM approvals, card picks, drops and parks write the decision journal by themselves, with Undo (lib/decision-journal.js logFrom, undo, onLifecycle).",
|
|
3
|
+
"modules": ["decisions-from-approvals.test.js"],
|
|
4
|
+
"seconds": { "decisions-from-approvals.test.js": 2 }
|
|
5
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "initiative try-what-shipped: the changes to try after an update (lib/try-it.js, lib/routes-try.js, pm/try-view.js), the answers ledger, pmos try, Home's row and Settings › Updates (pure and scratch folders, no browser). scripts/tests/kit-changelog.test.js T1 covers the Try / Expect / Open parsing.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"try-it.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"try-it.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|