create-pmos 0.830.0 → 0.832.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.
Files changed (55) hide show
  1. package/package.json +129 -50
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/changelog.json +128 -36
  7. package/workspace/guide/backlog.md +1 -1
  8. package/workspace/guide/cli.md +27 -1
  9. package/workspace/guide/layout.md +4 -1
  10. package/workspace/guide/programs.md +2 -1
  11. package/workspace/lib/anchor-id.js +226 -0
  12. package/workspace/lib/artefacts-cli.js +25 -1
  13. package/workspace/lib/events-place.js +11 -4
  14. package/workspace/lib/features.json +2 -0
  15. package/workspace/lib/initiative-cli.js +67 -2
  16. package/workspace/lib/layouts-cli.js +6 -0
  17. package/workspace/lib/lessons-draft.js +242 -0
  18. package/workspace/lib/list-balance.js +18 -3
  19. package/workspace/lib/pmos-verbs.js +6 -0
  20. package/workspace/lib/prefs-sync.js +1 -1
  21. package/workspace/lib/route-modules.js +2 -0
  22. package/workspace/lib/routes-c3-strategy.js +2 -1
  23. package/workspace/lib/routes-events-place.js +19 -1
  24. package/workspace/lib/routes-proposals.js +2 -2
  25. package/workspace/lib/routes-screen-layouts.js +56 -0
  26. package/workspace/lib/routes-switches.js +35 -0
  27. package/workspace/lib/switch-owners.js +152 -0
  28. package/workspace/lib/switches-cli.js +85 -0
  29. package/workspace/lib/three-layouts.js +214 -0
  30. package/workspace/package-lock.json +2 -2
  31. package/workspace/package.json +1 -1
  32. package/workspace/public/pm/bd-goal.js +33 -0
  33. package/workspace/public/pm/bd-pop-ds.css +16 -0
  34. package/workspace/public/pm/bd-work-ds.css +6 -0
  35. package/workspace/public/pm/bd-work.js +34 -8
  36. package/workspace/public/pm/card-fold.js +123 -0
  37. package/workspace/public/pm/cozy-ev.css +7 -0
  38. package/workspace/public/pm/cozy-events-view.js +8 -4
  39. package/workspace/public/pm/cozy-nav.js +2 -0
  40. package/workspace/public/pm/cozy-pop-work.js +8 -3
  41. package/workspace/public/pm/cozy-today-app.js +28 -1
  42. package/workspace/public/pm/cozy-today-model.js +13 -5
  43. package/workspace/public/pm/cozy-today-view.js +10 -1
  44. package/workspace/public/pm/list-balance.js +16 -2
  45. package/workspace/public/pm/premium-board.js +7 -1
  46. package/workspace/public/pm/readonly.js +2 -0
  47. package/workspace/public/pm/switch-owners.js +70 -0
  48. package/workspace/public/pm/three-layouts.js +66 -0
  49. package/workspace/public/premium-board.html +2 -0
  50. package/workspace/stage-card-tasks-test.js +1 -0
  51. package/workspace/test-lists/anchor-id.json +9 -0
  52. package/workspace/test-lists/card-fold.json +9 -0
  53. package/workspace/test-lists/lessons-on-close.json +9 -0
  54. package/workspace/test-lists/switch-owners.json +9 -0
  55. package/workspace/test-lists/three-layouts.json +9 -0
@@ -18,6 +18,7 @@
18
18
  * chip row picks one (its own stages become the columns and the track's header) or All (the three categories, each row its own stages).
19
19
  * Where no record holds a value for an initiative, the element says so: nothing is invented. */
20
20
  import './fetch-share.js'; // first: identical GETs in flight are asked once (page-open-speed)
21
+ import { noteUse as noteUseLog } from './use-log.js'; // one count a page when Work is read by objective (TbInitiatives check)
21
22
  import * as WK from './work-kind.js'; // the kind of work before each title (batch 29 item 11, KdBd)
22
23
  import { pmPost } from './http.js';
23
24
  import * as LE from './live-edit.js'; // a task's status or days show at once (the save answers later; a failed save is put back)
@@ -73,6 +74,7 @@ import * as ST from './bd-stands.js'; // Where it stands, its Suggestion and t
73
74
  import * as LS from './load-shapes.js'; // the skeleton and the slow-case line while the board is read (page-open-speed, SpD) // the Board as the first panel: fit(), the rows that open beside, the open row's mark
74
75
  import * as STRAT from './bd-strategy.js'; // the product's strategy in five lines above the initiatives (bet A458)
75
76
  import * as PRIN from './bd-principles.js'; // the product's principles drafted from its decisions, below the strategy (bet A352)
77
+ import * as SWO from './switch-owners.js'; // who has which switch, per customer, below the principles (idea A263)
76
78
  import * as SKM from './skill-map.js'; // the team skill map below the principles (bet A208)
77
79
  import * as CMAP from './code-map.js'; // the product's code map, one box per main part (idea A176)
78
80
  import * as SWN from './cozy-status-when.js'; // the day a status move really happened, in the toast (round 3 point 18)
@@ -713,6 +715,7 @@ const wkMany = () => !!(M && M.board.all && (M.board.products || []).length > 1)
713
715
  const wkProduct = (r) => productName(r.ws || (M && M.board && M.board.ws), r.product || (M && M.board && (M.board.product || M.board.name)) || '');
714
716
  const wkGoalOf = (r) => { if (!GOALS) return ''; const k = (GOALS.of || {})[String(r.anchor || '')], g = k && (GOALS.goals || []).find((x) => x.key === k); return g ? g.title : ''; };
715
717
  const wkProgOf = (r) => { const p = programOf(PGS, r.ws || (M && M.board.ws) || '', r.id); return p ? p.title || p.id : ''; };
718
+ let BY_OBJ_NOTED = false; // Work read by objective: counted once a page (use-log control workByObjective)
716
719
  function drawWork(L) {
717
720
  const pk = prodKey((M.board && (M.board.product || M.board.name)) || ''), lay = SO.layout();
718
721
  // the balance meter (BalanceDS): the mix of the rows the table shows, by kind; a legend press shows only that kind
@@ -723,7 +726,9 @@ function drawWork(L) {
723
726
  // WorkDS: Where it stands (a Summary block and one Suggestion), the Initiatives table, then the Next milestones date line on the table's scale
724
727
  const list = WV.listHtml(L, { above: meter, tpx: WK_TPX, many: wkMany(), sel: peek && peek.kind === 'ini' ? peek.key : null, rowOf, bar: wkBar,
725
728
  product: wkProduct, goalOf: wkGoalOf, programOf: wkProgOf, order: (rows) => sortInis(pk, rows, lay, INI_ACC),
726
- goalGroups: (rows) => (GOALS ? GL.asGroups(rows, GOALS, (rs) => sortInis(pk, rs, lay, INI_ACC)) : null),
729
+ // grouped by goal, the list groups by the objective each key result serves and names the key result on the row (TbInitiatives)
730
+ goalGroups: (rows) => { const G = GOALS ? GL.objectiveGroups(rows, GOALS, (rs) => sortInis(pk, rs, lay, INI_ACC)) : null; if (G && !BY_OBJ_NOTED) BY_OBJ_NOTED = noteUseLog('workByObjective'); return G; },
731
+ serves: (r) => (GOALS ? GL.servesOf(r, GOALS) : ''),
727
732
  canMove: (r) => !ROC && !!(r.track && r.acts && (r.acts.stages || []).length > 1) });
728
733
  const W = WV.lastWindow(), vis = WV.filterRows(L, { product: wkProduct, programOf: wkProgOf });
729
734
  if (!W || WV.read().tl === false) return ST.standsHtml(vis, { sug: !ROC }) + list;
@@ -1526,6 +1531,7 @@ async function load() {
1526
1531
  LE.loaded({ since, stale: !!r.stale }); // a change still saving stays on the new read; open views (the big Work breakdown) follow it
1527
1532
  STRAT.refresh($('#cStrat'), { ws: M.board.ws || null, board: M.board.id || null, single: !ALL, say });
1528
1533
  PRIN.refresh($('#cPrin'), { ws: M.board.ws || null, single: !ALL, say });
1534
+ SWO.refresh($('#cSw'), { ws: M.board.ws || null, single: !ALL, say });
1529
1535
  SKM.refresh($('#cSkills'), { ws: M.board.ws || null, single: !ALL, say });
1530
1536
  CMAP.mount($('#cCode'), { ws: M.board.ws || null, single: !ALL });
1531
1537
  focusOnce(); taskOnce(); programOnce(); newOnce(); loadOthers(); loadWorkflows();
@@ -17,6 +17,8 @@ export const RO = !!PACK;
17
17
 
18
18
  /** What a reader can do. Each is a selector; a press inside a match is let through. */
19
19
  export const VIEW_CONTROLS = [
20
+ // the big cards' fold (pm/card-fold.js): Strategy, Where it stands and North Star fold to their head line, and the ✦ count opens one
21
+ '[data-card-fold]', '[data-card-fold-sug]',
20
22
  // the Timeline: the span, the legend behind (i), a column's sort, back to today, the edge tab that scrolls to a bar off the view, the Deliveries lane, the folds, an initiative's name (opens its viewer)
21
23
  '#bdLgdBtn', '.tg-chd', '.tg-tback', '.tg-edge', '.dl-fb', '.dl-dn', '.dl-e[aria-label*="press to open"]', '.bd-fold', '.bd-prdb', 'label.tg-n', 'button.tg-n.ini2',
22
24
  // the stage track: the switch between it and the Timeline (the two views a publisher shares), an initiative's name, the Monitor and Evaluate fold
@@ -0,0 +1,70 @@
1
+ /* pm/switch-owners.js — the Switches block on Work: who has which switch, per customer, why, and who agreed (idea A263, initiative
2
+ * switch-owners, board BatchReleaseDS panel 23).
3
+ *
4
+ * mount(host, { ws, single, say }) → draws the block into `host`; a Work page that shows several products at once shows none
5
+ *
6
+ * Built only from Komorebi parts: a Detail block (pm-block, its head), one pm-table (Customer, Switch, Why, Agreed by), pm-badge for the
7
+ * marks and the ask that waits, icon-only pm-btn with labels for screen readers. It reads and writes GET and POST /api/switches
8
+ * (lib/routes-switches.js) and nothing else; the chat writes the same store through `pmos switches`.
9
+ * · A switch with no reason shows "—", one with no approver "nobody", each as an alert pm-badge; the head counts the marked ones once.
10
+ * · An ask to turn a switch on or off (`pmos switches turn`) waits for the PM: "Turn off" with ✓ (I turned it in the product) and ✕ (keep
11
+ * it as it is). PMOS turns nothing; only this press changes the switch's recorded state.
12
+ * · No switch: no block (zero is silence).
13
+ * The buttons are named swConfirm and swCancel (one per row, so no id; the value is the switch's id) and each press notes that name in the
14
+ * local use log (noteUse). */
15
+ import { pmGet, pmPost } from './http.js';
16
+ import { noteUse } from './use-log.js';
17
+
18
+ const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c]);
19
+ const SV = (d) => `<svg class="pm-ic" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="${d}"/></svg>`;
20
+ const I = { toggle: 'M8 7h8a5 5 0 0 1 0 10H8A5 5 0 0 1 8 7M16 9.5a2.5 2.5 0 1 0 0 5a2.5 2.5 0 1 0 0-5', ok: 'M5 12l5 5 9-10', x: 'M6 6l12 12M18 6L6 18' };
21
+ const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
22
+
23
+ /** "Dana, 3 Nov" from agreedBy and agreedOn (YYYY-MM-DD). */
24
+ export const agreedLine = (r) => (r.agreedBy ? r.agreedBy + (/^\d{4}-\d{2}-\d{2}$/.test(r.agreedOn || '') ? `, ${+r.agreedOn.slice(8)} ${MON[+r.agreedOn.slice(5, 7) - 1]}` : '') : '');
25
+
26
+ /** The block's markup. state = { switches }. Pure, so the test reads it. '' when there is no switch. */
27
+ export function blockHtml(state) {
28
+ const rows = Array.isArray(state && state.switches) ? state.switches : [];
29
+ if (!rows.length) return '';
30
+ const marked = rows.filter((r) => (r.marks || []).length).length;
31
+ const miss = (word, label) => `<span class="pm-badge alert" aria-label="${esc(label)}">${word}</span>`;
32
+ const btn = (name, icon, label, r, kind) => `<button type="button" class="pm-btn${kind ? ' ' + kind : ''}" name="${name}" value="${esc(r.id)}" aria-label="${esc(label)}" title="${esc(label)}">${SV(icon)}</button>`;
33
+ const row = (r) => {
34
+ const m = r.marks || [];
35
+ const why = m.includes('why') ? miss('—', 'No reason') : esc(r.why);
36
+ const who = m.includes('approver') ? miss('nobody', 'Nobody agreed') : esc(agreedLine(r));
37
+ const off = r.on ? '' : ' <span class="pm-badge">off</span>';
38
+ const wait = r.waiting ? `<div class="pm-row"><span class="pm-badge alert">Waits for you: turn ${esc(r.waiting.to)}</span>`
39
+ + `${btn('swConfirm', I.ok, `I turned ${r.name} ${r.waiting.to} for ${r.customer}`, r, 'primary')}${btn('swCancel', I.x, `Keep ${r.name} ${r.on ? 'on' : 'off'} for ${r.customer}`, r, 'outline')}</div>` : '';
40
+ return `<tr data-switch="${esc(r.id)}"><td>${esc(r.customer)}</td><td>${esc(r.name)}${off}${wait}</td><td>${why}</td><td>${who}</td></tr>`;
41
+ };
42
+ const meta = marked ? ` <span class="pm-meta">· ${marked} without a reason or an approver</span>` : '';
43
+ return `<section class="pm-block" aria-label="Switches"><div class="head">${SV(I.toggle)}<h3 class="pm-h-sm">Switches${meta}</h3></div>`
44
+ + '<table class="pm-table" aria-label="Who has which switch"><thead><tr><th scope="col">Customer</th><th scope="col">Switch</th><th scope="col">Why</th><th scope="col">Agreed by</th></tr></thead>'
45
+ + `<tbody>${rows.map(row).join('')}</tbody></table></section>`;
46
+ }
47
+
48
+ /** Draw the block into `host` and wire its presses. */
49
+ export async function mount(host, opts = {}) {
50
+ if (!host) return;
51
+ const { ws = null, single = true, say = null } = opts;
52
+ if (!single) { host.hidden = true; host.innerHTML = ''; return; }
53
+ const r = await pmGet('/api/switches' + (ws ? '?ws=' + encodeURIComponent(ws) : '')).catch(() => null);
54
+ if (!r || !r.ok) { host.hidden = true; return; } // the block is an extra: a failed read leaves Work as it was
55
+ const html = blockHtml(r);
56
+ host.hidden = !html; host.innerHTML = html;
57
+ host.onclick = async (e) => {
58
+ const b = e.target.closest('button[name="swConfirm"], button[name="swCancel"]'); if (!b) return;
59
+ const act = b.name === 'swConfirm' ? 'confirm' : 'cancel', id = b.value;
60
+ noteUse(b.name);
61
+ b.disabled = true;
62
+ const res = await pmPost('/api/switches', { ws, act, id }).catch(() => null);
63
+ if (!res || !res.ok) { b.disabled = false; if (say) say((res && res.error) || 'Not saved.'); return; }
64
+ const w = res.row;
65
+ if (say) say(act === 'confirm' ? `${w.name} is ${w.on ? 'on' : 'off'} for ${w.customer}.` : `${w.name} stays ${w.on ? 'on' : 'off'} for ${w.customer}.`);
66
+ mount(host, opts);
67
+ };
68
+ }
69
+
70
+ export const refresh = mount;
@@ -0,0 +1,66 @@
1
+ /* pm/three-layouts.js — the Work popup's Layouts block (initiative three-layouts, job #1904, idea A317; board BatchDesignDS panel 19, agreed by
2
+ * Wawan 2026-11-25). An initiative that adds a new screen shows three layouts of the same parts side by side, one ✦ line that recommends one
3
+ * with its reason, and an icon-only ✓ under each. The pick is kept on the initiative as the one to build; the other two stay, marked kept.
4
+ *
5
+ * html(V) PURE → '' when V is none (zero is silence), else the block: pm-block, three tiles of grey sample bars (the list is the
6
+ * tall bar), the ✦ line (pm-said) and a ✓ (pm-btn) per tile with an aria-label. V: GET /api/screen-layouts's answer.
7
+ * read(ws, ini, redraw) → V | null while reading | false GET /api/screen-layouts once per initiative; redraw when there is a block
8
+ * pick(ws, ini, key, h) · undo(ws, ini, h) POST /api/screen-layouts/pick and /undo (page presses), then redraw; the pick's toast has Undo
9
+ * seen(ini) what the last read answered, without reading
10
+ * forget(ini) the next read goes to the server again (after a chat turn)
11
+ * The parts and the look are the system's (pm-block, pm-said, pm-btn, pm-meta); bd-pop-ds.css only places them. The UI says PMOS. */
12
+ import { pmGet, pmPost } from './http.js';
13
+
14
+ const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
15
+ const SV = (d, cls = '') => `<svg class="pm-ic${cls ? ' ' + cls : ''}" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
16
+ const STAR = 'M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z', OK = 'M5 12.5l4.5 4.5L19 7.5', BACK = 'M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3';
17
+
18
+ /** PURE. The block, or '' when the initiative adds no screen. */
19
+ export function html(V) {
20
+ if (!V || V.none || !Array.isArray(V.layouts) || V.layouts.length !== 3) return '';
21
+ const rec = V.rec || {}, picked = V.picked || null;
22
+ const tile = (L) => {
23
+ const on = picked ? picked === L.key : rec.key === L.key;
24
+ const state = picked ? (picked === L.key ? 'picked' : 'kept') : '';
25
+ const bars = L.parts.map((p) => `<span class="tl-bar${p.tall ? ' tall' : ''}" title="${esc(p.name)}"></span>`).join('');
26
+ const label = `${L.letter}, ${L.name}: ${L.parts.map((p) => p.name).join(', then ')}`;
27
+ const btn = picked ? '' : `<button type="button" class="pm-btn${on ? ' primary' : ' outline'}" data-tl-pick="${esc(L.key)}" aria-label="Use ${esc(L.letter)}" title="Use ${esc(L.letter)}">${SV(OK)}</button>`;
28
+ return `<li class="tl-tile${on ? ' on' : ''}${state ? ' ' + state : ''}" aria-label="${esc(label)}"><div class="pm-row tl-th"><b>${esc(L.letter)}</b><span class="pm-meta">${esc(state === 'picked' ? 'To build' : state === 'kept' ? 'Kept' : L.name)}</span></div>`
29
+ + `<div class="tl-bars" aria-hidden="true">${bars}</div>${btn}</li>`;
30
+ };
31
+ const head = `<div class="pm-row pwd-bh"><h2 class="pm-h-sm">Layouts</h2>${picked ? `<button type="button" class="pm-btn" data-tl-undo aria-label="Undo the pick" title="Undo the pick">${SV(BACK)}</button>` : ''}</div>`;
32
+ const P = picked ? V.layouts.find((L) => L.key === picked) : null;
33
+ const said = P ? `<p class="pm-meta tl-line">${esc(P.letter + ' ' + P.name)} is the layout to build. The other two are kept here.</p>`
34
+ : `<p class="pm-said tl-line">${SV(STAR, 'pm-star')}<span>${esc(rec.why || '')}</span></p>`;
35
+ return `<section class="pm-block pwd-blk tl-lay" aria-label="Layouts">${head}<ul class="tl-tiles" role="list">${V.layouts.map(tile).join('')}</ul>${said}</section>`;
36
+ }
37
+
38
+ const SEEN = new Map(); // ini → V | null while reading | false
39
+ /** What the last read answered: V, null while reading, false (none), undefined (not read yet). */
40
+ export const seen = (ini) => SEEN.get(ini);
41
+ export function forget(ini) { if (ini) SEEN.delete(ini); else SEEN.clear(); }
42
+ export function read(ws, ini, redraw) {
43
+ if (!ini) return false;
44
+ if (!SEEN.has(ini)) {
45
+ SEEN.set(ini, null);
46
+ pmGet('/api/screen-layouts?ini=' + encodeURIComponent(ini) + (ws ? '&ws=' + encodeURIComponent(ws) : ''))
47
+ .then((x) => { const ok = x && x.ok && !x.none && Array.isArray(x.layouts); SEEN.set(ini, ok ? x : false); if (ok && redraw) redraw(); })
48
+ .catch(() => SEEN.set(ini, false));
49
+ }
50
+ return SEEN.get(ini);
51
+ }
52
+ export async function pick(ws, ini, key, h = {}) {
53
+ const r = await pmPost('/api/screen-layouts/pick', { ws, ini, key }).catch(() => null);
54
+ if (!r || !r.ok) { if (h.toast) h.toast('The pick was not kept: ' + ((r && r.error) || 'PMOS could not reach the workspace') + '.'); return false; }
55
+ forget(ini); read(ws, ini, h.redraw);
56
+ const letter = { list: 'A', summary: 'B', action: 'C' }[r.picked] || String(r.picked);
57
+ if (h.undoToast) h.undoToast('Layout ' + letter + ' is the one to build.', () => undo(ws, ini, h));
58
+ else if (h.toast) h.toast('Layout ' + letter + ' is the one to build.');
59
+ return true;
60
+ }
61
+ export async function undo(ws, ini, h = {}) {
62
+ const r = await pmPost('/api/screen-layouts/undo', { ws, ini }).catch(() => null);
63
+ if (!r || !r.ok) { if (h.toast) h.toast('The pick is still there: ' + ((r && r.error) || 'PMOS could not reach the workspace') + '.'); return false; }
64
+ forget(ini); read(ws, ini, h.redraw);
65
+ return true;
66
+ }
@@ -65,6 +65,8 @@
65
65
  <section class="bd-sec" id="cStrat" aria-label="Strategy" hidden></section>
66
66
  <!-- the product's principles drafted from its decisions (pm/bd-principles.js, bet A352): below the strategy, one product only -->
67
67
  <section class="bd-sec" id="cPrin" aria-label="Principles" hidden></section>
68
+ <!-- who has which switch, per customer (pm/switch-owners.js, idea A263): below the principles, one product only -->
69
+ <section class="bd-sec" id="cSw" aria-label="Switches" hidden></section>
68
70
  <!-- the team skill map (pm/skill-map.js, bet A208): below the principles, one product only, for the person and their lead -->
69
71
  <section class="bd-sec" id="cSkills" aria-label="Team skills" hidden></section>
70
72
  <!-- the product's code map (pm/code-map.js, idea A176): one box per main part of its repository, one product only -->
@@ -90,6 +90,7 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
90
90
  await page.route(/\/api\/briefing-premium(\?.*)?$/, (r) => json(r, { ok: true, state: 'ready', model: BRP.build(BRF.facts()), as_of: Date.now() }));
91
91
  await page.route('**/api/briefing-premium/**', (r) => json(r, { ok: true, turns: [], working: false }));
92
92
  await page.route('**/api/jira/tickets*', (r) => json(r, { ok: false, error: 'not in this check' }));
93
+ await page.route('**/api/screen-layouts*', (r) => json(r, { ok: true, none: true })); // three-layouts: no new screen here, so no Layouts block and no redraw
93
94
  await page.route(/\/api\/(boards\/|lifecycle)/, (r) => {
94
95
  const rq = r.request(), p = new URL(rq.url()).pathname; if (rq.method() === 'GET') return json(r, { ok: true });
95
96
  const b = JSON.parse(rq.postData() || '{}'); posts.push({ path: p, body: b });
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "anchor-ids (job #2026, A547): an initiative's anchor is one id; pmos initiative anchors, anchor, anchors fold/undo. Synthetic repository, no network.",
3
+ "modules": [
4
+ "anchor-id.test.js"
5
+ ],
6
+ "seconds": {
7
+ "anchor-id.test.js": 3
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Big cards fold away (initiative card-fold, done test planning/done-tests/card-fold.md F1-F4, N1-N2): the shared fold on Strategy, Where it stands and North Star, the kept fold per page and card, the ✦ count, and the menu's mount. No server, network or browser.",
3
+ "modules": [
4
+ "card-fold.test.js"
5
+ ],
6
+ "seconds": {
7
+ "card-fold.test.js": 1
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Lessons drafted when an experiment closes (initiative lessons-on-close, done test L1-L5, N1, N2): the facts, the draft with an injected session and its plain fallback, the hook, the never-over-the-PM rule and pmos artefacts lessons on a scratch repository. No server, browser, model or network.",
3
+ "modules": [
4
+ "lessons-draft.test.js"
5
+ ],
6
+ "seconds": {
7
+ "lessons-draft.test.js": 1
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Who has which switch (initiative switch-owners, done test S1-S7, N1, N2): the store, the marks, the ask that waits, the routes, the Work block's markup, the pmos switches verb and its words. No server, browser, model or network.",
3
+ "modules": [
4
+ "switch-owners.test.js"
5
+ ],
6
+ "seconds": {
7
+ "switch-owners.test.js": 2
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Three layouts for a new screen, pick one (three-layouts, job #1904, idea A317, done test planning/done-tests/three-layouts.md L1-L6, N1-N3): the rule that finds a new screen, the three layouts, the ✦ from this product's picks, the pick and Undo over the route and pmos layouts, and the Work popup's block. No server, network, model or browser.",
3
+ "modules": [
4
+ "three-layouts.test.js"
5
+ ],
6
+ "seconds": {
7
+ "three-layouts.test.js": 2
8
+ }
9
+ }