create-pmos 0.440.0 → 0.442.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 (95) hide show
  1. package/package.json +25 -25
  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/adler-seasons-art-test.js +106 -0
  7. package/workspace/adler-seasons-test.js +111 -0
  8. package/workspace/briefing-premium-adddoc-test.js +16 -13
  9. package/workspace/briefing-premium-board-test.js +19 -17
  10. package/workspace/briefing-premium-initiative-test.js +7 -4
  11. package/workspace/briefing-premium-products-test.js +4 -4
  12. package/workspace/briefing-premium-sources-test.js +2 -2
  13. package/workspace/briefing-premium-test.js +29 -23
  14. package/workspace/changelog.json +24 -0
  15. package/workspace/guide/adler.md +10 -0
  16. package/workspace/guide/core-documents.md +2 -2
  17. package/workspace/guide/data-freshness.md +7 -5
  18. package/workspace/guide/home.md +3 -1
  19. package/workspace/guide/horizon-scan.md +1 -1
  20. package/workspace/ini-workflow-test.js +6 -2
  21. package/workspace/lib/agent-inbox.js +20 -2
  22. package/workspace/lib/briefing-premium-sources.js +3 -0
  23. package/workspace/lib/briefing-premium.js +37 -7
  24. package/workspace/lib/driver-cli.js +1 -1
  25. package/workspace/lib/driver-run.js +15 -1
  26. package/workspace/lib/driver.js +31 -2
  27. package/workspace/lib/news-for-you.js +24 -9
  28. package/workspace/lib/pm-idle.js +12 -0
  29. package/workspace/lib/refresh.js +17 -8
  30. package/workspace/lib/routes-core-docs.js +1 -1
  31. package/workspace/lib/routes-news.js +15 -1
  32. package/workspace/lib/routes-phone-day.js +6 -4
  33. package/workspace/lib/settings-store.js +38 -0
  34. package/workspace/metric-drafts-ui-test.js +2 -2
  35. package/workspace/need-shot.js +57 -0
  36. package/workspace/news-viewers-test.js +183 -0
  37. package/workspace/package-lock.json +2 -2
  38. package/workspace/package.json +1 -1
  39. package/workspace/premium-board-actions-test.js +2 -1
  40. package/workspace/premium-chat-attach-test.js +2 -0
  41. package/workspace/premium-core-doc-issue-test.js +9 -8
  42. package/workspace/program-panel-test.js +1 -1
  43. package/workspace/public/pm/bd-ini-panel.js +6 -13
  44. package/workspace/public/pm/c3-ini-ui.js +1 -1
  45. package/workspace/public/pm/cozy-adler.css +21 -0
  46. package/workspace/public/pm/cozy-adler.js +415 -8
  47. package/workspace/public/pm/cozy-ev.css +44 -0
  48. package/workspace/public/pm/cozy-home.css +8 -0
  49. package/workspace/public/pm/cozy-news.js +186 -22
  50. package/workspace/public/pm/cozy-seasons.js +318 -0
  51. package/workspace/public/pm/cozy-settings.js +88 -5
  52. package/workspace/public/pm/cozy-today.css +5 -0
  53. package/workspace/public/pm/cozy-viewer.js +12 -7
  54. package/workspace/public/pm/cozy-vw-shell.css +49 -0
  55. package/workspace/public/pm/cozy.css +65 -0
  56. package/workspace/public/pm/dash-view.js +4 -2
  57. package/workspace/public/pm/home-adddoc.js +46 -26
  58. package/workspace/public/pm/home-app.js +142 -114
  59. package/workspace/public/pm/home-chat.js +1 -1
  60. package/workspace/public/pm/home-day.js +17 -9
  61. package/workspace/public/pm/home-draft.js +35 -23
  62. package/workspace/public/pm/home-ini.js +4 -4
  63. package/workspace/public/pm/home-mentions.js +1 -1
  64. package/workspace/public/pm/home-need.js +336 -0
  65. package/workspace/public/pm/home-today.js +2 -2
  66. package/workspace/public/pm/home-work.js +51 -4
  67. package/workspace/public/pm/impact.js +1 -1
  68. package/workspace/public/pm/ini-groups.js +15 -10
  69. package/workspace/public/pm/ini-links.js +1 -1
  70. package/workspace/public/pm/ini-tasks.js +208 -44
  71. package/workspace/public/pm/ini-view-model.js +8 -2
  72. package/workspace/public/pm/ini-view.css +305 -1
  73. package/workspace/public/pm/ini-view.js +190 -80
  74. package/workspace/public/pm/mission.js +234 -0
  75. package/workspace/public/pm/premium-board.js +1 -1
  76. package/workspace/public/pm/premium-welcome.js +2 -2
  77. package/workspace/public/pm/small-vw.js +128 -0
  78. package/workspace/public/pm/split-merge.js +1 -1
  79. package/workspace/public/pm/stage-line.js +2 -2
  80. package/workspace/server.js +10 -6
  81. package/workspace/skills/initiative-drive.skill +4 -1
  82. package/workspace/split-merge-ui-test.js +1 -1
  83. package/workspace/stage-card-test.js +48 -11
  84. package/workspace/task-links-test.js +2 -0
  85. package/workspace/task-milestones-test.js +5 -1
  86. package/workspace/task-plans-test.js +3 -3
  87. package/workspace/task-views-test.js +90 -37
  88. package/workspace/test-lists/adler-seasons-art.json +13 -0
  89. package/workspace/test-lists/batch18-adler-seasons.json +13 -0
  90. package/workspace/test-lists/batch18-asks.json +5 -0
  91. package/workspace/test-lists/mission.json +5 -0
  92. package/workspace/test-lists/news-viewers.json +13 -0
  93. package/workspace/test-lists/small-viewers.json +5 -0
  94. package/workspace/test-lists/viewer-tasks.json +5 -0
  95. package/workspace/tk-tasks-test.js +25 -30
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.440.0",
3
+ "version": "0.442.0",
4
4
  "private": true,
5
5
  "description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
6
6
  "license": "MIT",
@@ -239,7 +239,8 @@ const ALLOWED = /^\/api\/(?:boards\/(?:asks\/(?:add|accept|decline)|move|archive
239
239
  await ip.click('#czViewer [data-cz-vw="back"]'); // ← from Stage: the initiative's page again (canvas HbCDrill)
240
240
  // the card (stage card D): its last node, the next stage, opens the move popover with Move now and Back; Back always asks for a reason,
241
241
  // and the move line carries it (InStage)
242
- const openNext = async () => { await until(() => ip.evaluate(() => !!document.querySelector('.iv-sc [data-iv-next]')), 30000); await ip.click('.iv-sc [data-iv-next]'); return until(() => ip.evaluate(() => !!document.querySelector('.hi-pop [data-hi-goback]'))); };
242
+ const openNext = async () => { if (!(await ip.evaluate(() => !!document.querySelector('.iv-sc [data-iv-next]')))) await ip.click('.iv-sc [data-iv-mi]'); // the next stage sits under the picture until it is the main step (XvpE2Stages)
243
+ await until(() => ip.evaluate(() => !!document.querySelector('.iv-sc [data-iv-next]')), 30000); await ip.click('.iv-sc [data-iv-next]'); return until(() => ip.evaluate(() => !!document.querySelector('.hi-pop [data-hi-goback]'))); };
243
244
  const back = await openNext();
244
245
  ok('I4 the card\'s next stage opens Move to the next stage now and Back', back && await ip.evaluate(() => /^Move to .+ now$/.test(((document.querySelector('.hi-pop [data-hi-go]') || {}).textContent || '').trim())));
245
246
  if (back) {
@@ -100,6 +100,8 @@ const filesIn = () => { const d = path.join(T.STATE_DIR, 'chat-files'); const ou
100
100
  const bub = await until(async () => page.evaluate(() => { const u = [...document.querySelectorAll('#hmLog .hm-u')].pop(); return u && u.querySelectorAll('.atc[data-att]').length === 3 ? u.textContent : null; }), 12000);
101
101
  ok('B7 the PM\'s bubble shows the files as chips and the words, not the line', !!bub && /Where is this on PMOS\?/.test(bub) && !/Attached files/.test(bub), String(bub));
102
102
  await shot(page, 'bubble-1280-light');
103
+ // batch 18 item 13: a sent picture is a 36 px thumbnail in its chip, never the picture at its own size (a screenshot spilled out of the bubble)
104
+ ok('B7 a sent photo shows as a 36 px thumbnail in its chip', await page.evaluate(() => { const i = document.querySelector('#hmLog .hm-u .atc img.ath'); if (!i) return false; const r = i.getBoundingClientRect(); return Math.round(r.width) === 36 && Math.round(r.height) === 36; }));
103
105
  await page.click('#hmLog .hm-u .atc[data-att$=".png"]');
104
106
  ok('B7 a photo chip opens the picture in the Viewer', !!(await until(async () => page.evaluate(() => { const i = document.querySelector('#czViewer:not([hidden]) img.atview'); return !!i && i.complete && i.naturalWidth === 2; }))));
105
107
  await shot(page, 'viewer-1280-light');
@@ -126,21 +126,22 @@ const BODY = '## Purpose\n\nWhy this board exists.\n\n## Scope\n\nWhat it covers
126
126
  await until(() => ip.evaluate((k) => !!document.querySelector(`#czViewer [data-ov-dread="${k}"]`), ikey), 60000);
127
127
  await unfold(ip, `#czViewer [data-ov-dread="${ikey}"]`);
128
128
  await ip.click(`#czViewer [data-ov-dread="${ikey}"]`);
129
- ok('I1 the reader of a draft has the Issue it bar above the text', await until(() => ip.evaluate(() => { const o = document.querySelector('#czViewer:not([hidden])'); const b = o && o.querySelector('[data-issue-bar="draft"]'); const t = o && o.querySelector('.dsbody'); return !!b && !!t && /Nothing is sent/.test(b.textContent) && /Why this board exists/.test(t.textContent) && !!(b.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING); }), 30000));
129
+ ok('I1 the reader of a draft has the summary with Issue it above the text (shell A, batch 18 item 2-C)', await until(() => ip.evaluate(() => { const o = document.querySelector('#czViewer:not([hidden])'); const b = o && o.querySelector('[data-issue-bar="draft"]'); const t = o && o.querySelector('.dsbody'); return !!b && !!t && /sends nothing to anyone/.test(b.textContent) && /Why this board exists/.test(t.textContent) && !!(b.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING); }), 30000));
130
130
  ok('I1 no old dialog opens', await ip.evaluate(() => { const d = document.querySelector('#dlg'); return !d || !d.classList.contains('on'); }));
131
- await ip.click('#czViewer [data-ds="edit"]');
131
+ ok('I1 ✎ Edit is a press in the header (no Read | Edit tabs), the path is under ⋯ and not in the body', await ip.evaluate((pt) => !!document.querySelector('#czViewer .cz-vw-hd [data-cz-vw-p="edit"]') && !document.querySelector('#czViewer [role="tablist"]') && !document.querySelector('#czViewer .cz-vw-body').textContent.includes(pt) && /^A draft/.test((document.querySelector('#czViewer .cz-vw-sub') || {}).textContent || ''), d2.path));
132
+ await ip.click('#czViewer .cz-vw-hd [data-cz-vw-p="edit"]');
132
133
  await until(() => ip.evaluate(() => !!document.querySelector('#czViewer [data-ds-host] .cfb[contenteditable="true"]')), 30000);
133
134
  await ip.click('#czViewer [data-ds-host] .cfb'); await ip.keyboard.press('Control+End'); await ip.keyboard.type(' Unsaved line.');
134
135
  const nI = I.posts.filter((x) => x.path === '/api/core-docs/issue').length;
135
- await ip.click('#czViewer [data-ds="issue"]');
136
+ await ip.click('#czViewer [data-czs-act="issue"]');
136
137
  ok('I2 Issue it with unsaved edits posts nothing and says to save or cancel first', await until(() => ip.evaluate(() => /unsaved changes.*Save or cancel/.test((document.querySelector('#czViewer #dsErr') || {}).textContent || ''))) && I.posts.filter((x) => x.path === '/api/core-docs/issue').length === nI);
137
138
  ok('I2 the ledger has no issue line for that draft yet', !ledger().some((l) => l.ev === 'issue' && l.slot === d2.slot && l.scope === iscope));
138
139
  await ip.click('#czViewer [data-vd="cancel"]');
139
- await until(() => ip.evaluate(() => !!document.querySelector('#czViewer [data-ds="issue"]') && !!document.querySelector('#czViewer .dsbody')));
140
+ await until(() => ip.evaluate(() => !!document.querySelector('#czViewer [data-czs-act="issue"]') && !!document.querySelector('#czViewer .dsbody')));
140
141
  /* a refusal: someone else issues the same draft first (the console, a second tab) */
141
142
  const raced = await fetch(BASE + '/api/core-docs/issue', { method: 'POST', headers: H, body: JSON.stringify({ ws: B.ws, scope: iscope, key: ikey, slot: d2.slot }) });
142
143
  ok('I3 setup the draft is issued behind the page\'s back', raced.status === 200);
143
- await ip.click('#czViewer [data-ds="issue"]');
144
+ await ip.click('#czViewer [data-czs-act="issue"]');
144
145
  ok('I3 a refused press shows the server\'s words and the reader changes nothing else', await until(() => ip.evaluate(() => /already/.test((document.querySelector('#czViewer #dsErr') || {}).textContent || '') && !!document.querySelector('#czViewer [data-issue-bar="draft"]'))));
145
146
  ok('I3 the refusal wrote no second issue line', ledger().filter((l) => l.ev === 'issue' && l.slot === d2.slot && l.scope === iscope).length === 1);
146
147
  await I.ctx.close();
@@ -152,9 +153,9 @@ const BODY = '## Purpose\n\nWhy this board exists.\n\n## Scope\n\nWhat it covers
152
153
  await until(() => jp.evaluate((k) => !!document.querySelector(`#czViewer [data-ov-dread="${k}"]`), k3), 60000);
153
154
  await unfold(jp, `#czViewer [data-ov-dread="${k3}"]`);
154
155
  await jp.click(`#czViewer [data-ov-dread="${k3}"]`);
155
- await until(() => jp.evaluate(() => !!document.querySelector('#czViewer [data-ds="issue"]')));
156
- await jp.click('#czViewer [data-ds="issue"]');
157
- const issued = !!(await toastIs(jp, /Issued\. Nothing was sent to anyone/)) && await until(() => jp.evaluate(() => !!document.querySelector('#czViewer [data-issue-bar="done"]') && !document.querySelector('#czViewer [data-ds="issue"]')));
156
+ await until(() => jp.evaluate(() => !!document.querySelector('#czViewer [data-czs-act="issue"]')));
157
+ await jp.click('#czViewer [data-czs-act="issue"]');
158
+ const issued = !!(await toastIs(jp, /Issued\. Nothing was sent to anyone/)) && await until(() => jp.evaluate(() => !!document.querySelector('#czViewer [data-issue-bar="done"]') && !document.querySelector('#czViewer [data-czs-act="issue"]')));
158
159
  await sleep(1500); await ovOpen(jp);
159
160
  // shell A (XvADocs): an up-to-date document says nothing about its state (zero is silence); it is a plain Open press, not the draft reader
160
161
  ok('I4 Issue it works from the reader: the toast, the issued bar, and the Overview row is a plain open, no longer a draft', issued && await until(() => jp.evaluate((k) => { const r = document.querySelector(`#czViewer [data-ov-doc="${k}"]`); return !!r && !!r.querySelector('[data-ov-open]') && !r.querySelector('[data-ov-dread]'); }, k3), 30000), JSON.stringify({ issued, row: await jp.evaluate((k) => ((document.querySelector(`#czViewer [data-ov-doc="${k}"]`) || {}).outerHTML || 'none').replace(/<svg.*?<\/svg>/g, '').slice(0, 400), k3) }));
@@ -119,7 +119,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
119
119
  await fold(p, 'tree');
120
120
  await until(() => p.evaluate(() => !!document.querySelector('#czViewer button.pp-open[data-ini="descope-parity"]')));
121
121
  await p.click('#czViewer button.pp-open[data-ini="descope-parity"]');
122
- const ip = await until(() => p.evaluate(() => { const v = document.querySelector('#czViewer'); if (!v || v.hidden || !/Initiative/.test(v.getAttribute('aria-label') || '')) return null; return { t: v.querySelector('.cz-vw-title').textContent, peek: !document.querySelector('#peek'), stg: new Set([...v.querySelectorAll('.iv-tl .iv-tlp')].map((x) => x.dataset.ivStage)).size + v.querySelectorAll('.iv-tl .iv-tl-sk').length }; }));
122
+ const ip = await until(() => p.evaluate(() => { const v = document.querySelector('#czViewer'); if (!v || v.hidden || !/Initiative/.test(v.getAttribute('aria-label') || '')) return null; return { t: v.querySelector('.cz-vw-title').textContent, peek: !document.querySelector('#peek'), stg: v.querySelectorAll('.mi-svg :is(.mi-st, .mi-dsh)').length }; }));
123
123
  ok('O an initiative in the tree opens the Board\'s initiative in the same shell, with its eight steps (XvABoard)', !!ip && ip.t === 'Descope feature parity' && ip.peek && ip.stg === 8, JSON.stringify(ip));
124
124
  await p.keyboard.press('Escape');
125
125
  await until(() => p.evaluate(() => document.querySelector('#czViewer').hidden));
@@ -23,6 +23,7 @@
23
23
  * Change workflow, Won't do and Archive are Home's (ini-wf.js). Discuss in chat takes the question to Home. */
24
24
  import * as IM from './impact.js'; // Your impact (batch 16 item 7): who made a delivered milestone happen
25
25
  import * as VW from './cozy-viewer.js';
26
+ import * as SV from './small-vw.js'; // the one stakeholder form, Home's too (batch 18 item 2-C)
26
27
  import { esc } from './premium-shell.js';
27
28
  import { lr, copyText } from './cozy-xv.js';
28
29
  import { iniView } from './ini-view-model.js';
@@ -105,18 +106,10 @@ function wfUi() {
105
106
  return { openPop, closePop, undoToast: (t, undo) => O.toast(t, undo), toast: (t) => O.toast(t), pmGet, pmPost, load: async () => { if (O.reload) await O.reload(); },
106
107
  row: byId, title: (id) => byId(id).title || id, bw: (id) => where(byId(id)) };
107
108
  }
108
- /** The stakeholder form, as Home's (POST /api/home-desk/stakeholder), a drill-in of the initiative: ← comes back to it. */
109
+ /** The stakeholder form, Home's own (pm/small-vw.js, canvas OvA8People): a drill-in of the initiative, ✓ in the header adds, ← comes back. */
109
110
  function addPerson(r) {
110
- VW.drill();
111
- const body = VW.open({ id: 'person:new', kind: 'Stakeholder', title: 'Add a stakeholder to ' + r.title, icon: 'info', back: true,
112
- html: '<div class="hi-form"><label class="hi-field"><span>Name</span><input id="hpN" autocomplete="off"></label><label class="hi-field"><span>Role</span><input id="hpR" placeholder="e.g. Head of Sales"></label><label class="hi-field"><span>Note</span><input id="hpT" placeholder="What they care about"></label><div class="hi-acts"><button type="button" class="hi-btn dark" data-hp-add>Add</button></div></div>' });
113
- setTimeout(() => { const i = body.querySelector('#hpN'); if (i) i.focus(); }, 0);
114
- body.onclick = async (e) => {
115
- if (!e.target.closest('[data-hp-add]')) return;
116
- const name = body.querySelector('#hpN').value.trim(); if (!name) return;
117
- const res = await pmPost('/api/home-desk/stakeholder', { ws: where(r).ws, initiative: r.id, name, role: body.querySelector('#hpR').value.trim(), note: body.querySelector('#hpT').value.trim() }).catch(() => null);
118
- if (res && res.ok) { O.toast('Added ' + name + '.'); openIni(O.rowOf(r.key) || r); } else O.toast((res && res.error) || 'Not added.');
119
- };
111
+ SV.openPersonForm({ VW, pmPost: (u, b) => pmPost(u, b), toast: (t, undo) => O.toast(t, undo), ws: where(r).ws, ini: r.id, iniTitle: r.title,
112
+ saved: async () => { if (O.reload) await O.reload(); }, back: () => VW.back() });
120
113
  }
121
114
  function iniMore(r) {
122
115
  const id = r.id;
@@ -173,7 +166,7 @@ function dashFor(r) {
173
166
  if (!r || !r.id) return null;
174
167
  if (!DASH.has(r.key)) {
175
168
  const M = O.M() || {}, B = M.board || {}, vid = vidOf(r);
176
- DASH.set(r.key, DB.dashHost({ page: 'initiative:' + r.id, scope: 'initiative:' + r.id, ws: r.ws || B.ws || '', board: r.boardId || B.id || '', vid, VW,
169
+ DASH.set(r.key, DB.dashHost({ page: 'initiative:' + r.id, menu: true, scope: 'initiative:' + r.id, ws: r.ws || B.ws || '', board: r.boardId || B.id || '', vid, VW,
177
170
  redraw: () => refresh(true), toast: (t) => (O.toast ? O.toast(t) : null),
178
171
  openReport: async (row) => { if (!row.path) return; VW.drill(); (await import('./premium-report-read.js')).openReportView(row.path, { ws: r.ws || B.ws || '', name: row.name, cuts: true }); } }));
179
172
  }
@@ -249,7 +242,7 @@ export function openIni(r, from, o = {}) {
249
242
  readLay(r); // Moves on by itself shows once the layout record is read
250
243
  { const h = dashFor(r); if (h) h.read(o.via || 'act'); } // a Board row is a press to act (PbH1Header); a link to read passes via 'read'
251
244
  // the same tile as Home's initiative page; no "Open in full": the header's expand already opens it wide (batch 14 item 5)
252
- VW.open({ kind: 'Initiative', title: r.title, icon: 'goal', id: vidOf(r),
245
+ VW.open({ kind: 'Initiative', title: r.title, icon: 'goal', wrap: true, id: vidOf(r),
253
246
  discuss: r.id ? true : () => location.assign(O.askHref(r, '')), more: () => iniMore(O.rowOf(r.key) || r), rename: O.rename ? O.rename(r) : null,
254
247
  presses: dashFor(r) ? dashFor(r).presses() : null, onPress: (a) => { const h = dashFor(O.rowOf(r.key) || r); if (a === 'dash' && h) h.toggle(); },
255
248
  render: (body) => { const x = O.rowOf(r.key) || r; cur = { key: x.key, tk: null }; O.onShow(x.key, from); body.innerHTML = iniBody(x); wire(body, x.key); { const h = dashFor(x); if (h) h.wire(body); } if (adding === x.key) { const f = body.querySelector('#ivAddTask'); if (f && document.activeElement !== f) f.focus(); } },
@@ -42,7 +42,7 @@ export function svgIcon(paths, cls) {
42
42
  export const GEAR = ['M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z', 'M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'];
43
43
  export const GRIP = ['M9 5h.01M9 12h.01M9 19h.01M15 5h.01M15 12h.01M15 19h.01'];
44
44
  export const PAUSE = ['M8 5v14M16 5v14'];
45
- export const JIRA = ['M12 3l9 9-9 9-9-9z', 'M12 8l4 4-4 4-4-4z'];
45
+ export const JIRA = ['M4 7h16v3a2 2 0 0 0 0 4v3H4v-3a2 2 0 0 0 0-4z', 'M14 7v10']; // a ticket, never ◇: ◇ is a milestone (batch 18 item 12)
46
46
  /** An icon by name: the sprite's, or one of the three drawn here. */
47
47
  export function icon(name, cls) {
48
48
  if (name === 'settings') return svgIcon(GEAR, cls);
@@ -91,3 +91,24 @@ html.ad-still .ad-svg .ad-gw { animation: none; }
91
91
  .cz-pull-ad { display: inline-flex; transform: translateY(max(0px, calc(44px - var(--cz-pull, 0px)))); }
92
92
  .cz-pull-t { font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); padding-bottom: 8px; }
93
93
  .cz-pull-t:empty { display: none; }
94
+
95
+ /* Adler dressed for the season (batch 18 item 8-B): adk- a charm's fill, adks- its stroke, adg-<key>0/1 its sky, adf-<key>g its ground */
96
+ .adk-amber1{fill:var(--ad-k-amber1)} .adk-amber10{fill:var(--ad-k-amber10)} .adk-amber2{fill:var(--ad-k-amber2)} .adk-amber3{fill:var(--ad-k-amber3)} .adk-amber4{fill:var(--ad-k-amber4)} .adk-amber5{fill:var(--ad-k-amber5)} .adk-amber6{fill:var(--ad-k-amber6)} .adk-amber7{fill:var(--ad-k-amber7)} .adk-amber8{fill:var(--ad-k-amber8)} .adk-amber9{fill:var(--ad-k-amber9)} .adk-blue1{fill:var(--ad-k-blue1)} .adk-blue10{fill:var(--ad-k-blue10)} .adk-blue11{fill:var(--ad-k-blue11)} .adk-blue12{fill:var(--ad-k-blue12)} .adk-blue13{fill:var(--ad-k-blue13)} .adk-blue2{fill:var(--ad-k-blue2)} .adk-blue3{fill:var(--ad-k-blue3)} .adk-blue4{fill:var(--ad-k-blue4)} .adk-blue5{fill:var(--ad-k-blue5)} .adk-blue6{fill:var(--ad-k-blue6)} .adk-blue7{fill:var(--ad-k-blue7)} .adk-blue8{fill:var(--ad-k-blue8)} .adk-blue9{fill:var(--ad-k-blue9)} .adk-brown1{fill:var(--ad-k-brown1)} .adk-brown2{fill:var(--ad-k-brown2)} .adk-brown3{fill:var(--ad-k-brown3)} .adk-brown4{fill:var(--ad-k-brown4)} .adk-gold1{fill:var(--ad-k-gold1)} .adk-gold10{fill:var(--ad-k-gold10)} .adk-gold11{fill:var(--ad-k-gold11)} .adk-gold12{fill:var(--ad-k-gold12)} .adk-gold13{fill:var(--ad-k-gold13)} .adk-gold14{fill:var(--ad-k-gold14)} .adk-gold15{fill:var(--ad-k-gold15)} .adk-gold16{fill:var(--ad-k-gold16)} .adk-gold17{fill:var(--ad-k-gold17)} .adk-gold18{fill:var(--ad-k-gold18)} .adk-gold2{fill:var(--ad-k-gold2)} .adk-gold3{fill:var(--ad-k-gold3)} .adk-gold4{fill:var(--ad-k-gold4)} .adk-gold5{fill:var(--ad-k-gold5)} .adk-gold6{fill:var(--ad-k-gold6)} .adk-gold7{fill:var(--ad-k-gold7)} .adk-gold9{fill:var(--ad-k-gold9)} .adk-green1{fill:var(--ad-k-green1)} .adk-green2{fill:var(--ad-k-green2)} .adk-green3{fill:var(--ad-k-green3)} .adk-green4{fill:var(--ad-k-green4)} .adk-green6{fill:var(--ad-k-green6)} .adk-green7{fill:var(--ad-k-green7)} .adk-green8{fill:var(--ad-k-green8)} .adk-grey1{fill:var(--ad-k-grey1)} .adk-grey2{fill:var(--ad-k-grey2)} .adk-grey3{fill:var(--ad-k-grey3)} .adk-grey4{fill:var(--ad-k-grey4)} .adk-grey5{fill:var(--ad-k-grey5)} .adk-ink1{fill:var(--ad-k-ink1)} .adk-ink2{fill:var(--ad-k-ink2)} .adk-ink3{fill:var(--ad-k-ink3)} .adk-orange1{fill:var(--ad-k-orange1)} .adk-orange2{fill:var(--ad-k-orange2)} .adk-orange3{fill:var(--ad-k-orange3)} .adk-orange4{fill:var(--ad-k-orange4)} .adk-orange5{fill:var(--ad-k-orange5)} .adk-orange6{fill:var(--ad-k-orange6)} .adk-paper1{fill:var(--ad-k-paper1)} .adk-paper10{fill:var(--ad-k-paper10)} .adk-paper11{fill:var(--ad-k-paper11)} .adk-paper12{fill:var(--ad-k-paper12)} .adk-paper2{fill:var(--ad-k-paper2)} .adk-paper3{fill:var(--ad-k-paper3)} .adk-paper4{fill:var(--ad-k-paper4)} .adk-paper6{fill:var(--ad-k-paper6)} .adk-paper7{fill:var(--ad-k-paper7)} .adk-paper8{fill:var(--ad-k-paper8)} .adk-paper9{fill:var(--ad-k-paper9)} .adk-red1{fill:var(--ad-k-red1)} .adk-red10{fill:var(--ad-k-red10)} .adk-red11{fill:var(--ad-k-red11)} .adk-red2{fill:var(--ad-k-red2)} .adk-red3{fill:var(--ad-k-red3)} .adk-red4{fill:var(--ad-k-red4)} .adk-red5{fill:var(--ad-k-red5)} .adk-red6{fill:var(--ad-k-red6)} .adk-red7{fill:var(--ad-k-red7)} .adk-red8{fill:var(--ad-k-red8)} .adk-red9{fill:var(--ad-k-red9)} .adk-teal1{fill:var(--ad-k-teal1)} .adk-violet1{fill:var(--ad-k-violet1)} .adk-white{fill:var(--ad-white)}
97
+ .adks-amber1{stroke:var(--ad-k-amber1)} .adks-amber10{stroke:var(--ad-k-amber10)} .adks-amber2{stroke:var(--ad-k-amber2)} .adks-amber3{stroke:var(--ad-k-amber3)} .adks-amber4{stroke:var(--ad-k-amber4)} .adks-amber5{stroke:var(--ad-k-amber5)} .adks-amber6{stroke:var(--ad-k-amber6)} .adks-amber7{stroke:var(--ad-k-amber7)} .adks-amber8{stroke:var(--ad-k-amber8)} .adks-amber9{stroke:var(--ad-k-amber9)} .adks-blue1{stroke:var(--ad-k-blue1)} .adks-blue10{stroke:var(--ad-k-blue10)} .adks-blue11{stroke:var(--ad-k-blue11)} .adks-blue12{stroke:var(--ad-k-blue12)} .adks-blue13{stroke:var(--ad-k-blue13)} .adks-blue2{stroke:var(--ad-k-blue2)} .adks-blue3{stroke:var(--ad-k-blue3)} .adks-blue4{stroke:var(--ad-k-blue4)} .adks-blue5{stroke:var(--ad-k-blue5)} .adks-blue6{stroke:var(--ad-k-blue6)} .adks-blue7{stroke:var(--ad-k-blue7)} .adks-blue8{stroke:var(--ad-k-blue8)} .adks-blue9{stroke:var(--ad-k-blue9)} .adks-brown1{stroke:var(--ad-k-brown1)} .adks-brown2{stroke:var(--ad-k-brown2)} .adks-brown3{stroke:var(--ad-k-brown3)} .adks-brown4{stroke:var(--ad-k-brown4)} .adks-gold1{stroke:var(--ad-k-gold1)} .adks-gold10{stroke:var(--ad-k-gold10)} .adks-gold11{stroke:var(--ad-k-gold11)} .adks-gold12{stroke:var(--ad-k-gold12)} .adks-gold13{stroke:var(--ad-k-gold13)} .adks-gold14{stroke:var(--ad-k-gold14)} .adks-gold15{stroke:var(--ad-k-gold15)} .adks-gold16{stroke:var(--ad-k-gold16)} .adks-gold17{stroke:var(--ad-k-gold17)} .adks-gold18{stroke:var(--ad-k-gold18)} .adks-gold2{stroke:var(--ad-k-gold2)} .adks-gold3{stroke:var(--ad-k-gold3)} .adks-gold4{stroke:var(--ad-k-gold4)} .adks-gold5{stroke:var(--ad-k-gold5)} .adks-gold6{stroke:var(--ad-k-gold6)} .adks-gold7{stroke:var(--ad-k-gold7)} .adks-gold9{stroke:var(--ad-k-gold9)} .adks-green1{stroke:var(--ad-k-green1)} .adks-green2{stroke:var(--ad-k-green2)} .adks-green3{stroke:var(--ad-k-green3)} .adks-green4{stroke:var(--ad-k-green4)} .adks-green6{stroke:var(--ad-k-green6)} .adks-green7{stroke:var(--ad-k-green7)} .adks-green8{stroke:var(--ad-k-green8)} .adks-grey1{stroke:var(--ad-k-grey1)} .adks-grey2{stroke:var(--ad-k-grey2)} .adks-grey3{stroke:var(--ad-k-grey3)} .adks-grey4{stroke:var(--ad-k-grey4)} .adks-grey5{stroke:var(--ad-k-grey5)} .adks-ink1{stroke:var(--ad-k-ink1)} .adks-ink2{stroke:var(--ad-k-ink2)} .adks-ink3{stroke:var(--ad-k-ink3)} .adks-orange1{stroke:var(--ad-k-orange1)} .adks-orange2{stroke:var(--ad-k-orange2)} .adks-orange3{stroke:var(--ad-k-orange3)} .adks-orange4{stroke:var(--ad-k-orange4)} .adks-orange5{stroke:var(--ad-k-orange5)} .adks-orange6{stroke:var(--ad-k-orange6)} .adks-paper1{stroke:var(--ad-k-paper1)} .adks-paper10{stroke:var(--ad-k-paper10)} .adks-paper11{stroke:var(--ad-k-paper11)} .adks-paper12{stroke:var(--ad-k-paper12)} .adks-paper2{stroke:var(--ad-k-paper2)} .adks-paper3{stroke:var(--ad-k-paper3)} .adks-paper4{stroke:var(--ad-k-paper4)} .adks-paper6{stroke:var(--ad-k-paper6)} .adks-paper7{stroke:var(--ad-k-paper7)} .adks-paper8{stroke:var(--ad-k-paper8)} .adks-paper9{stroke:var(--ad-k-paper9)} .adks-red1{stroke:var(--ad-k-red1)} .adks-red10{stroke:var(--ad-k-red10)} .adks-red11{stroke:var(--ad-k-red11)} .adks-red2{stroke:var(--ad-k-red2)} .adks-red3{stroke:var(--ad-k-red3)} .adks-red4{stroke:var(--ad-k-red4)} .adks-red5{stroke:var(--ad-k-red5)} .adks-red6{stroke:var(--ad-k-red6)} .adks-red7{stroke:var(--ad-k-red7)} .adks-red8{stroke:var(--ad-k-red8)} .adks-red9{stroke:var(--ad-k-red9)} .adks-teal1{stroke:var(--ad-k-teal1)} .adks-violet1{stroke:var(--ad-k-violet1)} .adks-white{stroke:var(--ad-white)}
98
+ .adg-newyear0{stop-color:var(--ad-newyear0)} .adg-newyear1{stop-color:var(--ad-newyear1)} .adf-newyearg{fill:var(--ad-newyearg)} .adg-cny0{stop-color:var(--ad-cny0)} .adg-cny1{stop-color:var(--ad-cny1)} .adf-cnyg{fill:var(--ad-cnyg)} .adg-lantern0{stop-color:var(--ad-lantern0)} .adg-lantern1{stop-color:var(--ad-lantern1)} .adf-lanterng{fill:var(--ad-lanterng)} .adg-valentine0{stop-color:var(--ad-valentine0)} .adg-valentine1{stop-color:var(--ad-valentine1)} .adf-valentineg{fill:var(--ad-valentineg)} .adg-ramadan0{stop-color:var(--ad-ramadan0)} .adg-ramadan1{stop-color:var(--ad-ramadan1)} .adf-ramadang{fill:var(--ad-ramadang)} .adg-raya0{stop-color:var(--ad-raya0)} .adg-raya1{stop-color:var(--ad-raya1)} .adf-rayag{fill:var(--ad-rayag)} .adg-haji0{stop-color:var(--ad-haji0)} .adg-haji1{stop-color:var(--ad-haji1)} .adf-hajig{fill:var(--ad-hajig)} .adg-iwd0{stop-color:var(--ad-iwd0)} .adg-iwd1{stop-color:var(--ad-iwd1)} .adf-iwdg{fill:var(--ad-iwdg)} .adg-pi0{stop-color:var(--ad-pi0)} .adg-pi1{stop-color:var(--ad-pi1)} .adf-pig{fill:var(--ad-pig)} .adg-easter0{stop-color:var(--ad-easter0)} .adg-easter1{stop-color:var(--ad-easter1)} .adf-easterg{fill:var(--ad-easterg)} .adg-earth0{stop-color:var(--ad-earth0)} .adg-earth1{stop-color:var(--ad-earth1)} .adf-earthg{fill:var(--ad-earthg)} .adg-labour0{stop-color:var(--ad-labour0)} .adg-labour1{stop-color:var(--ad-labour1)} .adf-labourg{fill:var(--ad-labourg)} .adg-vesak0{stop-color:var(--ad-vesak0)} .adg-vesak1{stop-color:var(--ad-vesak1)} .adf-vesakg{fill:var(--ad-vesakg)} .adg-dragonboat0{stop-color:var(--ad-dragonboat0)} .adg-dragonboat1{stop-color:var(--ad-dragonboat1)} .adf-dragonboatg{fill:var(--ad-dragonboatg)} .adg-natday0{stop-color:var(--ad-natday0)} .adg-natday1{stop-color:var(--ad-natday1)} .adf-natdayg{fill:var(--ad-natdayg)} .adg-moon0{stop-color:var(--ad-moon0)} .adg-moon1{stop-color:var(--ad-moon1)} .adf-moong{fill:var(--ad-moong)} .adg-ndp0{stop-color:var(--ad-ndp0)} .adg-ndp1{stop-color:var(--ad-ndp1)} .adf-ndpg{fill:var(--ad-ndpg)} .adg-teachers0{stop-color:var(--ad-teachers0)} .adg-teachers1{stop-color:var(--ad-teachers1)} .adf-teachersg{fill:var(--ad-teachersg)} .adg-midautumn0{stop-color:var(--ad-midautumn0)} .adg-midautumn1{stop-color:var(--ad-midautumn1)} .adf-midautumng{fill:var(--ad-midautumng)} .adg-exam0{stop-color:var(--ad-exam0)} .adg-exam1{stop-color:var(--ad-exam1)} .adf-examg{fill:var(--ad-examg)} .adg-children0{stop-color:var(--ad-children0)} .adg-children1{stop-color:var(--ad-children1)} .adf-childreng{fill:var(--ad-childreng)} .adg-nightrace0{stop-color:var(--ad-nightrace0)} .adg-nightrace1{stop-color:var(--ad-nightrace1)} .adf-nightraceg{fill:var(--ad-nightraceg)} .adg-halloween0{stop-color:var(--ad-halloween0)} .adg-halloween1{stop-color:var(--ad-halloween1)} .adf-halloweeng{fill:var(--ad-halloweeng)} .adg-deepavali0{stop-color:var(--ad-deepavali0)} .adg-deepavali1{stop-color:var(--ad-deepavali1)} .adf-deepavalig{fill:var(--ad-deepavalig)} .adg-thanks0{stop-color:var(--ad-thanks0)} .adg-thanks1{stop-color:var(--ad-thanks1)} .adf-thanksg{fill:var(--ad-thanksg)} .adg-hanukkah0{stop-color:var(--ad-hanukkah0)} .adg-hanukkah1{stop-color:var(--ad-hanukkah1)} .adf-hanukkahg{fill:var(--ad-hanukkahg)} .adg-christmas0{stop-color:var(--ad-christmas0)} .adg-christmas1{stop-color:var(--ad-christmas1)} .adf-christmasg{fill:var(--ad-christmasg)} .adg-dongzhi0{stop-color:var(--ad-dongzhi0)} .adg-dongzhi1{stop-color:var(--ad-dongzhi1)} .adf-dongzhig{fill:var(--ad-dongzhig)} .adg-pongal0{stop-color:var(--ad-pongal0)} .adg-pongal1{stop-color:var(--ad-pongal1)} .adf-pongalg{fill:var(--ad-pongalg)} .adg-football0{stop-color:var(--ad-football0)} .adg-football1{stop-color:var(--ad-football1)} .adf-footballg{fill:var(--ad-footballg)} .adg-games0{stop-color:var(--ad-games0)} .adg-games1{stop-color:var(--ad-games1)} .adf-gamesg{fill:var(--ad-gamesg)} .adg-movie0{stop-color:var(--ad-movie0)} .adg-movie1{stop-color:var(--ad-movie1)} .adf-movieg{fill:var(--ad-movieg)} .adg-music0{stop-color:var(--ad-music0)} .adg-music1{stop-color:var(--ad-music1)} .adf-musicg{fill:var(--ad-musicg)} .adg-spring0{stop-color:var(--ad-spring0)} .adg-spring1{stop-color:var(--ad-spring1)} .adf-springg{fill:var(--ad-springg)} .adg-summer0{stop-color:var(--ad-summer0)} .adg-summer1{stop-color:var(--ad-summer1)} .adf-summerg{fill:var(--ad-summerg)} .adg-autumn0{stop-color:var(--ad-autumn0)} .adg-autumn1{stop-color:var(--ad-autumn1)} .adf-autumng{fill:var(--ad-autumng)} .adg-winter0{stop-color:var(--ad-winter0)} .adg-winter1{stop-color:var(--ad-winter1)} .adf-winterg{fill:var(--ad-winterg)} .adg-monsoon0{stop-color:var(--ad-monsoon0)} .adg-monsoon1{stop-color:var(--ad-monsoon1)} .adf-monsoong{fill:var(--ad-monsoong)} .adg-pmosday0{stop-color:var(--ad-pmosday0)} .adg-pmosday1{stop-color:var(--ad-pmosday1)} .adf-pmosdayg{fill:var(--ad-pmosdayg)} .adg-birthday0{stop-color:var(--ad-birthday0)} .adg-birthday1{stop-color:var(--ad-birthday1)} .adf-birthdayg{fill:var(--ad-birthdayg)}
99
+ /* the season scenes' own motion: a hanging lantern sways, snow drifts down in winter. Rain never falls in a season scene (rain means a source
100
+ * failed) and leaves never fall (falling leaves mean a real win). Both stop under reduced motion and under Motion: Still. */
101
+ .env-hang { animation: enHg 5.5s ease-in-out infinite; transform-box: fill-box; transform-origin: top center; }
102
+ @keyframes enHg { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
103
+ .env-snow { animation: enSn 9s linear infinite; opacity: 0; }
104
+ .env-snow.d2 { animation-delay: 3s; } .env-snow.d3 { animation-delay: 6s; }
105
+ @keyframes enSn { 0% { opacity: 0; transform: translate(0, 0); } 10% { opacity: .9; } 90% { opacity: .9; } 100% { opacity: 0; transform: translate(12px, 200px); } }
106
+ html.ad-still .env-hang, html.ad-still .env-snow { animation: none !important; opacity: 1; }
107
+ @media (prefers-reduced-motion: reduce) { .env-hang, .env-snow { animation: none !important; opacity: 1; } }
108
+ /* a dressed Adler is a button that says why (AsSet2Tap): the small dark popover, one icon to turn this day off, one to open the settings */
109
+ [data-ad-dress] { cursor: pointer; }
110
+ .ad-tip { display: flex; align-items: center; gap: 4px; margin: 8px 12px 0; padding: 6px 6px 6px 16px; border-radius: 8px; background: var(--cz-ink); color: var(--cz-card); box-shadow: 0 8px 24px rgba(20,24,40,.22); }
111
+ .ad-tip-t { flex: 1; font-size: var(--fs-3); line-height: 1.4; }
112
+ .ad-tip-b { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
113
+ .ad-tip-b:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
114
+ @media (hover: hover) { .ad-tip-b:hover { background: rgba(255,255,255,.12); } }