create-pmos 0.692.0 → 0.694.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 +22 -16
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/adler-moments-test.js +3 -35
- package/workspace/adler-seasons-test.js +1 -1
- package/workspace/briefing-premium-adddoc-test.js +1 -1
- package/workspace/briefing-premium-board-test.js +1 -1
- package/workspace/briefing-premium-doc-edit-test.js +1 -1
- package/workspace/briefing-premium-work-test.js +2 -2
- package/workspace/changelog.json +21 -2
- package/workspace/chat-asks-test.js +1 -1
- package/workspace/core-docs-workflow-test.js +1 -1
- package/workspace/ev-everywhere-test.js +3 -14
- package/workspace/guide/home.md +2 -2
- package/workspace/guide/layout.md +2 -2
- package/workspace/guide/settings-and-switches.md +0 -1
- package/workspace/impact-screens-test.js +2 -47
- package/workspace/ini-workflow-test.js +1 -1
- package/workspace/lib/board-grill.js +17 -24
- package/workspace/lib/discovery-questions.js +36 -0
- package/workspace/lib/routes-board-grill.js +31 -3
- package/workspace/live-pill-round-test.js +6 -18
- package/workspace/milestone-suggest-test.js +4 -28
- package/workspace/news-viewers-test.js +3 -29
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +3 -3
- package/workspace/premium-briefing-depth-test.js +4 -4
- package/workspace/premium-chat-attach-test.js +3 -2
- package/workspace/premium-chat-chart-tab-test.js +8 -7
- package/workspace/premium-chat-context-test.js +3 -1
- package/workspace/premium-chat-goal-view-test.js +3 -1
- package/workspace/premium-chat-line-test.js +8 -6
- package/workspace/premium-chat-report-tab-test.js +13 -5
- package/workspace/premium-chat-term-test.js +2 -2
- package/workspace/premium-chat-viewer-test.js +10 -16
- package/workspace/premium-core-doc-issue-test.js +7 -2
- package/workspace/premium-discuss-landing-test.js +9 -5
- package/workspace/premium-html-viewer-test.js +7 -3
- package/workspace/premium-link-suggest-test.js +6 -10
- package/workspace/premium-phone-card-test.js +2 -2
- package/workspace/premium-viewer-download-test.js +1 -1
- package/workspace/premium-viewer-flicker-test.js +1 -1
- package/workspace/premium-viewer-share-test.js +2 -2
- package/workspace/premium-viewer-test.js +1 -1
- package/workspace/premium-vw-cal-test.js +1 -1
- package/workspace/premium-vw-copy-test.js +3 -3
- package/workspace/premium-vw-doc-test.js +1 -1
- package/workspace/premium-vw-item-test.js +1 -1
- package/workspace/premium-work-depth-test.js +2 -2
- package/workspace/program-charter-test.js +1 -12
- package/workspace/program-leave-test.js +2 -2
- package/workspace/program-order-test.js +3 -65
- package/workspace/project-onboard-flow-test.js +5 -5
- package/workspace/public/pm/bd-asks.js +6 -5
- package/workspace/public/pm/cozy-home.css +0 -6
- package/workspace/public/pm/cozy-panels.js +2 -6
- package/workspace/public/pm/cozy-popup.css +1 -0
- package/workspace/public/pm/cozy-popup.js +15 -2
- package/workspace/public/pm/cozy-today-page.css +1 -1
- package/workspace/public/pm/cozy-today.css +0 -14
- package/workspace/public/pm/cozy-viewer.js +14 -38
- package/workspace/public/pm/goal-chat.js +2 -2
- package/workspace/public/pm/home-app.js +8 -67
- package/workspace/public/pm/home-chat.js +1 -1
- package/workspace/public/pm/home-ses-name.js +3 -2
- package/workspace/public/pm/home-today.js +4 -18
- package/workspace/public/pm/ini-view-model.js +2 -2
- package/workspace/public/pm/premium-board.js +1 -1
- package/workspace/public/premium-intelligence.html +1 -1
- package/workspace/public/premium-viewer.html +1 -1
- package/workspace/public/premium-workflows.html +1 -1
- package/workspace/ready-dash-ui-test.js +1 -1
- package/workspace/rename-test.js +2 -2
- package/workspace/server.js +11 -12
- package/workspace/session-names-test.js +34 -56
- package/workspace/sort-order-test.js +2 -71
- package/workspace/split-merge-ui-test.js +1 -1
- package/workspace/stage-card-tasks-test.js +1 -1
- package/workspace/stage-card-test.js +1 -1
- package/workspace/task-card-test.js +1 -1
- package/workspace/task-press-test.js +1 -1
- package/workspace/task-views-test.js +1 -1
- package/workspace/test-lists/adler-seasons-art.json +3 -6
- package/workspace/test-lists/batch18-asks.json +1 -1
- package/workspace/test-lists/briefing-premium.json +1 -11
- package/workspace/test-lists/discovery-three-questions.json +5 -0
- package/workspace/test-lists/premium-agreed-viewer.json +1 -1
- package/workspace/test-run.js +0 -2
- package/workspace/test-timings.json +0 -4
- package/workspace/tk-tasks-test.js +3 -17
- package/workspace/viewer-trail-test.js +2 -2
- package/workspace/workflows-setup-test.js +4 -2
- package/workspace/adler-seasons-art-test.js +0 -116
- package/workspace/briefing-premium-initiative-test.js +0 -289
- package/workspace/briefing-premium-products-test.js +0 -209
- package/workspace/briefing-premium-sources-test.js +0 -250
- package/workspace/briefing-premium-test.js +0 -282
- package/workspace/home-other-product-test.js +0 -197
- package/workspace/home-pill-test.js +0 -138
- package/workspace/home-railcard-test.js +0 -196
- package/workspace/home-rows-test.js +0 -389
- package/workspace/panels-test.js +0 -454
- package/workspace/public/premium.html +0 -48
- package/workspace/test-lists/batch18-panels.json +0 -9
- package/workspace/test-lists/home-railcard.json +0 -9
- package/workspace/test-lists/home-sessions-pill.json +0 -6
- package/workspace/test-lists/viewer-home-rows.json +0 -9
package/workspace/panels-test.js
DELETED
|
@@ -1,454 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
3
|
-
/* panels-test.js — panels side by side on Home, like a tablet (feedback batch 18 item 15, build 15-A; canvas TbT1Split … TbT9Divider;
|
|
4
|
-
* public/pm/cozy-panels.js, cozy-viewer.js several Viewers, home-app.js mountPanels).
|
|
5
|
-
* Serves the real page from the real server; GET /api/briefing-premium answers the fixture model (as home-railcard-test.js does).
|
|
6
|
-
* N1 an initiative opens as today's split: the chat, one divider (a separator), the Viewer; ⧉ before × on both headers, no ⤢ on Home
|
|
7
|
-
* N2 a drag of the divider near the middle snaps it at ½; double-click resets it; ← and → move it 24 px
|
|
8
|
-
* N3 a drag of the divider to the left edge slides the chat away: the Viewer is whole and the list folds to a rail
|
|
9
|
-
* N4 ⧉ opens Full screen, Split, Slide over (44 px icons, the current one checked); Split brings the chat back beside
|
|
10
|
-
* N5 Slide over floats the chat over the right side (400 px, a grab bar); a drag off the right edge puts it away; slideOver() brings it back
|
|
11
|
-
* N6 a list row dragged to the far right edge shows the blue drop zone; on the drop it opens in a Viewer of its own beside (TbT6TwoViewers):
|
|
12
|
-
* two Viewers side by side at 1440, the chat slides over; a third replaces the Viewer used least recently
|
|
13
|
-
* N7 at 1920 the chat and two Viewers sit side by side with two dividers (TbT8Wide)
|
|
14
|
-
* N8 the initiative reopens with its last panels (the chat put away is remembered across a reload)
|
|
15
|
-
* N9 Present in a recording slides the chat away; Stop brings it back
|
|
16
|
-
* N10 a phone keeps today's one panel: no divider, no ⧉; dark uses the tokens; no page error anywhere
|
|
17
|
-
* Board and Intelligence (panels on Board and Intelligence, P-A; canvas BiB1Split … BiB9DropOn, BiI1Split … BiI4Wide): the page is the first panel
|
|
18
|
-
* P1 a row opens a split (no float), the Viewer no wider than fit() leaves; ⧉ in place of ⤢ P2 the snap at ½ makes the page narrow
|
|
19
|
-
* (cz-pn-narrow); only the share is kept P3 ⧉ Slide over, put away, the Live pill brings it back P4 ⌘/Ctrl-click opens beside (slides
|
|
20
|
-
* over at 1440), the active edge, a plain click replaces the Viewer used last P5 a drop on a Viewer replaces it P6 the divider to the
|
|
21
|
-
* left edge: full screen; Split brings the page back; to the right edge: the Viewer closes P7 a reload reopens nothing; the share holds;
|
|
22
|
-
* Home resets it P8 1920: a drop at the far edge opens beside, three panels P9 Intelligence: split, ⌘-click P10 a phone as today
|
|
23
|
-
* P11 dock a Viewer on the left by its header, the divider on that side, kept after a reload, ⧉'s Dock on the right by the keyboard
|
|
24
|
-
* P12 Discuss in chat opens Home's chat in a panel on the Board (slides over at 1440, beside at 1920), with the same conversation key
|
|
25
|
-
* P13 the Live pill's list docks on the right by its grab bar, and a press moves it back (batch 26 item 4)
|
|
26
|
-
* Screenshots go to PMOS_SHOTS when it is set. Every wait polls the page. */
|
|
27
|
-
const fs = require('fs');
|
|
28
|
-
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
29
|
-
const path = require('path');
|
|
30
|
-
const { spawn } = require('child_process');
|
|
31
|
-
const { findBrowser } = require('./lib/find-browser');
|
|
32
|
-
const { besidePage } = require('./lib/beside-page'); // these checks are about work beside the page, not the popup
|
|
33
|
-
const T = require('./test-run').configure({ name: 'panels' });
|
|
34
|
-
const B = require('./lib/briefing-premium.js');
|
|
35
|
-
const F = require('./fixtures/briefing-premium-facts.js');
|
|
36
|
-
const BP = require('./lib/board-premium.js');
|
|
37
|
-
const BF = require('./fixtures/board-premium-facts.js');
|
|
38
|
-
const IP = require('./lib/insights-premium.js');
|
|
39
|
-
const IF = require('./fixtures/insights-premium-facts.js');
|
|
40
|
-
|
|
41
|
-
const BASE = T.BASE;
|
|
42
|
-
const SHOTS = process.env.PMOS_SHOTS || '';
|
|
43
|
-
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
44
|
-
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 sleep(step); } };
|
|
45
|
-
const results = [];
|
|
46
|
-
const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + String(extra).slice(0, 600) : ''}`); };
|
|
47
|
-
let srv = null; let browser = null;
|
|
48
|
-
const finish = async (code) => {
|
|
49
|
-
if (browser) await browser.close().catch(() => {});
|
|
50
|
-
if (srv) { try { srv.kill('SIGKILL'); } catch { /* gone */ } }
|
|
51
|
-
T.killTmux();
|
|
52
|
-
const bad = results.filter((x) => !x.cond).length;
|
|
53
|
-
console.log(`\n${results.length - bad}/${results.length} panels assertions passed`);
|
|
54
|
-
process.exit(code !== undefined ? code : (bad ? 1 : 0));
|
|
55
|
-
};
|
|
56
|
-
process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
57
|
-
|
|
58
|
-
(async () => {
|
|
59
|
-
const exe = findBrowser();
|
|
60
|
-
if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the panels suite cannot run'); return finish(1); }
|
|
61
|
-
let chromium;
|
|
62
|
-
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed — the panels suite cannot run'); return finish(1); }
|
|
63
|
-
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
64
|
-
await T.waitForServer(BASE);
|
|
65
|
-
browser = classicBoard(besidePage(await chromium.launch({ executablePath: exe })));
|
|
66
|
-
|
|
67
|
-
const open = async ({ w = 1440, h = 900, dark = false, ctx = null, q = '', at = '/premium.html', ready = () => { document.querySelectorAll('#hmList .hv-fold[aria-expanded="false"]').forEach((b) => b.click()); return !!window.czPanels && document.querySelectorAll('#hmList .hv-r.ini .hm-rm').length > 2; } } = {}) => {
|
|
68
|
-
// Home shows only the rows with a call (home-nav-rows-with-a-call): the default ready opens every folded group, so the rows this suite drags are there
|
|
69
|
-
ctx = ctx || await browser.newContext({ viewport: { width: w, height: h }, colorScheme: dark ? 'dark' : 'light' });
|
|
70
|
-
const page = await ctx.newPage();
|
|
71
|
-
const errors = [];
|
|
72
|
-
page.on('pageerror', (e) => errors.push(String((e && e.message) || e)));
|
|
73
|
-
const json = (r, b) => r.fulfill({ status: 200, contentType: 'application/json', body: JSON.stringify(b) });
|
|
74
|
-
await page.route(/\/api\/board-premium(\?.*)?$/, (r) => { const ws = new URL(r.request().url()).searchParams.get('ws') || 'idpf'; return json(r, { ok: true, state: 'ready', model: BP.build(BF.programFacts(ws)), as_of: Date.now() }); });
|
|
75
|
-
await page.route(/\/api\/briefing-premium(\?.*)?$/, (r) => json(r, { ok: true, state: 'ready', model: B.buildMany(F.programFacts()), as_of: Date.now() }));
|
|
76
|
-
await page.route('**/api/programs', (r) => json(r, { ok: true, programs: F.programs() }));
|
|
77
|
-
await page.route('**/api/insights-premium*', (r) => json(r, { ok: true, state: 'ready', model: IP.build(IF.facts({ pinned: 'all' })), as_of: 1 }));
|
|
78
|
-
await page.route('**/api/board-metrics-premium*', (r) => json(r, { ok: true, state: 'ready', model: { tiles: [] } }));
|
|
79
|
-
await page.goto(BASE + at + q);
|
|
80
|
-
const up = await until(() => page.evaluate(ready), 20000);
|
|
81
|
-
const close = async () => { await ctx.unrouteAll({ behavior: 'ignoreErrors' }).catch(() => {}); await ctx.close().catch(() => {}); };
|
|
82
|
-
return { ctx, page, errors, up, close };
|
|
83
|
-
};
|
|
84
|
-
const shot = async (page, name) => { if (!SHOTS) return; await sleep(400); fs.mkdirSync(SHOTS, { recursive: true }); await page.screenshot({ path: path.join(SHOTS, name + '.png') }); };
|
|
85
|
-
/** what the page shows: each panel's box and mode, the dividers, the rail */
|
|
86
|
-
const lay = (page) => page.evaluate(() => {
|
|
87
|
-
const box = (el) => { if (!el) return null; const r = el.getBoundingClientRect(); return { l: Math.round(r.left), r: Math.round(r.right), w: Math.round(r.width), shown: r.width > 0 && getComputedStyle(el).display !== 'none' }; };
|
|
88
|
-
const P = window.czPanels.list();
|
|
89
|
-
return {
|
|
90
|
-
panels: P.map((p) => ({ ...p, box: box(p.id === 'chat' ? document.getElementById('hmChat') : document.querySelector(`[data-cz-panel="${p.id}"]`)) })),
|
|
91
|
-
divs: [...document.querySelectorAll('.cz-pn-div')].map((d) => ({ ...box(d), role: d.getAttribute('role'), first: d.dataset.k === '0' })),
|
|
92
|
-
rail: window.czViewer.railOn(), list: Math.round(document.getElementById('hmList').getBoundingClientRect().width),
|
|
93
|
-
};
|
|
94
|
-
});
|
|
95
|
-
const P = (l, id) => l.panels.find((p) => p.id === id) || null;
|
|
96
|
-
const rows = (page) => page.evaluate(() => [...document.querySelectorAll('#hmList .hv-r.ini .hm-rm[data-hm-sel]')].map((b) => b.dataset.hmSel));
|
|
97
|
-
/** drag from the centre of a selector's element to (x, y) in steps, as a mouse does */
|
|
98
|
-
const drag = async (page, from, x, y, { hold } = {}) => {
|
|
99
|
-
const r = typeof from === 'string' ? await page.evaluate((s) => { const e = document.querySelector(s); e.scrollIntoView({ block: 'nearest' }); const b = e.getBoundingClientRect(); return { x: b.left + b.width / 2, y: b.top + b.height / 2 }; }, from) : from;
|
|
100
|
-
await page.mouse.move(r.x, r.y); await page.mouse.down();
|
|
101
|
-
for (let i = 1; i <= 12; i++) { await page.mouse.move(r.x + (x - r.x) * i / 12, r.y + (y - r.y) * i / 12); await sleep(16); }
|
|
102
|
-
if (hold) await hold();
|
|
103
|
-
await page.mouse.up();
|
|
104
|
-
};
|
|
105
|
-
const divAt = (page, k = 0) => page.evaluate((i) => { const d = document.querySelectorAll('.cz-pn-div')[i]; const r = d.getBoundingClientRect(); return { x: r.left + r.width / 2, y: r.top + r.height / 2 }; }, k);
|
|
106
|
-
|
|
107
|
-
/* ── 1440: the split, the divider, ⧉, slide over ── */
|
|
108
|
-
const A = await open();
|
|
109
|
-
ok('0 Home draws its rows and window.czPanels', !!A.up);
|
|
110
|
-
const R = await rows(A.page);
|
|
111
|
-
await A.page.click(`#hmList .hm-rm[data-hm-sel="${R[0]}"]`);
|
|
112
|
-
const l1 = await until(() => lay(A.page).then((l) => (P(l, 'v0') && P(l, 'v0').box.shown && l.divs.length === 1 ? l : null)));
|
|
113
|
-
ok('N1 today\'s split: the chat, one divider (a separator), the Viewer', !!l1 && P(l1, 'chat').mode === 'split' && P(l1, 'v0').mode === 'split' && l1.divs[0].role === 'separator'
|
|
114
|
-
&& P(l1, 'chat').box.r <= l1.divs[0].l + 12 && l1.divs[0].r <= P(l1, 'v0').box.l + 12, JSON.stringify(l1));
|
|
115
|
-
const heads = await A.page.evaluate(() => ({ vw: [...document.querySelectorAll('#czViewer .cz-vw-hd [data-cz-vw]')].map((b) => b.dataset.czVw), chat: [...document.querySelectorAll('#hmChat .cz-pn-ct button')].map((b) => b.getAttribute('aria-label')) }));
|
|
116
|
-
ok('N1 ⧉ before × on the Viewer\'s header and on the chat; no ⤢ on Home', heads.vw.slice(-2).join() === 'place,close' && !heads.vw.includes('wide') && heads.chat.join('|') === 'Arrange the chat|Put the chat away', JSON.stringify(heads));
|
|
117
|
-
await shot(A.page, 'n1-split-1440');
|
|
118
|
-
|
|
119
|
-
// N2 the divider: near the middle it snaps at ½ of the row
|
|
120
|
-
const d0 = await divAt(A.page);
|
|
121
|
-
const mid = (P(l1, 'chat').box.l + P(l1, 'v0').box.r) / 2;
|
|
122
|
-
await drag(A.page, d0, mid + 9, d0.y);
|
|
123
|
-
const l2 = await until(() => lay(A.page).then((l) => { const c = P(l, 'chat').box, v = P(l, 'v0').box; return Math.abs(c.w - v.w) <= 4 ? l : null; }), 3000);
|
|
124
|
-
ok('N2 a drag near the middle snaps the divider at ½ (the chat and the Viewer as wide)', !!l2, JSON.stringify(l2 && [P(l2, 'chat').box, P(l2, 'v0').box]));
|
|
125
|
-
await A.page.focus('.cz-pn-div');
|
|
126
|
-
const w0 = (await lay(A.page)).panels.find((p) => p.id === 'v0').box.w;
|
|
127
|
-
await A.page.keyboard.press('ArrowLeft');
|
|
128
|
-
const w1 = await until(() => lay(A.page).then((l) => { const w = P(l, 'v0').box.w; return w !== w0 ? w : null; }), 3000);
|
|
129
|
-
ok('N2 ← moves the divider 24 px (the Viewer grows)', w1 === w0 + 24, JSON.stringify([w0, w1]));
|
|
130
|
-
{ const d = await divAt(A.page); await A.page.mouse.dblclick(d.x, d.y); } // the divider is 0 wide: its hit area is 20 px around it
|
|
131
|
-
const l2b = await until(() => lay(A.page).then((l) => (Math.abs(P(l, 'chat').box.w - P(l, 'v0').box.w) <= 30 ? l : null)), 3000);
|
|
132
|
-
ok('N2 double-click resets it to about ½', !!l2b, JSON.stringify(l2b && [P(l2b, 'chat').box, P(l2b, 'v0').box]));
|
|
133
|
-
|
|
134
|
-
// N3 to the left edge: the chat slides away, the Viewer is whole, the list folds to a rail
|
|
135
|
-
const d1 = await divAt(A.page);
|
|
136
|
-
await drag(A.page, d1, P(l1, 'chat').box.l + 30, d1.y);
|
|
137
|
-
const l3 = await until(() => lay(A.page).then((l) => (P(l, 'chat').mode === 'away' ? l : null)), 3000);
|
|
138
|
-
ok('N3 a drag to the left edge slides the chat away; the Viewer is whole; the list folds to a rail; no divider', !!l3 && !P(l3, 'chat').box.shown && P(l3, 'v0').full && l3.rail && l3.divs.length === 0 && P(l3, 'v0').box.w > 1100, JSON.stringify(l3));
|
|
139
|
-
await shot(A.page, 'n3-full-1440');
|
|
140
|
-
|
|
141
|
-
// N4 ⧉: three icons, Full checked; Split brings the chat back beside
|
|
142
|
-
await A.page.click('#czViewer [data-cz-vw="place"]');
|
|
143
|
-
const m4 = await until(() => A.page.evaluate(() => { const m = document.querySelector('.cz-pn-menu'); if (!m) return null; return [...m.querySelectorAll('button')].map((b) => ({ n: b.getAttribute('aria-label'), on: b.getAttribute('aria-checked'), w: Math.round(b.getBoundingClientRect().width), h: Math.round(b.getBoundingClientRect().height), text: b.textContent.trim() })); }));
|
|
144
|
-
ok('N4 ⧉ opens Full screen, Split, Slide over: icons only, 44 px, Full screen checked', !!m4 && m4.map((b) => b.n).join('|') === 'Full screen|Split|Slide over' && m4.every((b) => b.w === 44 && b.h === 44 && !b.text) && m4[0].on === 'true', JSON.stringify(m4));
|
|
145
|
-
await shot(A.page, 'n4-menu-1440');
|
|
146
|
-
await A.page.click('.cz-pn-menu [data-cz-pn-place="split"]');
|
|
147
|
-
const l4 = await until(() => lay(A.page).then((l) => (P(l, 'chat').mode === 'split' && P(l, 'chat').box.shown ? l : null)), 3000);
|
|
148
|
-
ok('N4 Split brings the chat back beside the Viewer, with its divider', !!l4 && l4.divs.length === 1 && !P(l4, 'v0').full, JSON.stringify(l4));
|
|
149
|
-
|
|
150
|
-
// N5 slide over: the chat floats over the right side; a drag off the right edge puts it away; slideOver() brings it back
|
|
151
|
-
await A.page.click('#hmChat .cz-pn-ct [data-cz-pn-chat="place"]');
|
|
152
|
-
await until(() => A.page.$('.cz-pn-menu'));
|
|
153
|
-
await A.page.click('.cz-pn-menu [data-cz-pn-place="over"]');
|
|
154
|
-
const l5 = await until(() => lay(A.page).then((l) => (P(l, 'chat').mode === 'over' ? l : null)), 3000);
|
|
155
|
-
const vw5 = await A.page.evaluate(() => innerWidth);
|
|
156
|
-
ok('N5 Slide over: the chat floats 400 px wide at the right, over a whole Viewer, with a grab bar', !!l5 && P(l5, 'chat').box.w === 400 && vw5 - P(l5, 'chat').box.r < 40 && P(l5, 'v0').full
|
|
157
|
-
&& await A.page.evaluate(() => !!document.querySelector('#hmChat.cz-pn-over > .cz-pn-grab')), JSON.stringify(l5));
|
|
158
|
-
await shot(A.page, 'n5-over-1440');
|
|
159
|
-
const g = await A.page.evaluate(() => { const r = document.querySelector('#hmChat > .cz-pn-grab').getBoundingClientRect(); return { x: r.left + r.width / 2, y: r.top + r.height / 2 }; });
|
|
160
|
-
await drag(A.page, g, g.x + 200, g.y);
|
|
161
|
-
const l5b = await until(() => lay(A.page).then((l) => (P(l, 'chat').mode === 'away' ? l : null)), 3000);
|
|
162
|
-
ok('N5 a drag off the right edge puts it away; czPanels.away() names it; nothing else opens', !!l5b && !P(l5b, 'chat').box.shown && await A.page.evaluate(() => window.czPanels.away() === 'chat'), JSON.stringify(l5b));
|
|
163
|
-
ok('N5 czPanels.slideOver() brings it back over', await A.page.evaluate(() => window.czPanels.slideOver()) && !!(await until(() => lay(A.page).then((l) => (P(l, 'chat').mode === 'over' && P(l, 'chat').box.shown ? l : null)), 3000)));
|
|
164
|
-
await A.page.evaluate(() => window.czPanels.place('chat', 'split'));
|
|
165
|
-
|
|
166
|
-
// N6 open beside: drag a list row to the right half
|
|
167
|
-
await until(() => lay(A.page).then((l) => (l.divs.length === 1 && !l.rail ? l : null)), 3000);
|
|
168
|
-
const v0r = (await lay(A.page)).panels.find((p) => p.id === 'v0').box;
|
|
169
|
-
let zone = null;
|
|
170
|
-
await A.page.click('#czViewer .cz-vw-hd'); // the Viewer is the panel used last: the chat gives way
|
|
171
|
-
await drag(A.page, `#hmList .hm-rm[data-hm-sel="${R[1]}"]`, v0r.r - 60, 450, { hold: async () => { zone = await A.page.evaluate(() => { const z = document.querySelector('.cz-pn-drop:not([hidden])'); if (!z) return null; const r = z.getBoundingClientRect(); return { side: z.dataset.side, l: Math.round(r.left), w: Math.round(r.width), bg: getComputedStyle(z).backgroundColor }; }); await shot(A.page, 'n6-drag-1440'); } });
|
|
172
|
-
ok('N6 dragging a row to the far right edge shows the blue drop zone there (open beside)', !!zone && zone.side === 'right' && zone.w >= 100 && zone.l + zone.w >= v0r.r - 2, JSON.stringify(zone));
|
|
173
|
-
const l6 = await until(() => lay(A.page).then((l) => (P(l, 'v1') && P(l, 'v1').box.shown && P(l, 'v0').box.shown ? l : null)), 6000);
|
|
174
|
-
ok('N6 on the drop the row opens in a second Viewer on the right; at 1440 the two Viewers sit side by side and the chat slides over', !!l6 && P(l6, 'v1').box.l > P(l6, 'v0').box.l && P(l6, 'chat').mode === 'over' && l6.divs.length === 1, JSON.stringify(l6));
|
|
175
|
-
const t6 = await A.page.evaluate(() => [...document.querySelectorAll('.cz-vw:not([hidden]) .cz-vw-title')].map((h) => h.textContent));
|
|
176
|
-
ok('N6 each Viewer shows its own item; czViewer.current() is the one opened last', t6.length === 2 && t6[0] !== t6[1] && await A.page.evaluate((t) => window.czViewer.current().title === t, t6[1]), JSON.stringify(t6));
|
|
177
|
-
const act6 = await A.page.evaluate(() => [...document.querySelectorAll('.cz-vw:not([hidden])')].map((v) => ({ id: v.id, on: v.classList.contains('cz-pn-active'), sh: getComputedStyle(v).boxShadow })));
|
|
178
|
-
ok('N6 with two Viewers the one a plain click replaces (used last) has the thin blue edge; the other has none', act6.length === 2 && act6.filter((v) => v.on).length === 1 && act6.find((v) => v.on).id === 'czViewer2' && /2px/.test(act6.find((v) => v.on).sh), JSON.stringify(act6));
|
|
179
|
-
{ const r = await A.page.evaluate(() => { const b = document.querySelector('#czViewer .cz-vw-body').getBoundingClientRect(); return { x: b.left + 60, y: b.top + 80 }; }); await A.page.mouse.move(r.x, r.y); await A.page.mouse.wheel(0, 40); }
|
|
180
|
-
ok('N6 a scroll in the other Viewer moves the edge to it', !!(await until(() => A.page.evaluate(() => document.querySelector('#czViewer').classList.contains('cz-pn-active') && !document.querySelector('#czViewer2').classList.contains('cz-pn-active')), 3000)));
|
|
181
|
-
await A.page.click('#czViewer2 .cz-vw-hd', { position: { x: 30, y: 20 } });
|
|
182
|
-
await shot(A.page, 'n6-two-viewers-1440');
|
|
183
|
-
// a third row: it replaces the Viewer used least recently (v0, as v1 was used last)
|
|
184
|
-
await A.page.click('#czViewer2 .cz-vw-hd', { position: { x: 30, y: 20 } });
|
|
185
|
-
await A.page.evaluate(() => window.czPanels.putAway());
|
|
186
|
-
ok('N6 two Viewers leave the list as it was: only its own fold folds it (batch 20 item 6)', !(await lay(A.page)).rail);
|
|
187
|
-
const v1r = (await lay(A.page)).panels.find((p) => p.id === 'v1').box;
|
|
188
|
-
await drag(A.page, `#hmList .hm-rm[data-hm-sel="${R[2]}"]`, v1r.r - 60, 450);
|
|
189
|
-
const l6c = await until(() => lay(A.page).then((l) => { const t = l.panels.filter((p) => p.kind === 'viewer' && p.box.shown); return t.length === 2 && t.some((p) => p.title !== t6[0] && p.title !== t6[1]) ? l : null; }), 6000);
|
|
190
|
-
const t6c = l6c ? l6c.panels.filter((p) => p.kind === 'viewer' && p.box.shown).map((p) => p.title) : []; // the one giving way closes a moment later
|
|
191
|
-
ok('N6 a third Viewer at 1440 replaces the one used least recently (still two side by side)', !!l6c && !t6c.includes(t6[0]) && t6c.includes(t6[1]), JSON.stringify([t6c, await lay(A.page)]));
|
|
192
|
-
// one item, one Viewer (batch 31 item 10): opening beside an item already shown does not copy it; bodyOf finds its own Viewer
|
|
193
|
-
const dup = await A.page.evaluate(async () => {
|
|
194
|
-
const it = { id: 'dup-one', kind: 'Note', title: 'Shown once', html: '<p class="dup-a">a</p>' };
|
|
195
|
-
window.czPanels.openBeside(it); await new Promise((r) => setTimeout(r, 400));
|
|
196
|
-
window.czPanels.openBeside({ ...it, html: '<p class="dup-b">b</p>' }); await new Promise((r) => setTimeout(r, 400));
|
|
197
|
-
const open = [...document.querySelectorAll('.cz-vw')].filter((e) => !e.hidden && e.querySelector('.cz-vw-body .dup-a, .cz-vw-body .dup-b'));
|
|
198
|
-
const b = window.czViewer.bodyOf('dup-one');
|
|
199
|
-
return { n: open.length, own: !!b && open.length === 1 && open[0].contains(b), b: !!(b && b.querySelector('.dup-b')) };
|
|
200
|
-
});
|
|
201
|
-
ok('N6 the same item opened beside twice stays in one Viewer, shown again there; czViewer.bodyOf finds that Viewer', dup.n === 1 && dup.own && dup.b, JSON.stringify(dup));
|
|
202
|
-
ok('0 no page error at 1440', A.errors.length === 0, A.errors.join(' | '));
|
|
203
|
-
await A.close();
|
|
204
|
-
|
|
205
|
-
/* ── 1920: three side by side ── */
|
|
206
|
-
const W = await open({ w: 1920, h: 1080 });
|
|
207
|
-
await W.page.click(`#hmList .hm-rm[data-hm-sel="${R[0]}"]`);
|
|
208
|
-
await until(() => lay(W.page).then((l) => (P(l, 'v0') && P(l, 'v0').box.shown ? l : null)));
|
|
209
|
-
const v0w = (await lay(W.page)).panels.find((p) => p.id === 'v0').box;
|
|
210
|
-
await drag(W.page, `#hmList .hm-rm[data-hm-sel="${R[1]}"]`, v0w.r - 60, 500);
|
|
211
|
-
const l7 = await until(() => lay(W.page).then((l) => (P(l, 'v1') && P(l, 'v1').box.shown && l.divs.length === 2 ? l : null)), 6000);
|
|
212
|
-
ok('N7 at 1920 the chat and two Viewers sit side by side with two dividers; only the first is first', !!l7 && P(l7, 'chat').mode === 'split' && P(l7, 'chat').box.r < P(l7, 'v0').box.l && P(l7, 'v0').box.r < P(l7, 'v1').box.l && l7.divs.filter((d) => d.first).length === 1, JSON.stringify(l7 || await lay(W.page)));
|
|
213
|
-
await shot(W.page, 'n7-three-1920');
|
|
214
|
-
ok('0 no page error at 1920', W.errors.length === 0, W.errors.join(' | '));
|
|
215
|
-
await W.close();
|
|
216
|
-
|
|
217
|
-
/* ── remembered per initiative: the chat put away comes back put away after a reload ── */
|
|
218
|
-
const ctx8 = await browser.newContext({ viewport: { width: 1440, height: 900 } });
|
|
219
|
-
const M = await open({ ctx: ctx8 });
|
|
220
|
-
await M.page.click(`#hmList .hm-rm[data-hm-sel="${R[0]}"]`);
|
|
221
|
-
await until(() => lay(M.page).then((l) => (P(l, 'v0') && P(l, 'v0').box.shown ? l : null)));
|
|
222
|
-
await M.page.evaluate(() => window.czPanels.place('v0', 'full'));
|
|
223
|
-
await until(() => lay(M.page).then((l) => (P(l, 'chat').mode === 'away' ? l : null)), 3000);
|
|
224
|
-
const ini = await M.page.evaluate(() => new URL(location.href).searchParams.get('ini'));
|
|
225
|
-
const kept = await M.page.evaluate((id) => { try { return JSON.parse(localStorage.getItem('cz-pn:' + id)); } catch { return null; } }, ini);
|
|
226
|
-
ok('N8 the initiative\'s panels are kept in localStorage (cz-pn:<initiative id>)', !!ini && !!kept && kept.chat === 'away', JSON.stringify([ini, kept]));
|
|
227
|
-
await M.page.close();
|
|
228
|
-
const M2 = await open({ ctx: ctx8, q: '?ini=' + encodeURIComponent(ini || '') });
|
|
229
|
-
const l8 = await until(() => lay(M2.page).then((l) => (P(l, 'v0') && P(l, 'v0').box.shown && P(l, 'chat').mode === 'away' ? l : null)), 8000);
|
|
230
|
-
ok('N8 reopening the initiative restores its panels (the Viewer whole, the chat put away)', !!l8, JSON.stringify(await lay(M2.page)));
|
|
231
|
-
|
|
232
|
-
/* ── Present: the chat slides away while a recording presents, and comes back on Stop ── */
|
|
233
|
-
await M2.page.evaluate(() => window.czPanels.place('chat', 'split'));
|
|
234
|
-
await until(() => lay(M2.page).then((l) => (P(l, 'chat').mode === 'split' ? l : null)), 3000);
|
|
235
|
-
await M2.page.evaluate(() => { const c = new BroadcastChannel('pmos-present'); c.postMessage({ t: 'show', show: { mat: { title: 'Award recommendation' } } }); c.close(); });
|
|
236
|
-
ok('N9 Present in a recording slides the chat away by itself', !!(await until(() => lay(M2.page).then((l) => (P(l, 'chat').mode === 'away' ? l : null)), 3000)));
|
|
237
|
-
await M2.page.evaluate(() => { const c = new BroadcastChannel('pmos-present'); c.postMessage({ t: 'off' }); c.close(); });
|
|
238
|
-
ok('N9 Stop brings it back beside', !!(await until(() => lay(M2.page).then((l) => (P(l, 'chat').mode === 'split' && P(l, 'chat').box.shown ? l : null)), 3000)));
|
|
239
|
-
ok('0 no page error when restoring', M.errors.length === 0 && M2.errors.length === 0, [...M.errors, ...M2.errors].join(' | '));
|
|
240
|
-
await M2.close();
|
|
241
|
-
|
|
242
|
-
/* ── a phone keeps one panel; dark uses the tokens ── */
|
|
243
|
-
const Ph = await open({ w: 390, h: 844 });
|
|
244
|
-
await Ph.page.evaluate(() => { const b = document.querySelector('#hmList .hv-r.ini .hm-rm'); if (b) b.click(); });
|
|
245
|
-
await until(() => Ph.page.evaluate(() => !!document.querySelector('#czViewer:not([hidden])')));
|
|
246
|
-
const ph = await Ph.page.evaluate(() => ({ divs: [...document.querySelectorAll('.cz-pn-div')].filter((d) => d.getBoundingClientRect().width > 0 || getComputedStyle(d).display !== 'none').length, place: !!document.querySelector('#czViewer [data-cz-vw="place"]'), ct: !!document.querySelector('#hmChat .cz-pn-ct'), wide: document.documentElement.scrollWidth <= innerWidth + 1 }));
|
|
247
|
-
ok('N10 a phone keeps today\'s one panel: no divider, no ⧉, no page scroll sideways', ph.divs === 0 && !ph.place && !ph.ct && ph.wide, JSON.stringify(ph));
|
|
248
|
-
ok('0 no page error on a phone', Ph.errors.length === 0, Ph.errors.join(' | '));
|
|
249
|
-
await Ph.close();
|
|
250
|
-
const Dk = await open({ dark: true });
|
|
251
|
-
await Dk.page.click(`#hmList .hm-rm[data-hm-sel="${R[0]}"]`);
|
|
252
|
-
await until(() => lay(Dk.page).then((l) => (l.divs.length === 1 ? l : null)));
|
|
253
|
-
await Dk.page.click('#czViewer [data-cz-vw="place"]');
|
|
254
|
-
await until(() => Dk.page.$('.cz-pn-menu'));
|
|
255
|
-
const dk = await Dk.page.evaluate(() => ({ menu: getComputedStyle(document.querySelector('.cz-pn-menu')).backgroundColor, body: getComputedStyle(document.body).backgroundColor }));
|
|
256
|
-
ok('N10 dark: the ⧉ menu takes the dark card colour from the tokens', /rgb\((\d+), (\d+), (\d+)\)/.test(dk.menu) && dk.menu.match(/\d+/g).slice(0, 3).every((n) => +n < 90), JSON.stringify(dk));
|
|
257
|
-
await shot(Dk.page, 'n10-dark-1440');
|
|
258
|
-
ok('0 no page error in dark', Dk.errors.length === 0, Dk.errors.join(' | '));
|
|
259
|
-
await Dk.close();
|
|
260
|
-
|
|
261
|
-
/* ── Board and Intelligence: the page is the first panel (BiB1Split … BiB9DropOn, BiI1Split … BiI4Wide) ── */
|
|
262
|
-
const boardReady = () => !!window.czPanels && document.querySelectorAll('.ini2[data-key]:not(.bd-bc)').length > 2;
|
|
263
|
-
const pl = (page) => page.evaluate(() => {
|
|
264
|
-
const box = (el) => { if (!el) return null; const r = el.getBoundingClientRect(); return { l: Math.round(r.left), r: Math.round(r.right), w: Math.round(r.width), shown: r.width > 0 && getComputedStyle(el).display !== 'none' }; };
|
|
265
|
-
const P = window.czPanels.list(), pg = document.getElementById('stage');
|
|
266
|
-
return {
|
|
267
|
-
panels: P.map((p) => ({ ...p, box: box(p.id === 'page' ? pg : document.querySelector(`[data-cz-panel="${p.id}"]`)) })),
|
|
268
|
-
divs: [...document.querySelectorAll('.cz-pn-div')].map((d) => ({ ...box(d), first: d.dataset.k === '0', sprout: !!d.querySelector('.cz-dv-top') })),
|
|
269
|
-
narrow: pg.classList.contains('cz-pn-narrow'), float: !!document.querySelector('.cz-vw.cz-vw-float'),
|
|
270
|
-
active: [...document.querySelectorAll('.cz-vw.cz-pn-active')].map((v) => v.dataset.czPanel), ww: innerWidth,
|
|
271
|
-
};
|
|
272
|
-
});
|
|
273
|
-
const keys = (page) => page.evaluate(() => [...document.querySelectorAll('.ini2[data-key]:not(.bd-bc)')].map((b) => b.dataset.key));
|
|
274
|
-
const nm = (k) => `.ini2[data-key="${k}"]:not(.bd-bc)`;
|
|
275
|
-
const ctxB = await browser.newContext({ viewport: { width: 1440, height: 900 } });
|
|
276
|
-
const Bd = await open({ ctx: ctxB, at: '/premium-board.html', ready: boardReady });
|
|
277
|
-
ok('P0 the Board draws its rows and window.czPanels; the page is the one panel', !!Bd.up && (await pl(Bd.page)).panels.map((p) => p.id + ':' + p.mode).join() === 'page:split');
|
|
278
|
-
const K = await keys(Bd.page);
|
|
279
|
-
await Bd.page.click(nm(K[0]));
|
|
280
|
-
const b1 = await until(() => pl(Bd.page).then((l) => (P(l, 'v0') && P(l, 'v0').box.shown && l.divs.length === 1 ? l : null)));
|
|
281
|
-
ok('P1 a row opens a split: the page, one divider with the sprout, the Viewer; nothing floats over the page', !!b1 && !b1.float && P(b1, 'page').box.r <= b1.divs[0].l + 12 && b1.divs[0].r <= P(b1, 'v0').box.l + 12 && b1.divs[0].sprout, JSON.stringify(b1));
|
|
282
|
-
ok('P1 the Viewer opens no wider than leaves the page its view whole (fit 880 at 1440 beside the 80 px rail of places, slice 1: the Viewer 426 px, under 560); the page is not narrow', !!b1 && P(b1, 'page').box.w >= 878 && Math.abs(P(b1, 'v0').box.w - 426) <= 4 && !b1.narrow, JSON.stringify(b1 && [P(b1, 'page').box, P(b1, 'v0').box]));
|
|
283
|
-
const bh = await Bd.page.evaluate(() => [...document.querySelectorAll('#czViewer .cz-vw-hd [data-cz-vw]')].map((b) => b.dataset.czVw));
|
|
284
|
-
ok('P1 ⧉ before × on the Viewer\'s header, in place of ⤢', bh.slice(-2).join() === 'place,close' && !bh.includes('wide'), JSON.stringify(bh));
|
|
285
|
-
await shot(Bd.page, 'p1-board-split-1440');
|
|
286
|
-
// the divider near the middle snaps at ½: the page goes to its narrow form; only the share is kept
|
|
287
|
-
{ const d = await divAt(Bd.page); await drag(Bd.page, d, (96 + 1424) / 2 + 8, d.y); } // slice 1: the page starts after the rail, at 96
|
|
288
|
-
const b2 = await until(() => pl(Bd.page).then((l) => (Math.abs(P(l, 'page').box.w - P(l, 'v0').box.w) <= 4 ? l : null)), 3000);
|
|
289
|
-
const keptB = await Bd.page.evaluate(() => { try { return JSON.parse(localStorage.getItem('cz-pn:board')); } catch { return null; } });
|
|
290
|
-
ok('P2 a drag near the middle snaps the divider at ½; the page panel is narrower than fit() and gets cz-pn-narrow', !!b2 && b2.narrow, JSON.stringify(b2 && [P(b2, 'page').box, P(b2, 'v0').box, b2.narrow]));
|
|
291
|
-
ok('P2 only the divider share is kept (cz-pn:board), not the kind\'s width', !!keptB && keptB.v === 2 && Math.abs(keptB.share - 0.5) < 0.02 && !Object.keys(await Bd.page.evaluate(() => ({ ...localStorage }))).some((k) => /^cz-vw-w:/.test(k)), JSON.stringify(keptB));
|
|
292
|
-
await shot(Bd.page, 'p2-board-half-1440');
|
|
293
|
-
// ⧉: slide over floats the Viewer over the whole page; a drag off the right edge puts it away; the Live pill brings it back
|
|
294
|
-
await Bd.page.click('#czViewer [data-cz-vw="place"]');
|
|
295
|
-
await until(() => Bd.page.$('.cz-pn-menu'));
|
|
296
|
-
const m3 = await Bd.page.evaluate(() => [...document.querySelectorAll('.cz-pn-menu button')].map((b) => b.getAttribute('aria-label') + (b.getAttribute('aria-checked') === 'true' ? '*' : '')).join('|'));
|
|
297
|
-
ok('P3 ⧉ opens Full screen, Split, Slide over, then Dock on the left and Dock on the right (right checked); Split is checked', m3 === 'Full screen|Split*|Slide over|Dock on the left|Dock on the right*', m3);
|
|
298
|
-
await Bd.page.click('.cz-pn-menu [data-cz-pn-place="over"]');
|
|
299
|
-
const b3 = await until(() => pl(Bd.page).then((l) => (P(l, 'v0').mode === 'over' ? l : null)), 3000);
|
|
300
|
-
ok('P3 Slide over: the Viewer floats 560 px at the right with a grab bar; the page is whole again, with no divider', !!b3 && P(b3, 'v0').box.w === 560 && P(b3, 'page').box.w > 1300 && b3.divs.length === 0 && !b3.narrow
|
|
301
|
-
&& await Bd.page.evaluate(() => !!document.querySelector('#czViewer.cz-pn-over > .cz-pn-grab')), JSON.stringify(b3));
|
|
302
|
-
await shot(Bd.page, 'p3-board-over-1440');
|
|
303
|
-
{ const g = await Bd.page.evaluate(() => { const r = document.querySelector('#czViewer > .cz-pn-grab').getBoundingClientRect(); return { x: r.left + r.width / 2, y: r.top + r.height / 2 }; }); await drag(Bd.page, g, g.x + 200, g.y); }
|
|
304
|
-
const b3b = await until(() => pl(Bd.page).then((l) => (P(l, 'v0').mode === 'away' && !P(l, 'v0').box.shown ? l : null)), 3000);
|
|
305
|
-
ok('P3 a drag off the right edge puts it away', !!b3b, JSON.stringify(await pl(Bd.page)));
|
|
306
|
-
await Bd.page.click('#czLive');
|
|
307
|
-
const lvRow = await until(() => Bd.page.$('#czLiveList a[data-lv="pn:v0"]'), 3000);
|
|
308
|
-
ok('P3 the Live pill lists the Viewer put away', !!lvRow);
|
|
309
|
-
if (lvRow) await Bd.page.click('#czLiveList a[data-lv="pn:v0"]');
|
|
310
|
-
ok('P3 its row brings it back over', !!(await until(() => pl(Bd.page).then((l) => (P(l, 'v0').mode === 'over' && P(l, 'v0').box.shown ? l : null)), 3000)));
|
|
311
|
-
await Bd.page.evaluate(() => window.czPanels.place('v0', 'split'));
|
|
312
|
-
await until(() => pl(Bd.page).then((l) => (l.divs.length === 1 ? l : null)), 3000);
|
|
313
|
-
// ⌘/Ctrl-click: on a laptop the second item slides over; the edge marks the active one; a press in the other moves it
|
|
314
|
-
await Bd.page.click(nm(K[1]), { modifiers: ['Control'] });
|
|
315
|
-
const b4 = await until(() => pl(Bd.page).then((l) => (P(l, 'v1') && P(l, 'v1').box.shown ? l : null)), 4000);
|
|
316
|
-
ok('P4 ⌘/Ctrl-click on a row opens it beside: at 1440 it slides over, the split under it stays', !!b4 && P(b4, 'v1').mode === 'over' && P(b4, 'v0').mode === 'split' && P(b4, 'v0').box.shown, JSON.stringify(b4));
|
|
317
|
-
ok('P4 two Viewers: the one a plain click replaces has the blue edge', !!b4 && b4.active.join() === 'v1', JSON.stringify(b4 && b4.active));
|
|
318
|
-
await Bd.page.evaluate(() => window.czPanels.putAway());
|
|
319
|
-
await Bd.page.click('#czViewer .cz-vw-body', { position: { x: 30, y: 30 } }).catch(() => {});
|
|
320
|
-
await Bd.page.click(nm(K[2]));
|
|
321
|
-
const b4b = await until(() => Bd.page.evaluate(() => document.querySelector('#czViewer .cz-vw-title').textContent), 3000);
|
|
322
|
-
ok('P4 a plain click replaces the Viewer used last', !!b4b && (await Bd.page.evaluate(() => window.czViewer.current().title)) === b4b, b4b);
|
|
323
|
-
// a drop on a Viewer replaces that Viewer
|
|
324
|
-
const v0b = (await pl(Bd.page)).panels.find((p) => p.id === 'v0').box;
|
|
325
|
-
let z5 = null;
|
|
326
|
-
const t0 = await Bd.page.evaluate(() => document.querySelector('#czViewer .cz-vw-title').textContent);
|
|
327
|
-
await drag(Bd.page, nm(K[0]), v0b.l + 120, 400, { hold: async () => { z5 = await Bd.page.evaluate(() => { const z = document.querySelector('.cz-pn-drop:not([hidden])'); if (!z) return null; const r = z.getBoundingClientRect(); return { on: z.dataset.on, l: Math.round(r.left), w: Math.round(r.width) }; }); await shot(Bd.page, 'p5-board-drop-on-1440'); } });
|
|
328
|
-
ok('P5 a row dragged onto a Viewer turns that Viewer blue (the zone is its box)', !!z5 && z5.on === 'v0' && Math.abs(z5.l - v0b.l) <= 2 && Math.abs(z5.w - v0b.w) <= 2, JSON.stringify([z5, v0b]));
|
|
329
|
-
const b5 = await until(() => Bd.page.evaluate((t) => { const x = document.querySelector('#czViewer .cz-vw-title').textContent; return x !== t ? x : null; }, t0), 4000);
|
|
330
|
-
ok('P5 the drop replaces that Viewer; no new panel opens', !!b5 && (await pl(Bd.page)).panels.filter((p) => p.kind === 'viewer' && p.box.shown).length === 1, JSON.stringify([t0, b5]));
|
|
331
|
-
// to the right edge the divider closes the Viewer; to the left edge the Viewer takes the screen, and the page never closes
|
|
332
|
-
{ const d = await divAt(Bd.page); await drag(Bd.page, d, 16 + 30, d.y); }
|
|
333
|
-
const b6 = await until(() => pl(Bd.page).then((l) => (P(l, 'v0').full ? l : null)), 3000);
|
|
334
|
-
ok('P6 a drag of the divider to the left edge makes the Viewer full screen; the page is hidden, not closed', !!b6 && P(b6, 'v0').box.w > 1300 && !P(b6, 'page').box.shown && b6.panels.some((p) => p.id === 'page'), JSON.stringify(b6));
|
|
335
|
-
await Bd.page.evaluate(() => window.czPanels.place('v0', 'split'));
|
|
336
|
-
const b6b = await until(() => pl(Bd.page).then((l) => (P(l, 'page').box.shown && l.divs.length === 1 ? l : null)), 3000);
|
|
337
|
-
ok('P6 Split brings the page back first', !!b6b && P(b6b, 'page').box.l < P(b6b, 'v0').box.l, JSON.stringify(b6b));
|
|
338
|
-
{ const d = await divAt(Bd.page); await drag(Bd.page, d, 1440 - 30, d.y); }
|
|
339
|
-
const b6c = await until(() => pl(Bd.page).then((l) => (!l.panels.some((p) => p.kind === 'viewer') ? l : null)), 3000);
|
|
340
|
-
ok('P6 a drag to the right edge closes the Viewer; the page is whole', !!b6c && P(b6c, 'page').box.w > 1300 && b6c.divs.length === 0, JSON.stringify(b6c || await pl(Bd.page)));
|
|
341
|
-
ok('0 no page error on the Board', Bd.errors.length === 0, Bd.errors.join(' | '));
|
|
342
|
-
await Bd.page.close();
|
|
343
|
-
// a reload opens nothing by itself; the next Viewer opens at the kept share
|
|
344
|
-
const Bd2 = await open({ ctx: ctxB, at: '/premium-board.html', ready: boardReady });
|
|
345
|
-
await sleep(600);
|
|
346
|
-
ok('P7 after a reload no Viewer reopens by itself', (await pl(Bd2.page)).panels.length === 1);
|
|
347
|
-
await Bd2.page.click(nm(K[0]));
|
|
348
|
-
const b7 = await until(() => pl(Bd2.page).then((l) => (P(l, 'v0') && P(l, 'v0').box.shown ? l : null)), 4000);
|
|
349
|
-
ok('P7 the next Viewer opens at the kept share (½)', !!b7 && Math.abs(P(b7, 'page').box.w - P(b7, 'v0').box.w) <= 4, JSON.stringify(b7));
|
|
350
|
-
await Bd2.page.focus('.cz-pn-div'); await Bd2.page.keyboard.press('Home');
|
|
351
|
-
const b7b = await until(() => Bd2.page.evaluate(() => { try { return JSON.parse(localStorage.getItem('cz-pn:board')); } catch { return null; } }), 2000);
|
|
352
|
-
ok('P7 Home on the divider resets it to ½', !!b7b && Math.abs(b7b.share - 0.5) < 0.01, JSON.stringify(b7b));
|
|
353
|
-
await Bd2.close();
|
|
354
|
-
// 1920: the page and two Viewers side by side; a drop at the far edge opens beside
|
|
355
|
-
const Bw = await open({ w: 1920, h: 1080, at: '/premium-board.html', ready: boardReady });
|
|
356
|
-
await Bw.page.click(nm(K[0]));
|
|
357
|
-
await until(() => pl(Bw.page).then((l) => (P(l, 'v0') && P(l, 'v0').box.shown ? l : null)));
|
|
358
|
-
let z8 = null;
|
|
359
|
-
await drag(Bw.page, nm(K[1]), 1920 - 40, 500, { hold: async () => { z8 = await Bw.page.evaluate(() => { const z = document.querySelector('.cz-pn-drop:not([hidden])'); return z ? z.dataset.side : null; }); } });
|
|
360
|
-
const b8 = await until(() => pl(Bw.page).then((l) => (P(l, 'v1') && P(l, 'v1').box.shown && l.divs.length === 2 ? l : null)), 5000);
|
|
361
|
-
ok('P8 at 1920 a drop at the far edge opens beside: the page and two Viewers, two dividers, the sprout on the first only', z8 === 'right' && !!b8 && P(b8, 'page').box.r < P(b8, 'v0').box.l && P(b8, 'v0').box.r < P(b8, 'v1').box.l && b8.divs.filter((d) => d.sprout).length === 1, JSON.stringify([z8, b8 || await pl(Bw.page)]));
|
|
362
|
-
ok('P8 the edge marks the Viewer opened last', !!b8 && b8.active.join() === 'v1', JSON.stringify(b8 && b8.active));
|
|
363
|
-
await shot(Bw.page, 'p8-board-three-1920');
|
|
364
|
-
ok('0 no page error on the Board at 1920', Bw.errors.length === 0, Bw.errors.join(' | '));
|
|
365
|
-
await Bw.close();
|
|
366
|
-
/* ── batch 26 item 4: dock a panel on the left or the right; the chat as a panel on the Board ── */
|
|
367
|
-
const ctxD = await browser.newContext({ viewport: { width: 1440, height: 900 } });
|
|
368
|
-
const threads = [];
|
|
369
|
-
await ctxD.route(/\/api\/briefing-premium\/thread\?/, (r) => { threads.push(new URL(r.request().url()).searchParams.get('key')); return r.fulfill({ status: 200, contentType: 'application/json', body: JSON.stringify({ ok: true, session: null, history: { messages: [] } }) }); });
|
|
370
|
-
const Dd = await open({ ctx: ctxD, at: '/premium-board.html', ready: boardReady });
|
|
371
|
-
const KD = await keys(Dd.page);
|
|
372
|
-
await Dd.page.click(nm(KD[0]));
|
|
373
|
-
await until(() => pl(Dd.page).then((l) => (P(l, 'v0') && P(l, 'v0').box.shown && l.divs.length === 1 ? l : null)));
|
|
374
|
-
let z11 = null;
|
|
375
|
-
await drag(Dd.page, '#czViewer .cz-vw-tile', 200, 400, { hold: async () => { z11 = await Dd.page.evaluate(() => { const z = document.querySelector('.cz-pn-drop:not([hidden])'); if (!z) return null; const r = z.getBoundingClientRect(); return { side: z.dataset.side, l: Math.round(r.left), w: Math.round(r.width) }; }); await shot(Dd.page, 'p11-dock-drag-1440'); } });
|
|
376
|
-
const d11 = await until(() => pl(Dd.page).then((l) => (P(l, 'v0').box.r < P(l, 'page').box.l ? l : null)), 3000);
|
|
377
|
-
const side11 = await Dd.page.evaluate(() => { try { return JSON.parse(localStorage.getItem('cz-pn-side')); } catch { return null; } });
|
|
378
|
-
ok('P11 a drag of the Viewer\'s header over the left half turns that half blue', !!z11 && z11.side === 'left' && z11.l <= 100 && z11.w > 600, JSON.stringify(z11));
|
|
379
|
-
ok('P11 the drop docks it on the left: the Viewer, the divider, then the page; the title is not renamed', !!d11 && d11.divs.length === 1 && P(d11, 'v0').box.r <= d11.divs[0].l + 12 && d11.divs[0].r <= P(d11, 'page').box.l + 12 && !(await Dd.page.$('#czViewer [data-cz-vw-ren]')), JSON.stringify(d11 || await pl(Dd.page)));
|
|
380
|
-
ok('P11 the side is kept for its kind (cz-pn-side)', !!side11 && Object.values(side11).includes('left'), JSON.stringify(side11));
|
|
381
|
-
await shot(Dd.page, 'p11-docked-left-1440');
|
|
382
|
-
{ const d = await divAt(Dd.page); const w0 = P(await pl(Dd.page), 'v0').box.w; await drag(Dd.page, d, d.x + 80, d.y); const w1 = await until(() => pl(Dd.page).then((l) => (P(l, 'v0').box.w > w0 + 40 ? P(l, 'v0').box.w : null)), 3000); ok('P11 the divider resizes it on the left: a drag to the right widens the Viewer', !!w1, JSON.stringify([w0, w1])); }
|
|
383
|
-
await Dd.page.reload();
|
|
384
|
-
await until(() => Dd.page.evaluate(boardReady), 20000);
|
|
385
|
-
await Dd.page.click(nm(KD[1]));
|
|
386
|
-
const d11b = await until(() => pl(Dd.page).then((l) => (P(l, 'v0') && P(l, 'v0').box.shown && l.divs.length === 1 ? l : null)), 4000);
|
|
387
|
-
ok('P11 after a reload an initiative opens on the left again', !!d11b && P(d11b, 'v0').box.r < P(d11b, 'page').box.l, JSON.stringify(d11b));
|
|
388
|
-
await Dd.page.click('#czViewer [data-cz-vw="place"]');
|
|
389
|
-
await until(() => Dd.page.$('.cz-pn-menu'));
|
|
390
|
-
await Dd.page.focus('.cz-pn-menu [data-cz-pn-dock="right"]'); await Dd.page.keyboard.press('Enter');
|
|
391
|
-
const d11c = await until(() => pl(Dd.page).then((l) => (P(l, 'v0').box.l > P(l, 'page').box.r ? l : null)), 3000);
|
|
392
|
-
ok('P11 ⧉ › Dock on the right (an icon with its aria-label, by the keyboard) docks it back on the right', !!d11c && !(await Dd.page.evaluate(() => localStorage.getItem('cz-pn-side'))), JSON.stringify(d11c));
|
|
393
|
-
// the chat
|
|
394
|
-
const dh = await Dd.page.evaluate(() => [...document.querySelectorAll('#czViewer .cz-vw-hd [data-cz-vw]')].map((b) => b.dataset.czVw));
|
|
395
|
-
ok('P12 the initiative panel has Discuss in chat', dh.includes('discuss'), JSON.stringify(dh));
|
|
396
|
-
const url0 = Dd.page.url();
|
|
397
|
-
await Dd.page.click('#czViewer [data-cz-vw="discuss"]');
|
|
398
|
-
const c12 = await until(() => Dd.page.evaluate(() => { const v = [...document.querySelectorAll('.cz-vw')].find((x) => !x.hidden && x.querySelector('.pc-chat')); if (!v) return null; const r = v.getBoundingClientRect(); return { id: v.dataset.czPanel, w: Math.round(r.width), log: !!v.querySelector('.hm-log'), box: !!v.querySelector('.hm-foot textarea'), title: v.querySelector('.cz-vw-title').textContent }; }), 6000);
|
|
399
|
-
const l12 = await pl(Dd.page);
|
|
400
|
-
ok('P12 Discuss in chat opens the chat in a panel on the Board (no page change): the log and the box', !!c12 && c12.log && c12.box && Dd.page.url() === url0, JSON.stringify([c12, Dd.page.url()]));
|
|
401
|
-
ok('P12 at 1440 the chat slides over; the initiative split under it stays', !!c12 && P(l12, c12.id).mode === 'over' && P(l12, 'v0').mode === 'split', JSON.stringify(l12));
|
|
402
|
-
const iniId = await Dd.page.evaluate(() => window.czViewer.current() && window.czViewer.current().id);
|
|
403
|
-
ok('P12 it is Home\'s conversation about the initiative (key init:<id>)', threads.some((k) => /^init:/.test(k || '')), JSON.stringify([threads, iniId]));
|
|
404
|
-
await shot(Dd.page, 'p12-chat-over-1440');
|
|
405
|
-
ok('0 no page error while docking and with the chat on the Board', Dd.errors.length === 0, Dd.errors.join(' | '));
|
|
406
|
-
// the Live pill's list: its grab bar docks it on the right; a press moves it back
|
|
407
|
-
await Dd.page.evaluate(() => window.czPanels.putAway());
|
|
408
|
-
await Dd.page.click('#czLive');
|
|
409
|
-
await until(() => Dd.page.$('#czLiveList:not([hidden]) .lv-side'), 3000);
|
|
410
|
-
const g13 = await Dd.page.evaluate(() => { const r = document.querySelector('#czLiveList .lv-side').getBoundingClientRect(); return { x: r.left + r.width / 2, y: r.top + r.height / 2, lab: document.querySelector('#czLiveList .lv-side').getAttribute('aria-label') }; });
|
|
411
|
-
await drag(Dd.page, g13, 1300, g13.y);
|
|
412
|
-
const t13 = await until(() => Dd.page.evaluate(() => { const t = document.getElementById('czLiveList'); const r = t.getBoundingClientRect(); return t.classList.contains('lv-r') ? { r: Math.round(r.right), lab: t.querySelector('.lv-side').getAttribute('aria-label'), kept: localStorage.getItem('cz-live-side') } : null; }), 3000);
|
|
413
|
-
ok('P13 the Live pill\'s list docks on the right by its grab bar (an icon with an aria-label), and the side is kept', !!t13 && Math.abs(t13.r - (1440 - 16)) <= 2 && t13.kept === 'right' && g13.lab === 'Move this list to the right side', JSON.stringify([g13, t13]));
|
|
414
|
-
await shot(Dd.page, 'p13-live-right-1440');
|
|
415
|
-
await Dd.page.focus('#czLiveList .lv-side'); await Dd.page.keyboard.press('Enter');
|
|
416
|
-
ok('P13 Enter on the grab bar moves it back to the left', !!(await until(() => Dd.page.evaluate(() => !document.getElementById('czLiveList').classList.contains('lv-r') && !localStorage.getItem('cz-live-side')), 2000)));
|
|
417
|
-
await Dd.close();
|
|
418
|
-
// 1920: the chat opens beside the initiative panel
|
|
419
|
-
const ctxW = await browser.newContext({ viewport: { width: 1920, height: 1080 } });
|
|
420
|
-
await ctxW.route(/\/api\/briefing-premium\/thread\?/, (r) => r.fulfill({ status: 200, contentType: 'application/json', body: JSON.stringify({ ok: true, session: null, history: { messages: [] } }) }));
|
|
421
|
-
const Dw = await open({ ctx: ctxW, at: '/premium-board.html', ready: boardReady });
|
|
422
|
-
await Dw.page.click(nm(KD[0]));
|
|
423
|
-
await until(() => pl(Dw.page).then((l) => (P(l, 'v0') && P(l, 'v0').box.shown ? l : null)));
|
|
424
|
-
await Dw.page.click('#czViewer [data-cz-vw="discuss"]');
|
|
425
|
-
const c12w = await until(() => pl(Dw.page).then((l) => (P(l, 'v1') && P(l, 'v1').box.shown && l.divs.length === 2 ? l : null)), 6000);
|
|
426
|
-
ok('P12 at 1920 the chat opens beside the initiative panel: the page, the panel, the chat, two dividers', !!c12w && P(c12w, 'page').box.r < P(c12w, 'v0').box.l && P(c12w, 'v0').box.r < P(c12w, 'v1').box.l && P(c12w, 'v1').mode === 'split', JSON.stringify(c12w || await pl(Dw.page)));
|
|
427
|
-
await shot(Dw.page, 'p12-chat-beside-1920');
|
|
428
|
-
ok('0 no page error with the chat at 1920', Dw.errors.length === 0, Dw.errors.join(' | '));
|
|
429
|
-
await Dw.close();
|
|
430
|
-
// Intelligence: a goal row opens a split; ⌘-click opens beside
|
|
431
|
-
const In = await open({ at: '/premium-intelligence.html?tab=goals', ready: () => !!window.czPanels && document.querySelectorAll('#goalTbl .ins-row[data-goal]').length > 1 });
|
|
432
|
-
ok('P9 Intelligence draws its goal rows and window.czPanels', !!In.up);
|
|
433
|
-
const G = await In.page.evaluate(() => [...document.querySelectorAll('#goalTbl .ins-row[data-goal]')].map((r) => r.dataset.goal));
|
|
434
|
-
await In.page.click(`#goalTbl .ins-row[data-goal="${G[0]}"]`);
|
|
435
|
-
const i1 = await until(() => pl(In.page).then((l) => (P(l, 'v0') && P(l, 'v0').box.shown && l.divs.length === 1 ? l : null)), 5000);
|
|
436
|
-
ok('P9 a goal opens a split on Intelligence: the page keeps 880 px, nothing floats over it', !!i1 && !i1.float && P(i1, 'page').box.w >= 878 && !i1.narrow, JSON.stringify(i1));
|
|
437
|
-
await shot(In.page, 'p9-intel-split-1440');
|
|
438
|
-
await In.page.click(`#goalTbl .ins-row[data-goal="${G[1]}"]`, { modifiers: ['Control'] });
|
|
439
|
-
const i2 = await until(() => pl(In.page).then((l) => (P(l, 'v1') && P(l, 'v1').box.shown ? l : null)), 4000);
|
|
440
|
-
ok('P9 ⌘/Ctrl-click on a goal row opens it beside (slides over at 1440)', !!i2 && P(i2, 'v1').mode === 'over', JSON.stringify(i2));
|
|
441
|
-
ok('0 no page error on Intelligence', In.errors.length === 0, In.errors.join(' | '));
|
|
442
|
-
await In.close();
|
|
443
|
-
// a phone: the page as today
|
|
444
|
-
for (const [at, ready, row] of [['/premium-board.html', boardReady, '.ini2[data-key]:not(.bd-bc)'], ['/premium-intelligence.html?tab=goals', () => !!window.czPanels && document.querySelectorAll('[data-goal]').length > 1, '#goalCards .ins-card[data-goal]']]) {
|
|
445
|
-
const Q = await open({ w: 390, h: 844, at, ready });
|
|
446
|
-
await Q.page.evaluate((s) => { const b = document.querySelector(s); if (b) b.click(); }, row);
|
|
447
|
-
await until(() => Q.page.evaluate(() => !!document.querySelector('#czViewer:not([hidden])')), 5000);
|
|
448
|
-
const q = await Q.page.evaluate(() => ({ divs: [...document.querySelectorAll('.cz-pn-div')].filter((d) => getComputedStyle(d).display !== 'none').length, place: !!document.querySelector('#czViewer [data-cz-vw="place"]'), narrow: document.getElementById('stage').classList.contains('cz-pn-narrow'), full: Math.round(document.querySelector('#czViewer').getBoundingClientRect().width) === innerWidth, flex: getComputedStyle(document.body).display, side: document.documentElement.scrollWidth <= innerWidth + 1 }));
|
|
449
|
-
ok(`P10 a phone keeps ${at} as today: the Viewer covers the screen, no divider, no ⧉, no cz-pn-narrow, no sideways scroll`, q.divs === 0 && !q.place && !q.narrow && q.full && q.flex !== 'flex' && q.side, JSON.stringify(q));
|
|
450
|
-
ok('0 no page error on a phone ' + at, Q.errors.length === 0, Q.errors.join(' | '));
|
|
451
|
-
await Q.close();
|
|
452
|
-
}
|
|
453
|
-
finish();
|
|
454
|
-
})();
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="pmos-nonce" content="" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
7
|
-
<title>PMOS · Home</title>
|
|
8
|
-
<!-- Home in the Agreed design (initiative premium-agreed-design, Home; mockup Main.dc.html place="work"). One desk: the list on the left, the chat
|
|
9
|
-
in the middle and the Viewer on the right. An initiative is a layout of this page (?ini=<id>): its card sits at the top of the list. On a phone
|
|
10
|
-
the list is the page, and a row opens its conversation with a back bar (premium-uncovered-features, HmPhone). It replaces the Briefing, My work, Chat and the initiative
|
|
11
|
-
page; their addresses open it. The default page; the old console stays at /console.html and nothing here links to it. -->
|
|
12
|
-
<link rel="manifest" href="/manifest.webmanifest" crossorigin="use-credentials" />
|
|
13
|
-
<meta name="theme-color" content="#090b0c" />
|
|
14
|
-
<meta name="mobile-web-app-capable" content="yes" />
|
|
15
|
-
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
16
|
-
<meta name="apple-mobile-web-app-title" content="PMOS" />
|
|
17
|
-
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
|
18
|
-
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
|
|
19
|
-
<link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
|
|
20
|
-
<link rel="stylesheet" href="/pm/cozy.css" />
|
|
21
|
-
<link rel="stylesheet" href="/pm/cozy-pick.css" />
|
|
22
|
-
<link rel="stylesheet" href="/pm/cozy-home.css" />
|
|
23
|
-
<link rel="stylesheet" href="/pm/cozy-today.css" />
|
|
24
|
-
<link rel="stylesheet" href="/pm/home-impact.css" />
|
|
25
|
-
<link rel="stylesheet" href="/pm/cozy-panel.css" />
|
|
26
|
-
<link rel="stylesheet" href="/pm/cozy-onboard.css" />
|
|
27
|
-
<link rel="stylesheet" href="/pm/load-shapes.css" />
|
|
28
|
-
<link rel="stylesheet" href="/pm/brand.css" />
|
|
29
|
-
<link rel="stylesheet" href="/pm/charts.css" />
|
|
30
|
-
<link rel="stylesheet" href="/pm/komorebi.css" />
|
|
31
|
-
<link rel="stylesheet" href="/pm/ds-bridge.css" />
|
|
32
|
-
</head>
|
|
33
|
-
<body class="cz cz-home pm-ds">
|
|
34
|
-
<header class="hm-top" id="hmTop">
|
|
35
|
-
<button type="button" class="hm-ib hm-back" id="hmBack" aria-label="Back to Today" title="Back to Today"><svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M19 12H5M11 6l-6 6 6 6"/></svg></button>
|
|
36
|
-
<div class="hm-top-t"><b id="hmTopTitle">Home</b><span id="hmTopSub"></span></div>
|
|
37
|
-
<button type="button" class="hm-needs" id="hmNeeds" aria-controls="hmList" aria-expanded="false"><i aria-hidden="true"></i><span id="hmNeedsN">Reading</span></button>
|
|
38
|
-
</header>
|
|
39
|
-
<main class="hm-desk" id="hmDesk">
|
|
40
|
-
<aside class="hm-list" id="hmList" aria-label="Sessions"></aside>
|
|
41
|
-
<section class="hm-chat" id="hmChat" aria-label="Conversation"></section>
|
|
42
|
-
<div class="hm-vw" data-cz-viewer-host data-cz-vw-overlay></div>
|
|
43
|
-
</main>
|
|
44
|
-
<div class="hm-menu" id="hmMenu" role="menu" aria-label="More" hidden></div>
|
|
45
|
-
<div class="hm-toast" id="toast" role="status" aria-live="polite"></div>
|
|
46
|
-
<script type="module" src="/pm/home-app.js"></script>
|
|
47
|
-
</body>
|
|
48
|
-
</html>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_comment": "Panels side by side on Home, like a tablet: the divider snaps and closes at an edge, open beside by drag, the placement menu, slide over, memory per initiative, Present slides the chat away (feedback batch 18 item 15, build 15-A; cozy-panels.js, cozy-viewer.js several Viewers). A browser suite.",
|
|
3
|
-
"panels": [
|
|
4
|
-
"panels-test.js"
|
|
5
|
-
],
|
|
6
|
-
"seconds": {
|
|
7
|
-
"panels-test.js": 45
|
|
8
|
-
}
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_comment": "Home's folded rail: a tile's press opens a card of that group's rows beside it (feedback batch 18 item 14; home-app.js drawRailCard, home-today.js railCardHtml, cozy-viewer.js railCard). A browser suite.",
|
|
3
|
-
"panels": [
|
|
4
|
-
"home-railcard-test.js"
|
|
5
|
-
],
|
|
6
|
-
"seconds": {
|
|
7
|
-
"home-railcard-test.js": 30
|
|
8
|
-
}
|
|
9
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_comment": "Feedback batch 12 item 6 (agreed A, 2026-10-26; canvas HsA1Desk, HsA2Phone, HsA3Sheet): an initiative's sessions, next steps and today's meetings sit in a pill on its Home row instead of nesting under it. The panel suite holds the pure checks too and serves the real page.",
|
|
3
|
-
"modules": [],
|
|
4
|
-
"panels": ["home-pill-test.js"],
|
|
5
|
-
"seconds": { "home-pill-test.js": 25 }
|
|
6
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_comment": "Viewer kit: the pinned recording row and @Mentions at the top of Home, and the Mentions Viewer (home-mentions.js, home-rec-row.js; canvas XvANew, XvAMention*, XvARecHome). A browser suite.",
|
|
3
|
-
"panels": [
|
|
4
|
-
"home-rows-test.js"
|
|
5
|
-
],
|
|
6
|
-
"seconds": {
|
|
7
|
-
"home-rows-test.js": 40
|
|
8
|
-
}
|
|
9
|
-
}
|