create-pmos 0.416.0 → 0.418.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 (37) hide show
  1. package/package.json +25 -25
  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/board-programs-test.js +68 -1
  7. package/workspace/briefing-premium-board-test.js +21 -19
  8. package/workspace/changelog.json +24 -0
  9. package/workspace/guide/workflows.md +3 -2
  10. package/workspace/lib/engine/boards.js +7 -2
  11. package/workspace/lib/initiative-chat.js +1 -1
  12. package/workspace/lib/initiative-premium.js +7 -4
  13. package/workspace/lib/routes-boards.js +73 -4
  14. package/workspace/lib/task-cli.js +27 -3
  15. package/workspace/lib/task-items.js +5 -1
  16. package/workspace/lib/workflow-cli.js +9 -3
  17. package/workspace/package-lock.json +2 -2
  18. package/workspace/package.json +1 -1
  19. package/workspace/premium-board-actions-test.js +9 -5
  20. package/workspace/public/pm/bd-acts.js +3 -2
  21. package/workspace/public/pm/bd-scroll.js +164 -0
  22. package/workspace/public/pm/bd-span.js +151 -188
  23. package/workspace/public/pm/bd-stages.js +3 -25
  24. package/workspace/public/pm/cozy-board.css +92 -71
  25. package/workspace/public/pm/home-app.js +2 -0
  26. package/workspace/public/pm/home-data.js +17 -4
  27. package/workspace/public/pm/home-ini-model.js +5 -1
  28. package/workspace/public/pm/home-ini.js +4 -2
  29. package/workspace/public/pm/home-list.js +3 -3
  30. package/workspace/public/pm/home-task.js +4 -1
  31. package/workspace/public/pm/ini-view-model.js +4 -2
  32. package/workspace/public/pm/premium-board.js +49 -38
  33. package/workspace/public/pm/premium-vw-item.js +5 -2
  34. package/workspace/public/pm/task-card.js +12 -0
  35. package/workspace/public/premium-board.html +3 -2
  36. package/workspace/server.js +3 -0
  37. package/workspace/task-card-test.js +7 -0
@@ -204,8 +204,6 @@ body.bd-page main.bd-main { position: relative; max-width: none; margin: 16px; p
204
204
  .bd-x svg { width: 18px; height: 18px; }
205
205
  .bd-help-p { margin: 2px 0 18px; font-size: 13.5px; color: var(--cz-ink3); }
206
206
  .bd-tbl { display: grid; grid-template-columns: 140px 110px 1.3fr 1.3fr 1fr; border: 1px solid var(--cz-hair); border-radius: 18px; overflow: hidden; font-size: 13px; }
207
- .bd-tbl4 { grid-template-columns: 150px 140px 1.3fr 1.2fr; }
208
- .bd-tbl3 { grid-template-columns: 170px 1fr 1fr; margin-top: 22px; }
209
207
  .bd-tr { display: contents; }
210
208
  .bd-tr > span { padding: 10px 14px; line-height: 1.25; border-top: 1px solid var(--cz-hair); }
211
209
  .bd-tr.th > span { background: var(--cz-well); font-weight: 800; font-size: 12.5px; color: var(--cz-ink2); border-top: 0; }
@@ -330,7 +328,7 @@ button.gi:hover .n { color: var(--cz-blueink); }
330
328
  .pk-acts .bd-ib { width: 32px; height: 32px; }
331
329
  .pk-acts .bd-ib svg { width: 16px; height: 16px; }
332
330
 
333
- /* ── the timeline (AgBoardTimeline, AgBoardTlYear, AgBoardTl5y) ── */
331
+ /* ── the timeline (AgBoardTimeline; feedback batch 7 timeline spans C: TsCOpen, TsCDesk, TsAllSpans, TsCEdges, TsCPhone) ── */
334
332
  #ibBody[data-view="time"] { flex: 1; display: flex; flex-direction: column; }
335
333
  .tg { border: 1px solid var(--cz-hair); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
336
334
  .tg-q { flex: 1; }
@@ -345,19 +343,16 @@ body.bd-page[data-bd-view="time"] #cIni:not([hidden]) { flex: 1; display: flex;
345
343
  .tg-n { all: unset; box-sizing: border-box; padding: 8px 10px 8px 14px; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; border-right: 1px solid var(--cz-hair); cursor: default; }
346
344
  button.tg-n { cursor: pointer; }
347
345
  button.tg-n:hover b { color: var(--cz-blueink); }
348
- .tg-n:focus-visible, .tg-line:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; border-radius: 8px; }
346
+ .tg-n:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; border-radius: 8px; }
349
347
  .tg-n b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 7px; }
350
348
  .tg-n small { font-size: 12px; color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
351
349
  .tg-h .tg-n b { font-size: 12.5px; color: var(--cz-ink2); }
352
350
  .tg-h .tg-n small { font-size: 11px; font-weight: 700; }
353
- .tg-h .tg-help { cursor: help; }
354
- .tg-h .tg-help:hover b { color: var(--cz-ink); }
355
351
  .tg-p { position: relative; min-height: 40px; }
356
- .tg-h .tg-p span { position: absolute; top: 0; bottom: 0; padding: 7px 10px 0; line-height: 1.25; display: flex; flex-direction: column; justify-content: flex-start; border-left: 1px solid var(--cz-hair); font-size: 12px; white-space: nowrap; }
357
- .tg-q .tg-h .tg-p span, .tg-q .tg-h .tg-n { justify-content: center; padding-top: 0; padding-bottom: 0; }
358
- .tg-y .tg-r, .tg-5y .tg-r { grid-template-columns: 230px minmax(0, 1fr); } /* AgBoardTlYear, AgBoardTl5y: a 230 px theme column */ /* one line of week heads: centred, as AgBoardTimeline */
359
- .tg-h .tg-p span b { color: var(--cz-ink2); font-weight: 800; }
360
- .tg-h .tg-p span small { color: var(--cz-ink3); font-weight: 700; font-size: 11px; }
352
+ .tg-h .tg-p > span[data-y] { position: absolute; top: 0; bottom: 0; padding: 7px 10px 0; line-height: 1.25; display: flex; flex-direction: column; justify-content: flex-start; border-left: 1px solid var(--cz-hair); font-size: 12px; white-space: nowrap; }
353
+ .tg-q .tg-h .tg-p > span[data-y], .tg-q .tg-h .tg-n { justify-content: center; padding-top: 0; padding-bottom: 0; }
354
+ .tg-h .tg-p > span[data-y] b { color: var(--cz-ink2); font-weight: 800; }
355
+ .tg-h .tg-p > span[data-y] small { color: var(--cz-ink3); font-weight: 700; font-size: 11px; }
361
356
  .tg-gl { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--cz-hair); }
362
357
  .tg-sb { position: absolute; top: 0; bottom: 0; background: rgba(72,148,234,.05); }
363
358
  .tg-rl { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid rgba(42,46,53,.22); }
@@ -389,56 +384,87 @@ button.tg-n:hover b { color: var(--cz-blueink); }
389
384
  .tg-axl.rl { top: 6px; color: var(--cz-blueink); transform: translateX(-16px); }
390
385
  .tg-axl svg, .tg-rel svg { width: 12px; height: 12px; }
391
386
  .tg-ft { margin-top: auto; padding: 12px 14px 12px 84px; font-size: 12px; font-weight: 700; color: var(--cz-ink3); display: flex; align-items: center; gap: 12px; justify-content: space-between; }
392
- .tg-y .tg-ft, .tg-5y .tg-ft { background: var(--bd-row); border-top: 1px solid var(--cz-hair); font-weight: 800; }
393
387
  .tg-ft .cz-ms { margin: 0 2px 1px 4px; }
394
388
  .tg-none { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--cz-ink3); font-weight: 600; }
395
389
  .tg-none b { color: var(--cz-ink2); font-weight: 800; }
396
390
  .tg-none .bd-chip { font-weight: 700; }
397
391
  .tg-hid { font-weight: 600; }
398
- .tg-go { font: 700 12px var(--cz-sans); color: var(--cz-ink3); background: none; border: 0; padding: 0; cursor: pointer; }
399
- .tg-go:hover { color: var(--cz-ink); }
400
- .tg-go2 { font-weight: 700; }
401
392
  .tg-empty { margin: 0; padding: 18px 14px; font-size: 13px; color: var(--cz-ink3); }
402
- /* Year and 5 yr: themes */
403
- .tg-th { min-height: 126px; }
404
- .tg-5 { min-height: 78px; }
405
- .tg-tn { padding: 14px 14px 12px; justify-content: flex-start; gap: 2px; }
406
- .tg-tn b { font-size: 14px; }
407
- .tg-tn small { font-size: 12.5px; }
408
- .tg-tn em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--cz-ink2); margin-top: 4px; }
409
- .tg-sw { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: none; }
410
- .tg-sw.k0 { background: var(--cz-c-8c929b); } .tg-sw.k1 { background: var(--cz-c-4894ea); } .tg-sw.k2 { background: var(--cz-c-5e9c6a); } .tg-sw.k3 { background: var(--cz-c-d4a13a); } .tg-sw.k4 { background: var(--cz-c-b07cc6); } .tg-sw.k5 { background: var(--cz-c-d9773f); }
411
- .tg-stack { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; overflow: hidden; }
412
- .tg-y .tg-body > .tg-th:first-of-type .tg-stack { padding-top: 26px; } /* the first theme's bars start under the Today pill */
413
- .tg-line { all: unset; position: relative; display: block; height: 20px; cursor: pointer; z-index: 3; }
414
- .tg-yb { position: absolute; top: 0; height: 20px; border-radius: 6px; background: color-mix(in srgb, var(--tone) 22%, var(--cz-card)); min-width: max-content; }
415
- .tg-yb > b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: color-mix(in srgb, var(--tone) 45%, var(--cz-card)); }
416
- .tg-yb em { position: relative; display: flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; font-style: normal; font-size: 12px; color: var(--cz-ink3); white-space: nowrap; }
417
- .tg-yb em strong { color: var(--cz-ink); font-weight: 800; }
418
- .tg-yb em .cz-dot { width: 7px; height: 7px; }
419
- .tg-yb.ms::after { content: ""; position: absolute; right: -6px; top: 4px; width: 11px; height: 11px; border-radius: 2px; transform: rotate(45deg); background: var(--tone); }
420
- .tg-nod { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--cz-ink3); }
421
- .tg-today, .tg-far { position: absolute; top: 4px; z-index: 5; transform: translateX(-50%); font-size: 11px; font-weight: 800; white-space: nowrap; background: var(--cz-card); color: var(--cz-ink); padding: 1px 6px; border-radius: 999px; box-shadow: 0 0 0 1px var(--cz-hair); }
422
- .tg-far { transform: none; color: var(--cz-ink2); box-shadow: none; }
423
- .tg-dir { position: absolute; top: 0; bottom: 0; right: 0; background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(42,46,53,.035) 8px 16px); }
424
- .tg-5 .tg-p { overflow: hidden; }
425
- .tg-phase { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; min-width: max-content; top: 50%; transform: translateY(-50%); height: 34px; border-radius: 10px; padding: 3px 12px; background: color-mix(in srgb, var(--tone) 30%, var(--cz-card)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; z-index: 3; }
426
- .tg-phase.dir { background: transparent; border: 1px dashed rgba(42,46,53,.25); }
427
- .tg-phase b { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
428
- .tg-phase small { font-size: 11px; color: var(--cz-ink2); white-space: nowrap; }
429
- .tg-phase:focus-visible { outline: 2px solid var(--cz-blue); }
430
- /* the phone timeline (AgBoardTimelinePhone) */
431
- .tgp { border: 1px solid var(--cz-hair); border-radius: 14px; background: var(--cz-card); overflow: hidden; }
432
- .tgp-h { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 11px; font-weight: 700; color: var(--cz-ink3); background: var(--cz-well); }
433
- .tgp-h span { padding: 8px; }
434
- .tgp-r { all: unset; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start; width: 100%; min-height: 58px; border-top: 1px solid var(--cz-hair); padding: 8px 10px 0; cursor: pointer; position: relative; }
435
- .tgp-r.sel { background: var(--cz-bluebg); }
436
- .tgp-t { display: flex; align-items: center; gap: 6px; font-size: 13px; position: relative; z-index: 4; }
437
- .tgp-t b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--cz-card); padding: 0 4px 0 2px; border-radius: 4px; }
438
- .tgp-t .cs { margin-left: auto; flex: none; background: var(--cz-card); padding: 0 2px 0 4px; border-radius: 4px; }
439
- .tgp-p { position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
440
- .tgp-p .tg-bar, .tgp-p .tg-over, .tgp-p .tg-fc, .tgp-p .tg-dm { top: 40px; }
441
- .tgp-f { display: flex; justify-content: space-between; padding: 8px 10px; font-size: 11px; font-weight: 800; border-top: 1px solid var(--cz-hair); }
393
+ /* every span from Quarter on scrolls sideways (pm/bd-scroll.js): the track is --tw wide, the name column stays pinned, the scrollbar shows on
394
+ hover only and the fades show only on the side where there is more (TsCGrill 13, 14) */
395
+ .tg-s { --nw: 250px; }
396
+ .tg-sc { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; outline: none; }
397
+ .tg-sc::-webkit-scrollbar { height: 0; }
398
+ .tg-s:hover .tg-sc { scrollbar-width: thin; }
399
+ .tg-s:hover .tg-sc::-webkit-scrollbar { height: 8px; }
400
+ .tg-sc::-webkit-scrollbar-thumb { background: var(--bd-plan); border-radius: 4px; }
401
+ .tg-sc:focus-visible { box-shadow: inset 0 0 0 2px var(--cz-blue); border-radius: 18px; }
402
+ .tg-s.dragging, .tg-s.dragging * { cursor: grabbing !important; user-select: none; }
403
+ .tg-in { width: calc(var(--nw) + var(--tw)); }
404
+ .tg-s .tg-r, .tg-s .tg-ax { grid-template-columns: var(--nw) var(--tw); }
405
+ .tg-s .tg-n, .tg-s .tg-kid .tg-n, .tg-s .tg-gr .tg-n { position: sticky; left: 0; z-index: 6; background: var(--cz-card); }
406
+ .tg-s .tg-pdl { overflow: hidden; text-overflow: ellipsis; }
407
+ .tg-s .tg-h .tg-n { background: var(--cz-well); flex-direction: row; align-items: center; justify-content: space-between; }
408
+ .tg-s .tg-pg > .tg-n { background: linear-gradient(var(--bd-progbg), var(--bd-progbg)), var(--cz-card); }
409
+ .tg-s .tg-r.sel > .tg-n { background: linear-gradient(var(--cz-bluebg), var(--cz-bluebg)), var(--cz-card); }
410
+ .tg-s .tg-prd .bd-prdb, .tg-s .tg-psb > span { position: sticky; left: 14px; width: calc(var(--vw, 100%) - 30px); flex: none; box-sizing: border-box; }
411
+ .tg-s .tg-psb > span { left: 50px; width: auto; }
412
+ .tg-s .tg-p { overflow: visible; }
413
+ .tg-s .tg-body .tg-p { overflow: hidden; }
414
+ .tg-s .tg-bar { cursor: pointer; }
415
+ .tg-out { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(42,46,53,.04) 6px 12px); }
416
+ .tg-s .tg-h .tg-p span.pin { color: var(--cz-ink3); }
417
+ .tg-s .tg-h .tg-p span.pin b { color: var(--cz-ink3); }
418
+ /* Today: the pill on the line in view; off screen the back button beside "Initiative" with its arrow pointing the way (TsCDesk, TsCGrill 4) */
419
+ .tg-tpill { position: absolute; bottom: -9px; transform: translateX(-50%); z-index: 7; font-size: 11px; font-weight: 800; line-height: 18px; padding: 0 7px; border-radius: 999px; background: var(--cz-ink); color: var(--cz-card); white-space: nowrap; pointer-events: none; }
420
+ .tg-tback { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 9px 0 6px; border-radius: 999px; background: var(--cz-ink); color: var(--cz-card); font: 800 11.5px var(--cz-sans); white-space: nowrap; }
421
+ .tg-tback[hidden] { display: none; }
422
+ .tg-tback svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
423
+ .tg-tback.l svg:last-child, .tg-tback.r svg:first-child { display: none; }
424
+ .tg-tback.r { padding: 0 6px 0 9px; }
425
+ .tg-tback:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
426
+ .tg-h { position: relative; z-index: 8; }
427
+ /* the edge tabs (TsCDesk, TsCEdges 1): one per side, at the view's edge; late work in the late colour, a program's milestone in its colour */
428
+ .tg-edge { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 8px 0 4px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink2); font: 800 11.5px var(--cz-sans); white-space: nowrap; }
429
+ .tg-edge[hidden] { display: none; }
430
+ .tg-edge.r { transform: translate(-100%, -50%); padding: 0 4px 0 8px; }
431
+ .tg-edge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
432
+ .tg-edge.late { background: var(--cz-latebg); color: var(--cz-late); }
433
+ .tg-edge.pg { background: var(--cz-card); color: var(--bd-prog); box-shadow: inset 0 0 0 1px var(--bd-progln); }
434
+ .tg-edge:hover { filter: brightness(.97); }
435
+ .tg-edge:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
436
+ .tg-fade { position: absolute; top: 0; bottom: 0; width: 28px; pointer-events: none; z-index: 7; opacity: 0; transition: opacity .2s; }
437
+ .tg-fade.l { left: var(--nw); background: linear-gradient(90deg, var(--cz-card), transparent); }
438
+ .tg-fade.r { right: 0; background: linear-gradient(-90deg, var(--cz-card), transparent); }
439
+ .tg-s.more-l .tg-fade.l, .tg-s.more-r .tg-fade.r { opacity: .9; }
440
+ .tg-scw { position: relative; }
441
+ .tg-r.tint, .tgq-r.tint { animation: tg-tint 1.6s ease-out; }
442
+ @keyframes tg-tint { 0%, 40% { background: var(--cz-bluebg); } 100% { background: transparent; } }
443
+ @media (prefers-reduced-motion: reduce) { .tg-r.tint, .tgq-r.tint { animation: none; background: var(--cz-bluebg); } }
444
+ /* the phone (TsCPhone, TsCPhoneBack): each row carries its name above its bar; the name rides at the left while you swipe */
445
+ .tgq { --nw: 0px; border-radius: 16px; }
446
+ .tgq .tg-fade.l { left: 0; }
447
+ .tgq-h { position: relative; height: 38px; background: var(--cz-well); width: var(--tw); }
448
+ .tgq-h .tg-p { position: absolute; inset: 0; min-height: 0; }
449
+ .tgq-h .tg-p > span[data-y] { position: absolute; top: 0; bottom: 0; padding: 6px 8px 0; border-left: 1px solid var(--cz-hair); display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.2; white-space: nowrap; }
450
+ .tgq-h .tg-p > span[data-y] b { font-weight: 800; color: var(--cz-ink2); }
451
+ .tgq-h .tg-p > span[data-y] small { font-size: 10.5px; font-weight: 700; color: var(--cz-ink3); }
452
+ .tgq-h .tg-p > span.pin, .tgq-h .tg-p > span.pin b { color: var(--cz-ink3); }
453
+ .tgq-h .tg-tpill { bottom: 2px; }
454
+ .tgq-r { position: relative; width: var(--tw); border-top: 1px solid var(--cz-hair); padding-top: 4px; }
455
+ .tgq-r.sel { background: var(--cz-bluebg); }
456
+ .tgq-r.tg-pg { background: var(--bd-progbg); }
457
+ .tgq-n { all: unset; box-sizing: border-box; position: sticky; left: 0; z-index: 4; display: inline-flex; align-items: center; gap: 6px; max-width: var(--vw, 100%); padding: 2px 10px; font-size: 13px; cursor: pointer; }
458
+ .tgq-n b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
459
+ .tgq-n:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; border-radius: 8px; }
460
+ .tgq-n.tg-pgn { display: flex; width: var(--vw, 100%); cursor: default; padding: 4px 6px 2px 10px; }
461
+ .tgq-r .tg-p { position: relative; height: 22px; min-height: 0; overflow: hidden; }
462
+ .tgq-r .tg-pdm, .tgq-r .tg-clu, .tgq-r .tg-span { top: 50%; }
463
+ .tgq .tg-tback { position: absolute; top: 7px; z-index: 9; }
464
+ .tgq .tg-tback.l { left: 6px; }
465
+ .tgq .tg-tback.r { right: 6px; }
466
+ .tgq .tg-edge { height: 20px; font-size: 11px; }
467
+ .tgq + .tg-none { margin-top: 12px; }
442
468
  .tg-rel { display: inline-flex; align-items: center; gap: 4px; color: var(--cz-blueink); }
443
469
  .tg-note { margin: 6px 0 0; font-size: 11.5px; color: var(--cz-ink3); }
444
470
 
@@ -453,6 +479,7 @@ button.tg-n:hover b { color: var(--cz-blueink); }
453
479
  .bt-cells { grid-template-columns: repeat(8, 50px); }
454
480
  .bt-h .bt-cells > div { font-size: 10.5px; }
455
481
  .tg-r, .tg-ax { grid-template-columns: 180px minmax(0, 1fr); }
482
+ .tg-s { --nw: 180px; }
456
483
  }
457
484
 
458
485
  /* ── phone (AgBoardPhone, AgBoardPhoneSheet, AgBoardTimelinePhone): a one-line top bar, cards, and a bottom sheet ── */
@@ -506,7 +533,7 @@ button.tg-n:hover b { color: var(--cz-blueink); }
506
533
  .bt-srt { display: none; }
507
534
  .bd-pop { position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; max-height: 80vh; border-radius: 24px; padding: 18px; }
508
535
  .bd-help-h h2 { font-size: 19px; }
509
- .bd-tbl, .bd-tbl4, .bd-tbl3 { grid-template-columns: 1fr 1fr; }
536
+ .bd-tbl { grid-template-columns: 1fr 1fr; }
510
537
  .bd-tr.th { display: none; }
511
538
  .bd-tr > span:nth-child(n+3) { grid-column: 1 / -1; border-top: 0; padding-top: 0; }
512
539
  .pk-h { padding-top: 22px; }
@@ -613,11 +640,6 @@ button.bd-lr:hover { background: var(--bd-row); }
613
640
  .tg-msl.you { top: 50%; transform: translate(10px, -50%); }
614
641
  .tg-dep { position: absolute; bottom: 1px; font-size: 10.5px; font-weight: 700; color: var(--cz-ink3); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; z-index: 3; }
615
642
  .tg-dep svg { width: 11px; height: 11px; }
616
- /* 5 yr (AgBoardTl5y): the phase sits in the row's top part; its milestones go under it in the theme's colour, the label right of the ◆ */
617
- .tg-5 .tg-phase { top: 16px; transform: none; }
618
- .tg-5y .tg-today, .tg-5y .tg-far { top: 1px; }
619
- .tg-5 .tg-msd { top: 60px; background: var(--tone, var(--cz-blue)); box-shadow: 0 0 0 2px var(--cz-card); }
620
- .tg-5 .tg-msl { top: 60px; transform: translate(10px, -50%); font-size: 11px; color: var(--cz-ink); }
621
643
 
622
644
  @media (max-width: 720px) {
623
645
  .bd-lr, .bd-lr.doc { grid-template-columns: minmax(0, 1fr) auto; }
@@ -1115,16 +1137,15 @@ html[data-theme="dark"] body.bd-page { --bd-prog: rgb(180,170,240); --bd-progbg:
1115
1137
  .bd-fold { width: 44px; height: 44px; }
1116
1138
  }
1117
1139
 
1118
- /* programs first on every span (PgTimeline's rule): the long spans' program row brackets its initiatives' bars and carries its milestones */
1119
- .tg-pms { position: relative; flex: none; height: 40px; margin-bottom: -6px; }
1120
- .tg-y .tg-body > .tg-pg:first-of-type .tg-stack { padding-top: 30px; }
1121
- .tg-pms .tg-pdm, .tg-pms .tg-clu, .tg-pms .tg-span { top: 72%; }
1122
- .tg-pms .tg-pdl { bottom: calc(28% + 10px); }
1123
- .tg-y .tg-pg .tg-yb > b { background: color-mix(in srgb, var(--bd-prog) 40%, var(--cz-card)); }
1124
- .tg-5.tg-pg { min-height: 96px; }
1125
- .tg-5 .tg-pms { position: absolute; left: 0; right: 0; top: 52px; height: 40px; margin: 0; }
1126
- .tg-phase.pg { background: color-mix(in srgb, var(--bd-prog) 18%, var(--cz-card)); color: var(--bd-prog); }
1127
- .tg-phase.pg small { color: var(--cz-ink2); }
1140
+ /* a phone's span picker beside the product picker (TsCPhone, TsCPhoneSpan); the page title gives it the room */
1141
+ .bd-spw { margin-left: 6px; }
1142
+ .bd-spw .bd-grpm { left: 0; right: auto; }
1143
+ .bd-spw .bd-spk { gap: 2px; }
1144
+ .bd-spw .bd-spk svg { width: 14px; height: 14px; }
1145
+ body.bd-spick .bd-hd .bd-title { display: none; }
1146
+ body.bd-spick .bd-hd .bd-tools { margin-left: auto; }
1147
+ @media (max-width: 720px) { .bd-spw .bd-spk, .bd-spw .bd-grpm button { min-height: 44px; } }
1148
+ /* programs first on every span (PgTimeline's rule): the program row brackets its initiatives' bars and carries its milestones */
1128
1149
  .sp-pg { background: var(--bd-progbg); min-height: 56px; }
1129
1150
  .sp-pg .sp-n { flex-direction: row; align-items: center; justify-content: flex-start; }
1130
1151
  .sp-pg .sp-t { position: relative; }
@@ -1278,6 +1278,8 @@ async function endRow(id) {
1278
1278
  S.endArm = null;
1279
1279
  const res = await pmPost('/api/session/remove', { id: r.sid });
1280
1280
  if (!res || !res.ok) { toast((res && res.error) || 'The session did not end.'); return; }
1281
+ // a resting chat's older ended runs go with it, so the row does not come back as the run before it (batch 7 item 1)
1282
+ if (r.key) for (const o of S.D.sessions.filter((x) => x.superseded && H.keyOfSession(x) === r.key)) await pmPost('/api/session/remove', { id: o.id });
1281
1283
  toast('Ended. The conversation is kept.');
1282
1284
  } else if (r.kind === 'need') {
1283
1285
  const res = await bpPost('put-off', { key: r.key, until: 'tomorrow' });
@@ -54,7 +54,10 @@ export function iniOfSession(s) {
54
54
  const k = keyOfSession(s); const m = k && /^(?:init|board):([^:]+)/.exec(k);
55
55
  return m ? m[1] : null;
56
56
  }
57
- const stateOf = (s) => (s.shown === 'needs' ? 'needs' : s.shown === 'blocked' ? 'blocked' : s.shown === 'working' ? 'working' : s.shown === 'exited' ? 'exited' : 'quiet');
57
+ /** A chat PMOS ended to save memory (idle an hour, or room for a newer chat), not the PM: it resumes on its next message, so Home keeps
58
+ * its row, quiet, until the PM ends it (batch 7 item 1). homeSessions marks an older one of the same chat `superseded`. */
59
+ export const resting = (s) => !!(s && s.auto_ended && !s.superseded && keyOfSession(s) && (s.shown === 'exited' || s.state === 'exited'));
60
+ const stateOf = (s) => (resting(s) ? 'quiet' : s.shown === 'needs' ? 'needs' : s.shown === 'blocked' ? 'blocked' : s.shown === 'working' ? 'working' : s.shown === 'exited' ? 'exited' : 'quiet');
58
61
  /** What a session is called (session names A, canvas XmsNames): the PM's own name always wins; else the name Claude gave it after its first
59
62
  * real answer; else the CLI's opening title; else its start name, without a chat's 'chat: ' prefix. lib/session-name.js shownName on the server. */
60
63
  export function nameOf(s) {
@@ -76,7 +79,15 @@ export function sessionRow(s, roles) {
76
79
  * A permission prompt ('blocked') still is. */
77
80
  // A session PMOS started itself shows on Home only while it works or asks the PM something (a permission or a question): one that
78
81
  // finished its prompt is not shown at all (testing fixes; Wawan on the canvas, 2026-10-23)
79
- export const homeSessions = (list) => (Array.isArray(list) ? list : []).filter((s) => !(s && s.automatic && ['needs', 'quiet', 'exited'].includes(s.shown) && !s.ask));
82
+ // A chat that rests (resting above) is listed once: not beside its live run, and only its newest ended run.
83
+ export function homeSessions(list) {
84
+ const L = (Array.isArray(list) ? list : []).filter((s) => !(s && s.automatic && ['needs', 'quiet', 'exited'].includes(s.shown) && !s.ask));
85
+ const ended = (s) => s.shown === 'exited' || s.state === 'exited';
86
+ const liveKeys = new Set(L.filter((s) => !ended(s)).map(keyOfSession).filter(Boolean));
87
+ const newest = new Map();
88
+ for (const s of L) { const k = keyOfSession(s); if (!k || !s.auto_ended || !ended(s) || liveKeys.has(k)) continue; const o = newest.get(k); if (!o || String(s.created || '') > String(o.created || '')) newest.set(k, s); }
89
+ return L.map((s) => { const k = keyOfSession(s); return s.auto_ended && k && ended(s) && newest.get(k) !== s ? { ...s, superseded: true } : s; });
90
+ }
80
91
 
81
92
  /* ── needs you ── */
82
93
  const NEED_ICON = { decision: 'gate', blocked: 'warn', waited: 'clock', src: 'doc', ev: 'gate' };
@@ -106,10 +117,12 @@ export const UPDATE_KEY = 'chat:weekly-update';
106
117
  /* ── initiatives ── */
107
118
  export const boardRows = (D) => (D.board && D.board.initiatives && D.board.initiatives.list && D.board.initiatives.list.rows) || (D.board && D.board.rows) || [];
108
119
  export const live = (s) => s.shown !== 'exited' && s.state !== 'exited';
120
+ /** A session Home lists: a live one, or a chat that rests until its next message. */
121
+ export const listed = (s) => live(s) || resting(s);
109
122
  /** The kids of one initiative: its needs, its live sessions and today's meetings about it, the loudest first. */
110
123
  export function kidsOf(D, id) {
111
124
  const needs = needsOf(D).filter((r) => r.ini === id && !r.needSession);
112
- const ses = (D.sessions || []).filter((s) => live(s) && iniOfSession(s) === id).map((s) => sessionRow(s, D.desk && D.desk.roles));
125
+ const ses = (D.sessions || []).filter((s) => listed(s) && iniOfSession(s) === id).map((s) => sessionRow(s, D.desk && D.desk.roles));
113
126
  const meet = todayOf(D).filter((m) => meetIni(m) === id && m.state !== 'past').map((m) => ({ id: 'm:' + (m.id || m.title), kind: 'meeting', ini: id, name: m.title, hint: (m.state === 'now' ? 'Now' : hm(m.start)) + ' meeting', state: 'quiet', icon: 'clock', meeting: m }));
114
127
  return [...needs, ...ses, ...meet].sort((a, b) => (RANK[b.state] || 0) - (RANK[a.state] || 0));
115
128
  }
@@ -227,7 +240,7 @@ export function homeLists(D, { allNeeds = false } = {}) {
227
240
  const inis = boardRows(D).filter(OPEN).map((r) => iniRow(D, r));
228
241
  inis.sort((a, b) => (RANK[b.state] || 0) - (RANK[a.state] || 0));
229
242
  const prod = boardRows(D).length ? productRow(D) : null;
230
- const loose = (D.sessions || []).filter((s) => live(s) && !iniOfSession(s) && s.shown !== 'needs' && s.shown !== 'blocked').map((s) => ({ ...sessionRow(s, D.desk && D.desk.roles), loose: true }))
243
+ const loose = (D.sessions || []).filter((s) => listed(s) && !iniOfSession(s) && s.shown !== 'needs' && s.shown !== 'blocked').map((s) => ({ ...sessionRow(s, D.desk && D.desk.roles), loose: true }))
231
244
  .sort((a, b) => (RANK[b.state] || 0) - (RANK[a.state] || 0));
232
245
  return { needs: { rows: allNeeds ? needs : needs.slice(0, 3), more: Math.max(0, needs.length - 3), all: needs.length }, initiatives: prod ? [prod, ...inis] : inis, loose, needN: needs.length };
233
246
  }
@@ -93,8 +93,12 @@ export function taskRows(M, L, now = Date.now(), o = {}) {
93
93
  const done = state === 'Done', closed = done || state === "Won't do" || state === 'Archived';
94
94
  const jira = /^Jira/.test(t.src || ''), req = /^req:/.test(t.key || '');
95
95
  const due = dueOf(t.end, closed, now);
96
+ // the start too when it is another day (batch 7 item 6: "Task should show start and end date reliably"): "15 Oct → 28 Oct"
97
+ const sd = dayOf(t.start), ed = dayOf(t.end);
98
+ if (sd && ed && sd.getTime() !== ed.getTime()) due.text = sd.getDate() + ' ' + MON[sd.getMonth()] + ' → ' + due.text;
99
+ else if (sd && !ed) due.text = 'from ' + sd.getDate() + ' ' + MON[sd.getMonth()];
96
100
  return { key: t.key, uid: t.uid || '', ref: t.ref || '', pmos: !!t.pmos, jira, req, title: t.title, state: state || (req ? '' : 'To do'), done, closed, wontdo: state === "Won't do",
97
- owner: t.owner || '', av: initials(t.owner), due: due.text, late: due.late, end: t.end || '', group: (lay.of || {})[t.key] || '', src: t.src || '', blocked: !!t.blocked, canCheck: !!(t.pmos && t.uid) };
101
+ owner: t.owner || '', av: initials(t.owner), due: due.text, late: due.late, start: t.start || '', end: t.end || '', group: (lay.of || {})[t.key] || '', src: t.src || '', blocked: !!t.blocked, canCheck: !!(t.pmos && t.uid) };
98
102
  });
99
103
  }
100
104
  // a task hangs under no workflow stage (Wawan, 2026-10-25), so there is no "by stage"; a layout that saved 'stage' reads as Your groups
@@ -285,7 +285,9 @@ function wirePage(b, id) {
285
285
  openTask: (uid) => {
286
286
  const M = curM(); if (!M) return;
287
287
  const row = (M.tasks.rows || []).find((x) => x.uid === uid || x.key === uid || x.key === 'task:' + uid);
288
- if (row) { C.VW.drill(); openTask(id, M, row.key); } else iniOverview('tasks', { back: true });
288
+ // a task the model does not hold yet still opens its own editor, never the old Tasks list (batch 7 item 7)
289
+ const key = row ? row.key : 'task:' + uid;
290
+ C.VW.drill(); openTask(id, M, key);
289
291
  },
290
292
  add: () => { ADDING = id; redrawView(); const f = BODY && BODY.querySelector('#ivAddTask'); if (f) f.focus(); },
291
293
  addCancel: () => { ADDING = null; redrawView(); },
@@ -683,7 +685,7 @@ function wire(body, id) {
683
685
  body.ondrop = (e) => { const z = e.target.closest && e.target.closest('[data-hi-dz]'); if (!z) return; e.preventDefault(); z.classList.remove('over'); const key = e.dataTransfer.getData('text/plain'); const M = curM(); if (key && M) press(id, M, { kind: 'place', task: key, group: z.dataset.hiDrop || '' }); };
684
686
  }
685
687
  async function openTask(id, M, key) {
686
- const row = (M.tasks.rows || []).find((x) => x.key === key); if (!row) return;
688
+ const row = (M.tasks.rows || []).find((x) => x.key === key) || (/^task:/.test(key) ? { key, uid: key.slice(5), title: '', pmos: true } : null); if (!row) return;
687
689
  const o = bw(M);
688
690
  // a Jira ticket opens in the one task editor too (canvas XetX1Jira): Jira's fields read-only, the PM's notes editable; its key opens the full ticket
689
691
  const rename = row.pmos && row.uid && X.ctx.renameTask ? X.ctx.renameTask({ uid: row.uid, title: row.title, ws: o.ws, board: o.board }) : null;
@@ -15,7 +15,7 @@
15
15
  * fileUnder(text, inis) the initiative a typed task names (its title or id in the text), or null: the task then goes on the PM's own list
16
16
  * D is home-data.js's D plus { work (GET /api/my-work-premium model), items (GET /api/boards/items), others ([{ ws, name, model }], the boards of
17
17
  * the other products), phoneDay (GET /api/phone-day), review (GET /api/home-review) }. A part that did not answer is left out, never guessed. */
18
- import { needsOf, boardRows, productCard, productName, sessionRow, nameOf, iniOfSession, todayOf, live, OPEN, hm } from './home-data.js';
18
+ import { needsOf, boardRows, productCard, productName, sessionRow, nameOf, iniOfSession, todayOf, listed, OPEN, hm } from './home-data.js';
19
19
  import { programState, groupRows } from './program-model.js';
20
20
  import { homeSub } from './ms-suggest.js';
21
21
  import { STEPS, stageKey } from './premium-initiative-head.js';
@@ -110,7 +110,7 @@ const isMove = (k) => k.step || (k.kind === 'session' && (k.state === 'needs' ||
110
110
  function iniRowOf(D, r, needs, now) {
111
111
  // a mention is not a row here: Mentions is its own row at the top of Home (home-mentions.js, XvANew), so it shows once
112
112
  const steps = needs.filter((x) => x.ini === r.id && !x.needSession).map((x) => ({ ...x, step: true, hint: 'Next step' + (bareHint(x) ? ' · ' + bareHint(x) : '') }));
113
- const ses = (D.sessions || []).filter((s) => live(s) && iniOfSession(s) === r.id).map((s) => sessionRow(s, D.desk && D.desk.roles));
113
+ const ses = (D.sessions || []).filter((s) => listed(s) && iniOfSession(s) === r.id).map((s) => sessionRow(s, D.desk && D.desk.roles));
114
114
  const tasks = tasksOf(D, r.id, now);
115
115
  const meet = todayOf(D).filter((m) => meetIni(m) === r.id && m.state !== 'past').map((m) => meetRow(m, r.id));
116
116
  const turn = steps.length > 0 || ses.some((s) => s.state === 'needs' || s.state === 'blocked');
@@ -220,7 +220,7 @@ export function homeList(D, o = {}) {
220
220
  for (const x of looseNeeds) loose.push({ ...x, flat: true });
221
221
  for (const r of tabRows('today')) loose.push({ id: 'w:' + r.key, kind: 'item', key: r.key, name: r.title, hint: [r.overdue ? 'late' : '', String(r.sub || '').replace(/^Yours\b\s*(·\s*)?/, '')].filter(Boolean).join(' · '), check: true, mine: true, late: !!r.overdue, item: r }); // the check box says it is the PM's own: no "your own note" on every row (testing fixes)
222
222
  for (const m of todayOf(D).filter((x) => !meetIni(x) && x.state !== 'past')) loose.push(meetRow(m, null));
223
- for (const s of (D.sessions || []).filter((s) => live(s) && !iniOfSession(s) && s.shown !== 'needs' && s.shown !== 'blocked')) loose.push({ ...sessionRow(s, D.desk && D.desk.roles), loose: true });
223
+ for (const s of (D.sessions || []).filter((s) => listed(s) && !iniOfSession(s) && s.shown !== 'needs' && s.shown !== 'blocked')) loose.push({ ...sessionRow(s, D.desk && D.desk.roles), loose: true });
224
224
  // the folded line's signals (HvAC .lh): a blue dot when a row waits on the PM, an amber square when one of the PM's own is late
225
225
  const lsig = { needs: loose.filter((r) => r.state === 'needs' || r.state === 'blocked').length, sessions: loose.filter((r) => r.kind === 'session' || r.needSession).length, tasks: loose.filter((r) => r.check).length, late: loose.filter((r) => r.check && r.late).length };
226
226
  if (!o.product || o.product === 'loose') groups.push({ key: 'loose', kind: 'loose', name: 'Not in an initiative', rows: loose, n: loose.length, sig: lsig });
@@ -27,7 +27,10 @@ export function openTask(task, h) {
27
27
  const body = h.VW.open({
28
28
  id, kind: 'Task', title: t.title, icon: 'task', check: checkOf(t),
29
29
  rename: t.jira ? null : h.rename ? h.rename(raw) : null,
30
- more: () => [{ label: 'Talk it through in chat', on: () => h.askInChat(raw) }],
30
+ 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
+ return [{ label: 'Talk it through in chat', on: () => h.askInChat(raw) }, ...(del ? [{ sep: true }, del] : [])]; // Delete: batch 7 item 5
33
+ },
31
34
  onPress: (act) => { if (act === 'check' && card) card.setStatus(t.status === 'Done' ? 'To do' : 'Done'); },
32
35
  render: (el) => {
33
36
  card = mountCard(el, t, {
@@ -105,9 +105,11 @@ export function statusOf(r, grill, fmt) {
105
105
  /* ── one task row ── */
106
106
  function rowOf(k, today) {
107
107
  const closed = CLOSED.has(k.status), d = dayOf(k.end), late = !closed && !!d && d < today;
108
- const due = d ? dateY(k.end, today) + (late ? ', ' + plural(between(d, today), 'day', 'days') + ' late' : '') : '';
108
+ // start and end both (batch 7 item 6): "Oct 15 – Oct 28", one day once, "from Oct 15" with no end
109
+ const days = k.start && k.end ? span(k.start, k.end, today) : k.start ? 'from ' + dateY(k.start, today) : d ? dateY(k.end, today) : '';
110
+ const due = days ? days + (late ? ', ' + plural(between(d, today), 'day', 'days') + ' late' : '') : '';
109
111
  const who = ownerName(k.owner);
110
- return { uid: k.uid, title: k.title, status: k.status || 'To do', closed, done: k.status === 'Done', late, due, end: k.end || '', owner: who, av: initials(k.owner),
112
+ return { uid: k.uid, title: k.title, status: k.status || 'To do', closed, done: k.status === 'Done', late, due, start: k.start || '', end: k.end || '', owner: who, av: initials(k.owner),
111
113
  sub: [k.status === 'In progress' ? 'In progress' : '', due, who && who !== 'You' ? who : ''].filter(Boolean).join(' · '), wbs: wbsOf(k.title), canCheck: !!k.uid, order: k.order };
112
114
  }
113
115
  const urgent = (a, b) => (b.late - a.late) || (a.end || '9999').localeCompare(b.end || '9999') || (a.order != null && b.order != null ? a.order - b.order : 0);