create-pmos 0.397.0 → 0.399.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +25 -25
- package/payload/KIT-VERSION +2 -2
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/payload/state/log.md +1 -1
- package/workspace/briefing-premium-adddoc-test.js +105 -52
- package/workspace/briefing-premium-board-test.js +284 -128
- package/workspace/briefing-premium-calendar-2-test.js +135 -198
- package/workspace/briefing-premium-calendar-3-test.js +143 -418
- package/workspace/briefing-premium-calendar-test.js +85 -196
- package/workspace/briefing-premium-doc-edit-test.js +99 -83
- package/workspace/briefing-premium-initiative-test.js +175 -290
- package/workspace/briefing-premium-insights-test.js +414 -219
- package/workspace/briefing-premium-metrics-test.js +55 -97
- package/workspace/briefing-premium-products-test.js +44 -28
- package/workspace/briefing-premium-sources-test.js +70 -49
- package/workspace/briefing-premium-test.js +155 -648
- package/workspace/briefing-premium-work-test.js +88 -283
- package/workspace/changelog.json +24 -0
- package/workspace/ev-everywhere-test.js +210 -0
- package/workspace/fixtures/board-premium-trail.js +32 -0
- package/workspace/fixtures/premium-viewer-fixtures.js +187 -0
- package/workspace/guide/briefing-premium.md +3 -1
- package/workspace/guide/home.md +68 -0
- package/workspace/guide/index.md +1 -0
- package/workspace/lib/agent-roles.js +71 -0
- package/workspace/lib/board-grill.js +63 -0
- package/workspace/lib/board-premium.js +121 -24
- package/workspace/lib/board-trail.js +223 -0
- package/workspace/lib/home-work-item.js +58 -0
- package/workspace/lib/initiative-layout.js +77 -0
- package/workspace/lib/insights-goals.js +196 -0
- package/workspace/lib/insights-premium.js +64 -15
- package/workspace/lib/insights-records.js +115 -0
- package/workspace/lib/jira-tickets.js +1 -1
- package/workspace/lib/meeting-points.js +52 -0
- package/workspace/lib/news-for-you.js +88 -0
- package/workspace/lib/notes-series.js +29 -6
- package/workspace/lib/report-confirm.js +48 -0
- package/workspace/lib/route-modules.js +12 -0
- package/workspace/lib/routes-board-docs.js +46 -0
- package/workspace/lib/routes-board-grill.js +90 -0
- package/workspace/lib/routes-board-trail.js +33 -0
- package/workspace/lib/routes-home-desk.js +176 -0
- package/workspace/lib/routes-home-review.js +108 -0
- package/workspace/lib/routes-initiative-layout.js +57 -0
- package/workspace/lib/routes-insights-premium.js +16 -4
- package/workspace/lib/routes-insights-records.js +133 -0
- package/workspace/lib/routes-meeting-points.js +37 -0
- package/workspace/lib/routes-news.js +57 -0
- package/workspace/lib/routes-notes.js +3 -1
- package/workspace/lib/routes-report-confirm.js +31 -0
- package/workspace/lib/routes-search.js +38 -0
- package/workspace/lib/routes-viewer.js +108 -0
- package/workspace/lib/search-index.js +176 -0
- package/workspace/lib/transcript-steps.js +123 -0
- package/workspace/lib/viewer-meeting.js +205 -0
- package/workspace/lib/viewer-report.js +89 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +128 -82
- package/workspace/premium-briefing-depth-test.js +104 -90
- package/workspace/premium-chat-attach-test.js +54 -63
- package/workspace/premium-chat-chart-tab-test.js +37 -37
- package/workspace/premium-chat-context-test.js +19 -18
- package/workspace/premium-chat-goal-view-test.js +23 -23
- package/workspace/premium-chat-notes-test.js +26 -31
- package/workspace/premium-chat-report-tab-test.js +46 -28
- package/workspace/premium-chat-term-test.js +16 -16
- package/workspace/premium-chat-viewer-test.js +60 -59
- package/workspace/premium-core-doc-issue-test.js +52 -43
- package/workspace/premium-html-viewer-test.js +14 -17
- package/workspace/premium-phone-card-test.js +10 -3
- package/workspace/premium-phone-room-test.js +41 -35
- package/workspace/premium-report-read-test.js +152 -197
- package/workspace/premium-viewer-download-test.js +19 -22
- package/workspace/premium-viewer-flicker-test.js +11 -16
- package/workspace/premium-viewer-share-test.js +6 -9
- package/workspace/premium-viewer-test.js +41 -60
- package/workspace/premium-vw-backlog-test.js +53 -33
- package/workspace/premium-vw-cal-test.js +97 -128
- package/workspace/premium-vw-copy-test.js +17 -33
- package/workspace/premium-vw-doc-test.js +17 -10
- package/workspace/premium-vw-item-test.js +50 -49
- package/workspace/premium-vw-jira-test.js +53 -27
- package/workspace/premium-vw-meet-test.js +115 -187
- package/workspace/premium-vw-notes-test.js +88 -109
- package/workspace/premium-vw-rec-test.js +71 -194
- package/workspace/premium-vw-slides-test.js +46 -50
- package/workspace/premium-welcome-test.js +3 -2
- package/workspace/premium-work-depth-test.js +61 -53
- package/workspace/public/pm/bd-acts.js +383 -0
- package/workspace/public/pm/bd-asks.js +261 -0
- package/workspace/public/pm/bd-pop.js +59 -0
- package/workspace/public/pm/bd-span.js +222 -82
- package/workspace/public/pm/bd-stages.js +25 -11
- package/workspace/public/pm/bd-views.js +169 -0
- package/workspace/public/pm/c3-doc-sheet.js +1 -1
- package/workspace/public/pm/c3-md.js +3 -395
- package/workspace/public/pm/c3-phone-detail.js +1 -1
- package/workspace/public/pm/c3-phone-model.js +3 -68
- package/workspace/public/pm/chat-term.js +3 -3
- package/workspace/public/pm/cozy-board.css +798 -230
- package/workspace/public/pm/cozy-ev.css +228 -0
- package/workspace/public/pm/cozy-evmodel.js +106 -0
- package/workspace/public/pm/cozy-evui.js +47 -0
- package/workspace/public/pm/cozy-home.css +570 -142
- package/workspace/public/pm/cozy-home.js +5 -3
- package/workspace/public/pm/cozy-insights.css +437 -170
- package/workspace/public/pm/cozy-md.js +396 -0
- package/workspace/public/pm/cozy-nav.js +104 -29
- package/workspace/public/pm/cozy-news.js +140 -0
- package/workspace/public/pm/cozy-placeholder.js +26 -0
- package/workspace/public/pm/cozy-search.js +203 -0
- package/workspace/public/pm/cozy-settings.js +198 -0
- package/workspace/public/pm/cozy-sources.js +89 -0
- package/workspace/public/pm/cozy-today.css +217 -0
- package/workspace/public/pm/cozy-viewer.css +3 -3
- package/workspace/public/pm/cozy-viewer.js +145 -0
- package/workspace/public/pm/cozy-vw-mtg.css +350 -0
- package/workspace/public/pm/cozy-vw-rp.css +152 -0
- package/workspace/public/pm/cozy-vw.css +485 -0
- package/workspace/public/pm/cozy.css +83 -1
- package/workspace/public/pm/home-adddoc.js +48 -0
- package/workspace/public/pm/home-app.js +1179 -0
- package/workspace/public/pm/home-around.js +413 -0
- package/workspace/public/pm/home-chat.js +512 -0
- package/workspace/public/pm/home-data.js +312 -0
- package/workspace/public/pm/home-dictate.js +54 -0
- package/workspace/public/pm/home-draft.js +68 -0
- package/workspace/public/pm/home-ini-model.js +190 -0
- package/workspace/public/pm/home-ini.css +171 -0
- package/workspace/public/pm/home-ini.js +456 -0
- package/workspace/public/pm/home-list.js +276 -0
- package/workspace/public/pm/home-more.js +132 -0
- package/workspace/public/pm/home-phone-card.js +109 -0
- package/workspace/public/pm/home-review.js +104 -0
- package/workspace/public/pm/home-task.js +67 -0
- package/workspace/public/pm/home-today.js +144 -0
- package/workspace/public/pm/home-work.js +547 -0
- package/workspace/public/pm/phone-moment.js +69 -0
- package/workspace/public/pm/pm-work-view.js +1 -1
- package/workspace/public/pm/premium-attach.js +4 -0
- package/workspace/public/pm/premium-board.js +548 -395
- package/workspace/public/pm/premium-chart-tab.js +109 -62
- package/workspace/public/pm/premium-deck.js +3 -3
- package/workspace/public/pm/premium-first.js +23 -21
- package/workspace/public/pm/premium-insights.js +1102 -581
- package/workspace/public/pm/premium-meeting.js +61 -549
- package/workspace/public/pm/premium-mtg-present.js +138 -0
- package/workspace/public/pm/premium-mtg-replay.js +142 -0
- package/workspace/public/pm/premium-notes.js +1 -1
- package/workspace/public/pm/premium-report-frame.css +20 -0
- package/workspace/public/pm/premium-report-read.js +669 -476
- package/workspace/public/pm/premium-report-tab.js +116 -67
- package/workspace/public/pm/premium-shell.js +76 -123
- package/workspace/public/pm/premium-viewer.js +22 -1
- package/workspace/public/pm/premium-vw-cal.js +277 -48
- package/workspace/public/pm/premium-vw-doc.css +6 -0
- package/workspace/public/pm/premium-vw-doc.js +40 -2
- package/workspace/public/pm/premium-vw-file.js +2 -2
- package/workspace/public/pm/premium-vw-meet.js +6 -83
- package/workspace/public/pm/premium-vw-mtg.js +958 -0
- package/workspace/public/pm/premium-vw-notes.js +116 -68
- package/workspace/public/pm/premium-vw-open.js +35 -0
- package/workspace/public/pm/premium-vw-page.js +16 -0
- package/workspace/public/pm/premium-vw-rec.js +11 -218
- package/workspace/public/pm/premium-vw-slides.css +5 -0
- package/workspace/public/pm/premium-vw-slides.js +44 -8
- package/workspace/public/pm/rp-parts.js +269 -0
- package/workspace/public/pm/term-view.js +22 -0
- package/workspace/public/premium-board.html +29 -70
- package/workspace/public/premium-initiative.html +8 -48
- package/workspace/public/premium-insights.html +26 -64
- package/workspace/public/premium-viewer.html +20 -0
- package/workspace/public/premium.html +18 -107
- package/workspace/r/m1.png +0 -0
- package/workspace/r/m2.png +0 -0
- package/workspace/r/m3.png +0 -0
- package/workspace/r/nl.png +0 -0
- package/workspace/server.js +18 -3
- package/workspace/test-files.json +1 -0
- package/workspace/test-lists/home-libs.json +9 -0
- package/workspace/test-lists/initiative-layout.json +9 -0
- package/workspace/test-lists/premium-report-read.json +1 -1
- package/workspace/test-lists/premium-uncovered-meetings.json +9 -0
- package/workspace/test-lists/premium-uncovered-reports.json +9 -0
- package/workspace/test-lists/premium-vw-agreed.json +9 -0
- package/workspace/test-lists/premium-vw-notes.json +1 -1
- package/workspace/test-lists/uf-everywhere.json +15 -0
- package/workspace/test-lists/uf-home.json +9 -0
- package/workspace/test-lists/uncovered-board.json +9 -0
- package/workspace/public/pm/premium-work.js +0 -729
- package/workspace/public/pm/premium.js +0 -1146
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
/* ev-everywhere-test.js — the Everywhere parts (initiative premium-uncovered-features, E1 to E4; canvas EvMenu, EvSearch, EvInbox, EvSources,
|
|
4
|
+
* EvSettings, EvStates, EvDark, EvPhone). The real server with one scratch product repository that has a worktree with a draft.
|
|
5
|
+
* U1 the place menu: Home, Board, Insights, then Search, New for you, Sources, Settings and Theme; More only on Home
|
|
6
|
+
* S1 Ctrl K opens Search over the page; typing finds a document on main and a draft on the worktree; the kind chips narrow; Escape closes
|
|
7
|
+
* S2 the worktree chip lists the worktree and leaving it out drops its draft; S3 a result opens in the Viewer
|
|
8
|
+
* N1 New for you opens in the Viewer, with the rows the old Around you held named under Where the rest went; nothing is posted on open
|
|
9
|
+
* R1 Sources lists each source with when it was read; R2 Settings opens on General with its sections, and Escape closes it
|
|
10
|
+
* B1 the Board's Settings and Sources open the same designed parts; B2 Ctrl K on Board opens the same Search
|
|
11
|
+
* D1 Theme Dark draws the page dark (data-theme), kept for the next page; P1 at 390 px Search fills the screen and nothing scrolls sideways
|
|
12
|
+
* Set EV_SHOTS=<dir> for screenshots at 1440x900 and 390x844, light and dark. Every wait polls the page; no fixed sleep stands in for a state. */
|
|
13
|
+
const fs = require('fs');
|
|
14
|
+
const os = require('os');
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const { spawn, spawnSync } = require('child_process');
|
|
17
|
+
const { findBrowser } = require('./lib/find-browser');
|
|
18
|
+
const T = require('./test-run').configure({ name: 'ev-everywhere' });
|
|
19
|
+
|
|
20
|
+
const BASE = T.BASE;
|
|
21
|
+
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
22
|
+
const until = async (fn, ms = 15000, step = 120) => { const t0 = Date.now(); for (;;) { let v = null; try { v = await fn(); } catch { v = null; } if (v) return v; if (Date.now() - t0 > ms) return v; await sleep(step); } };
|
|
23
|
+
const results = [];
|
|
24
|
+
const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + String(extra).slice(0, 400) : ''}`); };
|
|
25
|
+
let srv = null; let browser = null;
|
|
26
|
+
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'pmos-ev-'));
|
|
27
|
+
const finish = async (code) => {
|
|
28
|
+
if (browser) await browser.close().catch(() => {});
|
|
29
|
+
if (srv) { try { srv.kill('SIGKILL'); } catch { /* gone */ } }
|
|
30
|
+
T.killTmux();
|
|
31
|
+
try { fs.rmSync(tmp, { recursive: true, force: true }); } catch { /* left for the OS */ }
|
|
32
|
+
const bad = results.filter((x) => !x.cond).length;
|
|
33
|
+
console.log(`\n${results.length - bad}/${results.length} ev-everywhere assertions passed`);
|
|
34
|
+
process.exit(code !== undefined ? code : (bad ? 1 : 0));
|
|
35
|
+
};
|
|
36
|
+
process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
37
|
+
const sh = (cwd, args) => spawnSync('git', args, { cwd, encoding: 'utf8' });
|
|
38
|
+
const put = (root, rel, text) => { fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true }); fs.writeFileSync(path.join(root, rel), text); };
|
|
39
|
+
|
|
40
|
+
(async () => {
|
|
41
|
+
const exe = findBrowser();
|
|
42
|
+
if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the ev-everywhere suite cannot run'); return finish(1); }
|
|
43
|
+
let chromium;
|
|
44
|
+
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed — the ev-everywhere suite cannot run'); return finish(1); }
|
|
45
|
+
const fakeBin = path.join(tmp, 'bin'); fs.mkdirSync(fakeBin);
|
|
46
|
+
fs.writeFileSync(path.join(fakeBin, 'claude'), '#!/bin/sh\nsleep 30\n', { mode: 0o755 });
|
|
47
|
+
/* the product: a PRD and a deck on main, and a worktree whose branch adds a draft of the billing spec */
|
|
48
|
+
const root = path.join(tmp, 'evprod');
|
|
49
|
+
fs.mkdirSync(root, { recursive: true });
|
|
50
|
+
put(root, 'AGENTS.md', '# a\n');
|
|
51
|
+
put(root, 'planning/prd/billing-prd.md', '---\ntype: PRD\ntitle: Usage billing PRD\n---\n# Usage billing PRD\n\nWe charge by usage from v2.5.\n');
|
|
52
|
+
put(root, 'planning/gtm/billing-deck.md', '# Billing launch deck\n\nThree slides on usage billing.\n');
|
|
53
|
+
sh(root, ['init', '-q', '-b', 'main']); sh(root, ['config', 'user.email', 't@t']); sh(root, ['config', 'user.name', 't']); sh(root, ['add', '-A']); sh(root, ['commit', '-q', '-m', 'initial']);
|
|
54
|
+
const wt = path.join(tmp, 'evprod-billing');
|
|
55
|
+
sh(root, ['worktree', 'add', '-q', '-b', 'billing-spec', wt]);
|
|
56
|
+
put(wt, 'planning/prd/billing-spec-draft.md', '# Billing spec draft\n\nUsage meters per seat.\n');
|
|
57
|
+
sh(wt, ['add', '-A']); sh(wt, ['commit', '-q', '-m', 'draft']);
|
|
58
|
+
|
|
59
|
+
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT), PATH: fakeBin + path.delimiter + process.env.PATH }) });
|
|
60
|
+
await T.waitForServer(BASE);
|
|
61
|
+
const json = async (m, p, b, h) => { const res = await fetch(BASE + p, { method: m, headers: { 'content-type': 'application/json', ...(h || {}) }, body: b ? JSON.stringify(b) : undefined }); let j = null; try { j = await res.json(); } catch { j = null; } return { status: res.status, body: j }; };
|
|
62
|
+
const added = await json('POST', '/api/workspaces', { root, name: 'EVPROD', focus: false }, await T.pressHeaders(BASE));
|
|
63
|
+
const ws = added.body && added.body.workspace && added.body.workspace.id;
|
|
64
|
+
ok('U0 the product is registered', !!ws, JSON.stringify(added.body));
|
|
65
|
+
const api = (await json('GET', '/api/find?q=billing&ws=' + encodeURIComponent(ws))).body || {};
|
|
66
|
+
ok('S0 GET /api/find finds the PRD and the deck on main and the draft on the worktree', api.ok && Array.isArray(api.results) && api.results.some((r) => r.path === 'planning/prd/billing-prd.md' && !r.draft) && api.results.some((r) => r.kind === 'slides') && api.results.some((r) => r.draft && /billing-spec-draft/.test(r.path)), JSON.stringify(api).slice(0, 400));
|
|
67
|
+
|
|
68
|
+
browser = await chromium.launch({ executablePath: exe, headless: true, args: ['--no-sandbox'] });
|
|
69
|
+
const shot = process.env.EV_SHOTS || '';
|
|
70
|
+
const snap = async (pg, name) => { if (!shot) return; fs.mkdirSync(shot, { recursive: true }); await sleep(400); await pg.screenshot({ path: path.join(shot, name + '.png') }); };
|
|
71
|
+
const open = async ({ w = 1440, h = 900, page = 'premium.html', theme = '' } = {}) => {
|
|
72
|
+
const ctx = await browser.newContext({ viewport: { width: w, height: h } });
|
|
73
|
+
const pg = await ctx.newPage(); const errors = [], posts = [];
|
|
74
|
+
pg.on('pageerror', (e) => errors.push(String(e)));
|
|
75
|
+
pg.on('request', (r) => { if (r.method() === 'POST') posts.push(new URL(r.url()).pathname); });
|
|
76
|
+
await pg.goto(`${BASE}/${page}?ws=${encodeURIComponent(ws)}${theme ? '&theme=' + theme : ''}`);
|
|
77
|
+
await pg.waitForSelector('#czFab', { timeout: 30000 });
|
|
78
|
+
return { ctx, pg, errors, posts };
|
|
79
|
+
};
|
|
80
|
+
const menu = async (pg) => { if (await pg.isHidden('#czMenu')) await pg.click('#czFab'); await pg.waitForSelector('#czMenu:not([hidden])'); };
|
|
81
|
+
|
|
82
|
+
{ /* U: the place menu on Home */
|
|
83
|
+
const { ctx, pg, errors, posts } = await open();
|
|
84
|
+
await menu(pg);
|
|
85
|
+
const m = await pg.evaluate(() => ({ links: [...document.querySelectorAll('#czMenu a')].map((a) => a.textContent.trim()), items: [...document.querySelectorAll('#czMenu .ev-mi')].map((b) => b.textContent.replace(/\s+/g, ' ').trim()), more: !!document.querySelector('#czMenu [data-cz-more]'), theme: [...document.querySelectorAll('#czMenu [data-ev-theme]')].map((b) => b.textContent) }));
|
|
86
|
+
ok('U1 the menu holds Home, Board, Insights, then Search, New for you, Sources and Settings, More (on Home) and Theme', m.links.join() === 'Home,Board,Insights' && /^Search/.test(m.items[0]) && /^New for you/.test(m.items[1]) && /^Sources/.test(m.items[2]) && /^Settings/.test(m.items[3]) && m.more && m.theme.join() === 'Light,Dark,Auto', JSON.stringify(m));
|
|
87
|
+
await snap(pg, 'menu-1440-light');
|
|
88
|
+
await pg.keyboard.press('Escape');
|
|
89
|
+
ok('U2 Escape closes the menu', await until(() => pg.isHidden('#czMenu')));
|
|
90
|
+
|
|
91
|
+
/* S: Search */
|
|
92
|
+
await pg.keyboard.press('Control+k');
|
|
93
|
+
ok('S1 Ctrl K opens Search with the box focused', await until(() => pg.evaluate(() => !!document.querySelector('#evSearch:not([hidden])') && document.activeElement && document.activeElement.id === 'evQ')));
|
|
94
|
+
await pg.keyboard.type('billing');
|
|
95
|
+
const res = await until(async () => { const r = await pg.evaluate(() => [...document.querySelectorAll('#evRes .ev-mi')].map((b) => b.textContent.replace(/\s+/g, ' ').trim())); return r.some((t) => /Usage billing PRD/.test(t)) && r.some((t) => /Billing spec draft/.test(t)) ? r : null; }, 20000);
|
|
96
|
+
ok('S1 typing finds the PRD on main and the draft on the worktree, and offers to ask Claude', !!res && res.some((t) => /Billing spec draft.*worktree billing-spec/.test(t)) && /Ask Claude about/.test(res[res.length - 1]), JSON.stringify(res));
|
|
97
|
+
await snap(pg, 'search-1440-light');
|
|
98
|
+
await pg.click('#evChips [data-ev-kind="slides"]');
|
|
99
|
+
const sl = await until(async () => { const r = await pg.evaluate(() => [...document.querySelectorAll('#evRes .ev-mi[data-ev-i]')].map((b) => b.textContent)); return r.length && !r.some((t) => /Usage billing PRD/.test(t)) ? r : null; });
|
|
100
|
+
ok('S1 the Slides chip keeps only the deck', !!sl && sl.some((t) => /Billing launch deck/.test(t)), JSON.stringify(sl));
|
|
101
|
+
await pg.click('#evChips [data-ev-kind="all"]');
|
|
102
|
+
await pg.click('[data-ev-wt]');
|
|
103
|
+
const wts = await until(() => pg.evaluate(() => [...document.querySelectorAll('.ev-wtm label')].map((l) => l.textContent)));
|
|
104
|
+
ok('S2 the worktree chip lists main and the billing-spec worktree', !!wts && wts.some((t) => /^main/.test(t)) && wts.some((t) => /billing-spec/.test(t)), JSON.stringify(wts));
|
|
105
|
+
await pg.click('.ev-wtm input[data-ev-wt-id]');
|
|
106
|
+
ok('S2 leaving the worktree out drops its draft', !!(await until(() => pg.evaluate(() => { const r = [...document.querySelectorAll('#evRes .ev-mi')].map((b) => b.textContent); return r.some((t) => /Usage billing PRD/.test(t)) && !r.some((t) => /Billing spec draft/.test(t)); }))));
|
|
107
|
+
await pg.click('.ev-wtm input[data-ev-wt-id]'); // back in, so the next run of this suite starts the same
|
|
108
|
+
await until(() => pg.evaluate(() => [...document.querySelectorAll('#evRes .ev-mi')].some((b) => /Billing spec draft/.test(b.textContent))));
|
|
109
|
+
await pg.click('#evRes .ev-mi:has-text("Billing spec draft")');
|
|
110
|
+
ok('S3 a draft opens in the Viewer, read from its worktree', !!(await until(() => pg.evaluate(() => { const v = document.querySelector('#czViewer:not([hidden])'); return v && /Usage meters per seat/.test(v.textContent); }))), await pg.evaluate(() => (document.querySelector('#czViewer') || {}).textContent || ''));
|
|
111
|
+
ok('S3 Search closed behind it', await pg.evaluate(() => !document.querySelector('#evSearch:not([hidden])')));
|
|
112
|
+
await pg.keyboard.press('Escape');
|
|
113
|
+
await until(() => pg.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
|
|
114
|
+
|
|
115
|
+
/* N: New for you */
|
|
116
|
+
posts.length = 0;
|
|
117
|
+
await menu(pg); await pg.click('#czMenu [data-cz-news]');
|
|
118
|
+
const nw = await until(() => pg.evaluate(() => { const v = document.querySelector('#czViewer:not([hidden]) .ev-news'); return v && !v.querySelector('.ev-skelrow') ? { t: v.textContent, rest: [...v.querySelectorAll('[data-ev-rest]')].map((b) => b.dataset.evRest), kind: document.querySelector('#czViewer .cz-vw-kind').textContent } : null; }), 20000);
|
|
119
|
+
ok('N1 New for you opens in the Viewer, says what is new or that nothing is, and names where the rest of Around you went', !!nw && /New since this morning/.test(nw.t) && /(Nothing new since you last looked|Mentions|Given to you|Finished while you were away)/.test(nw.t) && nw.rest.join() === 'pulse,rep,prop,scan', JSON.stringify(nw).slice(0, 400));
|
|
120
|
+
ok('N1 opening it posted nothing', posts.length === 0, JSON.stringify(posts));
|
|
121
|
+
await snap(pg, 'news-1440-light');
|
|
122
|
+
await pg.click('#czViewer [data-ev-rest="pulse"]');
|
|
123
|
+
ok('N2 a Where the rest went row opens its view, with Back to New for you', !!(await until(() => pg.evaluate(() => /Back to New for you/.test((document.querySelector('#czViewer [data-bda="back"]') || {}).textContent || '')))));
|
|
124
|
+
await pg.click('#czViewer [data-bda="back"]');
|
|
125
|
+
ok('N2 Back goes to New for you', !!(await until(() => pg.evaluate(() => !!document.querySelector('#czViewer .ev-news [data-ev-rest]')))));
|
|
126
|
+
await pg.keyboard.press('Escape');
|
|
127
|
+
|
|
128
|
+
/* R: Sources and Settings */
|
|
129
|
+
await until(() => pg.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
|
|
130
|
+
await menu(pg); await pg.click('#czMenu [data-cz-sources]');
|
|
131
|
+
const src = await until(() => pg.evaluate(() => { const v = document.querySelector('#czViewer:not([hidden]) .ev-src'); const r = v ? [...v.querySelectorAll('.ev-trow[data-src]')] : []; return r.length ? { n: r.length, t: v.textContent } : null; }), 20000);
|
|
132
|
+
ok('R1 Sources lists each source with when it was last read and Read all again', !!src && src.n >= 3 && /Last read/.test(src.t) && /Read all again/.test(src.t) && /never posts to them/.test(src.t), JSON.stringify(src).slice(0, 300));
|
|
133
|
+
await snap(pg, 'sources-1440-light');
|
|
134
|
+
await pg.keyboard.press('Escape');
|
|
135
|
+
await until(() => pg.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
|
|
136
|
+
await menu(pg); await pg.click('#czMenu [data-cz-settings]');
|
|
137
|
+
const st = await until(() => pg.evaluate(() => { const d = document.querySelector('#evSettings:not([hidden])'); return d ? { nav: [...d.querySelectorAll('[data-ev-sec]')].map((a) => a.textContent.replace(/\d+$/, '').trim()), h: (d.querySelector('#evStTitle') || {}).textContent, t: d.textContent } : null; }));
|
|
138
|
+
ok('R2 Settings opens on General, with Connectors, Workspaces, Updates and What\'s new', !!st && st.h === 'General' && ['General', 'Connectors', 'Workspaces', 'Updates', 'What\'s new'].every((k) => st.nav.some((n) => n.startsWith(k))) && /Theme/.test(st.t), JSON.stringify(st && { nav: st.nav, h: st.h }));
|
|
139
|
+
await snap(pg, 'settings-1440-light');
|
|
140
|
+
await pg.click('#evSettings [data-ev-sec="workspaces"]');
|
|
141
|
+
ok('R2 Workspaces lists the product', !!(await until(() => pg.evaluate(() => /EVPROD/.test(document.querySelector('#evSettings').textContent)))));
|
|
142
|
+
await pg.keyboard.press('Escape');
|
|
143
|
+
ok('R2 Escape closes Settings', !!(await until(() => pg.evaluate(() => !document.querySelector('#evSettings:not([hidden])')))));
|
|
144
|
+
|
|
145
|
+
/* D: Theme */
|
|
146
|
+
await menu(pg); await pg.click('#czMenu [data-ev-theme="dark"]');
|
|
147
|
+
ok('D1 Theme Dark draws the page dark', !!(await until(() => pg.evaluate(() => document.documentElement.dataset.theme === 'dark' && getComputedStyle(document.body).backgroundColor !== 'rgb(255, 255, 255)'))));
|
|
148
|
+
await pg.goto(`${BASE}/premium-insights.html?ws=${encodeURIComponent(ws)}`); await pg.waitForSelector('#czFab');
|
|
149
|
+
ok('D1 the choice is kept for the next page', await pg.evaluate(() => document.documentElement.dataset.theme === 'dark'));
|
|
150
|
+
await menu(pg);
|
|
151
|
+
ok('U1 More is only on Home', await pg.evaluate(() => !document.querySelector('#czMenu [data-cz-more]')));
|
|
152
|
+
await snap(pg, 'menu-1440-dark');
|
|
153
|
+
await pg.keyboard.press('Escape');
|
|
154
|
+
await pg.keyboard.press('Control+k'); await pg.waitForSelector('#evSearch:not([hidden])'); await pg.keyboard.type('billing');
|
|
155
|
+
await until(() => pg.evaluate(() => document.querySelectorAll('#evRes .ev-mi[data-ev-i]').length > 1));
|
|
156
|
+
await snap(pg, 'search-1440-dark');
|
|
157
|
+
await pg.keyboard.press('Escape');
|
|
158
|
+
await pg.evaluate(() => { try { localStorage.removeItem('pmos.c3.theme'); } catch { /* none */ } });
|
|
159
|
+
ok('U no page error on Home and Insights', errors.length === 0, errors.join(' | '));
|
|
160
|
+
await ctx.close();
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
{ /* B: the Board's top bar opens the same parts */
|
|
164
|
+
const { ctx, pg, errors } = await open({ page: 'premium-board.html' });
|
|
165
|
+
if (await pg.$('#moreBtn')) {
|
|
166
|
+
await pg.click('#moreBtn'); await pg.click('#settingsBtn');
|
|
167
|
+
ok('B1 the Board\'s Settings opens the designed Settings', !!(await until(() => pg.evaluate(() => !!document.querySelector('#evSettings:not([hidden])')))));
|
|
168
|
+
await pg.keyboard.press('Escape');
|
|
169
|
+
await until(() => pg.evaluate(() => !document.querySelector('#evSettings:not([hidden])')));
|
|
170
|
+
await pg.click('#moreBtn'); await pg.click('#srcItem');
|
|
171
|
+
ok('B1 the Board\'s Sources opens the designed Sources', !!(await until(() => pg.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) .ev-src')), 20000)));
|
|
172
|
+
await pg.keyboard.press('Escape');
|
|
173
|
+
} else ok('B1 the Board has its top bar', false);
|
|
174
|
+
await until(() => pg.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
|
|
175
|
+
await pg.keyboard.press('Control+k');
|
|
176
|
+
ok('B2 Ctrl K on Board opens the same Search, once', !!(await until(() => pg.evaluate(() => !!document.querySelector('#evSearch:not([hidden])') && !document.querySelector('#pvOv:not([hidden])')))));
|
|
177
|
+
await pg.keyboard.press('Escape');
|
|
178
|
+
ok('B no page error on Board', errors.length === 0, errors.join(' | '));
|
|
179
|
+
await ctx.close();
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
for (const theme of ['light', 'dark']) { /* P: the phone */
|
|
183
|
+
const { ctx, pg, errors } = await open({ w: 390, h: 844, theme });
|
|
184
|
+
await menu(pg);
|
|
185
|
+
const fit = await pg.evaluate(() => { const r = document.querySelector('#czMenu').getBoundingClientRect(); return { l: Math.round(r.left), r: Math.round(r.right), side: document.documentElement.scrollWidth - innerWidth }; });
|
|
186
|
+
ok(`P1 ${theme} at 390 px the menu fits on screen`, fit.l >= 0 && fit.r <= 390 && fit.side <= 0, JSON.stringify(fit));
|
|
187
|
+
await snap(pg, 'menu-390-' + theme);
|
|
188
|
+
await pg.click('#czMenu [data-cz-search]');
|
|
189
|
+
await pg.waitForSelector('#evSearch:not([hidden])'); await pg.keyboard.type('billing');
|
|
190
|
+
await until(() => pg.evaluate(() => document.querySelectorAll('#evRes .ev-mi[data-ev-i]').length > 1), 20000);
|
|
191
|
+
const sp = await pg.evaluate(() => { const r = document.querySelector('#evSearch').getBoundingClientRect(); return { w: Math.round(r.width), h: Math.round(r.height), side: document.documentElement.scrollWidth - innerWidth }; });
|
|
192
|
+
ok(`P1 ${theme} at 390 px Search fills the screen and nothing scrolls sideways`, sp.w >= 388 && sp.h >= 800 && sp.side <= 0, JSON.stringify(sp));
|
|
193
|
+
await snap(pg, 'search-390-' + theme);
|
|
194
|
+
await pg.keyboard.press('Escape');
|
|
195
|
+
await menu(pg); await pg.click('#czMenu [data-cz-news]');
|
|
196
|
+
await until(() => pg.evaluate(() => !!document.querySelector('#czViewer:not([hidden]) .ev-news [data-ev-rest]')), 20000);
|
|
197
|
+
ok(`P2 ${theme} at 390 px New for you does not scroll sideways`, await pg.evaluate(() => { const b = document.querySelector('#czViewer .cz-vw-body'); return document.documentElement.scrollWidth - innerWidth <= 0 && b.scrollWidth - b.clientWidth <= 1; }));
|
|
198
|
+
await snap(pg, 'news-390-' + theme);
|
|
199
|
+
await pg.keyboard.press('Escape');
|
|
200
|
+
await until(() => pg.evaluate(() => !document.querySelector('#czViewer:not([hidden])')));
|
|
201
|
+
await menu(pg); await pg.click('#czMenu [data-cz-settings]');
|
|
202
|
+
await pg.waitForSelector('#evSettings:not([hidden])');
|
|
203
|
+
ok(`P3 ${theme} at 390 px Settings fits the screen`, await pg.evaluate(() => { const r = document.querySelector('#evSettings').getBoundingClientRect(); return r.left >= 0 && r.right <= 390 && document.documentElement.scrollWidth - innerWidth <= 0; }));
|
|
204
|
+
await snap(pg, 'settings-390-' + theme);
|
|
205
|
+
if (theme === 'dark') ok('D2 ?theme=dark draws the phone dark', await pg.evaluate(() => document.documentElement.dataset.theme === 'dark'));
|
|
206
|
+
ok(`P no page error (${theme})`, errors.length === 0, errors.join(' | '));
|
|
207
|
+
await ctx.close();
|
|
208
|
+
}
|
|
209
|
+
return finish();
|
|
210
|
+
})().catch((e) => { console.error(e); finish(1); });
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* fixtures/board-premium-trail.js — a GET /api/board-trail answer (lib/board-trail.js trail()) for the initiatives of fixtures/board-premium-facts.js
|
|
3
|
+
* (initiative premium-agreed-design). Each initiative shows one thing the trail adds: days in the step, a skip with its reason, the parts of an output,
|
|
4
|
+
* what waits on you, tickets drafted in PMOS, PRD drift, links, a dependency and the themes. */
|
|
5
|
+
const item = (o = {}) => ({ since: null, sinceFrom: null, days: null, skipped: [], parts: null, next: null, you: null, links: { prd: null, rubric: null, evaluation: null, epic: null },
|
|
6
|
+
drafted: [], gate: null, drift: [], deps: [], theme: 'q3-2026:o1', tickets: {}, ...o });
|
|
7
|
+
function trail() {
|
|
8
|
+
return {
|
|
9
|
+
ok: true, at: '2026-10-17T09:12:00.000Z',
|
|
10
|
+
usual: { triage: { days: 2, n: 5 }, discover: { days: 9, n: 4 }, plan: { days: 6, n: 2 }, prioritize: { days: null, n: 0 }, build: { days: 14, n: 6 }, deliver: { days: 4, n: 3 }, monitor: { days: null, n: 0 }, evaluate: { days: null, n: 0 } },
|
|
11
|
+
themes: [
|
|
12
|
+
{ key: 'q3-2026:o1', name: 'Foundation', note: 'Make PMOS reliable to run', tone: 'blue', objective: 'PMOS has a trustworthy harness', period: 'Q3 2026', from: 'planning/prd/self-serve-v2.md' },
|
|
13
|
+
{ key: 'health', name: 'Health budgets', note: null, tone: 'grey', objective: null, period: null, from: null },
|
|
14
|
+
],
|
|
15
|
+
items: {
|
|
16
|
+
'self-serve-v2': item({ since: '2026-09-29', sinceFrom: 'move', days: 18, links: { prd: 'planning/prd/self-serve-v2.md', rubric: 'planning/evals/self-serve-v2.md', evaluation: null, epic: 'ONB-1' },
|
|
17
|
+
drafted: [{ id: 'V.4', summary: 'Resend the invite after 48 hours', key: null, prdChanged: false, waiting: true }, { id: 'V.1', summary: 'Welcome checklist', key: 'ONB-31', prdChanged: true, waiting: false }],
|
|
18
|
+
drift: ['ONB-31'], gate: { open: true, why: '' }, deps: [{ id: 'sso-partners', title: 'SSO for partners', stage: 'Deliver', known: true, done: false }] }),
|
|
19
|
+
'partner-rate-limits': item({ since: '2026-10-11', sinceFrom: 'git', days: 6, skipped: [{ stage: 'discover', why: 'Moved from Triage to Plan: the PRD came with the ask.', from: 'move', at: '2026-10-11' }],
|
|
20
|
+
parts: [{ name: 'scope', done: true }, { name: 'timeline', done: false }, { name: 'tickets drafted', done: false }, { name: 'tickets pushed', done: false }], next: 'Timeline',
|
|
21
|
+
links: { prd: 'planning/prd/partner-rate-limits.md', rubric: null, evaluation: null, epic: null } }),
|
|
22
|
+
'usage-billing': item({ since: '2026-10-03', sinceFrom: 'git', days: 14, parts: [{ name: 'problem', done: true }, { name: 'users', done: true }, { name: 'evidence', done: false }, { name: 'scope', done: false }, { name: 'success metric', done: false }, { name: 'risks', done: false }], next: 'Evidence' }),
|
|
23
|
+
'sso-partners': item({ since: '2026-10-13', sinceFrom: 'move', days: 4, links: { prd: 'planning/prd/sso-partners.md', rubric: 'planning/evals/sso-partners.md', evaluation: null, epic: 'SSO-1' },
|
|
24
|
+
drafted: [{ id: 'S.3', summary: 'SAML errors', key: 'SSO-12', prdChanged: false, waiting: false }], tickets: { 'SSO-12': { subtasks: { done: 1, total: 3 }, reason: 'Waiting on PLAT-88', flagged: true } } }),
|
|
25
|
+
'audit-log-export': item({ since: '2026-09-20', sinceFrom: 'git', days: 27 }),
|
|
26
|
+
'refund-reason-codes': item({ since: '2026-10-10', sinceFrom: 'git', days: 7, parts: [{ name: 'report', done: true }, { name: 'evaluation', done: true }, { name: 'verdict', done: false, you: true }], next: 'Your verdict',
|
|
27
|
+
you: { text: 'Your verdict', why: 'The evaluation is in. Accept it or return the run.', kind: 'verdict' }, links: { prd: null, rubric: null, evaluation: 'planning/evals/refund-reason-codes-eval.md', epic: null } }),
|
|
28
|
+
'docs-search': item({ since: '2026-10-08', sinceFrom: 'git', days: 9, theme: 'health', skipped: [{ stage: 'triage', why: 'The chore lane has no Triage step.', from: 'lane' }, { stage: 'discover', why: 'The chore lane has no Discover step.', from: 'lane' }, { stage: 'prioritize', why: 'The chore lane has no Prioritize step.', from: 'lane' }] }),
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
module.exports = { trail };
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* fixtures/premium-viewer-fixtures.js — stand-in answers for the Viewer's meeting, calendar, notes and report (initiative premium-agreed-design,
|
|
3
|
+
* area viewer). The browser suites and the screenshot run open /premium-viewer.html?open=… on the real server and answer the reads with these,
|
|
4
|
+
* so each press can be read off the request the page sent. Each answer has the shape its real route returns.
|
|
5
|
+
* install(page, o) → S o = { scene: 'notes' | 'live' | 'prep', now } S records the posts: S.posts [{ path, body }]
|
|
6
|
+
* The meeting is "Viewer sync" (a series of 4, about the Viewer initiative); "Rail review" starts in 30 minutes; the report is a
|
|
7
|
+
* leadership review with five sections. */
|
|
8
|
+
const pad = (n) => String(n).padStart(2, '0');
|
|
9
|
+
const dayKey = (d) => `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())}`;
|
|
10
|
+
const iso = (d) => { const off = -d.getTimezoneOffset(), a = Math.abs(off); return `${dayKey(d)}T${pad(d.getHours())}:${pad(d.getMinutes())}:00${off >= 0 ? '+' : '-'}${pad(Math.floor(a / 60))}:${pad(a % 60)}`; };
|
|
11
|
+
|
|
12
|
+
function world(now = new Date()) {
|
|
13
|
+
const mid = new Date(now.getFullYear(), now.getMonth(), now.getDate());
|
|
14
|
+
const at = (h, m) => new Date(mid.getFullYear(), mid.getMonth(), mid.getDate(), h, m);
|
|
15
|
+
const mon = new Date(mid); mon.setDate(mon.getDate() - ((mon.getDay() + 6) % 7));
|
|
16
|
+
const minute = Math.floor(now.getTime() / 60000) * 60000;
|
|
17
|
+
const SYNC = new Date(Math.max(mid.getTime(), minute - 40 * 60000)), SYNC_END = new Date(SYNC.getTime() + 31 * 60000);
|
|
18
|
+
const RAIL = new Date(minute + 30 * 60000), RAIL_END = new Date(RAIL.getTime() + 30 * 60000);
|
|
19
|
+
const LIVE = new Date(Math.max(mid.getTime(), minute - 12 * 60000)), LIVE_END = new Date(LIVE.getTime() + 30 * 60000);
|
|
20
|
+
const lvl = { kind: 'initiative', id: 'viewer', ws: 'w1', name: 'Viewer' };
|
|
21
|
+
const week = () => {
|
|
22
|
+
const cells = [];
|
|
23
|
+
for (let i = 0; i < 7; i++) { const d = new Date(mon.getFullYear(), mon.getMonth(), mon.getDate() + i); cells.push({ key: dayKey(d), start: dayKey(d), end: dayKey(d), events: [] }); }
|
|
24
|
+
const cell = (d) => cells.find((c) => c.key === dayKey(d));
|
|
25
|
+
cell(SYNC).events.push({ id: 'ev-sync', at: iso(SYNC), end: iso(SYNC_END), title: 'Viewer sync', attendees: ['Ana', 'Dita', 'Wawan'], series: 'viewer-sync' });
|
|
26
|
+
if (cell(RAIL)) cell(RAIL).events.push({ id: 'ev-rail', at: iso(RAIL), end: iso(RAIL_END), title: 'Rail review', attendees: ['Sam', 'Wawan'] });
|
|
27
|
+
if (cell(LIVE)) cell(LIVE).events.push({ id: 'ev-live', at: iso(LIVE), end: iso(LIVE_END), title: 'Design crit', attendees: ['Ana', 'Wawan'] });
|
|
28
|
+
for (let i = 0; i < 5; i++) { const d = new Date(mon.getFullYear(), mon.getMonth(), mon.getDate() + i, 15, 0); if (dayKey(d) !== dayKey(mid)) cell(d).events.push({ id: 'ev-1on1-' + i, at: iso(d), end: iso(new Date(d.getTime() + 30 * 60000)), title: '1:1 with Dita', attendees: ['Dita'] }); }
|
|
29
|
+
return { ok: true, view: 'week', range: { start: cells[0].key, end: cells[6].key }, cells, events_source: 'calendar-memory', today: dayKey(now), context: { 'ev-sync': { level: lvl }, 'ev-rail': { level: lvl } }, link_boards: [{ id: 'b1', ws: 'w1', name: 'Growth' }], gantt: [] };
|
|
30
|
+
};
|
|
31
|
+
const NOTE = {
|
|
32
|
+
id: 'n1', title: 'Viewer sync', state: 'ended', updated_at: SYNC_END.toISOString(), meeting_ms: 31 * 60000 + 5000,
|
|
33
|
+
meeting: { kind: 'event', event_id: 'ev-sync', start: iso(SYNC), end: iso(SYNC_END), title: 'Viewer sync', context: { with: 'Ana, Dita and Wawan', purpose: 'Agree how the Viewer ships.', agenda: ['Viewer beside the chat', 'Saved views and the migration', 'Print preview'] } },
|
|
34
|
+
initiative: { id: 'viewer', ws: 'w1', title: 'Viewer' }, series: { key: 'viewer-sync' },
|
|
35
|
+
final_notes: { overview: 'The Viewer opens next to the chat, not in place of it. Saved views move to the new store in their own work-item, which can slip a sprint without blocking the rest.',
|
|
36
|
+
decisions: [{ text: 'Diffs can be approved from the Viewer.', why: 'One place to read and approve; the separate review page was used twice.' }, { text: 'Migration V.3 always goes to you before release.', why: 'It moves saved views for every team.' }],
|
|
37
|
+
actions: [{ text: 'Add a print view for documents', owner: 'Ana', due: '' }, { text: 'Move saved views to the new store', owner: 'Dita', due: '' }, { text: 'Tell Communicator about the release', owner: 'Wawan', due: '' }],
|
|
38
|
+
questions: [{ text: 'Do old workspaces need a manual step?' }] },
|
|
39
|
+
final: { segments: [{ t: 190000, spk: 'meeting', text: 'The Viewer sits beside the chat now.' }, { t: 760000, spk: 'mic', text: 'Saved views move in their own work-item.' }, { t: 895000, spk: 'meeting', text: 'Approve the diff from the Viewer.' }] },
|
|
40
|
+
speakers: { meeting: 'Dita' },
|
|
41
|
+
transcript: [{ t: 400000, text: 'Completion is 81% on the web.', cat: 'statement', source: 'meeting', check: { doc: 'planning/okrs/q4.md', verdict: 'agrees' } }, { t: 500000, text: 'About half the teams use saved views.', cat: 'statement', source: 'mic' }],
|
|
42
|
+
};
|
|
43
|
+
const PLACE = { key: 'viewer-sync', title: 'Viewer sync', pos: 4, count: 4, by: 'calendar', prev: { id: 'n0', at: '2026-10-15T10:00:00Z', overview: 'The Viewer split.' }, next: null,
|
|
44
|
+
since: { at: '2026-10-15T10:00:00Z', items: [{ text: 'Show the Viewer at tablet width', owner: 'Designer', state: 'done' }, { text: 'Decide where saved views live', owner: 'Wawan', state: 'again' }, { text: 'Ask legal about exported PDFs', owner: 'Dita', state: 'open' }], fresh: [{ text: 'Add a print view for documents', owner: 'Ana' }] },
|
|
45
|
+
carried_in: [], carried: {} };
|
|
46
|
+
const LIVE_NOTE = { id: 'n2', title: 'Design crit', state: 'recording', updated_at: now.toISOString(), meeting_ms: 12 * 60000 + 4000, recorded_from: iso(LIVE),
|
|
47
|
+
meeting: { kind: 'event', event_id: 'ev-live', start: iso(LIVE), end: iso(LIVE_END), title: 'Design crit' }, body: 'Ask Ana for the tablet frames.',
|
|
48
|
+
transcript: [{ t: 300000, source: 'meeting', text: 'The report panel keeps one toolbar row.' }, { t: 420000, source: 'mic', text: 'And Issue is the blue button.' }, { t: 610000, source: 'meeting', text: 'Completion is 81% on the web.', cat: 'statement' }],
|
|
49
|
+
highlights: [{ t: 420000, text: 'Issue is the blue button.' }], speakers: { meeting: 'Ana' } };
|
|
50
|
+
const ROWS = [
|
|
51
|
+
{ id: 'n1', title: 'Viewer sync', state: 'ended', updated_at: NOTE.updated_at, meeting: { kind: 'event', event_id: 'ev-sync', start: iso(SYNC), title: 'Viewer sync' }, series: { key: 'viewer-sync' }, initiative: NOTE.initiative, meeting_ms: NOTE.meeting_ms, summary_lines: [NOTE.final_notes.overview] },
|
|
52
|
+
{ id: 'n0', title: 'Viewer sync', state: 'ended', updated_at: '2026-10-15T10:31:00Z', meeting: { kind: 'event', event_id: 'ev-sync-0', start: '2026-10-15T10:00:00Z', title: 'Viewer sync' }, series: { key: 'viewer-sync' }, initiative: NOTE.initiative },
|
|
53
|
+
{ id: 'n2', title: 'Design crit', state: 'recording', updated_at: now.toISOString(), meeting: LIVE_NOTE.meeting, meeting_ms: LIVE_NOTE.meeting_ms },
|
|
54
|
+
{ id: 'n3', title: 'Compare meeting note apps', state: 'ended', updated_at: iso(at(9, 30)), created_at: iso(at(9, 0)), meeting: null, meeting_ms: 20 * 60000 },
|
|
55
|
+
{ id: 'n4', title: 'Saved views interview', state: 'ended', updated_at: '2026-10-14T14:00:00Z', created_at: '2026-10-14T13:30:00Z', meeting: null, initiative: { id: 'saved-views', title: 'Saved views for teams' } },
|
|
56
|
+
];
|
|
57
|
+
return { now, SYNC, RAIL, LIVE, week, NOTE, PLACE, LIVE_NOTE, ROWS, lvl };
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const REPORT_PATH = 'reports/leadership-review/2026-10-21.md';
|
|
61
|
+
const REPORT = '---\ntype: Report\ntitle: "Password login and sign-up"\n---\n\n# Password login and sign-up\n\n## Summary\nLogin success is **81%** (597 of 733 web logins), as of 19 Oct 2026.\n\n## Login and sign-up success\n- Web: 81%\n- App: 88%\n\n## Why people drop\n- The code email arrives late\n- The password rules are unclear\n\n## Next steps\n- Ship the magic link\n- Rewrite the rules text\n\n## Sources reached and not reached\n- Reached: analytics, support, app store\n';
|
|
62
|
+
|
|
63
|
+
function install(page, o = {}) {
|
|
64
|
+
const W = world(o.now || new Date());
|
|
65
|
+
const S = { posts: [], gets: [], scene: o.scene || 'notes', W };
|
|
66
|
+
const json = (r, b, status = 200) => r.fulfill({ status, contentType: 'application/json', body: JSON.stringify(b) });
|
|
67
|
+
const body = (r) => { try { return JSON.parse(r.request().postData() || '{}'); } catch { return {}; } };
|
|
68
|
+
const post = (r) => { const b = body(r); S.posts.push({ path: new URL(r.request().url()).pathname, body: b }); return b; };
|
|
69
|
+
page.on('request', (r) => { if (r.method() === 'GET' && /\/api\//.test(r.url())) S.gets.push(new URL(r.url()).pathname + new URL(r.url()).search); });
|
|
70
|
+
S.points = {}; S.store = { n1: W.NOTE, n2: W.LIVE_NOTE, n0: { ...W.ROWS[1], body: '', transcript: [] }, n3: { ...W.ROWS[3], body: '', transcript: [] }, n4: { ...W.ROWS[4], body: '', transcript: [] } }; S.made = 0;
|
|
71
|
+
S.rows = (S.scene === 'prep' || o.noLive ? W.ROWS.filter((x) => x.id !== 'n2') : W.ROWS).map((x) => ({ ...x }));
|
|
72
|
+
if (S.scene === 'prep' || o.noLive) delete S.store.n2;
|
|
73
|
+
const notesRows = () => S.rows;
|
|
74
|
+
return Promise.all([
|
|
75
|
+
page.route('**/api/calendar-views*', (r) => json(r, W.week())),
|
|
76
|
+
page.route(/\/api\/notes(\?.*)?$/, (r) => (r.request().method() === 'GET' ? json(r, { ok: true, notes: notesRows(), series_open: { 'viewer-sync': { open: 2, carried: true } } }) : json(r, { ok: true }))),
|
|
77
|
+
page.route('**/api/notes/one*', (r) => {
|
|
78
|
+
const id = new URL(r.request().url()).searchParams.get('id'), n = S.store[id];
|
|
79
|
+
if (!n) return json(r, { ok: false, error: 'no such note' }, 404);
|
|
80
|
+
if (id === 'n1') return json(r, { ok: true, note: n, recording: { bytes: 64 }, screen: { frames: [{ t: 190000, why: 'Viewer beside the chat' }, { t: 895000, why: 'Diff approve button' }, { t: 1470000, why: 'Print preview' }] }, place: S.out ? null : W.PLACE });
|
|
81
|
+
return json(r, { ok: true, note: n, screen: { frames: id === 'n2' ? [{ t: 300000 }, { t: 400000 }, { t: 500000 }, { t: 600000 }] : [] }, place: null });
|
|
82
|
+
}),
|
|
83
|
+
page.route('**/api/notes/series?*', (r) => json(r, { ok: true, series: { key: 'viewer-sync', meetings: [{ id: 'n0', at: '2026-10-15T10:00:00Z', decided: 1, steps: 3 }, { id: 'n1', at: W.NOTE.meeting.start, decided: 2, steps: 3 }] } })),
|
|
84
|
+
page.route('**/api/notes/search*', (r) => json(r, { ok: true, ids: ['n4'], hits: [{ id: 'n4', snip: '…which teams use saved views for teams every week…', open: true }] })),
|
|
85
|
+
page.route('**/api/meeting-points*', (r) => {
|
|
86
|
+
if (r.request().method() === 'POST') { const b = post(r); (b.ids || []).forEach((id) => { if (b.verdict) S.points[id] = b.verdict; else delete S.points[id]; }); return json(r, { ok: true, points: S.points }); }
|
|
87
|
+
return json(r, { ok: true, points: S.points });
|
|
88
|
+
}),
|
|
89
|
+
page.route('**/api/notes/new', (r) => {
|
|
90
|
+
const b = post(r), id = 'new' + (++S.made);
|
|
91
|
+
const n = { id, title: b.title || '', state: 'idle', created_at: new Date().toISOString(), updated_at: new Date().toISOString(), meeting: b.meeting || (b.event ? { kind: 'event', event_id: b.event.id || b.event, start: b.event.at, title: b.event.title } : null), transcript: [] };
|
|
92
|
+
S.store[id] = n; S.rows.unshift({ ...n });
|
|
93
|
+
return json(r, { ok: true, id, note: n });
|
|
94
|
+
}),
|
|
95
|
+
page.route(/\/api\/notes\/(record|pause|stop)$/, (r) => {
|
|
96
|
+
const b = post(r), k = new URL(r.request().url()).pathname.split('/').pop(), n = S.store[b.id];
|
|
97
|
+
if (n) { n.state = k === 'record' ? 'recording' : k === 'pause' ? 'paused' : 'ended'; const row = S.rows.find((x) => x.id === b.id); if (row) row.state = n.state; }
|
|
98
|
+
return json(r, { ok: true });
|
|
99
|
+
}),
|
|
100
|
+
page.route(/\/api\/notes\/(save|private|speaker|series-member|link|highlight)$/, (r) => {
|
|
101
|
+
const b = post(r), k = new URL(r.request().url()).pathname.split('/').pop(), n = S.store[b.id];
|
|
102
|
+
if (n && k === 'save') n.body = b.body;
|
|
103
|
+
if (n && k === 'private') { n.private = !!b.private; n.transcript = []; }
|
|
104
|
+
if (k === 'series-member') S.out = b.key === 'off';
|
|
105
|
+
if (k === 'link') { const set = { initiative: b.initiative || null, board: b.board || null, portfolio: !!b.portfolio }; if (n) Object.assign(n, set); const row = S.rows.find((x) => x.id === b.id); if (row) Object.assign(row, set); }
|
|
106
|
+
return json(r, { ok: true, private: !!b.private });
|
|
107
|
+
}),
|
|
108
|
+
page.route('**/api/notes/recording*', (r) => r.fulfill({ status: 200, contentType: 'audio/wav', body: Buffer.alloc(0) })),
|
|
109
|
+
page.route('**/api/notes/screen*', (r) => r.fulfill({ status: 200, contentType: 'image/png', body: Buffer.from('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==', 'base64') })),
|
|
110
|
+
page.route('**/api/meeting-focus?*', (r) => {
|
|
111
|
+
const u = new URL(r.request().url()), ev = u.searchParams.get('event'), note = u.searchParams.get('note');
|
|
112
|
+
const live = ev === 'ev-live' || note === 'n2';
|
|
113
|
+
/* a note with no calendar event has no event, brief or topics */
|
|
114
|
+
if (!ev && note && note !== 'n1' && note !== 'n2') return json(r, { ok: true, now_ms: Date.now(), event: null, note: { id: note, state: (S.store[note] || {}).state || 'ended' }, brief: null, material: [], topics: [], runs: [], captured: {}, tail: [] });
|
|
115
|
+
const base = { ok: true, now_ms: Date.now(), event: live ? { id: 'ev-live', title: 'Design crit', at: W.LIVE_NOTE.meeting.start, end: W.LIVE_NOTE.meeting.end, attendees: ['Ana', 'Wawan'] } : ev === 'ev-rail' ? { id: 'ev-rail', title: 'Rail review', at: iso(W.RAIL), attendees: ['Sam', 'Wawan'] } : { id: 'ev-sync', title: 'Viewer sync', at: W.NOTE.meeting.start, end: W.NOTE.meeting.end, attendees: ['Ana', 'Dita', 'Wawan'] },
|
|
116
|
+
note: live ? { id: 'n2', state: 'recording' } : ev === 'ev-rail' ? null : { id: 'n1', state: 'ended' },
|
|
117
|
+
brief: { gist: ['Agree the rail before the Commit.'], purpose: 'Agree the rail before the Commit.', matters: [{ tag: 'Late', tone: 'bad', text: 'The SSO spike', meta: 'due 14 Oct' }, { tag: 'Changed', tone: '', text: 'The report panel design', meta: 'Oct 21' }], last: { id: 'n0', at: '2026-10-15T10:00:00Z', decisions: [{ text: 'a' }], actions: [{ text: 'b' }, { text: 'c' }] }, prep: 'Read the rail PRD.', initiative: { id: 'viewer', title: 'Viewer', ws: 'w1' } },
|
|
118
|
+
material: [{ kind: 'pmos-deck', title: 'Release deck', ref: 'decks/release.md', from: 'you' }, { kind: 'pmos-doc', title: 'Rail PRD', ref: 'planning/prd/rail.md', from: 'you' }, { kind: 'link', title: 'Figma: report panel', url: 'https://x.example/f', topic: 'The report panel' }],
|
|
119
|
+
topics: live ? [{ id: 't1', text: 'One toolbar row', state: 'discussed', minutes: 6 }, { id: 't2', text: 'The Issue button', state: 'now', minutes: 8 }, { id: 't3', text: 'Phone layout', state: 'plan', minutes: 10 }] : [{ id: 't1', text: 'Viewer beside the chat', state: 'plan', minutes: 10 }, { id: 't2', text: 'Saved views and the migration', state: 'plan', minutes: 10 }, { id: 't3', text: 'Print preview', state: 'plan', minutes: 10 }],
|
|
120
|
+
runs: live ? [{ topic: 't1', from_min: 0, to_min: 6 }, { topic: 't2', from_min: 6, to_min: null }] : [], captured: live ? { decisions: [{}], actions: [{}, {}], questions: [] } : {}, tail: [] };
|
|
121
|
+
return json(r, base);
|
|
122
|
+
}),
|
|
123
|
+
page.route('**/api/meeting-focus/topic', (r) => { post(r); return json(r, { ok: true }); }),
|
|
124
|
+
page.route('**/api/meeting-replay*', (r) => (new URL(r.request().url()).searchParams.get('note') !== 'n1' ? json(r, { ok: false, error: 'no recording' }) : null) || json(r, { ok: true, length_ms: 31 * 60000 + 5000, note: { id: 'n1', title: 'Viewer sync' }, meeting: { title: 'Viewer sync', at: W.NOTE.meeting.start, attendees: ['Ana', 'Dita', 'Wawan'] },
|
|
125
|
+
topics: [{ id: 't1', text: 'Viewer beside the chat' }, { id: 't2', text: 'Saved views and the migration' }, { id: 't3', text: 'Print preview' }],
|
|
126
|
+
runs: [{ topic: 't1', from_ms: 0, to_ms: 600000 }, { topic: 't2', from_ms: 600000, to_ms: 1300000 }, { topic: 't3', from_ms: 1300000, to_ms: 1865000 }],
|
|
127
|
+
keys: [{ k: 'decision', text: 'Diffs can be approved from the Viewer.', t: 895000, by: 'Dita' }, { k: 'action', text: 'Add a print view', t: 1500000, owner: 'Ana', due: 'Fri' }, { k: 'decision', text: 'Migration V.3', t: 1700000 }, { k: 'action', text: 'Ask legal about PDFs', t: 1750000 }, { k: 'question', text: 'Do old workspaces need a manual step?', t: 1800000, state: 'open' }],
|
|
128
|
+
shots: [{ t: 190000, why: 'Viewer beside the chat' }, { t: 895000, why: 'Diff approve button' }, { t: 1470000, why: 'Print preview' }],
|
|
129
|
+
lines: [{ t: 190000, who: 'Dita', text: 'The Viewer sits beside the chat now.' }, { t: 760000, who: 'You', text: 'Saved views move in their own work-item.' }, { t: 894000, who: 'Ana', text: 'Yes, approve the diff from the Viewer.' }, { t: 1499000, who: 'Ana', text: 'I will add the print view by Friday.' }] })),
|
|
130
|
+
page.route('**/api/meeting-material/suggest*', (r) => json(r, { ok: true, suggested: [{ kind: 'pmos-doc', ref: 'planning/runs/phone.md', title: 'Run log · phone test', meta: 'Run log' }, { kind: 'pmos-deck', ref: 'decks/release.md', title: 'Release deck', meta: 'Deck · 6 slides' }], found: [{ kind: 'pmos-doc', ref: 'planning/prd/rail.md', title: 'Rail PRD', meta: 'PRD' }] })),
|
|
131
|
+
page.route('**/api/meeting-material*', (r) => (r.request().method() === 'POST' ? (post(r), json(r, { ok: true })) : json(r, { ok: true, key: 'k', items: [], topics: [{ text: 'One toolbar row' }] }))),
|
|
132
|
+
page.route('**/api/viewer-meeting?*', (r) => {
|
|
133
|
+
const u = new URL(r.request().url()), topics = u.searchParams.getAll('topic');
|
|
134
|
+
return json(r, { ok: true, agenda: { key: 's:viewer-sync', total: 30, topics: topics.map((t, i) => ({ n: i + 1, text: t, min: 10, set: i === 0 })) }, capture: { app: 'zoom', shots: 'on' }, steps: { links: S.links || {}, tasks: [] } });
|
|
135
|
+
}),
|
|
136
|
+
page.route(/\/api\/viewer-meeting\/(agenda|capture)/, (r) => { const b = post(r); return json(r, { ok: true, capture: { app: b.app || 'zoom', shots: b.shots || 'on' } }); }),
|
|
137
|
+
page.route('**/api/viewer-meeting/work-item', (r) => { const b = post(r); const k = require('../lib/viewer-meeting.js').stepKey(b.step && b.step.text); const had = (S.links = S.links || {})[k]; if (!had) S.links[k] = 'V.' + (4 + Object.keys(S.links).length); return json(r, { ok: true, ticket: S.links[k], created: !had }); }),
|
|
138
|
+
page.route('**/api/plan-items*', (r) => (r.request().method() === 'POST' ? (post(r), json(r, { ok: true, written: [{ item: 'item-9' }] })) : json(r, { ok: true, stages: [{ id: 'st1', label: 'Intake' }] }))),
|
|
139
|
+
page.route('**/api/calendar-links', (r) => { post(r); return json(r, { ok: true }); }),
|
|
140
|
+
page.route('**/api/boards', (r) => json(r, { ok: true, boards: [{ id: 'b1', ws: 'w1', name: 'Growth' }] })),
|
|
141
|
+
page.route('**/api/boards/backlog*', (r) => json(r, { ok: true, rows: [{ id: 'viewer', title: 'Viewer' }] })),
|
|
142
|
+
/* the report */
|
|
143
|
+
page.route('**/api/doc?*', (r) => r.fulfill({ status: 200, contentType: 'text/markdown', body: S.reportText || REPORT })),
|
|
144
|
+
page.route('**/api/report-design/cycle?*', (r) => json(r, { ok: true, designed: false })),
|
|
145
|
+
page.route('**/api/report-setups?*', (r) => json(r, { ok: true, setups: S.setup ? [S.setup] : [] })),
|
|
146
|
+
page.route('**/api/report-setups/*', (r) => { const b = post(r); S.setup = { id: 'leadership-review', name: 'Password login and sign-up', audience: 'Leadership review', status: 'active', schedule: b.schedule || (b.proposal && b.proposal.schedule) }; return json(r, { ok: true, setup: S.setup }); }),
|
|
147
|
+
page.route('**/api/report-documents?*', (r) => json(r, { ok: true, docs: [{ path: REPORT_PATH, slot: '2026-10-21', state: 'draft' }, { path: 'reports/leadership-review/2026-10-14.md', slot: '2026-10-14', state: 'issued' }, { path: 'reports/leadership-review/2026-10-07.md', slot: '2026-10-07', state: 'issued' }, { path: 'reports/leadership-review/2026-09-30.md', slot: '2026-09-30', state: 'issued', archived: true }] })),
|
|
148
|
+
page.route('**/api/report-documents/*', (r) => { post(r); return json(r, { ok: true }); }),
|
|
149
|
+
page.route('**/api/viewer-report/checks*', (r) => json(r, { ok: true, checks: [{ id: 'sources', ok: true, text: 'All 3 sources reached · data from Oct 19' }, { id: 'sections', ok: true, text: '5 slides, every section filled' }, { id: 'figures', ok: false, text: 'The 81% figure is 2 days old. Refresh it first?' }] })),
|
|
150
|
+
page.route('**/api/report/draft*', (r) => json(r, { ok: true, exists: true, sha: 'abc', markdown: S.reportText || REPORT })),
|
|
151
|
+
page.route('**/api/report/issue', (r) => { post(r); return json(r, { ok: true }); }),
|
|
152
|
+
page.route('**/api/shares', (r) => (r.request().method() === 'POST' ? (post(r), json(r, { ok: true, url: 'https://share.example/s/abc', ends: '2026-10-29T00:00:00Z' })) : json(r, { ok: true, shares: S.shares || [] }))),
|
|
153
|
+
page.route('**/api/shares/password', (r) => json(r, { ok: true, password: 'velvet-pepper-planet-35' })),
|
|
154
|
+
page.route('**/api/shares/off', (r) => { post(r); return json(r, { ok: true }); }),
|
|
155
|
+
]).then(() => S);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* the stand-in recorder: the console's recorder (view-notes.js) makes these same requests; this one opens no microphone */
|
|
159
|
+
const RECORDER = () => {
|
|
160
|
+
window.__premiumRecorder = {
|
|
161
|
+
_id: null, _started: null, _banner: null, _hl: 0,
|
|
162
|
+
async listen(id) {
|
|
163
|
+
const r = await fetch('/api/notes/record', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ id }) }).then((x) => x.json());
|
|
164
|
+
if (!r.ok) { this._banner = r.error; return false; }
|
|
165
|
+
this._id = id; this._started = Date.now() - 65000; return true;
|
|
166
|
+
},
|
|
167
|
+
async pause() { await fetch('/api/notes/pause', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ id: this._id }) }); this._id = null; },
|
|
168
|
+
async stop(id) { await fetch('/api/notes/stop', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ id }) }); this._id = null; return { discarded: false }; },
|
|
169
|
+
highlight() { this._hl++; return true; }, highlighting() { return this._hl ? { state: 'listening', open: true } : null; },
|
|
170
|
+
listening() { return this._id; }, started() { return this._started; }, banner() { const b = this._banner; this._banner = null; return b; },
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
/** One page on the Viewer: a context, the stand-ins, the stand-in recorder, and the page opened at `url`. → { ctx, page, S, errors } */
|
|
175
|
+
async function open(browser, base, url, o = {}) {
|
|
176
|
+
const ctx = await browser.newContext({ viewport: { width: o.w || 1280, height: o.h || 900 }, acceptDownloads: true });
|
|
177
|
+
const page = await ctx.newPage(), errors = [];
|
|
178
|
+
page.on('pageerror', (e) => errors.push(String((e && e.message) || e)));
|
|
179
|
+
const S = await install(page, o);
|
|
180
|
+
await page.addInitScript(RECORDER);
|
|
181
|
+
if (o.init) await page.addInitScript(o.init);
|
|
182
|
+
await page.goto(base + url);
|
|
183
|
+
return { ctx, page, S, errors };
|
|
184
|
+
}
|
|
185
|
+
const until = async (fn, ms = 10000, 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 new Promise((r) => setTimeout(r, step)); } };
|
|
186
|
+
|
|
187
|
+
module.exports = { open, until, RECORDER, install, world, REPORT, REPORT_PATH, dayKey, iso };
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "The premium Briefing (/premium.html)"
|
|
4
4
|
description: "The Briefing page at /premium.html: the hero sentence, What you need to do, Today, the dock, and what each one reads from the repository."
|
|
5
|
-
timestamp: 2026-10-
|
|
5
|
+
timestamp: 2026-10-23
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# The premium Briefing
|
|
9
9
|
|
|
10
|
+
> Home now follows the Agreed design. [Home](home.md) describes the page as it works today and the cards marked **Waiting for design**. The sections below describe the features that those cards keep.
|
|
11
|
+
|
|
10
12
|
The premium Briefing is a page of its own at `/premium.html`. The console at `/` stays the default page. This page reads the repositories of the products you pick (see "Products"). It writes only when you press a button that says it records (see "What the buttons record"), plus one derived copy of its last answer, described below.
|
|
11
13
|
|
|
12
14
|
Every premium page uses the console's type: Space Grotesk for text, IBM Plex Mono for times and labels, and the same sizes and weights as the console. A premium page and the console at the same place read at the same size.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: Guide
|
|
3
|
+
title: "Home (/premium.html) and the designed features"
|
|
4
|
+
description: "Home in the Agreed design: the list grouped by product, the Viewer, the place menu, New for you, Search, and the initiative, meeting, report, Board and Insights features designed after it."
|
|
5
|
+
timestamp: 2026-10-23
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Home
|
|
9
|
+
|
|
10
|
+
Home is the page at `/premium.html`. It follows the Agreed design and the "Uncovered features" canvas (initiative `premium-uncovered-features`). The left side is one list. The middle is the chat. The right side is the Viewer. A row opens its item in the Viewer. On a phone the list is the page, and a row opens its conversation with a back bar.
|
|
11
|
+
|
|
12
|
+
## The list
|
|
13
|
+
|
|
14
|
+
- The list is grouped by **product**. The product's header shows its goals, for example "2 of 4 goals on track". Press a header to close or open the product.
|
|
15
|
+
- Each next step sits under its **initiative**. An initiative where the next step is yours comes first and shows **your turn**. The first one is open. Press an initiative to open or close it.
|
|
16
|
+
- **Not in an initiative** holds only the items that have no initiative: loose notes, mentions and meetings.
|
|
17
|
+
- The greeting says how many next steps are yours today, for example "Good morning. 2 next steps are yours today."
|
|
18
|
+
- **Today**, **Waiting**, **Kept** and **Done** are filters on the same list. There is no separate Needs you list and no Your list.
|
|
19
|
+
- On Fridays, **Weekly review** at the top of the list opens four short steps.
|
|
20
|
+
- The microphone in the chat box turns what you say into text. Nothing is sent until you press send.
|
|
21
|
+
|
|
22
|
+
## An initiative
|
|
23
|
+
|
|
24
|
+
Open an initiative with `?ini=<id>`. Its card at the top of the list shows the stage and the exit items.
|
|
25
|
+
|
|
26
|
+
- **Moves on by itself** is a switch, on by default. When every exit item is done, the stage moves to the next stage and a message shows **Undo**. A stage never moves by itself into a milestone (Deliver or Evaluate). This rule is a proposal that the PM has not confirmed yet.
|
|
27
|
+
- **Move to <next>** with open exit items asks first (**Move anyway**, with a note). **Back** always asks for a reason.
|
|
28
|
+
- **Tasks** in the Viewer can be grouped by stage, by groups that you name, by owner or by status. Drag a task to another group.
|
|
29
|
+
- **Core documents** in the list shows only the documents that need a look. **All documents** opens every document in the Viewer.
|
|
30
|
+
|
|
31
|
+
Some features are still not designed. Home keeps each one usable as a plain card in the Viewer with the label **Waiting for design**. The label means that the card works, but its look is not final.
|
|
32
|
+
|
|
33
|
+
## New for you, Search, Sources and Settings
|
|
34
|
+
|
|
35
|
+
- **New for you** replaces the Inbox. It holds only items to know about: mentions, tasks given to you and finished work. An item leaves the list when you have seen it. A mention that asks you something becomes the next step of its initiative.
|
|
36
|
+
- **Search** (Ctrl K or ⌘K, or `/`) finds initiatives, documents, sessions and files in the repository and its worktrees.
|
|
37
|
+
- **Sources** shows each source that Home reads and its health. **Settings** holds the theme (light, dark or the system's) and the workspace settings.
|
|
38
|
+
|
|
39
|
+
## The other pages
|
|
40
|
+
|
|
41
|
+
- **Board.** New initiative takes links and files, starts in Triage and asks only the questions that the material does not answer. **Later** keeps the questions as the next step. The Board also has List, By stage, Documents and spans. On a phone, **Metrics** and **Cancelled and archived** are in every view.
|
|
42
|
+
- **Meetings.** Replay with screen captures and kept points, Focus, a presenter view, Add material, the After view, a Day, Week and Month calendar, and Notes.
|
|
43
|
+
- **Reports.** The Brief, the report states, a document reader and a live page reader.
|
|
44
|
+
- **Insights.** A goal's detail with its chart and readings, targets on each tile, Library flows and a Portfolio view.
|
|
45
|
+
|
|
46
|
+
## The place menu
|
|
47
|
+
|
|
48
|
+
Press the round button at the bottom of the page (bottom left on a desktop, bottom right on a phone). The menu lists **Home**, **Board** and **Insights**, then **Search** (⌘K), **New for you** with its count, **Sources** with an amber dot when a source is behind, **Settings** and **Theme** (Light, Dark, Auto). On Home, **More** follows Settings:
|
|
49
|
+
|
|
50
|
+
- **My work.** Your own items, in the same card: **Edit** opens When, Waiting on, Who does it and Priority · Due; **Keep it** and **Drop it** are under the fields. The agent can draft an item, and nothing goes out until you confirm **Post it**. Escape closes the fields first, then returns to the list.
|
|
51
|
+
- **End of the day.** What finished today, the recap, and tomorrow's meetings.
|
|
52
|
+
- **Calendar** and **Record a note.**
|
|
53
|
+
- **Products.** The products that Home reads. A switch turns one product on or off. **Back to the default** goes back to the default list. With `?ws=` in the address, **All picked products** goes back to the full list.
|
|
54
|
+
|
|
55
|
+
## A need row in the Viewer
|
|
56
|
+
|
|
57
|
+
A need opens in the Viewer with its title, its facts and its choices. A need from a source starts with **Why now**. If the source gives a web address, **Open it** opens it in a new tab.
|
|
58
|
+
|
|
59
|
+
## Your first Briefing
|
|
60
|
+
|
|
61
|
+
After an import in Welcome, Home opens with `first=` in the address. A card at the top of the list shows what came in and the state of each tool that you ticked. **Undo this import** reverses the import and returns to Welcome. The card shows **Waiting for design**.
|
|
62
|
+
|
|
63
|
+
## A document page
|
|
64
|
+
|
|
65
|
+
A document opens as a page in the Viewer. Use **Page**, **Edit** or **Markdown** to read it, edit it in place, or edit the file as text. Under the page, a section marked **Waiting for design** holds two lists:
|
|
66
|
+
|
|
67
|
+
- **Edit log.** Each version of the file, with its reason, who changed it, and the day.
|
|
68
|
+
- **Proposals.** The agent's proposed changes. **Open proposals** shows each open proposal with the request and each section. **Accept** takes only the sections that are still current. If no section is current, the proposal says that it cannot be accepted. **Reject** asks for a reason first. **Closed** lists the accepted and rejected proposals with their reasons. If the server refuses a press, the section shows the server's reason.
|
package/workspace/guide/index.md
CHANGED
|
@@ -28,6 +28,7 @@ On a desktop the workspace is one frame. [Layout](layout.md) explains each part.
|
|
|
28
28
|
| The sessions of a repository, by initiative | The agent dock. ⌘K → **Branches and sessions** lists the branches. |
|
|
29
29
|
| The items of an initiative | Board, or Breakdown in the initiative detail |
|
|
30
30
|
| How the Briefing cards, day part, Portfolio pulse and overdue items work | [Briefing](briefing-cards.md) |
|
|
31
|
+
| Home in the Agreed design: the list by product, New for you, Search, and the designed features | [Home](home.md) |
|
|
31
32
|
| The premium Briefing page at /premium.html | [Premium Briefing](briefing-premium.md) |
|
|
32
33
|
| Run reports | Reports |
|
|
33
34
|
| Whether a document is the same as its Google Docs or Confluence copy | Docs: ⌘K → **Docs**, or press `g d` |
|