create-pmos 0.439.0 → 0.441.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/bin/create-pmos.js +5 -2
- 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/briefing-premium-adddoc-test.js +16 -13
- package/workspace/briefing-premium-insights-test.js +1 -1
- package/workspace/briefing-premium-products-test.js +4 -4
- package/workspace/briefing-premium-sources-test.js +2 -2
- package/workspace/briefing-premium-test.js +29 -23
- package/workspace/changelog.json +24 -0
- package/workspace/guide/core-documents.md +2 -2
- package/workspace/guide/data-freshness.md +7 -5
- package/workspace/guide/home.md +4 -1
- package/workspace/guide/horizon-scan.md +1 -1
- package/workspace/guide/settings.md +2 -2
- package/workspace/lib/agent-inbox.js +20 -2
- package/workspace/lib/briefing-premium-sources.js +3 -0
- package/workspace/lib/briefing-premium.js +37 -7
- package/workspace/lib/driver-cli.js +1 -1
- package/workspace/lib/driver-run.js +15 -1
- package/workspace/lib/driver.js +31 -2
- package/workspace/lib/goal-status.js +2 -1
- package/workspace/lib/headless.js +18 -1
- package/workspace/lib/kit-update.js +2 -2
- package/workspace/lib/metric-draft-runs.js +10 -4
- package/workspace/lib/news-for-you.js +24 -9
- package/workspace/lib/pm-idle.js +12 -0
- package/workspace/lib/refresh.js +17 -8
- package/workspace/lib/routes-core-docs.js +1 -1
- package/workspace/lib/routes-metric-drafts.js +2 -2
- package/workspace/lib/routes-news.js +15 -1
- package/workspace/lib/routes-phone-day.js +6 -4
- package/workspace/need-shot.js +57 -0
- package/workspace/news-viewers-test.js +183 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-core-doc-issue-test.js +9 -8
- package/workspace/premium-phone-card-test.js +9 -6
- package/workspace/public/pm/bd-ini-panel.js +4 -11
- package/workspace/public/pm/cozy-ev.css +29 -0
- package/workspace/public/pm/cozy-live-pill.css +6 -0
- package/workspace/public/pm/cozy-news.js +186 -22
- package/workspace/public/pm/cozy-today.css +5 -0
- package/workspace/public/pm/cozy-viewer.js +4 -3
- package/workspace/public/pm/cozy-vw-shell.css +49 -0
- package/workspace/public/pm/home-adddoc.js +46 -26
- package/workspace/public/pm/home-app.js +137 -115
- package/workspace/public/pm/home-day.js +15 -11
- package/workspace/public/pm/home-draft.js +35 -23
- package/workspace/public/pm/home-ini.js +2 -2
- package/workspace/public/pm/home-need.js +336 -0
- package/workspace/public/pm/home-phone-card.js +4 -2
- package/workspace/public/pm/home-today.js +2 -2
- package/workspace/public/pm/home-work.js +51 -4
- package/workspace/public/pm/okr-list.js +8 -4
- package/workspace/public/pm/premium-insights.js +6 -5
- package/workspace/public/pm/small-vw.js +128 -0
- package/workspace/public/premium-intelligence.html +1 -1
- package/workspace/server.js +20 -11
- package/workspace/skills/initiative-drive.skill +4 -1
- package/workspace/test-lists/batch18-asks.json +5 -0
- package/workspace/test-lists/news-viewers.json +13 -0
- package/workspace/test-lists/small-viewers.json +5 -0
- package/workspace/test-run.js +3 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
/* need-shot.js — screenshots of the asks in the Viewer (batch 18 item 2-A, OvA1Start … OvA12Edges) at 1440x900 and 390x844, light and dark,
|
|
4
|
+
* against the Briefing's fixture model with a source row and the owner and goal a record holds. Not a suite: a look at the page.
|
|
5
|
+
* OUT=<dir> names where the PNGs go (default: the state folder of this run). */
|
|
6
|
+
const fs = require('fs');
|
|
7
|
+
const path = require('path');
|
|
8
|
+
const { spawn } = require('child_process');
|
|
9
|
+
const { findBrowser } = require('./lib/find-browser');
|
|
10
|
+
const T = require('./test-run').configure({ name: 'need-shot' });
|
|
11
|
+
const B = require('./lib/briefing-premium.js');
|
|
12
|
+
const F = require('./fixtures/briefing-premium-facts.js');
|
|
13
|
+
const OUT = process.env.OUT || T.STATE_DIR;
|
|
14
|
+
|
|
15
|
+
function model() {
|
|
16
|
+
const M = B.build(F.facts());
|
|
17
|
+
const rows = M.list.rows;
|
|
18
|
+
const b = rows.find((r) => r.key === 'blocked:console-3-boards');
|
|
19
|
+
Object.assign(b.detail, { owner: 'pm:wawan', goal: { kind: 'kr', title: 'Lift premium sign-ups' } });
|
|
20
|
+
b.dialog.write.what = 'author the PRD (skills/core/prd.skill) with its done-criteria (D13), then set prd_path';
|
|
21
|
+
const nb = rows.find((r) => r.key === 'blocked:onboarding-scan');
|
|
22
|
+
delete nb.dialog.write;
|
|
23
|
+
rows.push({ kind: 'source', key: 'src:mail-1', title: 'Pricing copy sign-off', subject: 'Mail · Dion · mentions you', prepared: 'Sign off: the paywall copy', skip: 'Why now: copy freezes Thursday.',
|
|
24
|
+
product: 'Across products', from: ['brief:mail-1'], detail: { source: 'mail' },
|
|
25
|
+
dialog: { eye: 'Mail', say: 'Dion asks for your sign-off on the paywall copy before the Thursday freeze. Two lines changed since you last read it.', facts: [['Source', 'Mail'], ['From', 'Dion'], ['Asked', 'Sign off on the paywall copy'], ['Due', 'Thursday']], link: 'https://mail.example/t/1', linkLabel: 'Open in Mail', opts: [] } });
|
|
26
|
+
rows.push({ kind: 'source', key: 'src:mail-2', title: 'Budget question from Anna', subject: 'Mail · Anna Lee', skip: 'Why now: the budget closes Friday.', product: 'Across products', from: ['brief:mail-2'], detail: { source: 'mail' }, unread: { source: 'Mail', date: '2026-10-28' },
|
|
27
|
+
dialog: { eye: 'Mail', say: 'Anna asks which line the tooling cost goes under.', facts: [['From', 'Anna Lee']], link: 'https://mail.example/t/2', opts: [] } });
|
|
28
|
+
return M;
|
|
29
|
+
}
|
|
30
|
+
(async () => {
|
|
31
|
+
const { chromium } = require('playwright-core');
|
|
32
|
+
const srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
33
|
+
await T.waitForServer(T.BASE);
|
|
34
|
+
const browser = await chromium.launch({ executablePath: findBrowser() });
|
|
35
|
+
const M = model();
|
|
36
|
+
const errs = [];
|
|
37
|
+
const keys = (process.env.KEYS || 'blocked:console-3-boards,blocked:onboarding-scan,decision:premium-ux,decision:KC5,waited:reviews,src:mail-1,src:mail-2').split(',');
|
|
38
|
+
const sizes = process.env.SIZES === 'desk' ? [[1440, 900, 'desk']] : [[1440, 900, 'desk'], [390, 844, 'phone']];
|
|
39
|
+
for (const [w, h, name] of sizes) for (const theme of (process.env.THEMES || 'light,dark').split(',')) {
|
|
40
|
+
for (const key of keys) {
|
|
41
|
+
const ctx = await browser.newContext({ viewport: { width: w, height: h }, colorScheme: theme });
|
|
42
|
+
const body = JSON.stringify({ ok: true, model: M, as_of: Date.now() });
|
|
43
|
+
await ctx.route('**/api/briefing-premium?*', (r) => r.fulfill({ contentType: 'application/json', body }));
|
|
44
|
+
await ctx.route('**/api/briefing-premium', (r) => r.fulfill({ contentType: 'application/json', body }));
|
|
45
|
+
const p = await ctx.newPage();
|
|
46
|
+
p.on('pageerror', (e) => errs.push(name + ' ' + key + ': ' + e.message));
|
|
47
|
+
await p.goto(T.BASE + '/premium.html?theme=' + theme + '&open=' + encodeURIComponent(key));
|
|
48
|
+
await p.waitForSelector('#czViewer:not([hidden]) .nv', { timeout: 20000 }).catch(() => errs.push(name + ' ' + key + ': no ask Viewer'));
|
|
49
|
+
await p.waitForTimeout(600);
|
|
50
|
+
fs.mkdirSync(OUT, { recursive: true });
|
|
51
|
+
await p.screenshot({ path: path.join(OUT, 'need-' + key.replace(/[^a-z0-9]+/gi, '-') + '-' + name + '-' + theme + '.png') });
|
|
52
|
+
await ctx.close();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
console.log(errs.join('\n') || 'no page errors');
|
|
56
|
+
await browser.close(); srv.kill('SIGKILL'); T.killTmux(); process.exit(0);
|
|
57
|
+
})();
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
/* news-viewers-test.js — New for you's item Viewers and the Finished Viewer (feedback batch 18 items 2 and 2b, slice 2-B; canvas In
|
|
4
|
+
* development OvA5Overlap, OvA6Given, OvA7Drafted). A real server on a scratch repository (c3-scan-fixture.js). The real Home runs at
|
|
5
|
+
* 390 and 1440 wide; GET /api/news-for-you, /api/boards/initiative and /api/phone-day are answered in the browser, so each Viewer has
|
|
6
|
+
* one overlap note, one task given to the PM and one finished draft. The POSTs are caught and answered, never sent.
|
|
7
|
+
* O the overlap note · G a task given to you · F the Finished Viewer from Your day's Drafted for you · D dark and desk widths
|
|
8
|
+
* Set NEWS_VIEWER_SHOTS=<dir> to save screenshots. */
|
|
9
|
+
const fs = require('fs');
|
|
10
|
+
const path = require('path');
|
|
11
|
+
const { findBrowser } = require('./lib/find-browser');
|
|
12
|
+
require('./test-run').configure({ name: 'news-viewers' });
|
|
13
|
+
const Fx = require('./c3-scan-fixture.js');
|
|
14
|
+
|
|
15
|
+
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
16
|
+
const until = async (fn, ms = 15000, step = 100) => { const t0 = Date.now(); for (;;) { let v; try { v = await fn(); } catch { v = null; } if (v) return v; if (Date.now() - t0 > ms) return v; await sleep(step); } };
|
|
17
|
+
const results = [];
|
|
18
|
+
const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + String(extra).slice(0, 600) : ''}`); };
|
|
19
|
+
let F = null, browser = null;
|
|
20
|
+
const finish = async (code) => {
|
|
21
|
+
if (browser) await browser.close().catch(() => {});
|
|
22
|
+
if (F) F.stop();
|
|
23
|
+
const bad = results.filter((x) => !x.cond).length;
|
|
24
|
+
console.log(`\n${results.length - bad}/${results.length} news-viewers assertions passed`);
|
|
25
|
+
process.exit(code !== undefined ? code : (bad ? 1 : 0));
|
|
26
|
+
};
|
|
27
|
+
process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
28
|
+
const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'application/json', body: JSON.stringify(b) });
|
|
29
|
+
|
|
30
|
+
const NOW = Date.now();
|
|
31
|
+
const due = (() => { const d = new Date(NOW + 2 * 864e5); return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`; })();
|
|
32
|
+
const OVERLAP = { id: 'prop:wsx:p-0123456789', kind: 'overlap', title: 'Possible overlap', pid: 'p-0123456789', ws: 'WS', product: 'PSLE', at: NOW - 3600e3, why: 'Both change the checkout entry.',
|
|
33
|
+
a: { id: 'psle-article-paywall-lock', title: 'PSLE Article Paywall Lock' }, b: { id: 'psle-companion-addon-follow-on', title: 'PSLE Companion Add-on Follow-on' },
|
|
34
|
+
overlap: { with: 'psle-companion-addon-follow-on', parts: 2, of: 6, sure: 'high', sureWhy: 'Both plans name the same checkout screens.', first: 'this', text: 'Both change the checkout entry and the return after payment. The rest is separate.', items: ['The checkout entry', 'The return after payment'] } };
|
|
35
|
+
const LEGACY = { ...OVERLAP, id: 'prop:wsx:p-aaaaaaaaaa', pid: 'p-aaaaaaaaaa', b: { id: 'psle-companion-addon-follow-on', title: '' }, overlap: { with: 'psle-companion-addon-follow-on', first: 'this' }, why: '' };
|
|
36
|
+
const TASK = { id: 'task:jira:PAY-7', kind: 'task', tid: 'jira:PAY-7', title: 'New task: Review the paywall copy', from: 'Jira', key: 'PAY-7', due, initiative: 'psle-article-paywall-lock', iniTitle: 'PSLE Article Paywall Lock',
|
|
37
|
+
link: 'https://jira.example/PAY-7', at: NOW - 7200e3, status: 'To do', list: 'inbox', why: '', agent: { state: 'suggest', suggest: 'Draft your comments from the thread', draft: '' } };
|
|
38
|
+
const ROWS = { 'psle-article-paywall-lock': { title: 'PSLE Article Paywall Lock', stage: 'Discover', owner: 'you' }, 'psle-companion-addon-follow-on': { title: 'PSLE Companion Add-on Follow-on', stage: 'Plan', owner: 'Mei' } };
|
|
39
|
+
|
|
40
|
+
(async () => {
|
|
41
|
+
const exe = findBrowser();
|
|
42
|
+
if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the suite cannot run'); return finish(1); }
|
|
43
|
+
let chromium;
|
|
44
|
+
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
45
|
+
F = await Fx.start({ name: 'news-viewers' });
|
|
46
|
+
const ws = F.ws;
|
|
47
|
+
browser = await chromium.launch({ executablePath: exe, headless: true, args: ['--no-sandbox'] });
|
|
48
|
+
const shotDir = process.env.NEWS_VIEWER_SHOTS;
|
|
49
|
+
if (shotDir) fs.mkdirSync(shotDir, { recursive: true });
|
|
50
|
+
const shot = async (p, name) => { if (shotDir) await p.screenshot({ path: path.join(shotDir, name + '.png') }); };
|
|
51
|
+
|
|
52
|
+
async function page({ width = 390, scheme = 'light', items = [OVERLAP, TASK], fin = null, fail = {} } = {}) {
|
|
53
|
+
const ctx = await browser.newContext({ viewport: { width, height: 844 }, colorScheme: scheme });
|
|
54
|
+
const p = await ctx.newPage(), posts = [], errs = [];
|
|
55
|
+
p.on('pageerror', (e) => errs.push(String(e)));
|
|
56
|
+
const news = () => { const o = items.filter((x) => x.kind === 'overlap'), t = items.filter((x) => x.kind === 'task');
|
|
57
|
+
const groups = [o.length && { key: 'propose', label: 'Claude proposes', items: o }, t.length && { key: 'given', label: 'Given to you', items: t }].filter(Boolean);
|
|
58
|
+
return { ok: true, count: o.length + t.length, groups, read: { inbox: true, work: true } }; };
|
|
59
|
+
await p.route('**/api/news-for-you', (r) => json(r, news()));
|
|
60
|
+
await p.route('**/api/news-for-you?*', (r) => json(r, news()));
|
|
61
|
+
await p.route('**/api/boards/initiative?*', (r) => { const id = new URL(r.request().url()).searchParams.get('id'); const row = ROWS[id]; return row ? json(r, { ok: true, ws: 'WS', row: { id, ...row }, board: { id: 'b1' } }) : json(r, { ok: false, error: 'no row' }, 404); });
|
|
62
|
+
if (fin) await p.route('**/api/phone-day*', (r) => (fin.read = (fin.read || 0) + 1, json(r, { ok: true, date: '', finished: fin.filter((x) => !x.seen), run: null, recap: { meetings: 0, decided: 0, done: 0, finished: fin.length, moved: [] }, tomorrow: { label: 'Tomorrow', meetings: [] } })));
|
|
63
|
+
for (const route of ['/api/driver/keep', '/api/driver/drop', '/api/boards/notdup', '/api/my-work/act', '/api/pm-items/done', '/api/pm-items/notyet', '/api/news-for-you/seen']) {
|
|
64
|
+
await p.route('**' + route, (r) => { let b = null; try { b = JSON.parse(r.request().postData() || 'null'); } catch { b = null; } posts.push({ path: route, body: b });
|
|
65
|
+
if (route === '/api/news-for-you/seen' && fin) for (const f of fin) if (b && b.ids && b.ids.includes(f.key)) f.seen = true;
|
|
66
|
+
return fail[route] ? json(r, { ok: false, error: fail[route] }, 409) : json(r, { ok: true }); });
|
|
67
|
+
}
|
|
68
|
+
await p.goto(`${F.BASE}/premium.html?ws=${encodeURIComponent(ws)}`);
|
|
69
|
+
await until(() => p.evaluate(() => !!document.querySelector('#hmList')));
|
|
70
|
+
return { p, ctx, posts, errs };
|
|
71
|
+
}
|
|
72
|
+
const vwText = (p) => p.evaluate(() => (document.querySelector('#czViewer:not([hidden])') || {}).textContent || '');
|
|
73
|
+
const openItem = (p, id) => p.evaluate((x) => import('/pm/cozy-news.js').then((M) => { M.openNews({ view: x }); }), id);
|
|
74
|
+
|
|
75
|
+
/* O — the overlap note */
|
|
76
|
+
{
|
|
77
|
+
const { p, ctx, posts, errs } = await page();
|
|
78
|
+
await openItem(p, OVERLAP.id);
|
|
79
|
+
const shown = await until(() => p.evaluate(() => /Plan · Mei’s/.test((document.querySelector('#czViewer') || {}).textContent || '')));
|
|
80
|
+
const t = await vwText(p);
|
|
81
|
+
ok('O1 the overlap opens as its own Viewer: one header named "Possible overlap", Claude noticed, no second back press', shown && /Possible overlap/.test(await p.evaluate(() => document.querySelector('#czVwTitle').textContent)) && /Claude noticed/.test(t)
|
|
82
|
+
&& !(await p.evaluate(() => !!document.querySelector('#czViewer [data-ev-back]'))), t.slice(0, 300));
|
|
83
|
+
ok('O2 both initiatives by name with stage and owner, first and second; never a slug or "a source"', /PSLE Article Paywall Lock/.test(t) && /Discover · yours/.test(t) && /Plan · Mei’s/.test(t) && /1st/.test(t) && /2nd/.test(t)
|
|
84
|
+
&& !/psle-companion-addon-follow-on|a source|Open in Home/.test(t), t);
|
|
85
|
+
ok('O3 the summary: "2 of 6 parts overlap", the sentence and how sure', /2 of 6 parts overlap/.test(t) && /The rest is separate/.test(t) && /How sure: high\. Both plans name the same checkout screens/.test(t), t);
|
|
86
|
+
const picks = await p.evaluate(() => [...document.querySelectorAll('#czViewer [data-nv-pick]')].map((b) => b.getAttribute('aria-checked') + ':' + b.textContent.trim().slice(0, 60)));
|
|
87
|
+
ok('O4 the pick: Keep both, in this order (Claude\'s, checked), Merge into the first, Not an overlap', picks.length === 3 && /^true:Keep both, in this order/.test(picks[0]) && /Merge into PSLE Article Paywall Lock/.test(picks[1]) && /^false:Not an overlap/.test(picks[2]), picks);
|
|
88
|
+
const fold = await p.evaluate(() => { const b = document.querySelector('#czViewer .czs-row[data-czs-fold="parts"]'); return b ? b.textContent : ''; });
|
|
89
|
+
ok('O5 the parts that overlap fold under the pick', /The 2 parts that overlap/.test(fold), fold);
|
|
90
|
+
const tight = await p.evaluate(() => { const s = document.scrollingElement; return s.scrollWidth <= s.clientWidth + 1 && [...document.querySelectorAll('#czViewer .nv-opt, #czViewer .nv-ini, #czViewer .nv-pri')].every((b) => b.getBoundingClientRect().height >= 44); });
|
|
91
|
+
ok('O6 at 390 px nothing scrolls sideways, and every press is at least 44 px tall', tight);
|
|
92
|
+
await shot(p, 'overlap-390');
|
|
93
|
+
await p.click('#czViewer [data-nv-go]');
|
|
94
|
+
await until(() => posts.some((x) => x.path === '/api/driver/keep'));
|
|
95
|
+
const keep = posts.find((x) => x.path === '/api/driver/keep');
|
|
96
|
+
ok('O7 the primary keeps both: POST /api/driver/keep with the workspace and the proposal, then it is seen', keep && keep.body.ws === 'WS' && keep.body.proposal === OVERLAP.pid && await until(() => posts.some((x) => x.path === '/api/news-for-you/seen' && x.body.ids.includes(OVERLAP.id))), JSON.stringify(posts));
|
|
97
|
+
// Not an overlap: the proposal is dropped and the Board stops flagging the pair
|
|
98
|
+
await openItem(p, OVERLAP.id);
|
|
99
|
+
await until(() => p.evaluate(() => !!document.querySelector('#czViewer [data-nv-pick="not"]')));
|
|
100
|
+
await until(() => p.evaluate(() => /Mei’s/.test(document.querySelector('#czViewer').textContent)));
|
|
101
|
+
await p.click('#czViewer [data-nv-pick="not"]');
|
|
102
|
+
const lbl = await p.evaluate(() => document.querySelector('#czViewer [data-nv-go]').textContent);
|
|
103
|
+
ok('O8 the primary follows the pick', /Not an overlap/.test(lbl), lbl);
|
|
104
|
+
await p.click('#czViewer [data-nv-go]');
|
|
105
|
+
await until(() => posts.some((x) => x.path === '/api/boards/notdup'));
|
|
106
|
+
const drop = posts.find((x) => x.path === '/api/driver/drop'), nd = posts.find((x) => x.path === '/api/boards/notdup');
|
|
107
|
+
ok('O9 Not an overlap drops the note and marks the pair not a duplicate on the Board', drop && drop.body.proposal === OVERLAP.pid && nd && nd.body.id === OVERLAP.a.id && nd.body.of === OVERLAP.b.id && nd.body.board === 'b1', JSON.stringify(posts));
|
|
108
|
+
ok('O10 no page error', !errs.length, errs.join(' | '));
|
|
109
|
+
await ctx.close();
|
|
110
|
+
}
|
|
111
|
+
/* O11 — an older note: only what its words say; the name comes from the Board, never the slug; no parts, no "how sure" invented */
|
|
112
|
+
{
|
|
113
|
+
const { p, ctx, errs } = await page({ items: [LEGACY] });
|
|
114
|
+
await openItem(p, LEGACY.id);
|
|
115
|
+
await until(() => p.evaluate(() => /Mei’s/.test((document.querySelector('#czViewer') || {}).textContent || '')));
|
|
116
|
+
const t = await vwText(p);
|
|
117
|
+
ok('O11 an older "Note: Possible overlap" names both by name, keeps its order and invents no parts or certainty', /PSLE Companion Add-on Follow-on/.test(t) && !/parts overlap|How sure/.test(t) && /1st/.test(t) && !/psle-companion/.test(t), t);
|
|
118
|
+
ok('O12 no page error', !errs.length, errs.join(' | '));
|
|
119
|
+
await ctx.close();
|
|
120
|
+
}
|
|
121
|
+
/* G — a task given to you */
|
|
122
|
+
{
|
|
123
|
+
const { p, ctx, posts, errs } = await page();
|
|
124
|
+
await openItem(p, TASK.id);
|
|
125
|
+
await until(() => p.evaluate(() => /Review the paywall copy/.test((document.querySelector('#czVwTitle') || {}).textContent || '')));
|
|
126
|
+
const t = await vwText(p);
|
|
127
|
+
ok('G1 the task: its own title (no "New task:"), from Jira, due in words, never "a source" or "Open in Home"', !/New task:/.test(t) && /From Jira/.test(t) && /Due /.test(t) && !/a source|Open in Home/.test(t), t);
|
|
128
|
+
ok('G2 the agent\'s part is its offer, not a claim: "I can draft your comments…" with Draft it as the one primary', /I can draft your comments from the thread\./.test(t) && /Draft it/.test(await p.evaluate(() => (document.querySelector('#czViewer .czs-pri') || {}).textContent || '')) && !/I drafted/.test(t), t);
|
|
129
|
+
const icons = await p.evaluate(() => [...document.querySelectorAll('#czViewer .czs-ib')].map((b) => b.getAttribute('aria-label')));
|
|
130
|
+
ok('G3 Done, Not before… and ↗ Jira sit in place as icons', icons.join('|') === 'Done|Not before…|Open in Jira', icons);
|
|
131
|
+
ok('G4 Filed under names the initiative, not its id', /Filed under/.test(t) && /PSLE Article Paywall Lock/.test(t) && !/psle-article/.test(t), t);
|
|
132
|
+
await shot(p, 'given-390');
|
|
133
|
+
await p.click('#czViewer .czs-pri');
|
|
134
|
+
await until(() => posts.some((x) => x.path === '/api/my-work/act'));
|
|
135
|
+
const act = posts.find((x) => x.path === '/api/my-work/act');
|
|
136
|
+
const t2 = await until(() => p.evaluate(() => (/drafting it now/.test(document.querySelector('#czViewer').textContent) ? document.querySelector('#czViewer').textContent : '')));
|
|
137
|
+
ok('G5 Draft it starts the agent on the item (POST /api/my-work/act brief), then says it is drafting', act && act.body.action === 'brief' && act.body.item === TASK.tid && t2, JSON.stringify(act));
|
|
138
|
+
await p.click('#czViewer [data-czs-act="later"]');
|
|
139
|
+
await p.click('#czViewer [data-nv-when="tomorrow"]');
|
|
140
|
+
await until(() => posts.some((x) => x.path === '/api/pm-items/notyet'));
|
|
141
|
+
const ny = posts.find((x) => x.path === '/api/pm-items/notyet');
|
|
142
|
+
ok('G6 Not before… › Tomorrow puts it off on the real item', ny && ny.body.id === TASK.tid && ny.body.when === 'tomorrow', JSON.stringify(ny));
|
|
143
|
+
ok('G7 no page error', !errs.length, errs.join(' | '));
|
|
144
|
+
await ctx.close();
|
|
145
|
+
}
|
|
146
|
+
/* F — the Finished Viewer from Your day's Drafted for you */
|
|
147
|
+
{
|
|
148
|
+
const fin = [{ id: 't-0123456789ab', key: 'fin:today:t-0123456789ab', title: 'Project Ascent status summary', summary: 'Where the tender stands, and what the TC decides.', body: '## Where the tender stands\nTwo of three vendors cleared the security review.\n\n## What the TC decides\nVendor B on cost, or vendor A on support.', at: new Date(new Date().setHours(8, 10, 0, 0)).toISOString(), status: 'done', link: null, seen: false }];
|
|
149
|
+
const { p, ctx, posts, errs } = await page({ items: [], fin });
|
|
150
|
+
// Home reads the day with the list: Your day opens once that read is in
|
|
151
|
+
await until(() => fin.read);
|
|
152
|
+
await sleep(800);
|
|
153
|
+
await p.click('[data-hm-day]');
|
|
154
|
+
await until(() => p.evaluate(() => !!document.querySelector('#czViewer [data-yd="fin"]')));
|
|
155
|
+
await p.evaluate(() => { const f = document.querySelector('#czViewer [data-czs-fold="drafts"]'); if (f && f.getAttribute('aria-expanded') !== 'true') f.click(); });
|
|
156
|
+
await p.click('#czViewer [data-yd="fin"]');
|
|
157
|
+
await until(() => p.evaluate(() => /Project Ascent status summary/.test((document.querySelector('#czVwTitle') || {}).textContent || '')));
|
|
158
|
+
const t = await vwText(p);
|
|
159
|
+
ok('F1 the finished row opens the draft to read: Finished, nothing sent, the text as a document', /Finished · this morning/.test(t) && /Nothing is sent/.test(t) && await p.evaluate(() => /Two of three vendors/.test((document.querySelector('#czViewer article.hv-doc') || {}).textContent || '')), t.slice(0, 300));
|
|
160
|
+
const pri = await p.evaluate(() => [...document.querySelectorAll('#czViewer .czs-pri')].map((b) => b.textContent));
|
|
161
|
+
ok('F2 ONE primary, "Done with it"; the chat icon "Change it in chat" is in the header; no bare "Open it"', pri.join('|') === 'Done with it' && await p.evaluate(() => !!document.querySelector('#czViewer [data-cz-vw-p="chat"][aria-label="Change it in chat"]')) && !/Open it$/.test(t), pri);
|
|
162
|
+
await shot(p, 'finished-390');
|
|
163
|
+
await p.click('#czViewer .czs-pri');
|
|
164
|
+
await until(() => posts.some((x) => x.path === '/api/news-for-you/seen'));
|
|
165
|
+
const seen = posts.find((x) => x.path === '/api/news-for-you/seen');
|
|
166
|
+
const gone = await until(() => p.evaluate(() => { const c = document.querySelector('#czViewer'); return c && /Your day/.test(document.querySelector('#czVwTitle').textContent) && !c.querySelector('[data-yd="fin"]'); }));
|
|
167
|
+
if (!gone) console.log(await p.evaluate(() => document.querySelector('#czVwTitle').textContent + ' | ' + !!document.querySelector('#czViewer [data-yd="fin"]')));
|
|
168
|
+
ok('F3 Done with it marks the draft seen and it leaves Drafted for you', seen && seen.body.ids[0] === fin[0].key && gone, JSON.stringify(seen));
|
|
169
|
+
ok('F4 no page error', !errs.length, errs.join(' | '));
|
|
170
|
+
await ctx.close();
|
|
171
|
+
}
|
|
172
|
+
/* D — dark and desk */
|
|
173
|
+
{
|
|
174
|
+
const { p, ctx, errs } = await page({ width: 1440, scheme: 'dark' });
|
|
175
|
+
await openItem(p, OVERLAP.id);
|
|
176
|
+
await until(() => p.evaluate(() => /Mei’s/.test((document.querySelector('#czViewer') || {}).textContent || '')));
|
|
177
|
+
const c = await p.evaluate(() => { const b = document.querySelector('#czViewer .nv-opt.on'); return b ? getComputedStyle(b).backgroundColor : ''; });
|
|
178
|
+
ok('D1 at 1440 px dark, the overlap Viewer draws beside the chat with the picked choice tinted', c && c !== 'rgb(255, 255, 255)' && !errs.length, c + ' ' + errs.join(' | '));
|
|
179
|
+
await shot(p, 'overlap-1440-dark');
|
|
180
|
+
await ctx.close();
|
|
181
|
+
}
|
|
182
|
+
finish();
|
|
183
|
+
})();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.441.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.441.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/workspace/package.json
CHANGED
|
@@ -126,21 +126,22 @@ const BODY = '## Purpose\n\nWhy this board exists.\n\n## Scope\n\nWhat it covers
|
|
|
126
126
|
await until(() => ip.evaluate((k) => !!document.querySelector(`#czViewer [data-ov-dread="${k}"]`), ikey), 60000);
|
|
127
127
|
await unfold(ip, `#czViewer [data-ov-dread="${ikey}"]`);
|
|
128
128
|
await ip.click(`#czViewer [data-ov-dread="${ikey}"]`);
|
|
129
|
-
ok('I1 the reader of a draft has the Issue it
|
|
129
|
+
ok('I1 the reader of a draft has the summary with Issue it above the text (shell A, batch 18 item 2-C)', await until(() => ip.evaluate(() => { const o = document.querySelector('#czViewer:not([hidden])'); const b = o && o.querySelector('[data-issue-bar="draft"]'); const t = o && o.querySelector('.dsbody'); return !!b && !!t && /sends nothing to anyone/.test(b.textContent) && /Why this board exists/.test(t.textContent) && !!(b.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING); }), 30000));
|
|
130
130
|
ok('I1 no old dialog opens', await ip.evaluate(() => { const d = document.querySelector('#dlg'); return !d || !d.classList.contains('on'); }));
|
|
131
|
-
await ip.
|
|
131
|
+
ok('I1 ✎ Edit is a press in the header (no Read | Edit tabs), the path is under ⋯ and not in the body', await ip.evaluate((pt) => !!document.querySelector('#czViewer .cz-vw-hd [data-cz-vw-p="edit"]') && !document.querySelector('#czViewer [role="tablist"]') && !document.querySelector('#czViewer .cz-vw-body').textContent.includes(pt) && /^A draft/.test((document.querySelector('#czViewer .cz-vw-sub') || {}).textContent || ''), d2.path));
|
|
132
|
+
await ip.click('#czViewer .cz-vw-hd [data-cz-vw-p="edit"]');
|
|
132
133
|
await until(() => ip.evaluate(() => !!document.querySelector('#czViewer [data-ds-host] .cfb[contenteditable="true"]')), 30000);
|
|
133
134
|
await ip.click('#czViewer [data-ds-host] .cfb'); await ip.keyboard.press('Control+End'); await ip.keyboard.type(' Unsaved line.');
|
|
134
135
|
const nI = I.posts.filter((x) => x.path === '/api/core-docs/issue').length;
|
|
135
|
-
await ip.click('#czViewer [data-
|
|
136
|
+
await ip.click('#czViewer [data-czs-act="issue"]');
|
|
136
137
|
ok('I2 Issue it with unsaved edits posts nothing and says to save or cancel first', await until(() => ip.evaluate(() => /unsaved changes.*Save or cancel/.test((document.querySelector('#czViewer #dsErr') || {}).textContent || ''))) && I.posts.filter((x) => x.path === '/api/core-docs/issue').length === nI);
|
|
137
138
|
ok('I2 the ledger has no issue line for that draft yet', !ledger().some((l) => l.ev === 'issue' && l.slot === d2.slot && l.scope === iscope));
|
|
138
139
|
await ip.click('#czViewer [data-vd="cancel"]');
|
|
139
|
-
await until(() => ip.evaluate(() => !!document.querySelector('#czViewer [data-
|
|
140
|
+
await until(() => ip.evaluate(() => !!document.querySelector('#czViewer [data-czs-act="issue"]') && !!document.querySelector('#czViewer .dsbody')));
|
|
140
141
|
/* a refusal: someone else issues the same draft first (the console, a second tab) */
|
|
141
142
|
const raced = await fetch(BASE + '/api/core-docs/issue', { method: 'POST', headers: H, body: JSON.stringify({ ws: B.ws, scope: iscope, key: ikey, slot: d2.slot }) });
|
|
142
143
|
ok('I3 setup the draft is issued behind the page\'s back', raced.status === 200);
|
|
143
|
-
await ip.click('#czViewer [data-
|
|
144
|
+
await ip.click('#czViewer [data-czs-act="issue"]');
|
|
144
145
|
ok('I3 a refused press shows the server\'s words and the reader changes nothing else', await until(() => ip.evaluate(() => /already/.test((document.querySelector('#czViewer #dsErr') || {}).textContent || '') && !!document.querySelector('#czViewer [data-issue-bar="draft"]'))));
|
|
145
146
|
ok('I3 the refusal wrote no second issue line', ledger().filter((l) => l.ev === 'issue' && l.slot === d2.slot && l.scope === iscope).length === 1);
|
|
146
147
|
await I.ctx.close();
|
|
@@ -152,9 +153,9 @@ const BODY = '## Purpose\n\nWhy this board exists.\n\n## Scope\n\nWhat it covers
|
|
|
152
153
|
await until(() => jp.evaluate((k) => !!document.querySelector(`#czViewer [data-ov-dread="${k}"]`), k3), 60000);
|
|
153
154
|
await unfold(jp, `#czViewer [data-ov-dread="${k3}"]`);
|
|
154
155
|
await jp.click(`#czViewer [data-ov-dread="${k3}"]`);
|
|
155
|
-
await until(() => jp.evaluate(() => !!document.querySelector('#czViewer [data-
|
|
156
|
-
await jp.click('#czViewer [data-
|
|
157
|
-
const issued = !!(await toastIs(jp, /Issued\. Nothing was sent to anyone/)) && await until(() => jp.evaluate(() => !!document.querySelector('#czViewer [data-issue-bar="done"]') && !document.querySelector('#czViewer [data-
|
|
156
|
+
await until(() => jp.evaluate(() => !!document.querySelector('#czViewer [data-czs-act="issue"]')));
|
|
157
|
+
await jp.click('#czViewer [data-czs-act="issue"]');
|
|
158
|
+
const issued = !!(await toastIs(jp, /Issued\. Nothing was sent to anyone/)) && await until(() => jp.evaluate(() => !!document.querySelector('#czViewer [data-issue-bar="done"]') && !document.querySelector('#czViewer [data-czs-act="issue"]')));
|
|
158
159
|
await sleep(1500); await ovOpen(jp);
|
|
159
160
|
// shell A (XvADocs): an up-to-date document says nothing about its state (zero is silence); it is a plain Open press, not the draft reader
|
|
160
161
|
ok('I4 Issue it works from the reader: the toast, the issued bar, and the Overview row is a plain open, no longer a draft', issued && await until(() => jp.evaluate((k) => { const r = document.querySelector(`#czViewer [data-ov-doc="${k}"]`); return !!r && !!r.querySelector('[data-ov-open]') && !r.querySelector('[data-ov-dread]'); }, k3), 30000), JSON.stringify({ issued, row: await jp.evaluate((k) => ((document.querySelector(`#czViewer [data-ov-doc="${k}"]`) || {}).outerHTML || 'none').replace(/<svg.*?<\/svg>/g, '').slice(0, 400), k3) }));
|
|
@@ -80,8 +80,11 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
80
80
|
|
|
81
81
|
/* M: the eight moments */
|
|
82
82
|
let p = await scene({ time: at(10, 20), today: [A, MT('mB', 'Quota review', 14, 0, 15, 0)], name: 'meeting' });
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
// batch 18 item 3: the meeting under way is Home's own meeting line, so Your day says nothing of it (say it once): no card, no Now fold
|
|
84
|
+
const m1 = await until(() => p.evaluate(() => { const c = document.querySelector('#phoneCard'); const s = c && c.closest('.czs-sec'); return c && c.dataset.moment === 'meeting' && c.hidden && s && s.hidden ? { card: !c.hidden, fold: !s.hidden, text: c.textContent } : null; }))
|
|
85
|
+
|| await p.evaluate(() => { const c = document.querySelector('#phoneCard'); const s = c && c.closest('.czs-sec'); return c ? { moment: c.dataset.moment, card: !c.hidden, fold: !!s && !s.hidden, text: c.textContent } : null; });
|
|
86
|
+
let c = null;
|
|
87
|
+
ok('M1 a meeting under way is left to Home: Your day shows no Now card and no Now fold', !!m1 && !m1.card && !m1.fold && !/Under way/.test(m1.text), JSON.stringify(m1));
|
|
85
88
|
if (p.__shot) await p.__shot('light');
|
|
86
89
|
await p.__ctx.close();
|
|
87
90
|
|
|
@@ -125,13 +128,13 @@ const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'applicati
|
|
|
125
128
|
|
|
126
129
|
/* O: Open the meeting */
|
|
127
130
|
const hit = { ok: true, range: { start: DATE, end: DATE }, cells: [{ key: DATE, end: DATE, events: [{ id: 'ev1', title: A.title, at: A.start, end: A.end, attendees: A.people }] }], context: {} };
|
|
128
|
-
p = await scene({ time: at(
|
|
129
|
-
await wait(p, /
|
|
131
|
+
p = await scene({ time: at(9, 45), today: [A], week: hit }); // a meeting under way is Home's (M1): Open the meeting is pressed before it
|
|
132
|
+
await wait(p, /Starts/);
|
|
130
133
|
await p.click('#phoneCard [data-pha="phopen"]');
|
|
131
134
|
ok('O1 Open the meeting opens the meeting in the Viewer', await until(() => p.evaluate(() => { const v = document.querySelector('#czViewer:not([hidden])'); return !!v && /Partner sync/.test(v.textContent); })));
|
|
132
135
|
await p.__ctx.close();
|
|
133
|
-
p = await scene({ time: at(
|
|
134
|
-
await wait(p, /
|
|
136
|
+
p = await scene({ time: at(9, 45), today: [A], week: { ok: true, range: { start: DATE, end: DATE }, cells: [], context: {} } });
|
|
137
|
+
await wait(p, /Starts/);
|
|
135
138
|
await p.click('#phoneCard [data-pha="phopen"]');
|
|
136
139
|
await sleep(800);
|
|
137
140
|
ok('O2 when the calendar does not list it, the meeting still opens from the day\'s record, never in the old dialog and never the console', await p.evaluate(() => !document.querySelector('#dlg.on') && !!document.querySelector('#czViewer:not([hidden])') && /\/premium\.html$/.test(location.pathname)));
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
* Change workflow, Won't do and Archive are Home's (ini-wf.js). Discuss in chat takes the question to Home. */
|
|
24
24
|
import * as IM from './impact.js'; // Your impact (batch 16 item 7): who made a delivered milestone happen
|
|
25
25
|
import * as VW from './cozy-viewer.js';
|
|
26
|
+
import * as SV from './small-vw.js'; // the one stakeholder form, Home's too (batch 18 item 2-C)
|
|
26
27
|
import { esc } from './premium-shell.js';
|
|
27
28
|
import { lr, copyText } from './cozy-xv.js';
|
|
28
29
|
import { iniView } from './ini-view-model.js';
|
|
@@ -105,18 +106,10 @@ function wfUi() {
|
|
|
105
106
|
return { openPop, closePop, undoToast: (t, undo) => O.toast(t, undo), toast: (t) => O.toast(t), pmGet, pmPost, load: async () => { if (O.reload) await O.reload(); },
|
|
106
107
|
row: byId, title: (id) => byId(id).title || id, bw: (id) => where(byId(id)) };
|
|
107
108
|
}
|
|
108
|
-
/** The stakeholder form,
|
|
109
|
+
/** The stakeholder form, Home's own (pm/small-vw.js, canvas OvA8People): a drill-in of the initiative, ✓ in the header adds, ← comes back. */
|
|
109
110
|
function addPerson(r) {
|
|
110
|
-
VW.
|
|
111
|
-
|
|
112
|
-
html: '<div class="hi-form"><label class="hi-field"><span>Name</span><input id="hpN" autocomplete="off"></label><label class="hi-field"><span>Role</span><input id="hpR" placeholder="e.g. Head of Sales"></label><label class="hi-field"><span>Note</span><input id="hpT" placeholder="What they care about"></label><div class="hi-acts"><button type="button" class="hi-btn dark" data-hp-add>Add</button></div></div>' });
|
|
113
|
-
setTimeout(() => { const i = body.querySelector('#hpN'); if (i) i.focus(); }, 0);
|
|
114
|
-
body.onclick = async (e) => {
|
|
115
|
-
if (!e.target.closest('[data-hp-add]')) return;
|
|
116
|
-
const name = body.querySelector('#hpN').value.trim(); if (!name) return;
|
|
117
|
-
const res = await pmPost('/api/home-desk/stakeholder', { ws: where(r).ws, initiative: r.id, name, role: body.querySelector('#hpR').value.trim(), note: body.querySelector('#hpT').value.trim() }).catch(() => null);
|
|
118
|
-
if (res && res.ok) { O.toast('Added ' + name + '.'); openIni(O.rowOf(r.key) || r); } else O.toast((res && res.error) || 'Not added.');
|
|
119
|
-
};
|
|
111
|
+
SV.openPersonForm({ VW, pmPost: (u, b) => pmPost(u, b), toast: (t, undo) => O.toast(t, undo), ws: where(r).ws, ini: r.id, iniTitle: r.title,
|
|
112
|
+
saved: async () => { if (O.reload) await O.reload(); }, back: () => VW.back() });
|
|
120
113
|
}
|
|
121
114
|
function iniMore(r) {
|
|
122
115
|
const id = r.id;
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
.cz .ev-dot.you { background: var(--cz-blue); } .cz .ev-dot.risk { background: var(--cz-dot-risk); } .cz .ev-dot.ok { background: var(--cz-dot-ok); } .cz .ev-dot.none { background: transparent; }
|
|
46
46
|
.cz .ev-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-flex; align-items: center; justify-content: center; flex: none; }
|
|
47
47
|
.cz .ev-av.b { background: var(--cz-bluebg); color: var(--cz-blueink); }
|
|
48
|
+
.cz .ev-av.sp { border-radius: 7px; background: var(--cz-bluebg); color: var(--cz-blue); }
|
|
48
49
|
.cz .ev-trow { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--cz-hair); font-size: var(--fs-3); color: var(--cz-ink); }
|
|
49
50
|
.cz .ev-trow:last-child { border-bottom: 0; }
|
|
50
51
|
.cz .ev-trow p { margin: 0; }
|
|
@@ -252,3 +253,31 @@
|
|
|
252
253
|
.ev-st .ev-ib-sp { width: 32px; flex: none; }
|
|
253
254
|
.ev-st-nav .ev-mi .ev-dot.risk { margin-left: 6px; }
|
|
254
255
|
.ev-st .ev-rl { margin: 4px 0; }
|
|
256
|
+
|
|
257
|
+
/* New for you's item Viewers (batch 18 items 2 and 2b, canvas OvA5Overlap, OvA6Given): the summary, then the two initiatives, the pick and ONE primary */
|
|
258
|
+
.nv { display: flex; flex-direction: column; gap: 10px; }
|
|
259
|
+
.nv-ini, .nv-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 14px; border: 1px solid var(--cz-hair); border-radius: 14px; background: var(--cz-card); color: var(--cz-ink); text-align: left; font: inherit; cursor: pointer; }
|
|
260
|
+
.nv-ini:hover, .nv-opt:hover { background: var(--cz-well); }
|
|
261
|
+
.nv-it { width: 32px; height: 32px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--cz-bluebg); color: var(--cz-blueink); }
|
|
262
|
+
.nv-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
|
|
263
|
+
.nv-tx b { font-size: var(--fs-3); font-weight: 800; overflow-wrap: anywhere; }
|
|
264
|
+
.nv-tx em { font-style: normal; font-size: var(--fs-1); color: var(--cz-ink3); }
|
|
265
|
+
.nv-nth { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--cz-well2); color: var(--cz-ink2); font-size: var(--fs-1); font-weight: 800; }
|
|
266
|
+
.nv-opts { display: flex; flex-direction: column; gap: 8px; }
|
|
267
|
+
.nv-opt { align-items: flex-start; }
|
|
268
|
+
.nv-opt.on { border-color: var(--cz-blue); background: var(--cz-bluebg); }
|
|
269
|
+
.nv-rd { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--cz-ink3); flex: none; box-sizing: border-box; }
|
|
270
|
+
.nv-opt.on .nv-rd { border: 5px solid var(--cz-blue); }
|
|
271
|
+
.nv-rec { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--cz-card); color: var(--cz-blueink); font-size: var(--fs-1); font-weight: 800; vertical-align: 1px; }
|
|
272
|
+
.nv-go { padding-top: 2px; }
|
|
273
|
+
.nv-pri svg { flex: none; }
|
|
274
|
+
.nv-parts { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 6px; color: var(--cz-ink2); }
|
|
275
|
+
.nv-sp { display: inline-flex; vertical-align: -2px; margin-right: 6px; color: var(--cz-blue); }
|
|
276
|
+
.nv-when { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
277
|
+
.nv-rows { border: 1px solid var(--cz-hair); border-radius: 14px; background: var(--cz-card); overflow: hidden; }
|
|
278
|
+
.nv-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; background: none; color: var(--cz-ink); font: inherit; text-align: left; cursor: pointer; }
|
|
279
|
+
.nv-row + .nv-row { border-top: 1px solid var(--cz-hair); }
|
|
280
|
+
.nv-row:disabled { cursor: default; }
|
|
281
|
+
.nv-row b { flex: none; font-weight: 800; }
|
|
282
|
+
.nv-row span { flex: 1; min-width: 0; text-align: right; color: var(--cz-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
283
|
+
.nv-row svg { flex: none; color: var(--cz-ink3); }
|
|
@@ -40,6 +40,12 @@
|
|
|
40
40
|
.lv-tm.rec { color: var(--cz-red); }
|
|
41
41
|
.lv-tm.stop { color: var(--cz-late); }
|
|
42
42
|
|
|
43
|
+
/* Home on a desktop (batch 18 item 6): beside the menu button the pill reached into the chat card and covered its +, whenever the list
|
|
44
|
+
is narrow or folded; it sits above the menu button instead, and its list opens above it */
|
|
45
|
+
@media (min-width: 761px) {
|
|
46
|
+
body.cz-home .cz-live { left: 8px; bottom: 68px; }
|
|
47
|
+
body.cz-home .lv-tray { bottom: 116px; }
|
|
48
|
+
}
|
|
43
49
|
/* a phone: the menu button is bottom right, so the pill sits to its left, and the list is a short sheet */
|
|
44
50
|
@media (max-width: 760px) {
|
|
45
51
|
.cz-live { left: auto; right: 68px; }
|