create-pmos 0.610.0 → 0.611.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 +50 -14
- 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/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-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 +49 -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 +62 -2
- package/workspace/guide/programs.md +16 -2
- package/workspace/guide/routine.md +50 -0
- package/workspace/guide/scheduled-tasks-and-cli.md +1 -1
- package/workspace/guide/settings-and-switches.md +1 -1
- package/workspace/impact-screens-test.js +3 -1
- package/workspace/ini-workflow-test.js +2 -1
- package/workspace/lib/classic-board.js +15 -0
- package/workspace/lib/events-place.js +216 -0
- package/workspace/lib/library-items.js +78 -0
- package/workspace/lib/notes.js +6 -1
- package/workspace/lib/route-modules.js +4 -0
- package/workspace/lib/routes-events-place.js +166 -0
- package/workspace/lib/routes-library.js +89 -0
- package/workspace/lib/routes-pop-work.js +39 -0
- package/workspace/lib/routes-report-setups.js +20 -0
- package/workspace/lib/routes-today-log.js +48 -0
- package/workspace/lib/routine-reports.js +52 -0
- 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/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/bd-ini-panel.js +72 -7
- package/workspace/public/pm/bd-prog-panel.js +55 -8
- package/workspace/public/pm/bd-work.css +130 -0
- package/workspace/public/pm/bd-work.js +356 -0
- package/workspace/public/pm/cozy-ev.css +2 -1
- package/workspace/public/pm/cozy-events-view.js +142 -0
- package/workspace/public/pm/cozy-events.css +107 -0
- package/workspace/public/pm/cozy-events.js +210 -0
- package/workspace/public/pm/cozy-evmodel.js +1 -1
- package/workspace/public/pm/cozy-library.css +36 -0
- package/workspace/public/pm/cozy-live-pill.js +1 -0
- package/workspace/public/pm/cozy-nav.js +5 -5
- package/workspace/public/pm/cozy-pop-work.css +165 -0
- package/workspace/public/pm/cozy-pop-work.js +427 -0
- package/workspace/public/pm/cozy-routine-model.js +111 -0
- package/workspace/public/pm/cozy-routine-pop.js +196 -0
- package/workspace/public/pm/cozy-routine.css +102 -0
- package/workspace/public/pm/cozy-routine.js +156 -0
- package/workspace/public/pm/cozy-schedwork.js +6 -5
- 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/home-app.js +18 -3
- package/workspace/public/pm/home-ini.js +36 -5
- package/workspace/public/pm/library-model.js +69 -0
- package/workspace/public/pm/library-open.js +34 -0
- package/workspace/public/pm/pop-work-model.js +335 -0
- package/workspace/public/pm/premium-board.js +130 -8
- package/workspace/public/pm/premium-library.js +122 -0
- package/workspace/public/premium-board.html +1 -0
- package/workspace/public/premium-events.html +42 -0
- package/workspace/public/premium-library.html +31 -0
- package/workspace/public/premium-routine.html +31 -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 +3 -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/events-place.json +11 -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/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
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/* pm/premium-library.js — Library, the place (initiative library-place, slice 7 of the six-place navigation; boards StLibrary,
|
|
2
|
+
* StLibMeetings, StLibDocs, StLibMeetingOpen on Exploring 2, page "Navigation: Today, Work, Goals, Events, Library, Routine").
|
|
3
|
+
*
|
|
4
|
+
* One table of everything that was made, the newest first, from every product: documents and links, meeting notes, prototypes. The filter
|
|
5
|
+
* changes the third column to one that fits the kind (pm/library-model.js). Finding is the main job, so the search field always shows; / puts
|
|
6
|
+
* the cursor in it. The + opens Ask PMOS with "Add to Library:" in the box: PMOS adds the file, the link or the new document and says where.
|
|
7
|
+
* A press on a row opens it in the one popup with the chat about it (pm/library-open.js); a link opens a new tab.
|
|
8
|
+
* Reads GET /api/library-items once on open, and again when the tab comes back after a minute. Writes nothing. The filter is remembered
|
|
9
|
+
* on this device (localStorage 'pmos.lib.kind'). */
|
|
10
|
+
import './fetch-share.js';
|
|
11
|
+
import { pmGet } from './http.js';
|
|
12
|
+
import { mountNav } from './cozy-nav.js';
|
|
13
|
+
import { mountLivePill } from './cozy-live-pill.js';
|
|
14
|
+
import './cozy-viewer.js';
|
|
15
|
+
import './cozy-popup.js'; // the one popup: window.czOpenChat for the rail's chat icon, and the popup a row opens in
|
|
16
|
+
import { FILTERS, columns, third, when, rows, dayText } from './library-model.js';
|
|
17
|
+
import { openItem } from './library-open.js';
|
|
18
|
+
|
|
19
|
+
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
20
|
+
const svg = (d) => `<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${d}"/></svg>`;
|
|
21
|
+
const ICON = {
|
|
22
|
+
doc: 'M7 4h7l4 4v12H7zM14 4v4h4',
|
|
23
|
+
link: 'M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1',
|
|
24
|
+
meeting: 'M9 6a3 3 0 1 0 0 6a3 3 0 1 0 0-6M3.5 19c.6-3 2.8-4.5 5.5-4.5s4.9 1.5 5.5 4.5M16 6.5a3 3 0 0 1 0 5.5M17.5 14.8c1.7.6 2.7 2 3 4.2',
|
|
25
|
+
proto: 'M4 5h16v12H4zM9 20h6',
|
|
26
|
+
};
|
|
27
|
+
const store = { get(k) { try { return localStorage.getItem(k); } catch { return null; } }, set(k, v) { try { localStorage.setItem(k, v); } catch { /* a private window */ } } };
|
|
28
|
+
const OLDER = 100;
|
|
29
|
+
const S = { all: false, items: null, error: '', filter: FILTERS.includes(store.get('pmos.lib.kind')) ? store.get('pmos.lib.kind') : 'All', q: '', at: 0, shown: [] };
|
|
30
|
+
|
|
31
|
+
mountNav('library', document, { scope: () => ({ name: 'Library', hits: (q) => libHits(q) }) });
|
|
32
|
+
mountLivePill();
|
|
33
|
+
|
|
34
|
+
const $ = (id) => document.getElementById(id);
|
|
35
|
+
const kinds = $('lbKinds'), body = $('lbBody'), note = $('lbNote'), qBox = $('lbQ');
|
|
36
|
+
|
|
37
|
+
function drawKinds() {
|
|
38
|
+
kinds.innerHTML = FILTERS.map((f) => `<button type="button" data-lb-kind="${esc(f)}" aria-pressed="${f === S.filter}">${esc(f)}</button>`).join('');
|
|
39
|
+
}
|
|
40
|
+
function rowHtml(x, i) {
|
|
41
|
+
const at = when(x, S.filter);
|
|
42
|
+
return `<button type="button" class="lb-r" role="row" data-lb-i="${i}" aria-label="${esc(x.name)}. ${esc(x.kindText)}${x.about && x.about.title ? '. About ' + esc(x.about.title) : ''}${x.open && x.open.url ? '. Opens in a new tab' : ''}">`
|
|
43
|
+
+ `<span class="ic" role="cell">${svg(ICON[x.kind] || ICON.doc)}</span><span class="n" role="cell">${esc(x.name)}</span>`
|
|
44
|
+
+ `<span class="c" role="cell">${esc(third(x, S.filter))}</span><span class="c" role="cell">${esc((x.about && x.about.title) || '')}</span>`
|
|
45
|
+
+ `<span class="c" role="cell">${esc(dayText(at))}</span></button>`;
|
|
46
|
+
}
|
|
47
|
+
function draw() {
|
|
48
|
+
if (S.items == null) return;
|
|
49
|
+
if (!S.items.length && S.error) { body.innerHTML = `<p class="lb-none">The Library could not be read: ${esc(S.error)}.</p>`; note.textContent = ''; return; }
|
|
50
|
+
const groups = rows(S.items, { filter: S.filter, q: S.q });
|
|
51
|
+
const col = columns(S.filter);
|
|
52
|
+
S.shown = [];
|
|
53
|
+
if (!groups.length) {
|
|
54
|
+
// zero is silence: one quiet line, no empty table
|
|
55
|
+
const what = S.q ? 'Nothing in the Library matches "' + S.q + '".' : S.filter === 'All' ? 'Nothing was made yet. Documents, meeting notes and prototypes show here as they are made.' : 'No ' + S.filter.toLowerCase() + ' yet.';
|
|
56
|
+
body.innerHTML = `<p class="lb-none">${esc(what)}</p>`;
|
|
57
|
+
note.textContent = '';
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
let h = `<div class="lb-t" role="table" aria-label="Library"><div class="lb-r lb-h" role="row"><span role="columnheader"></span><span role="columnheader">${esc(col.name)}</span><span role="columnheader">${esc(col.third)}</span><span role="columnheader">About</span><span role="columnheader">${esc(col.date)}</span></div>`;
|
|
61
|
+
let left = 0;
|
|
62
|
+
for (const g of groups) {
|
|
63
|
+
h += `<div class="lb-r lb-g" role="row"><div role="rowheader">${esc(g.group)}</div></div>`;
|
|
64
|
+
// a long Older group shows its newest rows; one quiet press shows the rest
|
|
65
|
+
const cut = g.group === 'Older' && !S.all && !S.q ? g.items.slice(0, OLDER) : g.items;
|
|
66
|
+
left += g.items.length - cut.length;
|
|
67
|
+
for (const x of cut) { h += rowHtml(x, S.shown.length); S.shown.push(x); }
|
|
68
|
+
}
|
|
69
|
+
if (left) h += `<button type="button" class="lb-r lb-more" data-lb-more><span></span><span class="c q">Show ${left} older</span></button>`;
|
|
70
|
+
body.innerHTML = h + '</div>';
|
|
71
|
+
note.textContent = S.filter === 'All' && !S.q ? 'Press a row to open it with the chat beside it. Reports are in Routine.' : '';
|
|
72
|
+
}
|
|
73
|
+
/* Search (⌘K) lists the Library's own rows first */
|
|
74
|
+
function libHits(q) {
|
|
75
|
+
if (!S.items) return [];
|
|
76
|
+
const g = rows(S.items, { filter: 'All', q });
|
|
77
|
+
const list = g.flatMap((x) => x.items).slice(0, 8);
|
|
78
|
+
return list.length ? [{ label: 'In the Library', rows: list.map((x) => ({ id: x.id, title: x.name, sub: x.kindText + (x.about && x.about.title ? ' · ' + x.about.title : ''), open: () => openItem(x) })) }] : [];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
async function load() {
|
|
82
|
+
const r = await pmGet('/api/library-items').catch((e) => ({ ok: false, error: (e && e.message) || 'the server did not answer' }));
|
|
83
|
+
S.at = Date.now();
|
|
84
|
+
if (r && r.ok) { S.items = r.items || []; S.error = ''; } else { S.items = S.items || []; S.error = (r && r.error) || 'the server did not answer'; }
|
|
85
|
+
draw();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
kinds.onclick = (e) => {
|
|
89
|
+
const b = e.target.closest('[data-lb-kind]'); if (!b) return;
|
|
90
|
+
S.filter = b.dataset.lbKind; store.set('pmos.lib.kind', S.filter); drawKinds(); draw();
|
|
91
|
+
};
|
|
92
|
+
qBox.addEventListener('input', () => { S.q = qBox.value.trim(); draw(); });
|
|
93
|
+
qBox.addEventListener('keydown', (e) => { if (e.key === 'Escape' && qBox.value) { e.stopPropagation(); qBox.value = ''; S.q = ''; draw(); } });
|
|
94
|
+
body.onclick = (e) => {
|
|
95
|
+
if (e.target.closest('[data-lb-more]')) { S.all = true; draw(); return; }
|
|
96
|
+
const b = e.target.closest('[data-lb-i]'); if (!b) return;
|
|
97
|
+
const x = S.shown[Number(b.dataset.lbI)]; if (x) openItem(x);
|
|
98
|
+
};
|
|
99
|
+
addEventListener('keydown', (e) => {
|
|
100
|
+
if (e.key !== '/' || e.metaKey || e.ctrlKey || e.altKey) return;
|
|
101
|
+
const t = e.target; if (t && (t.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName))) return;
|
|
102
|
+
if (document.body.classList.contains('cz-pop-on')) return;
|
|
103
|
+
e.preventDefault(); qBox.focus();
|
|
104
|
+
});
|
|
105
|
+
// the +: Ask PMOS, with the words ready to finish; PMOS adds the file, the link or the new document
|
|
106
|
+
$('lbAdd').onclick = async () => {
|
|
107
|
+
const M = await import('./page-chat.js');
|
|
108
|
+
await M.openCos({ here: 'Library' });
|
|
109
|
+
let n = 0;
|
|
110
|
+
const t = setInterval(() => {
|
|
111
|
+
const box = document.querySelector('.pc-chat textarea');
|
|
112
|
+
if (box || ++n > 20) {
|
|
113
|
+
clearInterval(t);
|
|
114
|
+
if (box && !box.value) { box.value = 'Add to Library: '; box.dispatchEvent(new Event('input', { bubbles: true })); }
|
|
115
|
+
if (box) box.focus();
|
|
116
|
+
}
|
|
117
|
+
}, 50);
|
|
118
|
+
};
|
|
119
|
+
document.addEventListener('visibilitychange', () => { if (document.visibilityState === 'visible' && Date.now() - S.at > 60000) load(); });
|
|
120
|
+
|
|
121
|
+
drawKinds();
|
|
122
|
+
load();
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
<link rel="stylesheet" href="/pm/load-shapes.css" />
|
|
17
17
|
<link rel="stylesheet" href="/pm/bd-pin-card.css" />
|
|
18
18
|
<link rel="stylesheet" href="/pm/cozy-panel.css" />
|
|
19
|
+
<link rel="stylesheet" href="/pm/bd-work.css" />
|
|
19
20
|
</head>
|
|
20
21
|
<body class="cz bd-page">
|
|
21
22
|
<!-- The Board has no dialog, dock, toast or hero of the old shell: pm/premium-shell.js binds to a detached copy when #dlg is absent. Its panels
|
|
@@ -0,0 +1,42 @@
|
|
|
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 · Events</title>
|
|
8
|
+
<!-- Events (slice 6 of the six-place navigation, initiative events-place; board 2, StEvPlan): everything with a date in one page with no views.
|
|
9
|
+
Left: Late, Today, Coming up and the later delivery milestones as one line. Right, in one grey box: the small month and Show. It reads
|
|
10
|
+
GET /api/events-place; the page code is pm/cozy-events.js and its markup pm/cozy-events-view.js. -->
|
|
11
|
+
<link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
|
|
12
|
+
<link rel="stylesheet" href="/pm/cozy.css" />
|
|
13
|
+
<link rel="stylesheet" href="/pm/cozy-events.css" />
|
|
14
|
+
</head>
|
|
15
|
+
<body class="cz evp-page">
|
|
16
|
+
<main class="cz-panel stage evp" id="stage">
|
|
17
|
+
<div class="evp-hd">
|
|
18
|
+
<h1>Events</h1>
|
|
19
|
+
<p class="evp-dayf" id="evpDay" hidden>Only <b></b><button type="button" class="evp-ib" data-evp-clear aria-label="Show every day" title="Show every day"><svg aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="M6 6l12 12M18 6L6 18"/></svg></button></p>
|
|
20
|
+
<button type="button" class="evp-ib evp-add" data-evp-add aria-label="Add your own date" title="Add your own date"><svg aria-hidden="true" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg></button>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="evp-grid">
|
|
23
|
+
<div class="evp-left">
|
|
24
|
+
<form class="evp-new" id="evpAdd" hidden aria-label="Your own date">
|
|
25
|
+
<input name="what" type="text" placeholder="What, for example: Call Rina about the contract" aria-label="What" autocomplete="off" />
|
|
26
|
+
<input name="when" type="date" aria-label="When" />
|
|
27
|
+
<button type="submit" class="evp-ib evp-yes" aria-label="Add it" title="Add it"><svg aria-hidden="true" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></button>
|
|
28
|
+
</form>
|
|
29
|
+
<p class="evp-note" id="evpNote" role="status" hidden></p>
|
|
30
|
+
<div id="evpList" aria-live="polite"><p class="evp-quiet" role="status">Reading the dates.</p></div>
|
|
31
|
+
</div>
|
|
32
|
+
<aside class="evp-side" aria-label="The month">
|
|
33
|
+
<div id="evpMonth"></div>
|
|
34
|
+
<div id="evpShow"></div>
|
|
35
|
+
<p class="evp-hint">Press a kind to hide it or show it. Press a day to see only that day.</p>
|
|
36
|
+
</aside>
|
|
37
|
+
</div>
|
|
38
|
+
</main>
|
|
39
|
+
<div class="evp-toast" id="toast" role="status" aria-live="polite"></div>
|
|
40
|
+
<script type="module" src="/pm/cozy-events.js"></script>
|
|
41
|
+
</body>
|
|
42
|
+
</html>
|
|
@@ -0,0 +1,31 @@
|
|
|
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 · Library</title>
|
|
8
|
+
<!-- Library (initiative library-place, slice 7 of the six-place navigation; boards StLibrary, StLibMeetings, StLibDocs, StLibMeetingOpen on
|
|
9
|
+
Exploring 2). One table of everything that was made, the newest first: Name, Kind, About, Updated, in the groups This week, Earlier in <month>
|
|
10
|
+
and Older. The filter All, Documents, Meeting notes, Prototypes; the search field; the + asks PMOS to add a file, a link or a new document.
|
|
11
|
+
A press on a row opens it in the one popup (pm/cozy-popup.js) with the chat about it. Reports live in Routine; Lab findings go to Today.
|
|
12
|
+
It reads GET /api/library-items (lib/routes-library.js). Nothing on this page writes. -->
|
|
13
|
+
<link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
|
|
14
|
+
<link rel="stylesheet" href="/pm/cozy.css" />
|
|
15
|
+
<link rel="stylesheet" href="/pm/cozy-library.css" />
|
|
16
|
+
</head>
|
|
17
|
+
<body class="cz lb-page">
|
|
18
|
+
<main class="stage cz-panel lb" id="stage">
|
|
19
|
+
<h1 class="vh">Library</h1>
|
|
20
|
+
<div class="lb-bar">
|
|
21
|
+
<span class="cz-seg" id="lbKinds" role="group" aria-label="Kind"></span>
|
|
22
|
+
<label class="lb-find"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M11 4.5a6.5 6.5 0 1 0 0 13a6.5 6.5 0 1 0 0-13M16 16l4 4"/></svg><span class="vh">Find in Library</span><input id="lbQ" type="search" autocomplete="off" spellcheck="false" placeholder="Find in Library" /></label>
|
|
23
|
+
<button type="button" class="cz-ib lb-add" id="lbAdd" aria-label="Add a file, a link or a new document" title="Add a file, a link or a new document"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
|
|
24
|
+
</div>
|
|
25
|
+
<div id="lbBody" aria-live="polite"><div class="lb-t lb-sk" aria-hidden="true"><div class="lb-r lb-h"><span></span><i></i><i></i><i></i><i></i></div><div class="lb-r"><span></span><i></i><i></i><i></i><i></i></div><div class="lb-r"><span></span><i></i><i></i><i></i><i></i></div><div class="lb-r"><span></span><i></i><i></i><i></i><i></i></div></div></div>
|
|
26
|
+
<p class="lb-n" id="lbNote"></p>
|
|
27
|
+
</main>
|
|
28
|
+
<noscript>This page needs JavaScript.</noscript>
|
|
29
|
+
<script type="module" src="/pm/premium-library.js"></script>
|
|
30
|
+
</body>
|
|
31
|
+
</html>
|
|
@@ -0,0 +1,31 @@
|
|
|
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 · Routine</title>
|
|
8
|
+
<!-- Routine (initiative routine-place, slice 8 of the six-place navigation; board 11 on Exploring 2): one table of everything that repeats.
|
|
9
|
+
Reports with who they tell, what PMOS reads, PMOS's own jobs and your own scheduled tasks, each with When, Next and a switch that pauses it.
|
|
10
|
+
"PMOS did" is one line on top. A row opens the one popup (pm/cozy-popup.js): a report with its newest issue and its setup, or the setup of
|
|
11
|
+
the routine (pm/cozy-routine-pop.js). The rail (pm/cozy-nav.js) is the navigation. The page code is pm/cozy-routine.js. -->
|
|
12
|
+
<link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
|
|
13
|
+
<link rel="stylesheet" href="/pm/cozy.css" />
|
|
14
|
+
<link rel="stylesheet" href="/pm/cozy-routine.css" />
|
|
15
|
+
</head>
|
|
16
|
+
<body class="cz">
|
|
17
|
+
<div class="rt-toast" id="toast" role="status" aria-live="polite"></div>
|
|
18
|
+
<main class="cz-panel stage rt-page" id="stage">
|
|
19
|
+
<h1 class="vh">Routine</h1>
|
|
20
|
+
<div class="rt-bar">
|
|
21
|
+
<div class="rt-seg" id="rtKinds" role="group" aria-label="Show"></div>
|
|
22
|
+
<button type="button" class="rt-add" id="rtAdd" aria-label="Tell PMOS a new routine" title="Tell PMOS a new routine"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
|
|
23
|
+
</div>
|
|
24
|
+
<div id="rtDid"></div>
|
|
25
|
+
<div id="rtTable"><p class="rt-quiet">Reading what repeats.</p></div>
|
|
26
|
+
<p class="rt-msg" id="rtMsg" role="status"></p>
|
|
27
|
+
</main>
|
|
28
|
+
<noscript>This page needs JavaScript.</noscript>
|
|
29
|
+
<script type="module" src="/pm/cozy-routine.js"></script>
|
|
30
|
+
</body>
|
|
31
|
+
</html>
|
|
@@ -0,0 +1,50 @@
|
|
|
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 · Today</title>
|
|
8
|
+
<!-- Today (slice 5 of the six-place navigation, initiative today-log-page; board 1 on Exploring 2): the place the app lands on. On a desk it is
|
|
9
|
+
one page, Today's log on the left and today's agenda on the right (pm/cozy-today-view.js, drawn by home-app.js into #tdPage); a row opens its work
|
|
10
|
+
in the one popup with the chat. It is Home's own page with data-today, so every press Home has (the popup, the chat, a meeting, a task)
|
|
11
|
+
works the same here. A phone keeps Home as it is. The markup below is premium.html's. -->
|
|
12
|
+
<!-- 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
|
|
13
|
+
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
|
|
14
|
+
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
|
|
15
|
+
page; their addresses open it. The default page; the old console stays at /console.html and nothing here links to it. -->
|
|
16
|
+
<link rel="manifest" href="/manifest.webmanifest" crossorigin="use-credentials" />
|
|
17
|
+
<meta name="theme-color" content="#090b0c" />
|
|
18
|
+
<meta name="mobile-web-app-capable" content="yes" />
|
|
19
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
20
|
+
<meta name="apple-mobile-web-app-title" content="PMOS" />
|
|
21
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
|
22
|
+
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
|
|
23
|
+
<link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
|
|
24
|
+
<link rel="stylesheet" href="/pm/cozy.css" />
|
|
25
|
+
<link rel="stylesheet" href="/pm/cozy-pick.css" />
|
|
26
|
+
<link rel="stylesheet" href="/pm/cozy-home.css" />
|
|
27
|
+
<link rel="stylesheet" href="/pm/cozy-today.css" />
|
|
28
|
+
<link rel="stylesheet" href="/pm/home-impact.css" />
|
|
29
|
+
<link rel="stylesheet" href="/pm/cozy-panel.css" />
|
|
30
|
+
<link rel="stylesheet" href="/pm/cozy-onboard.css" />
|
|
31
|
+
<link rel="stylesheet" href="/pm/load-shapes.css" />
|
|
32
|
+
<link rel="stylesheet" href="/pm/cozy-today-page.css" />
|
|
33
|
+
</head>
|
|
34
|
+
<body class="cz cz-home" data-today>
|
|
35
|
+
<header class="hm-top" id="hmTop">
|
|
36
|
+
<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>
|
|
37
|
+
<div class="hm-top-t"><b id="hmTopTitle">Home</b><span id="hmTopSub"></span></div>
|
|
38
|
+
<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>
|
|
39
|
+
</header>
|
|
40
|
+
<main class="hm-desk" id="hmDesk">
|
|
41
|
+
<aside class="hm-list" id="hmList" aria-label="Sessions"></aside>
|
|
42
|
+
<section class="hm-chat" id="hmChat" aria-label="Conversation"></section>
|
|
43
|
+
<div class="hm-vw" data-cz-viewer-host data-cz-vw-overlay></div>
|
|
44
|
+
<section class="td-page" id="tdPage" aria-label="Today" hidden></section>
|
|
45
|
+
</main>
|
|
46
|
+
<div class="hm-menu" id="hmMenu" role="menu" aria-label="More" hidden></div>
|
|
47
|
+
<div class="hm-toast" id="toast" role="status" aria-live="polite"></div>
|
|
48
|
+
<script type="module" src="/pm/home-app.js"></script>
|
|
49
|
+
</body>
|
|
50
|
+
</html>
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
* P the product page on Home (390 and 1440) is the same one page; the metrics review is a row in its Reports tab.
|
|
15
15
|
* PMOS_SHOTS=<dir> also saves the screenshots. */
|
|
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 fs = require('fs');
|
|
18
20
|
const { spawn } = require('child_process');
|
|
19
21
|
const { findBrowser } = require('./lib/find-browser');
|
|
@@ -50,7 +52,7 @@ const SPONSORS = '# Inline login slips to early December unless passkeys move to
|
|
|
50
52
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
51
53
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
52
54
|
await T.waitForServer(BASE);
|
|
53
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
55
|
+
browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
|
|
54
56
|
if (SHOTS) fs.mkdirSync(SHOTS, { recursive: true });
|
|
55
57
|
const shot = async (p, name) => { if (SHOTS) { await sleep(450); await p.screenshot({ path: path.join(SHOTS, name + '.png') }); } };
|
|
56
58
|
|
package/workspace/rename-test.js
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* E a refusal keeps the field open with the reason
|
|
13
13
|
* S on a phone the field fills the header */
|
|
14
14
|
const path = require('path');
|
|
15
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
15
16
|
const { spawn } = require('child_process');
|
|
16
17
|
const { findBrowser } = require('./lib/find-browser');
|
|
17
18
|
const T = require('./test-run').configure({ name: 'rename' });
|
|
@@ -41,7 +42,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
41
42
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
42
43
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
43
44
|
await T.waitForServer(BASE);
|
|
44
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
45
|
+
browser = classicBoard(await chromium.launch({ executablePath: exe }));
|
|
45
46
|
|
|
46
47
|
const model = () => { const m = BP.build(F.programFacts('idpf')); const r = m.rows.find((x) => x.id === 'descope-parity'); if (r) r.epics = ['IDPF-12']; return m; };
|
|
47
48
|
const open = async ({ w = 1440, h = 900, qs = '?ws=idpf&focus=descope-parity', refuse = false } = {}) => {
|
package/workspace/run-tests.js
CHANGED
|
@@ -408,7 +408,10 @@ function traceChanges(changes, ctx) {
|
|
|
408
408
|
// the page map (`const PAGES = { '/path': 'page.html', … }`, one line): a change to it reaches only the suites that name an entry
|
|
409
409
|
// it adds, drops or points elsewhere, by its path or its page file (live round W3: adding /pm/present reached all 511 suites)
|
|
410
410
|
const pm = pagesChanged(raw);
|
|
411
|
-
|
|
411
|
+
// the bare root '/' is in every path, so it counts only as a string of its own ('/' or "/"): a suite that fetches the root
|
|
412
|
+
// (six-place navigation slice 5: '/' moved from premium.html to today.html reached all 526 suites)
|
|
413
|
+
const names = (src, x) => (x === '/' ? /(['"`])\/\1/.test(src) : src.includes(x));
|
|
414
|
+
if (pm) { for (const x of pm) for (const sfile of list) if (names(get(sfile) || '', x)) picked.add(sfile); continue; }
|
|
412
415
|
const own = fnAt(n);
|
|
413
416
|
if (own && own.name !== 'handleRequest' && optionOnly(own, lines)) continue;
|
|
414
417
|
if (own && own.name !== 'handleRequest') { const w = useOf(own.name); if (w) return `${own.name} (server.js:${n}) is used by ${w}`; continue; }
|
package/workspace/server.js
CHANGED
|
@@ -7312,7 +7312,8 @@ async function handleRequest(req, res) {
|
|
|
7312
7312
|
const built = BUILD_RE.exec(url.pathname);
|
|
7313
7313
|
const p = built ? built[2] : url.pathname;
|
|
7314
7314
|
|
|
7315
|
-
//
|
|
7315
|
+
// Today (public/today.html, slice 5 of the six-place navigation) is the page the app lands on: '/' and '/index.html' serve it. It is Home
|
|
7316
|
+
// with data-today: a desk draws Today's log and agenda, a phone keeps Home. Home (public/premium.html) stays at its address. The console (/console.html, /c3.html) and the
|
|
7316
7317
|
// classic shell (/classic.html) were removed (workspace-legacy-cleanup); their old links open Home with the same query. The
|
|
7317
7318
|
// old first-run page (/welcome) opens the Agreed first run (/premium-welcome.html) with the same query.
|
|
7318
7319
|
// premium-agreed-design H3: Home replaced the Briefing, My work and Chat. My work and Chat open Home with their own query, so an
|
|
@@ -7351,7 +7352,7 @@ async function handleRequest(req, res) {
|
|
|
7351
7352
|
res.writeHead(302, { Location: '/premium.html?onboard=1', 'Cache-Control': 'no-store' });
|
|
7352
7353
|
return res.end();
|
|
7353
7354
|
}
|
|
7354
|
-
const PAGES = { '/': 'premium.html', '/
|
|
7355
|
+
const PAGES = { '/premium-routine': 'premium-routine.html', '/premium-routine.html': 'premium-routine.html', '/': 'today.html', '/index.html': 'today.html', '/today': 'today.html', '/today.html': 'today.html', '/premium': 'premium.html', '/premium.html': 'premium.html', '/premium-board': 'premium-board.html', '/premium-board.html': 'premium-board.html', '/premium-intelligence': 'premium-intelligence.html', '/premium-intelligence.html': 'premium-intelligence.html', '/premium-events': 'premium-events.html', '/premium-events.html': 'premium-events.html', '/premium-library': 'premium-library.html', '/premium-library.html': 'premium-library.html', '/premium-insights': 'premium-intelligence.html', '/premium-insights.html': 'premium-intelligence.html', '/premium-welcome': 'premium-welcome.html', '/premium-welcome.html': 'premium-welcome.html', '/premium-viewer': 'premium-viewer.html', '/premium-viewer.html': 'premium-viewer.html', '/premium-rec': 'premium-rec.html', '/premium-rec.html': 'premium-rec.html', '/premium-workflows': 'premium-workflows.html', '/premium-workflows.html': 'premium-workflows.html', '/pm/present': 'premium-present.html' };
|
|
7355
7356
|
const page = capture ? 'capture.html' : Object.prototype.hasOwnProperty.call(PAGES, p) ? PAGES[p] : null;
|
|
7356
7357
|
if (page) {
|
|
7357
7358
|
// pm-os-absorb Run 2 (R25, X11): the per-launch nonce goes into the base meta line, nowhere else. no-store, so a
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* H Home: the same order as the Board; the sort button in its header; a product's initiatives are one list the grip arranges
|
|
9
9
|
* P phone: the button fits the header, no sideways scroll, no grip shows, and a held product header drags */
|
|
10
10
|
const path = require('path');
|
|
11
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
11
12
|
const { spawn } = require('child_process');
|
|
12
13
|
const { findBrowser } = require('./lib/find-browser');
|
|
13
14
|
const T = require('./test-run').configure({ name: 'sort-order' });
|
|
@@ -56,7 +57,7 @@ const route = async (page) => {
|
|
|
56
57
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
57
58
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
58
59
|
await T.waitForServer(BASE);
|
|
59
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
60
|
+
browser = classicBoard(await chromium.launch({ executablePath: exe }));
|
|
60
61
|
|
|
61
62
|
const board = async (o = {}) => {
|
|
62
63
|
const ctx = await browser.newContext({ viewport: { width: o.w || 1440, height: o.h || 900 }, hasTouch: !!o.touch, isMobile: !!o.touch });
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
* P phone: the card in the full-screen Viewer
|
|
12
12
|
* SHOTS=<dir> saves the screenshots. */
|
|
13
13
|
const fs = require('fs');
|
|
14
|
+
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)
|
|
15
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
14
16
|
const path = require('path');
|
|
15
17
|
const { spawn } = require('child_process');
|
|
16
18
|
const { findBrowser } = require('./lib/find-browser');
|
|
@@ -67,7 +69,7 @@ const shot = (p, name) => (SHOTS ? p.screenshot({ path: path.join(SHOTS, name) }
|
|
|
67
69
|
}
|
|
68
70
|
await until(async () => { const r = await (await fetch(`${BASE}/api/board-premium?ws=${ws}&board=${ws}`)).json(); return r.state === 'ready' && (r.model.initiatives.list.rows.find((x) => x.id === 'fx-full') || {}).suggest; }, 90000, 500);
|
|
69
71
|
|
|
70
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
72
|
+
browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
|
|
71
73
|
const open = async (o = {}) => {
|
|
72
74
|
const ctx = await openMission(await browser.newContext({ viewport: { width: o.w || 1440, height: o.h || 900 } }));
|
|
73
75
|
const page = await ctx.newPage();
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
* S11 a long press on a phone's title lifts the row · S12 a milestone on the Timeline is its ◇ only; Kanban says "◇ Nov 14"
|
|
14
14
|
* S13 light and dark, phone and desktop: no page error. PMOS_SHOTS=<dir> writes the screens. */
|
|
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 { spawn } = require('child_process');
|
|
17
19
|
const { findBrowser } = require('./lib/find-browser');
|
|
18
20
|
const T = require('./test-run').configure({ name: 'stage-card-tasks' });
|
|
@@ -58,7 +60,7 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
|
|
|
58
60
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
59
61
|
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, '..') }) });
|
|
60
62
|
await T.waitForServer(BASE);
|
|
61
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
63
|
+
browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
|
|
62
64
|
|
|
63
65
|
// where: 'home' (premium.html's Viewer) or 'board' (the Board's panel)
|
|
64
66
|
const open = async ({ where = 'home', w = 390, h = 844, theme = 'light', view = 'list' } = {}) => {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* switch, Move now (open steps ask for a note) and Back; every step done before a milestone: Move now moves it to ◆ Deliver.
|
|
10
10
|
* PMOS_SHOTS=<dir> also saves a screenshot of each state there. */
|
|
11
11
|
const path = require('path');
|
|
12
|
+
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
13
|
const fs = require('fs');
|
|
13
14
|
const { spawn } = require('child_process');
|
|
14
15
|
const { pathToFileURL } = require('url');
|
|
@@ -94,7 +95,7 @@ async function pure() {
|
|
|
94
95
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
95
96
|
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, '..') }) });
|
|
96
97
|
await T.waitForServer(BASE);
|
|
97
|
-
browser = await chromium.launch({ executablePath: exe });
|
|
98
|
+
browser = besidePage(await chromium.launch({ executablePath: exe }));
|
|
98
99
|
const BOARD = BP.build(BF.facts()), BRIEF = BRP.build(BRF.facts());
|
|
99
100
|
if (SHOTS) fs.mkdirSync(SHOTS, { recursive: true });
|
|
100
101
|
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* ⋯ opens and ends in Delete, and a press deletes at once with the Undo toast and closes the Viewer
|
|
12
12
|
* SHOTS_16=<dir>: the picker with the trash, the toast, and the phone, into <dir>. */
|
|
13
13
|
const path = require('path');
|
|
14
|
+
const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
|
|
14
15
|
const { spawn } = require('child_process');
|
|
15
16
|
const { findBrowser } = require('./lib/find-browser');
|
|
16
17
|
const { besidePage } = require('./lib/beside-page'); // these checks are about work beside the page, not the popup
|
|
@@ -54,7 +55,7 @@ const openCard = async (pg, uid, V = '#czViewer') => {
|
|
|
54
55
|
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
55
56
|
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT) }) });
|
|
56
57
|
await T.waitForServer(BASE);
|
|
57
|
-
browser = besidePage(await chromium.launch({ executablePath: exe }));
|
|
58
|
+
browser = classicBoard(besidePage(await chromium.launch({ executablePath: exe })));
|
|
58
59
|
|
|
59
60
|
/** The Board on the timeline, with the initiative panel open on Scarlet's Tasks. o: { w, h, phone, dark } */
|
|
60
61
|
const open = async (o = {}) => {
|
|
@@ -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": "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
|
+
}
|