create-pmos 0.276.0 → 0.277.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 +1 -1
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/briefing-premium-board-test.js +1 -1
- package/workspace/briefing-premium-calendar-3-test.js +18 -6
- package/workspace/briefing-premium-initiative-test.js +1 -1
- package/workspace/briefing-premium-insights-test.js +2 -2
- package/workspace/briefing-premium-test.js +3 -2
- package/workspace/briefing-premium-work-test.js +1 -1
- package/workspace/c3-briefing-test.js +2 -2
- package/workspace/c3-capture-test.js +3 -3
- package/workspace/c3-core-docs-test.js +1 -1
- package/workspace/c3-driver-test.js +6 -6
- package/workspace/c3-foundation-test.js +4 -4
- package/workspace/c3-ini-harness.js +2 -2
- package/workspace/c3-initiatives-test.js +1 -1
- package/workspace/c3-light-load-test.js +2 -2
- package/workspace/c3-one-home-test.js +2 -2
- package/workspace/c3-phone-test.js +12 -12
- package/workspace/c3-quiet-test.js +5 -5
- package/workspace/c3-report-design-real-test.js +2 -2
- package/workspace/c3-report-design-test.js +4 -4
- package/workspace/c3-report-setup-test.js +7 -7
- package/workspace/c3-report-structure-real-test.js +2 -2
- package/workspace/c3-report-structure-test.js +2 -2
- package/workspace/c3-reports-test.js +2 -2
- package/workspace/c3-scan-test.js +7 -7
- package/workspace/c3-sessions-panel-test.js +2 -2
- package/workspace/c3-settings-test.js +7 -7
- package/workspace/c3-updates-test.js +1 -1
- package/workspace/c3-work-test.js +2 -2
- package/workspace/extension/README.md +1 -1
- package/workspace/extension/panel.js +3 -3
- package/workspace/extension/popup.js +4 -4
- package/workspace/guide/briefing-premium.md +4 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/c3-audience-link.js +2 -2
- package/workspace/public/pm/c3-capture.js +2 -2
- package/workspace/public/pm/c3-focus.js +1 -1
- package/workspace/public/pm/premium-board.js +2 -2
- package/workspace/public/pm/premium-insights.js +1 -1
- package/workspace/public/pm/premium-report-read.js +1 -1
- package/workspace/public/pm/premium-shell.js +3 -3
- package/workspace/public/premium-board.html +1 -1
- package/workspace/public/premium-initiative.html +1 -1
- package/workspace/public/premium-insights.html +1 -1
- package/workspace/public/premium-work.html +1 -1
- package/workspace/public/premium.html +11 -2
- package/workspace/server.js +12 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
/* c3-report-setup-test.js — the report workspace on console3, UI slice (initiative report-workspace; mockup 41-reportsetup).
|
|
4
|
-
* DEMO mode: a real server and a real Chromium drive /
|
|
4
|
+
* DEMO mode: a real server and a real Chromium drive /console.html?demo=1&tab=rep; c3-demo-rs.js answers the contract routes.
|
|
5
5
|
*
|
|
6
6
|
* tab Ask PMOS, Found in your work (3), Set up (3), Documents (6); the Reports tab badge counts the drafts waiting
|
|
7
7
|
* ask an ask runs, then answers from its own words (not a fixed report); Change revises it; Set up posts ONE setup with the ask and proposal
|
|
@@ -63,7 +63,7 @@ const TAB = '[data-rs-tab]';
|
|
|
63
63
|
const sent = (p) => posts.filter((x) => x.path === p);
|
|
64
64
|
const shot = async (pg, n) => { if (shots) await pg.screenshot({ path: path.join(shots, n + '.png'), fullPage: true }); };
|
|
65
65
|
const text = (sel) => page.textContent(sel).catch(() => '');
|
|
66
|
-
const goReports = async () => { await page.goto(BASE + '/
|
|
66
|
+
const goReports = async () => { await page.goto(BASE + '/console.html?demo=1&tab=rep'); await page.waitForSelector('[data-rp3]'); await page.click('[data-rp3-tab="reports"]'); await page.waitForSelector('[data-rs-row]'); await spy(page); };
|
|
67
67
|
|
|
68
68
|
/* ── tab ── */
|
|
69
69
|
await goReports();
|
|
@@ -153,18 +153,18 @@ const TAB = '[data-rs-tab]';
|
|
|
153
153
|
|
|
154
154
|
|
|
155
155
|
/* ── briefing and settings ── */
|
|
156
|
-
await page.goto(BASE + '/
|
|
156
|
+
await page.goto(BASE + '/console.html?demo=1');
|
|
157
157
|
ok('the Briefing has a Report found card with Set up, See what PMOS found and Not a report', !!(await until(() => page.$('[data-rs-card] [data-rs-act="b-setup"]'), 12000)) && !!(await page.$('[data-rs-act="b-see"]')) && !!(await page.$('[data-rs-act="b-no"]')) && /Nothing is sent/.test(await text('[data-rs-card]')));
|
|
158
|
-
await page.goto(BASE + '/
|
|
158
|
+
await page.goto(BASE + '/console.html?demo=1&tab=settings§ion=connectors');
|
|
159
159
|
ok('Settings, Connectors has the Report finder: Weekly or Off, and the sources', !!(await until(() => page.$('[data-rs-finder]'), 12000)) && !!(await spy(page).then(() => 1)) && /Weekly/.test(await text('[data-rs-finder]')) && /Calendar/.test(await text('[data-rs-finder]')));
|
|
160
160
|
await page.click('[data-rs-finder] button:has-text("Off") >> nth=0');
|
|
161
161
|
ok('Off posts the finder cadence', !!(await until(() => sent('/api/report-setups/finder').length >= 1)) && sent('/api/report-setups/finder')[0].body.cadence === 'off');
|
|
162
|
-
await page.goto(BASE + '/
|
|
162
|
+
await page.goto(BASE + '/console.html?demo=1&tab=settings§ion=sharing');
|
|
163
163
|
await page.waitForSelector('[data-c3set-sched-link]');
|
|
164
164
|
ok('Sharing links to Reports, Set up and no longer lists schedules', /Set up/.test(await text('[data-c3set-sched-link]')) && !/Scheduled shares/.test(await text('body')));
|
|
165
165
|
|
|
166
166
|
/* ── old tab names ── */
|
|
167
|
-
await page.goto(BASE + '/
|
|
167
|
+
await page.goto(BASE + '/console.html?demo=1&tab=rep'); await page.waitForSelector('[data-rp3]');
|
|
168
168
|
await page.evaluate(() => window.dispatchEvent(new CustomEvent('pmos:go-tab', { detail: { tab: 'rep', view: 'lib' } })));
|
|
169
169
|
ok('view=lib lands on Charts', !!(await until(async () => await page.getAttribute('[data-rp3-tab="charts"]', 'aria-selected') === 'true')));
|
|
170
170
|
await page.evaluate(() => window.dispatchEvent(new CustomEvent('pmos:go-tab', { detail: { tab: 'rep', view: 'drafts' } })));
|
|
@@ -174,7 +174,7 @@ const TAB = '[data-rs-tab]';
|
|
|
174
174
|
const ph = await browser.newContext({ viewport: { width: 400, height: 860 }, hasTouch: true, isMobile: true });
|
|
175
175
|
const pp = await ph.newPage(); watch(pp);
|
|
176
176
|
const noScroll = () => pp.evaluate(() => document.documentElement.scrollWidth <= document.documentElement.clientWidth + 1);
|
|
177
|
-
await pp.goto(BASE + '/
|
|
177
|
+
await pp.goto(BASE + '/console.html?demo=1&tab=rep'); await pp.waitForSelector('[data-rp3]'); await pp.click('[data-rp3-tab="reports"]'); await pp.waitForSelector('[data-rs-row]');
|
|
178
178
|
ok('400px: the Reports tab has no horizontal scroll', await noScroll());
|
|
179
179
|
await shot(pp, 'reports-400');
|
|
180
180
|
await pp.click('[data-rs-row="rs1"] [data-rs-act="open"], [data-rs-row="rs1"] .tt');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* c3-report-structure-real-test.js — the Structure step of the report studio against the REAL backend (initiative report-structure, PRD done-criterion 10).
|
|
4
4
|
* Not demo mode and no route interception: a real server on a scratch repository, with a stub `claude` that plays the report-structure and
|
|
5
5
|
* report-structure-dry jobs (as report-structure-server.test.js does) and a stub for the source check (PMOS_REPORT_CHECK_STUB), and a real
|
|
6
|
-
* Chromium on /
|
|
6
|
+
* Chromium on /console.html. It proves the page and the server agree on the API contract end to end.
|
|
7
7
|
*
|
|
8
8
|
* setup a work-sourced report set up through the API
|
|
9
9
|
* turn the Structure step opens from the set-up row (Shape the report); a purpose and one turn land S1 with sources, charts and outline;
|
|
@@ -133,7 +133,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
133
133
|
const text = (sel) => page.textContent(sel).catch(() => '');
|
|
134
134
|
const idle = () => page.waitForFunction(() => { const b = document.querySelector('[data-st-act="send"]'); return b && !b.disabled && !document.querySelector('[data-st-running]'); }, null, { timeout: 20000 });
|
|
135
135
|
const verOn = async (n) => await page.getAttribute('[data-st-v="' + n + '"]', 'aria-pressed') === 'true';
|
|
136
|
-
const goReports = async () => { await page.goto(BASE + '/
|
|
136
|
+
const goReports = async () => { await page.goto(BASE + '/console.html?tab=rep'); await page.waitForSelector('[data-rp3]'); await page.click('[data-rp3-tab="reports"]'); await page.waitForSelector('[data-rs-reg="' + id + '"]', { timeout: 15000 }); };
|
|
137
137
|
|
|
138
138
|
/* ── the Structure step from the set-up row ── */
|
|
139
139
|
await goReports();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
/* c3-report-structure-test.js — the Structure step of the report studio, UI slice (initiative report-structure; mockup 43-reportstructure;
|
|
4
|
-
* API contract planning/prd/report-structure-contract.md). A real server and a real Chromium drive /
|
|
4
|
+
* API contract planning/prd/report-structure-contract.md). A real server and a real Chromium drive /console.html?tab=rep; the routes of the
|
|
5
5
|
* contract (/api/report-structure*, /api/charts) and the report reads are answered by Playwright route interception, so the page is
|
|
6
6
|
* tested against the contract alone, not against the backend (c3-report-structure-real-test.js does that).
|
|
7
7
|
*
|
|
@@ -152,7 +152,7 @@ function makeStub() {
|
|
|
152
152
|
const text = (sel) => page.textContent(sel).catch(() => '');
|
|
153
153
|
const sent = (p) => S.posts.filter((x) => x.path === p);
|
|
154
154
|
const closeAll = async () => { for (let i = 0; i < 3 && await page.$('.sheet'); i++) { await page.keyboard.press('Escape'); await sleep(250); } };
|
|
155
|
-
const goReports = async () => { await page.goto(BASE + '/
|
|
155
|
+
const goReports = async () => { await page.goto(BASE + '/console.html?tab=rep'); await page.waitForSelector('[data-rp3]'); await page.click('[data-rp3-tab="reports"]'); await page.waitForSelector('[data-rs-reg="' + SETUP.id + '"]', { timeout: 15000 }); };
|
|
156
156
|
const idle = () => page.waitForFunction(() => { const b = document.querySelector('[data-st-act="send"]'); return b && !b.disabled && !document.querySelector('[data-st-running]'); }, null, { timeout: 15000 });
|
|
157
157
|
const noOverflow = () => page.evaluate(() => document.documentElement.scrollWidth <= document.documentElement.clientWidth + 1);
|
|
158
158
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
/* c3-reports-test.js — the console3 Reports dashboards in a browser, demo mode (initiative console3-reports, PRD R1 to R7).
|
|
4
4
|
*
|
|
5
|
-
* WHERE. The suite first loads /
|
|
5
|
+
* WHERE. The suite first loads /console.html?demo=1&tab=rep. When the shell mounts the dashboards there ([data-rp3] in the Reports pane),
|
|
6
6
|
* it runs against the shell. Until c3-shell.js has the mount line, it serves a small harness page from this process (page.route, no
|
|
7
7
|
* file in public/) that installs demo mode and mounts mountReports with the same ctx the shell passes ({ ws, pmGet, drafts }, drafts
|
|
8
8
|
* doing what repTab does). The suite prints which one it used.
|
|
@@ -83,7 +83,7 @@ const DEF_P = ['north', 'outcomes', 'signals', 'delivery', 'bets', 'synergy', 'm
|
|
|
83
83
|
const open = async (page) => {
|
|
84
84
|
await page.route(BASE + HARNESS, (r) => r.fulfill({ status: 200, contentType: 'text/html', body: HARNESS_HTML }));
|
|
85
85
|
if (mode !== 'harness') {
|
|
86
|
-
await page.goto(BASE + '/
|
|
86
|
+
await page.goto(BASE + '/console.html?demo=1&tab=rep');
|
|
87
87
|
const inShell = await until(() => page.$('[data-c3-pane="rep"] [data-rp3]'), mode === 'shell' ? 15000 : 4000);
|
|
88
88
|
if (inShell) { mode = 'shell'; return true; }
|
|
89
89
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
/* c3-scan-test.js — the portfolio Horizon scan on console3 (initiative horizon-scan-portfolio; PRD sections 1 to 4 and 7; the approved mockup 42-hscan).
|
|
4
|
-
* LIVE mode: a real server and a scratch repository (c3-scan-fixture.js) and a real Chromium driving /
|
|
4
|
+
* LIVE mode: a real server and a scratch repository (c3-scan-fixture.js) and a real Chromium driving /console.html. The first part routes the page's
|
|
5
5
|
* /api/scan/* calls to a model that answers with the REAL view functions and presses of lib/scan.js and lib/routes-scan.js over a ledger of its own
|
|
6
6
|
* (portfolioStub), so a test can move a scan one step at a time. The last part (E) is end to end: no routing at all, the server's own scan routes over a
|
|
7
7
|
* seeded state folder, the runner stubbed, a real initiative created. The report documents are real markdown files read through GET /api/doc.
|
|
@@ -66,7 +66,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
66
66
|
const noScroll = () => st(() => document.documentElement.scrollWidth <= window.innerWidth + 1 && [...document.querySelectorAll('.sheet .sb')].every((n) => n.scrollWidth <= n.clientWidth + 1));
|
|
67
67
|
const text = (s) => st((q) => { const n = document.querySelector(q); return n ? n.textContent : ''; }, s);
|
|
68
68
|
const toastText = () => st(() => (document.querySelector('[data-c3-toast]') || {}).textContent || '');
|
|
69
|
-
const portfolio = async () => { await page.goto(BASE + '/
|
|
69
|
+
const portfolio = async () => { await page.goto(BASE + '/console.html?tab=init', { waitUntil: 'load' }); await sel('[data-scan-section="portfolio"] [data-scan-act=scan]'); };
|
|
70
70
|
|
|
71
71
|
/* ── pure parts, read in the page ── */
|
|
72
72
|
await portfolio();
|
|
@@ -347,7 +347,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
347
347
|
await page.keyboard.press('Escape');
|
|
348
348
|
|
|
349
349
|
/* ── Briefing ── */
|
|
350
|
-
await page.goto(BASE + '/
|
|
350
|
+
await page.goto(BASE + '/console.html?tab=brief', { waitUntil: 'load' });
|
|
351
351
|
await sel('[data-c3pg="scan"] [data-scan-report]');
|
|
352
352
|
const card = await text('[data-c3pg="scan"]');
|
|
353
353
|
ok('B1 the Briefing has a Horizon scan card: when it ran, the boards scanned, the reports of the day', /Horizon scan/.test(card) && /today, \d\d:\d\d/.test(card) && /1 board scanned/.test(card) && /4 reports today/.test(card), card);
|
|
@@ -363,7 +363,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
363
363
|
await page.keyboard.press('Escape');
|
|
364
364
|
|
|
365
365
|
/* ── Board settings ── */
|
|
366
|
-
await page.goto(BASE + `/
|
|
366
|
+
await page.goto(BASE + `/console.html?tab=init&init=board:${ws}:summary`, { waitUntil: 'load' });
|
|
367
367
|
await (await sel('[data-ini=board-settings]')).click();
|
|
368
368
|
await sel('[data-scan-ptr]');
|
|
369
369
|
const ptr = await text('[data-scan-ptr]');
|
|
@@ -380,7 +380,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
380
380
|
|
|
381
381
|
/* ── triage: an ask an earlier per-board scan found ── */
|
|
382
382
|
const seed = fx.seedScan();
|
|
383
|
-
await page.goto(BASE + `/
|
|
383
|
+
await page.goto(BASE + `/console.html?tab=init&init=board:${ws}:triage`, { waitUntil: 'load' });
|
|
384
384
|
await sel(`[data-ibt-ask="${seed.asks[0]}"]`);
|
|
385
385
|
const row = (i) => st((id) => { const r = document.querySelector(`[data-ibt-ask="${id}"]`); return { text: r.textContent, agent: !!r.querySelector('[data-scan="found-by-agent"]'), links: [...r.querySelectorAll('a[data-scan-src=web]')].map((a) => ({ target: a.target, rel: a.rel })), accept: !!r.querySelector('[data-ibt-accept]'), more: !!r.querySelector('[data-ibt-more]'), decline: !!r.querySelector('[data-ibt-decline]') }; }, seed.asks[i]);
|
|
386
386
|
const r0 = await row(0); const r2 = await row(2);
|
|
@@ -406,7 +406,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
406
406
|
await page.click(`[data-scan-act=change][data-id=${CP1}]`); await sleep(300);
|
|
407
407
|
ok('M5 at 400 wide the Change first form has no horizontal scroll', await noScroll());
|
|
408
408
|
await page.keyboard.press('Escape');
|
|
409
|
-
await page.goto(BASE + '/
|
|
409
|
+
await page.goto(BASE + '/console.html?tab=brief', { waitUntil: 'load' });
|
|
410
410
|
await sel('[data-c3pg="scan"] [data-scan-report]'); await sleep(300);
|
|
411
411
|
await shot('briefing-400');
|
|
412
412
|
ok('M6 at 400 wide the Briefing has no horizontal scroll', await noScroll());
|
|
@@ -443,7 +443,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
443
443
|
const eToast = () => page2.evaluate(() => (document.querySelector('[data-c3-toast]') || {}).textContent || '');
|
|
444
444
|
const eRb = E.reports.find((r) => r.type === 'benchmark'); const eRc = E.reports.find((r) => r.type === 'competitive');
|
|
445
445
|
const eProp = (rep, kind) => [...eState().proposals.values()].find((p) => p.report === rep.id && p.kind === kind);
|
|
446
|
-
await page2.goto(eBase + '/
|
|
446
|
+
await page2.goto(eBase + '/console.html?tab=init', { waitUntil: 'load' });
|
|
447
447
|
await eSel('[data-scan-section="portfolio"] [data-scan-act=scan]');
|
|
448
448
|
await eSel('[data-scan-section] [data-scan-report]');
|
|
449
449
|
const eSec = await eText('[data-scan-section="portfolio"]');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Starts a real server with its own state directory. Before it starts, a session record is written whose process does not exist and
|
|
6
6
|
* whose file still says it runs: the server restores it as exited, and GET /api/runs must say it ended (it read "starting · 4 d" before).
|
|
7
7
|
* Then one live shell is started, and the page checks: the live row reads the server's state, not "starting"; Open the session draws the
|
|
8
|
-
* session's real terminal in a sheet on /
|
|
8
|
+
* session's real terminal in a sheet on /console.html and the address does not change; the message box types into the session and presses Enter;
|
|
9
9
|
* End asks first, Keep it keeps it, End ends it.
|
|
10
10
|
*/
|
|
11
11
|
const fs = require('fs');
|
|
@@ -101,7 +101,7 @@ function startShell(name) {
|
|
|
101
101
|
page.on('pageerror', (e) => errors.push(String(e && e.message || e)));
|
|
102
102
|
|
|
103
103
|
/* ── B: the panel ── */
|
|
104
|
-
await page.goto(BASE + '/
|
|
104
|
+
await page.goto(BASE + '/console.html');
|
|
105
105
|
ok('B1 the header has the Sessions button', await waitFor(page, () => !!document.querySelector('[data-c3pg="agent-button"]'), null, 45000));
|
|
106
106
|
await page.click('[data-c3pg="agent-button"]');
|
|
107
107
|
const sel = `[data-c3t="mine"] [data-run="${id}"]`;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
/* c3-settings-test.js — the console3 Settings page (initiative console3-settings).
|
|
4
4
|
*
|
|
5
|
-
* Loads /
|
|
5
|
+
* Loads /console.html against a real server with its own state directory and checks: the gear, the More menu item and
|
|
6
6
|
* ?tab=settings open Settings; every section draws; search finds a setting across sections; a change to a store setting
|
|
7
7
|
* is saved through POST /api/settings and read back; the theme switch sets the page theme; the start page and the
|
|
8
8
|
* time-of-day switches take effect on the next load; Set up Laya opens its terminal; and the page throws no error.
|
|
@@ -49,7 +49,7 @@ async function waitFor(page, fn, arg, ms = 8000) {
|
|
|
49
49
|
page.on('dialog', (d) => d.dismiss().catch(() => {}));
|
|
50
50
|
|
|
51
51
|
/* ── A: the ways in ── */
|
|
52
|
-
await page.goto(BASE + '/
|
|
52
|
+
await page.goto(BASE + '/console.html');
|
|
53
53
|
ok('A1 the header has a Settings gear', await waitFor(page, () => !!document.querySelector('[data-c3pg="settings"]')));
|
|
54
54
|
await page.click('[data-c3pg="settings"]');
|
|
55
55
|
ok('A2 the gear opens Settings', await waitFor(page, () => { const p = document.querySelector('[data-c3-pane="settings"]'); return p && !p.hidden && !!p.querySelector('[data-c3set]'); }));
|
|
@@ -113,7 +113,7 @@ async function waitFor(page, fn, arg, ms = 8000) {
|
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
/* ── R: Data refresh (data-refresh-settings R9) ── */
|
|
116
|
-
await page.goto(BASE + '/
|
|
116
|
+
await page.goto(BASE + '/console.html?tab=settings');
|
|
117
117
|
await waitFor(page, () => !!document.querySelector('[data-c3set-nav] [data-c3set-sec="connectors"]'));
|
|
118
118
|
await page.click('[data-c3set-nav] [data-c3set-sec="connectors"]');
|
|
119
119
|
ok('R1 Connectors links to Data refresh instead of holding its schedule', await waitFor(page, () => { const a = document.querySelector('[data-c3set-row="conn.cal.refresh"]'); const b = document.querySelector('[data-c3set-row="conn.jira.refresh"]'); return !!a && !!b && !!a.querySelector('button.lk') && /Data refresh/.test(a.textContent) && !a.querySelector('select') && !b.querySelector('select'); }));
|
|
@@ -173,16 +173,16 @@ async function waitFor(page, fn, arg, ms = 8000) {
|
|
|
173
173
|
const post = (key, value) => page.evaluate(async ([k, v]) => { const { pmPost } = await import('/pm/http.js'); return pmPost('/api/settings', { key: k, value: v }); }, [key, value]);
|
|
174
174
|
const f0 = [await post('look.start', 'cal'), await post('time.tint', false), await post('time.strip', false)];
|
|
175
175
|
ok('F0 the start page and switches save', f0.every((r) => r && r.ok), JSON.stringify(f0));
|
|
176
|
-
await page.goto(BASE + '/
|
|
176
|
+
await page.goto(BASE + '/console.html');
|
|
177
177
|
ok('F1 the saved start page opens', await waitFor(page, () => { const p = document.querySelector('[data-c3-pane="cal"]'); return p && !p.hidden; }));
|
|
178
178
|
ok('F2 the tint switch reaches the page', await waitFor(page, () => document.getElementById('c3-root').getAttribute('data-c3-tint') === 'off'));
|
|
179
179
|
ok('F3 the daylight strip is hidden', await waitFor(page, () => { const s = document.querySelector('.c3pg-daylight'); return !s || getComputedStyle(s).display === 'none'; })); // the stylesheet loads after the attribute is set
|
|
180
|
-
await page.goto(BASE + '/
|
|
180
|
+
await page.goto(BASE + '/console.html?tab=settings');
|
|
181
181
|
ok('F4 ?tab=settings opens Settings directly', await waitFor(page, () => { const p = document.querySelector('[data-c3-pane="settings"]'); return p && !p.hidden && !!p.querySelector('[data-c3set]'); }));
|
|
182
182
|
await post('look.start', 'brief'); await post('time.tint', true); await post('time.strip', true);
|
|
183
183
|
|
|
184
184
|
/* ── G: the palette ── */
|
|
185
|
-
await page.goto(BASE + '/
|
|
185
|
+
await page.goto(BASE + '/console.html');
|
|
186
186
|
await waitFor(page, () => !!document.querySelector('[data-c3pg="search"]'));
|
|
187
187
|
await page.click('[data-c3pg="search"]');
|
|
188
188
|
await sleep(200);
|
|
@@ -190,7 +190,7 @@ async function waitFor(page, fn, arg, ms = 8000) {
|
|
|
190
190
|
ok('G1 the palette lists Settings', await waitFor(page, () => [...document.querySelectorAll('[role="option"], .pal li, .pal button, [data-pal-item]')].some((x) => /Settings/.test(x.textContent)), null, 3000));
|
|
191
191
|
|
|
192
192
|
/* ── I: Set up Laya opens its terminal on the page, not only on the server (jev-local-fallback R9) ── */
|
|
193
|
-
await page.goto(BASE + '/
|
|
193
|
+
await page.goto(BASE + '/console.html?tab=settings');
|
|
194
194
|
await waitFor(page, () => !!document.querySelector('[data-c3set-nav] [data-c3set-sec="privacy"]'));
|
|
195
195
|
await page.click('[data-c3set-nav] [data-c3set-sec="privacy"]');
|
|
196
196
|
ok('I1 Privacy shows the Set up Laya button', await waitFor(page, () => !!document.querySelector('[data-c3set-laya-setup]')));
|
|
@@ -74,7 +74,7 @@ async function waitFor(page, fn, arg, ms = 8000) {
|
|
|
74
74
|
const named = (kind) => calls.filter((c) => c[0] === kind);
|
|
75
75
|
|
|
76
76
|
const open = async () => {
|
|
77
|
-
await page.goto(BASE + '/
|
|
77
|
+
await page.goto(BASE + '/console.html?tab=settings');
|
|
78
78
|
await waitFor(page, () => !!document.querySelector('[data-c3set-nav] [data-c3set-sec="updates"]'));
|
|
79
79
|
await page.click('[data-c3set-nav] [data-c3set-sec="updates"]');
|
|
80
80
|
return waitFor(page, () => !!document.querySelector('[data-c3set-section="updates"] [data-c3set-check]:not([disabled])'));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
/* c3-work-test.js — the console3 Work page (initiative console3-work-page; planning/prd/console3-work-page-prd.md R1 to R10, rubric
|
|
4
|
-
* dimensions 1 to 5 and 7). Loads /
|
|
4
|
+
* dimensions 1 to 5 and 7). Loads /console.html?demo=1 at 1440 wide and then at 390 wide. Demo mode answers every /api call in the page,
|
|
5
5
|
* so nothing reaches the server and the fixture (public/pm/c3-demo-data.js pmItems) is placed by the same rule the server uses.
|
|
6
6
|
*
|
|
7
7
|
* views seven views in order (Inbox, Today, Upcoming, Waiting, Someday, Review, Done), each with its count; no Triage, Week, Later
|
|
@@ -81,7 +81,7 @@ const W = '[data-pm-work]';
|
|
|
81
81
|
};
|
|
82
82
|
const toastUndo = () => until(() => click('[data-c3-toast-action]'), 4000);
|
|
83
83
|
|
|
84
|
-
await page.goto(BASE + '/
|
|
84
|
+
await page.goto(BASE + '/console.html?demo=1&tab=work');
|
|
85
85
|
const up = await until(() => st((w) => !!document.querySelector('[data-c3-demo="1"]') && !!document.querySelector(w + ' [data-pm-lenses]') && !!document.querySelector(w + ' [data-pm-lens-head]'), W), 45000, 250);
|
|
86
86
|
if (!up) { await click('[data-c3-tab="work"]'); }
|
|
87
87
|
const ready = up || await until(() => st((w) => !!document.querySelector(w + ' [data-pm-lens-head]'), W), 20000, 250);
|
|
@@ -31,7 +31,7 @@ Open any page in Chrome and press the PMOS button in the toolbar. The popup is "
|
|
|
31
31
|
- A sample is at most 20 MB. When it is over, the popup says so. Open a shorter page, or add a smaller copy.
|
|
32
32
|
- When PMOS does not answer, the popup says "PMOS is not answering at <address>. Start PMOS, then try again." and has **Try again**.
|
|
33
33
|
|
|
34
|
-
How the data reaches PMOS: the extension never writes to PMOS itself. The popup shows a page from your PMOS (`/
|
|
34
|
+
How the data reaches PMOS: the extension never writes to PMOS itself. The popup shows a page from your PMOS (`/console.html?capture=1&pop=1`) in a frame. That page has the report list and the Add button. When you press Add, it asks the popup to take the page. The popup sends the PDF or the pictures back to that page, and that page saves them with its own press, as every other change in PMOS is saved. Each message is checked for its sender and its origin on both sides.
|
|
35
35
|
|
|
36
36
|
## Files
|
|
37
37
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* panel.js — the page the content script frames over a Meet call (panel.html).
|
|
2
2
|
* It reads the PMOS address from chrome.storage.sync (pmosAddress, default http://localhost:7433) and asks whether anything answers there.
|
|
3
|
-
* When PMOS answers, the page becomes one frame: ${address}/
|
|
3
|
+
* When PMOS answers, the page becomes one frame: ${address}/console.html?focus=now&pop=1&meet=…&mtitle=… (PMOS's compact meeting focus). When it does not,
|
|
4
4
|
* the page says where it looked and links to the options. Nothing else is fetched. The frame's { pmosFocus } message (fold or open, no data) is passed
|
|
5
5
|
* up to the content script. */
|
|
6
6
|
(function () {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
function answers(addr) {
|
|
29
29
|
var ctl = typeof AbortController === 'function' ? new AbortController() : null;
|
|
30
30
|
var t = ctl ? setTimeout(function () { ctl.abort(); }, CHECK_MS) : null;
|
|
31
|
-
return fetch(addr + '/
|
|
31
|
+
return fetch(addr + '/console.html', { mode: 'no-cors', cache: 'no-store', signal: ctl ? ctl.signal : undefined })
|
|
32
32
|
.then(function (r) { if (t) clearTimeout(t); return r; }, function (e) { if (t) clearTimeout(t); throw e; });
|
|
33
33
|
}
|
|
34
34
|
function showMissing(addr) {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
var q = new URLSearchParams({ focus: 'now', pop: '1', meet: meet, mtitle: title });
|
|
47
47
|
frame = document.createElement('iframe');
|
|
48
48
|
frame.title = 'PMOS meeting helper';
|
|
49
|
-
frame.src = addr + '/
|
|
49
|
+
frame.src = addr + '/console.html?' + q.toString();
|
|
50
50
|
frameOrigin = new URL(addr).origin;
|
|
51
51
|
msg.remove();
|
|
52
52
|
document.body.appendChild(frame);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* popup.js — the PMOS button's popup (popup.html): "Add this page to a report design".
|
|
2
|
-
* PMOS draws the popup: the page is one frame, ${address}/
|
|
2
|
+
* PMOS draws the popup: the page is one frame, ${address}/console.html?capture=1&pop=1&…, which lists the reports and has the Add button. The extension never posts to PMOS
|
|
3
3
|
* itself, because every PMOS write needs a press on a PMOS page (a nonce and an Origin check). So when the frame asks (postMessage { pmosCapture: 'request' }), this
|
|
4
4
|
* page takes the open tab and posts it back to the frame ({ pmosCapture: 'data', … }), and the frame uploads it with its own press. Both ways, the message must
|
|
5
5
|
* come from the other window and from the PMOS origin; the extension posts to the PMOS origin only.
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
function answers(addr) {
|
|
35
35
|
var ctl = typeof AbortController === 'function' ? new AbortController() : null;
|
|
36
36
|
var t = ctl ? setTimeout(function () { ctl.abort(); }, CHECK_MS) : null;
|
|
37
|
-
return fetch(addr + '/
|
|
37
|
+
return fetch(addr + '/console.html', { mode: 'no-cors', cache: 'no-store', signal: ctl ? ctl.signal : undefined })
|
|
38
38
|
.then(function (r) { if (t) clearTimeout(t); return r; }, function (e) { if (t) clearTimeout(t); throw e; });
|
|
39
39
|
}
|
|
40
40
|
var sleep = function (ms) { return new Promise(function (r) { setTimeout(r, ms); }); };
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
if (screens) q.set('pscreens', String(screens));
|
|
79
79
|
frame = document.createElement('iframe');
|
|
80
80
|
frame.title = 'PMOS: add this page to a report design';
|
|
81
|
-
frame.src = addr + '/
|
|
81
|
+
frame.src = addr + '/console.html?' + q.toString();
|
|
82
82
|
frameOrigin = new URL(addr).origin;
|
|
83
83
|
if (msg.parentNode) msg.remove();
|
|
84
84
|
document.body.appendChild(frame);
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
if (m.pmosCapture === 'resize') { if (frame) frame.style.height = m.height + 'px'; return; }
|
|
170
170
|
if (m.pmosCapture === 'close') { window.close(); return; }
|
|
171
171
|
if (m.pmosCapture === 'open') {
|
|
172
|
-
try { chrome.tabs.create({ url: frameOrigin + '/
|
|
172
|
+
try { chrome.tabs.create({ url: frameOrigin + '/console.html?studio=' + encodeURIComponent(m.report) }); } catch (x) { /* no tabs */ }
|
|
173
173
|
window.close();
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
@@ -240,3 +240,7 @@ Insights is the fourth place on the rail, at `/premium-insights.html`. It reads
|
|
|
240
240
|
- **Shape a report's look.** On a draft, **Add a sample** takes a PDF, PowerPoint, Word, PNG or JPG file to follow. Say how it should look in the conversation; PMOS draws the next design version (D1, D2, …) and says what it changed. Press a version to go back to it. **This is it** saves the version shown as the report's design, and PMOS draws the cycle to match. An issued cycle is frozen with its look.
|
|
241
241
|
|
|
242
242
|
Not built: a second measure next to a chart, bar highlights, speaker notes and notes on a slide, changing a set-up report's audience, format or schedule, tile sizes and free layout, the finder's settings, run-based charts such as corrections per 100 runs (they belong to the Board's Metrics card), and any measure no record holds. The console's own dashboards are separate and unchanged. KR metric records belong to a workspace, so every board of a workspace shows the same charts.
|
|
243
|
+
|
|
244
|
+
## The default page
|
|
245
|
+
|
|
246
|
+
The premium Briefing is the default page: `/` and `/index.html` open it. The console is at `/console.html`, and the header button **Open the console** on each premium page goes there. The old address `/c3.html` goes to the premium Briefing; with a query (for example `/c3.html?tab=rep`) it goes to `/console.html` with the same query. `/classic.html` is unchanged. To go back, change the last page name in the page-route chain in `server.js` from `premium.html` to `c3.html` and delete the `/c3.html` redirect above it.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.277.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.277.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/workspace/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* audienceChannelName(ws, path) the BroadcastChannel both windows share
|
|
4
4
|
* openAudienceWindow({ ws, path, name, start }) → { win, ch } | null (the browser blocked the window)
|
|
5
5
|
*
|
|
6
|
-
* The window is /
|
|
6
|
+
* The window is /console.html?audience=1&…, which c3-boot.js hands to c3-audience.js. It shows the slides only. The presenter view and the window tell
|
|
7
7
|
* each other the slide through the channel: { t: 'slide', i } both ways, { t: 'hello' } from a window that has just opened, { t: 'close' } from
|
|
8
8
|
* the presenter view when it ends. The channel carries a slide number and nothing else, and it exists only between pages of this origin. */
|
|
9
9
|
export const audienceChannelName = (ws, path) => 'pmos-audience:' + String(ws || '') + ':' + String(path || '');
|
|
@@ -13,7 +13,7 @@ export function openAudienceWindow({ ws, path, name, start } = {}) {
|
|
|
13
13
|
const q = new URLSearchParams({ audience: '1', ws: String(ws || ''), path: String(path || ''), name: String(name || 'Deck').slice(0, 120), start: String(Math.max(0, Number(start) || 0)) });
|
|
14
14
|
try { if (new URLSearchParams(location.search).get('demo') === '1') q.set('demo', '1'); } catch { /* no location */ }
|
|
15
15
|
let win = null;
|
|
16
|
-
try { win = window.open('/
|
|
16
|
+
try { win = window.open('/console.html?' + q.toString(), 'pmos-audience', 'popup=yes,width=1280,height=720'); } catch { win = null; }
|
|
17
17
|
if (!win || win.closed) return null;
|
|
18
18
|
let ch = null;
|
|
19
19
|
try { ch = typeof BroadcastChannel === 'function' ? new BroadcastChannel(audienceChannelName(ws, path)) : null; } catch { ch = null; }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* pm/c3-capture.js — the page the PMOS Chrome extension frames in its popup (initiative report-design-studio; mockup 42-reportdeck.js, hashes
|
|
2
|
-
* #design-chrome and #design-chrome-page). c3-boot.js loads it alone for /
|
|
2
|
+
* #design-chrome and #design-chrome-page). c3-boot.js loads it alone for /console.html?capture=1&pop=1&pkind=deck|doc|page&ptitle=…&purl=…[&pscreens=N].
|
|
3
3
|
*
|
|
4
4
|
* It draws "Add this page to a report design": the page, the report to add it to (the report whose studio was opened last is chosen), how it is
|
|
5
5
|
* saved, and Add as a sample. The extension never posts to PMOS itself: every PMOS write needs a press on a PMOS page. So this page asks its
|
|
@@ -106,7 +106,7 @@ async function upload(m) {
|
|
|
106
106
|
function openStudio() {
|
|
107
107
|
const r = repOf(); if (!r) return;
|
|
108
108
|
if (window.parent !== window) { say({ pmosCapture: 'open', report: r.id }); return; }
|
|
109
|
-
location.href = '/
|
|
109
|
+
location.href = '/console.html?studio=' + encodeURIComponent(r.id) + (r.ws ? '&ws=' + encodeURIComponent(r.ws) : '');
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
window.addEventListener('message', (e) => {
|
|
@@ -400,7 +400,7 @@ function openNoteSheet() { F.ui.noteTab = F.ui.noteTab || 'note'; showSheet('not
|
|
|
400
400
|
|
|
401
401
|
/** The full focus page, in a new tab: the compact page's way to everything it leaves out. */
|
|
402
402
|
function fullUrl() {
|
|
403
|
-
const u = new URL('/
|
|
403
|
+
const u = new URL('/console.html', location.origin);
|
|
404
404
|
u.searchParams.set('focus', F.data ? F.data.event.id : F.id);
|
|
405
405
|
if (F.date) u.searchParams.set('fdate', F.date);
|
|
406
406
|
if (wsParam()) u.searchParams.set('ws', wsParam());
|
|
@@ -140,10 +140,10 @@ $('#docTop').addEventListener('click', async (e) => {
|
|
|
140
140
|
await load();
|
|
141
141
|
});
|
|
142
142
|
$('#docTop').addEventListener('input', (e) => { if (e.target.id === 'dmQ') { docQuery = e.target.value; drawDocList(); } });
|
|
143
|
-
const GOTAB = { rep: '/
|
|
143
|
+
const GOTAB = { rep: '/console.html?tab=rep', init: '/console.html?tab=init' };
|
|
144
144
|
$('#docBody').addEventListener('click', async (e) => {
|
|
145
145
|
const o = e.target.closest('[data-doc]'); if (o) { openReader(M.docs.rows.find((x) => x.key === o.dataset.doc)); return; }
|
|
146
|
-
const t = e.target.closest('[data-tab]'); if (t) { location.assign(GOTAB[t.dataset.tab] || '/
|
|
146
|
+
const t = e.target.closest('[data-tab]'); if (t) { location.assign(GOTAB[t.dataset.tab] || '/console.html'); return; }
|
|
147
147
|
const b = e.target.closest('[data-draft]'); if (!b || b.disabled) return;
|
|
148
148
|
const key = b.dataset.draft, d = M.docs.rows.find((x) => x.key === key);
|
|
149
149
|
b.disabled = true;
|
|
@@ -220,7 +220,7 @@ function drawReps() {
|
|
|
220
220
|
$('#repBody').addEventListener('click', (e) => {
|
|
221
221
|
const rp = e.target.closest('[data-rep]');
|
|
222
222
|
if (rp) { const row = M.reports.rows.find((x) => x.key === rp.dataset.rep), su = row && (M.reports.setups || []).find((x) => x.id === row.cadence); openReport(row, { ws: M.board.ws, name: su ? su.name : null }); return; }
|
|
223
|
-
if (e.target.closest('#repOpen')) { location.assign('/
|
|
223
|
+
if (e.target.closest('#repOpen')) { location.assign('/console.html?tab=rep'); return; }
|
|
224
224
|
if (e.target.closest('#repNew')) { openReportEdit(null); return; }
|
|
225
225
|
const f = e.target.closest('[data-found]'), a = e.target.closest('[data-ask]'), s = e.target.closest('[data-setup]');
|
|
226
226
|
if (f) openFound((M.reports.found || []).find((x) => x.id === f.dataset.found));
|
|
@@ -143,7 +143,7 @@ function draw() {
|
|
|
143
143
|
if (!R) return;
|
|
144
144
|
const m = $('#oMain');
|
|
145
145
|
const keep = document.activeElement && document.activeElement.closest && document.activeElement.closest('#oMain') ? document.activeElement.getAttribute('data-rr') : null;
|
|
146
|
-
m.innerHTML = `<div class="rdr" id="rdR">${barHtml()}<p class="note rdsrc" id="rdSrc">${esc(sourceLine())}</p>${designHtml()}${R.view === 'deck' ? deckHtml() : pageHtml()}<p class="note rdcon"><a class="lk" href="/
|
|
146
|
+
m.innerHTML = `<div class="rdr" id="rdR">${barHtml()}<p class="note rdsrc" id="rdSrc">${esc(sourceLine())}</p>${designHtml()}${R.view === 'deck' ? deckHtml() : pageHtml()}<p class="note rdcon"><a class="lk" href="/console.html?tab=rep">Open in the console</a> to edit or issue this document.</p></div>`;
|
|
147
147
|
fit(m);
|
|
148
148
|
if (keep) { const b = m.querySelector(`[data-rr="${keep}"]`); if (b) b.focus(); }
|
|
149
149
|
}
|
|
@@ -290,7 +290,7 @@ async function pvPal() {
|
|
|
290
290
|
const miss = [];
|
|
291
291
|
const ini = b.j && b.j.ok && Array.isArray(b.j.rows) ? b.j.rows.map((r) => ({ g: 'Initiatives', gl: 'ini', t: r.title || r.id, s: [r.lane, r.stage].filter(Boolean).join(' · '), go: '/premium-initiative.html?id=' + encodeURIComponent(r.id) + (b.j.ws ? '&ws=' + encodeURIComponent(b.j.ws) + '&board=' + encodeURIComponent(b.j.board) : '') })) : (miss.push('initiatives'), []);
|
|
292
292
|
const docs = d.j && d.j.ok && Array.isArray(d.j.docs) ? d.j.docs.map((x) => ({ g: 'Documents', gl: 'doc', t: x.title || x.key, s: d.j.scope && d.j.scope.name ? d.j.scope.name : 'Board', go: '/premium-board.html' + pvQ('?') })) : (miss.push('documents'), []);
|
|
293
|
-
const ses = s.j && Array.isArray(s.j.sessions) ? s.j.sessions.filter((x) => !x.automatic).map((x) => ({ g: 'Sessions', gl: 'ses', t: x.name || x.id, s: [x.cwd && x.cwd !== '.' ? x.cwd : '', x.state].filter(Boolean).join(' · '), go: '/
|
|
293
|
+
const ses = s.j && Array.isArray(s.j.sessions) ? s.j.sessions.filter((x) => !x.automatic).map((x) => ({ g: 'Sessions', gl: 'ses', t: x.name || x.id, s: [x.cwd && x.cwd !== '.' ? x.cwd : '', x.state].filter(Boolean).join(' · '), go: '/console.html' })) : (miss.push('sessions'), []);
|
|
294
294
|
pvOv.pal = { items: [...PLACES.map(([t, go]) => ({ g: 'Places', gl: 'place', t, s: 'Place', go })), ...ini, ...docs, ...ses], miss };
|
|
295
295
|
}
|
|
296
296
|
if (pvOv.kind === 'pal') pvPalDraw();
|
|
@@ -363,7 +363,7 @@ export async function openSettings() {
|
|
|
363
363
|
<div class="two" style="margin-top:10px"><label><input id="stP" maxlength="500" placeholder="Folder path of a repository" aria-label="Folder path of a repository"></label><button type="button" class="cta" id="stAdd">Add repository</button></div></div>
|
|
364
364
|
<div><span class="label">Connectors</span><p class="note" style="margin:0 0 8px">Which sources the Briefing reads. PMOS keeps no passwords or keys; your Claude session reaches each tool through its own connectors.</p>${srcRows}</div>
|
|
365
365
|
<p class="note" id="stM" role="status" style="margin:0;min-height:1.2em">${esc(M.err)}</p>
|
|
366
|
-
<p class="note" style="margin:0">Everything else runs on a default. <a href="/
|
|
366
|
+
<p class="note" style="margin:0">Everything else runs on a default. <a href="/console.html?tab=settings">More settings in the console</a>.</p></div></article>`;
|
|
367
367
|
};
|
|
368
368
|
openDlg({ eye: 'Settings · real data', title: 'Settings', say: 'Two choices only: which repositories PMOS works in, and which sources the Briefing reads.', stream: turnA(ptx('Two choices only: which repositories PMOS works in, and which sources the Briefing reads. Each press saves that one record and changes nothing else.')), noteKey: null, pane: '<article class="paper doc"></article>', label: 'Settings' });
|
|
369
369
|
$('#askF').hidden = true; setMode('detail'); draw();
|
|
@@ -430,7 +430,7 @@ export async function openSessions() {
|
|
|
430
430
|
}).join('')}</ul>` : '<div class="sse"><b>No agent sessions running.</b><p>New sessions start in the console.</p></div>';
|
|
431
431
|
$('#oMain').innerHTML = `<article class="paper doc"><div class="addf">${rows}
|
|
432
432
|
<p class="note" id="ssM" role="status" style="margin:0;min-height:1.2em">${esc(M.err)}</p>
|
|
433
|
-
<p class="note" style="margin:0">Terminals, new sessions and run questions stay in the console. <a href="/
|
|
433
|
+
<p class="note" style="margin:0">Terminals, new sessions and run questions stay in the console. <a href="/console.html">Open the console</a>.</p></div></article>`;
|
|
434
434
|
};
|
|
435
435
|
openDlg({ eye: 'Agent sessions · real data', title: 'Agent sessions', say: 'The sessions running now. Stop ends one.', stream: turnA(ptx('The sessions running now, read from the same list the console shows. Stop ends one and says so.')), noteKey: null, pane: '<article class="paper doc"></article>', label: 'Sessions' });
|
|
436
436
|
$('#askF').hidden = true; setMode('detail'); draw();
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<h1 class="vh">Board</h1><div id="crumbHost"></div>
|
|
36
36
|
<div class="tools tools-top"><span class="snap" id="snap">Reading the board</span>
|
|
37
37
|
<span class="seg modeseg" id="modeSeg" role="group" aria-label="How an initiative opens"><i class="pill"></i><button data-m="page" aria-pressed="true">Page</button><button data-m="popup" aria-pressed="false">Popup</button></span>
|
|
38
|
-
<a class="glass round" id="toConsole" href="/
|
|
38
|
+
<a class="glass round" id="toConsole" href="/console.html" aria-label="Open the console" title="Open the console"><svg class="i" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="m7 9 3 3-3 3M13 15h4"/></svg></a>
|
|
39
39
|
<button class="glass round sbtn" id="sessBtn" aria-haspopup="dialog" aria-label="Agent sessions" title="Agent sessions"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h6"/><circle cx="18" cy="16" r="3"/></svg><span class="sbdg" id="sessBdg" aria-hidden="true" hidden></span></button>
|
|
40
40
|
<button class="glass round" id="settingsBtn" aria-label="Settings" title="Settings"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4"/></svg></button>
|
|
41
41
|
<button class="glass round" id="theme" aria-label="Switch light or dark"><svg class="i" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 0 1 9.5 4 8 8 0 1 0 20 14.5z"/></svg></button></div>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<header class="top rise" style="--d:0">
|
|
35
35
|
<h1 class="vh" id="iH1">Initiative</h1><div id="crumbHost"></div>
|
|
36
36
|
<div class="tools tools-top"><span class="snap" id="snap">Reading the initiative</span>
|
|
37
|
-
<a class="glass round" id="toConsole" href="/
|
|
37
|
+
<a class="glass round" id="toConsole" href="/console.html" aria-label="Open the console" title="Open the console"><svg class="i" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="m7 9 3 3-3 3M13 15h4"/></svg></a>
|
|
38
38
|
<button class="glass round sbtn" id="sessBtn" aria-haspopup="dialog" aria-label="Agent sessions" title="Agent sessions"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h6"/><circle cx="18" cy="16" r="3"/></svg><span class="sbdg" id="sessBdg" aria-hidden="true" hidden></span></button>
|
|
39
39
|
<button class="glass round" id="settingsBtn" aria-label="Settings" title="Settings"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4"/></svg></button>
|
|
40
40
|
<button class="glass round" id="theme" aria-label="Switch light or dark"><svg class="i" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 0 1 9.5 4 8 8 0 1 0 20 14.5z"/></svg></button></div>
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
<header class="top rise" style="--d:0">
|
|
36
36
|
<h1 class="vh">Insights</h1><div id="crumbHost"></div>
|
|
37
37
|
<div class="tools tools-top"><span class="snap" id="snap">Reading the records</span>
|
|
38
|
-
<a class="glass round" id="toConsole" href="/
|
|
38
|
+
<a class="glass round" id="toConsole" href="/console.html" aria-label="Open the console" title="Open the console"><svg class="i" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="m7 9 3 3-3 3M13 15h4"/></svg></a>
|
|
39
39
|
<button class="glass round sbtn" id="sessBtn" aria-haspopup="dialog" aria-label="Agent sessions" title="Agent sessions"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h6"/><circle cx="18" cy="16" r="3"/></svg><span class="sbdg" id="sessBdg" aria-hidden="true" hidden></span></button>
|
|
40
40
|
<button class="glass round" id="settingsBtn" aria-label="Settings" title="Settings"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4"/></svg></button>
|
|
41
41
|
<button class="glass round" id="theme" aria-label="Switch light or dark"><svg class="i" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 0 1 9.5 4 8 8 0 1 0 20 14.5z"/></svg></button></div>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<header class="top rise" style="--d:0">
|
|
35
35
|
<h1 class="vh">My work</h1><span class="glass name" aria-hidden="true">My work</span>
|
|
36
36
|
<div class="tools tools-top"><span class="snap" id="snap">Reading your list</span>
|
|
37
|
-
<a class="glass round" id="toConsole" href="/
|
|
37
|
+
<a class="glass round" id="toConsole" href="/console.html" aria-label="Open the console" title="Open the console"><svg class="i" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="16" rx="3"/><path d="m7 9 3 3-3 3M13 15h4"/></svg></a>
|
|
38
38
|
<button class="glass round sbtn" id="sessBtn" aria-haspopup="dialog" aria-label="Agent sessions" title="Agent sessions"><svg class="i" viewBox="0 0 24 24"><path d="M4 6h16M4 12h10M4 18h6"/><circle cx="18" cy="16" r="3"/></svg><span class="sbdg" id="sessBdg" aria-hidden="true" hidden></span></button>
|
|
39
39
|
<button class="glass round" id="settingsBtn" aria-label="Settings" title="Settings"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6 7 7M17 17l1.4 1.4M5.6 18.4 7 17M17 7l1.4-1.4"/></svg></button>
|
|
40
40
|
<button class="glass round" id="theme" aria-label="Switch light or dark"><svg class="i" viewBox="0 0 24 24"><path d="M20 14.5A8 8 0 0 1 9.5 4 8 8 0 1 0 20 14.5z"/></svg></button></div>
|