create-pmos 0.610.0 → 0.612.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 +135 -27
- package/payload/KIT-VERSION +2 -2
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/payload/state/log.md +1 -1
- package/workspace/board-columns-test.js +2 -1
- package/workspace/board-deliveries-test.js +2 -1
- package/workspace/board-programs-test.js +7 -3
- package/workspace/board-publish-ui-test.js +2 -1
- package/workspace/board-shared-ui-test.js +2 -1
- package/workspace/board-workflows-test.js +2 -1
- package/workspace/briefing-premium-board-test.js +3 -2
- package/workspace/briefing-premium-calendar-2-test.js +3 -2
- package/workspace/briefing-premium-calendar-3-test.js +1 -1
- package/workspace/briefing-premium-calendar-test.js +1 -1
- package/workspace/briefing-premium-doc-edit-test.js +2 -1
- package/workspace/briefing-premium-insights-test.js +4 -3
- package/workspace/briefing-premium-test.js +3 -2
- package/workspace/calm-timeline-test.js +2 -1
- package/workspace/changelog.json +134 -0
- package/workspace/core-docs-workflow-test.js +2 -1
- package/workspace/ev-everywhere-test.js +3 -2
- package/workspace/guide/home.md +2 -2
- package/workspace/guide/index.md +4 -0
- package/workspace/guide/layout.md +97 -3
- package/workspace/guide/programs.md +16 -2
- package/workspace/guide/routine.md +65 -0
- package/workspace/guide/scheduled-tasks-and-cli.md +1 -1
- package/workspace/guide/settings-and-switches.md +2 -2
- package/workspace/impact-screens-test.js +3 -1
- package/workspace/ini-workflow-test.js +2 -1
- package/workspace/lib/board-premium.js +12 -4
- package/workspace/lib/classic-board.js +15 -0
- package/workspace/lib/cos-chat.js +1 -0
- package/workspace/lib/doc-library.js +43 -12
- package/workspace/lib/doc-path.js +30 -0
- package/workspace/lib/engine/boards.js +4 -2
- package/workspace/lib/events-place.js +368 -0
- package/workspace/lib/events-stated.js +129 -0
- package/workspace/lib/initiative-chat.js +1 -0
- package/workspace/lib/insights-premium.js +13 -1
- package/workspace/lib/library-find.js +162 -0
- package/workspace/lib/library-items.js +250 -0
- package/workspace/lib/notes.js +9 -1
- package/workspace/lib/plan-items.js +17 -3
- package/workspace/lib/route-modules.js +4 -0
- package/workspace/lib/routes-artefacts.js +5 -2
- package/workspace/lib/routes-boards.js +6 -2
- package/workspace/lib/routes-doc-sheet.js +1 -0
- package/workspace/lib/routes-events-place.js +203 -0
- package/workspace/lib/routes-library.js +155 -0
- package/workspace/lib/routes-pop-work.js +39 -0
- package/workspace/lib/routes-report-setups.js +32 -1
- package/workspace/lib/routes-today-log.js +48 -0
- package/workspace/lib/routine-reports.js +84 -0
- package/workspace/lib/status-when.js +36 -0
- package/workspace/lib/task-items.js +5 -3
- package/workspace/lib/today-log.js +131 -0
- package/workspace/live-pill-round-test.js +10 -7
- package/workspace/metric-drafts-ui-test.js +3 -1
- package/workspace/milestone-pins-test.js +2 -1
- package/workspace/milestone-suggest-test.js +3 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/panels-test.js +2 -1
- package/workspace/premium-board-actions-test.js +3 -1
- package/workspace/premium-rec-tab-test.js +2 -1
- package/workspace/premium-vw-backlog-test.js +3 -1
- package/workspace/premium-vw-item-test.js +3 -1
- package/workspace/premium-vw-jira-test.js +3 -1
- package/workspace/premium-vw-meet-test.js +2 -1
- package/workspace/premium-vw-notes-test.js +3 -2
- package/workspace/product-lane-test.js +2 -1
- package/workspace/program-charter-test.js +3 -1
- package/workspace/program-leave-test.js +2 -1
- package/workspace/program-order-test.js +2 -1
- package/workspace/program-panel-test.js +3 -1
- package/workspace/public/pm/artefact-kind.js +87 -0
- package/workspace/public/pm/bd-ini-panel.js +77 -12
- package/workspace/public/pm/bd-prog-panel.js +55 -8
- package/workspace/public/pm/bd-span.js +5 -0
- package/workspace/public/pm/bd-work.css +192 -0
- package/workspace/public/pm/bd-work.js +483 -0
- package/workspace/public/pm/cozy-bar.css +11 -0
- package/workspace/public/pm/cozy-bar.js +99 -0
- package/workspace/public/pm/cozy-day-pick.css +27 -0
- package/workspace/public/pm/cozy-day-pick.js +97 -0
- package/workspace/public/pm/cozy-ev.css +2 -5
- package/workspace/public/pm/cozy-events-view.js +274 -0
- package/workspace/public/pm/cozy-events.css +179 -0
- package/workspace/public/pm/cozy-events.js +278 -0
- package/workspace/public/pm/cozy-evmodel.js +1 -1
- package/workspace/public/pm/cozy-goals.css +172 -0
- package/workspace/public/pm/cozy-library.css +125 -0
- package/workspace/public/pm/cozy-live-pill.js +1 -0
- package/workspace/public/pm/cozy-nav.js +6 -7
- package/workspace/public/pm/cozy-pick.css +3 -0
- package/workspace/public/pm/cozy-pop-work.css +224 -0
- package/workspace/public/pm/cozy-pop-work.js +668 -0
- package/workspace/public/pm/cozy-popup.css +11 -2
- package/workspace/public/pm/cozy-popup.js +67 -9
- package/workspace/public/pm/cozy-routine-job.js +203 -0
- package/workspace/public/pm/cozy-routine-model.js +219 -0
- package/workspace/public/pm/cozy-routine-pop.js +318 -0
- package/workspace/public/pm/cozy-routine.css +155 -0
- package/workspace/public/pm/cozy-routine.js +335 -0
- package/workspace/public/pm/cozy-schedwork.js +6 -5
- package/workspace/public/pm/cozy-settings.js +1 -5
- package/workspace/public/pm/cozy-status-when.js +48 -0
- package/workspace/public/pm/cozy-today-app.js +236 -0
- package/workspace/public/pm/cozy-today-model.js +176 -0
- package/workspace/public/pm/cozy-today-page.css +100 -0
- package/workspace/public/pm/cozy-today-view.js +76 -0
- package/workspace/public/pm/cozy-viewer.js +19 -8
- package/workspace/public/pm/cozy-vw-mtg.css +39 -0
- package/workspace/public/pm/goals-model.js +205 -0
- package/workspace/public/pm/goals-open.js +124 -0
- package/workspace/public/pm/home-app.js +18 -3
- package/workspace/public/pm/home-chat.js +4 -2
- package/workspace/public/pm/home-ini.js +43 -10
- package/workspace/public/pm/ini-edit.js +3 -1
- package/workspace/public/pm/ini-view-model.js +1 -1
- package/workspace/public/pm/library-model.js +197 -0
- package/workspace/public/pm/library-open.js +37 -0
- package/workspace/public/pm/page-chat.js +12 -2
- package/workspace/public/pm/pop-work-model.js +493 -0
- package/workspace/public/pm/premium-board.js +204 -17
- package/workspace/public/pm/premium-goals.js +213 -0
- package/workspace/public/pm/premium-library.js +436 -0
- package/workspace/public/pm/premium-shell.js +1 -1
- package/workspace/public/pm/premium-vw-mtg.js +79 -1
- package/workspace/public/pm/scope-chip.js +204 -0
- package/workspace/public/premium-board.html +1 -0
- package/workspace/public/premium-events.html +44 -0
- package/workspace/public/premium-goals.html +37 -0
- package/workspace/public/premium-library.html +39 -0
- package/workspace/public/premium-routine.html +33 -0
- package/workspace/public/today.html +50 -0
- package/workspace/ready-dash-ui-test.js +3 -1
- package/workspace/rename-test.js +2 -1
- package/workspace/run-tests.js +4 -1
- package/workspace/server.js +4 -2
- package/workspace/sort-order-test.js +2 -1
- package/workspace/split-merge-ui-test.js +3 -1
- package/workspace/stage-card-tasks-test.js +3 -1
- package/workspace/stage-card-test.js +2 -1
- package/workspace/task-delete-test.js +2 -1
- package/workspace/task-links-test.js +2 -1
- package/workspace/task-milestones-test.js +4 -2
- package/workspace/task-plans-test.js +3 -1
- package/workspace/task-press-test.js +3 -1
- package/workspace/task-views-test.js +3 -1
- package/workspace/test-lists/doc-path.json +9 -0
- package/workspace/test-lists/events-place.json +11 -0
- package/workspace/test-lists/goals-place.json +9 -0
- package/workspace/test-lists/library-place.json +9 -0
- package/workspace/test-lists/pop-work.json +9 -0
- package/workspace/test-lists/routine-place.json +9 -0
- package/workspace/test-lists/status-when.json +9 -0
- package/workspace/test-lists/today-log.json +9 -0
- package/workspace/test-lists/work-view.json +9 -0
- package/workspace/timeline-holds-test.js +3 -1
- package/workspace/tk-tasks-test.js +2 -1
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
* P a phone (the List only): a press on the link icon opens Waits on / Then as a bottom sheet
|
|
16
16
|
* SHOTS=<dir> writes the screenshots there. */
|
|
17
17
|
const path = require('path');
|
|
18
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
18
19
|
const fs = require('fs');
|
|
19
20
|
const { spawn } = require('child_process');
|
|
20
21
|
const { findBrowser } = require('./lib/find-browser');
|
|
@@ -71,7 +72,7 @@ function model() {
|
|
|
71
72
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
72
73
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
73
74
|
await T.waitForServer(BASE);
|
|
74
|
-
browser = besidePage(await chromium.launch({ executablePath: exe }));
|
|
75
|
+
browser = classicBoard(besidePage(await chromium.launch({ executablePath: exe })));
|
|
75
76
|
const shot = async (page, name, sel) => { if (!SHOTS) return; fs.mkdirSync(SHOTS, { recursive: true }); const p = path.join(SHOTS, name + '.png'); if (sel) await page.locator(sel).first().screenshot({ path: p }); else await page.screenshot({ path: p }); };
|
|
76
77
|
|
|
77
78
|
const open = async (o = {}) => {
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
* P the phone: no dates; a tap on the row's lane opens a sheet with its milestones
|
|
15
15
|
* SHOTS_3=<dir>: the Board, the counted ◇'s list, the picker, the Tasks Timeline and the phone sheet, into <dir>. */
|
|
16
16
|
const path = require('path');
|
|
17
|
+
const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
|
|
18
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
17
19
|
const { spawn } = require('child_process');
|
|
18
20
|
const { findBrowser } = require('./lib/find-browser');
|
|
19
21
|
const T = require('./test-run').configure({ name: 'task-milestones' });
|
|
@@ -62,7 +64,7 @@ const ITEMS = [
|
|
|
62
64
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
63
65
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
64
66
|
await T.waitForServer(BASE);
|
|
65
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
67
|
+
browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
|
|
66
68
|
|
|
67
69
|
/** The Board on the timeline. o: { w, h, span, dark, tasksView } */
|
|
68
70
|
const open = async (o = {}) => {
|
|
@@ -146,7 +148,7 @@ const ITEMS = [
|
|
|
146
148
|
await p.click('#ibBody [data-key="board:scarlet"]');
|
|
147
149
|
await p.waitForSelector('.iv-tr', { timeout: 8000 });
|
|
148
150
|
// every stage open, so each task row is drawn
|
|
149
|
-
const unfold = async (sel) => { for (let i = 0; i < 12; i++) {
|
|
151
|
+
const unfold = async (sel) => { for (let i = 0; i < 12; i++) { if (!(await p.$(sel))) break; await p.locator(sel).first().click(); await p.waitForTimeout(80); } }; // a locator finds the button again if the panel redraws
|
|
150
152
|
await unfold('.iv-ws[data-iv-fold^="sec:"][aria-expanded="false"]');
|
|
151
153
|
const rows = await p.evaluate(() => [...document.querySelectorAll('.iv-tr')].map((r) => ({ t: (r.querySelector('.iv-tt') || {}).textContent, ms: !!r.querySelector('.iv-ms, .iv-dms'), ask: (r.querySelector('.iv-dc.ms') || {}).textContent || '' })));
|
|
152
154
|
const by = (t) => rows.find((x) => x.t === t) || {};
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
* P a phone: the menu opens as a bottom sheet
|
|
14
14
|
* SHOTS=<dir> writes the screenshots there. */
|
|
15
15
|
const path = require('path');
|
|
16
|
+
const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
|
|
17
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
16
18
|
const fs = require('fs');
|
|
17
19
|
const { spawn } = require('child_process');
|
|
18
20
|
const { findBrowser } = require('./lib/find-browser');
|
|
@@ -71,7 +73,7 @@ function model() {
|
|
|
71
73
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
72
74
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
73
75
|
await T.waitForServer(BASE);
|
|
74
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
76
|
+
browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
|
|
75
77
|
const shot = async (page, name, sel) => { if (!SHOTS) return; fs.mkdirSync(SHOTS, { recursive: true }); const p = path.join(SHOTS, name + '.png'); if (sel) await page.locator(sel).first().screenshot({ path: p }); else await page.screenshot({ path: p }); };
|
|
76
78
|
|
|
77
79
|
const open = async (o = {}) => {
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* T4 the Board's panel: a task's title is a press and opens the same editor as a drill-in, ← back to the initiative
|
|
9
9
|
* Serves the real pages from the real server; the reads are fixtures. A 1440 shot of each editor goes to PMOS_SHOTS when it is set. */
|
|
10
10
|
const path = require('path');
|
|
11
|
+
const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
|
|
12
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
11
13
|
const { spawn } = require('child_process');
|
|
12
14
|
const { findBrowser } = require('./lib/find-browser');
|
|
13
15
|
const { openMission } = require('./lib/open-mission');
|
|
@@ -87,7 +89,7 @@ const back = (p) => p.evaluate(() => { const b = document.querySelector('#czView
|
|
|
87
89
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
88
90
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT), PMOS_SELF_ROOT: path.resolve(__dirname, '..') }) });
|
|
89
91
|
await T.waitForServer(BASE);
|
|
90
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
92
|
+
browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
|
|
91
93
|
|
|
92
94
|
/* Home: the initiative's page in the Viewer */
|
|
93
95
|
const H = await page('/premium.html?ini=' + ID + '&ws=w1&board=w1&theme=light');
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
* and no Kanban drag) and its dates stay the PM's to set (date press and bar drag save to the task); a key PMOS has not read is plain text.
|
|
17
17
|
* H8 (Wawan 2026-10-29): a Jira card's drop and a Jira row's status press move the ticket in Jira (POST /api/jira/move), Undo, a refusal, moving. */
|
|
18
18
|
const path = require('path');
|
|
19
|
+
const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
|
|
20
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
19
21
|
const { spawn } = require('child_process');
|
|
20
22
|
const { findBrowser } = require('./lib/find-browser');
|
|
21
23
|
const T = require('./test-run').configure({ name: 'task-views' });
|
|
@@ -70,7 +72,7 @@ const IF = require('./fixtures/initiative-premium-facts.js');
|
|
|
70
72
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
71
73
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT), PMOS_SELF_ROOT: path.resolve(__dirname, '..') }) });
|
|
72
74
|
await T.waitForServer(BASE);
|
|
73
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
75
|
+
browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
|
|
74
76
|
|
|
75
77
|
const open = async ({ w = 1520, h = 900, theme = 'light', touch = false, store = null } = {}) => { // 1520: the rail of places takes 80 px, and the Viewer beside the Board stays as wide as it was at 1440 (its wide Tasks layout)
|
|
76
78
|
const ctx = await browser.newContext({ viewport: { width: w, height: h }, hasTouch: touch, isMobile: touch });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Events, the place for everything with a date (events-place, done test T1-T6): the pure model lib/events-place.js, the route lib/routes-events-place.js with fake readers, and the pure markup public/pm/cozy-events-view.js. No browser.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"events-place.test.js",
|
|
5
|
+
"events-view.test.mjs"
|
|
6
|
+
],
|
|
7
|
+
"seconds": {
|
|
8
|
+
"events-place.test.js": 1,
|
|
9
|
+
"events-view.test.mjs": 1
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Goals, slice 9 of the six-place navigation (initiative goals-place, done test T1-T6): lib/insights-premium.js unlinkedOf, pm/goals-model.js, the rail's Goals. Pure, node.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"goals-place.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"goals-place.test.js": 2
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Library, slice 7 of the six-place navigation (initiative library-place, done test T1-T7): lib/library-items.js, GET /api/library-items, pm/library-model.js, the rail's Library. Pure, node.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"library-place.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"library-place.test.js": 2
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Nav slice 3 (popup-work-contents, done test T1-T9): what the popup shows for work. The pure model (public/pm/pop-work-model.js), the describe route (lib/routes-pop-work.js) and a read of the page code. No browser.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"pop-work.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"pop-work.test.js": 2
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Routine, and a report in the popup (routine-place, done test T1-T6): the report rows (lib/routine-reports.js) and their GET, the table (public/pm/cozy-routine-model.js), the report popup's html (public/pm/cozy-routine-pop.js), the rail and the Settings entry. No browser.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"routine-place.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"routine-place.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Today (today-log-page, slice 5 of the six-place navigation; done test T1-T8): the log store and its route, the pure log and agenda models, their markup. No browser.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"today-log.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"today-log.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
* title; a future gap's press offers + New task with its dates; the legend keys only while drawn; the phone sheet lists the gap and the skip
|
|
17
17
|
* SHOTS_8=<dir>: the timeline at 1440 and 390, light and dark, and the ⏸ menu, into <dir>. */
|
|
18
18
|
const path = require('path');
|
|
19
|
+
const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
|
|
20
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
19
21
|
const { spawn } = require('child_process');
|
|
20
22
|
const { findBrowser } = require('./lib/find-browser');
|
|
21
23
|
const T = require('./test-run').configure({ name: 'timeline-holds' });
|
|
@@ -55,7 +57,7 @@ const ROWS = [
|
|
|
55
57
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
56
58
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
57
59
|
await T.waitForServer(BASE);
|
|
58
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
60
|
+
browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
|
|
59
61
|
|
|
60
62
|
/** The Board on the timeline. o: { w, h, rows, span, dark } */
|
|
61
63
|
const open = async (o = {}) => {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* labeled Send · G2 Your groups: drag between, ⋯, New group · G3 Timeline and Kanban draw the groups · G4 the phone · G5 the Board's panel
|
|
10
10
|
* · G6 the old panel is gone, New → A task opens the Tasks field */
|
|
11
11
|
const fs = require('fs');
|
|
12
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
12
13
|
const path = require('path');
|
|
13
14
|
const { spawn } = require('child_process');
|
|
14
15
|
const { findBrowser } = require('./lib/find-browser');
|
|
@@ -77,7 +78,7 @@ const LAYOUT = { ok: true, auto: true, held: [], by: 'stage', names: [], of: {},
|
|
|
77
78
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
78
79
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT), PMOS_SELF_ROOT: path.resolve(__dirname, '..') }) });
|
|
79
80
|
await T.waitForServer(BASE);
|
|
80
|
-
browser = besidePage(await chromium.launch({ executablePath: exe }));
|
|
81
|
+
browser = classicBoard(besidePage(await chromium.launch({ executablePath: exe })));
|
|
81
82
|
|
|
82
83
|
// the layout answers like lib/initiative-layout.js folds it: a press changes it, and the next read sees the change
|
|
83
84
|
const open = async ({ w = 1440, h = 900, theme = 'light', view = VIEW, layout = {}, page: pg = 'home', touch = false } = {}) => {
|