create-pmos 0.615.0 → 0.616.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/package.json +44 -14
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/changelog.json +43 -0
  7. package/workspace/guide/backlog.md +70 -0
  8. package/workspace/guide/cli.md +1 -0
  9. package/workspace/guide/index.md +1 -0
  10. package/workspace/guide/layout.md +3 -2
  11. package/workspace/guide/programs.md +1 -1
  12. package/workspace/guide/routine.md +1 -1
  13. package/workspace/lib/backlog.js +323 -0
  14. package/workspace/lib/day-run.js +3 -2
  15. package/workspace/lib/doc-library.js +26 -3
  16. package/workspace/lib/jira-status.js +4 -1
  17. package/workspace/lib/mention-cli.js +7 -5
  18. package/workspace/lib/mention-store.js +9 -5
  19. package/workspace/lib/route-modules.js +1 -0
  20. package/workspace/lib/routes-backlog.js +283 -0
  21. package/workspace/lib/routes-boards.js +13 -0
  22. package/workspace/package-lock.json +2 -2
  23. package/workspace/package.json +1 -1
  24. package/workspace/public/pm/bd-backlog.css +158 -0
  25. package/workspace/public/pm/bd-backlog.js +531 -0
  26. package/workspace/public/pm/bk-model.js +169 -0
  27. package/workspace/public/pm/cozy-pick.js +6 -3
  28. package/workspace/public/pm/cozy-routine.js +3 -2
  29. package/workspace/public/pm/cozy-today-app.js +23 -5
  30. package/workspace/public/pm/cozy-today-model.js +44 -10
  31. package/workspace/public/pm/cozy-today-page.css +9 -1
  32. package/workspace/public/pm/cozy-today-view.js +14 -9
  33. package/workspace/public/pm/home-app.js +5 -0
  34. package/workspace/public/pm/mention-one-model.js +6 -4
  35. package/workspace/public/pm/premium-board.js +21 -3
  36. package/workspace/public/pm/premium-goals.js +12 -9
  37. package/workspace/public/pm/premium-library.js +15 -3
  38. package/workspace/public/premium-board.html +1 -0
  39. package/workspace/skills/morning-brief.skill +1 -1
  40. package/workspace/test-lists/backlog.json +9 -0
@@ -0,0 +1,158 @@
1
+ /* pm/bd-backlog.css — the Backlog in Work (initiative work-backlog; boards BkList and BkSelect on Exploring 2). Workspace tokens only, so
2
+ * dark mode follows cozy.css. Every class starts with bk-. body.bk-on: the Backlog shows in place of the initiatives; the view chip and the
3
+ * count pill, which are the initiatives', step aside. */
4
+ body.bd-page.bk-on [id="ibBody"], body.bd-page.bk-on [id="bdVieww"], body.bd-page.bk-on [id="bdChipset"] { display: none !important; }
5
+ body.bd-page.bk-on .bd-hd .bd-tools { margin-left: auto; }
6
+
7
+ /* the switch: Initiatives | Backlog N */
8
+ .bk-sw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--cz-well); margin-left: 12px; flex: none; }
9
+ .bk-sw button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px; font-size: var(--fs-row); font-weight: var(--fw-regular); color: var(--cz-ink2); }
10
+ .bk-sw button.on { background: var(--cz-card); color: var(--cz-ink); font-weight: var(--fw-strong); box-shadow: 0 1px 3px rgba(30, 34, 42, .12); }
11
+ .bk-sw .k { font-weight: var(--fw-regular); color: var(--cz-ink3); }
12
+ .bk-sw button:focus-visible, .bk-chip:focus-visible, .bk-gt:focus-visible, .bk-t:focus-visible, .bk-ib:focus-visible, .bk-rvb:focus-visible, .bk-yes:focus-visible, .bk-lnk:focus-visible, .bk-ck:focus-visible, .bk-bar button:focus-visible, .bk-pop button:focus-visible, .bk-go:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
13
+
14
+ .bk-host { max-width: 1272px; padding-bottom: 96px; }
15
+ .bk-wait, .bk-none, .bk-err { margin: 16px 4px; font-size: var(--fs-row); color: var(--cz-ink3); }
16
+ .bk-err { color: var(--cz-late); }
17
+
18
+ /* the quick filters */
19
+ .bk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
20
+ .bk-chip { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--cz-well); font-size: var(--fs-row); color: var(--cz-ink2); white-space: nowrap; }
21
+ .bk-chip .k { color: var(--cz-ink3); }
22
+ .bk-chip.on { background: var(--cz-ink); color: var(--cz-card); }
23
+ .bk-chip.on .k { color: var(--cz-card); opacity: .75; }
24
+ .bk-mode, .bk-show { margin: 0 4px 10px; font-size: var(--fs-meta); color: var(--cz-ink3); }
25
+ .bk-mode b { font-weight: var(--fw-strong); color: var(--cz-ink2); }
26
+ .bk-lnk { all: unset; cursor: pointer; color: var(--cz-blue); display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; }
27
+ .bk-lnk svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
28
+
29
+ /* the list */
30
+ /* the Task column takes the spare width (design check 1 f); the others keep a width that holds their words */
31
+ .bk { --bk-cols: 40px minmax(240px, 1fr) 104px minmax(80px, 130px) minmax(110px, 160px) 76px minmax(200px, 290px) 72px;
32
+ border-radius: 16px; box-shadow: inset 0 0 0 1px var(--cz-hair); background: var(--cz-card); }
33
+ .bk-r { display: grid; grid-template-columns: var(--bk-cols); column-gap: 12px; align-items: center; min-height: 42px; padding: 0 12px 0 4px; font-size: var(--fs-row); line-height: 20px; color: var(--cz-ink2); }
34
+ .bk-r + .bk-r { box-shadow: inset 0 1px 0 var(--cz-hair); }
35
+ .bk-r > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
36
+ .bk-r > .c-ck { display: flex; justify-content: center; }
37
+ .bk-h { min-height: 38px; background: var(--cz-well); border-radius: 16px 16px 0 0; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink3); }
38
+ .bk-g { min-height: 36px; background: var(--cz-well); display: flex; justify-content: space-between; padding: 0 12px 0 12px; }
39
+ .bk-gt { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-label); color: var(--cz-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 6px; }
40
+ .bk-gt svg, .bk-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
41
+ .bk-gt b { font-weight: var(--fw-strong); color: var(--cz-ink); }
42
+ .bk-gt .k { color: var(--cz-ink3); }
43
+ .bk-gt small { font-size: var(--fs-label); color: var(--cz-ink3); overflow: hidden; text-overflow: ellipsis; }
44
+ .bk-yes { all: unset; cursor: pointer; flex: none; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--cz-card); color: var(--cz-blue); font-size: var(--fs-meta); font-weight: var(--fw-strong); box-shadow: inset 0 0 0 1px var(--cz-hair); }
45
+ .bk-more { all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 40px; padding-left: 52px; font-size: var(--fs-meta); color: var(--cz-ink3); box-shadow: inset 0 1px 0 var(--cz-hair); }
46
+ .bk-i.sel { background: var(--cz-bluebg); }
47
+ .bk-i:last-child, .bk-more:last-child, .bk-g:last-child { border-radius: 0 0 16px 16px; }
48
+ /* an outlined box in light and dark alike (design check 1 e): the line colour on the card fill, blue with a tick when ticked */
49
+ .bk-ck { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border-radius: 4px; background: var(--cz-card); box-shadow: inset 0 0 0 1.5px var(--cz-ink3); cursor: pointer; flex: none; }
50
+ .bk-ck:checked { background: var(--cz-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; }
51
+ .bk-n { display: flex; align-items: center; gap: 8px; }
52
+ .bk-ic { display: inline-flex; flex: none; color: var(--cz-ink3); }
53
+ .bk-ic svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; }
54
+ .bk-t { all: unset; cursor: pointer; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cz-ink); border-radius: 4px; }
55
+ .bk-jk { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
56
+ .bk-jk svg { width: 12px; height: 12px; fill: none; stroke: var(--cz-blue); stroke-width: 2.4; flex: none; }
57
+ .bk-r .q { color: var(--cz-ink3); }
58
+ .bk-pm { color: var(--cz-blue); }
59
+ .bk-s em { font-style: normal; color: var(--cz-ink3); }
60
+ .bk-s.late em { color: var(--cz-late); }
61
+ .bk-s.tk em { color: var(--cz-ink3); }
62
+ .bk-s.tk em.lt { color: var(--cz-late); }
63
+ .bk-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--cz-ink3); }
64
+ .bk-dot.blue { background: var(--cz-blue); }
65
+ .bk-dot.amber { background: var(--cz-risk); }
66
+ .bk-dot.red { background: var(--cz-late); }
67
+ .bk-dot.green { background: var(--cz-ok); }
68
+ .bk-a { display: flex; justify-content: flex-end; }
69
+ .bk-two { display: inline-flex; gap: 6px; }
70
+ .bk-ib { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: var(--cz-ink3); box-shadow: inset 0 0 0 1px var(--cz-hair); }
71
+ .bk-ib svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
72
+ .bk-ib.big { width: 44px; height: 44px; }
73
+ .bk-ib.big svg { width: 20px; height: 20px; }
74
+ .bk-ib.ok { background: var(--cz-ink); color: var(--cz-card); box-shadow: none; }
75
+ .bk-rvb, .bk-go { all: unset; cursor: pointer; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--cz-ink); color: var(--cz-card); font-size: var(--fs-meta); font-weight: var(--fw-strong); display: inline-flex; align-items: center; }
76
+ @media (hover: hover) {
77
+ .bk-sw button:hover:not(.on), .bk-gt:hover b, .bk-t:hover { color: var(--cz-ink); }
78
+ .bk-chip:hover:not(.on) { background: var(--cz-well2); }
79
+ .bk-i:hover { background: var(--cz-well); }
80
+ .bk-i.sel:hover { background: var(--cz-bluebg); }
81
+ .bk-ib:hover { color: var(--cz-ink); background: var(--cz-well2); }
82
+ .bk-ib.ok:hover { background: var(--cz-ink); color: var(--cz-card); opacity: .9; }
83
+ .bk-t:hover { text-decoration: underline; }
84
+ }
85
+
86
+ /* the bar under ticked rows */
87
+ .bk-bar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 18px; border-radius: 999px; background: var(--cz-ink); color: var(--cz-card); box-shadow: 0 12px 32px -8px rgba(30, 34, 42, .45); max-width: calc(100vw - 32px); overflow-x: auto; }
88
+ .bk-bar .c { font-size: var(--fs-row); margin-right: 6px; white-space: nowrap; }
89
+ .bk-bar button { all: unset; cursor: pointer; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: var(--fs-row); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
90
+ .bk-bar button.pm { background: var(--cz-blue); }
91
+ .bk-bar button.x { width: 34px; padding: 0; justify-content: center; background: none; }
92
+ .bk-bar button.x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
93
+
94
+ /* small popovers: a pick list, a date, the tune panel, the kind of work */
95
+ .bk-pop { position: fixed; z-index: 70; min-width: 220px; max-width: min(420px, calc(100vw - 16px)); max-height: 60vh; overflow: auto; padding: 10px; border-radius: 14px; background: var(--cz-card); box-shadow: 0 12px 32px -8px rgba(30, 34, 42, .3), 0 0 0 1px var(--cz-hair); }
96
+ .bk-pop .h { margin: 4px 6px 6px; font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink3); }
97
+ .bk-pop .l { display: flex; flex-direction: column; }
98
+ .bk-pop .l button { all: unset; cursor: pointer; padding: 8px 10px; border-radius: 8px; font-size: var(--fs-row); color: var(--cz-ink); }
99
+ .bk-pop .q, .bk-help { margin: 4px 6px; font-size: var(--fs-meta); color: var(--cz-ink3); max-width: 340px; white-space: normal; }
100
+ .bk-pop .r { display: flex; justify-content: flex-end; margin-top: 8px; }
101
+ .bk-in { box-sizing: border-box; width: 100%; height: 34px; margin: 0 0 6px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--cz-well); color: var(--cz-ink); font: inherit; font-size: var(--fs-row); }
102
+ .bk-fg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 4px 8px; }
103
+ .bk-tune { width: 380px; }
104
+ @media (hover: hover) { .bk-pop .l button:hover { background: var(--cz-well); } }
105
+
106
+ /* Review: what PMOS made, left; why it needs the PM and the two buttons, right */
107
+ .bk-rv { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(20, 22, 28, .32); padding: 16px; }
108
+ .bk-rvc { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; width: min(980px, 100%); max-height: calc(100vh - 32px); border-radius: 18px; background: var(--cz-card); box-shadow: 0 24px 60px -12px rgba(30, 34, 42, .45); padding: 22px; box-sizing: border-box; overflow: hidden; }
109
+ .bk-rvl { min-width: 0; overflow: auto; }
110
+ .bk-rvl .k { margin: 0 0 4px; font-size: var(--fs-label); color: var(--cz-ink3); }
111
+ .bk-rvl h3 { margin: 0 0 8px; font-size: var(--fs-panel); font-weight: var(--fw-strong); color: var(--cz-ink); }
112
+ .bk-rvl .sm { margin: 0 0 8px; font-size: var(--fs-body); color: var(--cz-ink2); }
113
+ /* the whole result in the normal text font (design check 1 c): a message is editable in place, a document reads as written */
114
+ .bk-rvl .bd { box-sizing: border-box; display: block; width: 100%; margin: 12px 0 0; padding: 14px; border: 0; border-radius: 10px; background: var(--cz-well); white-space: pre-wrap; font: inherit; font-size: var(--fs-body); line-height: 1.5; color: var(--cz-ink); max-height: 56vh; overflow: auto; }
115
+ textarea.bk-rvl-ed, .bk-rvl textarea.bd { resize: vertical; min-height: 180px; }
116
+ .bk-rvl .to { margin: 0 0 4px; font-size: var(--fs-body); color: var(--cz-ink2); }
117
+ .bk-rvl .to b { font-weight: var(--fw-strong); color: var(--cz-ink); }
118
+ .bk-rvl .fl { margin: 12px 0 0; padding: 0; list-style: none; font-size: var(--fs-row); color: var(--cz-ink2); }
119
+ .bk-rvl .fl li { padding: 6px 0; box-shadow: inset 0 -1px 0 var(--cz-hair); overflow-wrap: anywhere; }
120
+ .bk-rvl .ck { margin: 12px 0 0; font-size: var(--fs-row); color: var(--cz-ink2); }
121
+ .bk-rvl .ck b { color: var(--cz-ok); font-weight: var(--fw-strong); }
122
+ .bk-said { display: flex; align-items: center; gap: 10px; margin: 0 4px 10px; font-size: var(--fs-row); color: var(--cz-ink2); }
123
+ .bk-kd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; margin: 0 6px; }
124
+ .bk-kd span { font-size: var(--fs-row); color: var(--cz-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
125
+ .bk-kd select { height: 30px; border: 0; border-radius: 8px; padding: 0 8px; background: var(--cz-well); color: var(--cz-ink); font: inherit; font-size: var(--fs-meta); }
126
+ .bk-kdp { width: 440px; }
127
+ .bk-note1 { box-sizing: border-box; width: 100%; height: 36px; border: 0; border-radius: 10px; padding: 0 10px; background: var(--cz-well); color: var(--cz-ink); font: inherit; font-size: var(--fs-row); }
128
+ .bk-rvr { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; }
129
+ .bk-rvr .why { margin: 0; font-size: var(--fs-body); color: var(--cz-ink2); }
130
+ .bk-rvb2 { display: flex; gap: 10px; }
131
+ .bk-note { box-sizing: border-box; width: 100%; border: 0; border-radius: 10px; padding: 10px; background: var(--cz-well); color: var(--cz-ink); font: inherit; font-size: var(--fs-row); resize: vertical; }
132
+ .bk-rvr .x { position: absolute; top: 14px; right: 14px; }
133
+ .bk-rv [hidden] { display: none !important; }
134
+
135
+ /* a phone: each row is two lines, the name and then the rest */
136
+ @media (max-width: 760px) {
137
+ /* the tick boxes wait for a long press on a row, so the name gets the width (design check 1 h) */
138
+ .bk-host:not(.picking) .bk-i > .c-ck, .bk-emb .bk-i > .c-ck { display: none; }
139
+ .bk-host:not(.picking) .bk-i, .bk-emb .bk-i { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'n a' 'm a'; padding-left: 12px; }
140
+ .bk-sw.bk-sw-row { display: flex; margin: 0 0 10px; padding: 2px; }
141
+ .bk-sw.bk-sw-row button { flex: 1; justify-content: center; height: 32px; padding: 0 8px; }
142
+ .bk-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
143
+ .bk, .bk-emb { --bk-cols: 32px minmax(0, 1fr) auto !important; }
144
+ .bk-h { display: none; }
145
+ .bk-i { grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: 'c n a' 'c m a'; padding: 8px 10px 8px 0; row-gap: 2px; }
146
+ .bk-i > .c-ck { grid-area: c; }
147
+ .bk-i > .c-n { grid-area: n; }
148
+ .bk-i > .c-a { grid-area: a; }
149
+ .bk-i > .c-jira, .bk-i > .c-epic, .bk-i > .c-ini, .bk-i > .c-who { display: none; }
150
+ .bk-i > .c-state { grid-area: m; font-size: var(--fs-meta); }
151
+ .bk-rvc { grid-template-columns: 1fr; overflow: auto; }
152
+ .bk-rvr { padding-top: 0; }
153
+ .bk-bar { left: 8px; right: 8px; transform: none; }
154
+ }
155
+ @media (pointer: coarse) { .bk-ib { width: 40px; height: 40px; } .bk-chip { height: 40px; } }
156
+ .bk-emb .bk-i > .c-ck .bk-ck { visibility: hidden; } /* ticking is the Backlog's, not an embedded list's */
157
+ .bk-r > .c-due.lt { color: var(--cz-late); } /* the popup's optional Due cell: late in red words */
158
+ @media (max-width: 760px) { .bk-i > .c-due { display: none; } }