create-pmos 0.428.0 → 0.430.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +25 -25
- package/payload/KIT-VERSION +2 -2
- 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/payload/state/log.md +1 -1
- package/workspace/briefing-premium-board-test.js +4 -4
- package/workspace/briefing-premium-insights-test.js +82 -61
- package/workspace/briefing-premium-metrics-test.js +5 -3
- package/workspace/briefing-premium-sources-test.js +5 -5
- package/workspace/briefing-premium-test.js +5 -4
- package/workspace/changelog.json +24 -0
- package/workspace/ev-everywhere-test.js +2 -2
- package/workspace/guide/adler.md +45 -0
- package/workspace/guide/briefing-premium.md +2 -0
- package/workspace/guide/home.md +4 -2
- package/workspace/guide/index.md +2 -0
- package/workspace/guide/metric-drafts.md +49 -0
- package/workspace/guide/programs.md +2 -0
- package/workspace/intel-report-ui-test.js +189 -0
- package/workspace/intelligence-gaps-ui-test.js +168 -0
- package/workspace/lib/board-metrics-premium.js +1 -1
- package/workspace/lib/headless.js +15 -2
- package/workspace/lib/initiative-writer.js +16 -2
- package/workspace/lib/insight-moves.js +135 -0
- package/workspace/lib/insights-premium.js +9 -4
- package/workspace/lib/insights-records.js +14 -5
- package/workspace/lib/intel-report.js +432 -0
- package/workspace/lib/metric-draft-runs.js +193 -0
- package/workspace/lib/metric-drafts.js +261 -0
- package/workspace/lib/metrics-cli.js +104 -0
- package/workspace/lib/page-opens.js +74 -0
- package/workspace/lib/pmos-verbs.js +3 -0
- package/workspace/lib/report-setups.js +29 -13
- package/workspace/lib/route-modules.js +3 -0
- package/workspace/lib/routes-insight-moves.js +119 -0
- package/workspace/lib/routes-insights-premium.js +12 -3
- package/workspace/lib/routes-insights-records.js +13 -5
- package/workspace/lib/routes-metric-drafts.js +150 -0
- package/workspace/lib/routes-page-opens.js +26 -0
- package/workspace/lib/routes-phone-day.js +13 -2
- package/workspace/lib/routes-report-setups.js +97 -3
- package/workspace/lib/routes-viewer.js +5 -2
- package/workspace/lib/settings-store.js +6 -0
- package/workspace/metric-drafts-ui-test.js +209 -0
- package/workspace/milestone-suggest-test.js +4 -4
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-phone-card-test.js +8 -5
- package/workspace/premium-viewer-flicker-test.js +1 -1
- package/workspace/public/pm/bd-acts.js +3 -3
- package/workspace/public/pm/bd-pin-card.css +4 -4
- package/workspace/public/pm/bd-prog-panel.js +12 -7
- package/workspace/public/pm/bd-prog.js +2 -2
- package/workspace/public/pm/cozy-adler.css +82 -0
- package/workspace/public/pm/cozy-adler.js +270 -0
- package/workspace/public/pm/cozy-aud.css +1 -1
- package/workspace/public/pm/cozy-board.css +256 -256
- package/workspace/public/pm/cozy-ev.css +48 -45
- package/workspace/public/pm/cozy-evmodel.js +1 -1
- package/workspace/public/pm/cozy-home-rows.css +23 -23
- package/workspace/public/pm/cozy-home.css +211 -207
- package/workspace/public/pm/cozy-insights.css +221 -108
- package/workspace/public/pm/cozy-live-pill.css +5 -5
- package/workspace/public/pm/cozy-mtg-present.css +23 -23
- package/workspace/public/pm/cozy-nav.js +3 -1
- package/workspace/public/pm/cozy-news.js +2 -2
- package/workspace/public/pm/cozy-panel.css +29 -29
- package/workspace/public/pm/cozy-pick.css +5 -5
- package/workspace/public/pm/cozy-rec-now.css +20 -20
- package/workspace/public/pm/cozy-rec-present.css +11 -11
- package/workspace/public/pm/cozy-rec-tab.css +13 -13
- package/workspace/public/pm/cozy-search.js +4 -2
- package/workspace/public/pm/cozy-settings.js +16 -3
- package/workspace/public/pm/cozy-steps.css +9 -9
- package/workspace/public/pm/cozy-today.css +122 -71
- package/workspace/public/pm/cozy-viewer.css +7 -7
- package/workspace/public/pm/cozy-viewer.js +1 -1
- package/workspace/public/pm/cozy-vw-mtg.css +81 -81
- package/workspace/public/pm/cozy-vw-rp.css +53 -53
- package/workspace/public/pm/cozy-vw-shell.css +23 -23
- package/workspace/public/pm/cozy-vw.css +117 -117
- package/workspace/public/pm/cozy-xv.css +11 -11
- package/workspace/public/pm/cozy.css +34 -15
- package/workspace/public/pm/hi-pop.css +19 -19
- package/workspace/public/pm/home-app.js +33 -9
- package/workspace/public/pm/home-chat.js +10 -2
- package/workspace/public/pm/home-day.js +155 -27
- package/workspace/public/pm/home-ini.css +32 -32
- package/workspace/public/pm/home-line.css +7 -7
- package/workspace/public/pm/home-list.js +12 -1
- package/workspace/public/pm/home-phone-card.js +18 -15
- package/workspace/public/pm/home-today.js +5 -3
- package/workspace/public/pm/ini-view-model.js +1 -1
- package/workspace/public/pm/ini-view.css +108 -102
- package/workspace/public/pm/ini-view.js +22 -3
- package/workspace/public/pm/loose-props.css +13 -13
- package/workspace/public/pm/metric-drafts.css +89 -0
- package/workspace/public/pm/metric-drafts.js +204 -0
- package/workspace/public/pm/ms-suggest.css +8 -8
- package/workspace/public/pm/ms-suggest.js +2 -1
- package/workspace/public/pm/ov-view.css +12 -12
- package/workspace/public/pm/premium-board.js +2 -2
- package/workspace/public/pm/premium-chart-tab.js +6 -6
- package/workspace/public/pm/premium-insights.js +364 -107
- package/workspace/public/pm/premium-report-intel.css +56 -0
- package/workspace/public/pm/premium-report-intel.js +232 -0
- package/workspace/public/pm/premium-shell.js +2 -2
- package/workspace/public/pm/premium-vw-cal.js +1 -1
- package/workspace/public/pm/premium-vw-file.js +2 -2
- package/workspace/public/pm/premium-welcome.js +3 -2
- package/workspace/public/pm/premium.css +130 -128
- package/workspace/public/pm/prog-order.css +6 -6
- package/workspace/public/pm/program-charter.css +23 -23
- package/workspace/public/pm/program-model.js +7 -0
- package/workspace/public/pm/rp-parts.js +2 -2
- package/workspace/public/pm/sort-order.css +1 -1
- package/workspace/public/pm/split-merge.css +15 -15
- package/workspace/public/pm/split-merge.js +2 -1
- package/workspace/public/pm/task-card.css +21 -21
- package/workspace/public/pm/tk-tasks.css +37 -37
- package/workspace/public/pm/tk-view.css +6 -6
- package/workspace/public/pm/wf-page.css +28 -28
- package/workspace/public/premium-intelligence.html +82 -0
- package/workspace/server.js +38 -3
- package/workspace/skills/metric-draft.skill +47 -0
- package/workspace/test-lists/intel-report-ui.json +5 -0
- package/workspace/test-lists/intel-report.json +9 -0
- package/workspace/test-lists/intelligence-gaps-ui.json +5 -0
- package/workspace/test-lists/intelligence-gaps.json +5 -0
- package/workspace/test-lists/metric-drafts-ui.json +5 -0
- package/workspace/test-lists/metric-drafts.json +9 -0
- package/workspace/test-run.js +3 -0
- package/workspace/public/premium-insights.html +0 -81
|
@@ -1,64 +1,192 @@
|
|
|
1
1
|
/* pm/home-day.js — Your day in the Viewer, shell A (initiative viewer-shell-a, V10; canvas XvAPhDay, was TfPhone and the HvAOpen sheet).
|
|
2
2
|
*
|
|
3
|
-
* "Good morning" opens Your day as an item in the Viewer
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
3
|
+
* "Good morning" opens Your day as an item in the Viewer (a phone only since batch 14 item 4). Batch 15 item 3 (design E, frames YdE1Ready,
|
|
4
|
+
* YdE2AllClear, YdE3Evening, YdE6BigDay, YdE7Rough): the opening card is Claude's small mood face and one first-person line, with chips for
|
|
5
|
+
* the work Claude really did; Your move holds only the calls that need the PM; the rest folds:
|
|
6
|
+
* Your move the calls only the PM can make (homeList's move rows with call: true), open by default
|
|
7
|
+
* Drafted for you the drafts of today's morning prep run (GET /api/phone-day finished) and the weekly update
|
|
8
|
+
* Can wait every other row that was "Your move" (tasks, brief items, Jira)
|
|
9
|
+
* Now the phone's moment card (home-phone-card.js), open by default
|
|
10
|
+
* This week the Weekly review
|
|
11
|
+
* Every claim comes from what PMOS holds: a meeting is "prepped" only when it has the agent's prep note, "drafted" only from today's run,
|
|
12
|
+
* a thank-you only from a real mention, a miss only from a failed task. No data, no line (zero is silence). The mood is never happier than
|
|
13
|
+
* the data: concerned when something failed or is blocked, delighted at most once a week, calm on a packed or ordinary day.
|
|
14
|
+
* Voice: Claude's Adlerian rules (canvas note ydAdler): thanks for contribution, no praise, no orders, say whose task it is, no blame,
|
|
15
|
+
* no "N days late". dayModel is pure; dayParts turns it into the shell's sections. Text from records goes through esc().
|
|
16
|
+
* Adler (batch 16 item 2) is the face: the M face on the opening card in the day's mood (ADLER: glad and calm are handled, delighted is
|
|
17
|
+
* celebrating, concerned is honest, a run still drafting is thinking); the morning scene on the day's first open before noon (AdP1);
|
|
18
|
+
* the L figure with his tea when nothing needs the PM (AdB2) or celebrating on an earned day (AdB3), and then the small face hides (one
|
|
19
|
+
* Adler per screen); after 22:00 the night scene guards the evening (AdP4) unless something is wrong, which is never hidden. */
|
|
10
20
|
|
|
11
21
|
import { todayOf, hm } from './home-data.js';
|
|
22
|
+
import { adler, adlerScene, asleep, firstOpenToday } from './cozy-adler.js'; // Adler, Claude's face (batch 16 item 2): AdB1-3, AdP1, AdP4
|
|
12
23
|
|
|
13
24
|
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
14
25
|
const plural = (n, one, many) => n + ' ' + (n === 1 ? one : many);
|
|
26
|
+
const clip = (s, n) => { const t = String(s || '').replace(/\s+/g, ' ').trim(); return t.length > n ? t.slice(0, n - 1) + '…' : t; };
|
|
15
27
|
export const DAY_ICON = 'M12 3l1.8 4.6L18 9l-4.2 1.4L12 15l-1.8-4.6L6 9l4.2-1.4z';
|
|
16
28
|
const CLOCK = 'M12 4a8 8 0 1 0 0 16a8 8 0 1 0 0-16M12 8v4l3 2', CAL = 'M4 5h16v15H4zM8 3v4M16 3v4M4 10h16', CHEV = 'M10 7l5 5-5 5';
|
|
17
|
-
const
|
|
29
|
+
const CHECK = 'M5 12.5l4.5 4.5L19 7', OPEN = 'M14 4h6v6M20 4l-9 9M18 14v6H4V6h6';
|
|
30
|
+
const svg = (d, w = 15, sw = 1.8) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${sw}" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
|
|
18
31
|
|
|
19
32
|
const span = (m) => { const a = Date.parse(m.start); const b = m.end ? Date.parse(m.end) : a + (m.minutes || 30) * 60000; return { a, b }; };
|
|
20
33
|
const dur = (mins) => (mins >= 60 ? (Math.round(mins / 30) / 2).toString().replace(/\.0$/, '') + ' h' : mins + ' min');
|
|
34
|
+
const localDay = (ms) => new Date(ms).toDateString();
|
|
35
|
+
const PACKED = 5; // meetings in a day that make it a packed day (YdE6BigDay)
|
|
36
|
+
const THANKS = /\b(thank(s| you)?|thx|appreciate[ds]?)\b/i;
|
|
21
37
|
|
|
22
|
-
/**
|
|
23
|
-
export function
|
|
38
|
+
/** The free stretches of 30 minutes or more between now (or 09:00) and 18:00, between today's meetings. [{ a, b }] in ms. */
|
|
39
|
+
export function gapsOf(t, now) {
|
|
40
|
+
const d0 = new Date(now); d0.setHours(9, 0, 0, 0); const d1 = new Date(now); d1.setHours(18, 0, 0, 0);
|
|
41
|
+
let at = Math.max(now, d0.getTime()); const out = [];
|
|
42
|
+
for (const m of t) { const s = span(m); if (s.b <= at) continue; if (s.a - at >= 30 * 60000) out.push({ a: at, b: Math.min(s.a, d1.getTime()) }); at = Math.max(at, s.b); }
|
|
43
|
+
if (d1.getTime() - at >= 30 * 60000) out.push({ a: at, b: d1.getTime() });
|
|
44
|
+
return out.filter((g) => g.b - g.a >= 30 * 60000);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** A real thank-you to the PM today: the newest mention of today whose words thank them. { quote, who, where, at } or null. */
|
|
48
|
+
export function thanksOf(D, now) {
|
|
49
|
+
const L = (D && D.today && Array.isArray(D.today.mentions) ? D.today.mentions : []).filter((m) => m && m.text && THANKS.test(m.text) && (!m.at || localDay(Date.parse(m.at)) === localDay(now)));
|
|
50
|
+
const m = L[0];
|
|
51
|
+
return m ? { quote: clip(m.text, 160), who: m.who || '', where: m.source ? m.source.charAt(0).toUpperCase() + m.source.slice(1) : '', at: m.at ? hm(m.at) : '' } : null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** Your day's words. M: homeList's model (move); D: Home's data (today's meetings, phoneDay, the brief page's me and mentions);
|
|
55
|
+
* R: reviewModel. o: { delightOk: false when the delighted face showed on another day this week }.
|
|
56
|
+
* → { mood, line, sub, chips, misses, offer, calls, drafts, wait, done, next, week, thanks } */
|
|
57
|
+
export function dayModel(M, D, R, now = Date.now(), o = {}) {
|
|
58
|
+
D = D || {};
|
|
24
59
|
const move = (M && M.move) || [];
|
|
25
|
-
const t = todayOf(D
|
|
60
|
+
const t = todayOf(D).filter((m) => m && m.start && !Number.isNaN(Date.parse(m.start))).sort((x, y) => Date.parse(x.start) - Date.parse(y.start));
|
|
26
61
|
const mins = t.reduce((n, m) => { const s = span(m); return n + Math.max(0, Math.round((s.b - s.a) / 60000)); }, 0);
|
|
27
62
|
const next = t.find((m) => m.state === 'now') || t.find((m) => m.state !== 'past' && span(m).b > now) || null;
|
|
28
|
-
const
|
|
63
|
+
const meetText = !t.length ? 'No meeting today.' : plural(t.length, 'meeting', 'meetings') + ', ' + dur(mins) + '. '
|
|
29
64
|
+ (!next ? 'They are all over.' : next.state === 'now' ? (next.title || 'A meeting') + ' is on now.' : 'The ' + (next === t[0] ? 'first' : 'next') + ' is at ' + hm(next.start) + '.');
|
|
30
65
|
const un = R && R.started && !R.done ? 'Step ' + (R.at + 1) + ' of 4' : '';
|
|
66
|
+
|
|
67
|
+
// what Claude really did: the agent's prep note on a meeting; today's run's drafts and sends
|
|
68
|
+
const PD = D.phoneDay || null, run = PD && PD.run ? PD.run : null;
|
|
69
|
+
const fin = (PD && Array.isArray(PD.finished) ? PD.finished : []);
|
|
70
|
+
const prepped = t.filter((m) => (m.prepared || []).some((x) => x && x.kind === 'prep')).length;
|
|
71
|
+
const drafted = fin.filter((x) => x.status !== 'sent').length, sent = fin.filter((x) => x.status === 'sent').length;
|
|
72
|
+
const chips = [prepped && plural(prepped, 'meeting prepped', 'meetings prepped'), drafted && plural(drafted, 'draft ready', 'drafts ready'), sent && sent + ' sent'].filter(Boolean);
|
|
73
|
+
|
|
74
|
+
const calls = move.filter((r) => r.call), drafts = [...fin.map((x) => ({ fin: x })), ...move.filter((r) => r.kind === 'update').map((r) => ({ row: r }))];
|
|
75
|
+
const wait = move.filter((r) => !r.call && r.kind !== 'update');
|
|
76
|
+
const misses = run ? (run.failed || []).map((f) => ({ id: f.id, title: f.title, why: f.error || '' })) : [];
|
|
77
|
+
const blocked = calls.filter((r) => r.state === 'blocked');
|
|
78
|
+
const rc = PD && PD.recap ? PD.recap : null;
|
|
79
|
+
const done = rc ? (rc.decided || 0) + (rc.done || 0) : 0;
|
|
80
|
+
const thanks = thanksOf(D, now);
|
|
81
|
+
|
|
82
|
+
const h = new Date(now).getHours(), name = D.today && D.today.me ? String(D.today.me) : '';
|
|
83
|
+
const hi = (h < 12 ? 'Morning' : h < 17 ? 'Afternoon' : 'Evening') + (name ? ', ' + name : '') + '.';
|
|
84
|
+
const gaps = gapsOf(t, now);
|
|
85
|
+
let mood = 'calm', line = hi, sub = meetText, offer = null;
|
|
86
|
+
if (misses.length || blocked.length) {
|
|
87
|
+
// concerned: said plainly, Claude's own miss first, then whose call it is (YdE7Rough)
|
|
88
|
+
mood = 'concerned';
|
|
89
|
+
line = 'Straight answer: ' + (misses.length ? (misses.length === 1 ? 'I couldn’t finish one of today’s drafts.' : 'I couldn’t finish ' + misses.length + ' of today’s drafts.')
|
|
90
|
+
: (blocked.length === 1 ? clip(blocked[0].name, 80) + ' is stuck.' : blocked.length + ' pieces of work are stuck.'));
|
|
91
|
+
sub = misses.length ? 'That one’s on me. I can run it again.' : 'It’s your call, so it’s first in Your move.';
|
|
92
|
+
} else if (!calls.length && done > 0 && o.delightOk !== false) {
|
|
93
|
+
// delighted: earned, at most once a week (YdE2AllClear)
|
|
94
|
+
mood = 'delighted'; line = 'That was everything that needed you today.';
|
|
95
|
+
sub = [rc.decided ? plural(rc.decided, 'decision of yours is', 'decisions of yours are') + ' on record' : '', rc.done ? plural(rc.done, 'item of yours is', 'items of yours are') + ' closed' : ''].filter(Boolean).join(', and ') + '.';
|
|
96
|
+
sub = sub.charAt(0).toUpperCase() + sub.slice(1);
|
|
97
|
+
} else if (t.length >= PACKED && h < 17) {
|
|
98
|
+
// a packed day: calm, Claude takes its share (YdE6BigDay)
|
|
99
|
+
line = plural(t.length, 'meeting', 'meetings') + ' today. You talk, I do the rest.';
|
|
100
|
+
sub = gaps.length === 1 ? hm(new Date(gaps[0].a).toISOString()) + ' is your only gap.' : gaps.length ? 'Your longest gap starts at ' + hm(new Date(gaps.slice().sort((x, y) => (y.b - y.a) - (x.b - x.a))[0].a).toISOString()) + '.' : 'No gap between them today.';
|
|
101
|
+
} else if (h >= 17 && (thanks || done > 0)) {
|
|
102
|
+
mood = 'glad'; line = hi;
|
|
103
|
+
sub = [t.length ? plural(t.length, 'meeting', 'meetings') + ' today.' : '', thanks && thanks.who ? thanks.who.split(/\s+/)[0] + ' thanked you.' : done ? 'Your work today moved things on.' : ''].filter(Boolean).join(' ');
|
|
104
|
+
} else if (run && !run.working && chips.length) {
|
|
105
|
+
mood = 'glad'; line = hi + ' My part’s done.'; sub = calls.length ? (calls.length === 1 ? 'One call is yours.' : 'The calls below are yours.') : 'Nothing needs your call right now.';
|
|
106
|
+
} else if (run && run.working) {
|
|
107
|
+
line = hi + ' I’m still on ' + plural(run.working, 'draft', 'drafts') + '.'; sub = meetText;
|
|
108
|
+
}
|
|
109
|
+
// no prep run today: say so, and offer it (Prepare my day); never claim work that did not happen
|
|
110
|
+
if (!run && h < 17) offer = { kind: 'prep', text: 'I haven’t prepared today yet.', sub: 'Shall I prep your meetings and draft what I can?' };
|
|
31
111
|
return {
|
|
32
|
-
|
|
33
|
-
text: lead,
|
|
34
|
-
move,
|
|
112
|
+
mood, face: run && run.working && mood === 'calm' ? 'working' : mood, line, sub, chips, misses, offer, calls, drafts, wait, done, thanks,
|
|
35
113
|
next: next ? { meeting: next, now: next.state === 'now', time: hm(next.start), title: next.title || 'A meeting' } : null,
|
|
36
114
|
week: { sub: un || 'Weekly review' },
|
|
37
115
|
};
|
|
38
116
|
}
|
|
39
117
|
|
|
40
|
-
/*
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
118
|
+
/* Claude's face is Adler's M face (it replaced the yellow mood circle): the day's mood read as his */
|
|
119
|
+
export const ADLER = { glad: 'handled', calm: 'handled', delighted: 'celebrating', concerned: 'honest', working: 'thinking' };
|
|
120
|
+
export const faceHtml = (mood) => `<span class="yd-face ad ${esc(mood)}">${adler(ADLER[mood] || 'handled', 48, { label: 'Claude is ' + mood })}</span>`;
|
|
121
|
+
const ok = (act, label, id) => `<button type="button" class="yd-ok" data-yd="${esc(act)}"${id ? ` data-id="${esc(id)}"` : ''} aria-label="${esc(label)}" title="${esc(label)}">${svg(CHECK, 22, 2.6)}</button>`;
|
|
122
|
+
const alt = (act, label, id, icon) => `<button type="button" class="yd-alt" data-yd="${esc(act)}"${id ? ` data-id="${esc(id)}"` : ''} aria-label="${esc(label)}" title="${esc(label)}">${svg(icon || OPEN, 18, 2)}</button>`;
|
|
123
|
+
|
|
124
|
+
/** The opening card: face, line, sub, the chips of real work, and Claude's own misses with a ✓ to run them again. */
|
|
125
|
+
export function openHtml(Y, o = {}) {
|
|
126
|
+
const head = o.scene ? `<div class="yd-scene">${adlerScene('morning', 'handled', { label: false })}</div>` : o.big ? '' : faceHtml(Y.face || Y.mood);
|
|
127
|
+
const chips = Y.chips.length ? `<div class="yd-chips">${Y.chips.map((c) => `<span class="yd-chip">${svg(CHECK, 14, 2.6)}${esc(c)}</span>`).join('')}</div>` : '';
|
|
128
|
+
const miss = Y.misses.map((m) => `<div class="yd-miss" data-id="${esc(m.id)}"><div class="yd-mt"><b>My miss: ${esc(m.title)}</b>${m.why ? `<em>${esc(m.why)}</em>` : ''}</div>${ok('retry', 'Run it again', m.id)}</div>`).join('');
|
|
129
|
+
return `<div class="yd-open ${esc(Y.mood)}${o.scene ? ' has-scene' : ''}">${o.scene ? head : ''}<div class="yd-hd">${o.scene ? '' : head}<div class="yd-ht"><b>${esc(Y.line)}</b>${Y.sub ? `<em>${esc(Y.sub)}</em>` : ''}</div></div>${chips}${miss}</div>`
|
|
130
|
+
+ (Y.offer ? `<div class="yd-card yd-offer"><div class="yd-mt"><b>${esc(Y.offer.text)}</b><em>${esc(Y.offer.sub)}</em></div>${ok('prep', 'Prepare my day')}</div>` : '');
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* one call (YdE1Ready): the sentence, Claude's pick when it has one ("I'd …. It's your call."), and one quiet round icon that opens it */
|
|
134
|
+
function callHtml(r) {
|
|
135
|
+
const why = r.pick ? 'I’d ' + r.pick.charAt(0).toLowerCase() + r.pick.slice(1).replace(/\.?$/, '.') + ' It’s your call.' : r.when ? 'Goes out ' + r.when + '.' : r.sub || '';
|
|
136
|
+
return `<div class="yd-card yd-call${r.state === 'blocked' ? ' am' : ''}" data-id="${esc(r.id)}"><div class="yd-mt"><b>${esc(r.name)}</b>${why ? `<em>${esc(why)}</em>` : ''}</div>${alt('sel', 'Open: ' + r.name, '', CHEV)}</div>`;
|
|
137
|
+
}
|
|
138
|
+
/* one row that can wait: the list's own row, so a press opens what the list row opens; no "late" words (here and now) */
|
|
139
|
+
function waitRow(r) {
|
|
140
|
+
const mark = r.check ? '<span class="hv-ck" role="img" aria-label="Your task"></span>' : '<span class="hv-d" role="img" aria-label="Waits on you"></span>';
|
|
44
141
|
const sub = r.when ? `<em>${svg(CLOCK, 13)} ${esc(r.when)}</em>` : r.sub ? `<em>${esc(r.sub)}</em>` : '';
|
|
45
142
|
return `<div class="hm-r hv-r two" data-id="${esc(r.id)}"><button type="button" class="hm-rm" data-hm-sel="${esc(r.id)}"><span class="hv-mk">${mark}</span><span class="hm-rt"><b>${esc(r.name)}</b>${sub}</span></button></div>`;
|
|
46
143
|
}
|
|
144
|
+
const DSTATE = { review: 'Ready for you at your desk', done: 'Finished', sent: 'Sent' };
|
|
145
|
+
function draftRow(d) {
|
|
146
|
+
if (d.row) return waitRow({ ...d.row, sub: d.row.sub || 'Drafted for you' });
|
|
147
|
+
const f = d.fin;
|
|
148
|
+
return `<div class="hm-r hv-r two yd-fin"><div class="hm-rm"><span class="hv-mk"><span class="yd-tick">${svg(CHECK, 13, 2.6)}</span></span><span class="hm-rt"><b>${esc(f.title)}</b><em>${esc(DSTATE[f.status] || 'Finished')}${f.summary ? ' · ' + esc(f.summary) : ''}</em></span></div></div>`;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* the L figure in Your move when nothing needs the PM: his tea on a quiet day (AdB2), celebrating on an earned one (AdB3) */
|
|
152
|
+
const bigHtml = (kind) => (kind === 'win'
|
|
153
|
+
? `<div class="yd-big">${adler('celebrating', 'l')}<b>That was everything that needed you today.</b></div>`
|
|
154
|
+
: `<div class="yd-big">${adler('handled', 'l', { label: 'Adler, handled, with his tea' })}<b>Nothing else needs you today.</b><em>I’ll tell you if that changes.</em></div>`);
|
|
155
|
+
/** After 22:00 (Settings > Adler > Quiet after), unless something is wrong: Adler asleep, and the day one press away (AdP4). */
|
|
156
|
+
export function nightHtml(Y) {
|
|
157
|
+
const sub = Y.calls.length ? (Y.calls.length === 1 ? 'One call waits for you in the morning.' : Y.calls.length + ' calls wait for you in the morning.') : 'Nothing needs you tonight.';
|
|
158
|
+
return `<div class="yd-night">${adlerScene('night', 'resting')}<b>It’ll keep till morning.</b><em>${esc(sub)}</em><button type="button" class="yd-awake" data-yd="awake">Open anyway</button></div>`;
|
|
159
|
+
}
|
|
47
160
|
|
|
48
|
-
/** The shell's parts for Your day (
|
|
161
|
+
/** The shell's parts for Your day (czSections takes them). o: { moment: true on a phone with the moment card, now, first: the day's first
|
|
162
|
+
* open (the morning scene) } → { open, sections, night } */
|
|
49
163
|
export function dayParts(Y, o = {}) {
|
|
50
|
-
const sections = [];
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
164
|
+
const sections = [], now = o.now || Date.now();
|
|
165
|
+
// the tea figure only after a real day (something done, drafted or waiting): nothing at all stays silent (zero is silence)
|
|
166
|
+
const real = Y.done > 0 || Y.chips.length || Y.drafts.length || Y.wait.length;
|
|
167
|
+
const big = Y.calls.length || Y.mood === 'concerned' ? null : Y.mood === 'delighted' ? 'win' : real ? 'tea' : null;
|
|
168
|
+
if (Y.calls.length) sections.push({ id: 'move', title: 'Your move', count: Y.calls.length, open: true, html: Y.calls.map(callHtml).join('') });
|
|
169
|
+
else if (big) sections.push({ id: 'move', title: 'Your move', open: true, html: bigHtml(big) });
|
|
170
|
+
if (Y.drafts.length) sections.push({ id: 'drafts', title: 'Drafted for you', count: Y.drafts.length, html: `<div class="hv-card">${Y.drafts.map(draftRow).join('')}</div>` });
|
|
171
|
+
if (Y.wait.length) sections.push({ id: 'wait', title: 'Can wait', count: Y.wait.length, html: `<div class="hv-card hd-move">${Y.wait.map(waitRow).join('')}</div>` });
|
|
172
|
+
if (o.moment) sections.push({ id: 'now', title: 'Now', open: true, html: '<div class="hd-now"></div>' }); // drawDay puts the moment card in
|
|
173
|
+
else if (Y.next) {
|
|
54
174
|
sections.push({ id: 'next', title: Y.next.now ? 'On now' : 'Next meeting', count: Y.next.now ? '' : Y.next.time, html: `<div class="hv-card"><div class="hm-r hv-r two"><button type="button" class="hm-rm" data-hd-meet><span class="hv-mk">${svg(CLOCK, 15)}</span><span class="hm-rt"><b>${esc(Y.next.title)}</b><em>${esc(Y.next.now ? 'On now' : Y.next.time)}</em></span><span class="hv-cv">${svg(CHEV, 16)}</span></button></div></div>` });
|
|
55
175
|
}
|
|
56
176
|
sections.push({ id: 'week', title: 'This week', count: Y.week.sub, html: `<div class="hv-card"><div class="hm-r hv-r two" data-id="review"><button type="button" class="hm-rm" data-hm-review aria-label="Weekly review: ${esc(Y.week.sub)}. Open"><span class="hv-mk">${svg(CAL, 16)}</span><span class="hm-rt"><b>Weekly review</b><em>${esc(Y.week.sub)}</em></span><span class="hv-cv">${svg(CHEV, 16)}</span></button></div></div>` });
|
|
57
|
-
|
|
177
|
+
const scene = !big && o.first && Y.mood !== 'concerned' && new Date(now).getHours() < 12;
|
|
178
|
+
const night = Y.mood !== 'concerned' && asleep(now) ? nightHtml(Y) : '';
|
|
179
|
+
return { open: openHtml(Y, { big: !!big, scene }), sections, night };
|
|
58
180
|
}
|
|
59
181
|
|
|
60
|
-
/** Draws Your day into the Viewer's body
|
|
182
|
+
/** Draws Your day into the Viewer's body: the opening card, then the folds; moment(el) puts the phone's moment card in Now. */
|
|
183
|
+
export { firstOpenToday };
|
|
61
184
|
export function drawDay(body, P, VW, moment) {
|
|
62
|
-
|
|
185
|
+
if (P.night) { // AdP4: the evening is guarded; Open anyway shows the day, this once
|
|
186
|
+
body.innerHTML = `<div class="yd">${P.night}</div>`;
|
|
187
|
+
const b = body.querySelector('[data-yd="awake"]'); if (b) b.addEventListener('click', (e) => { e.stopPropagation(); drawDay(body, { ...P, night: '' }, VW, moment); });
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
body.innerHTML = `<div class="yd">${P.open}${VW.czSections(P.sections, { key: 'day' })}</div>`;
|
|
63
191
|
const now = body.querySelector('.hd-now'); if (now && moment) moment(now);
|
|
64
192
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
/* ── the stage move in the card (InStage) ── */
|
|
5
5
|
.hi-slot { display: contents; }
|
|
6
6
|
.hi-mv { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
|
|
7
|
-
.hi-why, .hi-note { margin: 0; font-size:
|
|
7
|
+
.hi-why, .hi-note { margin: 0; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
8
8
|
.hi-note b { color: var(--cz-ink2); }
|
|
9
|
-
.hi-swl { display: flex; align-items: center; gap: 8px; font-size:
|
|
9
|
+
.hi-swl { display: flex; align-items: center; gap: 8px; font-size: var(--fs-2); color: var(--cz-ink2); }
|
|
10
10
|
.hi-sw { position: relative; flex: none; width: 32px; height: 20px; border-radius: 999px; background: var(--cz-c-d9dce1); border: 0; padding: 0; cursor: pointer; }
|
|
11
11
|
.hi-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--cz-card); transition: left .15s; }
|
|
12
12
|
.hi-sw[aria-checked="true"] { background: var(--cz-blue); }
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
.hi-self { align-self: flex-start; }
|
|
20
20
|
|
|
21
21
|
/* ── the list column groups (InTasks, InDocs) ── */
|
|
22
|
-
.hi-g .hm-gh .hi-n { margin-left: auto; font-weight: 700; font-size:
|
|
22
|
+
.hi-g .hm-gh .hi-n { margin-left: auto; font-weight: 700; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
23
23
|
.hm-r.hi-r { min-height: 48px; margin-bottom: 2px; }
|
|
24
24
|
.hm-r.hi-r .hm-rm { min-height: 48px; padding: 7px 10px; }
|
|
25
25
|
.hm-r.hi-r .hm-rt b { font-weight: 600; }
|
|
@@ -38,39 +38,39 @@
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
/* ── the Viewer: Tasks, Documents, Stage (InTasks, InDocs) ── */
|
|
41
|
-
.hi-v { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 24px; font-size:
|
|
41
|
+
.hi-v { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 24px; font-size: var(--fs-3); color: var(--cz-ink); }
|
|
42
42
|
.hi-seg { align-self: flex-start; }
|
|
43
43
|
.hi-vh2 { display: flex; align-items: center; gap: 8px; }
|
|
44
|
-
.hi-vh2 h2 { flex: 1; min-width: 0; margin: 0; font-size:
|
|
45
|
-
.cz-pick.hi-pick { height: 30px; font-size:
|
|
44
|
+
.hi-vh2 h2 { flex: 1; min-width: 0; margin: 0; font-size: var(--fs-5); font-weight: 800; }
|
|
45
|
+
.cz-pick.hi-pick { height: 30px; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); }
|
|
46
46
|
.cz-pick.hi-pick svg { fill: none; stroke: currentColor; }
|
|
47
|
-
.hi-empty { margin: 0; font-size:
|
|
47
|
+
.hi-empty { margin: 0; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
48
48
|
.hi-tg { display: flex; flex-direction: column; border-radius: 12px; }
|
|
49
49
|
.hi-tg.over { background: var(--cz-bluebg); }
|
|
50
50
|
.hi-gh { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
|
|
51
51
|
.hi-ghb { flex: 1; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0; border: 0; background: none; color: var(--cz-ink); font: inherit; cursor: pointer; text-align: left; }
|
|
52
52
|
.hi-ghb svg { color: var(--cz-ink3); }
|
|
53
|
-
.hi-ghb b { font-size:
|
|
54
|
-
.hi-ghb span { font-size:
|
|
55
|
-
.hi-trow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--cz-hair); font-size:
|
|
53
|
+
.hi-ghb b { font-size: var(--fs-3); }
|
|
54
|
+
.hi-ghb span { font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
55
|
+
.hi-trow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--cz-hair); font-size: var(--fs-3); min-height: 26px; }
|
|
56
56
|
.hi-trow:last-child { border-bottom: 0; }
|
|
57
57
|
.hi-trow[draggable="true"] { cursor: grab; }
|
|
58
58
|
.hi-trow.drag { opacity: .5; }
|
|
59
59
|
.hi-tt { flex: 1; min-width: 0; border: 0; background: none; padding: 0; font: inherit; color: var(--cz-ink); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
60
|
-
.hi-tt em { font-style: normal; color: var(--cz-ink3); font-size:
|
|
60
|
+
.hi-tt em { font-style: normal; color: var(--cz-ink3); font-size: var(--fs-2); }
|
|
61
61
|
.hi-trow.done .hi-tt { text-decoration: line-through; color: var(--cz-ink3); }
|
|
62
|
-
.hi-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: 999px; font: inherit; font-size:
|
|
62
|
+
.hi-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border-radius: 999px; font: inherit; font-size: var(--fs-1); font-weight: 700; background: var(--cz-well); color: var(--cz-ink2); white-space: nowrap; border: 0; flex: none; }
|
|
63
63
|
button.hi-pill { cursor: pointer; }
|
|
64
64
|
.hi-pill.ok { background: var(--cz-okbg); color: var(--cz-ok); }
|
|
65
65
|
.hi-pill.w { background: var(--cz-riskbg); color: var(--cz-risk); }
|
|
66
66
|
.hi-pill.dash { background: transparent; box-shadow: inset 0 0 0 1px var(--cz-c-c5c9d0); color: var(--cz-ink3); }
|
|
67
|
-
.hi-av { width: 22px; height: 22px; border-radius: 50%; background: var(--cz-well2); color: var(--cz-ink2); font-size:
|
|
68
|
-
.hi-due { font-size:
|
|
67
|
+
.hi-av { width: 22px; height: 22px; 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; flex: none; }
|
|
68
|
+
.hi-due { font-size: var(--fs-2); color: var(--cz-ink3); min-width: 38px; text-align: right; flex: none; }
|
|
69
69
|
.hi-due.late { color: var(--cz-late); font-weight: 700; }
|
|
70
70
|
.hi-trow .hi-ib { opacity: .35; }
|
|
71
71
|
.hi-trow:hover .hi-ib, .hi-trow .hi-ib:focus-visible, .hi-trow .hi-ib[aria-expanded="true"] { opacity: 1; }
|
|
72
72
|
.hi-add { display: flex; align-items: center; gap: 8px; height: 40px; border-radius: 14px; background: var(--cz-well); padding: 0 6px 0 12px; }
|
|
73
|
-
.hi-add input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; font-size:
|
|
73
|
+
.hi-add input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; font-size: var(--fs-3); color: var(--cz-ink); }
|
|
74
74
|
.hi-foot { display: flex; gap: 4px; flex-wrap: wrap; border-top: 1px solid var(--cz-hair); padding-top: 8px; }
|
|
75
75
|
.hi-drow { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 12px; }
|
|
76
76
|
.hi-drow.look { background: var(--cz-bluebg); }
|
|
@@ -80,11 +80,11 @@ button.hi-pill { cursor: pointer; }
|
|
|
80
80
|
.hi-dic.dash { background: none; box-shadow: inset 0 0 0 1.5px var(--cz-c-d9dce1); color: var(--cz-ink3); }
|
|
81
81
|
.hi-dtx { min-width: 0; display: block; }
|
|
82
82
|
.hi-dtx b { font-weight: 800; }
|
|
83
|
-
.hi-dtx .hi-k { font-size:
|
|
84
|
-
.hi-dtx em { display: block; font-style: normal; font-size:
|
|
85
|
-
.hi-dtx small { display: block; font-size:
|
|
83
|
+
.hi-dtx .hi-k { font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
84
|
+
.hi-dtx em { display: block; font-style: normal; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
85
|
+
.hi-dtx small { display: block; font-size: var(--fs-1); color: var(--cz-ink3); overflow-wrap: anywhere; }
|
|
86
86
|
.hi-drow.later { align-items: center; color: var(--cz-ink3); }
|
|
87
|
-
.hi-dt { flex: 1; font-size:
|
|
87
|
+
.hi-dt { flex: 1; font-size: var(--fs-3); }
|
|
88
88
|
.hi-drow > .hi-pill, .hi-drow > .hi-btn { margin-top: 4px; }
|
|
89
89
|
.hi-sec { display: flex; flex-direction: column; gap: 8px; }
|
|
90
90
|
.hi-stages { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
@@ -128,13 +128,13 @@ button.hi-pill { cursor: pointer; }
|
|
|
128
128
|
.hi-page .hm-pcard { margin: 0; }
|
|
129
129
|
.hi-pg { display: flex; flex-direction: column; gap: 2px; }
|
|
130
130
|
.hi-pgh { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 4px; }
|
|
131
|
-
.hi-pgh b { font-size:
|
|
132
|
-
.hi-pgh .hi-n { font-size:
|
|
131
|
+
.hi-pgh b { font-size: var(--fs-3); font-weight: 800; color: var(--cz-ink); }
|
|
132
|
+
.hi-pgh .hi-n { font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); }
|
|
133
133
|
.hi-pgh .hm-gadd { margin-left: auto; }
|
|
134
|
-
.hi-pgm { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--cz-ink2); font: inherit; font-size:
|
|
134
|
+
.hi-pgm { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--cz-ink2); font: inherit; font-size: var(--fs-2); font-weight: 700; cursor: pointer; }
|
|
135
135
|
.hi-pge { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 6px; }
|
|
136
|
-
.hi-pge p { margin: 0; font-size:
|
|
137
|
-
.hi-talk { min-height: 44px; border: 0; border-radius: 22px; background: var(--cz-well); color: var(--cz-ink3); font: inherit; font-size:
|
|
136
|
+
.hi-pge p { margin: 0; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
137
|
+
.hi-talk { min-height: 44px; border: 0; border-radius: 22px; background: var(--cz-well); color: var(--cz-ink3); font: inherit; font-size: var(--fs-3); text-align: left; padding: 0 16px; cursor: pointer; }
|
|
138
138
|
@media (hover: hover) { .hi-pgm:hover { background: var(--cz-well2); } }
|
|
139
139
|
|
|
140
140
|
/* ── D99: the initiative's own workflow (WfTriage, WfAChange, WfAWontDo) ── */
|
|
@@ -148,22 +148,22 @@ button.hi-pill { cursor: pointer; }
|
|
|
148
148
|
.hm-card.hm-sc { padding: 0; background: transparent; box-shadow: none; }
|
|
149
149
|
.hm-box.hm-scb { background: var(--cz-card); border-radius: 18px; padding: 12px; gap: 0; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cz-blue) 45%, transparent); }
|
|
150
150
|
.hm-sch { display: flex; align-items: center; gap: 8px; min-height: 28px; }
|
|
151
|
-
.hm-sch > b { font-size:
|
|
152
|
-
.hm-sch .of { font-size:
|
|
151
|
+
.hm-sch > b { font-size: var(--fs-3); font-weight: 800; color: var(--cz-ink); }
|
|
152
|
+
.hm-sch .of { font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; }
|
|
153
153
|
.hm-sch .hm-wf { display: inline-flex; align-items: center; justify-content: center; padding: 3px; margin-left: 2px; border: 0; border-radius: 9px; background: none; cursor: pointer; color: inherit; }
|
|
154
154
|
.hm-sch .hm-wf:hover, .hm-sch .hm-wf[aria-expanded="true"] { background: var(--cz-well); }
|
|
155
|
-
.hm-sct { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size:
|
|
155
|
+
.hm-sct { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; white-space: nowrap; }
|
|
156
156
|
.hm-sct.over { color: var(--cz-risk); }
|
|
157
157
|
.hm-bars.hm-scbars { margin: 10px 0 8px; }
|
|
158
158
|
.hm-bars.hm-scbars i { position: relative; } .hm-bars.hm-scbars i::after { content: ""; position: absolute; inset: -6px 0; } /* a taller hover target for the stage name */
|
|
159
159
|
.hm-bars.hm-scbars i.skip { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--cz-ink3) 40%, transparent) 0 4px, transparent 4px 7px); }
|
|
160
160
|
.hm-scl { border-top: 1px solid var(--cz-hair); padding-top: 8px; margin-top: 2px; }
|
|
161
|
-
.hm-scwhy { margin: 0; padding: 4px 0 2px 34px; font-size:
|
|
162
|
-
.hm-scb > .hm-none { margin: 4px 0 0; font-size:
|
|
161
|
+
.hm-scwhy { margin: 0; padding: 4px 0 2px 34px; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
162
|
+
.hm-scb > .hm-none { margin: 4px 0 0; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
163
163
|
/* the move sheet: Move now and Back as two quiet buttons, side by side on a desktop, stacked on the phone */
|
|
164
164
|
.hi-nxa { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--cz-hair); }
|
|
165
165
|
.hi-nxa .hi-btn { flex: 1; justify-content: center; height: 40px; border-radius: 12px; }
|
|
166
|
-
.hi-pop .hi-swl { font-size:
|
|
166
|
+
.hi-pop .hi-swl { font-size: var(--fs-3); font-weight: 700; color: var(--cz-ink); min-height: 44px; }
|
|
167
167
|
.hi-pop .hi-swl > span { flex: 1; }
|
|
168
168
|
.hi-pop .hi-sw { width: 44px; height: 28px; }
|
|
169
169
|
.hi-pop .hi-sw::after { top: 4px; left: 4px; width: 20px; height: 20px; }
|
|
@@ -176,6 +176,6 @@ button.hi-pill { cursor: pointer; }
|
|
|
176
176
|
.hi-pop .hi-sw[aria-checked="true"]::before, .hi-v .hi-sw[aria-checked="true"]::before, :root[data-theme="dark"] .hi-pop .hi-sw[aria-checked="true"]::before, :root[data-theme="dark"] .hi-v .hi-sw[aria-checked="true"]::before { background: var(--cz-blue); }
|
|
177
177
|
.hi-pop .hi-sw::after, .hi-v .hi-sw::after { top: 12px; z-index: 1; background: var(--cz-onsolid); }
|
|
178
178
|
.hi-pop.sheet .hi-nxa { flex-direction: column; border-top: 0; padding-top: 0; }
|
|
179
|
-
.hi-pop.sheet .hi-nxa .hi-btn { height: 48px; border-radius: 14px; font-size:
|
|
180
|
-
.hi-pop.sheet .hi-h3 { font-size:
|
|
179
|
+
.hi-pop.sheet .hi-nxa .hi-btn { height: 48px; border-radius: 14px; font-size: var(--fs-3); font-weight: 800; }
|
|
180
|
+
.hi-pop.sheet .hi-h3 { font-size: var(--fs-4); }
|
|
181
181
|
}
|
|
@@ -7,20 +7,20 @@
|
|
|
7
7
|
.pl-row { display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 2px 4px 2px 0; }
|
|
8
8
|
.pl-hit { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 14px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 14px; }
|
|
9
9
|
.pl-hit:focus-visible, .pl-stop:focus-visible, .pl-ib:focus-visible, .pl-dvb:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
10
|
-
.pl-t { flex: 1; min-width: 0; font-size:
|
|
10
|
+
.pl-t { flex: 1; min-width: 0; font-size: var(--fs-3); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
11
11
|
.hm-pl.open .pl-t { white-space: normal; }
|
|
12
12
|
.hm-pl.you .pl-t, .hm-goalq .pl-t { color: var(--cz-blueink); }
|
|
13
|
-
.pl-n { flex: none; font-size:
|
|
13
|
+
.pl-n { flex: none; font-size: var(--fs-2); font-weight: 600; color: var(--cz-ink3); }
|
|
14
14
|
.pl-cv { flex: none; display: inline-flex; color: var(--cz-ink3); }
|
|
15
15
|
.pl-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cz-blue); }
|
|
16
16
|
.pl-clk { display: inline-flex; color: var(--cz-ink3); }
|
|
17
17
|
.pl-stop { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
|
|
18
18
|
.pl-body { padding: 0 14px 12px; }
|
|
19
|
-
.pl-head { margin: 0 0 10px; font-size:
|
|
19
|
+
.pl-head { margin: 0 0 10px; font-size: var(--fs-2); color: var(--cz-ink3); line-height: 1.4; }
|
|
20
20
|
.pl-sl { margin-top: 2px; }
|
|
21
|
-
.pl-now { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--cz-hair); font-size:
|
|
21
|
+
.pl-now { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--cz-hair); font-size: var(--fs-2); min-width: 0; }
|
|
22
22
|
.pl-now b { flex: none; font-weight: 800; }
|
|
23
|
-
.pl-now code { min-width: 0; font-family: var(--cz-mono); font-size:
|
|
23
|
+
.pl-now code { min-width: 0; font-family: var(--cz-mono); font-size: var(--fs-2); color: var(--cz-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
24
24
|
.hm-pl.open .pl-now code { white-space: normal; word-break: break-all; }
|
|
25
25
|
.pl-acts { display: flex; gap: 8px; margin-top: 10px; }
|
|
26
26
|
.pl-ib { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
/* the Viewer (a desktop) */
|
|
30
30
|
.pl-vw { padding: 16px 20px; }
|
|
31
31
|
.pl-vwh { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
|
|
32
|
-
.pl-vwh b { flex: 1; min-width: 0; font-size:
|
|
32
|
+
.pl-vwh b { flex: 1; min-width: 0; font-size: var(--fs-4); font-weight: 800; line-height: 1.3; }
|
|
33
33
|
|
|
34
34
|
/* the divider where a run finished */
|
|
35
|
-
.pl-dv { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-size:
|
|
35
|
+
.pl-dv { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); }
|
|
36
36
|
.pl-dv .ln { flex: 1; height: 1px; background: var(--cz-hair); }
|
|
37
37
|
.pl-dv.stop { color: var(--cz-risk); }
|
|
38
38
|
.pl-dvb { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; border-radius: 10px; }
|
|
@@ -322,7 +322,7 @@ export function looseSnapshot(M, D) {
|
|
|
322
322
|
* { id, name, sub (its initiative, or the hint of a row with none), late, state, when (the weekly update's send time) }. */
|
|
323
323
|
function moveOf(groups, needs) {
|
|
324
324
|
const late = [], rest = [], seen = new Set();
|
|
325
|
-
const put = (L, r, sub) => { if (!r || seen.has(r.id)) return; seen.add(r.id); L.push({ id: r.id, name: r.name, sub: sub || '', late: !!r.late, state: r.state || 'needs', check: !!(r.check || r.kind === 'task'), when: whenOf(r), ...(r.ms ? { ms: true } : {}) }); };
|
|
325
|
+
const put = (L, r, sub) => { if (!r || seen.has(r.id)) return; seen.add(r.id); L.push({ id: r.id, name: r.name, sub: sub || '', late: !!r.late, state: r.state || 'needs', check: !!(r.check || r.kind === 'task'), when: whenOf(r), kind: r.kind || '', ...(callOf(r) ? { call: true } : {}), ...(pickOf(r) ? { pick: pickOf(r) } : {}), ...(r.ms ? { ms: true } : {}) }); };
|
|
326
326
|
for (const g of groups) {
|
|
327
327
|
if (g.kind === 'loose') { for (const r of g.rows) if (r.check && r.late) put(late, r); else if (r.state === 'needs' || r.state === 'blocked') put(rest, r, r.kind === 'session' ? '' : bareHint(r)); continue; }
|
|
328
328
|
for (const t of g.tasks || []) if (t.mine && t.late) put(late, t, g.name);
|
|
@@ -333,6 +333,17 @@ function moveOf(groups, needs) {
|
|
|
333
333
|
for (const r of needs) if (!seen.has(r.id) && !r.needSession) put(rest, r, r.kind === 'session' ? '' : bareHint(r));
|
|
334
334
|
return late.concat(rest);
|
|
335
335
|
}
|
|
336
|
+
/** Claude's pick on a Needs-you row: the option its dialog selects ({ sel, opts }), else ''. Your day names it in the call's sentence. */
|
|
337
|
+
const pickOf = (r) => {
|
|
338
|
+
const d = r && r.row && r.row.dialog; const o = d && d.sel && (d.opts || []).find((x) => x && x.k === d.sel);
|
|
339
|
+
if (o && o.t) return String(o.t);
|
|
340
|
+
const p = String((r && r.row && r.row.kind === 'source' && r.row.prepared) || ''); // a brief item's prepared line ("Reply: …"), when it has one
|
|
341
|
+
return p && !/^No .* is on record\.$/.test(p) ? p : '';
|
|
342
|
+
};
|
|
343
|
+
/** Is a row a call only the PM can make (Your day's Your move, batch 15 item 3)? A session that asks, the program's milestone changes, a
|
|
344
|
+
* decision, blocked work, failed reviews to weigh, and an item where someone asked the PM by name. Tasks and the rest can wait. */
|
|
345
|
+
const callOf = (r) => r.kind === 'session' || r.kind === 'msreview' || ['decision', 'blocked', 'waited'].includes(r.row && r.row.kind)
|
|
346
|
+
|| !!(r.row && r.row.kind === 'source' && /mentions you/.test(String(r.row.subject || '')));
|
|
336
347
|
/** "Wed 09:00" from the weekly update's "goes out Wed 09:00"; '' for any other row. */
|
|
337
348
|
export const whenOf = (r) => { const m = /goes out (.+)$/.exec(String((r && r.hint) || '')); return m ? m[1] : ''; };
|
|
338
349
|
|
|
@@ -22,7 +22,7 @@ export function mountPhoneCard(o) {
|
|
|
22
22
|
el.className = 'hm-phc'; el.id = 'phoneCard'; el.hidden = true; el.setAttribute('aria-label', 'Now');
|
|
23
23
|
|
|
24
24
|
const own = () => ((P.page && P.page.ok && P.page.needs) || []).filter((n) => n && n.id && (n.kind === 'overdue' || n.kind === 'due-today'))
|
|
25
|
-
.map((n) => ({ id: n.id, headline: n.headline, label: n.kind === 'overdue' ?
|
|
25
|
+
.map((n) => ({ id: n.id, headline: n.headline, label: n.kind === 'overdue' ? 'Yours, still open' : 'Due today', kind: n.kind, looks: !!(n.evidence && n.evidence.text) }));
|
|
26
26
|
const btn = (label, act, id, alt) => `<button type="button" class="cta${alt ? ' alt' : ''}" data-pha="${act}"${id != null ? ` data-id="${esc(id)}"` : ''}>${esc(label)}</button>`;
|
|
27
27
|
const item = (n) => {
|
|
28
28
|
const act = P.dec.has(n.id) ? `<p class="phok" role="status">${CHECK}<span>Done.</span></p><div class="phacts">${btn('Undo', 'phundo', n.id, true)}</div>` : `<div class="phacts">${btn(n.looks ? 'Confirm done' : 'Done', 'phdone', n.id)}</div>`;
|
|
@@ -32,11 +32,13 @@ export function mountPhoneCard(o) {
|
|
|
32
32
|
const open = (m) => btn('Open the meeting', 'phopen', m.id, true);
|
|
33
33
|
const big = (t) => `<b class="phbig">${esc(t)}</b>`;
|
|
34
34
|
const L = (t) => `<p class="phl">${esc(t)}</p>`, S = (t) => `<p class="phs">${esc(t)}</p>`;
|
|
35
|
+
// a real thank-you to the PM today, from the brief's mentions (GET /api/brief-page mentions); never written, only quoted
|
|
36
|
+
const thanks = () => { const m = ((P.page && P.page.mentions) || []).find((x) => x && x.text && /\b(thank(s| you)?|thx|appreciate[ds]?)\b/i.test(x.text) && (!x.at || new Date(x.at).toDateString() === new Date().toDateString()));
|
|
37
|
+
return m ? { quote: String(m.text).replace(/\s+/g, ' ').trim().slice(0, 160), who: m.who || '', where: m.source ? m.source.charAt(0).toUpperCase() + m.source.slice(1) : '', at: m.at ? hm(m.at) : '' } : null; };
|
|
35
38
|
const dayErr = () => (P.day && P.day.ok === false ? S('Today could not be read: ' + P.day.error + '.') : !P.day ? S('Reading your day.') : '');
|
|
36
39
|
|
|
37
40
|
function moment(mo) {
|
|
38
41
|
const m = mo.meeting, mine = own(), day = P.day && P.day.ok !== false ? P.day : null, fin = day ? day.finished || [] : [];
|
|
39
|
-
const waits = mine.length ? num(mine.length, 'item of yours waits', 'items of yours wait') + '.' : 'Nothing of yours is due.';
|
|
40
42
|
const finRows = (n) => fin.slice(0, n).map((t) => `<div class="phfit"><span class="label">${t.status === 'review' ? 'Waits for you' : t.status === 'sent' ? 'Sent' : 'Finished'}</span><b class="phtt">${esc(t.title)}</b><p class="phs">${esc(t.summary)}</p></div>`).join('');
|
|
41
43
|
const fits = (list) => items(list.map((n) => mine.find((x) => x.id === n.id)).filter(Boolean));
|
|
42
44
|
if (mo.kind === 'meeting') return `<span class="label">Under way · ends ${esc(inText(mo.minutes))}</span>${big(m.title)}${who(m) ? L(who(m)) : ''}<div class="phacts">${open(m)}</div>`;
|
|
@@ -48,24 +50,25 @@ export function mountPhoneCard(o) {
|
|
|
48
50
|
}
|
|
49
51
|
if (mo.kind === 'after') return `<span class="label">Just ended · ${hm(m.end || m.start)}</span>${big(m.title)}${S('The notes of this meeting, if there are any, are in the meeting.')}<div class="phacts">${open(m)}</div>`;
|
|
50
52
|
if (mo.kind === 'gap') return `<span class="label">Until ${esc(mo.next.title)} at ${hm(mo.next.start)}</span>${big(mo.minutes + ' free minutes')}${mo.fits.length ? fits(mo.fits) : L('Nothing of yours is due. A good moment to prepare the next meeting.')}`;
|
|
51
|
-
if (mo.kind === 'morning') {
|
|
52
|
-
const top = mine.slice(0, 3);
|
|
53
|
-
const
|
|
54
|
-
return `<span class="label">Your morning</span>${
|
|
53
|
+
if (mo.kind === 'morning') { // Your day E (YdE1Ready): the day's meetings, time and title; then what of yours is due, with Done
|
|
54
|
+
const t = ((P.page && P.page.today) || []).filter((x) => x && x.state !== 'past'), top = mine.slice(0, 3);
|
|
55
|
+
const rows = t.slice(0, 3).map((x) => `<p class="phrow"><b>${hm(x.start)}</b><span>${esc(x.title)}</span></p>`).join('') + (t.length > 3 ? S((t.length - 3) + ' more later today.') : '');
|
|
56
|
+
return `<span class="label">Your morning</span>${t.length ? rows : S('No meetings today.')}${items(top)}${mo.next ? `<div class="phacts">${open(mo.next)}</div>` : ''}`;
|
|
55
57
|
}
|
|
56
58
|
if (mo.kind === 'work') return `<span class="label">${mo.next ? 'Next: ' + esc(mo.next.title) + ' at ' + hm(mo.next.start) : 'No more meetings today'}</span>${big(fin.length ? 'Finished for you' : 'Nothing new from the agent')}${fin.length ? finRows(2) + S('Approving a draft waits for your computer.') : dayErr() || S('When the agent finishes a draft today, it shows here.')}${mo.fits.length ? fits(mo.fits) : ''}${mo.next ? `<div class="phacts">${open(mo.next)}</div>` : ''}`;
|
|
57
|
-
if (mo.kind === 'recap') { //
|
|
58
|
-
const r = day && day.recap, one = mine[0],
|
|
59
|
-
const KIND = { decision: 'Decided', done: 'Done', agent: '
|
|
60
|
-
const
|
|
61
|
-
const
|
|
59
|
+
if (mo.kind === 'recap') { // Your day E (YdE3Evening): what today made possible, wins only; a real thank-you when one exists; no zero counts
|
|
60
|
+
const r = day && day.recap, one = mine[0], ty = thanks();
|
|
61
|
+
const KIND = { decision: 'Decided', done: 'Done', agent: 'Claude' };
|
|
62
|
+
const moved = r && (r.moved || []).length ? `<div class="phmv">${r.moved.map((x) => `<p><b>${esc(KIND[x.kind] || '')}</b><span>${esc(x.text)}</span>${x.sub ? `<em>${esc(x.sub)}</em>` : ''}</p>`).join('')}</div>` : dayErr();
|
|
63
|
+
const quote = ty ? `<div class="phty"><p class="phl">“${esc(ty.quote)}”</p><p class="phs">${esc([ty.who, ty.where].filter(Boolean).join(' on '))}${ty.at ? ' · ' + esc(ty.at) : ''}</p></div>` : '';
|
|
62
64
|
const conf = r && r.to_confirm ? `<p class="phs phq">${esc(num(r.to_confirm, 'decision', 'decisions'))} from today's notes ${r.to_confirm === 1 ? 'is' : 'are'} not confirmed yet, so ${r.to_confirm === 1 ? 'it does' : 'they do'} not count. Confirm them in the meeting's Replay.</p>` : '';
|
|
63
|
-
const open = one ? `<div class="phfit" data-id="${esc(one.id)}"><span class="label">One thing tonight
|
|
64
|
-
|
|
65
|
-
return `<span class="label">Evening recap</span>${big(
|
|
65
|
+
const open = one ? `<div class="phfit" data-id="${esc(one.id)}"><span class="label">One thing tonight, if you like</span><b class="phtt">${esc(one.headline)}</b>${P.dec.has(one.id) ? `<p class="phok" role="status">${CHECK}<span>Done.</span></p><div class="phacts">${btn('Undo', 'phundo', one.id, true)}</div>` : `<div class="phacts">${btn(one.looks ? 'Confirm done' : 'Done', 'phdone', one.id)}</div>`}${P.err[one.id] ? `<p class="pherr" role="alert">${esc(P.err[one.id])}</p>` : ''}${mine.length > 1 ? S('The rest can wait for tomorrow.') : ''}</div>` : '';
|
|
66
|
+
const big2 = r && ((r.moved || []).length || ty) ? 'What today made possible' : 'Evening';
|
|
67
|
+
return `<span class="label">Evening recap</span>${big(big2)}${quote}${moved}${conf}${open}`;
|
|
66
68
|
}
|
|
67
69
|
const r = day && day.recap, tm = day && day.tomorrow;
|
|
68
|
-
|
|
70
|
+
const today = r ? [r.meetings && num(r.meetings, 'meeting', 'meetings'), r.decided && num(r.decided, 'decision', 'decisions'), r.done && num(r.done, 'item done', 'items done')].filter(Boolean) : []; // zero is silence
|
|
71
|
+
return `<span class="label">End of day</span>${big(tm ? 'Tomorrow, ' + tm.label : 'Tomorrow, at a glance')}${today.length ? L('Today: ' + today.join(', ') + '.') : ''}${tm ? `<div class="phfit"><b class="phtt">${tm.meetings.length ? num(tm.meetings.length, 'meeting', 'meetings') : 'No meetings'}</b>${tm.meetings.slice(0, 5).map((x) => `<p class="phs">${hm(x.start)} · ${esc(x.title)}${who(x) ? ' · ' + esc(who(x)) : ''}</p>`).join('')}</div>` : dayErr()}${mine.length ? S('What’s still open waits on Home tomorrow.') : ''}`;
|
|
69
72
|
}
|
|
70
73
|
const momentNow = () => momentOf({ today: P.page.today || [], needs: own(), now: new Date() });
|
|
71
74
|
function draw(focus) {
|
|
@@ -18,6 +18,7 @@ import { gripHtml, sugHtml } from './prog-order.js'; // a program's order: the
|
|
|
18
18
|
import * as SO from './sort-order.js'; // the sort button and ONE order with the Board (batch 14 item 8, canvas SoAHomePhone)
|
|
19
19
|
import { prodKey } from './order-model.js';
|
|
20
20
|
import * as CW from './ctx-wedge.js'; // how full a session's context is: the pie, and Claude's ✦ Compact (batch 13 item 8, XctxA1Desk)
|
|
21
|
+
import * as AD from './cozy-adler.js'; // Adler greets on Home (batch 16 item 2, canvas AdH1): the M face, honest when the read failed
|
|
21
22
|
|
|
22
23
|
export const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
23
24
|
export const P = {
|
|
@@ -269,7 +270,7 @@ const MOMENT = new Set(['rec', 'soon', 'live', 'eod', 'review']);
|
|
|
269
270
|
/** M is homeList(); T todayCard(); o: { sel, ses (the initiative row whose pill is open), pOpen, restOpen, pin, avHtml, ready, err, pick (GET /api/briefing-premium/products), tones, review, phone, day (Your day is open) } */
|
|
270
271
|
export function listHtml(M, T, o) {
|
|
271
272
|
const flt = M.filter !== 'today' ? M.filters.find((f) => f.key === M.filter) : null;
|
|
272
|
-
const head = `<div class="hm-hd hv-bar"><button type="button" class="hv-hi" data-hm-day aria-expanded="${!!o.day}" aria-label="${esc(M.word || 'Today')}. Open your day"
|
|
273
|
+
const head = `<div class="hm-hd hv-bar"><button type="button" class="hv-hi" data-hm-day aria-expanded="${!!o.day}" aria-label="${esc(M.word || 'Today')}. Open your day">${AD.adler(o.err ? 'honest' : 'handled', 36, { label: false, cls: 'hv-ad' })}<b>${esc(M.word || 'Today')}</b>${svg(P.chevD, 18)}</button>`
|
|
273
274
|
// the product chip, always (it is also the way to add one): the ticked products' tiles, or All (canvas XhpA2States)
|
|
274
275
|
+ (o.pick ? chipHtml(o.pick, { id: 'hmPick', attrs: 'data-hm-pick', label: 'Products on Home', tones: o.tones }) : '')
|
|
275
276
|
+ (o.phone ? '' : `<button type="button" class="ut-ib hv-ib${flt ? ' on' : ''}" data-hm-flt aria-haspopup="menu" aria-label="Show: Today, Kept or Done${flt ? '. Now ' + esc(flt.label) : ''}" title="Show: Today, Kept or Done">${svg(P.filter, 18)}</button>`)
|
|
@@ -278,8 +279,9 @@ export function listHtml(M, T, o) {
|
|
|
278
279
|
+ (M.yours ? `<p class="hv-sub">${M.yours} ${M.yours === 1 ? 'is' : 'are'} yours</p>` : '');
|
|
279
280
|
// the Today card only while the day has a moment; the plain day (its meetings and load) is in Your day
|
|
280
281
|
const card = MOMENT.has(T.mode) ? todayHtml(T, { greet: M.greet, sub: '', phone: o.phone }) : '';
|
|
281
|
-
|
|
282
|
-
|
|
282
|
+
// start-up and errors (canvas AdU9, AdU6): Adler wears his glasses while Home reads, and says a failure plainly; the greeting's face hides
|
|
283
|
+
if (!o.ready) return head + card + `<div class="hm-none hm-ad" role="status">${AD.adler('thinking', 'l', { label: false })}<p>Reading your work.</p></div>`;
|
|
284
|
+
const errLine = `<div class="hm-none hm-ad" role="status">${AD.adler('honest', 48, { label: false })}<p>Home could not read the repository: ${esc(o.err)}.</p></div>`;
|
|
283
285
|
if (o.err && !M.groups.some((g) => (g.kind === 'product' && g.count) || (g.rows && g.rows.length))) return head + card + errLine;
|
|
284
286
|
// the repository's read failed but sessions or notes still answered: say so above what did come back, never an empty product as if calm
|
|
285
287
|
let body = o.err && !M.groups.some((g) => g.kind === 'product' && (g.count || g.flat.length)) ? errLine : '';
|
|
@@ -250,7 +250,7 @@ export function iniView(r, ctx = {}) {
|
|
|
250
250
|
const lateSay = late.length ? plural(late.length, 'task is', 'tasks are') + ' late' + (late.length > 1 ? ', the oldest since ' + dateY(late.map((x) => x.end).sort()[0], today) : ', since ' + dateY(late[0].end, today)) + '.' : '';
|
|
251
251
|
const why = whyText(r, list, cur, today, finished);
|
|
252
252
|
const it = tr || {};
|
|
253
|
-
const progress = jira ? (ctx.jiraAt || '') : r.progress != null && Number.isFinite(Number(r.progress)) ? Math.round(Number(r.progress)) + '%
|
|
253
|
+
const progress = jira ? (ctx.jiraAt || '') : r.progress != null && Number.isFinite(Number(r.progress)) ? Math.round(Number(r.progress)) + '% · by hand' : '';
|
|
254
254
|
// what waits on the PM: the track's, else the trail's (the Board merges the trail into the track; Home reads the row as sent)
|
|
255
255
|
const you = t.you || (it.you && it.you.text) || null, youKind = t.youKind || (it.you && it.you.kind) || null, youWhy = t.youWhy || (it.you && it.you.why) || '';
|
|
256
256
|
let wait = null;
|