create-pmos 0.441.0 → 0.443.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-seasons-art-test.js +106 -0
- package/workspace/adler-seasons-test.js +111 -0
- package/workspace/briefing-premium-board-test.js +19 -17
- package/workspace/briefing-premium-initiative-test.js +7 -4
- package/workspace/changelog.json +24 -0
- package/workspace/goals-clear-ui-test.js +249 -0
- package/workspace/guide/adler.md +10 -0
- package/workspace/guide/home.md +8 -1
- package/workspace/guide/metric-drafts.md +8 -2
- package/workspace/home-railcard-test.js +193 -0
- package/workspace/ini-workflow-test.js +6 -2
- package/workspace/intelligence-gaps-ui-test.js +16 -14
- package/workspace/lib/engine/records/index.js +9 -2
- package/workspace/lib/initiative-layout.js +3 -1
- package/workspace/lib/insights-premium.js +22 -1
- package/workspace/lib/metric-drafts.js +37 -10
- package/workspace/lib/metric-read-runs.js +20 -13
- package/workspace/lib/metric-reads.js +208 -23
- package/workspace/lib/metrics-cli.js +62 -5
- package/workspace/lib/routes-goal-status.js +89 -6
- package/workspace/lib/routes-insights-premium.js +1 -1
- package/workspace/lib/routes-metric-drafts.js +26 -3
- package/workspace/lib/settings-store.js +38 -0
- package/workspace/metric-drafts-ui-test.js +7 -4
- package/workspace/okr-goals-ui-test.js +7 -5
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +2 -1
- package/workspace/premium-chat-attach-test.js +2 -0
- package/workspace/program-panel-test.js +1 -1
- package/workspace/public/pm/bd-ini-panel.js +2 -2
- package/workspace/public/pm/c3-ini-ui.js +1 -1
- package/workspace/public/pm/cozy-adler.css +21 -0
- package/workspace/public/pm/cozy-adler.js +415 -8
- package/workspace/public/pm/cozy-ev.css +16 -1
- package/workspace/public/pm/cozy-home.css +8 -0
- package/workspace/public/pm/cozy-insights.css +82 -0
- package/workspace/public/pm/cozy-live-pill.css +5 -0
- package/workspace/public/pm/cozy-news.js +1 -1
- package/workspace/public/pm/cozy-seasons.js +318 -0
- package/workspace/public/pm/cozy-settings.js +88 -5
- package/workspace/public/pm/cozy-today.css +15 -0
- package/workspace/public/pm/cozy-viewer.js +50 -18
- package/workspace/public/pm/cozy-vw-shell.css +4 -0
- package/workspace/public/pm/cozy.css +65 -0
- package/workspace/public/pm/dash-view.js +4 -2
- package/workspace/public/pm/goals-clear.js +258 -0
- package/workspace/public/pm/home-app.js +59 -5
- package/workspace/public/pm/home-chat.js +1 -1
- package/workspace/public/pm/home-day.js +7 -4
- package/workspace/public/pm/home-ini.js +2 -2
- package/workspace/public/pm/home-mentions.js +1 -1
- package/workspace/public/pm/home-today.js +51 -10
- package/workspace/public/pm/impact.js +1 -1
- package/workspace/public/pm/ini-groups.js +28 -17
- package/workspace/public/pm/ini-links.js +1 -1
- package/workspace/public/pm/ini-tasks.js +246 -48
- package/workspace/public/pm/ini-view-model.js +45 -16
- package/workspace/public/pm/ini-view.css +330 -1
- package/workspace/public/pm/ini-view.js +196 -83
- package/workspace/public/pm/metric-drafts.js +4 -1
- package/workspace/public/pm/mission.js +238 -0
- package/workspace/public/pm/premium-board.js +1 -1
- package/workspace/public/pm/premium-insights.js +178 -24
- package/workspace/public/pm/premium-welcome.js +2 -2
- package/workspace/public/pm/split-merge.js +1 -1
- package/workspace/public/pm/stage-line.js +2 -2
- package/workspace/server.js +6 -2
- package/workspace/skills/metric-read.skill +7 -5
- package/workspace/split-merge-ui-test.js +1 -1
- package/workspace/stage-card-test.js +56 -11
- package/workspace/task-links-test.js +2 -0
- package/workspace/task-milestones-test.js +5 -1
- package/workspace/task-plans-test.js +3 -3
- package/workspace/task-views-test.js +279 -37
- package/workspace/test-lists/adler-seasons-art.json +13 -0
- package/workspace/test-lists/batch18-adler-seasons.json +13 -0
- package/workspace/test-lists/goals-clear.json +15 -0
- package/workspace/test-lists/home-railcard.json +9 -0
- package/workspace/test-lists/mission.json +5 -0
- package/workspace/test-lists/viewer-tasks.json +5 -0
- package/workspace/tk-tasks-test.js +27 -32
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
* time.workEnd, POST /api/settings), Your impact (impact.on, POST /api/settings; canvas GmP1Switch, batch 16 item 7: the one switch
|
|
5
5
|
* for Adler's leaf, the impact log and the weekly check; the page hears `pmos:impact`), Agents write to Jira (fixed: only after Commit)
|
|
6
6
|
* Adler how much of Claude's face shows, Motion, Celebrations, Quiet after (adler.*, POST /api/settings; canvas AdM5, batch 16 item 2)
|
|
7
|
+
* › Dress for the day (adler.dress.*, canvas AsSet1, batch 18 item 8): the master switch, where you are, one switch per group,
|
|
8
|
+
* "More festivals" with one switch per day, big sports and your colours, exam season, your days, Wear now (pm/cozy-seasons.js).
|
|
9
|
+
* openSettings('dress') opens it straight away (the › in Adler's tap popover, AsSet2Tap).
|
|
7
10
|
* Connectors each source's last read (GET /api/sources; was the Sources card, feedback batch 16 item 5, canvas FmA3Settings): the amber dot
|
|
8
11
|
* and ↻ Read again on a stale or failed one (POST /api/sources/refresh), ↻ in the header reads every source
|
|
9
12
|
* (POST /api/sources/refresh-all); then what PMOS reads on its own, and the connectors your sessions have (GET and POST
|
|
@@ -23,12 +26,13 @@ import { pmGet, pmPost } from './http.js';
|
|
|
23
26
|
import { esc, svg, ICON, toast, wsParam, wsQ } from './cozy-evui.js';
|
|
24
27
|
import { sourceRows, staleOf, partsOf } from './cozy-evmodel.js';
|
|
25
28
|
import * as AD from './cozy-adler.js';
|
|
29
|
+
import * as SE from './cozy-seasons.js';
|
|
26
30
|
|
|
27
31
|
const SECTIONS = [['general', 'General'], ['adler', 'Adler'], ['connectors', 'Connectors'], ['workspaces', 'Workspaces'], ['workflows', 'Workflows'], ['updates', 'Updates'], ['whatsnew', "What's new"]];
|
|
28
32
|
const PAGE_LINKS = { workflows: '/premium-workflows.html' }; // a section that is a page of its own: the row goes there
|
|
29
33
|
const SRC = { calendar: 'Calendar', wispr: 'Wispr Flow', mail: 'Mail', slack: 'Slack', jira: 'Jira', confluence: 'Confluence', github: 'GitHub', drive: 'Google Drive', figma: 'Figma', website: 'Your websites' };
|
|
30
34
|
const VIEWER_KEY = 'pmos.cz.viewer';
|
|
31
|
-
const T = { el: null, sec: 'general', ws: null, st: {}, src: null, con: {}, conn: [], set: null, prods: null, msg: '', busy: false, phase: '', say: '', back: null, fresh: null, reading: '', note: {}, lines: null };
|
|
35
|
+
const T = { el: null, sec: 'general', ws: null, st: {}, src: null, con: {}, conn: [], set: null, prods: null, msg: '', busy: false, phase: '', say: '', back: null, fresh: null, reading: '', note: {}, lines: null, dress: false, more: false, bday: false, dset: {} };
|
|
32
36
|
const cmpVer = (a, b) => { const x = String(a || '0').split('-')[0].split('.').map(Number), y = String(b || '0').split('-')[0].split('.').map(Number); for (let i = 0; i < 3; i++) if ((x[i] || 0) !== (y[i] || 0)) return (x[i] || 0) < (y[i] || 0) ? -1 : 1; return 0; };
|
|
33
37
|
const home = () => (T.ws && T.ws[0] ? T.st[T.ws[0].id] : null);
|
|
34
38
|
const latest = () => { const s = home(); return (s && (s.latest || (s.lastCheck && s.lastCheck.latest))) || null; };
|
|
@@ -69,14 +73,79 @@ function general() {
|
|
|
69
73
|
}
|
|
70
74
|
/* Your impact (GmP1Switch): on by default; off hides every impact surface and stops Claude's daily read */
|
|
71
75
|
function impactOn() { const x = T.set && Array.isArray(T.set.settings) ? T.set.settings.find((y) => y.key === 'impact.on') : null; return x ? x.value !== false : true; }
|
|
76
|
+
/** One Dress for the day press: POST /api/settings, keep the row, and tell the page (the event adler:dress) so Adler changes at once. */
|
|
77
|
+
async function saveDress(key, value, said = 'Saved.') {
|
|
78
|
+
const r = await pmPost('/api/settings', { key, value });
|
|
79
|
+
if (r && r.ok) {
|
|
80
|
+
T.dset[key] = r.value === undefined ? value : r.value;
|
|
81
|
+
const x = T.set && Array.isArray(T.set.settings) ? T.set.settings.find((y) => y.key === key) : null; if (x) x.value = T.dset[key];
|
|
82
|
+
document.dispatchEvent(new CustomEvent('adler:dress', { detail: dp() }));
|
|
83
|
+
}
|
|
84
|
+
T.msg = r && r.ok ? said : (r && r.error) || 'Not saved.';
|
|
85
|
+
draw();
|
|
86
|
+
}
|
|
72
87
|
/* Settings > Adler (AdM5): four choices, each saved for this computer the moment it is pressed */
|
|
73
88
|
function adlerSec() {
|
|
89
|
+
if (T.dress) return dressSec();
|
|
74
90
|
const P = AD.prefs();
|
|
75
91
|
return `<div class="ev-ad-hd">${AD.adler('handled', 48)}<p class="ev-small ev-mut">Adler is how Claude shows its mood in PMOS. You choose how much of him you see.</p></div>`
|
|
76
92
|
+ trow('How much Adler', 'Face only keeps his face where Claude speaks and drops the scenes. Off shows the plain mood dot.', seg('How much Adler', 'adler.amount', P['adler.amount'], [['full', 'Full'], ['face', 'Face only'], ['off', 'Off']]))
|
|
77
93
|
+ trow('Motion', 'Still stops every animation. Reduced motion on your computer always stops it.', seg('Motion', 'adler.motion', P['adler.motion'], [['system', 'Follow my computer'], ['still', 'Still']]))
|
|
78
94
|
+ trow('Celebrations', 'At most once a week, and only for a real event.', seg('Celebrations', 'adler.celebrate', P['adler.celebrate'], [['real', 'Real wins only'], ['never', 'Never']]))
|
|
79
|
-
+ trow('Quiet after', 'After this time, opening PMOS shows Adler asleep and nothing urgent.', seg('Quiet after', 'adler.quiet', P['adler.quiet'], [['22', '22:00'], ['never', 'Never']]))
|
|
95
|
+
+ trow('Quiet after', 'After this time, opening PMOS shows Adler asleep and nothing urgent.', seg('Quiet after', 'adler.quiet', P['adler.quiet'], [['22', '22:00'], ['never', 'Never']]))
|
|
96
|
+
+ trow('Dress for the day', dressLine(), `<button type="button" class="ev-ib" data-ev-dress="open" aria-label="Dress for the day" title="Dress for the day">${svg(CHEV, 18)}</button>`);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* ── Settings > Adler > Dress for the day (AsSet1): every switch is saved for this computer the moment it is pressed ── */
|
|
100
|
+
const CHEV = 'M10 7l5 5-5 5', BACK = 'M15 18l-6-6 6-6', PLUS = 'M12 5v14M5 12h14', CROSS = 'M6 6l12 12M18 6L6 18';
|
|
101
|
+
const COLOR_NAMES = { blue: 'Blue', red: 'Red', white: 'White', gold: 'Gold', green: 'Green', ink: 'Black' };
|
|
102
|
+
// T.dset: what was saved while this dialog is open, so a GET /api/settings that lands after a press never undoes it
|
|
103
|
+
const dp = () => ({ ...SE.dressPrefs(T.set && T.set.settings), ...T.dset, 'adler.amount': AD.prefs()['adler.amount'] });
|
|
104
|
+
const dmy = (ms) => new Date(ms).toLocaleDateString('en-GB', { day: 'numeric', month: 'short' });
|
|
105
|
+
/** The Adler row's second line: what he wears now, or the next one, or why he does not dress. */
|
|
106
|
+
function dressLine() {
|
|
107
|
+
const P = dp();
|
|
108
|
+
if (P['adler.dress.on'] === false) return 'Off. He wears his hoodie every day.';
|
|
109
|
+
if (P['adler.amount'] !== 'full') return 'He dresses only when How much Adler is Full.';
|
|
110
|
+
const now = SE.charmToday(Date.now(), P), nx = now ? null : SE.nextCharm(Date.now(), P);
|
|
111
|
+
return now ? `Today: ${now.name}, until ${dmy(now.until)}.` : nx ? `Next: ${nx.name}, from ${dmy(nx.from)}.` : 'For festivals and seasons where you live.';
|
|
112
|
+
}
|
|
113
|
+
const dsw = (key, on, label) => sw(on, `data-ev-dsw="${key}"`, label);
|
|
114
|
+
function dressSec() {
|
|
115
|
+
const P = dp(), place = SE.placeOf(P), on = P['adler.dress.on'] !== false, full = P['adler.amount'] === 'full';
|
|
116
|
+
const now = on && full ? SE.charmToday(Date.now(), P) : null, nx = on && full && !now ? SE.nextCharm(Date.now(), P) : null, c = now || nx;
|
|
117
|
+
const head = `<div class="ev-dr-hd"><button type="button" class="ev-ib" data-ev-dress="back" aria-label="Back to Adler" title="Back">${svg(BACK, 18)}</button><h4 class="ev-grow">Dress for the day</h4>${dsw('adler.dress.on', on, 'Dress for the day')}</div>`;
|
|
118
|
+
if (!on) return head + '<p class="ev-small ev-mut">Adler wears his hoodie every day.</p>';
|
|
119
|
+
const banner = !full ? '<p class="ev-small ev-mut">How much Adler is not Full, so he does not dress up.</p>'
|
|
120
|
+
: c ? `<div class="ev-dr-now">${AD.adler('handled', 48, { charm: c.key, label: false })}<p><b>${esc(now ? 'Today: ' + now.name : 'Next: ' + nx.name)}</b><span class="ev-small ev-mut">${esc(now ? 'He wears it until ' + dmy(now.until) + '.' : 'He wears it from ' + dmy(nx.from) + '.')}</span></p></div>` : '';
|
|
121
|
+
const hol = SE.DAYS.filter((e) => e.group === 'holidays' && (e.where === '*' || e.where.includes(place.country)));
|
|
122
|
+
const quiet = hol.filter((e) => e.kind === 'qt' && e.key !== 'seventh').map((e) => e.name);
|
|
123
|
+
const sea = place.climate === 'tropics' ? (SE.DAYS.find((e) => e.key === 'monsoon').where.includes(place.country) ? 'Monsoon, Dec to early Mar' : 'None in the tropics where you are') : 'Spring, summer, autumn and winter';
|
|
124
|
+
const more = SE.moreDays(P, place), mOn = more.filter((x) => x.on);
|
|
125
|
+
const moreSub = (mOn.length ? mOn.length + ' on · ' : 'Off · ') + more.filter((x) => !x.on).slice(0, 4).map((x) => x.name).join(', ') + '…';
|
|
126
|
+
const cols = P['adler.dress.colors'] || ['blue', 'green'];
|
|
127
|
+
const colSel = (i) => `<label class="ev-vh" for="evCol${i}">Colour ${i + 1}</label><select id="evCol${i}" class="ev-inp" data-ev-dcol="${i}">${SE.COLORS.map((k) => `<option value="${k}"${cols[i] === k ? ' selected' : ''}>${COLOR_NAMES[k]}</option>`).join('')}</select>`;
|
|
128
|
+
const b = P['adler.dress.birthday'], bdate = b ? new Date(2000, +b.slice(0, 2) - 1, +b.slice(3)).toLocaleDateString('en-GB', { day: 'numeric', month: 'long' }) : '';
|
|
129
|
+
const bday = b ? `<span class="ev-small">${esc(bdate)}</span><button type="button" class="ev-ib" data-ev-dress="bday-off" aria-label="Remove your birthday" title="Remove your birthday">${svg(CROSS, 16)}</button>`
|
|
130
|
+
: T.bday ? `<label class="ev-vh" for="evBday">Your birthday</label><input id="evBday" type="date" class="ev-inp" data-ev-bday>`
|
|
131
|
+
: `<button type="button" class="ev-ib" data-ev-dress="bday" aria-label="Add your birthday" title="Add your birthday">${svg(PLUS, 18)}</button>`;
|
|
132
|
+
const w = P['adler.dress.wear'], today = SE.wearNow('movie', Date.now(), P).value.day;
|
|
133
|
+
const wear = (k, n) => { const worn = !!(w && w.key === k && w.day === today); return `<button type="button" class="ev-wear" data-ev-wear="${k}" aria-pressed="${worn}" aria-label="${esc((worn ? 'Take off ' : 'Wear ') + n + ' until midnight')}" title="${esc(n)}">${AD.adler('handled', 40, { charm: k, label: false })}<span class="ev-small">${esc(n)}</span></button>`; };
|
|
134
|
+
const placeOpts = `<option value="">From my computer${place.auto && place.country ? ' (' + esc(SE.PLACES[place.country] || place.country) + ')' : ''}</option>` + Object.entries(SE.PLACES).map(([k, n]) => `<option value="${k}"${P['adler.dress.place'] === k ? ' selected' : ''}>${esc(n)}</option>`).join('');
|
|
135
|
+
const clOpts = [['auto', 'Climate from the place'], ['tropics', 'Tropics'], ['north', 'North'], ['south', 'South']].map(([k, n]) => `<option value="${k}"${(P['adler.dress.climate'] || 'auto') === k ? ' selected' : ''}>${n}</option>`).join('');
|
|
136
|
+
return head + banner
|
|
137
|
+
+ trow(place.name + ' · ' + place.climate, place.auto ? 'From your computer' : 'You chose it', `<span class="ev-dr-pl"><label class="ev-vh" for="evPlace">Where you are</label><select id="evPlace" class="ev-inp" data-ev-dsel="adler.dress.place">${placeOpts}</select><label class="ev-vh" for="evClimate">Climate</label><select id="evClimate" class="ev-inp" data-ev-dsel="adler.dress.climate">${clOpts}</select></span>`)
|
|
138
|
+
+ trow('Public holidays in ' + place.name, hol.filter((e) => e.kind === 'on').length + ' days' + (quiet.length ? ' · ' + quiet.join(', ') + (quiet.length > 1 ? ' stay' : ' stays') + ' quiet' : ''), dsw('adler.dress.holidays', P['adler.dress.holidays'], 'Public holidays'))
|
|
139
|
+
+ trow('Seasons', sea, dsw('adler.dress.seasons', P['adler.dress.seasons'], 'Seasons'))
|
|
140
|
+
+ trow('Space and science days', 'Moon landing, Earth Day, Pi Day', dsw('adler.dress.science', P['adler.dress.science'], 'Space and science days'))
|
|
141
|
+
+ trow('School days', place.country === 'SG' ? "Teachers' Day, Children's Day" : "Singapore's Teachers' Day and Children's Day", dsw('adler.dress.school', P['adler.dress.school'], 'School days'))
|
|
142
|
+
+ trow('More festivals and national days', moreSub, `<button type="button" class="ev-ib" data-ev-dress="more" aria-expanded="${T.more}" aria-controls="evMore" aria-label="More festivals and national days" title="More festivals">${svg(T.more ? ICON.down : CHEV, 18)}</button>`)
|
|
143
|
+
+ (T.more ? `<div class="ev-dr-more" id="evMore">${more.map((x) => trow(x.name, x.here ? '' : 'Kept elsewhere', sw(x.on, `data-ev-dday="${x.key}"`, x.name))).join('')}</div>` : '')
|
|
144
|
+
+ trow('Big sports', (P['adler.dress.sports'] ? 'On' : 'Off') + ' · a scarf in your colours. No team marks', `<span class="ev-dr-pl">${colSel(0)}${colSel(1)}</span>${dsw('adler.dress.sports', P['adler.dress.sports'], 'Big sports')}`)
|
|
145
|
+
+ trow('Exam season', 'PSLE, O and A levels, late Sep to mid Nov', dsw('adler.dress.exam', P['adler.dress.exam'], 'Exam season'))
|
|
146
|
+
+ trow('Your PMOS day', 'A year since you started', dsw('adler.dress.pmosday', P['adler.dress.pmosday'] !== false, 'Your PMOS day'))
|
|
147
|
+
+ trow('Your birthday', b ? 'First in line on the day' : 'Not added', bday)
|
|
148
|
+
+ `<div class="ev-dr-wear"><div class="ev-trow"><b class="ev-grow">Wear now</b><span class="ev-small ev-mut">until midnight</span></div><div class="ev-dr-wbtns">${wear('movie', 'Movie night')}${wear('music', 'Music')}</div></div>`;
|
|
80
149
|
}
|
|
81
150
|
const firstLine = () => { const c = changes().find((e) => e.v === latest()); const p = c && c.prs && c.prs[0]; return p ? (p.t || p.s || '') : ''; };
|
|
82
151
|
/* each source's last read (FmA3Settings): the name, "read 09:41", the amber dot and ↻ on a stale or failed one */
|
|
@@ -161,6 +230,10 @@ function mount() {
|
|
|
161
230
|
// the dialog is modal: Escape closes it even when focus is outside it (a click on the scrim's edge, a redraw)
|
|
162
231
|
document.addEventListener('keydown', (e) => { if (e.key === 'Escape' && T.el && !T.el.hidden && !T.el.contains(e.target)) { e.preventDefault(); e.stopPropagation(); closeSettings(); } }, true);
|
|
163
232
|
T.el.addEventListener('change', async (e) => {
|
|
233
|
+
const x = e.target;
|
|
234
|
+
if (x.matches('[data-ev-dsel]')) { await saveDress(x.dataset.evDsel, x.value); return; }
|
|
235
|
+
if (x.matches('[data-ev-dcol]')) { const c = [...(dp()['adler.dress.colors'] || ['blue', 'green'])]; c[Number(x.dataset.evDcol)] = x.value; await saveDress('adler.dress.colors', c); return; }
|
|
236
|
+
if (x.matches('[data-ev-bday]')) { if (!/^\d{4}-\d{2}-\d{2}$/.test(x.value)) return; T.bday = false; await saveDress('adler.dress.birthday', x.value.slice(5), 'Saved. He dresses up on your birthday.'); return; }
|
|
164
237
|
if (!e.target.matches('[data-ev-day]')) return;
|
|
165
238
|
const r = await pmPost('/api/settings', { key: 'time.workEnd', value: Number(e.target.value) });
|
|
166
239
|
T.msg = r && r.ok ? 'Saved. The end-of-day card shows from ' + pad(Number(e.target.value)) + ':00.' : (r && r.error) || 'Not saved.';
|
|
@@ -172,11 +245,21 @@ function mount() {
|
|
|
172
245
|
}
|
|
173
246
|
async function press(e) {
|
|
174
247
|
const t = e.target.closest('a[data-ev-sec], button'); if (!t) return;
|
|
175
|
-
if (t.dataset.evSec) { e.preventDefault(); T.sec = t.dataset.evSec; T.msg = ''; draw(); const f = T.el.querySelector(`[data-ev-sec="${T.sec}"]`); if (f) f.focus(); return; }
|
|
248
|
+
if (t.dataset.evSec) { e.preventDefault(); T.sec = t.dataset.evSec; T.msg = ''; T.dress = false; draw(); const f = T.el.querySelector(`[data-ev-sec="${T.sec}"]`); if (f) f.focus(); return; }
|
|
176
249
|
if ('evClose' in t.dataset) { closeSettings(); return; }
|
|
177
250
|
if (t.dataset.evGo) { T.sec = t.dataset.evGo; draw(); return; }
|
|
178
251
|
if (t.dataset.evSeg === 'theme') { const M = await import('./cozy-nav.js'); M.setTheme(t.dataset.v); draw(); return; }
|
|
179
252
|
if (t.dataset.evSeg && t.dataset.evSeg.startsWith('adler.')) { const r = await AD.savePref(pmPost, t.dataset.evSeg, t.dataset.v); T.msg = r && r.ok ? 'Saved.' : (r && r.error) || 'Not saved.'; draw(); return; }
|
|
253
|
+
if (t.dataset.evDress) {
|
|
254
|
+
const a = t.dataset.evDress;
|
|
255
|
+
if (a === 'open' || a === 'back') { T.dress = a === 'open'; T.more = false; T.bday = false; T.msg = ''; draw(); const f = T.el.querySelector(a === 'open' ? '[data-ev-dress="back"]' : '[data-ev-dress="open"]'); if (f) f.focus(); return; }
|
|
256
|
+
if (a === 'more') { T.more = !T.more; draw(); return; }
|
|
257
|
+
if (a === 'bday') { T.bday = true; draw(); const f = T.el.querySelector('#evBday'); if (f) f.focus(); return; }
|
|
258
|
+
if (a === 'bday-off') { T.bday = false; await saveDress('adler.dress.birthday', '', 'Birthday removed.'); return; }
|
|
259
|
+
}
|
|
260
|
+
if (t.dataset.evDsw) { const k = t.dataset.evDsw, P = dp(), v = !(k === 'adler.dress.on' || k === 'adler.dress.pmosday' ? P[k] !== false : P[k] === true); await saveDress(k, v); return; }
|
|
261
|
+
if (t.dataset.evDday) { const P = dp(), x = SE.moreDays(P).find((y) => y.key === t.dataset.evDday); if (x) await saveDress('adler.dress.days', { ...(P['adler.dress.days'] || {}), [x.key]: !x.on }); return; }
|
|
262
|
+
if (t.dataset.evWear) { const P = dp(), k = t.dataset.evWear, w = P['adler.dress.wear'], worn = !!(w && w.key === k && w.day === SE.wearNow(k, Date.now(), P).value.day); const r = SE.wearNow(worn ? '' : k, Date.now(), P); await saveDress(r.key, r.value, worn ? 'Taken off.' : 'He wears it until midnight.'); return; }
|
|
180
263
|
if ('evImpact' in t.dataset) {
|
|
181
264
|
const on = !impactOn(), r = await pmPost('/api/settings', { key: 'impact.on', value: on });
|
|
182
265
|
if (r && r.ok) { const x = T.set && Array.isArray(T.set.settings) ? T.set.settings.find((y) => y.key === 'impact.on') : null; if (x) x.value = on; window.dispatchEvent(new CustomEvent('pmos:impact', { detail: { on } })); }
|
|
@@ -280,8 +363,8 @@ async function load() {
|
|
|
280
363
|
}
|
|
281
364
|
export function openSettings(section) {
|
|
282
365
|
const el = mount();
|
|
283
|
-
if (section && BODY[section]) T.sec = section;
|
|
284
|
-
if (el.hidden) { const ae = document.activeElement; T.back = ae && ae !== document.body ? ae : null; T.ws = null; T.src = null; T.msg = ''; T.phase = ''; T.fresh = null; T.note = {}; }
|
|
366
|
+
if (section === 'dress') { T.sec = 'adler'; T.dress = true; } else if (section && BODY[section]) { T.sec = section; T.dress = false; }
|
|
367
|
+
if (el.hidden) { const ae = document.activeElement; T.back = ae && ae !== document.body ? ae : null; T.ws = null; T.src = null; T.msg = ''; T.phase = ''; T.fresh = null; T.note = {}; T.dset = {}; }
|
|
285
368
|
el.hidden = false; document.getElementById('evStScrim').hidden = false; el.setAttribute('data-esc-layer', '');
|
|
286
369
|
draw();
|
|
287
370
|
const f = el.querySelector('[aria-current="page"]'); if (f) f.focus();
|
|
@@ -525,3 +525,18 @@ body.cz-home .hm-hd.hv-bar > .hv-hi { flex: 1 0 auto; max-width: 100%; }
|
|
|
525
525
|
|
|
526
526
|
/* the weekly review done for the week (batch 17 item 4-B, AdM1): Adler calm beside the words */
|
|
527
527
|
.rv-done { display: flex; align-items: center; gap: 10px; }
|
|
528
|
+
|
|
529
|
+
/* The folded rail's card (batch 18 item 14, FlA1–FlA5): beside the pressed tile, Home's popover look, Home's own rows inside. The pill's
|
|
530
|
+
* sessions open in place under the row (.hv-rcs), not as a second popover. Its left and top are set from the tile (home-app.js). */
|
|
531
|
+
.hv-rc { position: fixed; z-index: 60; width: 372px; max-width: calc(100vw - 96px); max-height: calc(100vh - 24px); overflow-y: auto; background: var(--cz-card); border-radius: 20px; padding: 6px; box-shadow: 0 24px 50px -20px rgba(42,46,53,.4), 0 0 0 1px var(--cz-hair); box-sizing: border-box; text-align: left; }
|
|
532
|
+
.hv-rch { display: flex; align-items: center; gap: 6px; min-height: 44px; }
|
|
533
|
+
.hv-rch .hv-pt { flex: 0 1 auto; gap: 8px; }
|
|
534
|
+
.hv-rch .hv-pt .hv-tl { width: 26px; height: 26px; border-radius: 8px; }
|
|
535
|
+
.hv-rch .hv-pt > svg { color: var(--cz-ink3); flex: none; }
|
|
536
|
+
.hv-rch .hv-msd { margin-left: auto; }
|
|
537
|
+
.hv-rch .hv-ib { margin-left: auto; flex: none; }
|
|
538
|
+
.hv-rch .hv-msd + .hv-ib { margin-left: 2px; }
|
|
539
|
+
.hv-rcb .hm-none { margin: 6px 10px 10px; }
|
|
540
|
+
.hv-rcs { margin: 0 0 4px; padding: 4px; background: color-mix(in srgb, var(--cz-well) 55%, var(--cz-card)); border-radius: 14px; }
|
|
541
|
+
.hv-rcs .hv-r::before { display: none; }
|
|
542
|
+
.hv-rcs .hv-r.safe { background: var(--cz-bluebg); border-radius: 14px; }
|
|
@@ -67,7 +67,8 @@
|
|
|
67
67
|
* word press, only where a decision has two answers (Return it | Keep it as is).
|
|
68
68
|
* czSections([{ id, title, count, open, render | html, tail? }], { key }) → the folding rows. A row folds and unfolds in place, and the fold
|
|
69
69
|
* is remembered per key and id (localStorage, a private window forgets it). render(): a string of markup, called once when drawn.
|
|
70
|
-
* widthOf(kind) · setWidth(px) · wide(on?) · railOn() for the page and the tests
|
|
70
|
+
* widthOf(kind) · setWidth(px) · wide(on?) · railOn() for the page and the tests; railCard(fn) · railSync(key?) · keepWide() for a page
|
|
71
|
+
* that draws a card for a rail tile (Home).
|
|
71
72
|
* The look is in cozy-vw-shell.css (loaded here once) over cozy.css (.cz-vw…). The old #dlg path (premium-viewer.js) is separate. */
|
|
72
73
|
import { czPlaceholder } from './cozy-placeholder.js';
|
|
73
74
|
|
|
@@ -112,7 +113,7 @@ const isPhone = () => typeof innerWidth === 'number' && innerWidth <= PHONE;
|
|
|
112
113
|
const onHome = () => typeof document !== 'undefined' && !!document.body && document.body.classList.contains('cz-home');
|
|
113
114
|
const kindKey = (k) => String(k || 'item').trim().toLowerCase().replace(/^file · .*/, 'file').replace(/[^a-z0-9]+/g, '-').slice(0, 40) || 'item';
|
|
114
115
|
|
|
115
|
-
const V = { el: null, cur: null, back: null, subs: [], stack: [], fwd: [], wide: false, rail: false, w: 0, drill: false, over: false };
|
|
116
|
+
const V = { el: null, cur: null, back: null, subs: [], stack: [], fwd: [], wide: false, rail: false, w: 0, drill: false, over: false, card: null, railKey: null, hold: 0 };
|
|
116
117
|
|
|
117
118
|
/** "PRD" over "PRD", or "File · plans/x.md" over "x.md": the kind is left out when it only repeats the title */
|
|
118
119
|
const sameAs = (kind, title) => { const k = String(kind || '').trim().toLowerCase().replace(/^file · /, ''), t = String(title || '').trim().toLowerCase(); return !!t && (k === t || k.split('/').pop() === t || k.split('/').pop().replace(/\.[a-z]+$/, '') === t); };
|
|
@@ -132,9 +133,11 @@ export function headHtml(it) {
|
|
|
132
133
|
const phone = !!o.phone;
|
|
133
134
|
const kind = o.kind && !sameAs(o.kind, o.title) ? `<p class="cz-vw-kind">${esc(o.kind)}</p>` : '';
|
|
134
135
|
const disc = o.discuss && (!o.home || o.discussHome) ? ib('discuss', 'Discuss in chat', P.chat) : '';
|
|
135
|
-
|
|
136
|
+
// a press marked menu (the initiative's Dashboard, batch 18 item 1) goes into ⋯ on a phone, so the title keeps the room
|
|
137
|
+
const inMenu = phone && (o.presses || []).some((x) => x && x.menu && x.act && x.label);
|
|
138
|
+
const more = inMenu || typeof o.more === 'function' || (Array.isArray(o.more) && o.more.some((m) => m && !m.sep)) || o.url ? ib('more', 'More', P.more, ' aria-haspopup="menu" aria-expanded="false"') : '';
|
|
136
139
|
const add = o.add && o.add.label && !phone ? ib('add', o.add.label, P.add) : '';
|
|
137
|
-
const own = (o.presses || []).filter((x) => x && x.act && x.label).map((x) => x.solid
|
|
140
|
+
const own = (o.presses || []).filter((x) => x && x.act && x.label && !(phone && x.menu)).map((x) => x.solid
|
|
138
141
|
? `<button type="button" class="cz-vw-pri${x.text && !phone ? '' : ' i'}${x.blue ? ' blue' : ''}" data-cz-vw="press" data-cz-vw-p="${esc(x.act)}" aria-label="${esc(x.label)}" title="${esc(x.label)}">${svg(path(x.icon), 15, 2.2)}${x.text && !phone ? `<span>${esc(x.text)}</span>` : ''}</button>`
|
|
139
142
|
: `<button type="button" class="cz-vw-ib" data-cz-vw="press" data-cz-vw-p="${esc(x.act)}" aria-label="${esc(x.label)}" title="${esc(x.label)}"${x.pressed != null ? ` aria-pressed="${x.pressed ? 'true' : 'false'}"` : ''}>${svg(path(x.icon), 18)}</button>`).join('');
|
|
140
143
|
const sub = o.sub ? `<p class="cz-vw-sub">${esc(o.sub)}</p>` : '';
|
|
@@ -143,7 +146,7 @@ export function headHtml(it) {
|
|
|
143
146
|
+ (o.fwdTo ? ib('fwd', 'Forward to ' + o.fwdTo, P.fwd) : '')
|
|
144
147
|
+ (o.check ? `<button type="button" class="cz-vw-tile cz-vw-chk s-${esc(o.check.state || 'todo')}" data-cz-vw="press" data-cz-vw-p="check" aria-label="${esc(o.check.label || 'Mark done')}" title="${esc(o.check.title || o.check.label || 'Mark done')}"${o.check.disabled ? ' disabled' : ''}><span class="bx"></span></button>`
|
|
145
148
|
: `<span class="cz-vw-tile" aria-hidden="true">${svg(path(o.icon), 17)}</span>`)
|
|
146
|
-
+ (o.renaming ? renHtml(o) : `<div class="cz-vw-t">${kind}<h3 class="cz-vw-title${chip ? ' has-chip' : ''}" id="czVwTitle">${o.rename ? `<button type="button" class="cz-vw-rn" data-cz-vw-rn aria-label="${esc('Rename ' + (o.title || ''))}" title="Rename">${esc(o.title || '')}</button>` : chip ? `<span class="cz-vw-tt">${esc(o.title || '')}</span>` : esc(o.title || '')}${chip}</h3>${sub}</div>`)
|
|
149
|
+
+ (o.renaming ? renHtml(o) : `<div class="cz-vw-t">${kind}<h3 class="cz-vw-title${chip ? ' has-chip' : ''}${o.wrap ? ' wrap' : ''}" id="czVwTitle">${o.rename ? `<button type="button" class="cz-vw-rn" data-cz-vw-rn aria-label="${esc('Rename ' + (o.title || ''))}" title="Rename">${esc(o.title || '')}</button>` : chip ? `<span class="cz-vw-tt">${esc(o.title || '')}</span>` : esc(o.title || '')}${chip}</h3>${sub}</div>`)
|
|
147
150
|
+ disc + own + add + more
|
|
148
151
|
+ (phone ? '' : ib('wide', o.isWide ? 'Back to the side' : 'Open wide', o.isWide ? P.side : P.wide, ` aria-pressed="${o.isWide ? 'true' : 'false'}"`))
|
|
149
152
|
+ (phone ? '' : `<button type="button" class="cz-vw-ib" data-cz-vw="close" aria-label="Close the viewer" title="Close">${svg(P.close, 18)}</button>`);
|
|
@@ -229,8 +232,11 @@ function setRail(on) {
|
|
|
229
232
|
const list = listEl();
|
|
230
233
|
if (!on && !V.rail) return;
|
|
231
234
|
if (on && !V.rail && list) V.lw = list.offsetWidth;
|
|
235
|
+
const was = V.rail;
|
|
232
236
|
V.rail = !!on && !!list;
|
|
233
237
|
document.body.classList.toggle('cz-vw-rail', V.rail);
|
|
238
|
+
if (!V.rail) V.railKey = null;
|
|
239
|
+
if (was !== V.rail) document.dispatchEvent(new CustomEvent('cz:vw-rail', { detail: { on: V.rail } })); // a page's rail card closes with the rail
|
|
234
240
|
if (!list) return;
|
|
235
241
|
let bar = list.querySelector(':scope > .cz-vw-railbar');
|
|
236
242
|
if (!V.rail) { if (bar) bar.remove(); return; }
|
|
@@ -240,23 +246,46 @@ function setRail(on) {
|
|
|
240
246
|
bar.addEventListener('click', (e) => {
|
|
241
247
|
const b = e.target.closest('[data-cz-vw-rail]'); if (!b) return;
|
|
242
248
|
if (b.dataset.czVwRail === 'show') { V.wide = false; apply(Math.min(V.w, sideMax())); redraw(); return; }
|
|
243
|
-
// a group's tile: the
|
|
249
|
+
// a group's tile: the page's card of that group's rows, beside the tile (batch 18 item 14, FlA1); the rail and the Viewer stay
|
|
250
|
+
if (V.card) { V.card(b.dataset.czVwRail, b, e.detail === 0); return; }
|
|
251
|
+
// a page without a card: the list comes back, at that group
|
|
244
252
|
const src = list.querySelector('[data-cz-rail-tile="' + CSS.escape(b.dataset.czVwRail) + '"]');
|
|
245
253
|
V.wide = false; apply(Math.min(V.w, sideMax())); redraw();
|
|
246
254
|
if (src && src.scrollIntoView) src.scrollIntoView({ block: 'nearest' });
|
|
247
255
|
});
|
|
248
256
|
list.prepend(bar);
|
|
249
257
|
}
|
|
250
|
-
|
|
251
|
-
const tiles = [...list.querySelectorAll('[data-cz-rail-tile]')].slice(0, 8);
|
|
252
|
-
const box = bar.querySelector('.cz-vw-railtiles'); box.innerHTML = '';
|
|
253
|
-
tiles.forEach((t) => { // a copy of the tile itself (its tint, initials and dot), in a press that names the group
|
|
254
|
-
const nm = t.dataset.czRailName || t.textContent.trim();
|
|
255
|
-
const btn = document.createElement('button'); btn.type = 'button'; btn.className = 'cz-vw-railtile'; btn.dataset.czVwRail = t.dataset.czRailTile;
|
|
256
|
-
btn.setAttribute('aria-label', 'Show the list at ' + nm); btn.title = nm;
|
|
257
|
-
const c = t.cloneNode(true); c.removeAttribute('data-cz-rail-tile'); c.removeAttribute('data-cz-rail-name'); btn.appendChild(c); box.appendChild(btn);
|
|
258
|
-
});
|
|
258
|
+
railTiles(list, bar);
|
|
259
259
|
}
|
|
260
|
+
/** The rail's tiles: the groups of the list mark their tile with data-cz-rail-tile="<id>" and data-cz-rail-name, and the rail shows those
|
|
261
|
+
* tiles, nothing else. data-cz-rail-here: that group holds what is open, and its tile gets a blue bar (batch 18 item 14, FlA4After). */
|
|
262
|
+
function railTiles(list, bar) {
|
|
263
|
+
const tiles = [...list.querySelectorAll('[data-cz-rail-tile]')].slice(0, 8);
|
|
264
|
+
const box = bar.querySelector('.cz-vw-railtiles');
|
|
265
|
+
const sig = tiles.map((t) => t.outerHTML).join('') + '|' + !!V.card;
|
|
266
|
+
if (box.__sig !== sig) {
|
|
267
|
+
box.__sig = sig; box.innerHTML = '';
|
|
268
|
+
tiles.forEach((t) => { // a copy of the tile itself (its tint, initials and dot), in a press that names the group
|
|
269
|
+
const nm = t.dataset.czRailName || t.textContent.trim(), here = t.hasAttribute('data-cz-rail-here');
|
|
270
|
+
const btn = document.createElement('button'); btn.type = 'button'; btn.className = 'cz-vw-railtile' + (here ? ' here' : ''); btn.dataset.czVwRail = t.dataset.czRailTile;
|
|
271
|
+
btn.setAttribute('aria-label', (V.card ? nm + (here ? ' (open)' : '') + '. Show its initiatives' : 'Show the list at ' + nm)); btn.title = nm;
|
|
272
|
+
if (V.card) btn.setAttribute('aria-haspopup', 'dialog');
|
|
273
|
+
const c = t.cloneNode(true); c.removeAttribute('data-cz-rail-tile'); c.removeAttribute('data-cz-rail-name'); c.removeAttribute('data-cz-rail-here'); btn.appendChild(c); box.appendChild(btn);
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
box.querySelectorAll('.cz-vw-railtile').forEach((b) => { const on = b.dataset.czVwRail === V.railKey; b.classList.toggle('on', on); if (V.card) b.setAttribute('aria-expanded', String(on)); });
|
|
277
|
+
}
|
|
278
|
+
/** A page that draws a card for a rail tile (Home): fn(key, tile, byKey) on a tile's press, in place of bringing the list back. */
|
|
279
|
+
export function railCard(fn) { V.card = typeof fn === 'function' ? fn : null; railSync(); }
|
|
280
|
+
/** The tile whose card is open (null: none): its ring and aria-expanded. The page calls it after a redraw of its list, so the rail's tiles
|
|
281
|
+
* follow the list (a new "here" bar, a dot). */
|
|
282
|
+
export function railSync(key) {
|
|
283
|
+
if (key !== undefined) V.railKey = key || null;
|
|
284
|
+
const list = listEl(), bar = V.rail && list && list.querySelector(':scope > .cz-vw-railbar');
|
|
285
|
+
if (bar) railTiles(list, bar);
|
|
286
|
+
}
|
|
287
|
+
/** The next open() keeps the Viewer as wide as it is and the rail folded (a pick from the rail's card, FlA4After). */
|
|
288
|
+
export function keepWide() { V.hold = Date.now() + 2000; }
|
|
260
289
|
const sideMax = () => { const r = room(); return r.float ? r.side : Math.max(MIN, r.side); };
|
|
261
290
|
/** Set the width in px: past what the chat leaves, the list folds to a rail first; never under 420 or over about 70%. */
|
|
262
291
|
function apply(px) {
|
|
@@ -319,6 +348,8 @@ function moreMenu(b) {
|
|
|
319
348
|
const old = V.el.querySelector('.cz-vw-menu');
|
|
320
349
|
if (old) { old.remove(); b.setAttribute('aria-expanded', 'false'); return; }
|
|
321
350
|
const items = ((typeof V.cur.more === 'function' ? V.cur.more() : V.cur.more) || []).filter(Boolean).slice(); // a function is asked each time ⋯ opens, so its notes are current
|
|
351
|
+
// on a phone the presses marked menu lead the menu (they left the header)
|
|
352
|
+
if (V.ph) { const mp = (V.cur.presses || []).filter((x) => x && x.menu && x.act && x.label); if (mp.length) items.unshift(...mp.map((x) => ({ label: x.label, icon: x.icon, on: () => { if (typeof V.cur.onPress === 'function') V.cur.onPress(x.act, b); } })), { sep: true }); }
|
|
322
353
|
if (V.cur.url) { // the item's own address looks back, so it goes before the red stop-or-remove group, which stays last
|
|
323
354
|
const at = items.findIndex((x) => x && x.danger), tab = { label: V.cur.full ? 'Open in full' : 'Open in a new tab', on: () => window.open(V.cur.url, '_blank', 'noopener') };
|
|
324
355
|
if (at < 0) items.push({ sep: true }, tab); else items.splice(at > 0 && items[at - 1].sep ? at - 1 : at, 0, { sep: true }, tab);
|
|
@@ -493,7 +524,7 @@ export function open(it) {
|
|
|
493
524
|
V.drill = false; H.adopt = false;
|
|
494
525
|
const sameKind = V.cur && kindKey(V.cur.kind) === kindKey(o.kind);
|
|
495
526
|
leave();
|
|
496
|
-
V.cur = { id: o.id == null ? null : String(o.id), kind: o.kind || '', title: o.title || '', icon: o.icon, url: o.url || '', full: !!o.full, onClose: o.onClose, more: o.more, discuss: o.discuss, discussHome: !!o.discussHome, add: o.add || null, sub: o.sub || '', check: o.check || null, presses: o.presses || null, chip: o.chip && (o.chip.n > 0 || o.chip.looking) ? o.chip : null, onPress: o.onPress, guard: o.guard, rename: o.rename && typeof o.rename.save === 'function' ? o.rename : null, args: o };
|
|
527
|
+
V.cur = { id: o.id == null ? null : String(o.id), kind: o.kind || '', title: o.title || '', icon: o.icon, url: o.url || '', full: !!o.full, onClose: o.onClose, more: o.more, discuss: o.discuss, discussHome: !!o.discussHome, add: o.add || null, sub: o.sub || '', check: o.check || null, presses: o.presses || null, wrap: !!o.wrap, chip: o.chip && (o.chip.n > 0 || o.chip.looking) ? o.chip : null, onPress: o.onPress, guard: o.guard, rename: o.rename && typeof o.rename.save === 'function' ? o.rename : null, args: o };
|
|
497
528
|
el.setAttribute('aria-label', 'Viewer: ' + (o.kind || o.title || 'item'));
|
|
498
529
|
redraw();
|
|
499
530
|
el.querySelectorAll('.cz-vw-menu,.cz-vw-trail').forEach((m) => m.remove());
|
|
@@ -502,7 +533,8 @@ export function open(it) {
|
|
|
502
533
|
body.className = 'cz-vw-body'; body.onclick = null; body.oninput = null; body.onchange = null; body.onkeydown = null; // what one item's render added to the body does not reach the next
|
|
503
534
|
const wasHidden = el.hidden;
|
|
504
535
|
el.hidden = false;
|
|
505
|
-
|
|
536
|
+
const hold = V.hold > Date.now() && !wasHidden && (V.wide || V.rail); V.hold = 0;
|
|
537
|
+
if (!hold && !(sameKind && !wasHidden && (V.wide || V.rail))) { const k = widthOf(o.kind); V.wide = false; apply(k || room().def); redraw(); }
|
|
506
538
|
if (typeof o.render === 'function') o.render(body); else if (o.html) body.innerHTML = o.html;
|
|
507
539
|
emit();
|
|
508
540
|
if (isPhone()) el.focus();
|
|
@@ -658,4 +690,4 @@ if (typeof window !== 'undefined' && typeof window.addEventListener === 'functio
|
|
|
658
690
|
window.addEventListener('popstate', popped);
|
|
659
691
|
try { H.adopt = !!(history.state && history.state.czvw); } catch { H.adopt = false; } // back here from another page, or a reload: the first open takes this entry
|
|
660
692
|
}
|
|
661
|
-
if (typeof window !== 'undefined') window.czViewer = { open, close, back, forward, trail, replaceUrl, drill, setPresses, setChip, setCheck, isOpen, current, body, onChange, placeholder, retitle, czSummary, czSections, widthOf, setWidth, wide, railOn, ICONS };
|
|
693
|
+
if (typeof window !== 'undefined') window.czViewer = { open, close, back, forward, trail, replaceUrl, drill, setPresses, setChip, setCheck, isOpen, current, body, onChange, placeholder, retitle, czSummary, czSections, widthOf, setWidth, wide, railOn, railCard, railSync, keepWide, ICONS };
|
|
@@ -222,3 +222,7 @@ body.cz-vw-rail [data-cz-vw-list] > :not(.cz-vw-railbar), body.cz-vw-rail #hmLis
|
|
|
222
222
|
.nv-facts dt { color: var(--cz-ink3); font-size: var(--fs-2); }
|
|
223
223
|
.nv-facts dd { margin: 0; overflow-wrap: anywhere; }
|
|
224
224
|
.nv-rev .czs-cv { align-self: center; font-size: var(--fs-4); }
|
|
225
|
+
/* a tile whose card is open has a ring; the tile of the group that holds what is open has a blue bar on its left (batch 18 item 14) */
|
|
226
|
+
.cz-vw-railtile { position: relative; }
|
|
227
|
+
.cz-vw-railtile.on { box-shadow: 0 0 0 2px var(--cz-blue); }
|
|
228
|
+
.cz-vw-railtile.here::before { content: ""; position: absolute; left: -10px; top: 50%; width: 4px; height: 20px; margin-top: -10px; border-radius: 2px; background: var(--cz-blue); }
|
|
@@ -110,6 +110,16 @@ html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
|
|
|
110
110
|
--cz-c-3a3018: #3A3018; --cz-c-e3c46a: #E3C46A; --cz-c-3a1f1d: #3A1F1D; --cz-c-f09a92: #F09A92;
|
|
111
111
|
/* the report's title slide (ReportPanel.dc.html): its gradient and the accent of its second line */
|
|
112
112
|
--cz-c-2546b8: #2546B8; --cz-c-1b3a9e: #1B3A9E; --cz-c-cfe88a: #CFE88A; --cz-c-9ab53c: #9AB53C;
|
|
113
|
+
/* the initiative as a mission (batch 18 item 1, pm/mission.js; XvpL5Rocket, XvpL6RocketDark) and Adler's wash on its card (XvpA1): the art's own colours */
|
|
114
|
+
--cz-c-e7ecfb: #E7ECFB; --cz-c-fff2e6: #FFF2E6; --cz-c-1b2340: #1B2340; --cz-c-2b2438: #2B2438; --cz-c-f6c46a: #F6C46A; --cz-c-ff8a4c: #FF8A4C;
|
|
115
|
+
--cz-c-b9c3e6: #B9C3E6; --cz-c-8fb8f2: #8FB8F2; --cz-c-5d86c8: #5D86C8; --cz-c-4f7fd0: #4F7FD0; --cz-c-dce4f6: #DCE4F6; --cz-c-3a4466: #3A4466;
|
|
116
|
+
--cz-c-a8b4d6: #A8B4D6; --cz-c-6b76a0: #6B76A0; --cz-c-b9d3f7: #B9D3F7; --cz-c-8c98c0: #8C98C0; --cz-c-8e99c4: #8E99C4; --cz-c-e2edd6: #E2EDD6;
|
|
117
|
+
--cz-c-26301f: #26301F; --cz-c-9cc98a: #9CC98A; --cz-c-55784a: #55784A; --cz-c-2f6feb: #2F6FEB; --cz-c-e3d8c6: #E3D8C6; --cz-c-3a352e: #3A352E;
|
|
118
|
+
--cz-c-bdb8b0: #BDB8B0; --cz-c-5a5752: #5A5752; --cz-c-a8b0c4: #A8B0C4; --cz-c-7e88a8: #7E88A8; --cz-c-8a6e4e: #8A6E4E; --cz-c-a08868: #A08868;
|
|
119
|
+
--cz-c-3a4152: #3A4152; --cz-c-c9ccd6: #C9CCD6; --cz-c-e9e4da: #E9E4DA; --cz-c-6fa0f0: #6FA0F0; --cz-c-9aa6bf: #9AA6BF; --cz-c-8e99b3: #8E99B3;
|
|
120
|
+
--cz-c-f4f1ec: #F4F1EC; --cz-c-e5605a: #E5605A; --cz-c-b9c1d6: #B9C1D6; --cz-c-5c6480: #5C6480; --cz-c-57b26b: #57B26B; --cz-c-c4cada: #C4CADA;
|
|
121
|
+
--cz-c-e8e4dc: #E8E4DC; --cz-c-6b7280: #6B7280; --cz-c-ffefd9: #FFEFD9; --cz-c-fbf4ea: #FBF4EA; --cz-c-edf5e5: #EDF5E5; --cz-c-e3f0da: #E3F0DA;
|
|
122
|
+
--cz-c-3b2e21: #3B2E21; --cz-c-2b2723: #2B2723; --cz-c-232d20: #232D20; --cz-c-1f2b1c: #1F2B1C;
|
|
113
123
|
/* Adler, Claude's face (feedback batch 16 item 2; pm/cozy-adler.js and cozy-adler.css name these, never a colour): Wawan's art. Fur, cream,
|
|
114
124
|
hoodie and sprout gradients, then the face, the props, and the scenes' skies and grounds. */
|
|
115
125
|
--ad-f0: #FFD995; --ad-f1: #F0B05A; --ad-f2: #C98030; --ad-c0: #FFFFFA; --ad-c1: #FCEFD8; --ad-c2: #EBD3AE;
|
|
@@ -123,6 +133,46 @@ html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
|
|
|
123
133
|
--ad-plain0: #F7F6F3; --ad-plain1: #F7F6F3; --ad-sun: #FFC85A; --ad-sunglow: #FFD27A; --ad-moon: #F4E9C6; --ad-firefly: #E9F59A;
|
|
124
134
|
--ad-raincloud: #C9CED6; --ad-drop: #9AA6B8; --ad-ground: #E4D8BC; --ad-groundn: #3A4466; --ad-grass: #8DB05A; --ad-leaf2: #9CC25A;
|
|
125
135
|
--ad-thinkdot: #A9B39A;
|
|
136
|
+
/* Adler dressed for the season (batch 18 item 8-B; adler-character/seasons-b/charms.py): the charms' colours, then each charm's sky (0, 1) and ground (g) */
|
|
137
|
+
--ad-k-amber1: #FFD27A; --ad-k-amber10: #B87628; --ad-k-amber2: #E9C38A; --ad-k-amber3: #FFB238; --ad-k-amber4: #F2963A; --ad-k-amber5: #E89A3C;
|
|
138
|
+
--ad-k-amber6: #D9973F; --ad-k-amber7: #B8945A; --ad-k-amber8: #C9963F; --ad-k-amber9: #C98434; --ad-k-blue1: #DCE3EC; --ad-k-blue10: #4894EA;
|
|
139
|
+
--ad-k-blue11: #6A8FB2; --ad-k-blue12: #5A7DB0; --ad-k-blue13: #2F5FB3; --ad-k-blue2: #C9D3DE; --ad-k-blue3: #A9D2EE; --ad-k-blue4: #C3CAD4;
|
|
140
|
+
--ad-k-blue5: #B9CBDC; --ad-k-blue6: #B9C6DA; --ad-k-blue7: #9AC4F0; --ad-k-blue8: #7FA6C9; --ad-k-blue9: #8A97AE; --ad-k-brown1: #A85E2A;
|
|
141
|
+
--ad-k-brown2: #8A6A3A; --ad-k-brown3: #6E4A2A; --ad-k-brown4: #3A2E22; --ad-k-gold1: #FFF1B8; --ad-k-gold10: #D4CFC3; --ad-k-gold11: #EBD79A;
|
|
142
|
+
--ad-k-gold12: #E9CD8C; --ad-k-gold13: #FFC85A; --ad-k-gold14: #F2C440; --ad-k-gold15: #E9B949; --ad-k-gold16: #C9A85E; --ad-k-gold17: #E0AE2A;
|
|
143
|
+
--ad-k-gold18: #C9962A; --ad-k-gold2: #F6E7C9; --ad-k-gold3: #E9E4D8; --ad-k-gold4: #F4E9C6; --ad-k-gold5: #F7E7B4; --ad-k-gold6: #FFE3A8;
|
|
144
|
+
--ad-k-gold7: #FFE9A0; --ad-k-gold9: #F2DBA0; --ad-k-green1: #A9C45A; --ad-k-green2: #9CC25A; --ad-k-green3: #7DAA45; --ad-k-green4: #6E9A45;
|
|
145
|
+
--ad-k-green6: #6E8E2E; --ad-k-green7: #5C8A2E; --ad-k-green8: #557A33; --ad-k-grey1: #9FA4AE; --ad-k-grey2: #8D929C; --ad-k-grey3: #5A6276;
|
|
146
|
+
--ad-k-grey4: #4E7A4A; --ad-k-grey5: #3F5A48; --ad-k-ink1: #2A2E35; --ad-k-ink2: #3A4466; --ad-k-ink3: #2E3A55; --ad-k-orange1: #F4B3A2;
|
|
147
|
+
--ad-k-orange2: #EE8A35; --ad-k-orange3: #E8743A; --ad-k-orange4: #C97A3E; --ad-k-orange5: #D27322; --ad-k-orange6: #B8642E;
|
|
148
|
+
--ad-k-paper1: #FFFBF0; --ad-k-paper10: #DDE7F6; --ad-k-paper11: #C9CDD4; --ad-k-paper12: #E3ECF6; --ad-k-paper2: #FFF8EA; --ad-k-paper3: #EAF4FF;
|
|
149
|
+
--ad-k-paper4: #F1F4EA; --ad-k-paper6: #F1F5E7; --ad-k-paper7: #E8ECF2; --ad-k-paper8: #FFF3D1; --ad-k-paper9: #E9E6F2; --ad-k-red1: #F7C9D4;
|
|
150
|
+
--ad-k-red10: #A8322C; --ad-k-red11: #7E2A2A; --ad-k-red2: #F4B3C2; --ad-k-red3: #E79AAE; --ad-k-red4: #C77A90; --ad-k-red5: #D9574F;
|
|
151
|
+
--ad-k-red6: #D9473F; --ad-k-red7: #C8473F; --ad-k-red8: #B8352E; --ad-k-red9: #9E3B3B; --ad-k-teal1: #9CC7D6; --ad-k-violet1: #8E7CC3;
|
|
152
|
+
--ad-newyear0: #FFF4E2; --ad-newyear1: #F8E3C0; --ad-newyearg: #E4D8BC; --ad-cny0: #FFF1E6; --ad-cny1: #F7DCCB; --ad-cnyg: #E4D8BC;
|
|
153
|
+
--ad-lantern0: #3A3350; --ad-lantern1: #4B3B58; --ad-lanterng: #5A4A6E;
|
|
154
|
+
--ad-valentine0: #FFF3F3; --ad-valentine1: #F8E3E6; --ad-valentineg: #E4D8BC;
|
|
155
|
+
--ad-ramadan0: #2E3A55; --ad-ramadan1: #3B4A66; --ad-ramadang: #4A5A72; --ad-raya0: #F3F7EA; --ad-raya1: #E3ECD2; --ad-rayag: #D7E2BC;
|
|
156
|
+
--ad-haji0: #F2F5EC; --ad-haji1: #E2E9D6; --ad-hajig: #D7E2BC; --ad-iwd0: #FFF9E6; --ad-iwd1: #F7EED0; --ad-iwdg: #E4D8BC;
|
|
157
|
+
--ad-pi0: #F7F3EA; --ad-pi1: #EFE8D8; --ad-pig: #E4D8BC; --ad-easter0: #F4F8EC; --ad-easter1: #E8F0DA; --ad-easterg: #CFE0B0;
|
|
158
|
+
--ad-earth0: #EEF6FB; --ad-earth1: #DDEBF4; --ad-earthg: #CFE0B0; --ad-labour0: #F6F4EE; --ad-labour1: #ECE8DE; --ad-labourg: #E4D8BC;
|
|
159
|
+
--ad-vesak0: #FDF6EC; --ad-vesak1: #EFE6F3; --ad-vesakg: #C9DDE8; --ad-dragonboat0: #EEF6F7; --ad-dragonboat1: #DCEBEE; --ad-dragonboatg: #B9DCE4;
|
|
160
|
+
--ad-natday0: #F3F6FB; --ad-natday1: #E4EBF5; --ad-natdayg: #E4D8BC; --ad-moon0: #1E2438; --ad-moon1: #2D3550; --ad-moong: #B9BDC6;
|
|
161
|
+
--ad-ndp0: #3B3F66; --ad-ndp1: #6A5578; --ad-ndpg: #4A4A70; --ad-teachers0: #F6F4EE; --ad-teachers1: #ECE8DE; --ad-teachersg: #E4D8BC;
|
|
162
|
+
--ad-midautumn0: #26304D; --ad-midautumn1: #3A4466; --ad-midautumng: #3A4466; --ad-exam0: #F4F3EF; --ad-exam1: #E9E7E1; --ad-examg: #E4D8BC;
|
|
163
|
+
--ad-children0: #EFF6FD; --ad-children1: #E1EDF9; --ad-childreng: #E4D8BC;
|
|
164
|
+
--ad-nightrace0: #1E2438; --ad-nightrace1: #2D3550; --ad-nightraceg: #2A3150;
|
|
165
|
+
--ad-halloween0: #4A3B66; --ad-halloween1: #6A4E7A; --ad-halloweeng: #56466E;
|
|
166
|
+
--ad-deepavali0: #3E2F55; --ad-deepavali1: #6B4560; --ad-deepavalig: #5A3E5E; --ad-thanks0: #FFF2DE; --ad-thanks1: #F5DFC0; --ad-thanksg: #E4D8BC;
|
|
167
|
+
--ad-hanukkah0: #EEF3FB; --ad-hanukkah1: #DEE7F5; --ad-hanukkahg: #E4D8BC;
|
|
168
|
+
--ad-christmas0: #F7F3EA; --ad-christmas1: #EDE6D6; --ad-christmasg: #E4D8BC;
|
|
169
|
+
--ad-dongzhi0: #F6F3EA; --ad-dongzhi1: #EEE9DC; --ad-dongzhig: #E4D8BC; --ad-pongal0: #FFF6E2; --ad-pongal1: #F6E6C4; --ad-pongalg: #E4D8BC;
|
|
170
|
+
--ad-football0: #EEF5E8; --ad-football1: #DCEBCF; --ad-footballg: #9CC27A; --ad-games0: #F2F6FB; --ad-games1: #E3ECF6; --ad-gamesg: #E8A07A;
|
|
171
|
+
--ad-movie0: #2A2333; --ad-movie1: #3B2F45; --ad-movieg: #3B2F45; --ad-music0: #F3EFF8; --ad-music1: #E6E0F0; --ad-musicg: #E4D8BC;
|
|
172
|
+
--ad-spring0: #FBF6F3; --ad-spring1: #F2E8E8; --ad-springg: #CFE0B0; --ad-summer0: #FFF3D6; --ad-summer1: #FBE3B0; --ad-summerg: #E4D8BC;
|
|
173
|
+
--ad-autumn0: #FFF2DE; --ad-autumn1: #F5DFC0; --ad-autumng: #E9C79A; --ad-winter0: #EEF3F8; --ad-winter1: #DDE6EF; --ad-winterg: #FFFFFF;
|
|
174
|
+
--ad-monsoon0: #E8EEF3; --ad-monsoon1: #D5DFE8; --ad-monsoong: #C9D6E2; --ad-pmosday0: #F7F6F3; --ad-pmosday1: #EFEDE8; --ad-pmosdayg: #E4D8BC;
|
|
175
|
+
--ad-birthday0: #FFF4E2; --ad-birthday1: #F8E3C0; --ad-birthdayg: #E4D8BC;
|
|
126
176
|
}
|
|
127
177
|
.cz {
|
|
128
178
|
--cz-ink: var(--cz-c-2a2e35); --cz-ink2: var(--cz-c-4a4f58); --cz-ink3: var(--cz-c-646a74);
|
|
@@ -139,6 +189,14 @@ html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
|
|
|
139
189
|
--cz-sans: 'Nunito', ui-sans-serif, system-ui, sans-serif;
|
|
140
190
|
--cz-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
|
|
141
191
|
--cz-done: var(--cz-c-1e449b); --cz-bubble: var(--cz-c-e8f1fb); --cz-solid: var(--cz-c-2f5fb3); --cz-onsolid: var(--cz-c-ffffff);
|
|
192
|
+
/* the mission (pm/mission.js) and Adler's wash on the initiative card: light, then the dark block's own */
|
|
193
|
+
--mi-s0: var(--cz-c-e7ecfb); --mi-s1: var(--cz-c-fff2e6); --mi-t1: var(--cz-c-ff8a4c); --mi-gold: var(--cz-c-f6c46a); --mi-star: var(--cz-c-b9c3e6);
|
|
194
|
+
--mi-pl: var(--cz-c-8fb8f2); --mi-pls: var(--cz-c-4f7fd0); --mi-pq: var(--cz-c-dce4f6); --mi-pqs: var(--cz-c-a8b4d6); --mi-spot: var(--cz-c-b9d3f7); --mi-qm: var(--cz-c-8c98c0);
|
|
195
|
+
--mi-gr: var(--cz-c-e2edd6); --mi-dn: var(--cz-c-9cc98a); --mi-nw: var(--cz-c-2f6feb); --mi-q: var(--cz-c-e3d8c6); --mi-late: var(--cz-c-d9773f); --mi-hold: var(--cz-c-bdb8b0);
|
|
196
|
+
--mi-dash: var(--cz-c-a8b0c4); --mi-pole: var(--cz-c-8a6e4e); --mi-line: var(--cz-c-3a4152); --mi-wh: var(--cz-c-ffffff); --mi-lens: var(--cz-c-6fa0f0); --mi-gh: var(--cz-c-6fa0f0);
|
|
197
|
+
--mi-pad: var(--cz-c-9aa6bf); --mi-rb: var(--cz-c-ffffff); --mi-fin: var(--cz-c-e5605a); --mi-path: var(--cz-c-b9c1d6); --mi-smoke: var(--cz-c-ffffff); --mi-ok: var(--cz-c-57b26b);
|
|
198
|
+
--mi-off: var(--cz-c-c4cada); --mi-td: var(--cz-c-2a2e35); --mi-pz: var(--cz-c-6b7280); --mi-glow: rgba(47,111,235,.25);
|
|
199
|
+
--iv-wash: linear-gradient(140deg, var(--cz-c-ffefd9) 0%, var(--cz-c-fbf4ea) 42%, var(--cz-c-edf5e5) 78%, var(--cz-c-e3f0da) 100%); --iv-washhr: rgba(111,140,90,.18);
|
|
142
200
|
}
|
|
143
201
|
.cz.dark, html.dark .cz, :root[data-theme="dark"] .cz {
|
|
144
202
|
--cz-ink: var(--cz-c-eceef1); --cz-ink2: var(--cz-c-c5c9d0); --cz-ink3: var(--cz-c-9ea4ad);
|
|
@@ -149,6 +207,11 @@ html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
|
|
|
149
207
|
--cz-done: var(--cz-c-9bc7f4); --cz-bubble: rgba(106,170,240,.14); --cz-solid: var(--cz-c-4894ea); --cz-onsolid: var(--cz-c-ffffff);
|
|
150
208
|
--cz-late: var(--cz-c-e8a07a); --cz-latebg: var(--cz-c-3a2418); --cz-ok: var(--cz-c-8fcf9c); --cz-okbg: var(--cz-c-1f3324);
|
|
151
209
|
--cz-risk: var(--cz-c-e3c46a); --cz-riskbg: var(--cz-c-3a3018); --cz-red: var(--cz-c-f09a92); --cz-redbg: var(--cz-c-3a1f1d);
|
|
210
|
+
--mi-s0: var(--cz-c-1b2340); --mi-s1: var(--cz-c-2b2438); --mi-star: var(--cz-c-ffffff); --mi-pl: var(--cz-c-5d86c8); --mi-pq: var(--cz-c-3a4466); --mi-pqs: var(--cz-c-6b76a0);
|
|
211
|
+
--mi-qm: var(--cz-c-8e99c4); --mi-gr: var(--cz-c-26301f); --mi-dn: var(--cz-c-55784a); --mi-q: var(--cz-c-3a352e); --mi-hold: var(--cz-c-5a5752); --mi-dash: var(--cz-c-7e88a8);
|
|
212
|
+
--mi-pole: var(--cz-c-a08868); --mi-line: var(--cz-c-c9ccd6); --mi-wh: var(--cz-c-e9e4da); --mi-gh: var(--cz-c-8fb8f2); --mi-pad: var(--cz-c-8e99b3); --mi-rb: var(--cz-c-f4f1ec);
|
|
213
|
+
--mi-path: var(--cz-c-5c6480); --mi-smoke: var(--cz-c-c9ccd6); --mi-off: var(--cz-c-7e88a8); --mi-td: var(--cz-c-e8e4dc); --mi-pz: var(--cz-c-c9ccd6);
|
|
214
|
+
--iv-wash: linear-gradient(140deg, var(--cz-c-3b2e21) 0%, var(--cz-c-2b2723) 45%, var(--cz-c-232d20) 80%, var(--cz-c-1f2b1c) 100%); --iv-washhr: rgba(220,190,140,.14);
|
|
152
215
|
}
|
|
153
216
|
body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); background: var(--cz-ground); background-attachment: fixed; -webkit-font-smoothing: antialiased; font-size: var(--fs-3); }
|
|
154
217
|
.cz .sky { display: none; }
|
|
@@ -254,6 +317,8 @@ body.cz { margin: 0; font-family: var(--cz-sans); color: var(--cz-ink); backgrou
|
|
|
254
317
|
.cz-vw-ib:hover:not(:disabled) { background: var(--cz-well); }
|
|
255
318
|
.cz-vw-ib:disabled { color: var(--cz-ink3); opacity: .45; cursor: not-allowed; }
|
|
256
319
|
@media (max-width: 760px) { .cz-vw-ib { width: 44px; height: 44px; } } /* 44 px targets on a phone */
|
|
320
|
+
/* a phone: a title marked wrap (the initiative, batch 18 item 1) takes two lines before it cuts */
|
|
321
|
+
@media (max-width: 760px) { .cz-vw-title.wrap, .cz-vw-title.wrap .cz-vw-rn { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; } }
|
|
257
322
|
.cz-vw-body { flex: 1; min-height: 0; overflow: auto; }
|
|
258
323
|
.cz-vw-body > .cz-ph { margin: 16px; }
|
|
259
324
|
/* a phone: the Viewer is the whole screen, and the place menu steps aside while it is open */
|
|
@@ -229,12 +229,14 @@ export function wireDash(body, h) {
|
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
/** One host's Dashboard state, for a view that already draws its work in the Viewer (the initiative view on the Board and on Home).
|
|
232
|
-
* o: { page ('initiative:<id>'), scope, ws, board (each a value or a function), vid (the Viewer item's id), VW, redraw(), toast(t), openReport(row), editNeeds(n), mdHtml()
|
|
232
|
+
* o: { page ('initiative:<id>'), scope, ws, board (each a value or a function), vid (the Viewer item's id), VW, redraw(), toast(t), openReport(row), editNeeds(n), mdHtml(),
|
|
233
|
+
* menu (on a phone the toggle sits in ⋯) }
|
|
233
234
|
* → { presses(), shows(), html(work), read(via), toggle(), wire(body) } */
|
|
234
235
|
export function dashHost(o) {
|
|
235
236
|
const x = { view: 'work', d: null, read: false, open: new Set() };
|
|
236
237
|
const W = () => (typeof o.ws === 'function' ? o.ws() : o.ws) || '', B = () => (typeof o.board === 'function' ? o.board() : o.board) || '';
|
|
237
|
-
|
|
238
|
+
// o.menu: on a phone the toggle goes into ⋯ (the initiative's page, batch 18 item 1)
|
|
239
|
+
const presses = () => (x.d ? [{ ...togglePress(x.view), menu: !!o.menu }] : []);
|
|
238
240
|
const shows = () => x.view === 'dash' && !!x.d;
|
|
239
241
|
// the body is drawn again only when it shows the dashboard, before or after: a read that lands on the Work view only adds the header icon,
|
|
240
242
|
// so the focus (a stage picker, a task being typed) stays where the PM left it
|