create-pmos 0.436.0 → 0.438.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 +25 -25
- 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/adler-moments-test.js +121 -0
- package/workspace/briefing-premium-board-test.js +2 -1
- package/workspace/changelog.json +24 -0
- package/workspace/guide/adler.md +12 -1
- package/workspace/guide/briefing-premium.md +1 -1
- package/workspace/guide/home.md +22 -10
- package/workspace/home-rows-test.js +204 -115
- package/workspace/lib/mention-cli.js +45 -21
- package/workspace/lib/mention-store.js +196 -27
- package/workspace/lib/news-for-you.js +8 -16
- package/workspace/lib/routes-mentions.js +7 -2
- package/workspace/lib/routes-news.js +5 -11
- package/workspace/lib/source-reads.js +1 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-briefing-depth-test.js +2 -2
- package/workspace/premium-chat-context-test.js +20 -0
- package/workspace/public/pm/bd-asks.js +5 -2
- package/workspace/public/pm/bd-deliveries.js +11 -2
- package/workspace/public/pm/cozy-adler.css +7 -1
- package/workspace/public/pm/cozy-adler.js +17 -0
- package/workspace/public/pm/cozy-board.css +5 -0
- package/workspace/public/pm/cozy-ev.css +8 -0
- package/workspace/public/pm/cozy-home-rows.css +88 -62
- package/workspace/public/pm/cozy-home.css +7 -0
- package/workspace/public/pm/cozy-live-pill.css +2 -0
- package/workspace/public/pm/cozy-live-pill.js +6 -3
- package/workspace/public/pm/cozy-nav.js +18 -5
- package/workspace/public/pm/cozy-news.js +8 -27
- package/workspace/public/pm/cozy-pull.js +62 -0
- package/workspace/public/pm/cozy-rec-tab.css +2 -0
- package/workspace/public/pm/cozy-rec-tab.js +18 -1
- package/workspace/public/pm/cozy-settings.js +14 -5
- package/workspace/public/pm/cozy-steps.css +3 -0
- package/workspace/public/pm/cozy-steps.js +5 -4
- package/workspace/public/pm/cozy-today.css +5 -0
- package/workspace/public/pm/home-app.js +33 -2
- package/workspace/public/pm/home-day.js +43 -11
- package/workspace/public/pm/home-mentions.js +339 -194
- package/workspace/public/pm/home-review.js +9 -1
- package/workspace/public/pm/home-stage-card.js +9 -3
- package/workspace/public/pm/impact.css +1 -0
- package/workspace/public/pm/impact.js +5 -2
- package/workspace/public/pm/ini-tasks.js +19 -3
- package/workspace/public/pm/premium-board.js +12 -4
- package/workspace/public/pm/premium-shell.js +12 -4
- package/workspace/public/pm/premium-vw-ctx.js +16 -2
- package/workspace/public/pm/premium-vw-doc-model.js +11 -0
- package/workspace/public/pm/premium-vw-doc.css +2 -0
- package/workspace/public/pm/premium-vw-doc.js +8 -2
- package/workspace/public/pm/premium.css +14 -0
- package/workspace/public/pm/program-charter.js +2 -1
- package/workspace/public/pm/session-rail.js +12 -5
- package/workspace/public/premium-rec.html +1 -1
- package/workspace/skills/morning-brief.skill +2 -1
- package/workspace/skills/sources-read.skill +1 -0
- package/workspace/task-views-test.js +10 -1
- package/workspace/test-lists/adler-followups.json +9 -0
- package/workspace/test-lists/batch17-adler-moments.json +13 -0
|
@@ -104,6 +104,26 @@ const second = (k) => [
|
|
|
104
104
|
ok('C6 no page error at 1280', errs.length === 0, errs.join(' | '));
|
|
105
105
|
await ctx.close(); }
|
|
106
106
|
|
|
107
|
+
{ const { p, ctx, errs, conv } = await open(1280); // C7: what Claude only read folds into "+N read" (batch 17 item 5)
|
|
108
|
+
await sleep(1500);
|
|
109
|
+
const reads = ['notes/a.md', 'notes/b.md', 'notes/c.md'];
|
|
110
|
+
conv.messages = [...first(), { role: 'user', text: 'Sum up the notes', at: '2026-10-21T08:02:00Z' },
|
|
111
|
+
{ role: 'tool', tools: { Read: 3, Write: 1 }, calls: [...reads.map((t) => ({ tool: 'Read', target: t })), { tool: 'Write', target: 'notes/summary.md' }], at: '2026-10-21T08:02:10Z' },
|
|
112
|
+
{ role: 'assistant', text: 'I summed them up.', at: '2026-10-21T08:02:20Z' }];
|
|
113
|
+
const fold = () => p.evaluate(() => { const c = [...document.querySelectorAll('#hmLog .ctxc[role=list]')].pop(); if (!c) return null; const d = c.querySelector('details.ctxmore'); const vis = [...c.querySelectorAll('.ctxchip')].filter((b) => b.getBoundingClientRect().height > 0).map((b) => b.querySelector('b').textContent); return { vis, more: d ? d.querySelector('summary').textContent : null, open: !!(d && d.open), n: document.querySelectorAll('#hmLog .ctxc[role=list]').length }; });
|
|
114
|
+
const f0 = await until(async () => { const v = await fold(); return v && v.n >= 2 && v.more ? v : null; }, 6000) || await fold();
|
|
115
|
+
ok('C7 three files Claude only read fold into "+3 read"; the file it wrote stays in sight', !!f0 && JSON.stringify(f0.vis) === JSON.stringify(['summary.md']) && f0.more === '+3 read', JSON.stringify(f0));
|
|
116
|
+
ok('C7 the first answer\'s one read file is not folded', JSON.stringify((await p.evaluate(look)).chips[0]) === JSON.stringify(['file:signup-drop.md*', 'file:signup-fix.md']));
|
|
117
|
+
await p.click('#hmLog details.ctxmore > summary');
|
|
118
|
+
const f1 = await fold();
|
|
119
|
+
ok('C7 a press on "+3 read" shows the three files in the row', !!f1 && f1.open && JSON.stringify(f1.vis) === JSON.stringify(['summary.md', 'a.md', 'b.md', 'c.md']), JSON.stringify(f1));
|
|
120
|
+
conv.messages = [...conv.messages, { role: 'user', text: 'Thanks', at: '2026-10-21T08:03:00Z' }];
|
|
121
|
+
await sleep(2600);
|
|
122
|
+
const f2 = await fold();
|
|
123
|
+
ok('C7 it stays open when the conversation redraws', !!f2 && f2.open, JSON.stringify(f2));
|
|
124
|
+
ok('C7 no page error', errs.length === 0, errs.join(' | '));
|
|
125
|
+
await ctx.close(); }
|
|
126
|
+
|
|
107
127
|
for (const scheme of ['light', 'dark']) {
|
|
108
128
|
const { p, ctx, errs, conv } = await open(390, scheme);
|
|
109
129
|
await sleep(2500);
|
|
@@ -15,6 +15,7 @@ import { pmPost } from './http.js';
|
|
|
15
15
|
import { $, $$, esc } from './premium-shell.js';
|
|
16
16
|
import * as Pop from './bd-pop.js';
|
|
17
17
|
import { avatar } from './bd-views.js';
|
|
18
|
+
import { adler } from './cozy-adler.js'; // Adler heads the New asks (batch 17 item 4-A, canvas AdM2 New asks)
|
|
18
19
|
|
|
19
20
|
let A = null; // the page: { M(), load(), say(msg, undo?), panel(html, from, cls), close(), rowOf(key), openIni(r), openDoc(path), anchors(ws, board), programs(), reloadPrograms() }
|
|
20
21
|
export function init(api) { A = api; }
|
|
@@ -57,10 +58,12 @@ function unsureHtml(L) {
|
|
|
57
58
|
function asksHtml() {
|
|
58
59
|
const L = asksOf(), phone = matchMedia('(max-width: 720px)').matches;
|
|
59
60
|
if (M().board.self) return '<p class="bd-h3">New asks</p><p class="bd-amut">PMOS-self has no ask source. New work starts at the pmos-router skill.</p>';
|
|
60
|
-
|
|
61
|
+
// AdM2: Adler heads the list in its mood: needs you while asks wait, calm when none does, honest when they could not be read
|
|
62
|
+
const face = (mood) => `<span class="bd-aface" aria-hidden="true">${adler(mood, 36, { label: false })}</span>`;
|
|
63
|
+
if (M().asks == null || M().asks.missing) return `<div class="bd-phead">${face('honest')}<p class="bd-h3">New asks</p></div><p class="bd-amut">The new asks could not be read, so none is shown.</p>`;
|
|
61
64
|
const sure = L.filter((a) => !(a.products || []).length || picked[a.id]), unsure = L.filter((a) => (a.products || []).length && !picked[a.id]);
|
|
62
65
|
const src = [...new Set(L.map((a) => a.source).filter(Boolean))];
|
|
63
|
-
const head = `<div class="bd-phead"
|
|
66
|
+
const head = `<div class="bd-phead">${face(L.length ? 'needs-you' : 'handled')}<p class="bd-h3" id="hAsks">${L.length} new ${L.length === 1 ? 'ask' : 'asks'}</p>${src.length ? `<span class="bd-amut">${M().board.all ? 'Across products' : 'For ' + esc(M().board.name || 'this board')} · from ${esc(src.slice(0, 3).join(', ').toLowerCase())}</span>` : ''}</div>`;
|
|
64
67
|
if (!L.length) return head + '<p class="bd-amut">No new ask waits for triage.</p>';
|
|
65
68
|
return head + `<div class="bd-acards">${sure.map((a, i) => askCard(a, i, phone)).join('')}</div>` + unsureHtml(unsure);
|
|
66
69
|
}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* · Nothing to show (Filter = None, nothing pinned): no lane at all.
|
|
14
14
|
* Pure apart from the remembered fold and wire(), which hooks the hover and the fold onto the Board's body. */
|
|
15
15
|
import { shownMs, msMode } from './bd-pins.js';
|
|
16
|
+
import { faceOr } from './cozy-adler.js'; // Adler once in the lane's header when a delivery is missed (batch 17 item 4-A, canvas AdM2)
|
|
16
17
|
const TICK = '<svg aria-hidden="true" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l5 5 9-10"/></svg>'; // the delivered mark, drawn (conformance R28-13: no glyph controls)
|
|
17
18
|
|
|
18
19
|
const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
@@ -161,6 +162,14 @@ function foldHtml(E, now) {
|
|
|
161
162
|
return `<div class="dl-fold">${next}${rest}${none}</div>`;
|
|
162
163
|
}
|
|
163
164
|
|
|
165
|
+
/** AdM2 "Deliveries lane · missed": once in the lane's header, never on an entry or a ◇. The honest S face stands where the flag stood and
|
|
166
|
+
* says the missed ones in its hover; with nothing missed the flag stays. */
|
|
167
|
+
export function missedWords(E) {
|
|
168
|
+
const L = E.filter((x) => x.late);
|
|
169
|
+
return L.length ? 'Missed: ' + L.slice(0, 3).map((x) => x.name + ' was due ' + md(x.date)).join('; ') + (L.length > 3 ? '; and ' + (L.length - 3) + ' more' : '') + '.' : '';
|
|
170
|
+
}
|
|
171
|
+
const laneMark = (E) => { const w = missedWords(E); return w ? `<span class="dl-ic dl-ad" title="${esc(w)}">${faceOr('honest', 's', SV(FLAG), { label: false })}</span>` : `<span class="dl-ic">${SV(FLAG)}</span>`; };
|
|
172
|
+
|
|
164
173
|
/** The phone's card (XcalmA6Phone): "Next deliveries · N missed", the next 3 (missed first), and All (the list by date). */
|
|
165
174
|
function phoneHtml(E, now) {
|
|
166
175
|
const today = midnight(now), missed = E.filter((x) => x.late), ahead = E.filter((x) => !x.done && !x.late && x.date >= today);
|
|
@@ -168,7 +177,7 @@ function phoneHtml(E, now) {
|
|
|
168
177
|
if (!L.length) return '';
|
|
169
178
|
const all = E.filter((x) => !x.done);
|
|
170
179
|
const line = (x) => `<button type="button" class="dl-pl"${attrs(x)} aria-label="${esc(hoverOf(x, now).replace(/\n/g, '. '))}"><small class="${toneOf(x)}">${esc(dateWords(x, now))}</small><b>${x.prog ? `<i class="dl-pg">${SV(PROG)}</i>` : ''}<span>${esc(x.name)}</span></b></button>`;
|
|
171
|
-
return `<section class="dl-ph" aria-label="Next deliveries"><div class="dl-phh"
|
|
180
|
+
return `<section class="dl-ph" aria-label="Next deliveries"><div class="dl-phh">${missed.length ? laneMark(E) : ''}<b>Next deliveries</b>${missed.length ? `<span class="late">· ${missed.length} missed</span>` : ''}<button type="button" class="dl-all" data-ms-lane="${listData(all)}" data-lane-name="Deliveries" aria-haspopup="dialog" aria-label="All deliveries">All</button></div>${L.map(line).join('')}</section>`;
|
|
172
181
|
}
|
|
173
182
|
|
|
174
183
|
/** The lane: the hook pm/bd-span.js calls ({ W, X, rows, groups, now, phone }), with o: { span, progState, mode }. '' when nothing lands. */
|
|
@@ -179,7 +188,7 @@ export function laneHtml(c, o = {}) {
|
|
|
179
188
|
if (!E.length) return '';
|
|
180
189
|
if (c.phone) return phoneHtml(E, now);
|
|
181
190
|
const shut = folded();
|
|
182
|
-
const name = `<div class="tg-n dl-n"
|
|
191
|
+
const name = `<div class="tg-n dl-n">${laneMark(E)}<span class="dl-t"><b>Deliveries</b>${shut ? '' : '<small>What lands when</small>'}</span><button type="button" class="dl-fb" data-dl-fold aria-expanded="${!shut}" aria-label="${shut ? 'Open the Deliveries lane' : 'Fold the Deliveries lane to one line'}">${SV(shut ? CHR : CHD)}</button></div>`;
|
|
183
192
|
const body = shut ? foldHtml(E, now) : columnsOf(c.W, o.span).map((col) => columnHtml(col, E, now, c.X, o.span)).join('');
|
|
184
193
|
return `<div class="tg-r tg-dl${shut ? ' shut' : ''}" role="region" aria-label="Deliveries, what lands when">${name}<div class="tg-p dl-p">${body}</div></div>`;
|
|
185
194
|
}
|
|
@@ -79,9 +79,15 @@ html.ad-still .env-leaf { opacity: 0; }
|
|
|
79
79
|
.env-steam, .env-z, .env-drop { opacity: .6; }
|
|
80
80
|
.env-leaf { opacity: 0; }
|
|
81
81
|
}
|
|
82
|
-
svg.ad-svg.am { stroke: none; }
|
|
82
|
+
svg.ad-svg.am, svg.ad-scene, svg.ad-scene svg.am { stroke: none; } /* a page's own `svg { stroke: currentColor }` (the Board's) never outlines him */
|
|
83
83
|
/* Your impact (batch 16 item 7, GmA1Home): the newest leaf on the sprout grows once, on a real event; still under reduced motion and Still */
|
|
84
84
|
.ad-svg .ad-gw { animation: adGw 1.4s ease-out 1 both; transform-box: fill-box; transform-origin: right bottom; }
|
|
85
85
|
@keyframes adGw { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
|
|
86
86
|
@media (prefers-reduced-motion: reduce) { .ad-svg .ad-gw { animation: none; } }
|
|
87
87
|
html.ad-still .ad-svg .ad-gw { animation: none; }
|
|
88
|
+
|
|
89
|
+
/* pull to refresh (batch 17 item 4-B, AdP2; pm/cozy-pull.js): his head rises over the bottom edge as the finger pulls, glasses on while it reads */
|
|
90
|
+
.cz-pull { position: relative; height: var(--cz-pull, 0px); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; gap: 10px; border-bottom: 2px solid var(--cz-hair); margin-bottom: 8px; }
|
|
91
|
+
.cz-pull-ad { display: inline-flex; transform: translateY(max(0px, calc(44px - var(--cz-pull, 0px)))); }
|
|
92
|
+
.cz-pull-t { font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); padding-bottom: 8px; }
|
|
93
|
+
.cz-pull-t:empty { display: none; }
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* mountToastFaces(doc) every #toast gets the S face in the mood of its words
|
|
11
11
|
* prefs(), loadPrefs(), savePref(key, value) Settings > Adler (AdM5): adler.amount, adler.motion, adler.celebrate, adler.quiet
|
|
12
12
|
* asleep(now), mayCelebrate(now), celebrated(now) the after-22:00 rule and "celebrate at most once a week"
|
|
13
|
+
* celebrateOnce(key, now) a real win celebrates on its first view only (the delivered milestone in the Board panel, AdH2)
|
|
14
|
+
* faceOr(mood, size, icon, o) his face where a plain icon stood; the icon stays with Settings > Adler > Off (batch 17 item 4-A)
|
|
13
15
|
*
|
|
14
16
|
* The binding rules (design-principles.md, "The Adler rule"): the mood comes from real state only, and no trigger means resting or handled;
|
|
15
17
|
* one Adler per screen; never inside data (rows, bars, charts, KR rows, reports, connector lists); he never replaces a row's dot or box;
|
|
@@ -162,6 +164,18 @@ const weekOf = (now) => { const d = new Date(now); d.setHours(0, 0, 0, 0); d.set
|
|
|
162
164
|
/** Celebrating: only for a real event, at most once a week, and never with Celebrations: Never. */
|
|
163
165
|
export const mayCelebrate = (now = Date.now()) => P['adler.celebrate'] === 'real' && store.get('pmos.adler.joy') !== weekOf(now);
|
|
164
166
|
export const celebrated = (now = Date.now()) => store.set('pmos.adler.joy', weekOf(now));
|
|
167
|
+
/** A real win shows once (AdH2, AdM2 "Milestone delivered"): true on the first view of `key`, and only when a celebration is allowed this
|
|
168
|
+
* week. The page keeps the answer while it lives, so a redraw does not turn him calm mid-view; every later view is calm. */
|
|
169
|
+
const joyNow = new Set();
|
|
170
|
+
export function celebrateOnce(key, now = Date.now()) {
|
|
171
|
+
const k = 'pmos.adler.once.' + key;
|
|
172
|
+
if (joyNow.has(k)) return true;
|
|
173
|
+
if (store.get(k)) return false;
|
|
174
|
+
store.set(k, '1');
|
|
175
|
+
if (!mayCelebrate(now)) return false;
|
|
176
|
+
celebrated(now); joyNow.add(k);
|
|
177
|
+
return true;
|
|
178
|
+
}
|
|
165
179
|
/** The day's first open of the morning scene (AdP1 vs AdB1: the scene on the first open of the day, the M face after). */
|
|
166
180
|
export function firstOpenToday(key = 'day', now = Date.now()) { const k = 'pmos.adler.first.' + key, d = new Date(now).toDateString(); if (store.get(k) === d) return false; store.set(k, d); return true; }
|
|
167
181
|
|
|
@@ -198,6 +212,9 @@ export function adler(mood, size = 'm', o = {}) {
|
|
|
198
212
|
const w = Math.round(px * 200 / 252);
|
|
199
213
|
return `<svg class="${cls} ad-fig" width="${w}" height="${px}" viewBox="0 0 200 252" overflow="visible" ${labelAttr(o, mood, extra)}>${defs(p)}<ellipse cx="100" cy="246" rx="62" ry="7" class="${F('shadow')}" opacity=".16" filter="url(#${p}b)"/><g class="ad-br">${full(m, p, o.prop)}</g></svg>`;
|
|
200
214
|
}
|
|
215
|
+
/** His face where a plain icon stood (the Jira chip, the charter's check line, the Deliveries lane): with Settings > Adler > Off the icon
|
|
216
|
+
* stays, so the press still says what it does. */
|
|
217
|
+
export const faceOr = (mood, size, icon, o = {}) => (P['adler.amount'] === 'off' ? icon : adler(mood, size, o));
|
|
201
218
|
/** AdP6: only his ears and the top of his head, peeking over the floating button. */
|
|
202
219
|
export function adlerPeek(o = {}) {
|
|
203
220
|
addCss();
|
|
@@ -102,6 +102,8 @@ body.bd-page main.bd-main { position: relative; max-width: none; margin: 16px; p
|
|
|
102
102
|
.bd-chipset { display: contents; }
|
|
103
103
|
.bd-chip { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--cz-hair); background: var(--cz-card); display: inline-flex; align-items: center; gap: 6px; font: 600 var(--fs-2) var(--cz-sans); color: var(--cz-ink2); white-space: nowrap; cursor: pointer; text-decoration: none; flex: none; }
|
|
104
104
|
.bd-chip:hover { background: var(--cz-well); }
|
|
105
|
+
.bd-adc { padding-left: 4px; } /* the Jira chip's Adler face (batch 17 item 4-A) sits where the refresh icon stood */
|
|
106
|
+
.bd-chip.bd-adc svg.ad-svg { width: 24px; height: 24px; }
|
|
105
107
|
.bd-chip svg { width: 14px; height: 14px; flex: none; }
|
|
106
108
|
.bd-chip b { font-weight: 800; color: var(--cz-ink); }
|
|
107
109
|
.bd-chip.gh { border-color: transparent; background: transparent; padding: 0 8px; font-weight: 800; }
|
|
@@ -500,6 +502,8 @@ button.tg-n:hover b { color: var(--cz-blueink); }
|
|
|
500
502
|
.tg-dl.shut .dl-n { align-items: center; padding-top: 8px; }
|
|
501
503
|
.dl-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--cz-well); display: grid; place-items: center; color: var(--cz-ink2); }
|
|
502
504
|
.dl-ic svg, .dl-fb svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
505
|
+
.dl-ad { background: none; } /* a missed delivery: Adler's honest face stands where the flag stood (batch 17 item 4-A) */
|
|
506
|
+
.dl-ic.dl-ad svg.ad-svg { width: 24px; height: 24px; fill: initial; stroke: none; }
|
|
503
507
|
.dl-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
|
|
504
508
|
.dl-t b { font-size: var(--fs-3); font-weight: 800; }
|
|
505
509
|
.dl-t small { font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
@@ -832,6 +836,7 @@ a.bd-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration:
|
|
|
832
836
|
/* the row menu, the asks, the trend */
|
|
833
837
|
.bd-menu .bd-mlbl:first-child { color: var(--cz-ink); font-size: var(--fs-2); }
|
|
834
838
|
.bd-phead { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px 6px; flex-wrap: wrap; }
|
|
839
|
+
.bd-aface { display: inline-flex; align-self: center; flex: none; } /* Adler heads New asks (batch 17 item 4-A) */
|
|
835
840
|
.bd-acards { display: flex; flex-direction: column; gap: 8px; padding: 0 4px 4px; }
|
|
836
841
|
.bd-acard { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--cz-hair); background: var(--cz-card); font-size: var(--fs-3); }
|
|
837
842
|
.bd-acard.row { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; padding: 10px 12px; }
|
|
@@ -78,6 +78,11 @@
|
|
|
78
78
|
.ev-fd { z-index: 2; }
|
|
79
79
|
.ev-fd { position: absolute; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--cz-card); box-sizing: content-box; pointer-events: none; }
|
|
80
80
|
.ev-fd[hidden] { display: none; }
|
|
81
|
+
/* Adler's ears over the closed button when a call is the PM's (batch 17 item 4-B, AdP6): a phone only; they never take a press */
|
|
82
|
+
.cz-ears { position: absolute; bottom: 50px; left: 6px; width: 44px; height: 22px; z-index: 0; pointer-events: none; }
|
|
83
|
+
.cz-ears[hidden] { display: none; }
|
|
84
|
+
@media (min-width: 761px) { .cz-ears { display: none; } }
|
|
85
|
+
@media (max-width: 760px) { .cz-ears { left: auto; right: 6px; } }
|
|
81
86
|
.ev-fd.you { left: 4px; background: var(--cz-blue); }
|
|
82
87
|
.ev-fd.risk { right: 2px; background: var(--cz-dot-risk); }
|
|
83
88
|
@media (max-width: 760px) {
|
|
@@ -207,6 +212,9 @@
|
|
|
207
212
|
.ev-st .ev-pick { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--cz-well); font: inherit; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); border: 0; cursor: pointer; }
|
|
208
213
|
.ev-st .ev-pick svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
|
|
209
214
|
.ev-st .ev-upd { display: flex; align-items: center; gap: 12px; margin-top: auto; }
|
|
215
|
+
/* Adler's moments in Settings (batch 17 item 4-B, AdM4): one face per section; a failure line takes the honest face */
|
|
216
|
+
.ev-st .ev-ad { display: inline-flex; align-items: center; flex: none; }
|
|
217
|
+
.ev-st .ev-say.honest { display: flex; align-items: center; gap: 8px; }
|
|
210
218
|
.ev-st .ev-upd p { flex: 1; margin: 0; }
|
|
211
219
|
.ev-st .ev-sw { height: 28px; min-width: 52px; border-radius: 999px; border: 0; background: var(--cz-well2); color: var(--cz-ink3); font: inherit; font-size: var(--fs-2); font-weight: 700; cursor: pointer; }
|
|
212
220
|
.ev-st .ev-sw[aria-checked="true"] { background: var(--cz-bluebg); color: var(--cz-blueink); }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* pm/cozy-home-rows.css — the two rows at the top of Home and the Mentions Viewer (Viewer kit; canvas
|
|
1
|
+
/* pm/cozy-home-rows.css — the two rows at the top of Home and the Mentions Viewer (Viewer kit; canvas MnA1 to MnA6 "Mentions, calm", XvARecHome).
|
|
2
2
|
* Loaded once by home-mentions.js. Token variables only (cozy.css). The rows reuse Home's row (.hv-card, .hv-r, .hm-rm). */
|
|
3
3
|
|
|
4
4
|
/* ── the rows on Home ── */
|
|
@@ -24,69 +24,95 @@
|
|
|
24
24
|
@keyframes hr-crit { 0% { transform: scale(1); opacity: .4; } 60% { transform: scale(2.2); opacity: 0; } 100% { transform: scale(2.2); opacity: 0; } }
|
|
25
25
|
@media (prefers-reduced-motion: reduce) { .hr-rec-card .hr-rdot::after { animation: none; } }
|
|
26
26
|
|
|
27
|
-
/* ── the Mentions Viewer ── */
|
|
28
|
-
.hr-vb { display: flex; flex-direction: column; gap: 12px; }
|
|
29
|
-
.hr-ml { display: flex; flex-direction: column; }
|
|
30
|
-
.hr-mi { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: var(--fs-3); color: var(--cz-ink); text-align: left; cursor: pointer; }
|
|
31
|
-
.hr-mi + .hr-mi { border-top: 1px solid var(--cz-hair); border-radius: 0; }
|
|
32
|
-
.hr-mi:hover { background: color-mix(in srgb, var(--cz-well) 45%, var(--cz-card)); }
|
|
33
|
-
.hr-mi:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; border-radius: 12px; }
|
|
34
|
-
.hr-mdot { width: 8px; height: 8px; border-radius: 50%; background: var(--cz-blue); flex: none; }
|
|
35
|
-
.hr-mdot.read { background: transparent; }
|
|
36
|
-
.hr-mw { flex: 1; min-width: 0; }
|
|
37
|
-
.hr-mw b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
38
|
-
.hr-mw span { display: block; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
39
|
-
.hr-mcv { color: var(--cz-ink3); display: inline-flex; flex: none; }
|
|
40
|
-
|
|
41
|
-
/* the source excerpt: the thread, the ticket, the passage or the mail, with the mention outlined */
|
|
42
|
-
.hr-thr, .hr-tkt { display: flex; flex-direction: column; gap: 8px; background: var(--cz-well); border-radius: 16px; padding: 12px; }
|
|
43
|
-
.hr-msg { display: flex; gap: 10px; font-size: var(--fs-3); line-height: 1.45; }
|
|
44
|
-
.hr-msg.me { background: var(--cz-card); border-radius: 12px; padding: 8px; box-shadow: 0 0 0 1.5px var(--cz-c-9bc7f4); }
|
|
45
|
-
.hr-av { width: 28px; height: 28px; border-radius: 50%; background: var(--cz-well2); color: var(--cz-ink2); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-1); font-weight: 800; flex: none; }
|
|
46
|
-
.hr-w { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
|
|
47
|
-
.hr-w small { font-size: var(--fs-1); color: var(--cz-ink3); }
|
|
48
|
-
.hr-w small b { color: var(--cz-ink); }
|
|
49
|
-
.hr-kv { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
50
|
-
.hr-kv span { font-size: var(--fs-2); font-weight: 700; background: var(--cz-card); border-radius: 8px; padding: 3px 8px; box-shadow: 0 0 0 1px var(--cz-hair); }
|
|
51
|
-
.hr-mail { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
52
|
-
.hr-mail b { color: var(--cz-ink); font-size: var(--fs-3); }
|
|
53
|
-
.hr-quote { border-left: 3px solid var(--cz-c-9bc7f4); padding: 4px 0 4px 12px; font-size: var(--fs-2); line-height: 1.5; color: var(--cz-ink2); overflow-wrap: anywhere; }
|
|
54
|
-
.hr-chk { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-3); }
|
|
55
|
-
.hr-chk > b { font-size: var(--fs-2); color: var(--cz-ink2); }
|
|
56
|
-
.hr-cl { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
|
|
57
|
-
.hr-ok { color: var(--cz-ok); flex: none; display: inline-flex; padding-top: 1px; }
|
|
58
|
-
|
|
59
|
-
/* ── Mentions A+ (XmsMentionsGrill, XmsDeskList, XmsDeskOne) ── */
|
|
60
|
-
.hr-sum { background: color-mix(in srgb, var(--cz-well) 60%, var(--cz-card)); border-radius: 20px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
|
|
61
|
-
.hr-sumb { display: flex; align-items: center; gap: 12px; }
|
|
62
|
-
.hr-sumb .czs-p { flex: 1; min-width: 0; }
|
|
63
|
-
.hr-old { color: var(--cz-risk); font-weight: 700; }
|
|
27
|
+
/* ── the Mentions Viewer: the round solid press and the 30-day question (kept from Mentions A+) ── */
|
|
64
28
|
.hr-rp { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--cz-solid); color: var(--cz-onsolid); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
|
|
65
29
|
.hr-rp:focus-visible, .hr-ckb:focus-visible, .hr-all:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
66
|
-
.hr-mi.hr-w8 { align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
|
|
67
|
-
.hr-mi .hr-mw > span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
|
|
68
|
-
.hr-mw b { display: flex; align-items: center; gap: 6px; }
|
|
69
|
-
.hr-cn { font-style: normal; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink2); font-size: var(--fs-1); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
|
|
70
|
-
.hr-age { flex: none; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); white-space: nowrap; }
|
|
71
|
-
.hr-age.late { color: var(--cz-risk); }
|
|
72
|
-
.hr-dr { font-style: normal; font-weight: 700; color: var(--cz-blueink); }
|
|
73
|
-
.hr-nc { font-style: normal; color: var(--cz-ink3); }
|
|
74
|
-
.hr-st { color: var(--cz-ink3); }
|
|
75
|
-
.hr-rd .hr-mw b { color: var(--cz-ink2); }
|
|
76
|
-
.hr-day { margin: 10px 10px 2px; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3); }
|
|
77
|
-
.hr-day:first-child { margin-top: 2px; }
|
|
78
|
-
.hr-all { display: block; width: 100%; min-height: 44px; border: 0; border-top: 1px solid var(--cz-hair); background: none; font: inherit; font-size: var(--fs-3); font-weight: 800; color: var(--cz-blueink); cursor: pointer; }
|
|
79
30
|
.hr-ck { display: flex; align-items: center; gap: 6px; margin: 0 4px 8px; padding: 4px 4px 4px 12px; border-radius: 12px; background: var(--cz-riskbg); color: var(--cz-risk); font-size: var(--fs-3); font-weight: 700; }
|
|
80
31
|
.hr-ck span { flex: 1; min-width: 0; }
|
|
81
32
|
.hr-ckb { width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--cz-card); color: var(--cz-ink2); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
.
|
|
85
|
-
.
|
|
86
|
-
.
|
|
87
|
-
.
|
|
88
|
-
.
|
|
89
|
-
.
|
|
90
|
-
.
|
|
91
|
-
.
|
|
92
|
-
.
|
|
33
|
+
|
|
34
|
+
/* ── Mentions, calm (batch 16 item 12; canvas MnA1 to MnA6): one row per conversation, three folds, the conversation ── */
|
|
35
|
+
.mn-vb { display: flex; flex-direction: column; gap: 12px; }
|
|
36
|
+
.mn-open-card { display: flex; gap: 14px; align-items: flex-start; background: var(--cz-card); border-radius: 20px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--cz-hair); }
|
|
37
|
+
.mn-open-card .ad-svg, .mn-open-card .ad-dot { flex: none; margin-top: 2px; }
|
|
38
|
+
.mn-oc { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
|
|
39
|
+
.mn-oc p { margin: 0; font-size: var(--fs-4); line-height: 1.5; color: var(--cz-ink); }
|
|
40
|
+
.mn-acts { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
|
|
41
|
+
.mn-acts.sp { justify-content: space-between; flex-wrap: wrap; }
|
|
42
|
+
.mn-acts.sp > span { display: inline-flex; gap: 8px; }
|
|
43
|
+
.mn-ib { background: var(--cz-well); }
|
|
44
|
+
.mn-sb { width: 40px; height: 40px; }
|
|
45
|
+
.mn-list { display: flex; flex-direction: column; }
|
|
46
|
+
.mn-row { display: flex; flex-direction: column; gap: 8px; padding: 2px 0 10px; }
|
|
47
|
+
.mn-row + .mn-row, .mn-list > .mn-more { border-top: 1px solid var(--cz-hair); }
|
|
48
|
+
.mn-row.sel .mn-open { background: var(--cz-bluebg); }
|
|
49
|
+
.mn-open { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 10px 6px 0; border: 0; border-radius: 14px; background: none; font: inherit; color: var(--cz-ink); text-align: left; cursor: pointer; }
|
|
50
|
+
.mn-row.sel .mn-open { padding-bottom: 10px; }
|
|
51
|
+
.mn-open:hover { background: color-mix(in srgb, var(--cz-well) 45%, transparent); }
|
|
52
|
+
.mn-open:focus-visible, .mn-more:focus-visible, .mn-all:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
53
|
+
.mn-av { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--cz-well2); color: var(--cz-ink2); display: inline-grid; place-items: center; font-size: var(--fs-1); font-weight: 800; flex: none; }
|
|
54
|
+
.mn-bg { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--cz-card); color: var(--cz-ink3); display: grid; place-items: center; box-shadow: 0 0 0 1.5px var(--cz-card); }
|
|
55
|
+
.mn-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
|
|
56
|
+
.mn-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
|
|
57
|
+
.mn-nm { flex: none; max-width: 60%; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
58
|
+
.mn-pl { flex: 0 1 auto; min-width: 0; font-size: var(--fs-2); color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
59
|
+
.mn-r { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex: none; }
|
|
60
|
+
.mn-n { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink2); font-size: var(--fs-1); font-weight: 800; display: inline-grid; place-items: center; }
|
|
61
|
+
.mn-age { font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); white-space: nowrap; }
|
|
62
|
+
.mn-age.late { color: var(--cz-risk); }
|
|
63
|
+
.mn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cz-blue); }
|
|
64
|
+
.mn-gist { font-size: var(--fs-3); line-height: 1.45; color: var(--cz-ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
|
|
65
|
+
.mn-gist em { font-style: normal; font-weight: 700; color: var(--cz-blueink); }
|
|
66
|
+
.mn-tag { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
67
|
+
.mn-row > .mn-dr, .mn-row > .mn-sent, .mn-row > .mn-acts, .mn-row > .hr-ck { margin-left: 54px; }
|
|
68
|
+
.mn-dr { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 14px; background: var(--cz-bluebg); font-size: var(--fs-3); line-height: 1.5; color: var(--cz-ink); }
|
|
69
|
+
.mn-dr p { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
70
|
+
.mn-dr.no { background: var(--cz-well); }
|
|
71
|
+
.mn-dr.in { background: var(--cz-card); }
|
|
72
|
+
.mn-drh { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-2); font-weight: 700; color: var(--cz-blueink); white-space: normal !important; }
|
|
73
|
+
.mn-dr.no .mn-drh { color: var(--cz-ink2); }
|
|
74
|
+
.mn-sent { margin: 0; display: flex; align-items: center; gap: 6px; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
75
|
+
.mn-more { align-self: stretch; text-align: left; padding: 12px 6px 4px 54px; border: 0; background: none; font: inherit; font-size: var(--fs-3); font-weight: 700; color: var(--cz-blueink); cursor: pointer; }
|
|
76
|
+
.mn-all { width: 36px; height: 36px; border: 0; border-radius: 999px; background: none; color: var(--cz-ink2); display: inline-grid; place-items: center; cursor: pointer; }
|
|
77
|
+
.mn-stk { display: inline-flex; align-items: center; height: 36px; padding-right: 6px; }
|
|
78
|
+
.czs-sec.t:has(.mn-stk) > .czs-row { padding-right: 112px; }
|
|
79
|
+
.mn-stk i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--cz-well2); color: var(--cz-ink2); font-size: var(--fs-1); font-weight: 800; display: inline-grid; place-items: center; box-shadow: 0 0 0 2px var(--cz-card); }
|
|
80
|
+
.mn-stk i + i { margin-left: -6px; }
|
|
81
|
+
.mn-gap { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--cz-hair); font-size: var(--fs-2); line-height: 1.45; color: var(--cz-ink2); }
|
|
82
|
+
.mn-gap p { margin: 0; flex: 1; min-width: 0; }
|
|
83
|
+
.mn-gap b { color: var(--cz-ink); }
|
|
84
|
+
.mn-foot { margin: 4px 0 0; font-size: var(--fs-1); color: var(--cz-ink3); }
|
|
85
|
+
/* one conversation */
|
|
86
|
+
.mn-ask { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 20px; background: var(--cz-bluebg); }
|
|
87
|
+
.mn-ask.calm { background: color-mix(in srgb, var(--cz-well) 60%, var(--cz-card)); }
|
|
88
|
+
.mn-ak { margin: 0; font-size: var(--fs-2); font-weight: 700; color: var(--cz-blueink); }
|
|
89
|
+
.mn-ak.late { color: var(--cz-risk); }
|
|
90
|
+
.mn-ask.calm .mn-ak { color: var(--cz-ink3); }
|
|
91
|
+
.mn-aq { margin: 0; font-size: var(--fs-3); line-height: 1.5; color: var(--cz-ink); overflow-wrap: anywhere; }
|
|
92
|
+
.mn-ask .mn-ib { background: var(--cz-card); }
|
|
93
|
+
.mn-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 20px; background: var(--cz-card); box-shadow: 0 0 0 1px var(--cz-hair); font-size: var(--fs-3); line-height: 1.5; }
|
|
94
|
+
.mn-h { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--cz-blueink); }
|
|
95
|
+
.mn-h b { color: var(--cz-ink); }
|
|
96
|
+
.mn-st, .mn-fd { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
|
|
97
|
+
.mn-st li { display: flex; gap: 10px; align-items: flex-start; }
|
|
98
|
+
.mn-st li svg { flex: none; margin-top: 3px; color: var(--cz-blueink); }
|
|
99
|
+
.mn-st li.open svg { color: var(--cz-risk); }
|
|
100
|
+
.mn-fd { padding-left: 18px; list-style: disc; gap: 6px; }
|
|
101
|
+
.mn-watch { flex-direction: row; align-items: center; gap: 10px; }
|
|
102
|
+
.mn-watch > svg { flex: none; color: var(--cz-blueink); }
|
|
103
|
+
.mn-watch p { margin: 0; flex: 1; min-width: 0; }
|
|
104
|
+
.mn-wl { margin: 0; display: flex; gap: 8px; align-items: center; font-size: var(--fs-2); color: var(--cz-ink2); }
|
|
105
|
+
.mn-wl svg { color: var(--cz-blueink); flex: none; }
|
|
106
|
+
.mn-thr { display: flex; flex-direction: column; gap: 8px; }
|
|
107
|
+
.mn-day { margin: 6px 0 0; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); }
|
|
108
|
+
.mn-msg { align-self: flex-start; max-width: 80%; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 14px; background: var(--cz-card); box-shadow: 0 0 0 1px var(--cz-hair); font-size: var(--fs-3); line-height: 1.45; overflow-wrap: anywhere; }
|
|
109
|
+
.mn-msg small { font-size: var(--fs-1); font-weight: 700; color: var(--cz-ink3); }
|
|
110
|
+
.mn-msg.me { align-self: flex-end; background: var(--cz-bluebg); box-shadow: none; }
|
|
111
|
+
/* the desktop: the list and the conversation side by side (MnA4) */
|
|
112
|
+
.mn-split { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
|
|
113
|
+
.mn-col { min-width: 0; }
|
|
114
|
+
.mn-conv { position: sticky; top: 0; }
|
|
115
|
+
.mn-ch { display: flex; align-items: center; gap: 12px; }
|
|
116
|
+
.mn-cht { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
117
|
+
.mn-cht b { font-size: var(--fs-4); }
|
|
118
|
+
.mn-cht small { font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
@@ -767,3 +767,10 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
|
|
|
767
767
|
.hm-av.hm-adler { width: 36px; height: 36px; background: none; border-radius: 0; overflow: visible; }
|
|
768
768
|
.hm-empty-ad { display: flex; flex-direction: column; align-items: center; gap: 8px; }
|
|
769
769
|
.hm-empty-ad p { margin: 0; }
|
|
770
|
+
.hm-chat .ctxmore { display: contents; }
|
|
771
|
+
.hm-chat .ctxmore > summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 12px; color: var(--cz-ink3); font-size: var(--fs-1); cursor: pointer; list-style: none; }
|
|
772
|
+
.hm-chat .ctxmore > summary::-webkit-details-marker { display: none; }
|
|
773
|
+
.hm-chat .ctxmore > summary:hover { color: var(--cz-ink); }
|
|
774
|
+
.hm-chat .ctxmore[open] > summary { display: none; }
|
|
775
|
+
.hm-chat .ctxmore > .ctxc { display: contents; }
|
|
776
|
+
.hm-chat .ctxmore:not([open]) > .ctxc { display: none; }
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
.cz-live:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
9
9
|
.lv-row:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
|
|
10
10
|
.cz-live .lv-g { display: inline-flex; align-items: center; gap: 6px; }
|
|
11
|
+
.cz-live .lv-ad { display: inline-flex; align-items: center; } /* Adler with headphones while the meeting records (AdM1) */
|
|
12
|
+
.cz-live .lv-ad .ad-sp { animation: none; }
|
|
11
13
|
.cz-live .lv-sp { width: 1px; height: 16px; background: var(--cz-hair); }
|
|
12
14
|
.cz-live .lv-ms { display: inline-flex; align-items: center; gap: 6px; }
|
|
13
15
|
|
|
@@ -13,11 +13,14 @@
|
|
|
13
13
|
* opts.go(item) → true the page opens the item itself (Home: the session's chat, the meeting); else the row's link is followed
|
|
14
14
|
* opts.open() → id the session open on this page now: its row is tinted
|
|
15
15
|
* Reads GET /api/live every 10 s while the page is shown, and on the cz:live event (Home sends it after the PM opens or answers a
|
|
16
|
-
* session); the recording comes from pm/rec-state.js. Nothing is written.
|
|
16
|
+
* session); the recording comes from pm/rec-state.js. Nothing is written.
|
|
17
|
+
* Adler (batch 17 item 4-B, AdM1 "Live recording pill", AdH5): while a meeting records, his S face with headphones follows the clock in the
|
|
18
|
+
* pill. The red dot stays: the face never replaces the row's mark. Paused, he is not shown (nobody is listening). */
|
|
17
19
|
import { onRecording } from './rec-state.js';
|
|
18
20
|
import { ownTab, bring } from './rec-tab-core.js';
|
|
19
21
|
import { liveItems, keepOrder, pillLabel, rowLabel, clock, elapsed } from './live-model.js';
|
|
20
|
-
import { wedgeHtml } from './ctx-wedge.js';
|
|
22
|
+
import { wedgeHtml } from './ctx-wedge.js';
|
|
23
|
+
import { adler } from './cozy-adler.js'; // the same context pie as Home's rows, before the time (batch 13 item 8)
|
|
21
24
|
|
|
22
25
|
const esc = (v) => String(v == null ? '' : v).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
23
26
|
const SHEET = new URL('./cozy-live-pill.css', import.meta.url).href;
|
|
@@ -67,7 +70,7 @@ export function mountLivePill(doc = document, opts = {}) {
|
|
|
67
70
|
}
|
|
68
71
|
function pillHtml(list) {
|
|
69
72
|
const r = list.find((x) => x.kind === 'rec'), rest = list.filter((x) => x.kind !== 'rec');
|
|
70
|
-
return (r ? `<span class="lv-g"><i class="lv-m rec${r.paused ? ' paused' : ''}"></i><span class="lv-tm${r.paused ? '' : ' rec'}">${esc(r.time)}</span
|
|
73
|
+
return (r ? `<span class="lv-g"><i class="lv-m rec${r.paused ? ' paused' : ''}"></i><span class="lv-tm${r.paused ? '' : ' rec'}">${esc(r.time)}</span>${r.paused ? '' : `<span class="lv-ad">${adler('thinking', 18, { label: false, prop: 'headphones', id: 'lvrec' })}</span>`}</span>${rest.length ? '<span class="lv-sp"></span>' : ''}` : '')
|
|
71
74
|
+ (rest.length ? `<span class="lv-ms">${rest.map((x) => markHtml(x.mark, false)).join('')}</span>` : '');
|
|
72
75
|
}
|
|
73
76
|
function draw() {
|
|
@@ -14,10 +14,13 @@
|
|
|
14
14
|
* The counts come from GET /api/news-for-you and GET /api/sources, read when the page opens and every two minutes while it is shown; each
|
|
15
15
|
* read of New for you is passed on as the event 'cz:news-for-you' (detail: the answer), so Home's Your day and Good morning follow it.
|
|
16
16
|
* Nothing here leads to the console, and nothing here writes.
|
|
17
|
+
* Adler's ears (batch 17 item 4-B, AdP6): on a phone, when a page says one or more calls are the PM's (the event 'cz:calls', detail
|
|
18
|
+
* { count }: Home sends it from Your move), his ears and the top of his head peek over the closed button. The button's name says it. No
|
|
19
|
+
* call, the menu open, a desk, Settings > Adler not Full, or after Quiet after: no ears (zero is silence).
|
|
17
20
|
*/
|
|
18
21
|
import { esc, svg, ICON, wsQ } from './cozy-evui.js';
|
|
19
22
|
import { fabLabel, staleOf } from './cozy-evmodel.js';
|
|
20
|
-
import { mountToastFaces, loadPrefs } from './cozy-adler.js'; // Adler (batch 16 item 2): every toast carries his S face; Settings > Adler is read once
|
|
23
|
+
import { mountToastFaces, loadPrefs, adlerPeek, asleep } from './cozy-adler.js'; // Adler (batch 16 item 2): every toast carries his S face; Settings > Adler is read once
|
|
21
24
|
|
|
22
25
|
export const PLACES = [
|
|
23
26
|
{ key: 'home', label: 'Home', href: '/premium.html', d: ICON.home },
|
|
@@ -27,7 +30,7 @@ export const PLACES = [
|
|
|
27
30
|
export { fabLabel };
|
|
28
31
|
const THEME_KEY = 'pmos.c3.theme';
|
|
29
32
|
const CSS = new URL('./cozy-ev.css', import.meta.url).href;
|
|
30
|
-
const N = { news: 0, stale: null, here: 'home' };
|
|
33
|
+
const N = { news: 0, stale: null, here: 'home', calls: 0 };
|
|
31
34
|
|
|
32
35
|
const store = { get(k) { try { return localStorage.getItem(k); } catch { return null; } }, set(k, v) { try { if (v) localStorage.setItem(k, v); else localStorage.removeItem(k); } catch { /* a private window */ } } };
|
|
33
36
|
/** The theme the PM picked on this device: light, dark or auto. */
|
|
@@ -62,6 +65,9 @@ function addCss(doc) {
|
|
|
62
65
|
}
|
|
63
66
|
async function getj(p) { try { const r = await fetch(p, { credentials: 'same-origin' }); return r.ok ? await r.json() : null; } catch { return null; } }
|
|
64
67
|
|
|
68
|
+
/** What the button adds to its name while the ears show: 'One call is yours' · '3 calls are yours'. */
|
|
69
|
+
export const callWords = (n) => (n === 1 ? 'One call is yours' : n + ' calls are yours');
|
|
70
|
+
|
|
65
71
|
/** Mount the menu once. `here` is home | board | insights. Returns the wrapper. */
|
|
66
72
|
export function mountNav(here, doc = document, opts = {}) {
|
|
67
73
|
const old = doc.getElementById('czNav'); if (old) return old;
|
|
@@ -75,7 +81,7 @@ export function mountNav(here, doc = document, opts = {}) {
|
|
|
75
81
|
w.innerHTML = '<div class="ev-scrim" id="czScrim" hidden></div>'
|
|
76
82
|
+ `<nav class="cz-fabm ev-menu" id="czMenu" aria-label="Menu" hidden></nav>`
|
|
77
83
|
+ `<button type="button" class="cz-fab" id="czFab" aria-controls="czMenu" aria-expanded="false" aria-label="${fabLabel(here, false)}">${svg(ICON.menu, 22)}</button>`
|
|
78
|
-
+ '<i class="ev-fd you" id="czFdYou" hidden></i><i class="ev-fd risk" id="czFdRisk" hidden></i>';
|
|
84
|
+
+ '<i class="ev-fd you" id="czFdYou" hidden></i><i class="ev-fd risk" id="czFdRisk" hidden></i><span class="cz-ears" id="czEars" aria-hidden="true" hidden></span>';
|
|
79
85
|
doc.body.appendChild(w);
|
|
80
86
|
mountToastFaces(doc); loadPrefs();
|
|
81
87
|
const fab = w.querySelector('#czFab'), menu = w.querySelector('#czMenu'), scrim = w.querySelector('#czScrim');
|
|
@@ -83,8 +89,13 @@ export function mountNav(here, doc = document, opts = {}) {
|
|
|
83
89
|
menu.innerHTML = menuHtml(here, { news: N.news, stale: N.stale });
|
|
84
90
|
w.querySelector('#czFdYou').hidden = !(N.news > 0) || !menu.hidden;
|
|
85
91
|
w.querySelector('#czFdRisk').hidden = !N.stale || !menu.hidden;
|
|
86
|
-
if (menu.hidden) fab.setAttribute('aria-label', fabLabel(here, false, N.stale, N.news));
|
|
92
|
+
if (menu.hidden) fab.setAttribute('aria-label', fabLabel(here, false, N.stale, N.news) + (earsOn() ? '. ' + callWords(N.calls) : ''));
|
|
93
|
+
drawEars();
|
|
87
94
|
};
|
|
95
|
+
// AdP6: the ears are drawn once and kept while the count stays above zero, so a redraw never replays them
|
|
96
|
+
const ears = w.querySelector('#czEars');
|
|
97
|
+
const earsOn = () => N.calls > 0 && menu.hidden && !asleep();
|
|
98
|
+
const drawEars = () => { const on = earsOn(); if (on && !ears.firstChild) ears.innerHTML = adlerPeek(); ears.hidden = !on || !ears.firstChild; };
|
|
88
99
|
const set = (open) => {
|
|
89
100
|
menu.hidden = !open; scrim.hidden = !open; fab.setAttribute('aria-expanded', String(open));
|
|
90
101
|
fab.setAttribute('aria-label', fabLabel(here, open, N.stale, N.news)); fab.innerHTML = svg(open ? ICON.close : ICON.menu, 22);
|
|
@@ -120,13 +131,15 @@ export function mountNav(here, doc = document, opts = {}) {
|
|
|
120
131
|
if (doc.hidden) return;
|
|
121
132
|
const [n, s] = await Promise.all([getj('/api/news-for-you' + wsQ()), getj('/api/sources' + wsQ())]);
|
|
122
133
|
if (n && n.ok) { N.news = n.count || 0; doc.dispatchEvent(new CustomEvent('cz:news-for-you', { detail: n })); }
|
|
123
|
-
if (s && s.ok) N.stale = staleOf(s.sources);
|
|
134
|
+
if (s && s.ok) { N.stale = staleOf(s.sources); doc.dispatchEvent(new CustomEvent('cz:sources', { detail: s })); } // Your day's failed source (AdP5)
|
|
124
135
|
if (menu.hidden || !menu.contains(doc.activeElement)) draw();
|
|
125
136
|
};
|
|
126
137
|
read();
|
|
127
138
|
setInterval(read, 120000);
|
|
128
139
|
doc.addEventListener('visibilitychange', () => { if (!doc.hidden) read(); });
|
|
129
140
|
doc.addEventListener('cz:news', (e) => { if (e.detail && Number.isFinite(e.detail.count)) { N.news = e.detail.count; draw(); } else read(); });
|
|
141
|
+
doc.addEventListener('cz:calls', (e) => { const n = e.detail && Number(e.detail.count); N.calls = Number.isFinite(n) && n > 0 ? n : 0; draw(); });
|
|
142
|
+
doc.addEventListener('adler:prefs', () => { ears.innerHTML = ''; draw(); });
|
|
130
143
|
window.addEventListener('pm:sources', (e) => { const d = e.detail; if (d && d.ok) { N.stale = staleOf(d.sources); draw(); } });
|
|
131
144
|
return w;
|
|
132
145
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* pm/cozy-news.js — New for you, the whole list in the Viewer (initiative premium-uncovered-features, E2; canvas EvInbox, HmAround; since
|
|
2
2
|
* feedback batch 16 item 5b, canvas FmA2Day, it opens from the New for you fold of Your day: "N more", or one of its rows).
|
|
3
3
|
*
|
|
4
|
-
* For your information only:
|
|
5
|
-
*
|
|
6
|
-
* Mark all seen marks them at once (POST /api/news-for-you/seen). Open on a row shows
|
|
7
|
-
*
|
|
4
|
+
* For your information only: Given to you, Finished while you were away (GET /api/news-for-you), and today's digests from the morning
|
|
5
|
+
* brief (GET /api/briefing-premium). Mentions owns every mention (batch 16 item 12), so none is here. An item leaves once it is seen: the
|
|
6
|
+
* items shown are marked seen when the card closes, and Mark all seen marks them at once (POST /api/news-for-you/seen). Open on a row shows
|
|
7
|
+
* the item: a task with its source; finished work opens where it waits. The page's meetings ring, its two legend cards, "Where
|
|
8
8
|
* the rest went" and the "Not here" note are gone (FmAudit: Your day holds the meetings, and a page that explains itself is chrome).
|
|
9
9
|
* openNews({ go?, view? }) → the body element; view: an item's id opens straight on that item */
|
|
10
10
|
import { pmGet, pmPost } from './http.js';
|
|
@@ -12,20 +12,17 @@ import { open as vwOpen, current as vwCurrent } from './cozy-viewer.js';
|
|
|
12
12
|
import { esc, svg, ICON, toast, wsParam, wsQ, skelRows, cantRead, allClear } from './cozy-evui.js';
|
|
13
13
|
import { initials, ago } from './cozy-evmodel.js';
|
|
14
14
|
|
|
15
|
-
const
|
|
16
|
-
const N = { r: null, dig: null, view: '', body: null, shown: new Set(), madd: new Set(), mread: new Set(), busy: false };
|
|
15
|
+
const N = { r: null, dig: null, view: '', body: null, shown: new Set(), busy: false };
|
|
17
16
|
const homeUrl = (params) => { const q = new URLSearchParams(params); if (wsParam()) q.set('ws', wsParam()); return '/premium.html?' + q.toString(); };
|
|
18
17
|
const https = (u) => (/^https:\/\/\S+$/i.test(String(u || '')) ? u : '');
|
|
19
18
|
/** The deep link of a finished item, as the bell's was: a My work item opens its dialog; anything else opens on Home. */
|
|
20
19
|
const finHref = (it) => (/^item:/.test(it.open) ? homeUrl({ item: it.open.slice(5) }) : homeUrl(it.pws ? { open: it.open, pws: it.pws } : { open: it.open }));
|
|
21
|
-
const taskLine = (m) => (m.asks ? 'Reply to ' + String(m.who || 'the sender').split(/\s+/)[0] + ' (' + (SRC[m.source] || m.source || 'source') + ') by today' : 'Read ' + String(m.who || 'the sender').split(/\s+/)[0] + '\'s note (' + (SRC[m.source] || m.source || 'source') + ')');
|
|
22
20
|
|
|
23
21
|
function items() { return N.r && N.r.ok ? N.r.groups.flatMap((g) => g.items) : []; }
|
|
24
22
|
function rowHtml(it) {
|
|
25
|
-
const who = it.kind === '
|
|
23
|
+
const who = it.kind === 'task' ? (it.from || 'Someone') : (it.product || 'Agent');
|
|
26
24
|
const av = `<span class="ev-av${it.kind === 'finished' ? ' b' : ''}" aria-hidden="true">${esc(initials(who))}</span>`;
|
|
27
|
-
const sub = it.kind === '
|
|
28
|
-
: it.kind === 'task' ? ['From ' + (it.from || 'a source') + (it.key ? ' ' + it.key : ''), it.due ? 'due ' + it.due : '', it.initiative ? 'filed under ' + it.initiative : ''].filter(Boolean).join(' · ')
|
|
25
|
+
const sub = it.kind === 'task' ? ['From ' + (it.from || 'a source') + (it.key ? ' ' + it.key : ''), it.due ? 'due ' + it.due : '', it.initiative ? 'filed under ' + it.initiative : ''].filter(Boolean).join(' · ')
|
|
29
26
|
: [it.what, it.product, it.target, it.at ? ago(new Date(it.at).toISOString()) : ''].filter(Boolean).join(' · ');
|
|
30
27
|
return `<div class="ev-trow" data-ev-id="${esc(it.id)}"><i class="ev-dot you" aria-hidden="true"></i>${av}<div class="ev-tx"><p><b>${esc(it.title)}</b></p><p class="ev-small ev-mut">${esc(sub)}</p></div>`
|
|
31
28
|
+ `<button type="button" class="ev-ib" data-ev-open="${esc(it.id)}" aria-label="Open: ${esc(it.title)}" title="Open">${svg(ICON.open, 16)}</button></div>`;
|
|
@@ -43,18 +40,11 @@ function listHtml() {
|
|
|
43
40
|
else if (!r.ok) body = cantRead({ what: 'New for you', why: r.error || '' });
|
|
44
41
|
else if (!r.count) body = allClear('Nothing new since you last looked');
|
|
45
42
|
else body = r.groups.map((g) => `<p class="ev-lbl">${esc(g.label)}</p>` + g.items.map(rowHtml).join('')).join('');
|
|
46
|
-
const notRead = r && r.ok && r.read ? [['
|
|
43
|
+
const notRead = r && r.ok && r.read ? [['inbox', 'The agents\' results'], ['work', 'Your tasks']].filter(([k]) => r.read[k] === false).map(([, l]) => l) : [];
|
|
47
44
|
return head + body + (notRead.length ? `<p class="ev-small ev-mut" role="status">Not read: ${esc(notRead.join(', '))}.</p>` : '') + digHtml();
|
|
48
45
|
}
|
|
49
46
|
function detailHtml(it) {
|
|
50
47
|
const back = '<div class="ev-head"><button type="button" class="ev-btn sm ghost" data-ev-back>' + svg(ICON.back, 16) + 'New for you</button></div>';
|
|
51
|
-
if (it.kind === 'mention') {
|
|
52
|
-
const l = https(it.link), done = N.madd.has(it.id), read = N.mread.has(it.id);
|
|
53
|
-
return back + `<p class="ev-lbl">${esc([SRC[it.source] || it.source, it.where, ago(it.at ? new Date(it.at).toISOString() : '')].filter(Boolean).join(' · '))}${it.asks ? ' · asks you something' : ''}</p><h2 class="ev-h2">${esc(it.title)}</h2><p class="ev-q">${esc(it.text)}</p>`
|
|
54
|
-
+ (it.initiative ? `<p class="ev-small ev-mut">${esc(it.initiative)}</p>` : '')
|
|
55
|
-
+ `<div class="ev-acts">${done ? '<span class="ev-pill ok">In your tasks</span>' : '<button type="button" class="ev-btn sm pri" data-ev-act="task">Make it a task</button>'}${read ? '<span class="ev-pill">Marked read</span>' : '<button type="button" class="ev-btn sm" data-ev-act="read">Mark read</button>'}${l ? `<a class="ev-btn sm" href="${esc(l)}" target="_blank" rel="noopener noreferrer">Open in ${esc(SRC[it.source] || 'its source')}</a>` : ''}</div>`
|
|
56
|
-
+ (done ? '' : `<p class="ev-small ev-mut">Make it a task adds “${esc(taskLine(it))}” to your tasks. Mark read keeps it out of today's list. Nothing here replies or posts.</p>`);
|
|
57
|
-
}
|
|
58
48
|
const l = https(it.link);
|
|
59
49
|
return back + `<p class="ev-lbl">Given to you · ${esc(it.from || 'a source')}</p><h2 class="ev-h2">${esc(it.title.replace(/^New task: /, ''))}</h2>`
|
|
60
50
|
+ `<p class="ev-small ev-mut">${esc([it.key, it.due ? 'due ' + it.due : '', it.initiative ? 'filed under ' + it.initiative : ''].filter(Boolean).join(' · '))}</p>`
|
|
@@ -108,15 +98,6 @@ function wire(b, o) {
|
|
|
108
98
|
if (it.kind === 'finished') { await seen([it.id]); location.assign(finHref(it)); return; }
|
|
109
99
|
N.view = it.id; draw(); const f = b.querySelector('[data-ev-back]'); if (f) f.focus(); return;
|
|
110
100
|
}
|
|
111
|
-
if (t.dataset.evAct) {
|
|
112
|
-
const it = items().find((x) => x.id === N.view); if (!it) return;
|
|
113
|
-
N.busy = true; t.disabled = true;
|
|
114
|
-
const r = t.dataset.evAct === 'task' ? await pmPost('/api/pm-items/add', { line: taskLine(it) }) : await pmPost('/api/mentions/read', { id: it.mid, read: true });
|
|
115
|
-
N.busy = false;
|
|
116
|
-
if (!r || r.ok === false) { toast('That did not go through' + (r && r.error ? ': ' + r.error : '.')); t.disabled = false; return; }
|
|
117
|
-
if (t.dataset.evAct === 'task') { N.madd.add(it.id); toast('Added to your tasks: ' + taskLine(it).replace(/ by today$/, '')); } else { N.mread.add(it.id); toast('Marked read.'); }
|
|
118
|
-
draw();
|
|
119
|
-
}
|
|
120
101
|
};
|
|
121
102
|
void o;
|
|
122
103
|
}
|