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.
- package/package.json +25 -25
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/board-programs-test.js +68 -1
- package/workspace/briefing-premium-board-test.js +21 -19
- package/workspace/changelog.json +24 -0
- package/workspace/guide/workflows.md +3 -2
- package/workspace/lib/engine/boards.js +7 -2
- package/workspace/lib/initiative-chat.js +1 -1
- package/workspace/lib/initiative-premium.js +7 -4
- package/workspace/lib/routes-boards.js +73 -4
- package/workspace/lib/task-cli.js +27 -3
- package/workspace/lib/task-items.js +5 -1
- package/workspace/lib/workflow-cli.js +9 -3
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +9 -5
- package/workspace/public/pm/bd-acts.js +3 -2
- package/workspace/public/pm/bd-scroll.js +164 -0
- package/workspace/public/pm/bd-span.js +151 -188
- package/workspace/public/pm/bd-stages.js +3 -25
- package/workspace/public/pm/cozy-board.css +92 -71
- package/workspace/public/pm/home-app.js +2 -0
- package/workspace/public/pm/home-data.js +17 -4
- package/workspace/public/pm/home-ini-model.js +5 -1
- package/workspace/public/pm/home-ini.js +4 -2
- package/workspace/public/pm/home-list.js +3 -3
- package/workspace/public/pm/home-task.js +4 -1
- package/workspace/public/pm/ini-view-model.js +4 -2
- package/workspace/public/pm/premium-board.js +49 -38
- package/workspace/public/pm/premium-vw-item.js +5 -2
- package/workspace/public/pm/task-card.js +12 -0
- package/workspace/public/premium-board.html +3 -2
- package/workspace/server.js +3 -0
- 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,
|
|
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
|
|
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-
|
|
359
|
-
.tg-h .tg-p span
|
|
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
|
-
/*
|
|
403
|
-
|
|
404
|
-
.tg-
|
|
405
|
-
.tg-
|
|
406
|
-
.tg-
|
|
407
|
-
.tg-
|
|
408
|
-
.tg-
|
|
409
|
-
.tg-
|
|
410
|
-
.tg-
|
|
411
|
-
.tg-
|
|
412
|
-
.tg-
|
|
413
|
-
.tg-
|
|
414
|
-
.tg-
|
|
415
|
-
.tg-
|
|
416
|
-
.tg-
|
|
417
|
-
.tg-
|
|
418
|
-
.tg-
|
|
419
|
-
.tg-
|
|
420
|
-
.tg-
|
|
421
|
-
.tg-
|
|
422
|
-
.tg-
|
|
423
|
-
.tg-
|
|
424
|
-
.tg-
|
|
425
|
-
.tg-
|
|
426
|
-
.tg-
|
|
427
|
-
|
|
428
|
-
.tg-
|
|
429
|
-
.tg-
|
|
430
|
-
|
|
431
|
-
.
|
|
432
|
-
.
|
|
433
|
-
.
|
|
434
|
-
.
|
|
435
|
-
.
|
|
436
|
-
|
|
437
|
-
.
|
|
438
|
-
.
|
|
439
|
-
.
|
|
440
|
-
.
|
|
441
|
-
.
|
|
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
|
|
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
|
-
/*
|
|
1119
|
-
.
|
|
1120
|
-
.
|
|
1121
|
-
.
|
|
1122
|
-
.
|
|
1123
|
-
.
|
|
1124
|
-
.
|
|
1125
|
-
|
|
1126
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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) =>
|
|
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) =>
|
|
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
|
-
|
|
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,
|
|
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) =>
|
|
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) =>
|
|
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: () =>
|
|
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
|
-
|
|
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);
|