create-pmos 0.425.0 → 0.426.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 +13 -13
- 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-deliveries-test.js +153 -0
- package/workspace/board-programs-test.js +19 -10
- package/workspace/board-shot.js +4 -3
- package/workspace/briefing-premium-board-test.js +2 -2
- package/workspace/calm-timeline-test.js +190 -0
- package/workspace/changelog.json +12 -0
- package/workspace/ev-everywhere-test.js +3 -1
- package/workspace/guide/claude-proposes.md +16 -1
- package/workspace/guide/programs.md +2 -1
- package/workspace/lib/board-premium.js +3 -1
- package/workspace/lib/chat-file-locate.js +40 -2
- package/workspace/lib/engine/boards.js +8 -2
- package/workspace/lib/idle-close.js +60 -0
- package/workspace/lib/loose-proposals.js +302 -0
- package/workspace/lib/my-work-premium.js +1 -1
- package/workspace/lib/proposal-runs.js +77 -2
- package/workspace/lib/propose-cli.js +42 -1
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-boards.js +16 -4
- package/workspace/lib/routes-brief-page.js +9 -1
- package/workspace/lib/routes-loose.js +210 -0
- package/workspace/lib/routes-pm-items.js +27 -17
- package/workspace/lib/task-cli.js +18 -11
- package/workspace/milestone-pins-test.js +170 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +2 -1
- package/workspace/premium-briefing-depth-test.js +1 -1
- package/workspace/premium-chat-term-test.js +13 -2
- package/workspace/premium-core-doc-issue-test.js +1 -1
- package/workspace/product-lane-test.js +30 -17
- package/workspace/public/pm/bd-acts.js +6 -3
- package/workspace/public/pm/bd-deliveries.js +218 -0
- package/workspace/public/pm/bd-pin-card.css +16 -0
- package/workspace/public/pm/bd-pin-card.js +80 -0
- package/workspace/public/pm/bd-pins.js +33 -0
- package/workspace/public/pm/bd-pop.js +2 -0
- package/workspace/public/pm/bd-prog.js +5 -4
- package/workspace/public/pm/bd-span.js +140 -102
- package/workspace/public/pm/cozy-board.css +73 -11
- package/workspace/public/pm/cozy-home.css +16 -1
- package/workspace/public/pm/cozy-today.css +4 -0
- package/workspace/public/pm/home-app.js +14 -0
- package/workspace/public/pm/home-data.js +5 -3
- package/workspace/public/pm/home-list.js +46 -5
- package/workspace/public/pm/home-today.js +15 -5
- package/workspace/public/pm/ini-tasks.js +4 -1
- package/workspace/public/pm/loose-props.css +54 -0
- package/workspace/public/pm/loose-props.js +262 -0
- package/workspace/public/pm/premium-board.js +9 -5
- package/workspace/public/pm/term-view.js +81 -10
- package/workspace/public/premium-board.html +1 -0
- package/workspace/server.js +107 -6
- package/workspace/skills/loose-propose.skill +39 -0
- package/workspace/task-milestones-test.js +15 -6
- package/workspace/test-lists/board-deliveries.json +13 -0
- package/workspace/test-lists/calm-timeline.json +5 -0
- package/workspace/test-lists/loose-props.json +9 -0
- package/workspace/test-lists/milestone-pins.json +6 -0
- package/workspace/timeline-holds-test.js +44 -42
|
@@ -364,7 +364,8 @@ body.bd-page[data-bd-view="time"] #cIni:not([hidden]) { flex: 1; display: flex;
|
|
|
364
364
|
button.tg-n { cursor: pointer; }
|
|
365
365
|
button.tg-n:hover b { color: var(--cz-blueink); }
|
|
366
366
|
.tg-n:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; border-radius: 8px; }
|
|
367
|
-
.tg-n b { font-size: 13.5px; font-weight: 800;
|
|
367
|
+
.tg-n b { font-size: 13.5px; font-weight: 800; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; overflow-wrap: anywhere; } /* names wrap to two lines, never cut (batch 13 item 4) */
|
|
368
|
+
.tg-n b .bd-pgi { display: inline-flex; vertical-align: -2px; margin-right: 6px; }
|
|
368
369
|
.tg-n small { font-size: 12px; color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
369
370
|
.tg-h .tg-n b { font-size: 12.5px; color: var(--cz-ink2); }
|
|
370
371
|
.tg-h .tg-n small { font-size: 11px; font-weight: 700; }
|
|
@@ -379,14 +380,18 @@ button.tg-n:hover b { color: var(--cz-blueink); }
|
|
|
379
380
|
.tg-td { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--cz-ink); opacity: .75; z-index: 2; }
|
|
380
381
|
.tg-bar { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: 6px; background: var(--bd-plan); z-index: 1; overflow: visible; }
|
|
381
382
|
.tg-bar > b { display: block; height: 100%; border-radius: 6px; background: var(--bd-done); }
|
|
382
|
-
.tg-bar.t-risk { background: color-mix(in srgb, var(--cz-dot-risk) 30%, var(--cz-card)); }
|
|
383
|
-
.tg-bar.t-you { background: color-mix(in srgb, var(--cz-blue) 22%, var(--cz-card)); }
|
|
384
383
|
/* the committed end (PgTimeline .tdm): an open ◇ for Deliver or Evaluate, its date right of it; filled blue while the initiative is at it */
|
|
385
|
-
.tg-end { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; transform: rotate(45deg); border-radius: 2px; background: var(--cz-card); border: 2px solid var(--bd-done); box-sizing: border-box; z-index: 2; }
|
|
386
|
-
.tg-end
|
|
384
|
+
.tg-end { appearance: none; padding: 0; position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; transform: rotate(45deg); border-radius: 2px; background: var(--cz-card); border: 2px solid var(--bd-done); box-sizing: border-box; z-index: 2; cursor: pointer; }
|
|
385
|
+
.tg-end::before { content: ''; position: absolute; inset: -8px; }
|
|
386
|
+
.tg-end:focus-visible, .tg-tm:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 3px; }
|
|
387
387
|
.tg-end.late { border-color: var(--cz-dot-late); }
|
|
388
|
-
|
|
389
|
-
.tg-endl
|
|
388
|
+
/* the one label at a bar's end (batch 13 item 4, XcalmA1Desk): what lands, then when; the date alone carries the tone */
|
|
389
|
+
.tg-endl { position: absolute; top: 50%; transform: translate(11px, -50%); font-size: 12px; font-weight: 700; color: var(--cz-ink); white-space: nowrap; z-index: 3; line-height: 18px; }
|
|
390
|
+
.tg-endl > b { font-weight: 700; color: var(--cz-ink3); }
|
|
391
|
+
.tg-endl > b.risk { color: var(--cz-risk); }
|
|
392
|
+
.tg-endl > b.late { color: var(--cz-late); }
|
|
393
|
+
.tg-endl > b.q { color: var(--cz-ink3); }
|
|
394
|
+
.tg-endl.l { transform: translate(calc(-100% - 11px), -50%); background: var(--cz-card); padding: 0 7px; border-radius: 6px; box-shadow: 0 0 0 1px var(--cz-hair); }
|
|
390
395
|
.tg-over { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--cz-c-f0a27a) 0 4px, var(--cz-c-fbdccb) 4px 8px); z-index: 1; }
|
|
391
396
|
.tg-fc { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: 6px; border: 1.5px dashed var(--cz-dot-late); box-sizing: border-box; z-index: 1; }
|
|
392
397
|
.tg-fc.solo { border-color: var(--cz-blue); }
|
|
@@ -432,7 +437,6 @@ button.tg-n:hover b { color: var(--cz-blueink); }
|
|
|
432
437
|
.tg-s .tg-p { overflow: visible; }
|
|
433
438
|
.tg-s .tg-body .tg-p { overflow: hidden; }
|
|
434
439
|
.tg-s .tg-bar { cursor: pointer; }
|
|
435
|
-
.tg-out { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(42,46,53,.04) 6px 12px); }
|
|
436
440
|
.tg-s .tg-h .tg-p span.pin { color: var(--cz-ink3); }
|
|
437
441
|
.tg-s .tg-h .tg-p span.pin b { color: var(--cz-ink3); }
|
|
438
442
|
/* Today: the pill on the line in view; off screen the back button beside "Initiative" with its arrow pointing the way (TsCDesk, TsCGrill 4) */
|
|
@@ -475,7 +479,7 @@ button.tg-n:hover b { color: var(--cz-blueink); }
|
|
|
475
479
|
.tgq-r.sel { background: var(--cz-bluebg); }
|
|
476
480
|
.tgq-r.tg-pg { background: var(--bd-progbg); }
|
|
477
481
|
.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; }
|
|
478
|
-
.tgq-n b { font-weight: 800;
|
|
482
|
+
.tgq-n b { font-weight: 800; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
|
|
479
483
|
.tgq-n:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; border-radius: 8px; }
|
|
480
484
|
.tgq-n.tg-pgn { display: flex; width: var(--vw, 100%); cursor: default; padding: 4px 6px 2px 10px; }
|
|
481
485
|
.tgq-r .tg-p { position: relative; height: 22px; min-height: 0; overflow: hidden; }
|
|
@@ -488,6 +492,56 @@ button.tg-n:hover b { color: var(--cz-blueink); }
|
|
|
488
492
|
.tg-rel { display: inline-flex; align-items: center; gap: 4px; color: var(--cz-blueink); }
|
|
489
493
|
.tg-note { margin: 6px 0 0; font-size: 11.5px; color: var(--cz-ink3); }
|
|
490
494
|
|
|
495
|
+
/* ── the Deliveries lane (batch 13 item 4, calmer timeline A6: XcalmA6Lane, XcalmA6Fold, XcalmA6Phone; pm/bd-deliveries.js) ──
|
|
496
|
+
one row under the axis: a list per column, the date then the name; missed orange, at risk amber, on hold grey; the current column a faint wash.
|
|
497
|
+
Hover an entry: its row gets a wash and its ◇ a ring. Folded: one line. A phone: the next 3 in a card above the rows. */
|
|
498
|
+
.tg-dl { min-height: 0; }
|
|
499
|
+
.tg-dl .dl-n { flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 10px; padding-top: 10px; }
|
|
500
|
+
.tg-dl.shut .dl-n { align-items: center; padding-top: 8px; }
|
|
501
|
+
.dl-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--cz-well); display: grid; place-items: center; color: var(--cz-ink2); }
|
|
502
|
+
.dl-ic svg, .dl-fb svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
503
|
+
.dl-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
|
|
504
|
+
.dl-t b { font-size: 13.5px; font-weight: 800; }
|
|
505
|
+
.dl-t small { font-size: 12px; color: var(--cz-ink3); }
|
|
506
|
+
.dl-fb { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--cz-ink3); }
|
|
507
|
+
.dl-fb:hover { background: var(--cz-well); color: var(--cz-ink); }
|
|
508
|
+
.dl-fb:focus-visible, .dl-e:focus-visible, .dl-more:focus-visible, .dl-dn:focus-visible, .dl-fn:focus-visible, .dl-pl:focus-visible, .dl-all:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 1px; border-radius: 8px; }
|
|
509
|
+
.dl-p { display: flex; align-items: stretch; min-height: 0; }
|
|
510
|
+
.dl-c { flex: none; box-sizing: border-box; min-width: 0; padding: 16px 6px 10px 8px; border-left: 1px solid var(--cz-hair); display: flex; flex-direction: column; gap: 4px; }
|
|
511
|
+
.dl-c:first-child { border-left: 0; }
|
|
512
|
+
.dl-c.now { background: color-mix(in srgb, var(--cz-blue) 6%, transparent); }
|
|
513
|
+
.dl-e, .dl-pl, .dl-fn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 3px 6px; margin: 0 -6px; border-radius: 8px; }
|
|
514
|
+
.dl-e:hover, .dl-pl:hover { background: var(--cz-well); }
|
|
515
|
+
.dl-e small, .dl-pl small, .dl-fn small { font-size: 11.5px; font-weight: 800; color: var(--cz-ink3); white-space: nowrap; }
|
|
516
|
+
.dl-e b { font-size: 12.5px; font-weight: 700; color: var(--cz-ink); line-height: 1.3; display: flex; gap: 4px; align-items: flex-start; min-width: 0; }
|
|
517
|
+
.dl-e b span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
|
|
518
|
+
.dl-pg { flex: none; display: inline-grid; place-items: center; color: var(--bd-prog); margin-top: 1px; }
|
|
519
|
+
.dl-pg svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
|
|
520
|
+
.dl-e.late small, .dl-ph .late, .dl-fold .late, .dl-fn small.late, .dl-pl small.late { color: var(--cz-late); }
|
|
521
|
+
.dl-e.risk small, .dl-fn small.risk, .dl-pl small.risk { color: var(--cz-risk); }
|
|
522
|
+
.dl-e.hold small, .dl-fn small.hold, .dl-pl small.hold { color: var(--cz-ink3); font-weight: 600; }
|
|
523
|
+
.dl-e.fc small, .dl-fn small.fc, .dl-pl small.fc { color: var(--cz-blueink); }
|
|
524
|
+
.dl-e.dn small { color: var(--cz-ok); } .dl-e.dn b { color: var(--cz-ink3); }
|
|
525
|
+
.dl-more, .dl-dn, .dl-all { all: unset; box-sizing: border-box; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--cz-ink3); padding: 2px 0; }
|
|
526
|
+
.dl-more:hover, .dl-dn:hover, .dl-all:hover { color: var(--cz-ink); }
|
|
527
|
+
.dl-more.n { font-size: 12.5px; color: var(--cz-ink2); }
|
|
528
|
+
.dl-fold { position: sticky; left: calc(var(--nw) + 12px); display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 6px; padding: 10px 12px; font-size: 12.5px; color: var(--cz-ink3); white-space: nowrap; }
|
|
529
|
+
.dl-fx { color: var(--cz-ink3); font-weight: 600; }
|
|
530
|
+
.dl-fn { flex-direction: row; align-items: center; gap: 6px; margin: 0; padding: 2px 4px; font-weight: 800; color: var(--cz-ink); }
|
|
531
|
+
.dl-fn:hover { background: var(--cz-well); }
|
|
532
|
+
.tg-r.dl-hl, .tgq-r.dl-hl { background: color-mix(in srgb, var(--cz-blue) 7%, transparent); }
|
|
533
|
+
.tg-s .tg-r.dl-hl > .tg-n { background: linear-gradient(color-mix(in srgb, var(--cz-blue) 7%, transparent), color-mix(in srgb, var(--cz-blue) 7%, transparent)), var(--cz-card); }
|
|
534
|
+
.dl-ring { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cz-blue) 35%, transparent); }
|
|
535
|
+
.dl-ph { border: 1px solid var(--cz-hair); border-radius: 16px; background: var(--cz-card); padding: 10px 14px 8px; margin-bottom: 12px; }
|
|
536
|
+
.dl-phh { display: flex; align-items: center; gap: 6px; min-height: 32px; font-size: 13.5px; }
|
|
537
|
+
.dl-phh b { font-weight: 800; }
|
|
538
|
+
.dl-phh .late { font-size: 12.5px; color: var(--cz-ink3); }
|
|
539
|
+
.dl-all { margin-left: auto; min-height: 44px; padding: 0 4px; font-size: 13px; color: var(--cz-ink2); }
|
|
540
|
+
.dl-pl { flex-direction: row; align-items: baseline; gap: 12px; margin: 0 -6px; min-height: 36px; }
|
|
541
|
+
.dl-pl small { flex: none; width: 52px; font-size: 13px; }
|
|
542
|
+
.dl-pl b { font-size: 13.5px; font-weight: 700; display: flex; gap: 5px; min-width: 0; }
|
|
543
|
+
.dl-pl b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
544
|
+
|
|
491
545
|
/* ── between desktop and phone: the Output column narrows first ── */
|
|
492
546
|
@media (max-width: 1200px) {
|
|
493
547
|
.bt-r { grid-template-columns: 200px 480px minmax(0, 1fr); }
|
|
@@ -1111,12 +1165,13 @@ html[data-theme="dark"] body.bd-page { --bd-prog: rgb(180,170,240); --bd-progbg:
|
|
|
1111
1165
|
.tg-q .tg-body > .tg-r:not(.tg-h) { min-height: 44px; }
|
|
1112
1166
|
.tg-q .tg-n.ini2 { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; }
|
|
1113
1167
|
.tg-q .tg-n.ini2 .cz-dot { width: 7px; height: 7px; }
|
|
1168
|
+
.tg-q .tg-n.ini2 .cz-dot, .tg-nodot { flex: none; width: 7px; height: 7px; }
|
|
1114
1169
|
.tg-pg { background: var(--bd-progbg); }
|
|
1115
1170
|
.tg-q .tg-body > .tg-pg { min-height: 56px; }
|
|
1116
1171
|
.tg-pgn { flex-direction: row; align-items: center; gap: 6px; padding-right: 6px; }
|
|
1117
1172
|
.tg-pgo { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
|
|
1118
1173
|
.tg-pgo .tt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
|
|
1119
|
-
.tg-pgo .tt b { font-size: 13.5px; font-weight: 800;
|
|
1174
|
+
.tg-pgo .tt b { font-size: 13.5px; font-weight: 800; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
|
|
1120
1175
|
.tg-pgo .tt small { font-size: 12px; color: var(--cz-ink3); font-weight: 600; }
|
|
1121
1176
|
.tg-pgo:hover .tt b { color: var(--bd-prog); }
|
|
1122
1177
|
.tg-kid .tg-n, .tg-gr .tg-n { padding-left: 50px; position: relative; }
|
|
@@ -1301,7 +1356,7 @@ body.bd-spick .bd-hd .bd-tools { margin-left: auto; }
|
|
|
1301
1356
|
.tgq-r .tg-tm, .tgq-r .tg-tmc { top: 50%; }
|
|
1302
1357
|
/* the product lane (batch 11 item 17; PlmA1Board, PlmA2Folded, PlmA3Phone): a product's head row carries every milestone of its initiatives,
|
|
1303
1358
|
* the rows' ◇ rolled up, over a thin grey line from the first start to the last end. The name cell keeps the fold button; the lane is the track. */
|
|
1304
|
-
.tg-lane, .tg-s .tg-lane > .tg-n { background: var(--
|
|
1359
|
+
.tg-lane, .tg-s .tg-lane > .tg-n { background: var(--cz-card); } /* product rows are plain: one tint, the program's (batch 13 item 4) */
|
|
1305
1360
|
.tg-q .tg-body > .tg-lane { min-height: 56px; }
|
|
1306
1361
|
.tg-lnn { flex-direction: row; align-items: center; }
|
|
1307
1362
|
.tg-lnn .bd-prdb { min-width: 0; overflow: hidden; }
|
|
@@ -1331,6 +1386,13 @@ span.tg-ng { cursor: default; }
|
|
|
1331
1386
|
.tg-ng::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--bd-plan); }
|
|
1332
1387
|
.tg-ng:hover::before, .tg-ng[aria-expanded="true"]::before { background: var(--bd-done); }
|
|
1333
1388
|
.tg-ng:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 0; border-radius: 6px; }
|
|
1389
|
+
/* a hold is the gap's hairline (batch 13 item 4): pressing it opens the hold card; a hold whose return date passed is orange */
|
|
1390
|
+
.tg-ng.ho { min-width: 16px; }
|
|
1391
|
+
.tg-ng.ho.late::before { background: var(--cz-dot-late); }
|
|
1392
|
+
/* one dot per initiative off track in a folded group's name cell (XcalmA2Folded) */
|
|
1393
|
+
.tg-offd { display: inline-flex; gap: 3px; flex: none; margin: 0 4px 0 auto; }
|
|
1394
|
+
.tg-offd .cz-dot { width: 7px; height: 7px; }
|
|
1395
|
+
.bd-prdb .tg-offd + svg, .bd-prdb .tg-offd + .n { margin-left: 6px; }
|
|
1334
1396
|
.tg-sk { position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--cz-card); color: var(--cz-ink3); z-index: 3; }
|
|
1335
1397
|
.tg-sk.on { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: none; color: var(--cz-ink2); }
|
|
1336
1398
|
.tg-sk svg, .tg-lgd .k.sk svg, .tg-sk-i svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
@@ -173,7 +173,11 @@ body.cz-home { min-height: 100vh; overflow: hidden; }
|
|
|
173
173
|
* the top right, and where the column reaches it the log keeps its first line clear of it */
|
|
174
174
|
.hm-chat { container-type: inline-size; }
|
|
175
175
|
@media (min-width: 761px) {
|
|
176
|
-
|
|
176
|
+
/* the log scrolls at the panel's edge, not at the column's (PM, 2026-10-27 "Bad layout": the scrollbar stood in the middle of the page);
|
|
177
|
+
* its content and the header line keep to the same centred column as the box */
|
|
178
|
+
body.cz-home:not(.hm-vw-open) .hm-foot { box-sizing: border-box; width: 100%; max-width: 880px; align-self: center; }
|
|
179
|
+
body.cz-home:not(.hm-vw-open) .hm-log { box-sizing: border-box; width: 100%; padding-inline: max(0px, calc((100% - 880px) / 2)); }
|
|
180
|
+
body.cz-home:not(.hm-vw-open) .hm-chd { padding-left: max(0px, calc((100% - 880px) / 2)); }
|
|
177
181
|
@container (max-width: 968px) { .hm-reopen:not([hidden]) ~ .hm-log { padding-top: 46px; } }
|
|
178
182
|
}
|
|
179
183
|
/* the header line over the conversation on a desktop (HvACDesk .ch): the open row's mark, its title, the chip of where it sits; the Viewer
|
|
@@ -406,6 +410,14 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
|
|
|
406
410
|
.hm-iss.done { color: var(--cz-ink3); }
|
|
407
411
|
.hm-md { font-size: 14px; line-height: 1.55; color: var(--cz-ink); overflow-wrap: anywhere; }
|
|
408
412
|
.hm-md h1, .hm-md h2, .hm-md h3 { font-size: 15px; margin: 12px 0 4px; }
|
|
413
|
+
/* a table Claude wrote (chat-md.js .mdtab): Home does not load premium.css, so the chat's tables had no rules, padding or edge (PM, 2026-10-27) */
|
|
414
|
+
:is(.hm-md, .hm-ab .md) .mdtab { margin: 4px 0 12px; overflow-x: auto; border: 1px solid var(--cz-hair); border-radius: 12px; }
|
|
415
|
+
:is(.hm-md, .hm-ab .md) .mdtab table { border-collapse: collapse; width: 100%; font-size: 13px; }
|
|
416
|
+
:is(.hm-md, .hm-ab .md) .mdtab th, :is(.hm-md, .hm-ab .md) .mdtab td { padding: 7px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--cz-hair); overflow-wrap: normal; }
|
|
417
|
+
:is(.hm-md, .hm-ab .md) .mdtab th { font-weight: 600; background: var(--cz-well); }
|
|
418
|
+
:is(.hm-md, .hm-ab .md) .mdtab tr:last-child td { border-bottom: 0; }
|
|
419
|
+
:is(.hm-md, .hm-ab .md) .mdtab .al-c { text-align: center; }
|
|
420
|
+
:is(.hm-md, .hm-ab .md) .mdtab .al-r { text-align: right; }
|
|
409
421
|
.hx-t small { font-size: 12px; color: var(--cz-ink3); overflow-wrap: anywhere; } /* a linked document's address, as text */
|
|
410
422
|
.hv-why select { font: inherit; font-size: 13.5px; color: var(--cz-ink); padding: 0 10px; height: 36px; border-radius: 12px; border: 1px solid var(--cz-hair); background: var(--cz-card); box-sizing: border-box; }
|
|
411
423
|
.hx-b { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink); font-size: 12.5px; cursor: pointer; font-family: var(--cz-sans); }
|
|
@@ -466,6 +478,9 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
|
|
|
466
478
|
* with room for it, so the last message scrolls clear of it */
|
|
467
479
|
@media (max-width: 760px) { body.cz-home .cz-fabw { bottom: calc(var(--bd-hmfoot, 232px) + 10px); } body.cz-home.hm-sheet .cz-fabw { bottom: 118px; } .hm-log { padding-bottom: 76px; } }
|
|
468
480
|
.hv-term { margin: 0; height: 100%; box-sizing: border-box; padding: 16px 20px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: var(--cz-mono); font-size: 12px; line-height: 1.5; color: var(--cz-ink2); background: var(--cz-well); }
|
|
481
|
+
.hv-xt { height: 100%; box-sizing: border-box; padding: 12px 16px; overflow: auto; background: var(--cz-well); } /* term-view.js: the session's terminal drawn by xterm.js, read only */
|
|
482
|
+
.hv-xt .xterm { display: inline-block; zoom: .8; } /* xterm's 15px default drawn at 12px */
|
|
483
|
+
.hv-xt .xterm-viewport { background: transparent !important; }
|
|
469
484
|
|
|
470
485
|
/* ── the parts other chat modules draw inside a message: context and report chips (premium-vw-ctx, report-chat), the /goal card (goal-chat),
|
|
471
486
|
* Claude's question card (chat-ask), attachments (premium-attach) ── */
|
|
@@ -380,6 +380,10 @@ body.cz-home .hv-r.two .hm-rt b { font-size: 15px; }
|
|
|
380
380
|
.hv-tk .hv-mt { margin-left: 2px; }
|
|
381
381
|
.hv-spp { position: absolute; z-index: 20; top: calc(100% - 4px); right: 8px; width: min(340px, calc(100% - 16px)); background: var(--cz-card); border-radius: 18px; padding: 6px; box-shadow: 0 24px 50px -20px rgba(42,46,53,.4), 0 0 0 1px var(--cz-hair); box-sizing: border-box; }
|
|
382
382
|
.hv-spp .hv-r::before, .hv-sps .hv-r::before { display: none; }
|
|
383
|
+
/* batch 13 item 7 (canvas XcsA1Pill): a session idle and safe to close, light blue with the ✦ in its line and one ✓ */
|
|
384
|
+
.hv-spp .hv-r.safe, .hv-sps .hv-r.safe { background: var(--cz-bluebg); border-radius: 14px; }
|
|
385
|
+
.hv-r .hm-sv { font-style: normal; color: var(--cz-blueink); margin-right: 4px; }
|
|
386
|
+
.hv-r .hm-cls { color: var(--cz-blueink); background: var(--cz-card); align-self: center; flex: none; }
|
|
383
387
|
.hv-spf { display: flex; padding: 2px 2px 0; margin-top: 4px; border-top: 1px solid var(--cz-hair); }
|
|
384
388
|
body.cz-home .hv-r.sp-on { background: var(--cz-well2); z-index: 5; }
|
|
385
389
|
body.cz-home .hv-r.sp-on + .hv-r::before { display: none; }
|
|
@@ -45,6 +45,7 @@ import { mountSesName } from './home-ses-name.js'; // session names A: tap the
|
|
|
45
45
|
import * as SM from './split-merge.js'; // split one initiative in two, or merge two: Claude suggests, the PM approves (batch 11 item 14)
|
|
46
46
|
import * as PM from './prog-move.js'; // move an initiative out of its program, or to another (canvas LpA1More, LpA2Other, LpA4Phone)
|
|
47
47
|
import * as PO from './prog-order.js'; // a program's order on Home: the grip, hold-then-drag on a phone, ✦ Claude's order from the dates (canvas RoAPhone)
|
|
48
|
+
import * as LPV from './loose-props.js'; // Claude's clean-up of "Not in an initiative": the ✦ on its header and the Viewer (batch 13 item 3)
|
|
48
49
|
import { initiativeRename, taskRename } from './rename-press.js'; // tap the title to rename (canvas RnATask, RnASaved) // the pinned recording row above it (XvARecHome)
|
|
49
50
|
|
|
50
51
|
const $ = (s, r = document) => r.querySelector(s);
|
|
@@ -113,6 +114,14 @@ function toastUndo(msg, undo) {
|
|
|
113
114
|
el.querySelector('.undo').onclick = async () => { el.classList.remove('on', 'act'); const r = await undo(); if (r && r.ok === false) toast(r.error || 'It could not be undone.'); };
|
|
114
115
|
clearTimeout(toast.t); toast.t = setTimeout(() => el.classList.remove('on', 'act'), 8000);
|
|
115
116
|
}
|
|
117
|
+
/** What Claude's clean-up needs from Home (pm/loose-props.js): the toast with Undo, a fresh read, the product a new initiative starts in,
|
|
118
|
+
* the rows the group shows, and today. */
|
|
119
|
+
const lpHost = {
|
|
120
|
+
toast: (m, undo) => (undo ? toastUndo(m, undo) : toast(m)), reload: () => load(), redraw: () => drawList(),
|
|
121
|
+
where: () => ({ ws: boardWs(), board: boardId() }),
|
|
122
|
+
total: () => { const g = S.M && S.M.groups.find((x) => x.kind === 'loose'); return g ? g.n : 0; },
|
|
123
|
+
today: () => L.dayOf(),
|
|
124
|
+
};
|
|
116
125
|
/** A rename landed (or its Undo did): every place that names it reads the new name now, and the server's read follows. */
|
|
117
126
|
function renamedHere(kind, id, title) {
|
|
118
127
|
if (kind === 'task') for (const t of ((S.D.items && S.D.items.items) || [])) { if (t && t.uid === id) t.title = title; }
|
|
@@ -185,6 +194,8 @@ async function load() {
|
|
|
185
194
|
const others = await Promise.all(otherProducts(D).map((a) => getRetry('/api/board-premium?ws=' + encodeURIComponent(a.ws), 4).then((r) => (r && r.ok && r.model ? { ws: a.ws, name: a.name, model: r.model } : null))));
|
|
186
195
|
const got = others.filter(Boolean);
|
|
187
196
|
if (got.length || D.others.length) { D.others = got; drawList(); }
|
|
197
|
+
// what "Not in an initiative" shows goes to the server, so Claude's clean-up reads the same rows; the ✦ comes back (batch 13 item 3)
|
|
198
|
+
if (S.M && S.filter === 'today') LPV.sync(S.M, S.D, lpHost).catch(() => {});
|
|
188
199
|
// an initiative of another product opened before its board was read (a link, a quick press): read it again from its own board
|
|
189
200
|
if (S.ini && !S.IM && otherIni(S.ini)) goIni(S.ini, { page: VW.isOpen() });
|
|
190
201
|
}
|
|
@@ -271,6 +282,7 @@ function todayModel() {
|
|
|
271
282
|
function homeListHtml() {
|
|
272
283
|
const M = L.homeList(S.D, { now: NOW(), filter: S.filter });
|
|
273
284
|
S.M = M;
|
|
285
|
+
const lg = M.groups.find((g) => g.kind === 'loose'); if (lg) lg.chip = LPV.chipOf();
|
|
274
286
|
const R = L.reviewModel(S.D, NOW());
|
|
275
287
|
// a group is open until the PM folds it; another product starts folded; "Not in an initiative" starts folded on a phone (HvAC, HvACDesk)
|
|
276
288
|
const pOpen = (g) => (g.key in S.pg ? !!S.pg[g.key] : g.kind === 'loose' ? !isPhone() : g.kind === 'program' || g.primary || M.products.length === 1);
|
|
@@ -1457,6 +1469,8 @@ $('#hmList').onclick = (e) => { // delegated: every press on the list is a <bu
|
|
|
1457
1469
|
if (b.getAttribute('aria-expanded') === 'true') { S.kids.delete(d.hmKids); S.kidsOff.add(d.hmKids); } else { S.kids.add(d.hmKids); S.kidsOff.delete(d.hmKids); }
|
|
1458
1470
|
keepKids(); drawList(); const f = $(`#hmList [data-hm-kids="${CSS.escape(d.hmKids)}"]`); if (f) f.focus(); return;
|
|
1459
1471
|
}
|
|
1472
|
+
if ('lpOpen' in d) { LPV.open(lpHost); return; }
|
|
1473
|
+
if (d.hmClose) { LPV.closeOne(lpHost, d.hmClose); return; } // the pill menu's ✓: close a session Claude says is idle and safe (batch 13 item 7)
|
|
1460
1474
|
if (d.hmPg) { const open = b.getAttribute('aria-expanded') === 'true'; S.pg[d.hmPg] = !open; store.set('pmos.home.pg', JSON.stringify(S.pg)); drawList(); const f = $(`#hmList [data-hm-pg="${CSS.escape(d.hmPg)}"]`); if (f) f.focus(); return; }
|
|
1461
1475
|
if ('hmProd' in d) { goIni('product'); return; }
|
|
1462
1476
|
if (d.hmRest) { if (S.rest.has(d.hmRest)) S.rest.delete(d.hmRest); else S.rest.add(d.hmRest); keepKids(); drawList(); return; }
|
|
@@ -72,7 +72,8 @@ export function sessionRow(s, roles) {
|
|
|
72
72
|
// a chat's tmux name carries a 'chat: ' prefix (lib/briefing-premium-agent.js); the row shows its title only (testing fixes)
|
|
73
73
|
const name = nameOf(s);
|
|
74
74
|
return { id: 's:' + s.id, kind: 'session', sid: s.id, key: keyOfSession(s), ini: iniOfSession(s), name, state: st, initial: role.initial, role,
|
|
75
|
-
hint: role.name, icon: 'chat', created: s.created || '', prog: s.progress && s.progress.n > 0 ? s.progress : null
|
|
75
|
+
hint: role.name, icon: 'chat', created: s.created || '', prog: s.progress && s.progress.n > 0 ? s.progress : null,
|
|
76
|
+
...(s.close_ok && st === 'quiet' ? { close: s.close_ok } : {}) }; // idle 30 min: { safe, say } (batch 13 item 7, lib/idle-close.js) // the state is the dot beside the row, not a word (testing fixes)
|
|
76
77
|
}
|
|
77
78
|
/** The sessions as Home reads them. A session PMOS started (a skill, a background job) reads 'needs' as soon as its prompt is done:
|
|
78
79
|
* its turn ending asks nothing of the PM, so it is a finished run, quiet, and never a row that waits on the PM (testing fixes).
|
|
@@ -117,8 +118,9 @@ export const UPDATE_KEY = 'chat:weekly-update';
|
|
|
117
118
|
/* ── initiatives ── */
|
|
118
119
|
export const boardRows = (D) => (D.board && D.board.initiatives && D.board.initiatives.list && D.board.initiatives.list.rows) || (D.board && D.board.rows) || [];
|
|
119
120
|
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
|
-
|
|
121
|
+
/** A session Home lists: a live one, or a chat that rests until its next message. One the PM put away or finished from the clean-up
|
|
122
|
+
* (batch 13 item 3: s.away) is not listed until the PM's next message in it; Search still finds it. */
|
|
123
|
+
export const listed = (s) => (live(s) || resting(s)) && !(s && s.away);
|
|
122
124
|
/** The kids of one initiative: its needs, its live sessions and today's meetings about it, the loudest first. */
|
|
123
125
|
export function kidsOf(D, id) {
|
|
124
126
|
const needs = needsOf(D).filter((r) => r.ini === id && !r.needSession);
|
|
@@ -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, listed, OPEN, hm } from './home-data.js';
|
|
18
|
+
import { needsOf, boardRows, productCard, productName, sessionRow, nameOf, iniOfSession, keyOfSession, 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';
|
|
@@ -100,6 +100,9 @@ export function tasksOf(D, ini, now = Date.now()) {
|
|
|
100
100
|
}).map((r) => ({ ...r, rank: urgency(r.task, now) }))
|
|
101
101
|
.sort((a, b) => (b.mine - a.mine) || (a.rank[0] - b.rank[0]) || (a.rank[1] - b.rank[1]));
|
|
102
102
|
}
|
|
103
|
+
/** One of the PM's own items of today (GET /api/my-work-premium, the Today tab). The check box says it is the PM's own: no "your own note" on
|
|
104
|
+
* every row (testing fixes). */
|
|
105
|
+
const itemRow = (r) => ({ 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 });
|
|
103
106
|
function meetRow(m, ini) {
|
|
104
107
|
return { id: 'm:' + (m.id || m.title), kind: 'meeting', ini: ini || null, name: m.title, hint: (m.state === 'now' ? 'Now' : hm(m.start)) + (ini ? ' meeting' : ' · not linked'), state: m.state === 'now' ? 'working' : 'quiet', icon: 'clock', meeting: m };
|
|
105
108
|
}
|
|
@@ -113,20 +116,22 @@ export const ownSteps = (r) => (r && r.wf && r.wf.id && r.wf.id !== 'product-fea
|
|
|
113
116
|
export const rowAt = (r) => (ownSteps(r) ? r.wfStage.n - 1 : stageAt(r && r.stage));
|
|
114
117
|
/** A row under an initiative that is the PM's move now (Your move, and the initiative's count badge): a next step, a session
|
|
115
118
|
* that waits on the PM, or a task of the PM's own that is late. */
|
|
116
|
-
const isMove = (k) => k.step || (k.kind === 'session' && (k.state === 'needs' || k.state === 'blocked')) || (k.kind === 'task' && k.mine && k.late);
|
|
119
|
+
const isMove = (k) => k.step || (k.kind === 'session' && (k.state === 'needs' || k.state === 'blocked')) || ((k.kind === 'task' || k.kind === 'item') && k.mine && k.late);
|
|
117
120
|
function iniRowOf(D, r, needs, now) {
|
|
118
121
|
// 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
|
|
119
122
|
const steps = needs.filter((x) => x.ini === r.id && !x.needSession).map((x) => ({ ...x, step: true, hint: 'Next step' + (bareHint(x) ? ' · ' + bareHint(x) : '') }));
|
|
120
123
|
const ses = (D.sessions || []).filter((s) => listed(s) && iniOfSession(s) === r.id).map((s) => sessionRow(s, D.desk && D.desk.roles));
|
|
121
124
|
const tasks = tasksOf(D, r.id, now);
|
|
122
125
|
const meet = todayOf(D).filter((m) => meetIni(m) === r.id && m.state !== 'past').map((m) => meetRow(m, r.id));
|
|
126
|
+
// the PM's own items linked to it (the clean-up, batch 13 item 3): a late one keeps its late check box here
|
|
127
|
+
const items = (((D.work && D.work.queue && D.work.queue.tabs) || []).find((t) => t.key === 'today') || { groups: [] }).groups.flatMap((g) => g.rows || []).filter((x) => x.ini === r.id).map(itemRow);
|
|
123
128
|
const turn = steps.length > 0 || ses.some((s) => s.state === 'needs' || s.state === 'blocked');
|
|
124
129
|
const mine = tasks.filter((t) => t.mine).length;
|
|
125
130
|
const run = ses.filter((s) => s.state === 'working').length;
|
|
126
131
|
const right = turn ? 'your turn' + (mine ? ' · ' + plural(mine, 'task', 'tasks') : '') : mine ? plural(mine, 'task', 'tasks') : run ? run + ' running' : 'Nothing today';
|
|
127
132
|
// next steps, sessions and today's meetings sit under the initiative; its tasks do not (Wawan, 2026-10-25: Home lists no tasks, the
|
|
128
133
|
// initiative's page in the Viewer holds them). The row keeps them for Your move, where the PM's own late ones still lead
|
|
129
|
-
const kids = [...steps, ...ses.sort((a, b) => (RANK[b.state] || 0) - (RANK[a.state] || 0)), ...meet];
|
|
134
|
+
const kids = [...steps, ...ses.sort((a, b) => (RANK[b.state] || 0) - (RANK[a.state] || 0)), ...items, ...meet];
|
|
130
135
|
const hint = [(r.wf && r.wf.name) || 'Product feature', r.stage].filter(Boolean).join(' · '); // D99: Kind becomes Workflow
|
|
131
136
|
return { id: 'i:' + r.id, kind: 'ini', ini: r.id, name: r.title, hint, right, turn, busy: kids.length > 0, state: turn ? 'needs' : run ? 'working' : 'quiet', kids, tasks, board: r, updated: r.updated || '',
|
|
132
137
|
stage: r.stage || '', at: rowAt(r), steps: ownSteps(r), yours: kids.filter(isMove).length, late: kids.some((k) => k.kind === 'task' && k.mine && k.late) };
|
|
@@ -225,7 +230,8 @@ export function homeList(D, o = {}) {
|
|
|
225
230
|
const looseNeeds = needs.filter((x) => !used.has(x.id) && !(x.ini && groups.some((g) => g.inis.concat(g.rest).some((i) => i.ini === x.ini))));
|
|
226
231
|
const loose = [];
|
|
227
232
|
for (const x of looseNeeds) loose.push({ ...x, flat: true });
|
|
228
|
-
|
|
233
|
+
// an item the PM linked to an initiative (the clean-up, batch 13 item 3) sits under that initiative, not here
|
|
234
|
+
for (const r of tabRows('today')) if (!r.ini || !groups.some((g) => g.inis.concat(g.rest).some((i) => i.ini === r.ini))) loose.push(itemRow(r));
|
|
229
235
|
for (const m of todayOf(D).filter((x) => !meetIni(x) && x.state !== 'past')) loose.push(meetRow(m, null));
|
|
230
236
|
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 });
|
|
231
237
|
// 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
|
|
@@ -249,6 +255,41 @@ export function homeList(D, o = {}) {
|
|
|
249
255
|
counts: { products: products.length, initiatives: nIni } };
|
|
250
256
|
}
|
|
251
257
|
|
|
258
|
+
/* ── the clean-up of "Not in an initiative" (batch 13 item 3; lib/loose-proposals.js, pm/loose-props.js) ── */
|
|
259
|
+
const tsOf = (v) => { const n = typeof v === 'number' ? v : Date.parse(v || ''); return Number.isFinite(n) && n > 0 ? n : 0; };
|
|
260
|
+
const normTitle = (t) => String(t || '').toLowerCase().replace(/\s+/g, ' ').trim();
|
|
261
|
+
/** What the server keeps of the loose group, so Claude's run and the ✦ read what Home shows: { rows, inis }.
|
|
262
|
+
* rows: [{ id, kind, title, at, waits?, late?, sids?, key?, words?, item?, event?, daily? }] (a next step from the brief is left out: it has
|
|
263
|
+
* no record to link). inis: the open initiatives of every product on Home, with what a new one there needs ({ id, title, ws, board, anchor }). */
|
|
264
|
+
export function looseSnapshot(M, D) {
|
|
265
|
+
const g = (M && M.groups || []).find((x) => x.kind === 'loose');
|
|
266
|
+
const S = (D && D.sessions) || [];
|
|
267
|
+
const rows = [], seen = new Set();
|
|
268
|
+
for (const r of (g && g.rows) || []) {
|
|
269
|
+
let x = null;
|
|
270
|
+
if (r.kind === 'session' && r.sid) {
|
|
271
|
+
const key = r.key || null, mine = S.filter((s) => (key ? keyOfSession(s) === key : s.id === r.sid));
|
|
272
|
+
const at = Math.max(0, ...mine.map((s) => Math.max(tsOf(s.touched_at), tsOf(s.exited_at), s.shown !== 'exited' && s.state !== 'exited' ? tsOf(s.lastOutputAt) : 0, tsOf(s.created))));
|
|
273
|
+
const me = S.find((s) => s.id === r.sid) || {};
|
|
274
|
+
x = { id: key ? 'c:' + key : 's:' + r.sid, kind: 'session', title: r.name, at: at ? new Date(at).toISOString() : '', sids: (mine.length ? mine : [me]).map((s) => s.id).filter(Boolean), ...(key ? { key } : {}),
|
|
275
|
+
...(r.state === 'needs' || r.state === 'blocked' ? { waits: true } : {}), ...(me.lastWords ? { words: String(me.lastWords).slice(0, 240) } : {}) };
|
|
276
|
+
} else if (r.kind === 'item' && r.item && r.item.id) {
|
|
277
|
+
x = { id: 'w:' + r.item.id, kind: 'item', title: r.name, at: r.item.at || '', item: r.item.id, ...(r.late ? { late: true } : {}) };
|
|
278
|
+
} else if (r.kind === 'meeting' && r.meeting) {
|
|
279
|
+
const m = r.meeting;
|
|
280
|
+
x = { id: 'm:' + (m.series ? 's:' + m.series : 't:' + normTitle(m.title)), kind: 'meeting', title: r.name, at: m.start || '', event: { title: m.title, ...(m.series ? { series: m.series } : {}) }, ...(m.series ? { daily: 'Repeats' } : {}) };
|
|
281
|
+
}
|
|
282
|
+
if (x && !seen.has(x.id)) { seen.add(x.id); rows.push(x); }
|
|
283
|
+
}
|
|
284
|
+
const inis = [], have = new Set();
|
|
285
|
+
for (const p of (M && M.products) || []) {
|
|
286
|
+
const b = (p.model && p.model.board) || (p.primary && D && D.board && D.board.board) || {};
|
|
287
|
+
const list = (p.model && p.model.initiatives && p.model.initiatives.list && p.model.initiatives.list.rows) || (p.primary ? boardRows(D) : []);
|
|
288
|
+
for (const r of list.filter(OPEN)) if (r && r.id && !have.has(r.id)) { have.add(r.id); inis.push({ id: r.id, title: r.title || r.id, ws: p.ws || b.ws || '', board: b.id || '', anchor: r.anchor || '' }); }
|
|
289
|
+
}
|
|
290
|
+
return { rows, inis };
|
|
291
|
+
}
|
|
292
|
+
|
|
252
293
|
/* ── Your move (HvAOpen) ── */
|
|
253
294
|
/** Every row that is the PM's move, in one list for the Your day sheet: the PM's own late tasks and items first, then each next step and
|
|
254
295
|
* waiting session in the list's order. A row keeps its list id, so a press opens what the list row opens. Each row:
|
|
@@ -261,7 +302,7 @@ function moveOf(groups, needs) {
|
|
|
261
302
|
for (const t of g.tasks || []) if (t.mine && t.late) put(late, t, g.name);
|
|
262
303
|
if (g.msRow) put(rest, g.msRow, g.msRow.hint);
|
|
263
304
|
for (const r of g.flat || []) put(rest, r, '');
|
|
264
|
-
for (const i of (g.inis || []).concat(g.rest || [])) for (const k of i.kids.concat(i.tasks || [])) if (isMove(k)) put(k.kind === 'task' ? late : rest, k, i.name);
|
|
305
|
+
for (const i of (g.inis || []).concat(g.rest || [])) for (const k of i.kids.concat(i.tasks || [])) if (isMove(k)) put(k.kind === 'task' || k.kind === 'item' ? late : rest, k, i.name);
|
|
265
306
|
}
|
|
266
307
|
for (const r of needs) if (!seen.has(r.id) && !r.needSession) put(rest, r, r.kind === 'session' ? '' : bareHint(r));
|
|
267
308
|
return late.concat(rest);
|
|
@@ -57,14 +57,14 @@ const MS = '<span class="hv-ms" role="img" aria-label="Milestone" title="Milesto
|
|
|
57
57
|
/** A row of the list: a next step, a task, a note, a mention, a session or a meeting. o: { sel, kid } */
|
|
58
58
|
export function rowHtml(r, o) {
|
|
59
59
|
const sel = o.sel === r.id;
|
|
60
|
-
const cls = ['hm-r', 'hv-r', o.kid ? 'kid' : '', o.sub ? 'two' : '', sel ? 'sel' : '', 'st-' + (r.state || 'quiet'), r.kind === 'task' ? 'task' : '', r.kind === 'item' ? 'item' : '', r.done ? 'done' : ''].filter(Boolean).join(' ');
|
|
60
|
+
const cls = ['hm-r', 'hv-r', o.kid ? 'kid' : '', o.sub ? 'two' : '', o.safe ? 'safe' : '', sel ? 'sel' : '', 'st-' + (r.state || 'quiet'), r.kind === 'task' ? 'task' : '', r.kind === 'item' ? 'item' : '', r.done ? 'done' : ''].filter(Boolean).join(' ');
|
|
61
61
|
const lead = isCheck(r) ? checkHtml(r) : '';
|
|
62
62
|
// ending a session and putting a next step off stay on the row, shown on the row that is open (the frame draws neither)
|
|
63
63
|
const end = !sel ? '' : r.kind === 'session' && r.sid ? `<button type="button" class="ut-ib hm-x" data-hm-end="${esc(r.id)}" aria-label="End ${esc(r.name)}" title="End this session">${svg(P.x, 14)}</button>`
|
|
64
64
|
: r.kind === 'need' && r.row && r.row.kind !== 'source' ? `<button type="button" class="ut-ib hm-x" data-hm-end="${esc(r.id)}" aria-label="Put off ${esc(r.name)} until tomorrow" title="Put off until tomorrow">${svg(P.x, 14)}</button>` : '';
|
|
65
65
|
const link = r.link && r.kind === 'loose-rec' ? '<span class="hv-st">Link it</span>' : '';
|
|
66
66
|
return `<div class="${cls}" data-id="${esc(r.id)}">${lead}<button type="button" class="hm-rm" data-hm-sel="${esc(r.id)}"${sel ? ' aria-current="true"' : ''}${r.hint ? ` title="${esc(r.hint)}"` : ''}>${lead ? '' : markHtml(r)}`
|
|
67
|
-
+ `<span class="hm-rt${r.ms ? ' ms' : ''}"><b>${esc(r.name)}</b>${r.ms ? MS : ''}${o.sub ? `<em>${esc(o.sub)}</em>` : ''}</span>${o.sub ? '' : clock(r.when || whenOf(r))}${link}</button>${end}</div>`;
|
|
67
|
+
+ `<span class="hm-rt${r.ms ? ' ms' : ''}"><b>${esc(r.name)}</b>${r.ms ? MS : ''}${o.sub ? `<em>${o.safe ? '<i class="hm-sv" aria-hidden="true">✦</i>' : ''}${esc(o.sub)}</em>` : ''}</span>${o.sub ? '' : clock(r.when || whenOf(r))}${link}</button>${end}${o.act || ''}</div>`;
|
|
68
68
|
}
|
|
69
69
|
/** The chat's header line on a desktop (HvACDesk .ch): the open row's mark, its title and the chip of where it sits (the initiative's stage
|
|
70
70
|
* track and name, or the program's tile and name). h: { row, title, scope, at, stage, prog }. A chip that repeats the title is left out, and
|
|
@@ -86,14 +86,20 @@ export function chatHeadHtml(h) {
|
|
|
86
86
|
* when one is blocked, a ring when one runs, a clock for a meeting today, else a grey dot. A press lists them right under the pill (a sheet on
|
|
87
87
|
* a phone), each with its mark and one quiet line; a press on one opens it as the nested row did; + starts a new session in the initiative. */
|
|
88
88
|
const RANKED = ['needs', 'blocked', 'working', 'meeting', 'quiet'];
|
|
89
|
-
const kidState = (k) => (k.kind === 'meeting' && k.state !== 'working' ? 'meeting' : k.step ? 'needs' : RANKED.includes(k.state) ? k.state : 'quiet');
|
|
89
|
+
const kidState = (k) => (k.kind === 'meeting' && k.state !== 'working' ? 'meeting' : k.step || (k.kind === 'item' && k.late) ? 'needs' : RANKED.includes(k.state) ? k.state : 'quiet');
|
|
90
90
|
const KID_WORD = { needs: 'Asks you', blocked: 'Blocked, asks you', working: 'Running', quiet: 'Open' };
|
|
91
91
|
/** The quiet line under one row of the list: what it is and where it stands, in words (the mark says it again by shape). */
|
|
92
92
|
export function kidSub(k) {
|
|
93
93
|
if (k.kind === 'meeting') return k.hint || 'Meeting';
|
|
94
94
|
if (k.step) return k.hint || 'Next step';
|
|
95
|
+
if (k.kind === 'session' && k.close) return k.close.say; // idle: why it is safe to close, or what holds it (batch 13 item 7)
|
|
95
96
|
return [KID_WORD[kidState(k)] || 'Open', k.kind === 'session' && k.hint ? k.hint : ''].filter(Boolean).join(' · ');
|
|
96
97
|
}
|
|
98
|
+
/** What Claude proposes on one row of the list (canvas XcsA1Pill): a session idle and safe to close gets the ✦ in its line and one ✓. One ✦ a row. */
|
|
99
|
+
export function kidActHtml(k) {
|
|
100
|
+
if (!(k && k.kind === 'session' && k.close && k.close.safe && k.sid)) return '';
|
|
101
|
+
return `<button type="button" class="ut-ib hv-ib hm-cls" data-hm-close="${esc(k.sid)}" aria-label="Close this session; Claude says it is idle and safe" title="Close this session; Claude says it is idle and safe">${svg(P.check, 16)}</button>`;
|
|
102
|
+
}
|
|
97
103
|
/** The pill's model: the most urgent state, the count and its accessible words. Nothing in the initiative: null (zero is silence). */
|
|
98
104
|
export function pillOf(r) {
|
|
99
105
|
const kids = (r && r.kids) || [];
|
|
@@ -116,7 +122,7 @@ function pillHtml(r, o) {
|
|
|
116
122
|
/** The list behind the pill: the rows that used to nest, waiting first, then + for a new session here. */
|
|
117
123
|
function sesListHtml(r, o) {
|
|
118
124
|
const kids = r.kids.slice().sort((a, b) => RANKED.indexOf(kidState(a)) - RANKED.indexOf(kidState(b)));
|
|
119
|
-
return kids.map((k) => rowHtml(k, { ...o, kid: false, sub: kidSub(k) })).join('')
|
|
125
|
+
return kids.map((k) => rowHtml(k, { ...o, kid: false, sub: kidSub(k), act: kidActHtml(k), safe: !!(k.close && k.close.safe) })).join('')
|
|
120
126
|
+ `<div class="hv-spf"><button type="button" class="ut-ib hv-ib" data-hm-sesnew="${esc(r.ini || '')}" aria-label="New session in ${esc(r.name)}" title="New session here">${svg(P.plus, 18)}</button></div>`;
|
|
121
127
|
}
|
|
122
128
|
/** On a phone the list is a sheet over Home (as Your day was): the initiative's name and stage track on top. M is homeList(). */
|
|
@@ -190,10 +196,14 @@ function looseHtml(g, o) {
|
|
|
190
196
|
const open = o.pOpen(g), S2 = g.sig || {};
|
|
191
197
|
const say = [S2.sessions ? plural(S2.sessions, 'session', 'sessions') + (S2.needs ? ', ' + S2.needs + ' waits on you' : '') : S2.needs ? S2.needs + ' waits on you' : '', S2.tasks ? plural(S2.tasks, 'task', 'tasks') + (S2.late ? ', ' + S2.late + ' late' : '') : ''].filter(Boolean).join('; ') || String(g.n);
|
|
192
198
|
const sig = open ? '' : (S2.needs ? '<span class="hv-d sm" aria-hidden="true"></span>' : '') + (S2.late ? '<span class="hv-lt" aria-hidden="true"></span>' : '') + g.n;
|
|
193
|
-
|
|
199
|
+
// the blue ✦ and the number of rows Claude proposes to place (batch 13 item 3, XlcA1Desk): only when it has some (zero is silence)
|
|
200
|
+
const c = g.chip && g.chip.n ? g.chip : null;
|
|
201
|
+
const chip = c ? `<button type="button" class="lp-chip" data-lp-open aria-haspopup="dialog" aria-label="${esc(c.label)}" title="Claude proposes a clean-up">${svg(SPARK, 13)}<b>${c.n}</b></button>` : '';
|
|
202
|
+
return `<section class="hm-pg hv-g loose" aria-label="${esc(g.name)}"><div class="hv-lhw${chip ? ' has-chip' : ''}"><button type="button" class="hv-lh" data-hm-pg="${esc(g.key)}" aria-expanded="${open}" aria-label="${esc(g.name)}: ${esc(say)}. ${open ? 'Close' : 'Open'}">${esc(g.name)}<span class="n"><span class="nl">${sig}</span>${svg(open ? P.chevD : P.chevR, 15)}</span></button>${chip}</div>`
|
|
194
203
|
+ (open ? `<div class="hv-card">${g.rows.map((r) => rowHtml(r, o)).join('')}</div>` : '') + '</section>';
|
|
195
204
|
}
|
|
196
205
|
const plural = (n, one, many) => n + ' ' + (n === 1 ? one : many);
|
|
206
|
+
const SPARK = 'M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z';
|
|
197
207
|
|
|
198
208
|
/* ── the Today card ── */
|
|
199
209
|
/** The other meetings on now or close (T.also): one quiet line each under the card's buttons, with icon-only Open and Record. Each press
|
|
@@ -212,7 +212,10 @@ export function timelineHtml(v, o, isOpen) {
|
|
|
212
212
|
for (const t of tk) h += row(`${tkMark(t)}${tkTitle(t)}`, '', ' k');
|
|
213
213
|
for (const k of jr) h += row(`${jmark(k)}${ttitle(k)}`, jbar(k), ' k');
|
|
214
214
|
for (const x of rs) h += row(`${box(x, o)}${title(x, o)}`, barOf(x), ' k');
|
|
215
|
-
|
|
215
|
+
// a stage with nothing open lists its done tasks straight away, as the List does: no "Done" fold inside the stage's own fold
|
|
216
|
+
// (PM, 2026-10-27: "Grouping 'Done' items is confusing")
|
|
217
|
+
if (dn_.length && !rs.length && !jr.length && !tk.length) for (const x of dn_) h += row(`${box(x, o)}${title(x, o)}`, barOf(x), ' k x' + (x.wont ? ' wo' : ''));
|
|
218
|
+
else if (dn_.length) {
|
|
216
219
|
const dk = (sec.key || 'none') + ':done', dop = isOpen(dk, false);
|
|
217
220
|
h += row(`<button type="button" class="ivt-df" data-iv-fold="${esc(dk)}" aria-expanded="${dop}">Done<span class="n">${dn_.length}</span><span class="iv-cv" aria-hidden="true">${SVG(dop ? P.down : P.right, 14, 2)}</span></button>`, dop ? '' : dn_.map(barOf).join(''), ' k');
|
|
218
221
|
if (dop) for (const x of dn_) h += row(`${box(x, o)}${title(x, o)}`, barOf(x), ' k x' + (x.wont ? ' wo' : ''));
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* pm/loose-props.css — Claude's clean-up of Home's "Not in an initiative" (batch 13 item 3; canvas XlcA1Desk, XlcA3Sheet, XlcA4Pick).
|
|
2
|
+
* Every class here starts with lp-. The ✦ on the group's header, then the Viewer's body. Colours are the cozy tokens, so dark mode follows. */
|
|
3
|
+
.hv-lhw { position: relative; }
|
|
4
|
+
.hv-lhw.has-chip .hv-lh .nl { margin-right: 64px; }
|
|
5
|
+
.hv-lhw.has-chip .hv-lh .nl:empty { margin-right: 58px; }
|
|
6
|
+
.lp-chip { position: absolute; right: 34px; top: calc(50% + 6px); transform: translateY(-50%); display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 9px 0 7px; border-radius: 999px; border: 1.5px solid var(--cz-blue); background: var(--cz-card); color: var(--cz-blueink); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
|
|
7
|
+
.lp-chip:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
8
|
+
@media (hover: hover) { .lp-chip:hover { background: var(--cz-bluebg); } }
|
|
9
|
+
@media (max-width: 760px) { .lp-chip { height: 32px; } .lp-chip::after { content: ''; position: absolute; inset: -6px; } }
|
|
10
|
+
|
|
11
|
+
.lp { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 24px; }
|
|
12
|
+
.lp-intro { margin: 2px 0 4px; font-size: 13.5px; line-height: 1.5; color: var(--cz-ink2); max-width: 600px; }
|
|
13
|
+
.lp-sec h4 { margin: 8px 0 2px; font-size: 12.5px; font-weight: 700; color: var(--cz-ink3); }
|
|
14
|
+
.lp-p { padding: 4px 0; }
|
|
15
|
+
.lp-ph { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; }
|
|
16
|
+
.lp-ph .w, .lp-r .w, .lp-hr .w { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
17
|
+
.lp-ph b { font-size: 14px; font-weight: 800; color: var(--cz-ink); }
|
|
18
|
+
.lp-ph small, .lp-r small, .lp-hr small { font-size: 12.5px; color: var(--cz-ink2); line-height: 1.4; display: inline-flex; align-items: center; gap: 4px; }
|
|
19
|
+
.lp-ic { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; color: var(--cz-blueink); flex: none; margin-top: 1px; }
|
|
20
|
+
.lp-ib { all: unset; box-sizing: border-box; cursor: pointer; width: 32px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--cz-ink2); flex: none; }
|
|
21
|
+
.lp-ib.ok { color: var(--cz-blueink); }
|
|
22
|
+
.lp-ib:focus-visible, .lp-tile:focus-visible, .lp-more:focus-visible, .lp-pick button:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 1px; }
|
|
23
|
+
.lp-ib:disabled { opacity: .45; cursor: default; }
|
|
24
|
+
@media (hover: hover) { .lp-ib:hover { background: var(--cz-well); color: var(--cz-ink); } }
|
|
25
|
+
.lp-rows { display: flex; flex-direction: column; margin: 2px 0 6px 12px; padding-left: 22px; border-left: 2px solid var(--cz-hair); }
|
|
26
|
+
.lp-r { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 3px 0; }
|
|
27
|
+
.lp-r b { font-size: 13.5px; font-weight: 600; color: var(--cz-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
28
|
+
.lp-r.out b { text-decoration: line-through; color: var(--cz-ink3); }
|
|
29
|
+
.lp-mk { width: 16px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--cz-ink3); margin-left: -4px; }
|
|
30
|
+
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cz-blue); display: inline-block; }
|
|
31
|
+
.lp-late { width: 9px; height: 9px; border-radius: 2px; background: var(--cz-risk); display: inline-block; }
|
|
32
|
+
.lp-tile { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 6px 0 8px; border-radius: 999px; background: var(--cz-well); color: var(--cz-blueink); flex: none; }
|
|
33
|
+
.lp-tile b { font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
|
|
34
|
+
.lp-tile.on { box-shadow: 0 0 0 1.5px var(--cz-blue); background: var(--cz-card); }
|
|
35
|
+
.lp-tile.moved { background: var(--cz-bluebg); }
|
|
36
|
+
.lp-more { all: unset; box-sizing: border-box; cursor: pointer; min-height: 36px; padding: 6px 0; font-size: 12.5px; font-weight: 700; color: var(--cz-blueink); }
|
|
37
|
+
.lp-pick { align-self: flex-end; margin: 0 0 6px; width: min(330px, 100%); background: var(--cz-card); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); padding: 6px; display: flex; flex-direction: column; }
|
|
38
|
+
.lp-pick p { margin: 8px 10px 4px; font-size: 12px; font-weight: 700; color: var(--cz-ink3); }
|
|
39
|
+
.lp-pick button { all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; padding: 6px 10px; border-radius: 12px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--cz-ink); }
|
|
40
|
+
.lp-pick button .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
41
|
+
.lp-pick button[aria-checked="true"] { background: var(--cz-well); }
|
|
42
|
+
.lp-pick button[aria-checked="true"] svg { color: var(--cz-blueink); }
|
|
43
|
+
.lp-pick button.nw { color: var(--cz-ink2); font-weight: 600; }
|
|
44
|
+
@media (hover: hover) { .lp-pick button:hover { background: var(--cz-well); } }
|
|
45
|
+
.lp-tl { width: 26px; height: 26px; border-radius: 8px; background: var(--cz-bluebg); color: var(--cz-blueink); display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; flex: none; }
|
|
46
|
+
.lp-pick .nw .lp-tl { background: none; color: var(--cz-ink3); }
|
|
47
|
+
.lp-hist { margin-top: 8px; border-top: 1px solid var(--cz-hair); padding-top: 6px; }
|
|
48
|
+
.lp-hist summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--cz-ink3); list-style: none; }
|
|
49
|
+
.lp-hist summary::-webkit-details-marker { display: none; }
|
|
50
|
+
.lp-hist summary:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 1px; border-radius: 8px; }
|
|
51
|
+
.lp-hr { display: flex; align-items: center; gap: 8px; min-height: 44px; }
|
|
52
|
+
.lp-hr b { font-size: 13px; font-weight: 700; color: var(--cz-ink); }
|
|
53
|
+
.lp-hr.undone b { color: var(--cz-ink3); }
|
|
54
|
+
@media (max-width: 760px) { .lp { padding: 0 12px 24px; } .lp-ib { width: 40px; height: 40px; } .lp-rows { margin-left: 4px; padding-left: 12px; } }
|