create-pmos 0.660.0 → 0.662.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 +15 -9
- 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/briefing-premium-insights-test.js +9 -9
- package/workspace/changelog.json +14 -8
- package/workspace/goals-clear-ui-test.js +12 -12
- package/workspace/guide/intelligence-okr-goals.md +12 -1
- package/workspace/guide/routine.md +4 -5
- package/workspace/intel-report-ui-test.js +1 -1
- package/workspace/intelligence-gaps-ui-test.js +1 -1
- package/workspace/okr-goals-ui-test.js +3 -3
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/panels-test.js +2 -2
- package/workspace/public/pm/cozy-insights.css +78 -65
- package/workspace/public/pm/cozy-routine-detail.js +99 -0
- package/workspace/public/pm/cozy-routine-model.js +2 -2
- package/workspace/public/pm/cozy-routine.css +64 -66
- package/workspace/public/pm/cozy-routine.js +127 -38
- package/workspace/public/pm/premium-insights.js +183 -73
- package/workspace/public/premium-intelligence.html +38 -24
- package/workspace/public/premium-routine.html +16 -10
|
@@ -378,8 +378,6 @@ p.ins-fl { flex-direction: row; align-items: center; margin: 0 0 6px; flex-wrap:
|
|
|
378
378
|
.ins-strip { align-items: flex-start; }
|
|
379
379
|
.ins-strip .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
|
|
380
380
|
/* a drafted move on a phone: the finding and its move, the reason behind Ask why (summary first) */
|
|
381
|
-
.ins-hero.mv .t { display: block; }
|
|
382
|
-
.ins-hero.mv #insWhy { display: none; }
|
|
383
381
|
.ins-th, .ins-grp .q { display: none; }
|
|
384
382
|
.ins-tbl { border: 0; border-radius: 0; background: transparent; gap: 10px; overflow: visible; }
|
|
385
383
|
.ins-grp { background: transparent; border: 0; padding: 0 4px; min-height: 0; }
|
|
@@ -394,12 +392,7 @@ p.ins-fl { flex-direction: row; align-items: center; margin: 0 0 6px; flex-wrap:
|
|
|
394
392
|
.ins-side, .ins-side[data-kind] { width: 100%; }
|
|
395
393
|
.ins-2 { grid-template-columns: 1fr; }
|
|
396
394
|
/* Iq8Phone: the strip, the North Star as one card, the key results as cards; drafts and Did it work? as cards */
|
|
397
|
-
#insHero { display: flex; flex-wrap: wrap; }
|
|
398
|
-
#insHero .t { flex-basis: calc(100% - 30px); }
|
|
399
395
|
.ins-ns, .ins-ns.one { grid-template-columns: minmax(0, 1fr); }
|
|
400
|
-
.ins-nsh { flex-wrap: wrap; }
|
|
401
|
-
.ins-nsh .cz-seg { display: none; }
|
|
402
|
-
.ins-nsch { height: 70px; }
|
|
403
396
|
.ins-row.ins-dcols { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); padding: 12px 14px; }
|
|
404
397
|
.ins-row.ins-dcols > :nth-child(n+2):not(.ins-act) { grid-column: 1; }
|
|
405
398
|
.ins-row.ins-dcols .ins-act { grid-row: 1; grid-column: 2; }
|
|
@@ -590,53 +583,19 @@ body.ins-trv #goalTbl { border: 0; background: none; border-radius: 0; overflow:
|
|
|
590
583
|
|
|
591
584
|
/* ── Intelligence (batch 15 item 1: Iq8Overview, Iq8Suggest, Iq9Draft, Iq8Phone) ── */
|
|
592
585
|
/* the ✦ strip: the finding in ink, its reason after it; Not now, Ask why and the dots at its end */
|
|
593
|
-
.ins-hero #brief { font-weight: var(--fw-strong); color: var(--ink); }
|
|
594
586
|
.ins-hact { display: inline-flex; gap: 2px; flex: none; }
|
|
595
587
|
/* a finding with a drafted move (batch 16 item 1): the strip takes two lines, the move under the finding with its ✦; ✓ makes it, Done + Undo after */
|
|
596
|
-
.ins-hero.mv .t { white-space: normal; }
|
|
597
|
-
.ins-mv { display: flex; align-items: flex-start; gap: 6px; margin-top: 3px; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--blue); line-height: var(--lh-label); }
|
|
598
|
-
.ins-mv[hidden] { display: none; }
|
|
599
|
-
.ins-mv svg { width: 13px; height: 13px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
|
|
600
|
-
.ins-mv.dn { color: var(--muted); }
|
|
601
588
|
/* a drafted metric edited in place (batch 16 item 1): its name, target and source as quiet fields on the row */
|
|
602
589
|
.ins-dri { width: 100%; min-width: 0; height: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 8px; font: inherit; font-size: var(--fs-row); font-weight: var(--fw-strong); background: var(--card); color: var(--ink); line-height: var(--lh-row); }
|
|
603
590
|
.ins-dri:focus { outline: 2px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 0; border-color: var(--blue); }
|
|
604
591
|
.ins-dred { background: color-mix(in srgb, var(--blue) 5%, var(--card)); }
|
|
605
|
-
.ins-hact:empty, .ins-pg:empty { display: none; }
|
|
606
|
-
.ins-pg { display: inline-flex; gap: 5px; flex: none; padding: 0 6px; }
|
|
607
|
-
.ins-pg button { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--muted) 35%, var(--card)); cursor: pointer; position: relative; }
|
|
608
|
-
.ins-pg button::after { content: ''; position: absolute; inset: -12px -4px; }
|
|
609
|
-
.ins-pg button.on { background: var(--blue); width: 18px; border-radius: var(--radius-sm); }
|
|
610
|
-
.ins-pg button[hidden] { display: none; }
|
|
592
|
+
.ins-hact:empty, .ins-pg:empty { display: none; } /* the finding’s answers and its "n of N" are silent when there is nothing to press */
|
|
611
593
|
/* the North Star and its inputs */
|
|
612
594
|
.ins-ns { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 12px; }
|
|
613
595
|
.ins-ns[hidden] { display: none; }
|
|
614
596
|
.ins-ns.one { grid-template-columns: minmax(0, 1fr); }
|
|
615
|
-
.ins-nsc, .ins-nsi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
|
|
616
|
-
.ins-nsh { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
|
|
617
|
-
.ins-lbl2 { font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--muted); line-height: var(--lh-label); }
|
|
618
|
-
.ins-lbl2 span { font-weight: var(--fw-strong); color: var(--muted); margin-left: 4px; }
|
|
619
|
-
.ins-nsv { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
|
|
620
597
|
.ins-big { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }
|
|
621
|
-
.ins-big b { font-size: var(--fs-display); font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; line-height: var(--lh-display); }
|
|
622
|
-
.ins-nsch { width: 100%; height: 110px; display: block; overflow: visible; }
|
|
623
|
-
.ins-nsch .ln { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; }
|
|
624
|
-
.ins-nsch .ar { fill: var(--blue-tint); stroke: none; opacity: .7; }
|
|
625
|
-
.ins-nsch .pv { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .6; vector-effect: non-scaling-stroke; }
|
|
626
|
-
.ins-nsch .pt { fill: var(--card); stroke: var(--blue); stroke-width: 1.5; opacity: 0; transition: opacity .15s; }
|
|
627
|
-
.ins-nsch .pt:hover { opacity: 1; }
|
|
628
|
-
.ins-nsch .dt { fill: var(--blue); }
|
|
629
|
-
.ins-nsi .ins-lbl2 + .ins-inr { border-top: 0; }
|
|
630
|
-
.ins-nsi .ins-inr + .ins-lbl2 { margin-top: 6px; }
|
|
631
|
-
.ins-inr { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 4px 0; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
|
|
632
|
-
.ins-inr .nm { font-size: var(--fs-row); font-weight: var(--fw-strong); min-width: 0; line-height: var(--lh-row); }
|
|
633
|
-
.ins-inr .v { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
|
|
634
|
-
.ins-inr .v b { font-size: var(--fs-row); font-weight: var(--fw-strong); line-height: var(--lh-row); }
|
|
635
|
-
.ins-inr .v span { font-size: var(--fs-badge); font-weight: var(--fw-strong); line-height: var(--lh-badge); }
|
|
636
|
-
.ins-inr .up { color: var(--chart-done); } .ins-inr .dn { color: var(--alert); } .ins-inr .q { color: var(--muted); }
|
|
637
598
|
/* what Claude drafted */
|
|
638
|
-
.ins-dr { display: flex; flex-direction: column; gap: 10px; border: 1px dashed var(--blue); border-radius: var(--radius-card); padding: 12px 14px; background: linear-gradient(100deg, var(--blue-tint) 0%, var(--card) 60%); }
|
|
639
|
-
.ins-dr[hidden] { display: none; }
|
|
640
599
|
.ins-drh { display: flex; align-items: center; gap: 10px; }
|
|
641
600
|
.ins-drh > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-body); line-height: var(--lh-body); }
|
|
642
601
|
.ins-drh .sp { color: var(--blue); display: inline-flex; }
|
|
@@ -679,15 +638,11 @@ body.ins-trv #goalTbl { border: 0; background: none; border-radius: 0; overflow:
|
|
|
679
638
|
/* Intelligence on a phone (Iq8Phone): one column; these follow the rules above so they win */
|
|
680
639
|
@media (max-width: 720px) {
|
|
681
640
|
.ins-ns, .ins-ns.one { grid-template-columns: minmax(0, 1fr); }
|
|
682
|
-
.ins-nsh .cz-seg { display: none; }
|
|
683
|
-
.ins-nsch { height: 70px; }
|
|
684
|
-
.ins-inr .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
685
641
|
.ins-gby { margin-left: 0; flex-basis: 100%; }
|
|
686
642
|
}
|
|
687
643
|
/* batch 15 item 1: the ⋯ rows carry an icon, so they lay out side by side (icon, words, count) */
|
|
688
644
|
.ins-menu#moreMenu [role="menuitem"] { flex-direction: row; align-items: center; gap: 10px; }
|
|
689
645
|
.ins-menu#moreMenu [role="menuitem"] > span:not(.k) { flex: 1; min-width: 0; }
|
|
690
|
-
.ins-strip .sp.ad svg { width: 40px; height: 40px; fill: initial; stroke: none; } /* Adler in Claude’s line (batch 16 item 2, AdH3) */
|
|
691
646
|
|
|
692
647
|
/* ── Claude runs the OKRs (batch 16 item 6, 6-B; frames GsM1–M5, GsViewer, GsMetrics, GsMetricsTree, GsProduct): one goal list on every width.
|
|
693
648
|
* A row is a dot, the outcome with its reading and age, and the owner; its drafts sit under it with ✕ / ✎ / ✓. ── */
|
|
@@ -853,7 +808,6 @@ textarea.ins-dri { height: auto; padding: 6px 8px; font-weight: var(--fw-regular
|
|
|
853
808
|
.gc-file { display: flex; justify-content: flex-end; }
|
|
854
809
|
.gc-wait { border: 1.5px dashed var(--line); border-color: var(--chart-rest); border-radius: var(--radius-card); min-height: 120px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px; font-size: var(--fs-body); color: var(--muted); line-height: var(--lh-body); }
|
|
855
810
|
.gc-ed { display: flex; flex-direction: column; gap: 10px; }
|
|
856
|
-
.ins-dr.gc-on { border: 0; padding: 0; background: none; gap: 12px; }
|
|
857
811
|
|
|
858
812
|
/* ── batch 18 item 11 gap: the goals dashboard (Iq8Overview with GcJ2FirstMonday): the first readings, a failed or held reading, the drafts under a row ── */
|
|
859
813
|
.ins-dot1 { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--chart-rest); }
|
|
@@ -863,11 +817,10 @@ textarea.ins-dri { height: auto; padding: 6px 8px; font-weight: var(--fw-regular
|
|
|
863
817
|
.ins-drr { border-top: 0; padding: 0 16px 4px 0; }
|
|
864
818
|
.ins-drr .okr-dr { margin-left: 16px; }
|
|
865
819
|
.ins-nsc .gc-wait { flex: 1; }
|
|
866
|
-
.ins-nsn { margin-left: auto; }
|
|
867
820
|
.ins-nsd .okr-dr { margin: 6px 0 0; }
|
|
868
821
|
.ins-inr .nm small { display: block; font-weight: var(--fw-strong); color: var(--alert); margin-top: 2px; }
|
|
869
822
|
#goalTbl[hidden] { display: none !important; }
|
|
870
|
-
@media (max-width: 720px) { .ins-cards > .okr-dr { margin: -2px 0 4px 12px; }
|
|
823
|
+
@media (max-width: 720px) { .ins-cards > .okr-dr { margin: -2px 0 4px 12px; } }
|
|
871
824
|
|
|
872
825
|
/* ── Intelligence as the first panel (panels on Board and Intelligence, P-B; BiI1Split, BiI2Half): the narrow form is the phone's goal cards
|
|
873
826
|
* (pm/pn-narrow.js keys the phone rules on .cz-pn-narrow); Moved by steps aside while the table is too narrow for it, and the goal Viewer
|
|
@@ -990,24 +943,84 @@ body.ins-trv #pGoals .ins-trstrip { display: flex; } /* the narrow form hides
|
|
|
990
943
|
}
|
|
991
944
|
|
|
992
945
|
/* Waiting on a source (U3, UI grill item 4): the key results with no reading, one row per source, its key results, its one connect ✓ */
|
|
993
|
-
.ins-wait .ins-wh { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; }
|
|
994
|
-
.ins-wait .ins-wh h2 { margin: 0; font-size: var(--fs-row); font-weight: var(--fw-strong); line-height: var(--lh-row); }
|
|
995
|
-
.ins-wait .ins-wh .q { color: var(--muted); font-size: var(--fs-meta); }
|
|
996
|
-
.ins-wl { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; background: var(--card); }
|
|
997
|
-
.ins-wrow { display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; }
|
|
998
|
-
.ins-wrow + .ins-wrow { border-top: 1px solid var(--line); }
|
|
999
|
-
.ins-wsrc { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
1000
|
-
.ins-wsrc small { color: var(--muted); font-size: var(--fs-meta); line-height: var(--lh-meta); }
|
|
1001
|
-
.ins-wkrs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
|
|
1002
|
-
.ins-wkr { border: 1px solid var(--line); background: transparent; border-radius: var(--radius-pill); padding: 3px 10px; font: inherit; font-size: var(--fs-meta); color: var(--muted); cursor: pointer; text-align: left; }
|
|
1003
|
-
.ins-wkr:hover, .ins-wkr:focus-visible { background: var(--blue-tint); }
|
|
1004
|
-
.ins-wkr .ins-krt { margin-right: 6px; }
|
|
1005
|
-
@media (max-width: 760px) {
|
|
1006
|
-
.ins-wrow { grid-template-columns: minmax(0, 1fr) auto; }
|
|
1007
|
-
.ins-wkrs { grid-column: 1 / -1; grid-row: 2; }
|
|
1008
|
-
}
|
|
1009
946
|
|
|
1010
947
|
/* the Badge's tones on this page (design-system/ui/components/Badge): late, at risk and red are alert; you is PMOS waiting on you (blue);
|
|
1011
948
|
* on course (ok) and quiet (q) take no colour, because on track gets no colour. The words stay the hooks the page's code and suites read. */
|
|
1012
949
|
.pm-ds .pm-badge.late, .pm-ds .pm-badge.risk, .pm-ds .pm-badge.red { background: var(--alert-tint); color: var(--alert); }
|
|
1013
950
|
.pm-ds .pm-badge.you { background: var(--blue-tint); color: var(--blue); }
|
|
951
|
+
|
|
952
|
+
/* ── Intelligence from Komorebi blocks (board IntelligenceDS on Exploring 3, initiative intelligence-ds-page) ─────────────────────────────
|
|
953
|
+
* The parts draw themselves (komorebi.css: Block, Suggestion, Chart, Number, ListRow, Table, Tabs, Badge, Fold, Switch, Menu); these rules
|
|
954
|
+
* only place them: the top line, one column of 1080 px, and where each part sits in its block. No colour, size or radius of its own. */
|
|
955
|
+
.ins-col { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
|
|
956
|
+
.ins-col > * { width: 100%; max-width: 1080px; }
|
|
957
|
+
.ins-col > #pGoals { max-width: none; } /* the key results, when asked for, keep the page's whole width: Moved by needs it */
|
|
958
|
+
.ins-col > [hidden] { display: none !important; } /* a Block is flex; hidden still hides it */
|
|
959
|
+
.ins-bar { gap: 12px; }
|
|
960
|
+
.ins-path .pm-ic { width: 14px; height: 14px; }
|
|
961
|
+
.ins-path b { font-weight: var(--fw-strong); }
|
|
962
|
+
/* What PMOS found: the finding, then its Suggestion; the answers at the Suggestion's foot */
|
|
963
|
+
.ins-hero .ins-ad { display: inline-flex; }
|
|
964
|
+
.ins-hero .ins-ad.ad svg { width: 28px; height: 28px; fill: initial; stroke: none; } /* Adler in the line's icon slot (batch 16 item 2) */
|
|
965
|
+
.ins-txt { display: flex; flex-direction: column; gap: 12px; }
|
|
966
|
+
.ins-say { margin: 0; }
|
|
967
|
+
.ins-say #insWhy { color: var(--muted); }
|
|
968
|
+
.ins-hero .ins-pg { display: inline-flex; align-items: center; gap: 2px; }
|
|
969
|
+
.ins-hero .ins-hact:not(.ans) { align-self: flex-end; gap: 8px; }
|
|
970
|
+
.ins-hero .pm-sug.x .ans { display: flex; gap: 8px; justify-content: flex-end; }
|
|
971
|
+
.ins-hero .pm-sug.x.dn { opacity: .8; }
|
|
972
|
+
.ins-hero.crit .ins-ad { color: var(--alert); }
|
|
973
|
+
/* the North Star: the number and its pace at the head's right, the chart, the inputs and guardrails as Numbers under it */
|
|
974
|
+
.ins-nsb { gap: 16px; }
|
|
975
|
+
.ins-nsc { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
976
|
+
.ins-nsb .ins-lbl2 span { color: var(--ink); }
|
|
977
|
+
.ins-big { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: inherit; }
|
|
978
|
+
.ins-nsch { position: relative; padding-top: 22px; } /* room for the ship labels over the line */
|
|
979
|
+
.ins-nsch .pm-chart-head:empty { display: none; }
|
|
980
|
+
.ins-ships { position: absolute; inset: -22px 0 0 0; pointer-events: none; }
|
|
981
|
+
.ins-ship { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line); }
|
|
982
|
+
.ins-ship .pm-dia { top: 10px; left: 0; pointer-events: auto; cursor: default; }
|
|
983
|
+
.ins-ship .pm-meta { position: absolute; top: 0; left: 12px; white-space: nowrap; }
|
|
984
|
+
.ins-nsi { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
|
|
985
|
+
.ins-inr { font: inherit; color: inherit; text-align: left; cursor: pointer; gap: 8px; }
|
|
986
|
+
.ins-inr .ins-nmr, .ins-inr .ins-nvr { flex-wrap: nowrap; }
|
|
987
|
+
.ins-inr .sp, .ins-tile .sp { flex: 1; }
|
|
988
|
+
.ins-inr .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
989
|
+
/* the measures PMOS drafted: ListRows with ✓ and ✕ */
|
|
990
|
+
.ins-dr .rows { display: flex; flex-direction: column; }
|
|
991
|
+
.ins-dr .gc-tr { cursor: pointer; }
|
|
992
|
+
.ins-dr .gc-tr > svg { width: 16px; height: 16px; color: var(--blue); }
|
|
993
|
+
.ins-dr .gc-acts { display: flex; gap: 2px; }
|
|
994
|
+
.pm-ds .ins-dr .pm-li .gc-hw { white-space: normal; overflow-wrap: anywhere; }
|
|
995
|
+
/* Delivery trends: Number tiles, three to a row; Choose tiles as a Menu of Switches */
|
|
996
|
+
.ins-trb .ins-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding: 0; border-top: 0; }
|
|
997
|
+
.ins-trb .ins-tile { background: var(--card); padding: 14px 16px; gap: 4px; cursor: pointer; }
|
|
998
|
+
.ins-trb .ins-tile.warn { border-color: var(--alert); }
|
|
999
|
+
.ins-trb .ins-tile.sel { box-shadow: var(--glow); }
|
|
1000
|
+
.ins-trb .ins-tile .l { font-weight: var(--fw-strong); color: var(--ink); }
|
|
1001
|
+
.ins-trb .ins-tile .ins-tsp { width: 160px; height: 34px; }
|
|
1002
|
+
.ins-tilemenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; padding: 4px 12px; min-width: 260px; }
|
|
1003
|
+
.ins-tilemenu .pm-set:first-child { border-top: 0; }
|
|
1004
|
+
.ins-tilemenu .pm-set .sp { flex: 1; }
|
|
1005
|
+
/* key results live on Goals: on a desk they show only when asked (body.ins-krs); a phone keeps its goal cards */
|
|
1006
|
+
@media (min-width: 761px) { body:not(.ins-krs) #pGoals { display: none; } }
|
|
1007
|
+
/* Did it work?: the Table; a row's presses at its end; the decided rows fold under it */
|
|
1008
|
+
#outTbl { display: flex; flex-direction: column; gap: 12px; }
|
|
1009
|
+
.ins-otbl td { vertical-align: top; }
|
|
1010
|
+
.ins-otbl td.pace { white-space: normal; }
|
|
1011
|
+
.ins-otbl .nm a { color: var(--ink); text-decoration: none; }
|
|
1012
|
+
.ins-otbl .ins-act { white-space: nowrap; text-align: right; }
|
|
1013
|
+
.ins-otbl .ins-dv { display: inline-flex; gap: 6px; align-items: flex-start; }
|
|
1014
|
+
.ins-otbl .ins-dv > svg { width: 14px; height: 14px; color: var(--blue); margin-top: 4px; }
|
|
1015
|
+
/* Waiting on a source: a ListRow per source, its key results nested under it */
|
|
1016
|
+
.ins-wait .rows { display: flex; flex-direction: column; }
|
|
1017
|
+
.ins-wsrc > svg { width: 16px; height: 16px; color: var(--muted); }
|
|
1018
|
+
.ins-wkr { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
|
|
1019
|
+
.ins-wkr .pm-btn { pointer-events: none; }
|
|
1020
|
+
@media (max-width: 720px) {
|
|
1021
|
+
.ins-col { gap: 12px; }
|
|
1022
|
+
.ins-nsb .head .pm-tabs { display: none; }
|
|
1023
|
+
.ins-nsb .head { flex-wrap: wrap; }
|
|
1024
|
+
.ins-otbl thead { display: none; }
|
|
1025
|
+
.ins-otbl tr, .ins-otbl td { display: block; }
|
|
1026
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/* pm/cozy-routine-detail.js — a routine in the Detail at the right of Routine (initiative routine-ds-page; board RoutineDS on Exploring 3,
|
|
2
|
+
* page "pages"; done test planning/done-tests/routine-ds-page.md C3, C4). PURE: no DOM and no fetch, so node tests it (routine-place.test.js).
|
|
3
|
+
*
|
|
4
|
+
* Main + open item (Komorebi MainItem): the table stays, the pressed row opens here. The Detail part: the name, the row's own switch, then
|
|
5
|
+
* icon buttons Chat (the chat slide-over about this routine), Open in full (the full popup, pm/cozy-routine-pop.js or pm/cozy-routine-job.js,
|
|
6
|
+
* where every value edits, ▶ runs it now and ⋯ deletes it) and Close. Then what it does, the fields (Product, When, Reads, Tells, Next) and
|
|
7
|
+
* Last runs: a report's issues, each opens the issue; a read's, job's or task's runs, a failed one says why.
|
|
8
|
+
*
|
|
9
|
+
* One expanded Suggestion (pm-sug x, the shared sugHtml of pm/bd-stands.js) only when PMOS sees a pattern in the records:
|
|
10
|
+
* wait a report PMOS proposes (its row waits in Waits for you): Yes starts it (confirm, or move to the product it is about), No drops it.
|
|
11
|
+
* fail a read, a job or your task whose last two runs failed: Yes runs it once now, No hides the line for those runs on this computer.
|
|
12
|
+
* Every word comes from a field of a record; a field the record leaves silent is not drawn.
|
|
13
|
+
* detailHtml(D) · patternOf(D) · fieldsOf(D) · lastOf(D) D = { row, rep?, job?: { raw, tools, own, svc, extra }, hide?: Set } */
|
|
14
|
+
import { runsOf } from './cozy-routine-job.js';
|
|
15
|
+
import { builtFrom, dayMon, issueName } from './cozy-routine-pop.js';
|
|
16
|
+
import { dayTime } from './cozy-routine-model.js';
|
|
17
|
+
import { sugHtml } from './bd-stands.js';
|
|
18
|
+
|
|
19
|
+
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
20
|
+
const svg = (d, n = 16) => `<svg class="pm-ic" viewBox="0 0 24 24" width="${n}" height="${n}" aria-hidden="true"><path d="${d}"/></svg>`;
|
|
21
|
+
export const DI = {
|
|
22
|
+
chat: 'M4 5h16v11H9l-5 4z', full: 'M14 4h6v6M20 4l-7 7M10 20H4v-6M4 20l7-7', x: 'M6 6l12 12M18 6L6 18', open: 'M14 4h6v6M20 4l-9 9M18 14v6H4V6h6',
|
|
23
|
+
};
|
|
24
|
+
const KIND = { reports: 'Report', reads: 'PMOS reads', jobs: 'PMOS job', tasks: 'Your task' };
|
|
25
|
+
|
|
26
|
+
/** What it does, in one paragraph: a report's purpose (or who it tells), a read's or job's own words, your task's instruction. */
|
|
27
|
+
export function doesOf(D) {
|
|
28
|
+
const r = D.row || {}, raw = (D.job && D.job.raw) || {};
|
|
29
|
+
if (r.kind === 'reports') return String((D.rep && D.rep.purpose) || r.does || '');
|
|
30
|
+
if (r.kind === 'tasks') return String(raw.args || r.does || '');
|
|
31
|
+
if (r.svc) return 'Reads what is new in ' + r.name + ' and puts it into Today. It reads only; it sends nothing.';
|
|
32
|
+
return String(raw.what || r.does || '');
|
|
33
|
+
}
|
|
34
|
+
/** The fields, as [label, words]: only what the records say. */
|
|
35
|
+
export function fieldsOf(D) {
|
|
36
|
+
const r = D.row || {}, rep = D.rep || null, J = D.job || {}, raw = J.raw || {};
|
|
37
|
+
const out = [];
|
|
38
|
+
out.push(['Product', (r.wss && r.wss.length ? r.wss.join(', ') : r.kind === 'reads' || r.kind === 'jobs' ? 'Every product' : '')]);
|
|
39
|
+
out.push(['When', r.when || '']);
|
|
40
|
+
const reads = r.kind === 'reports' ? (rep && rep.source ? builtFrom(rep) : '') : r.kind === 'tasks' ? String(raw.skill || raw.task || '') : (raw.inputs || []).map((i) => i && i.label).filter(Boolean).join(', ');
|
|
41
|
+
out.push(['Reads', reads]);
|
|
42
|
+
if (r.kind === 'reports') out.push(['Tells', String((rep && rep.audience) || 'You')]);
|
|
43
|
+
if (!r.proposed) out.push(['Next', r.next || '']); // a proposal has no Next: its Suggestion says what starts it
|
|
44
|
+
return out.filter(([, v]) => v);
|
|
45
|
+
}
|
|
46
|
+
/** Last runs, newest first (at most 5): { when, said, ok, path? }. A report's are its issues (Draft or Issued); the rest come from runsOf. */
|
|
47
|
+
export function lastOf(D) {
|
|
48
|
+
const r = D.row || {};
|
|
49
|
+
if (r.kind === 'reports') {
|
|
50
|
+
const L = ((D.rep && D.rep.issues) || []).filter((x) => x && !x.archived && x.path).slice().sort((a, b) => (a.slot < b.slot ? 1 : -1)).slice(0, 5);
|
|
51
|
+
return L.map((x) => ({ when: dayMon(x.slot), said: (issueName(D.rep.issues, x.path) || 'Issue').replace(/ · .*$/, '') + (x.state === 'issued' ? ' · issued' : ' · a draft'), ok: true, path: x.path }));
|
|
52
|
+
}
|
|
53
|
+
if (!D.job) return [];
|
|
54
|
+
return runsOf({ row: r, raw: D.job.raw || {}, tools: D.job.tools || null, svc: D.job.svc || null }).map((u) => ({ when: dayTime(u.at), said: u.said, ok: u.ok }));
|
|
55
|
+
}
|
|
56
|
+
/** The one pattern PMOS sees in the records, as an expanded Suggestion's words, or null. */
|
|
57
|
+
export function patternOf(D) {
|
|
58
|
+
const r = D.row || {};
|
|
59
|
+
if (r.proposed && r.kind === 'reports') {
|
|
60
|
+
const act = (D.rep && D.rep.act) || {}, move = act.act === 'move';
|
|
61
|
+
if (!act.act) return null;
|
|
62
|
+
return { id: 'wait', title: move ? 'Move ' + r.name + ' to ' + (act.toName || act.to) + ' and start it?' : 'Start ' + r.name + '?',
|
|
63
|
+
why: 'PMOS wrote its definition and it waits for your word. Until then nothing drafts it.',
|
|
64
|
+
will: [move ? 'Move the definition to ' + (act.toName || act.to) : 'Turn the switch on', 'Draft it ' + (r.when ? r.when.replace(/^Every/, 'every') : 'on its schedule') + ' and put each issue in Library'],
|
|
65
|
+
changes: 'It moves from Waits for you to Reports, switched on. Nothing is sent: you send each issue yourself.',
|
|
66
|
+
basis: D.rep && D.rep.definition ? 'Its definition, ' + D.rep.definition : 'Its definition' };
|
|
67
|
+
}
|
|
68
|
+
if (r.kind === 'reports' || !D.job) return null;
|
|
69
|
+
const runs = runsOf({ row: r, raw: D.job.raw || {}, tools: D.job.tools || null, svc: D.job.svc || null });
|
|
70
|
+
const fails = [];
|
|
71
|
+
for (const u of runs) { if (u.ok || u.said === 'Running') break; fails.push(u); }
|
|
72
|
+
if (fails.length < 2) return null;
|
|
73
|
+
const sig = 'fail:' + r.key + ':' + fails[0].at;
|
|
74
|
+
if (D.hide && D.hide.has(sig)) return null;
|
|
75
|
+
return { id: 'fail', sig, title: 'Run ' + r.name + ' again now?',
|
|
76
|
+
why: 'The last ' + fails.length + ' runs failed. The newest says: ' + fails[0].said.replace(/^Failed:?\s*/, '') + '.',
|
|
77
|
+
will: [r.kind === 'reads' ? 'Read it once now' : 'Run it once now', 'Show what came out under Last runs'],
|
|
78
|
+
changes: 'Nothing else. Its schedule and its switch stay as they are.',
|
|
79
|
+
basis: 'Its last ' + fails.length + ' runs, ' + dayTime(fails[fails.length - 1].at) + ' to ' + dayTime(fails[0].at) };
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/** The Detail, as html. */
|
|
83
|
+
export function detailHtml(D) {
|
|
84
|
+
const r = D.row || {}, busy = !!D.busy;
|
|
85
|
+
const label = r.proposed ? r.name + ': proposed by PMOS. Press to start it' : r.name + (r.on ? ': on. Press to pause it' : ': paused. Press to start it again');
|
|
86
|
+
const sw = r.on === null || r.on === undefined ? '' : `<button type="button" class="pm-switch" role="switch" aria-checked="${!!r.on}" data-sw="${esc(r.key)}" aria-label="${esc(label)}" title="${r.proposed ? 'Proposed. Turn on to start it' : r.on ? 'On' : 'Paused'}"${busy ? ' disabled' : ''}></button>`;
|
|
87
|
+
const btn = (k, icon, l) => `<button type="button" class="pm-btn" data-rd="${k}" aria-label="${esc(l)}" title="${esc(l)}">${svg(icon)}</button>`;
|
|
88
|
+
const head = `<div class="head"><h2 class="pm-h rt-dt">${esc(r.name)}</h2>${sw}${btn('chat', DI.chat, 'Chat about ' + r.name)}${btn('full', DI.full, 'Open in full')}${btn('close', DI.x, 'Close')}</div>`;
|
|
89
|
+
const does = doesOf(D);
|
|
90
|
+
const f = fieldsOf(D);
|
|
91
|
+
const fields = f.length ? `<dl class="pm-field">${f.map(([k, v]) => `<dt>${esc(k)}</dt><dd>${esc(v)}</dd>`).join('')}</dl>` : '';
|
|
92
|
+
const L = lastOf(D);
|
|
93
|
+
const runs = `<div class="rt-runs"><h3 class="pm-meta rt-dh">Last runs</h3>${L.length ? `<div class="rows">${L.map((u) => `<div class="pm-li"><span class="pm-meta rt-when">${esc(u.when)}</span><span class="txt"><span class="w${u.ok ? '' : ' bad'}">${esc(u.said)}</span></span>`
|
|
94
|
+
+ (u.path ? `<span class="acts"><button type="button" class="pm-btn" data-rd="issue" data-path="${esc(u.path)}" aria-label="${esc('Open ' + u.said)}" title="Open it">${svg(DI.open)}</button></span>` : '') + '</div>').join('')}</div>` : '<p class="pm-meta">It has not run yet.</p>'}</div>`;
|
|
95
|
+
const p = patternOf(D);
|
|
96
|
+
const sug = p ? sugHtml(p, `data-pat="${esc(p.id)}" data-key="${esc(r.key)}"${p.sig ? ` data-sig="${esc(p.sig)}"` : ''}`, 'data-rsug') : '';
|
|
97
|
+
const msg = D.msg ? `<p class="pm-meta" role="status">${esc(D.msg)}</p>` : '';
|
|
98
|
+
return `<section class="pm-block rt-detail pm-motion-enter" aria-label="${esc(KIND[r.kind] + ': ' + r.name)}">${head}${does ? `<p class="rt-does">${esc(does)}</p>` : ''}${fields}${runs}${sug}${msg}</section>`;
|
|
99
|
+
}
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
* wait { act, label, say } on a row of Waits for you: its one ✓ (confirm the definition, or move it to the product it is about)
|
|
16
16
|
* routineGroups(rows, kind) → [{ id, title, rows }] the groups in order; a group with no row is left out (zero is silence)
|
|
17
17
|
* didLine(done, now) → { n, recent, shown, text } | null the one "PMOS did" line over GET /api/autonomy done of every product
|
|
18
|
-
* KINDS the filter: All, Reports, Reads,
|
|
18
|
+
* KINDS the filter (the Tabs): All, Reports, Reads, Jobs, Your tasks
|
|
19
19
|
*
|
|
20
20
|
* Every word comes from a field of a record. A field the record leaves silent is '' and its cell is empty; nothing is filled with a guess. */
|
|
21
21
|
import { atOf, everyLine } from './cozy-evmodel.js';
|
|
22
22
|
|
|
23
|
-
export const KINDS = [['all', 'All'], ['reports', 'Reports'], ['reads', 'Reads'], ['jobs', '
|
|
23
|
+
export const KINDS = [['all', 'All'], ['reports', 'Reports'], ['reads', 'Reads'], ['jobs', 'Jobs'], ['tasks', 'Your tasks']];
|
|
24
24
|
/** A work copy's product: "pmos-idpf ⑂ initiative/psle-paywall-lock" → "pmos-idpf". A branch name never shows (round 3 item 2). */
|
|
25
25
|
export const productName = (n) => String(n || '').split(' ⑂ ')[0].trim();
|
|
26
26
|
/** The Type word of each kind (round 2): the first column after the name. */
|
|
@@ -1,69 +1,63 @@
|
|
|
1
|
-
/* pm/cozy-routine.css — Routine (initiative routine-place, board 11
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
1
|
+
/* pm/cozy-routine.css — Routine (initiative routine-place, board 11; rebuilt from blocks by routine-ds-page, board RoutineDS) and a routine
|
|
2
|
+
* in the popup (board 10).
|
|
3
|
+
* The page is drawn from the PMOS design system (Komorebi, ui/pages.md: Main + open item). Its parts come from pm/komorebi.css: the top line
|
|
4
|
+
* is pm-path and icon pm-btn, "PMOS did" a pm-block flat, the table a pm-block holding pm-tabs and one pm-table whose group rows are
|
|
5
|
+
* pm-group, the switch pm-switch, a late Next the alert pm-badge, the fold line pm-fold, the Detail a pm-block with pm-field, pm-li and the
|
|
6
|
+
* expanded Suggestion (pm-sug x), and the toast pm-toast. This first part only places them. The popup (board 10, below) opens outside the
|
|
7
|
+
* page and keeps cozy.css's tokens. */
|
|
6
8
|
.rt-page { gap: var(--space-16); }
|
|
7
|
-
|
|
8
|
-
.rt-page
|
|
9
|
-
.rt-page .rt-toast { width: auto; max-width: none; }
|
|
9
|
+
.rt-page > * { width: 100%; }
|
|
10
|
+
.rt-page .rt-toast { width: auto; }
|
|
10
11
|
.rt-pick:empty { display: none; }
|
|
11
|
-
.rt-
|
|
12
|
-
.rt-
|
|
13
|
-
|
|
14
|
-
.rt-
|
|
15
|
-
.rt-page
|
|
16
|
-
.rt-
|
|
17
|
-
.rt-
|
|
18
|
-
.rt-
|
|
19
|
-
|
|
20
|
-
.rt-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
.rt-
|
|
24
|
-
.rt-
|
|
25
|
-
.rt-page .rt-
|
|
26
|
-
|
|
27
|
-
.rt-
|
|
28
|
-
.rt-
|
|
29
|
-
.rt-tbl
|
|
30
|
-
.rt-
|
|
31
|
-
|
|
32
|
-
.rt-
|
|
33
|
-
.rt-
|
|
34
|
-
.rt-
|
|
35
|
-
.rt-
|
|
36
|
-
.rt-
|
|
37
|
-
.rt-
|
|
38
|
-
.rt-
|
|
39
|
-
.rt-
|
|
40
|
-
.rt-
|
|
41
|
-
.rt-
|
|
42
|
-
.rt-
|
|
43
|
-
|
|
44
|
-
.rt-r .n, .rt-r .c { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0; line-height: 1.35; }
|
|
45
|
-
.rt-r .c { color: var(--muted); }
|
|
46
|
-
.rt-r .c .w { white-space: normal; height: auto; min-height: 22px; }
|
|
47
|
-
.rt-r.off .n, .rt-r.off .c { color: var(--muted); }
|
|
48
|
-
.rt-r.off .n { font-weight: var(--fw-regular); }
|
|
49
|
-
.rt-page .rt-sw { justify-self: end; }
|
|
50
|
-
.rt-page .rt-sw[disabled] { opacity: .5; cursor: default; }
|
|
51
|
-
/* one-time reports and loose drafts: one fold line at the end of Reports (round 3 item 1) */
|
|
52
|
-
.rt-page .rt-r.rt-fold { display: block; min-height: 0; padding: 0; }
|
|
53
|
-
.rt-page .rt-fold .pm-fold { border-top: 0; padding: 0 18px; }
|
|
54
|
-
.rt-page .rt-fold .pm-ic, .rt-gf .pm-ic { width: 14px; height: 14px; transition: transform var(--duration-quick) var(--ease-drift); }
|
|
12
|
+
.rt-top { display: flex; align-items: center; gap: var(--space-12); min-height: 32px; }
|
|
13
|
+
.rt-top .rt-sp { flex: 1; }
|
|
14
|
+
/* Main + open item: the table stays, the open routine sits at the right */
|
|
15
|
+
.rt-mi { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-16); align-items: start; }
|
|
16
|
+
.rt-page.rt-open .rt-mi { grid-template-columns: minmax(0, 1fr) 400px; }
|
|
17
|
+
.rt-main { display: flex; flex-direction: column; gap: var(--space-12); min-width: 0; }
|
|
18
|
+
.rt-aside:empty { display: none; }
|
|
19
|
+
.rt-aside { position: sticky; top: var(--space-16); min-width: 0; }
|
|
20
|
+
/* PMOS did */
|
|
21
|
+
.rt-page .rt-did { flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px; cursor: pointer; }
|
|
22
|
+
.rt-did .rt-say { flex: 1; min-width: 0; }
|
|
23
|
+
/* the table */
|
|
24
|
+
.rt-tbl .head .pm-tabs { flex-wrap: wrap; }
|
|
25
|
+
.rt-tbl .pm-tab .rt-n { font-weight: var(--fw-regular); color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
26
|
+
.rt-page .pm-tab:focus-visible, .rt-page .rt-row:focus-visible { outline: none; box-shadow: var(--glow); }
|
|
27
|
+
.rt-tbl .pm-table th.pm-group { display: table-cell; height: 32px; }
|
|
28
|
+
.rt-tbl .pm-table th.pm-group b { color: var(--ink); }
|
|
29
|
+
.rt-tbl .pm-table .rt-g:hover th { background: var(--well); }
|
|
30
|
+
.rt-tbl .rt-row { cursor: pointer; }
|
|
31
|
+
.rt-tbl .rt-row td:first-child { padding-left: var(--space-16); }
|
|
32
|
+
.rt-tbl .rt-name { white-space: nowrap; }
|
|
33
|
+
.rt-tbl .rt-name b { font-weight: var(--fw-strong); }
|
|
34
|
+
.rt-tbl .rt-does { color: var(--muted); }
|
|
35
|
+
.rt-tbl .rt-when, .rt-tbl .rt-nx { white-space: nowrap; }
|
|
36
|
+
.rt-tbl .rt-next { font-family: var(--font-mono); }
|
|
37
|
+
.rt-tbl .rt-on { width: 1%; white-space: nowrap; }
|
|
38
|
+
.rt-tbl .rt-on .pm-row { justify-content: flex-end; flex-wrap: nowrap; }
|
|
39
|
+
.rt-tbl .rt-row.off .rt-name b { font-weight: var(--fw-regular); color: var(--muted); }
|
|
40
|
+
.rt-tbl .rt-drop { visibility: hidden; color: var(--muted); }
|
|
41
|
+
.rt-tbl .rt-row:hover .rt-drop, .rt-tbl .rt-drop:focus-visible { visibility: visible; }
|
|
42
|
+
.rt-tbl .pm-switch[disabled] { opacity: .5; cursor: default; }
|
|
43
|
+
.rt-tbl .rt-fold td { padding: 0; }
|
|
44
|
+
.rt-page .rt-fold .pm-ic, .rt-gf .pm-ic { transition: transform var(--duration-quick) var(--ease-drift); }
|
|
55
45
|
.rt-page .rt-fold button[aria-expanded="true"] .pm-ic, .rt-gf[aria-expanded="true"] .pm-ic { transform: rotate(90deg); }
|
|
56
|
-
.rt-page .rt-fold button:focus-visible { outline: none; box-shadow: var(--glow); }
|
|
57
|
-
/* ✕ on a proposed report: shown on hover, where the chevron is */
|
|
58
|
-
.rt-page .rt-r .go .rt-drop { width: 28px; height: 28px; margin: -7px; color: var(--muted); }
|
|
59
|
-
.rt-r .go:has(.rt-drop) { opacity: 0; }
|
|
60
|
-
.rt-r.rt-row:hover .go:has(.rt-drop), .rt-r .go:has(.rt-drop:focus-visible) { opacity: 1; }
|
|
61
|
-
/* PMOS reads and PMOS jobs fold to their heading while a program or project is picked */
|
|
62
46
|
.rt-gf { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
|
|
63
|
-
.rt-gf
|
|
64
|
-
.rt-
|
|
65
|
-
.rt-
|
|
66
|
-
.rt-page .rt-msg { margin: 0
|
|
47
|
+
.rt-gf:focus-visible, .rt-page .rt-fold button:focus-visible { box-shadow: var(--glow); border-radius: var(--radius-sm); }
|
|
48
|
+
.rt-hid { margin: 0; }
|
|
49
|
+
.rt-hid .pm-chip { border: 0; font: inherit; font-weight: var(--fw-strong); color: var(--blue); background: var(--blue-tint); cursor: pointer; }
|
|
50
|
+
.rt-page .rt-quiet, .rt-page .rt-msg { margin: 0; min-height: 1em; }
|
|
51
|
+
/* the Detail */
|
|
52
|
+
.rt-detail .head .rt-dt { flex: 1; min-width: 0; }
|
|
53
|
+
.rt-detail .rt-does { margin: 0; font-size: var(--fs-body); line-height: 22px; }
|
|
54
|
+
.rt-detail .pm-field { margin: 0; }
|
|
55
|
+
.rt-detail .rt-dh { margin: 0 0 4px; font-weight: var(--fw-regular); }
|
|
56
|
+
.rt-detail .rt-when { width: 96px; flex: none; font-family: var(--font-mono); white-space: nowrap; }
|
|
57
|
+
.rt-detail .pm-li { min-height: 44px; }
|
|
58
|
+
.rt-detail .pm-li .w { color: var(--ink); white-space: normal; }
|
|
59
|
+
.rt-detail .pm-li .w.bad { color: var(--alert); }
|
|
60
|
+
.rt-detail .pm-sug.x dd { overflow-wrap: anywhere; }
|
|
67
61
|
/* the toast: the Toast part, bottom centre; the leaf line counts down the time the Undo has */
|
|
68
62
|
.rt-page .rt-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity var(--duration-enter) var(--ease-out), transform var(--duration-enter) var(--ease-out); }
|
|
69
63
|
.rt-page .rt-toast:empty { display: none; }
|
|
@@ -74,11 +68,15 @@
|
|
|
74
68
|
.rt-page .rt-toast.on .timer { animation: rtTimer 4.2s linear both; }
|
|
75
69
|
@keyframes rtTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
|
|
76
70
|
@media (prefers-reduced-motion: reduce) { .rt-page .rt-toast { transform: translate(-50%, 0); } .rt-page .rt-toast.on .timer { animation: none; } }
|
|
71
|
+
@media (max-width: 1100px) { .rt-page.rt-open .rt-mi { grid-template-columns: minmax(0, 1fr) 340px; } }
|
|
72
|
+
/* a phone: the Table reads as a List (the name, Next and the switch); a row opens the popup, so the Detail never shows */
|
|
77
73
|
@media (max-width: 760px) {
|
|
78
|
-
.rt-
|
|
79
|
-
.rt-
|
|
80
|
-
.rt-
|
|
81
|
-
.rt-
|
|
74
|
+
body.cz-phmore .rt-top { padding-right: 48px; }
|
|
75
|
+
.rt-page.rt-open .rt-mi { grid-template-columns: minmax(0, 1fr); }
|
|
76
|
+
.rt-aside { display: none; }
|
|
77
|
+
.rt-tbl .rt-does, .rt-tbl .rt-when, .rt-tbl .rt-prod { display: none; }
|
|
78
|
+
.rt-tbl .rt-name { white-space: normal; }
|
|
79
|
+
.rt-tbl .rt-row td { padding-top: 12px; padding-bottom: 12px; }
|
|
82
80
|
.rt-page .pm-btn { width: 44px; height: 44px; }
|
|
83
81
|
}
|
|
84
82
|
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|