create-pmos 0.428.0 → 0.430.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 (134) hide show
  1. package/package.json +25 -25
  2. package/payload/KIT-VERSION +2 -2
  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/payload/state/log.md +1 -1
  7. package/workspace/briefing-premium-board-test.js +4 -4
  8. package/workspace/briefing-premium-insights-test.js +82 -61
  9. package/workspace/briefing-premium-metrics-test.js +5 -3
  10. package/workspace/briefing-premium-sources-test.js +5 -5
  11. package/workspace/briefing-premium-test.js +5 -4
  12. package/workspace/changelog.json +24 -0
  13. package/workspace/ev-everywhere-test.js +2 -2
  14. package/workspace/guide/adler.md +45 -0
  15. package/workspace/guide/briefing-premium.md +2 -0
  16. package/workspace/guide/home.md +4 -2
  17. package/workspace/guide/index.md +2 -0
  18. package/workspace/guide/metric-drafts.md +49 -0
  19. package/workspace/guide/programs.md +2 -0
  20. package/workspace/intel-report-ui-test.js +189 -0
  21. package/workspace/intelligence-gaps-ui-test.js +168 -0
  22. package/workspace/lib/board-metrics-premium.js +1 -1
  23. package/workspace/lib/headless.js +15 -2
  24. package/workspace/lib/initiative-writer.js +16 -2
  25. package/workspace/lib/insight-moves.js +135 -0
  26. package/workspace/lib/insights-premium.js +9 -4
  27. package/workspace/lib/insights-records.js +14 -5
  28. package/workspace/lib/intel-report.js +432 -0
  29. package/workspace/lib/metric-draft-runs.js +193 -0
  30. package/workspace/lib/metric-drafts.js +261 -0
  31. package/workspace/lib/metrics-cli.js +104 -0
  32. package/workspace/lib/page-opens.js +74 -0
  33. package/workspace/lib/pmos-verbs.js +3 -0
  34. package/workspace/lib/report-setups.js +29 -13
  35. package/workspace/lib/route-modules.js +3 -0
  36. package/workspace/lib/routes-insight-moves.js +119 -0
  37. package/workspace/lib/routes-insights-premium.js +12 -3
  38. package/workspace/lib/routes-insights-records.js +13 -5
  39. package/workspace/lib/routes-metric-drafts.js +150 -0
  40. package/workspace/lib/routes-page-opens.js +26 -0
  41. package/workspace/lib/routes-phone-day.js +13 -2
  42. package/workspace/lib/routes-report-setups.js +97 -3
  43. package/workspace/lib/routes-viewer.js +5 -2
  44. package/workspace/lib/settings-store.js +6 -0
  45. package/workspace/metric-drafts-ui-test.js +209 -0
  46. package/workspace/milestone-suggest-test.js +4 -4
  47. package/workspace/package-lock.json +2 -2
  48. package/workspace/package.json +1 -1
  49. package/workspace/premium-phone-card-test.js +8 -5
  50. package/workspace/premium-viewer-flicker-test.js +1 -1
  51. package/workspace/public/pm/bd-acts.js +3 -3
  52. package/workspace/public/pm/bd-pin-card.css +4 -4
  53. package/workspace/public/pm/bd-prog-panel.js +12 -7
  54. package/workspace/public/pm/bd-prog.js +2 -2
  55. package/workspace/public/pm/cozy-adler.css +82 -0
  56. package/workspace/public/pm/cozy-adler.js +270 -0
  57. package/workspace/public/pm/cozy-aud.css +1 -1
  58. package/workspace/public/pm/cozy-board.css +256 -256
  59. package/workspace/public/pm/cozy-ev.css +48 -45
  60. package/workspace/public/pm/cozy-evmodel.js +1 -1
  61. package/workspace/public/pm/cozy-home-rows.css +23 -23
  62. package/workspace/public/pm/cozy-home.css +211 -207
  63. package/workspace/public/pm/cozy-insights.css +221 -108
  64. package/workspace/public/pm/cozy-live-pill.css +5 -5
  65. package/workspace/public/pm/cozy-mtg-present.css +23 -23
  66. package/workspace/public/pm/cozy-nav.js +3 -1
  67. package/workspace/public/pm/cozy-news.js +2 -2
  68. package/workspace/public/pm/cozy-panel.css +29 -29
  69. package/workspace/public/pm/cozy-pick.css +5 -5
  70. package/workspace/public/pm/cozy-rec-now.css +20 -20
  71. package/workspace/public/pm/cozy-rec-present.css +11 -11
  72. package/workspace/public/pm/cozy-rec-tab.css +13 -13
  73. package/workspace/public/pm/cozy-search.js +4 -2
  74. package/workspace/public/pm/cozy-settings.js +16 -3
  75. package/workspace/public/pm/cozy-steps.css +9 -9
  76. package/workspace/public/pm/cozy-today.css +122 -71
  77. package/workspace/public/pm/cozy-viewer.css +7 -7
  78. package/workspace/public/pm/cozy-viewer.js +1 -1
  79. package/workspace/public/pm/cozy-vw-mtg.css +81 -81
  80. package/workspace/public/pm/cozy-vw-rp.css +53 -53
  81. package/workspace/public/pm/cozy-vw-shell.css +23 -23
  82. package/workspace/public/pm/cozy-vw.css +117 -117
  83. package/workspace/public/pm/cozy-xv.css +11 -11
  84. package/workspace/public/pm/cozy.css +34 -15
  85. package/workspace/public/pm/hi-pop.css +19 -19
  86. package/workspace/public/pm/home-app.js +33 -9
  87. package/workspace/public/pm/home-chat.js +10 -2
  88. package/workspace/public/pm/home-day.js +155 -27
  89. package/workspace/public/pm/home-ini.css +32 -32
  90. package/workspace/public/pm/home-line.css +7 -7
  91. package/workspace/public/pm/home-list.js +12 -1
  92. package/workspace/public/pm/home-phone-card.js +18 -15
  93. package/workspace/public/pm/home-today.js +5 -3
  94. package/workspace/public/pm/ini-view-model.js +1 -1
  95. package/workspace/public/pm/ini-view.css +108 -102
  96. package/workspace/public/pm/ini-view.js +22 -3
  97. package/workspace/public/pm/loose-props.css +13 -13
  98. package/workspace/public/pm/metric-drafts.css +89 -0
  99. package/workspace/public/pm/metric-drafts.js +204 -0
  100. package/workspace/public/pm/ms-suggest.css +8 -8
  101. package/workspace/public/pm/ms-suggest.js +2 -1
  102. package/workspace/public/pm/ov-view.css +12 -12
  103. package/workspace/public/pm/premium-board.js +2 -2
  104. package/workspace/public/pm/premium-chart-tab.js +6 -6
  105. package/workspace/public/pm/premium-insights.js +364 -107
  106. package/workspace/public/pm/premium-report-intel.css +56 -0
  107. package/workspace/public/pm/premium-report-intel.js +232 -0
  108. package/workspace/public/pm/premium-shell.js +2 -2
  109. package/workspace/public/pm/premium-vw-cal.js +1 -1
  110. package/workspace/public/pm/premium-vw-file.js +2 -2
  111. package/workspace/public/pm/premium-welcome.js +3 -2
  112. package/workspace/public/pm/premium.css +130 -128
  113. package/workspace/public/pm/prog-order.css +6 -6
  114. package/workspace/public/pm/program-charter.css +23 -23
  115. package/workspace/public/pm/program-model.js +7 -0
  116. package/workspace/public/pm/rp-parts.js +2 -2
  117. package/workspace/public/pm/sort-order.css +1 -1
  118. package/workspace/public/pm/split-merge.css +15 -15
  119. package/workspace/public/pm/split-merge.js +2 -1
  120. package/workspace/public/pm/task-card.css +21 -21
  121. package/workspace/public/pm/tk-tasks.css +37 -37
  122. package/workspace/public/pm/tk-view.css +6 -6
  123. package/workspace/public/pm/wf-page.css +28 -28
  124. package/workspace/public/premium-intelligence.html +82 -0
  125. package/workspace/server.js +38 -3
  126. package/workspace/skills/metric-draft.skill +47 -0
  127. package/workspace/test-lists/intel-report-ui.json +5 -0
  128. package/workspace/test-lists/intel-report.json +9 -0
  129. package/workspace/test-lists/intelligence-gaps-ui.json +5 -0
  130. package/workspace/test-lists/intelligence-gaps.json +5 -0
  131. package/workspace/test-lists/metric-drafts-ui.json +5 -0
  132. package/workspace/test-lists/metric-drafts.json +9 -0
  133. package/workspace/test-run.js +3 -0
  134. package/workspace/public/premium-insights.html +0 -81
@@ -13,15 +13,15 @@ body.rt-page { height: 100vh; overflow: hidden; }
13
13
  .rt-hd { display: flex; align-items: center; gap: 10px; min-height: 40px; }
14
14
  .rt-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cz-dot-q); flex: none; }
15
15
  .rt[data-mode="screen"] .rt-dot, .rt[data-mode="room"] .rt-dot { background: var(--cz-dot-red); animation: rt-breathe 2.4s ease-in-out infinite; }
16
- .rt-clock { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--cz-ink3); }
16
+ .rt-clock { font-size: var(--fs-4); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--cz-ink3); }
17
17
  .rt[data-mode="screen"] .rt-clock, .rt[data-mode="room"] .rt-clock { color: var(--cz-dot-red); }
18
18
  .rt.late .rt-clock, .rt-past { color: var(--cz-dot-risk); }
19
- .rt-title { margin: 0; font-size: 16px; font-weight: 800; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
20
- .rt-past { font-size: 13px; font-weight: 700; }
19
+ .rt-title { margin: 0; font-size: var(--fs-4); font-weight: 800; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
20
+ .rt-past { font-size: var(--fs-3); font-weight: 700; }
21
21
  @keyframes rt-breathe { 0%, 100% { opacity: 1 } 50% { opacity: .45 } }
22
22
  @media (prefers-reduced-motion: reduce) { .rt-dot { animation: none !important; } }
23
23
 
24
- .rt-alert { margin: 6px 0 0; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--cz-riskbg); color: var(--cz-risk); font-weight: 700; font-size: 14px; }
24
+ .rt-alert { margin: 6px 0 0; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--cz-riskbg); color: var(--cz-risk); font-weight: 700; font-size: var(--fs-3); }
25
25
  .rt-alert span { flex: 1; }
26
26
 
27
27
  .rt-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 10px; position: relative; }
@@ -30,10 +30,10 @@ body.rt-page { height: 100vh; overflow: hidden; }
30
30
  .rt-scr { flex: 1; min-height: 0; border-radius: 12px; background: var(--cz-c-17191c); display: flex; align-items: center; justify-content: center; overflow: hidden; }
31
31
  .rt-scr video { max-width: 100%; max-height: 100%; display: block; }
32
32
  .rt-scr.off { flex-direction: column; gap: 12px; background: var(--cz-c-2a2d33); }
33
- .rt-scr.off p { margin: 0; font-size: 16px; font-weight: 800; color: var(--cz-c-9ea4ad); }
33
+ .rt-scr.off p { margin: 0; font-size: var(--fs-4); font-weight: 800; color: var(--cz-c-9ea4ad); }
34
34
  .rt-wait { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
35
- .rt-wait h2 { margin: 0; font-size: 20px; font-weight: 800; }
36
- .rt-wait p { margin: 0 0 8px; font-size: 14px; color: var(--cz-ink3); max-width: 420px; }
35
+ .rt-wait h2 { margin: 0; font-size: var(--fs-5); font-weight: 800; }
36
+ .rt-wait p { margin: 0 0 8px; font-size: var(--fs-3); color: var(--cz-ink3); max-width: 420px; }
37
37
 
38
38
  /* the meeting so far: one mark per highlight, a card with the moment on hover or focus */
39
39
  .rt-line { position: relative; height: 28px; margin: 12px 4px 0; }
@@ -44,12 +44,12 @@ body.rt-page { height: 100vh; overflow: hidden; }
44
44
  .rt-star { width: 28px; height: 28px; border: 0; padding: 0; border-radius: 50%; background: transparent; color: var(--cz-dot-risk); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
45
45
  .rt-star svg { fill: currentColor; stroke: none; }
46
46
  .rt-star:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 1px; }
47
- .rt-hv { display: none; position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); width: 240px; padding: 10px; border-radius: 14px; background: var(--cz-card); color: var(--cz-ink); box-shadow: var(--cz-sheet); font-size: 13px; z-index: 3; flex-direction: column; gap: 4px; }
48
- .rt-hv b { font-size: 12px; color: var(--cz-ink3); }
47
+ .rt-hv { display: none; position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); width: 240px; padding: 10px; border-radius: 14px; background: var(--cz-card); color: var(--cz-ink); box-shadow: var(--cz-sheet); font-size: var(--fs-3); z-index: 3; flex-direction: column; gap: 4px; }
48
+ .rt-hv b { font-size: var(--fs-2); color: var(--cz-ink3); }
49
49
  .rt-hv img { width: 100%; border-radius: 8px; margin-top: 4px; display: block; }
50
50
  .rt-mk:hover .rt-hv, .rt-mk:focus-within .rt-hv { display: flex; }
51
51
 
52
- .rt-msg { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--cz-ink3); text-align: center; }
52
+ .rt-msg { margin: 8px 0 0; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); text-align: center; }
53
53
  .rt[data-mode="screen"] .rt-msg { color: var(--cz-c-9ea4ad); }
54
54
 
55
55
  /* the bar: icon only; Stop is the one red press */
@@ -72,10 +72,10 @@ body.rt-page { height: 100vh; overflow: hidden; }
72
72
  /* Stop asks first; the next meeting asks once */
73
73
  .rt-ask { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--cz-c-17191c) 35%, transparent); z-index: 5; }
74
74
  .rt-askc { width: min(420px, calc(100vw - 32px)); box-sizing: border-box; padding: 20px; border-radius: 20px; background: var(--cz-card); color: var(--cz-ink); box-shadow: var(--cz-sheet); }
75
- .rt-askc b { font-size: 16px; }
76
- .rt-askc p { margin: 8px 0 0; font-size: 14px; color: var(--cz-ink2); }
75
+ .rt-askc b { font-size: var(--fs-4); }
76
+ .rt-askc p { margin: 8px 0 0; font-size: var(--fs-3); color: var(--cz-ink2); }
77
77
  .rt-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
78
- .rt-t { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink); font: 700 14px var(--cz-sans); cursor: pointer; }
78
+ .rt-t { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink); font: 700 var(--fs-3) var(--cz-sans); cursor: pointer; }
79
79
  .rt-t.red { background: var(--cz-dot-red); color: var(--cz-onsolid); border-color: transparent; }
80
80
  .rt-t.blue { background: var(--cz-solid); color: var(--cz-onsolid); border-color: transparent; }
81
81
 
@@ -12,7 +12,8 @@ import { esc, svg, ICON, wsParam, wsQ, skelRows, cantRead, failedItem } from './
12
12
  const ARROW = { up: 'M12 19V5M6 11l6-6 6 6', down: 'M12 5v14M6 13l6 6 6-6', enter: 'M20 5v7a3 3 0 0 1-3 3H5M9 11l-4 4 4 4' }; // the footer's keys, drawn (R28-13: no glyph as a control)
13
13
  import { SEARCH_KINDS, PHONE_KINDS, searchGroups, resultSub, resultTag, wtChip } from './cozy-evmodel.js';
14
14
  import { open as vwOpen, current as vwCurrent } from './cozy-viewer.js';
15
- import { nameOf as sessionName } from './home-data.js'; // session names A: the PM's name wins, then Claude's
15
+ import { nameOf as sessionName } from './home-data.js';
16
+ import { adler } from './cozy-adler.js'; // session names A: the PM's name wins, then Claude's
16
17
 
17
18
  const PHONE = 760;
18
19
  const isPhone = () => innerWidth <= PHONE;
@@ -132,7 +133,8 @@ function drawList() {
132
133
  if (q.length < 2) h = '<p class="ev-sp-empty">Type two letters or more. Search reads the initiatives, the documents, slides and reports, the artifacts and designs, and the meetings, in the repository and every worktree.</p>';
133
134
  else if (S.err) h = cantRead({ what: 'Search', why: S.err, sources: false });
134
135
  else if (S.busy && !groups.length) h = skelRows(3);
135
- else if (!groups.length) h = `<p class="ev-sp-empty" role="status">Nothing matches “${esc(q)}”${S.kind !== 'all' ? ' in this kind' : ''}.</p>`;
136
+ // nothing found: Adler with his magnifier (canvas AdU4); the words stay the same
137
+ else if (!groups.length) h = `<div class="ev-sp-empty ev-sp-ad" role="status">${adler('needs-you', 'l', { label: false, prop: 'magnifier' })}<p>Nothing matches “${esc(q)}”${S.kind !== 'all' ? ' in this kind' : ''}.</p></div>`;
136
138
  groups.forEach((g, gi) => {
137
139
  h += `<p class="ev-mlbl">${esc(g.label)}</p>` + g.rows.map((r) => rowHtml(r, i++)).join('');
138
140
  if (gi === 0 && isPhone() && g.key === 'initiative') h += '<div class="ev-sp-chips ev-phchips" aria-hidden="true"></div>';
@@ -1,6 +1,7 @@
1
1
  /* pm/cozy-settings.js — Settings (initiative premium-uncovered-features, E3; canvas EvSettings). A dialog over the page, its sections on the left:
2
2
  * General Theme (this device), Viewer opens as a column or a popup (this device), Product (which products Home reads: the Products card),
3
3
  * Your day (when the end-of-day card shows: time.workEnd, POST /api/settings), Agents write to Jira (fixed: only after Commit)
4
+ * Adler how much of Claude's face shows, Motion, Celebrations, Quiet after (adler.*, POST /api/settings; canvas AdM5, batch 16 item 2)
4
5
  * Connectors what PMOS reads on its own, and the connectors your sessions have (GET and POST /api/proactive/settings)
5
6
  * Workspaces the repositories PMOS works in (GET and POST /api/workspaces, POST /api/workspaces/forget; the folder is never touched)
6
7
  * Workflows a link to its own page, /premium-workflows.html (pm/wf-page.js, D99): the stages each kind of initiative goes through
@@ -10,8 +11,9 @@
10
11
  * openSettings(section?) */
11
12
  import { pmGet, pmPost } from './http.js';
12
13
  import { esc, svg, ICON, toast } from './cozy-evui.js';
14
+ import * as AD from './cozy-adler.js';
13
15
 
14
- const SECTIONS = [['general', 'General'], ['connectors', 'Connectors'], ['workspaces', 'Workspaces'], ['workflows', 'Workflows'], ['updates', 'Updates'], ['whatsnew', "What's new"]];
16
+ const SECTIONS = [['general', 'General'], ['adler', 'Adler'], ['connectors', 'Connectors'], ['workspaces', 'Workspaces'], ['workflows', 'Workflows'], ['updates', 'Updates'], ['whatsnew', "What's new"]];
15
17
  const PAGE_LINKS = { workflows: '/premium-workflows.html' }; // a section that is a page of its own: the row goes there
16
18
  const SRC = { calendar: 'Calendar', wispr: 'Wispr Flow', mail: 'Mail', slack: 'Slack', jira: 'Jira', confluence: 'Confluence', github: 'GitHub', drive: 'Google Drive', figma: 'Figma', website: 'Your websites' };
17
19
  const VIEWER_KEY = 'pmos.cz.viewer';
@@ -46,11 +48,20 @@ function general() {
46
48
  const upd = ready() ? `<div class="ev-card ev-upd"><span class="ev-pill y">Update</span><p><b>PMOS ${esc(latest())} is ready.</b> <span class="ev-mut">${esc(firstLine())}</span></p><button type="button" class="ev-btn sm" data-ev-go="whatsnew">What's new</button><button type="button" class="ev-btn sm dark" data-ev-upd="update">${appBehind() ? 'Restart to update' : 'Update'}</button></div>` : '';
47
49
  return trow('Theme', 'Auto follows your computer', seg('Theme', 'theme', theme, [['light', 'Light'], ['dark', 'Dark'], ['auto', 'Auto']]))
48
50
  + trow('Viewer opens as', 'A column beside the chat, or a popup over it', seg('Viewer opens as', 'viewer', vw, [['column', 'Column'], ['popup', 'Popup']]))
49
- + trow('Product', 'Which products Home, Board and Insights read', `<button type="button" class="ev-pick" data-ev-products aria-haspopup="menu">${esc(pname)} ${svg(ICON.down, 14)}</button>`)
51
+ + trow('Product', 'Which products Home, Board and Intelligence read', `<button type="button" class="ev-pick" data-ev-products aria-haspopup="menu">${esc(pname)} ${svg(ICON.down, 14)}</button>`)
50
52
  + trow('Your day', 'When the end-of-day card shows', `<label class="ev-vh" for="evDay">Your day ends at</label><select id="evDay" class="ev-inp" data-ev-day>${hours.map((h) => `<option value="${h}"${h === end ? ' selected' : ''}>${pad(h)}:00</option>`).join('')}</select>`)
51
53
  + trow('Agents write to Jira', 'Only after you press Commit. Never on their own.', '<span class="ev-pill ok">Fixed</span>')
52
54
  + upd;
53
55
  }
56
+ /* Settings > Adler (AdM5): four choices, each saved for this computer the moment it is pressed */
57
+ function adlerSec() {
58
+ const P = AD.prefs();
59
+ return `<div class="ev-ad-hd">${AD.adler('handled', 48)}<p class="ev-small ev-mut">Adler is how Claude shows its mood in PMOS. You choose how much of him you see.</p></div>`
60
+ + trow('How much Adler', 'Face only keeps his face where Claude speaks and drops the scenes. Off shows the plain mood dot.', seg('How much Adler', 'adler.amount', P['adler.amount'], [['full', 'Full'], ['face', 'Face only'], ['off', 'Off']]))
61
+ + trow('Motion', 'Still stops every animation. Reduced motion on your computer always stops it.', seg('Motion', 'adler.motion', P['adler.motion'], [['system', 'Follow my computer'], ['still', 'Still']]))
62
+ + trow('Celebrations', 'At most once a week, and only for a real event.', seg('Celebrations', 'adler.celebrate', P['adler.celebrate'], [['real', 'Real wins only'], ['never', 'Never']]))
63
+ + trow('Quiet after', 'After this time, opening PMOS shows Adler asleep and nothing urgent.', seg('Quiet after', 'adler.quiet', P['adler.quiet'], [['22', '22:00'], ['never', 'Never']]));
64
+ }
54
65
  const firstLine = () => { const c = changes().find((e) => e.v === latest()); const p = c && c.prs && c.prs[0]; return p ? (p.t || p.s || '') : ''; };
55
66
  function connectors() {
56
67
  if (T.src === null) return '<p class="ev-small ev-mut">Reading the connectors.</p>';
@@ -83,7 +94,7 @@ function whatsnew() {
83
94
  if (!L.length) return '<p class="ev-small ev-mut">No kit summaries yet. Each kit published from now on carries one, and Check now reads the newest ones.</p>';
84
95
  return `<ul class="ev-kv">${L.slice(0, 40).map((e) => `<li><b>${esc(e.v)}</b><div class="ev-tx">${mine && e.v === mine ? '<span class="ev-pill">Yours</span> ' : mine && cmpVer(e.v, mine) > 0 ? '<span class="ev-pill y">Newer</span> ' : ''}${(e.prs || []).map((p) => `<p>${esc(p.t && p.t !== p.s ? p.t + ': ' + p.s : p.s)}${p.n ? ' <span class="ev-mut">#' + esc(p.n) + '</span>' : ''}</p>`).join('') || '<p class="ev-mut">No summary was recorded for this kit.</p>'}</div></li>`).join('')}</ul>`;
85
96
  }
86
- const BODY = { general, connectors, workspaces, updates, whatsnew };
97
+ const BODY = { general, adler: adlerSec, connectors, workspaces, updates, whatsnew };
87
98
  function draw() {
88
99
  const el = T.el; if (!el || el.hidden) return;
89
100
  // a redraw replaces the nodes: keep focus on the same control (by its data-ev-* key), else on the open section, never on the body
@@ -121,6 +132,7 @@ async function press(e) {
121
132
  if ('evClose' in t.dataset) { closeSettings(); return; }
122
133
  if (t.dataset.evGo) { T.sec = t.dataset.evGo; draw(); return; }
123
134
  if (t.dataset.evSeg === 'theme') { const M = await import('./cozy-nav.js'); M.setTheme(t.dataset.v); draw(); return; }
135
+ if (t.dataset.evSeg && t.dataset.evSeg.startsWith('adler.')) { const r = await AD.savePref(pmPost, t.dataset.evSeg, t.dataset.v); T.msg = r && r.ok ? 'Saved.' : (r && r.error) || 'Not saved.'; draw(); return; }
124
136
  if (t.dataset.evSeg === 'viewer') { store.set(VIEWER_KEY, t.dataset.v); document.body.classList.toggle('ev-vw-popup', t.dataset.v === 'popup'); draw(); return; }
125
137
  // the one product pick (batch 12 item 5): the same list as the chip on Home, Board and Insights, under this row
126
138
  if ('evProducts' in t.dataset) {
@@ -183,6 +195,7 @@ async function load() {
183
195
  T.src = p && p.ok && p.settings ? { ...p.settings.briefSources } : {}; T.con = p && p.ok && p.settings ? { ...p.settings.connectors } : {};
184
196
  T.conn = p && p.connectors && Array.isArray(p.connectors.list) ? p.connectors.list : [];
185
197
  T.set = s && s.ok ? s : null;
198
+ if (T.set) await AD.loadPrefs(async () => T.set);
186
199
  T.prods = b && b.ok && b.model && b.model.products ? b.model.products.available || [] : [];
187
200
  if (!w || !Array.isArray(w.workspaces)) T.msg = 'The repositories could not be read.'; else if (!p || !p.ok) T.msg = 'The connectors could not be read.';
188
201
  draw();
@@ -15,7 +15,7 @@ button.cz-st:focus-visible, .cz-sact:focus-visible, .cz-more:focus-visible, .cz-
15
15
  .cz-nd.done { background: var(--cz-bluebg); color: var(--cz-blueink); }
16
16
  .cz-nd.you { border: 2px solid var(--cz-blue); }
17
17
  .cz-nd.you::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--cz-blue); animation: cz-st-info 6s ease-out infinite; }
18
- .cz-nd.risk { border: 2px solid var(--cz-risk); color: var(--cz-risk); font-size: 12px; }
18
+ .cz-nd.risk { border: 2px solid var(--cz-risk); color: var(--cz-risk); font-size: var(--fs-2); }
19
19
  .cz-nd.risk b { font-weight: 900; }
20
20
  .cz-nd.risk::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--cz-risk); animation: cz-st-warn 3.2s ease-out infinite; }
21
21
  .cz-nd.tl { border: 1.6px dashed var(--cz-sl-line); }
@@ -28,26 +28,26 @@ button.cz-st:focus-visible, .cz-sact:focus-visible, .cz-more:focus-visible, .cz-
28
28
  @media (prefers-reduced-motion: reduce) { .cz-spin svg, .cz-nd.you::after, .cz-nd.risk::after { animation: none; } .cz-nd.you::after, .cz-nd.risk::after { opacity: 0; } }
29
29
 
30
30
  /* the words */
31
- .cz-st .tx { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; padding-top: 1px; }
32
- .cz-st .tx small { display: block; font-size: 12px; color: var(--cz-ink3); font-weight: 600; margin-top: 2px; }
31
+ .cz-st .tx { flex: 1; min-width: 0; font-size: var(--fs-3); line-height: 1.35; padding-top: 1px; }
32
+ .cz-st .tx small { display: block; font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; margin-top: 2px; }
33
33
  .cz-st .tx small.warn { color: var(--cz-risk); }
34
- .cz-st .tx code { display: block; margin-top: 3px; font-family: var(--cz-mono); font-size: 11.5px; color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
34
+ .cz-st .tx code { display: block; margin-top: 3px; font-family: var(--cz-mono); font-size: var(--fs-1); color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
35
35
  .cz-st.dn .tx { color: var(--cz-ink3); }
36
36
  .cz-st.now .tx .lb { font-weight: 800; }
37
37
  .cz-st.rk .tx .lb { font-weight: 800; }
38
38
  .cz-st.wt .tx { color: var(--cz-ink2); }
39
39
  .cz-st.sk .tx .lb { text-decoration: line-through; color: var(--cz-ink3); }
40
- .cz-fold { align-items: center; min-height: 40px; padding-bottom: 6px; color: var(--cz-ink3); font-size: 13.5px; font-weight: 600; }
41
- .cz-fold .tx { font-size: 13.5px; color: var(--cz-ink3); padding-top: 0; }
40
+ .cz-fold { align-items: center; min-height: 40px; padding-bottom: 6px; color: var(--cz-ink3); font-size: var(--fs-2); font-weight: 600; }
41
+ .cz-fold .tx { font-size: var(--fs-2); color: var(--cz-ink3); padding-top: 0; }
42
42
  .cz-fold[aria-expanded="false"] .tx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
43
43
  .cz-cv { display: inline-flex; color: var(--cz-ink3); margin-top: 3px; flex: none; }
44
44
  .cz-fold .cz-cv { margin-top: 0; }
45
- .cz-more { display: flex; align-items: center; min-height: 36px; width: 100%; padding: 0 0 6px 34px; font: inherit; font-size: 13px; font-weight: 700; color: var(--cz-ink2); background: transparent; border: 0; cursor: pointer; text-align: left; }
45
+ .cz-more { display: flex; align-items: center; min-height: 36px; width: 100%; padding: 0 0 6px 34px; font: inherit; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); background: transparent; border: 0; cursor: pointer; text-align: left; }
46
46
  .cz-sli:has(> .cz-more)::before { display: none; }
47
47
 
48
48
  /* the go button (the one primary), the owner, the trailing act */
49
49
  .cz-gob { flex: none; width: 32px; height: 32px; margin-top: -4px; border-radius: 50%; background: var(--cz-solid); color: var(--cz-onsolid); display: inline-flex; align-items: center; justify-content: center; }
50
- .cz-own { flex: none; width: 24px; height: 24px; margin-top: -1px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; background: var(--cz-riskbg); color: var(--cz-risk); }
50
+ .cz-own { flex: none; width: 24px; height: 24px; margin-top: -1px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-1); font-weight: 800; background: var(--cz-riskbg); color: var(--cz-risk); }
51
51
  .cz-own.c { background: var(--cz-solid); color: var(--cz-onsolid); }
52
52
  .cz-own.cw { background: var(--cz-well); color: var(--cz-ink2); }
53
53
  .cz-own.j { background: var(--cz-well); color: var(--cz-ink2); border-radius: 6px; }
@@ -65,5 +65,5 @@ button.cz-st:focus-visible, .cz-sact:focus-visible, .cz-more:focus-visible, .cz-
65
65
  .cz-st.mv .tx small { font-weight: 600; }
66
66
  .cz-auto { display: inline-flex; color: var(--cz-blue); }
67
67
  .cz-st.mvr { align-items: center; padding-bottom: 4px; }
68
- .cz-mvb { flex: 1; min-height: 44px; border-radius: 14px; background: var(--cz-solid); color: var(--cz-onsolid); font: inherit; font-weight: 800; font-size: 14.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; padding: 0 16px; }
68
+ .cz-mvb { flex: 1; min-height: 44px; border-radius: 14px; background: var(--cz-solid); color: var(--cz-onsolid); font: inherit; font-weight: 800; font-size: var(--fs-3); display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; padding: 0 16px; }
69
69
  .cz-mvb span { display: inline-flex; align-items: center; gap: 4px; }