create-pmos 0.435.0 → 0.436.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.435.0",
3
+ "version": "0.436.0",
4
4
  "description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -32,6 +32,18 @@
32
32
  "audit"
33
33
  ],
34
34
  "pmosChanges": [
35
+ {
36
+ "v": "0.436.0",
37
+ "at": "2026-10-28T04:57:50.844Z",
38
+ "f": 2,
39
+ "prs": [
40
+ {
41
+ "n": 1079,
42
+ "t": "Task Delete sticks and the Task Viewer has Delete; Tasks timeline zooms to 5 years and opens full width (feedback batch 17 items 2, 3)",
43
+ "s": "Task Delete sticks and the Task Viewer has Delete; Tasks timeline zooms to 5 years and opens full width (feedback batch 17 items 2, 3)"
44
+ }
45
+ ]
46
+ },
35
47
  {
36
48
  "v": "0.435.0",
37
49
  "at": "2026-10-28T03:43:15.566Z",
@@ -259,18 +271,6 @@
259
271
  "s": "Pmos workflow move and Board drops land on the Product feature stage you ask for, by key, by name, or by number, even when the board merges two stages into one column."
260
272
  }
261
273
  ]
262
- },
263
- {
264
- "v": "0.416.0",
265
- "at": "2026-10-26T00:23:58.708Z",
266
- "f": 2,
267
- "prs": [
268
- {
269
- "n": 1050,
270
- "t": "Sixth testing feedback batch (items 1–5)",
271
- "s": "Sixth testing feedback batch (items 1–5)"
272
- }
273
- ]
274
274
  }
275
275
  ]
276
276
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@47ffdc47
1
+ kernel-source: pmos@3c511e85
2
2
  assembled: 2026-10-28
3
3
  mode: vendor
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Eval calibration log"
4
4
  description: "Append-only record of every PM override of an evaluator verdict."
5
- generated: {by: process:create-pmos, at: "2026-10-28T03:43:12Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-28T04:57:47Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Health budgets"
4
4
  description: "Closed registry of health-budget anchors (D59), edited only by the PM."
5
- generated: {by: process:create-pmos, at: "2026-10-28T03:43:12Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-28T04:57:47Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Discoveries and friction log"
4
4
  description: "Append-only record of what runs discovered and where the process rubbed."
5
- generated: {by: process:create-pmos, at: "2026-10-28T03:43:12Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-28T04:57:47Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,16 @@
1
1
  [
2
+ {
3
+ "v": "0.436.0",
4
+ "at": "2026-10-28T04:57:50.844Z",
5
+ "f": 2,
6
+ "prs": [
7
+ {
8
+ "n": 1079,
9
+ "t": "Task Delete sticks and the Task Viewer has Delete; Tasks timeline zooms to 5 years and opens full width (feedback batch 17 items 2, 3)",
10
+ "s": "Task Delete sticks and the Task Viewer has Delete; Tasks timeline zooms to 5 years and opens full width (feedback batch 17 items 2, 3)"
11
+ }
12
+ ]
13
+ },
2
14
  {
3
15
  "v": "0.435.0",
4
16
  "at": "2026-10-28T03:43:15.566Z",
@@ -82,7 +82,7 @@ Press an initiative's name in the list, or open `?ini=<id>`. The list stays as i
82
82
  - In the Build stage, the open Jira tickets show with the tasks. A task whose name starts with a Jira key (for example "MSD-4376 Navigation tabs") is that ticket, so the ticket shows once, as the task, and counts once. It looks like the ticket rows: a blue square in place of the box and the key in blue. Its status follows Jira; press its name to open it.
83
83
  - **Set a Jira ticket's dates.** Press the dates of a Jira ticket in the List, or drag its bar on the Timeline, as you do for a task. PMOS keeps the start and due days and shows them in place of the sprint end. Jira does not change. The status and the name stay Jira's.
84
84
  - **Tasks** show one row (one group) for each stage of the workflow, in order. Finished stages and later stages are never merged into one row; they start folded, and the current stage and any stage with a late task start open.
85
- - **Delete a task.** Press the caret under a task's box (on a phone, press and hold the box) and press the trash at the end of the status picker. The task goes at once and the message shows **Undo**. The ⋯ menu of a task also has **Delete**. You can delete every PMOS task, also a task that Claude planned in the breakdown. A Jira ticket has no Delete: change it in Jira. A task deleted in a draft leaves only the draft.
85
+ - **Delete a task.** Press the caret under a task's box (on a phone, press and hold the box) and press the trash at the end of the status picker. The task goes at once and the message shows **Undo**. In the Task Viewer, the trash is the last icon of the Status row, and **Delete** is the last entry of its ⋯ menu. You can delete every PMOS task, also a task that Claude planned in the breakdown and a task that a stage's To finish list made. A deleted To finish task does not come back when the stage is read again or when the initiative moves back to that stage. A Jira ticket has no Delete: change it in Jira. A task deleted in a draft leaves only the draft.
86
86
 
87
87
  ## Back and forward
88
88
 
@@ -36,7 +36,7 @@ On a screen wider than 600 pixels, the breadcrumb, the board status, the tabs an
36
36
  - A filter that is on shows next to the icon. Press its x to remove it, or press **Clear** to remove all.
37
37
  - In Backlog, add a PMOS task to an initiative.
38
38
  - In Board, drag a PMOS task to a column, or use its menu. A Jira item has a lock: change it in Jira.
39
- - In Timeline, use **Week**, **Month** and **Quarter** to zoom, and drag the empty chart to pan. Drag a PMOS bar to reschedule the task, or focus the bar and press the Left or Right arrow key. The toast has **Undo**. A Jira bar is locked.
39
+ - In Timeline, use **Weeks**, **Months**, **Quarter**, **Year**, **2 years** and **5 years** to zoom. The four-corners icon beside the zoom spreads the Timeline over the whole window, as on the Board; press it again or press Escape to go back. Drag the empty chart to pan. Drag a PMOS bar to reschedule the task, or focus the bar and press the Left or Right arrow key. The toast has **Undo**. A Jira bar is locked.
40
40
  - **Releases** shows the next release, the later ones and the past ones, with their scope initiatives. Release dates live on the Calendar. Press **On the Calendar** in the Unreleased heading to open it.
41
41
  - **Docs** lists the documents of the board by initiative.
42
42
  - **Sprints** shows the Jira sprints and the sprint burndown. They are read-only. The heading of the active sprint shows when PMOS last read them from Jira.
@@ -366,7 +366,7 @@ function fold(events) {
366
366
  suggestNo.set(e.id, { kind: e.of === 'merge' ? 'merge' : 'split', fp: e.fp, at: e.at || null });
367
367
  }
368
368
  }
369
- return { boards, moves, assigns, asks, stages, iniWorkflows, tasks, sections, milestones, pins, ticketNotes, ticketDates, epics, archives, deleted, notDup, iniWf, ends, judged, autoOver, ticketMoves, smOps, smUndone, suggestNo, events: list };
369
+ return { boards, moves, assigns, asks, stages, iniWorkflows, tasks, removed, sections, milestones, pins, ticketNotes, ticketDates, epics, archives, deleted, notDup, iniWf, ends, judged, autoOver, ticketMoves, smOps, smUndone, suggestNo, events: list };
370
370
  }
371
371
 
372
372
  /** The stages an initiative runs on a board: its own workflow when one is recorded, else the board's. */
@@ -434,7 +434,8 @@ function stageTasks(file, folded, board, row, by) {
434
434
  const list = st && Array.isArray(st.finish) ? st.finish.filter((f) => typeof f === 'string' && f.trim()) : [];
435
435
  if (!list.length) return 0;
436
436
  const have = new Set();
437
- for (const t of folded.tasks.values()) if (t.initiative === row.id && t.from && t.from.stage === st.key) have.add(t.from.finish);
437
+ // a To finish task the PM deleted stays deleted: the next read must not make it again (batch 17 item 2: "Deleting task, but keep appearing")
438
+ for (const t of [...folded.tasks.values(), ...(folded.removed ? folded.removed.values() : [])]) if (t.initiative === row.id && t.from && t.from.stage === st.key) have.add(t.from.finish);
438
439
  let n = 0;
439
440
  for (const f of list) {
440
441
  if (have.has(f)) continue;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.435.0",
3
+ "version": "0.436.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.435.0",
9
+ "version": "0.436.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.435.0",
3
+ "version": "0.436.0",
4
4
  "private": true,
5
5
  "description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
6
6
  "license": "MIT",
@@ -6,7 +6,7 @@
6
6
  * status, the dates, the owner and the notes, and its move icon the section, the group or the initiative. Every write is the board's own route and is the PM's press; each says so
7
7
  * in a toast with Undo, and a refusal shows the route's reason and changes nothing. Talk it through in chat is under ⋯ (the chat is beside
8
8
  * the Viewer on Home). The PM's own items (a note, a mention made into a task) open in My work's item view (home-work.js). */
9
- import { taskOf, checkOf, mountCard, boardSaver, cardStyle, placeOf, historyFor } from './task-card.js';
9
+ import { taskOf, checkOf, mountCard, boardSaver, cardStyle, placeOf, historyFor, deleteEntry } from './task-card.js';
10
10
 
11
11
  /** h: { VW, pmPost, toast, toastUndo?, now, ws, board, iniTitle(id), openIni(id), askInChat(task), onChange(), rename?(task),
12
12
  * owners?() → [names], inis?() → [{ id, title }] } */
@@ -24,11 +24,12 @@ export function openTask(task, h) {
24
24
  clearTimeout(changed.t); changed.t = setTimeout(() => { if (h.onChange) h.onChange(); }, 400);
25
25
  };
26
26
  const toast = (msg, undo) => (h.toastUndo && undo ? h.toastUndo(msg, undo) : h.toast(msg));
27
+ // Delete (batch 7 item 5; batch 17 item 2): the trash at the end of the Status row and the last entry of ⋯, one write with Undo
28
+ const del = deleteEntry({ ws, board, t, post: (p, b) => h.pmPost(p, b), toast, done: () => { if (h.VW.close) h.VW.close(); if (h.onChange) h.onChange(); } });
27
29
  const body = h.VW.open({
28
30
  id, kind: 'Task', title: t.title, icon: 'task', check: checkOf(t),
29
31
  rename: t.jira ? null : h.rename ? h.rename(raw) : null,
30
32
  more: () => {
31
- const del = deleteEntry({ ws, board, t, post: (p, b) => h.pmPost(p, b), toast, done: () => { if (h.VW.close) h.VW.close(); if (h.onChange) h.onChange(); } });
32
33
  return [{ label: 'Talk it through in chat', on: () => h.askInChat(raw) }, ...(del ? [{ sep: true }, del] : [])]; // Delete: batch 7 item 5
33
34
  },
34
35
  onPress: (act) => { if (act === 'check' && card) card.setStatus(t.status === 'Done' ? 'To do' : 'Done'); },
@@ -42,6 +43,7 @@ export function openTask(task, h) {
42
43
  groups: () => (layout ? layout.names || [] : null),
43
44
  sections: () => sections,
44
45
  history: historyFor({ ws, board, t, post: (p, b) => h.pmPost(p, b) }), // what Claude changed with your ✓ (batch 12, TpA6)
46
+ ...(del ? { remove: del.on } : {}),
45
47
  });
46
48
  },
47
49
  });
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * viewMode() / setViewMode(m) 'list' | 'timeline' | 'kanban': the last view, remembered for the PM across initiatives; first time List
7
7
  * switchHtml(m) the icon-only segment List / Timeline / Kanban (Kanban is the Board's "By stage" icon)
8
- * headExtraHtml(v, m) what the view adds to the header: Timeline's Weeks/Months/Quarters picker, Kanban's stage picker
8
+ * headExtraHtml(v, m) what the view adds to the header: Timeline's Weeks/Months/Quarter/Year/2 years/5 years picker, Kanban's stage picker
9
9
  * timelineHtml(v, o, isOpen) the stage groups of the List (the same folds), bars by start → due, a circle for a due day only, a dashed
10
10
  * date press at today for a task with no dates, the Today line and the legend under it
11
11
  * kanbanHtml(v, o, isOpen) one stage at a time; columns To do, In progress, Done; Won't do a folded strip; phone: one column a screen
@@ -24,6 +24,7 @@ export const P = {
24
24
  list: 'M9 6h11M9 12h11M9 18h11M4.5 6h.01M4.5 12h.01M4.5 18h.01', time: 'M4 6h9M8 12h11M6 18h7', kanban: 'M4 4h4v16H4zM10 4h4v10h-4zM16 4h4v13h-4z',
25
25
  down: 'M7 10l5 5 5-5', right: 'M10 7l5 5-5 5', cal: 'M4 5h16v15H4zM8 3v4M16 3v4M4 10h16', jira: 'M12 3l9 9-9 9-9-9z', check: 'M5 12l5 5 9-10',
26
26
  dia: 'M12 4l8 8-8 8-8-8z', skip: 'M6 7l5 5-5 5M13 7l5 5-5 5', bin: 'M5 7h14M10 7V4h4v3M7 7l1 13h8l1-13',
27
+ full: 'M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5', unfull: 'M9 4v5H4M15 4v5h5M9 20v-5H4M15 20v-5h5',
27
28
  };
28
29
  /** The small grey ◇ after a milestone task's title (batch 11 item 3), on every task row: List, Kanban, Timeline. The Jira mark is another
29
30
  * shape (blue, nested) and stays as it is. */
@@ -32,7 +33,8 @@ export const msGlyph = (x) => (x && x.ms ? `<span class="iv-ms${x.done ? ' dn' :
32
33
  export const msNoDate = (x) => !!(x && x.ms && !x.end && !x.closed);
33
34
  const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
34
35
  const VIEWS = [['list', 'List', P.list], ['timeline', 'Timeline', P.time], ['kanban', 'Kanban', P.kanban]];
35
- const ZOOMS = [['week', 'Weeks', 14], ['month', 'Months', 4], ['quarter', 'Quarters', 1.6]];
36
+ // [key, label, px a day, the days the axis shows ahead at least]: Year, 2 years and 5 years (batch 17 item 3) read like the Board's spans
37
+ const ZOOMS = [['week', 'Weeks', 14, 42], ['month', 'Months', 4, 42], ['quarter', 'Quarter', 1.6, 92], ['year', 'Year', 0.8, 365], ['y2', '2 years', 0.4, 730], ['y5', '5 years', 0.16, 1826]];
36
38
  const COLS = [['To do', 'To do'], ['In progress', 'In progress'], ['Done', 'Done']];
37
39
 
38
40
  /* ── what the PM picked: the view and the zoom for the PM (this browser), the Kanban stage per initiative for the session ── */
@@ -42,6 +44,27 @@ const STAGE = new Map(); // initiative → the Kanban's stage key ('all' | a
42
44
  const SCROLL = new Map(); // initiative|zoom → the Timeline's scroll, so a redraw keeps the PM's place
43
45
  export function viewMode() { if (!VIEW) { const v = store.get('pmos.tasks.view'); VIEW = v === 'timeline' || v === 'kanban' ? v : 'list'; } return VIEW; }
44
46
  export function setViewMode(m) { VIEW = m === 'timeline' || m === 'kanban' ? m : 'list'; store.set('pmos.tasks.view', VIEW); }
47
+ /* Full width (batch 17 item 3): the Timeline takes the whole window, as the Board's does. The choice holds while the Viewer shows a Timeline
48
+ * (body.ivt-full; the css applies only to a Viewer that holds one), so List and Kanban stay in the panel; Escape or the same icon goes back. */
49
+ const PHONE = () => typeof matchMedia === 'function' && matchMedia('(max-width: 720px)').matches;
50
+ const fullOn = () => typeof document !== 'undefined' && document.body.classList.contains('ivt-full');
51
+ function setFull(on) {
52
+ document.body.classList.toggle('ivt-full', !!on);
53
+ const b = document.querySelector('#czViewer [data-iv-full]'), l = on ? 'Back to the panel' : 'Full width';
54
+ if (b) { b.setAttribute('aria-pressed', String(!!on)); b.setAttribute('aria-label', l); b.title = l; b.innerHTML = SVG(on ? P.unfull : P.full, 18); }
55
+ // Escape goes back to the panel first: the Viewer leaves Escape to a [data-esc-layer] (pm/cozy-viewer.js), so the Viewer carries the mark
56
+ // while full; an open zoom menu closes on its own Escape before this one; a Viewer that left the Timeline closes as usual
57
+ const vw = document.getElementById('czViewer'); if (vw) vw.toggleAttribute('data-esc-layer', !!on);
58
+ if (on && !setFull.esc) {
59
+ setFull.esc = true;
60
+ addEventListener('keydown', (e) => {
61
+ if (e.key !== 'Escape' || !fullOn() || POP) return;
62
+ e.preventDefault(); e.stopImmediatePropagation();
63
+ const tl = !!document.querySelector('#czViewer .ivt'); setFull(false);
64
+ if (!tl && window.czViewer && window.czViewer.isOpen()) window.czViewer.close();
65
+ }, true);
66
+ }
67
+ }
45
68
  const zoomOf = () => { if (!ZOOM) { const z = store.get('pmos.tasks.zoom'); ZOOM = ZOOMS.some((x) => x[0] === z) ? z : 'week'; } return ZOOM; };
46
69
  /** For the tests: forget the PM's picks. */
47
70
  export const resetViews = () => { VIEW = null; ZOOM = null; STAGE.clear(); SCROLL.clear(); };
@@ -83,7 +106,9 @@ const stageKeyOf = (v) => { const L = stagesOf(v), k = STAGE.get(v.id || v.key);
83
106
  export function headExtraHtml(v, m) {
84
107
  if (m === 'timeline') {
85
108
  const z = ZOOMS.find((x) => x[0] === zoomOf());
86
- return `<button type="button" class="ivx-pick" data-iv-zoom aria-haspopup="menu" aria-label="Zoom: ${esc(z[1].toLowerCase())}. Change">${esc(z[1])}${SVG(P.down, 14, 2)}</button>`;
109
+ const f = fullOn(), fl = f ? 'Back to the panel' : 'Full width';
110
+ return `<button type="button" class="ivx-pick" data-iv-zoom aria-haspopup="menu" aria-label="Zoom: ${esc(z[1].toLowerCase())}. Change">${esc(z[1])}${SVG(P.down, 14, 2)}</button>`
111
+ + (PHONE() ? '' : `<button type="button" class="iv-ib" data-iv-full aria-pressed="${f}" aria-label="${fl}" title="${fl}">${SVG(f ? P.unfull : P.full, 18)}</button>`);
87
112
  }
88
113
  if (m === 'kanban') {
89
114
  const L = stagesOf(v), k = stageKeyOf(v), x = L.find((y) => y.key === k);
@@ -142,16 +167,18 @@ export function timelineHtml(v, o, isOpen) {
142
167
  // the range: the open tasks around today, a little air each side; never more than a few years
143
168
  const ns = [];
144
169
  for (const s of S) { for (const x of flat(s).concat(flatDone(s))) { const a = dn(x.start), b = dn(x.end); if (a != null) ns.push(a); if (b != null) ns.push(b); if (x.cmp) { const c = dn(x.cmp.start), d = dn(x.cmp.due); if (c != null) ns.push(c); if (d != null) ns.push(d); } } for (const k of jiraOf(s)) { const b = dn(k.due); if (b != null) ns.push(b); } }
145
- const lo = Math.max(today - 730, Math.min(today - 14, ...ns) - 4), hi = Math.min(today + 1095, Math.max(today + 42, ...ns) + 10);
170
+ const lo = Math.max(today - 730, Math.min(today - 14, ...ns) - 4), hi = Math.min(today + Math.max(1095, z[3]), Math.max(today + z[3], ...ns) + 10);
146
171
  const O = lo - ((new Date(lo * 864e5).getUTCDay() + 6) % 7); // start on a Monday
147
172
  const W = Math.ceil((hi - O + 1) * px), X = (n) => Math.round((n - O) * px);
148
- // the axis: Mondays (Weeks), the 1st (Months), the quarter's first day (Quarters)
173
+ // the axis: Mondays (Weeks), the 1st (Months), the quarter's first day (Quarter, Year, 2 years), the year's first day (5 years)
149
174
  const ticks = [];
150
175
  for (let n = O; n <= hi; n++) {
151
176
  const d = new Date(n * 864e5), m = d.getUTCMonth(), y = d.getUTCFullYear();
152
177
  if (z[0] === 'week' && d.getUTCDay() === 1) ticks.push({ x: X(n), t: md(n), b: d.getUTCDate() <= 7 });
153
178
  if (z[0] === 'month' && d.getUTCDate() === 1) ticks.push({ x: X(n), t: MON[m] + (m === 0 ? ' ' + y : ''), b: m === 0 });
154
- if (z[0] === 'quarter' && d.getUTCDate() === 1 && m % 3 === 0) ticks.push({ x: X(n), t: 'Q' + (m / 3 + 1) + ' ' + y, b: m === 0 });
179
+ if ((z[0] === 'quarter' || z[0] === 'year') && d.getUTCDate() === 1 && m % 3 === 0) ticks.push({ x: X(n), t: 'Q' + (m / 3 + 1) + ' ' + y, b: m === 0 });
180
+ if (z[0] === 'y2' && d.getUTCDate() === 1 && m % 3 === 0) ticks.push({ x: X(n), t: m === 0 ? String(y) : 'Q' + (m / 3 + 1), b: m === 0 });
181
+ if (z[0] === 'y5' && d.getUTCDate() === 1 && m === 0) ticks.push({ x: X(n), t: String(y), b: true });
155
182
  }
156
183
  const drag = o.quick ? ' data-ivt-drag="1"' : '';
157
184
  // the compared version's days: a thin dark line with end caps under the bar, only where they differ; a dropped task keeps only its line
@@ -364,6 +391,7 @@ export function press(b, d, root, H, e) {
364
391
  if (hidden && d.ivView === viewMode()) { menuPop(b, 'Tasks view', VIEWS.map(([k, l]) => ({ k, label: l, on: k === viewMode() })), (x) => { setViewMode(x.k); if (H.redraw) H.redraw(); }); return true; }
365
392
  setViewMode(d.ivView); closePop(); if (H.redraw) H.redraw(); return true;
366
393
  }
394
+ if ('ivFull' in d) { setFull(!fullOn()); return true; }
367
395
  if ('ivZoom' in d) { menuPop(b, 'Zoom', ZOOMS.map(([k, l]) => ({ k, label: l, on: k === zoomOf() })), (x) => { ZOOM = x.k; store.set('pmos.tasks.zoom', x.k); if (H.redraw) H.redraw(); }); return true; }
368
396
  if ('ivKstage' in d) {
369
397
  const v = H.__v; if (!v) return true;
@@ -675,3 +675,7 @@ button.lk-mt:hover { color: var(--cz-ink) !important; }
675
675
  .iv-stc, .iv-dtc { min-height: 36px; }
676
676
  .iv-addp { width: 30px !important; height: 30px; }
677
677
  }
678
+ /* the Tasks Timeline in full width (batch 17 item 3): the Viewer that holds it takes the window, as the Board's timeline does */
679
+ @media (min-width: 721px) {
680
+ body.ivt-full #czViewer:has(.ivt) { position: fixed !important; inset: 12px; width: auto !important; max-width: none !important; flex-basis: auto !important; z-index: 90; border-radius: 16px; }
681
+ }
@@ -99,6 +99,7 @@ export function openWorkItem(o) {
99
99
  return;
100
100
  }
101
101
  const check = () => { try { setCheck('vw:' + vid, checkOf(t)); } catch { /* the old dialog has no header check */ } };
102
+ const del = deleteEntry({ ws, board, t, post: (p, b) => pmPost(p, b), toast: toastUndo, done: () => { cache.clear(); vwClose(vid); } });
102
103
  card = mountCard(host, t, {
103
104
  save: boardSaver({ ws, board, t, post: (p, b) => pmPost(p, b) }),
104
105
  toast: toastUndo,
@@ -107,6 +108,7 @@ export function openWorkItem(o) {
107
108
  iniTitleOf: (id) => ((lists.inis || []).find((x) => x.id === id) || {}).title || id,
108
109
  inis: () => lists.inis || [], owners: () => lists.owners || [], groups: () => lists.groups, sections: () => lists.sections,
109
110
  history: historyFor({ ws, board, t, post: (p, b) => pmPost(p, b) }), // what Claude changed with your ✓ (batch 12, TpA6)
111
+ ...(del ? { remove: del.on } : {}), // the trash at the end of the Status row (batch 17 item 2): ⋯ Delete's own write and Undo
110
112
  });
111
113
  check();
112
114
  // the pickers' lists: the board's initiatives and owners, the initiative's groups (read once, after the card shows)
@@ -97,3 +97,4 @@
97
97
  .tkc .tkc-h li small { font-size: var(--fs-2); color: var(--cz-ink3); line-height: 1.4; }
98
98
  .tkc .tkc-hu { width: 30px; height: 30px; border-radius: 999px; border: 0; background: none; color: var(--cz-ink2); display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
99
99
  .tkc .tkc-hu:hover { background: var(--cz-well); color: var(--cz-ink); }
100
+ .tkc .seg .ivq-del:hover, .tkc .seg .ivq-del:focus-visible { color: var(--cz-red); background: var(--cz-redbg, transparent); }
@@ -17,7 +17,8 @@
17
17
  * dueLine(t, now) → { text, late, lateText, none } the due row's words and the late text
18
18
  * mountCard(el, t, h) → { draw } wires the card; h: { save(patch) → Promise<{ ok, error?, from? }>, toast(msg, undo?),
19
19
  * openIni(id), inis() → [{ id, title }], owners() → [names], groups() → [names] | null,
20
- * sections() → [{ key, name, milestone }] | null, now?(), changed?(t) }
20
+ * sections() → [{ key, name, milestone }] | null, now?(), changed?(t),
21
+ * remove?() — the trash at the end of the Status row (batch 17 item 2; deleteEntry's on) }
21
22
  * boardSaver({ ws, board, t, post, layout }) → save the board's routes behind h.save: status → tasks/state, owner, notes, dates, the
22
23
  * section and the initiative → tasks/edit, the group → /api/initiative-layout place,
23
24
  * a Jira ticket's notes → tickets/note. Each answers { ok, from } so Undo is save(from). */
@@ -38,6 +39,7 @@ const I = {
38
39
  clear: '<path d="M6 6l12 12M18 6L6 18"/>', tick: '<path d="M20 6 9 17l-5-5"/>', user: '<circle cx="12" cy="8.5" r="3.5"/><path d="M5 20a7 7 0 0 1 14 0"/>',
39
40
  flag: '<path d="M6 21V4M6 4h11l-2 4 2 4H6"/>', drag: '<path d="M12 3v18M3 12h18M12 3l-3 3M12 3l3 3M12 21l-3-3M12 21l3-3M3 12l3-3M3 12l3 3M21 12l-3-3M21 12l-3 3"/>',
40
41
  dia: '<path d="M12 4l8 8-8 8-8-8z"/>',
42
+ bin: '<path d="M5 7h14M10 7V4h4v3M7 7l1 13h8l1-13"/>',
41
43
  };
42
44
  const ico = (d, w = 16) => `<svg width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${d}</svg>`;
43
45
  export const esc = (s) => String(s == null ? '' : s).replace(/[&<>"]/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' }[c]));
@@ -172,7 +174,9 @@ export function cardHtml(t, o = {}) {
172
174
  // after a divider, the ◇ toggle (feedback batch 11 item 3, canvas XmlA2Flag): its due date shows as ◇ on the Board and the timeline
173
175
  const msOn = !!t.milestone, msTip = msOn ? 'A milestone. Press to make it a plain task' : 'Make it a milestone: its due date shows as ◇ on the Board and the timeline';
174
176
  const msBtn = `<span class="vr" aria-hidden="true"></span><button type="button" class="ivq-ms${msOn ? ' on' : ''}" data-tkc-ms aria-pressed="${msOn}" aria-label="${msOn ? 'Milestone' : 'Make it a milestone'}" title="${msTip}">${ico(I.dia, 15)}${msOn ? 'Milestone' : ''}</button>`;
175
- const facts = `<div class="ovf tkc-f"><span class="k">Status</span><div class="v"><div class="seg" role="radiogroup" aria-label="Status">${seg}${msBtn}</div></div>`
177
+ // last, after its own divider, the trash (batch 17 item 2): the same Delete as the Tasks list's status picker, with Undo in the toast
178
+ const delBtn = o.del ? `<span class="vr" aria-hidden="true"></span><button type="button" class="ivq-del" data-tkc-del aria-label="Delete task" title="Delete task">${ico(I.bin, 15)}</button>` : '';
179
+ const facts = `<div class="ovf tkc-f"><span class="k">Status</span><div class="v"><div class="seg" role="radiogroup" aria-label="Status">${seg}${msBtn}${delBtn}</div></div>`
176
180
  + `<span class="k">Due</span><div class="v"><span class="anc">${dueBtn}${dOpen ? picker(t, o, now) : ''}</span>${late}</div>`
177
181
  + `<span class="k">Owner</span><div class="v"><span class="anc">${ownerBtn}${ownerPop}</span></div></div>`;
178
182
  const notes = `<div class="ovb"><label class="ovl" for="tkcNotes">Notes</label><textarea class="nt" id="tkcNotes" data-tkc-notes rows="2" maxlength="4000" placeholder="Add notes">${esc(t.notes)}</textarea></div>`;
@@ -226,7 +230,7 @@ export function mountCard(el, t, h) {
226
230
  const draw = () => {
227
231
  const keep = document.activeElement && el.contains(document.activeElement) && document.activeElement.matches('[data-tkc-notes]');
228
232
  if (keep) return; // never redraw under the PM's typing
229
- el.innerHTML = cardHtml(t, { ...st, ...lists(), hist: st.hist, histOpen: st.histOpen, now: h.now ? h.now() : Date.now() });
233
+ el.innerHTML = cardHtml(t, { ...st, ...lists(), hist: st.hist, histOpen: st.histOpen, del: !!h.remove, now: h.now ? h.now() : Date.now() });
230
234
  const f = el.querySelector('.tkc-new input'); if (f && (st.open === 'owner' || st.open === 'group')) f.focus();
231
235
  };
232
236
  const word = (kind) => (WORDS[kind] || (() => 'Saved'))(t, h);
@@ -262,6 +266,7 @@ export function mountCard(el, t, h) {
262
266
  }
263
267
  if (d.tkcState) { if (d.tkcState !== t.status) { st.open = null; change('status', { status: d.tkcState }); } return; }
264
268
  if ('tkcMs' in d) { st.open = null; change('milestone', { milestone: !t.milestone }); return; }
269
+ if ('tkcDel' in d && h.remove) { st.open = null; b.disabled = true; Promise.resolve(h.remove()).catch(() => null).then(() => { if (b.isConnected) b.disabled = false; }); return; }
265
270
  if (d.tkcDay != null && b.closest('.tkc-dp')) { pick(d.tkcDay); return; }
266
271
  if (d.tkcField) { st.field = d.tkcField; st.month = ''; draw(); return; }
267
272
  if (d.tkcMonth) { st.month = d.tkcMonth; draw(); return; }
@@ -7,6 +7,8 @@
7
7
  * the toast says "Deleted · <title>." with Undo, and Undo restores it
8
8
  * I a breakdown item (<initiative>.<10 characters>) gets the same trash; a Jira ticket draws no caret, so it has none
9
9
  * P the phone: a long press on the box opens the same picker, with the trash
10
+ * V the Task Viewer (batch 17 item 2; Wawan: "no delete menu on Task viewer"): its Status row ends in the same trash after its own divider,
11
+ * ⋯ opens and ends in Delete, and a press deletes at once with the Undo toast and closes the Viewer
10
12
  * SHOTS_16=<dir>: the picker with the trash, the toast, and the phone, into <dir>. */
11
13
  const path = require('path');
12
14
  const { spawn } = require('child_process');
@@ -104,6 +106,35 @@ const ITEMS = [
104
106
  await ctx.close();
105
107
  }
106
108
 
109
+ /* V — the Task Viewer, opened from the task's title on the panel */
110
+ {
111
+ const { ctx, page: p, errors, posts } = await open();
112
+ await p.route('**/api/boards/items*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, items: [], initiatives: [] }) }));
113
+ await p.route('**/api/initiative-layout*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, names: [], of: {} }) }));
114
+ await p.route('**/api/proposals/history*', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, history: [] }) }));
115
+ await p.click('#ibBody [data-key="board:scarlet"]');
116
+ await p.waitForSelector('.iv-tr', { timeout: 8000 });
117
+ await unfold(p);
118
+ await p.click('.iv-tt[data-iv-task="task-api"]');
119
+ await p.waitForSelector('.tkc .seg', { timeout: 8000 }).catch(() => {});
120
+ const row = await p.evaluate(() => {
121
+ const seg = document.querySelector('.tkc .seg'); if (!seg) return null;
122
+ const b = seg.querySelector('.ivq-del');
123
+ return b ? { lbl: b.getAttribute('aria-label'), text: b.textContent, last: seg.lastElementChild === b, afterVr: !!(b.previousElementSibling && b.previousElementSibling.classList.contains('vr')) } : { none: true };
124
+ });
125
+ ok('V the Viewer\'s Status row ends in the trash, icon only, after its own divider', row && row.lbl === 'Delete task' && row.text === '' && row.last && row.afterVr, JSON.stringify(row));
126
+ await p.click('[data-cz-vw="more"]'); await p.waitForTimeout(200);
127
+ const menu = await p.evaluate(() => [...document.querySelectorAll('.cz-vw-menu button')].map((x) => x.textContent.trim()));
128
+ ok('V ⋯ opens and its last entry is Delete', menu.length && menu[menu.length - 1] === 'Delete', JSON.stringify(menu));
129
+ await p.keyboard.press('Escape'); await p.mouse.click(5, 5); await p.waitForTimeout(150);
130
+ await shot(p, 'delete-viewer-1440');
131
+ await p.click('.tkc .seg .ivq-del'); await p.waitForTimeout(500);
132
+ const after = await p.evaluate(() => ({ toast: (document.getElementById('bdToast') || {}).textContent || '', card: !!document.querySelector('.tkc .seg'), dialog: !!document.querySelector('[role="alertdialog"], dialog[open]') }));
133
+ ok('V the trash deletes at once: the delete route, no confirm, the toast with Undo, and the Viewer closes', posts.length === 1 && posts[0][0] === 'delete' && posts[0][1].task === 'task-api' && !after.dialog && !after.card && /^Deleted · Ship the article summaries API\.\s*Undo$/.test(after.toast.trim()), JSON.stringify({ posts, after }));
134
+ ok('the Viewer threw nothing', !errors.length, errors.join('\n'));
135
+ await ctx.close();
136
+ }
137
+
107
138
  /* P — the phone: a long press on the box opens the picker, with the trash */
108
139
  {
109
140
  const { ctx, page: p, errors } = await open({ w: 390, h: 844, phone: true });
@@ -151,6 +151,12 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
151
151
  const mz = await until(() => p.evaluate(() => { const z = document.querySelector('#czViewer [data-iv-zoom]'); return z && z.textContent === 'Months' ? document.querySelector('#czViewer .ivt').dataset.px : null; }));
152
152
  ok('V4 the zoom picker changes Weeks to Months', mz === '4', mz);
153
153
  await p.click('#czViewer [data-iv-zoom]');
154
+ const zl = await p.evaluate(() => [...document.querySelectorAll('.tkc.ivq [data-ivq-i]')].map((x) => x.textContent.trim()));
155
+ ok('V4 the zoom picker offers Weeks, Months, Quarter, Year, 2 years and 5 years (batch 17 item 3)', ['Weeks', 'Months', 'Quarter', 'Year', '2 years', '5 years'].every((t) => zl.some((x) => x.includes(t))), JSON.stringify(zl));
156
+ await p.evaluate(() => { const b = [...document.querySelectorAll('.tkc.ivq [data-ivq-i]')].find((x) => /5 years/.test(x.textContent)); if (b) b.click(); });
157
+ const y5 = await until(() => p.evaluate(() => { const z = document.querySelector('#czViewer [data-iv-zoom]'); if (!z || z.textContent !== '5 years') return null; const T = document.querySelector('#czViewer .ivt'); return { px: T.dataset.px, ticks: [...T.querySelectorAll('.ivt-r.ax .ivt-c span')].map((e) => e.textContent.trim()).filter(Boolean).slice(0, 8) }; }));
158
+ ok('V4 5 years draws the axis by year', y5 && y5.px === '0.16' && y5.ticks.length && y5.ticks.every((t) => /^\d{4}$/.test(t)), JSON.stringify(y5));
159
+ await p.click('#czViewer [data-iv-zoom]');
154
160
  await p.evaluate(() => { const b = [...document.querySelectorAll('.tkc.ivq [data-ivq-i]')].find((x) => /Weeks/.test(x.textContent)); if (b) b.click(); });
155
161
  await until(() => p.evaluate(() => (document.querySelector('#czViewer [data-iv-zoom]') || {}).textContent === 'Weeks'));
156
162
 
@@ -175,6 +181,16 @@ const model = () => { const M = BP.build(F.facts()); const r = M.rows.find((x) =
175
181
  await p.keyboard.press('Escape');
176
182
  ok('V5 Escape closes the picker and leaves the panel open', await p.evaluate(() => !document.querySelector('.tkc.ivq') && !!document.querySelector('#czViewer .ivt')));
177
183
 
184
+ /* V4 full width (batch 17 item 3): the Timeline takes the window, as the Board's does; Escape goes back to the panel */
185
+ const pw = await p.evaluate(() => document.querySelector('#czViewer').getBoundingClientRect().width);
186
+ await p.click('#czViewer [data-iv-full]');
187
+ const fw = await until(() => p.evaluate(() => { const r = document.querySelector('#czViewer').getBoundingClientRect(); return r.width > innerWidth - 40 ? { w: Math.round(r.width), pressed: document.querySelector('#czViewer [data-iv-full]').getAttribute('aria-pressed') } : null; }));
188
+ ok('V4 Full width spreads the Timeline over the window, the icon pressed', !!fw && fw.pressed === 'true' && pw < fw.w, JSON.stringify({ pw, fw }));
189
+ await shot(p, 'timeline-full-1440');
190
+ await p.keyboard.press('Escape');
191
+ const back = await until(() => p.evaluate(() => (!document.body.classList.contains('ivt-full') && !!document.querySelector('#czViewer .ivt') ? Math.round(document.querySelector('#czViewer').getBoundingClientRect().width) : null)));
192
+ ok('V4 Escape takes the Timeline back to the panel, the Viewer stays open', back != null && back < fw.w, String(back));
193
+
178
194
  /* V6 Kanban: one stage at a time (the current first), columns by status, Won't do a folded strip */
179
195
  await p.click('#czViewer [data-iv-view="kanban"]');
180
196
  await until(() => p.evaluate(() => !!document.querySelector('#czViewer .ivk')));