create-pmos 0.615.0 → 0.617.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 +75 -45
- 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/changelog.json +115 -1940
- package/workspace/extension/README.md +13 -1
- package/workspace/extension/panel.js +7 -5
- package/workspace/guide/backlog.md +70 -0
- package/workspace/guide/cli.md +1 -0
- package/workspace/guide/index.md +1 -0
- package/workspace/guide/layout.md +3 -2
- package/workspace/guide/notes.md +17 -3
- package/workspace/guide/programs.md +1 -1
- package/workspace/guide/routine.md +1 -1
- package/workspace/lib/backlog.js +323 -0
- package/workspace/lib/day-run.js +3 -2
- package/workspace/lib/doc-library.js +26 -3
- package/workspace/lib/jira-status.js +4 -1
- package/workspace/lib/meeting-focus.js +40 -8
- package/workspace/lib/mention-cli.js +7 -5
- package/workspace/lib/mention-store.js +9 -5
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-backlog.js +283 -0
- package/workspace/lib/routes-boards.js +13 -0
- package/workspace/lib/routes-brief-page.js +6 -2
- package/workspace/lib/routes-meeting-focus.js +3 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/bd-backlog.css +158 -0
- package/workspace/public/pm/bd-backlog.js +531 -0
- package/workspace/public/pm/bk-model.js +169 -0
- package/workspace/public/pm/buddy-core.js +166 -0
- package/workspace/public/pm/buddy-press.js +66 -0
- package/workspace/public/pm/cozy-buddy.css +52 -0
- package/workspace/public/pm/cozy-buddy.js +115 -0
- package/workspace/public/pm/cozy-pick.js +6 -3
- package/workspace/public/pm/cozy-rec-now.js +35 -4
- package/workspace/public/pm/cozy-rec-tab.js +5 -1
- package/workspace/public/pm/cozy-routine.js +3 -2
- package/workspace/public/pm/cozy-today-app.js +36 -6
- package/workspace/public/pm/cozy-today-model.js +49 -12
- package/workspace/public/pm/cozy-today-page.css +15 -1
- package/workspace/public/pm/cozy-today-view.js +21 -12
- package/workspace/public/pm/home-app.js +6 -1
- package/workspace/public/pm/mention-one-model.js +6 -4
- package/workspace/public/pm/premium-board.js +21 -3
- package/workspace/public/pm/premium-goals.js +12 -9
- package/workspace/public/pm/premium-library.js +15 -3
- package/workspace/public/pm/premium-meeting.js +2 -2
- package/workspace/public/pm/rec-tab-core.js +5 -2
- package/workspace/public/premium-board.html +1 -0
- package/workspace/public/premium-buddy.html +27 -0
- package/workspace/server.js +1 -1
- package/workspace/skills/morning-brief.skill +1 -1
- package/workspace/test-lists/backlog.json +9 -0
- package/workspace/test-lists/meeting-buddy.json +9 -0
|
@@ -22,7 +22,8 @@ import * as WK from './work-kind.js'; // the kind of work before each title (b
|
|
|
22
22
|
import { pmPost } from './http.js';
|
|
23
23
|
import { followDoc } from './doc-follow.js';
|
|
24
24
|
import { $, $$, esc, store, chatAbout, setPageGaps } from './premium-shell.js';
|
|
25
|
-
import * as PK from './cozy-pick.js';
|
|
25
|
+
import * as PK from './cozy-pick.js';
|
|
26
|
+
import { productName, whenNames } from './scope-chip.js'; // the products' display names ("IDPF", not "pmos-idpf") // the one product picker Home, Board and Insights share (batch 12 item 5)
|
|
26
27
|
import { mountNav } from './cozy-nav.js';
|
|
27
28
|
import { quietPlace } from './quiet-place.js'; // onboarding B3: before three initiatives or a date, the Board shows one line
|
|
28
29
|
import { mountLivePill } from './cozy-live-pill.js';
|
|
@@ -61,6 +62,7 @@ import { setSay } from './cozy-xv.js';
|
|
|
61
62
|
import { narrowForm } from './pn-narrow.js';
|
|
62
63
|
import * as BP2 from './bd-pane.js';
|
|
63
64
|
import * as WV from './bd-work.js'; // Work, one view on a desk (slice 4 of the six-place navigation, initiative work-one-view)
|
|
65
|
+
import * as BK from './bd-backlog.js'; // the Backlog beside Initiatives in Work: every task in one list (initiative work-backlog)
|
|
64
66
|
import * as LS from './load-shapes.js'; // the skeleton and the slow-case line while the board is read (page-open-speed, SpD) // the Board as the first panel: fit(), the rows that open beside, the open row's mark
|
|
65
67
|
import * as SWN from './cozy-status-when.js'; // the day a status move really happened, in the toast (round 3 point 18)
|
|
66
68
|
|
|
@@ -260,6 +262,8 @@ function drawHead() {
|
|
|
260
262
|
if (!crumbed) {
|
|
261
263
|
crumbed = true;
|
|
262
264
|
drawPick();
|
|
265
|
+
// the display names come in once (GET /api/workspaces): then the chip and Work's Product cells draw again with them
|
|
266
|
+
whenNames().then(() => { if (!M) return; drawPick(); if (workOn()) drawInit(); });
|
|
263
267
|
const names = (M.board.products || []).map((p) => p.name), some = ALL && PICK.length > 1;
|
|
264
268
|
chatAbout('board:this-board', some ? 'the ' + names.join(', ') + ' boards' : ALL ? 'all products' : M.board.name ? 'the ' + M.board.name + ' board' : 'this board');
|
|
265
269
|
}
|
|
@@ -606,7 +610,7 @@ function drawTime(L) {
|
|
|
606
610
|
/* ── Work, one view on a desk (initiative work-one-view; pm/bd-work.js draws, this wires): the list, its view menu, the Stage cell ── */
|
|
607
611
|
let WK_MENU = null, WK_STM = null;
|
|
608
612
|
const wkMany = () => !!(M && M.board.all && (M.board.products || []).length > 1);
|
|
609
|
-
const wkProduct = (r) => r.product || (M && M.board && (M.board.product || M.board.name)) || '';
|
|
613
|
+
const wkProduct = (r) => productName(r.ws || (M && M.board && M.board.ws), r.product || (M && M.board && (M.board.product || M.board.name)) || '');
|
|
610
614
|
const wkGoalOf = (r) => { if (!GOALS) return ''; const k = (GOALS.of || {})[String(r.anchor || '')], g = k && (GOALS.goals || []).find((x) => x.key === k); return g ? g.title : ''; };
|
|
611
615
|
const wkProgOf = (r) => { const p = programOf(PGS, r.ws || (M && M.board.ws) || '', r.id); return p ? p.title || p.id : ''; };
|
|
612
616
|
function drawWork(L) {
|
|
@@ -1219,7 +1223,8 @@ async function loadGrill() {
|
|
|
1219
1223
|
function draw() {
|
|
1220
1224
|
mergeTrail();
|
|
1221
1225
|
if (!sprintSet && M.jira && M.jira.sprint) { F.chips.add('sprint'); sprintSet = true; }
|
|
1222
|
-
|
|
1226
|
+
// the Backlog switch and list (pm/bd-backlog.js) read the tasks again after each read of the board, even when a view above throws
|
|
1227
|
+
try { drawHead(); drawChips(); drawInit(); } finally { BK.sync(bkApi()); }
|
|
1223
1228
|
{ const g = $('#bdGone'), G = M.initiatives.gone || { cancelled: [], archived: [] }, n = [G.cancelled.length ? G.cancelled.length + ' cancelled' : '', G.archived.length ? G.archived.length + ' archived' : ''].filter(Boolean).join(' · ');
|
|
1224
1229
|
if (g) g.textContent = 'Cancelled and archived' + (n ? ' · ' + n : ''); } // the ⋯ menu item counts them
|
|
1225
1230
|
// an open panel follows the new read
|
|
@@ -1357,6 +1362,19 @@ function openTask(r, k) {
|
|
|
1357
1362
|
rename: (t) => taskRename({ pmPost, ws, board, uid: t.uid, ref: null, onSaved: (o) => { t.title = o.title; say('Renamed', async () => { const u = await o.undo(); if (u.ok) { t.title = u.title; load(); } return u; }); load(); } }),
|
|
1358
1363
|
}));
|
|
1359
1364
|
}
|
|
1365
|
+
/** What the Backlog (pm/bd-backlog.js) needs from this page: the products in the pick, the writes, the toast, a task's own view, a read again. */
|
|
1366
|
+
const bkApi = () => ({
|
|
1367
|
+
scope: () => (M.board.all ? (M.board.products || []).map((p) => ({ ws: p.ws, board: p.id || '', name: p.name })) : [{ ws: M.board.ws || '', board: M.board.id || '', name: M.board.product || M.board.name || '' }]),
|
|
1368
|
+
// CLASSIC (lib/classic-board.js) is the test seam of the four Board views: Work and its Backlog switch are not there
|
|
1369
|
+
post: pmPost, say, reload: () => load(), readonly: !!window.PMOS_READONLY || CLASSIC,
|
|
1370
|
+
// a row's name: a PMOS task opens in the one task view (the initiative's own), a Jira ticket in its initiative's ticket view or its Jira page
|
|
1371
|
+
openTask: (t, from) => {
|
|
1372
|
+
const r = (M.rows || []).find((x) => x.id === t.ini && x.track && (x.ws || M.board.ws) === t.ws);
|
|
1373
|
+
if (t.src === 'jira') { if (r && (r.track.tickets || []).some((k) => k.key === t.key)) openTicket(r.key, t.key, from); else if (t.url) window.open(t.url, '_blank', 'noopener'); else say('Open ' + t.key + ' in Jira.'); return; }
|
|
1374
|
+
const k = r && (r.tasks || []).find((x) => x.uid === t.id);
|
|
1375
|
+
if (r && k) openTask(r, k); else say('This task is in no initiative here. Move it to one to open it.');
|
|
1376
|
+
},
|
|
1377
|
+
});
|
|
1360
1378
|
/** A new task from the initiative view's + (the same box Home's page draws): POST /api/boards/tasks/add. → true when it was added.
|
|
1361
1379
|
* section: the stage it finishes (the Next cell's +, "Add what finishes <stage>"): the task is placed under it (POST /api/boards/tasks/edit). */
|
|
1362
1380
|
async function addTask(r, title, section, dates, name) {
|
|
@@ -21,6 +21,7 @@ import * as POP from './cozy-popup.js'; // the one popup: window.czOpenChat fo
|
|
|
21
21
|
import * as GM from './goals-model.js';
|
|
22
22
|
import * as GO from './goals-open.js';
|
|
23
23
|
import { undoToast } from './hi-pop.js';
|
|
24
|
+
import { productName, whenNames } from './scope-chip.js'; // names, not ids: the product's display name (IDPF), not its folder name
|
|
24
25
|
|
|
25
26
|
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
26
27
|
const SVG = (d, w = 18) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24"><path d="${d}"/></svg>`;
|
|
@@ -38,10 +39,11 @@ const $ = (id) => document.getElementById(id);
|
|
|
38
39
|
const body = $('glBody');
|
|
39
40
|
|
|
40
41
|
/* ── the product choice and the period ── */
|
|
42
|
+
/** A product's display name: the workspace's name (IDPF), else the name the pick or the board gave. */
|
|
43
|
+
const nm = (p) => productName(p.ws, p.name);
|
|
41
44
|
function shownPick() {
|
|
42
45
|
if (!S.P) return null;
|
|
43
|
-
|
|
44
|
-
return { ...S.P, products: S.P.products.map((p) => ({ ...p, on: p.ws === DEEP })) };
|
|
46
|
+
return { ...S.P, products: S.P.products.map((p) => ({ ...p, name: nm(p), on: DEEP ? p.ws === DEEP : p.on })) };
|
|
45
47
|
}
|
|
46
48
|
function drawPick() {
|
|
47
49
|
const P = shownPick(), host = $('glPick');
|
|
@@ -50,6 +52,7 @@ function drawPick() {
|
|
|
50
52
|
const lines = (ws) => { const x = S.list.find((p) => p.ws === ws); const n = x && x.model && x.model.okrFile ? x.model.okrFile.total : 0; return n ? n + (n === 1 ? ' key result' : ' key results') : ''; };
|
|
51
53
|
chip.onclick = (e) => { e.stopPropagation(); closeMenus(); PK.openPicker(chip, { P: shownPick(), label: 'Products', lines, note: 'One pick for Today, Work and Goals: unticking a product here also takes it off Today.', onApply: async (on) => { const r = await PK.savePick(on); if (!r.ok) undoToast(r.error, () => {}, 4000); } }); };
|
|
52
54
|
}
|
|
55
|
+
whenNames().then(() => { drawPick(); if (S.at) draw(); }).catch(() => {}); // the names arrive after the first draw
|
|
53
56
|
addEventListener('pp:changed', () => { if (DEEP) { location.assign(location.pathname); return; } S.P = null; load(); });
|
|
54
57
|
function drawPer() {
|
|
55
58
|
const x = S.list.find((p) => p.model && p.model.okrFile && p.model.okrFile.period);
|
|
@@ -87,22 +90,22 @@ function objHtml(p, o) {
|
|
|
87
90
|
}
|
|
88
91
|
function tableHtml(p) {
|
|
89
92
|
const T = p.T;
|
|
90
|
-
if (!p.model.okrFile) return `<p class="gl-none">No OKR file was found for ${esc(p
|
|
91
|
-
if (!T.objectives.length && S.filter !== 'all') return `<p class="gl-none">No key result is ${esc((GM.FILTERS.find((f) => f[0] === S.filter) || [])[1] || '').toLowerCase()} in ${esc(p
|
|
93
|
+
if (!p.model.okrFile) return `<p class="gl-none">No OKR file was found for ${esc(nm(p))}, so there is no key result to show. Goals reads the OKR file in planning/okrs/.</p>`;
|
|
94
|
+
if (!T.objectives.length && S.filter !== 'all') return `<p class="gl-none">No key result is ${esc((GM.FILTERS.find((f) => f[0] === S.filter) || [])[1] || '').toLowerCase()} in ${esc(nm(p))}.</p>`;
|
|
92
95
|
const hd = '<div class="gl-hd" role="row"><span>Objective</span><span class="gl-kh"><span>Key result</span><span>Actual / target</span><span>Left</span></span><span>Levers</span><span>Initiative</span></div>';
|
|
93
96
|
const bud = T.budgets.map((b) => `<div class="gl-ob gl-row1"><div class="gl-o"><b>Budget</b><span class="${b.over ? 'late' : ''}">${esc(b.label)}${b.share ? ' · ' + esc(b.share) : ''}</span></div><div class="gl-wide"><b>No key result: a budget that is always on</b>${b.covers ? `<span>${esc(b.covers)}</span>` : ''}</div><div class="gl-in">${b.items.map((i) => iniHtml(p, i)).join('')}</div></div>`).join('');
|
|
94
97
|
const un = T.unlinked.length ? `<div class="gl-ob gl-row1"><div class="gl-o"><b>Unlinked</b></div><div class="gl-wide"><span>${T.unlinked.length === 1 ? 'An initiative with no key result named' : T.unlinked.length + ' initiatives with no key result named'}</span></div><div class="gl-in">${T.unlinked.map((i) => iniHtml(p, i)).join('')}</div></div>` : '';
|
|
95
|
-
return `<div class="gl-card" role="table" aria-label="Goals of ${esc(p
|
|
98
|
+
return `<div class="gl-card" role="table" aria-label="Goals of ${esc(nm(p))}">${hd}${T.objectives.map((o) => objHtml(p, o)).join('')}${bud}${un}</div>`;
|
|
96
99
|
}
|
|
97
100
|
function draw() {
|
|
98
101
|
if (!S.list.length) { body.innerHTML = `<p class="gl-none">${esc(S.error ? 'Goals could not be read: ' + S.error + '.' : 'No product is ticked. Tick one in the product choice.')}</p>`; $('glNote').hidden = true; return; }
|
|
99
102
|
const today = todayIso(), many = S.list.length > 1;
|
|
100
103
|
let h = '';
|
|
101
104
|
for (const p of S.list) {
|
|
102
|
-
if (!p.model) { h += `<section class="gl-p">${many ? `<h2 class="gl-ph2">${esc(p
|
|
105
|
+
if (!p.model) { h += `<section class="gl-p">${many ? `<h2 class="gl-ph2">${esc(nm(p))}</h2>` : ''}<p class="gl-none">${esc(nm(p))} could not be read: ${esc(p.error || 'the server did not answer')}.</p></section>`; continue; }
|
|
103
106
|
p.T = GM.tableOf(p.model, today, S.filter);
|
|
104
107
|
p.ns = GM.northStarOf(p.model, p.drafts);
|
|
105
|
-
h += `<section class="gl-p" aria-label="${esc(p
|
|
108
|
+
h += `<section class="gl-p" aria-label="${esc(nm(p))}">${many ? `<h2 class="gl-ph2">${esc(nm(p))}</h2>` : ''}${p.model.okrFile ? nsHtml(p) : ''}${tableHtml(p)}</section>`;
|
|
106
109
|
}
|
|
107
110
|
body.innerHTML = h;
|
|
108
111
|
$('glNote').hidden = false;
|
|
@@ -190,7 +193,7 @@ function exportCsv() {
|
|
|
190
193
|
const lines = [['Product', 'Objective', 'Key result', 'Name', 'Actual', 'Target', 'Left', 'Waits on', 'Initiatives'].map(q).join(',')];
|
|
191
194
|
for (const p of S.list) if (p.T) for (const o of p.T.objectives) for (const k of o.krs) {
|
|
192
195
|
const ini = o.inis.flatMap((c) => c.items).filter((i) => k.moves.includes(i.id)).map((i) => i.title).join('; ');
|
|
193
|
-
lines.push([p
|
|
196
|
+
lines.push([nm(p), o.label + (o.title ? ': ' + o.title : ''), k.token, k.title, k.act, k.target, k.left, k.need, ini].map(q).join(','));
|
|
194
197
|
}
|
|
195
198
|
const a = document.createElement('a');
|
|
196
199
|
a.href = URL.createObjectURL(new Blob([lines.join('\n') + '\n'], { type: 'text/csv' }));
|
|
@@ -202,7 +205,7 @@ function hits(q) {
|
|
|
202
205
|
const s = String(q || '').toLowerCase().trim(); if (!s) return [];
|
|
203
206
|
const rows = [];
|
|
204
207
|
for (const p of S.list) if (p.model && p.model.okrFile) {
|
|
205
|
-
for (const o of p.model.okrFile.objectives) for (const k of o.krs) if ((k.token + ' ' + k.title).toLowerCase().includes(s)) rows.push({ id: 'kr:' + k.key, title: k.token + ' ' + k.title, sub: GM.objLabel(o.token) + (S.list.length > 1 ? ' · ' + p
|
|
208
|
+
for (const o of p.model.okrFile.objectives) for (const k of o.krs) if ((k.token + ' ' + k.title).toLowerCase().includes(s)) rows.push({ id: 'kr:' + k.key, title: k.token + ' ' + k.title, sub: GM.objLabel(o.token) + (S.list.length > 1 ? ' · ' + nm(p) : ''), open: () => GO.openKr(ctxOf(p.ws), k.key) });
|
|
206
209
|
}
|
|
207
210
|
return rows.length ? [{ label: 'In Goals', rows: rows.slice(0, 8) }] : [];
|
|
208
211
|
}
|
|
@@ -19,7 +19,8 @@ import { mountLivePill } from './cozy-live-pill.js';
|
|
|
19
19
|
import './cozy-viewer.js';
|
|
20
20
|
import './cozy-popup.js'; // the one popup: window.czOpenChat for the rail's chat icon, and the popup a row opens in
|
|
21
21
|
import { readPick } from './cozy-pick.js';
|
|
22
|
-
import
|
|
22
|
+
import * as SC from './scope-chip.js';
|
|
23
|
+
const { scopeChipHtml, openScope, matches: scopeMatches, narrowed, scopeWords, whenNames } = SC;
|
|
23
24
|
import { COLUMNS, FAMILIES, GROUPS, STATES, view, counts, passes, matches, aboutText, stateText, dayText, when, noteOf, hiddenText } from './library-model.js';
|
|
24
25
|
import { openItem } from './library-open.js';
|
|
25
26
|
|
|
@@ -330,12 +331,23 @@ function libHits(q) {
|
|
|
330
331
|
return list.length ? [{ label: 'In the Library', rows: list.map((x) => ({ id: x.id, title: x.name, sub: x.kindText + (aboutText(x) ? ' · ' + aboutText(x) : ''), open: () => openItem(x, { from: 'Library' }) })) }] : [];
|
|
331
332
|
}
|
|
332
333
|
|
|
334
|
+
/* Product: the one product name the scope chip gives (IDPF, not pmos-idpf; a worktree shows its product), once the names are in */
|
|
335
|
+
const productOf = (ws, raw) => (typeof SC.productName === 'function' && ws ? SC.productName(ws, raw) : raw) || raw || '';
|
|
336
|
+
function nameProducts(items) {
|
|
337
|
+
for (const x of items || []) {
|
|
338
|
+
const a = x.about || {}, ws = a.ws || (x.open && x.open.doc && x.open.doc.ws) || (x.open && x.open.proto && x.open.proto.ws) || (x.open && x.open.ws) || '';
|
|
339
|
+
if (x.productRaw == null) x.productRaw = x.product || '';
|
|
340
|
+
x.product = productOf(ws, x.productRaw);
|
|
341
|
+
if (a.ws) { if (a.productRaw == null) a.productRaw = a.product || ''; a.product = productOf(a.ws, a.productRaw); }
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
333
345
|
async function load() {
|
|
334
346
|
const [r, P] = await Promise.all([pmGet('/api/library-items').catch((e) => ({ ok: false, error: (e && e.message) || 'the server did not answer' })), readPick().catch(() => null)]);
|
|
335
347
|
S.at = Date.now(); S.P = P || S.P;
|
|
336
|
-
if (r && r.ok) { S.items = r.items || []; S.programs = r.programs || []; S.error = ''; } else { S.items = S.items || []; S.error = (r && r.error) || 'the server did not answer'; }
|
|
348
|
+
if (r && r.ok) { S.items = r.items || []; nameProducts(S.items); S.programs = r.programs || []; S.error = ''; } else { S.items = S.items || []; S.error = (r && r.error) || 'the server did not answer'; }
|
|
337
349
|
draw();
|
|
338
|
-
whenNames().then(() => { drawFilters(); draw(); }).catch(() => {});
|
|
350
|
+
whenNames().then(() => { nameProducts(S.items); drawFilters(); draw(); }).catch(() => {});
|
|
339
351
|
}
|
|
340
352
|
|
|
341
353
|
/* ── presses ── */
|
|
@@ -373,7 +373,7 @@ export function recCore(d) {
|
|
|
373
373
|
return R;
|
|
374
374
|
}
|
|
375
375
|
/* not the recording tab: the recording tab listens (rec-tab-core.js), and the press there gives the share its permission */
|
|
376
|
-
async function inTab(T, id) { goTab(T, tabUrl(id, { ws: (d.ws ? d.ws() : '') || '', go: true })); await readNotes(); return { ok: true, tab: true }; }
|
|
376
|
+
async function inTab(T, id, app) { goTab(T, tabUrl(id, { ws: (d.ws ? d.ws() : '') || '', go: true, app: app || '' })); await readNotes(); return { ok: true, tab: true }; }
|
|
377
377
|
const setHold = (id) => { HOLD = id ? { id } : null; window.__premiumHolding = HOLD; bump(); };
|
|
378
378
|
const started = () => { const r = window.__premiumRecorder || R; return r ? r.started() : null; };
|
|
379
379
|
const C = {
|
|
@@ -385,7 +385,7 @@ export function recCore(d) {
|
|
|
385
385
|
const T = ownTab() ? openTab(null) : null; // before the first await, so the browser lets the tab open
|
|
386
386
|
const made = await d.pmPost('/api/notes/new', noteBody(row));
|
|
387
387
|
if (!made || made.ok !== true) { dropTab(T); return { ok: false, error: (made && made.error) || 'The note was not made.' }; }
|
|
388
|
-
return T ? inTab(T, made.note.id) : C.resume(made.note.id);
|
|
388
|
+
return T ? inTab(T, made.note.id, row && row.app) : C.resume(made.note.id);
|
|
389
389
|
},
|
|
390
390
|
/** New meeting: an untitled note with no calendar event, listened to at once (the console's recordNew). */
|
|
391
391
|
async fresh() {
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* press brings the recording tab forward. Only the recording tab controls the meeting; the channel below carries its state, never a press.
|
|
6
6
|
*
|
|
7
7
|
* TAB, MAIN the window names: the recording tab, and the PMOS tab its links open in
|
|
8
|
-
* tabUrl(id, { ws, go })
|
|
8
|
+
* tabUrl(id, { ws, go, app }) the recording tab's address for one note; go: start listening when it opens; app: meet | zoom | other,
|
|
9
|
+
* where the Listen sheet starts (meeting-buddy)
|
|
9
10
|
* isTab() this page is the recording tab
|
|
10
11
|
* ownTab() a Record pressed on this page records in the recording tab (not on a phone, not in the recording tab;
|
|
11
12
|
* a browser under automation only when the suite asks with window.__pmRecOwnTab)
|
|
@@ -20,7 +21,9 @@ export const TAB = 'pmos-rec';
|
|
|
20
21
|
export const MAIN = 'pmos-main';
|
|
21
22
|
const CHANNEL = 'pmos-rec';
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
const APPS = ['meet', 'zoom', 'other'];
|
|
25
|
+
/** app: where the meeting is (meeting-buddy): the recording tab's Listen sheet opens on it. */
|
|
26
|
+
export const tabUrl = (id, { ws = '', go = false, app = '' } = {}) => '/premium-rec.html?note=' + encodeURIComponent(id) + (ws ? '&ws=' + encodeURIComponent(ws) : '') + (go ? '&go=1' : '') + (APPS.includes(app) ? '&app=' + app : '');
|
|
24
27
|
export const isTab = () => typeof location !== 'undefined' && /^\/premium-rec(\.html)?$/.test(location.pathname);
|
|
25
28
|
const phone = () => typeof matchMedia === 'function' && matchMedia('(max-width: 760px)').matches;
|
|
26
29
|
export function ownTab() {
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
<link rel="stylesheet" href="/pm/bd-pin-card.css" />
|
|
18
18
|
<link rel="stylesheet" href="/pm/cozy-panel.css" />
|
|
19
19
|
<link rel="stylesheet" href="/pm/bd-work.css" />
|
|
20
|
+
<link rel="stylesheet" href="/pm/bd-backlog.css" />
|
|
20
21
|
</head>
|
|
21
22
|
<body class="cz bd-page">
|
|
22
23
|
<!-- 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,27 @@
|
|
|
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" />
|
|
7
|
+
<title>PMOS · Meeting buddy</title>
|
|
8
|
+
<!-- The meeting buddy (initiative meeting-buddy; Exploring 2, "Meeting buddy and one-press start", boards 1, 2 and 4). The PMOS extension frames
|
|
9
|
+
it over a Google Meet call: /premium-buddy.html?meet=<abc-defg-hij>&mtitle=<tab title>. It can also name its meeting: ?event=<id>&date=YYYY-MM-DD.
|
|
10
|
+
Only the PM sees it. Its links open in a new tab, so the call never navigates away. pm/cozy-buddy.js draws it. -->
|
|
11
|
+
<base target="_blank" />
|
|
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-buddy.css" />
|
|
15
|
+
</head>
|
|
16
|
+
<body class="cz mb-page">
|
|
17
|
+
<main class="mb" id="mb">
|
|
18
|
+
<header class="mb-h"><i class="mb-dot" id="mbDot" aria-hidden="true"></i><b>PMOS</b><span class="mb-sm" id="mbHead">Looking for the meeting</span>
|
|
19
|
+
<button type="button" class="mb-ib" id="mbFold" aria-expanded="true" aria-label="Fold PMOS" title="Fold PMOS"><svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg></button></header>
|
|
20
|
+
<section class="mb-b" id="mbBody" aria-live="polite"></section>
|
|
21
|
+
<p class="mb-msg" id="mbMsg" role="status" hidden></p>
|
|
22
|
+
<form class="mb-ask" id="mbAsk" hidden><input type="text" id="mbQ" autocomplete="off" aria-label="Ask PMOS. Only you see this." placeholder="Ask PMOS. Only you see this." maxlength="1000" />
|
|
23
|
+
<button type="submit" class="mb-ib go" aria-label="Ask PMOS" title="Ask PMOS"><svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12l16-8-6 16-3-7z"/></svg></button></form>
|
|
24
|
+
</main>
|
|
25
|
+
<script type="module" src="/pm/cozy-buddy.js"></script>
|
|
26
|
+
</body>
|
|
27
|
+
</html>
|
package/workspace/server.js
CHANGED
|
@@ -7361,7 +7361,7 @@ async function handleRequest(req, res) {
|
|
|
7361
7361
|
res.writeHead(302, { Location: '/premium.html?onboard=1', 'Cache-Control': 'no-store' });
|
|
7362
7362
|
return res.end();
|
|
7363
7363
|
}
|
|
7364
|
-
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-goals': 'premium-goals.html', '/premium-goals.html': 'premium-goals.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' };
|
|
7364
|
+
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-goals': 'premium-goals.html', '/premium-goals.html': 'premium-goals.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', '/premium-buddy': 'premium-buddy.html', '/premium-buddy.html': 'premium-buddy.html' };
|
|
7365
7365
|
const page = capture ? 'capture.html' : Object.prototype.hasOwnProperty.call(PAGES, p) ? PAGES[p] : null;
|
|
7366
7366
|
if (page) {
|
|
7367
7367
|
// pm-os-absorb Run 2 (R25, X11): the per-launch nonce goes into the base meta line, nowhere else. no-store, so a
|
|
@@ -88,7 +88,7 @@ Procedure:
|
|
|
88
88
|
"memory" is optional: give it only when calendar is "read". Its "from" and "to" are the window you read, and every event's start is inside it. The workspace replaces the days of that window in what it remembers.
|
|
89
89
|
"places" holds at most 200 entries, each a name of at most 120 characters, only for a source that is "read". A digest has at most 5 decisions, 5 open questions and 5 goal lines, each at most 140 characters, and at most 30 digests. Write a digest only for a place with scope watch, and only for a source that is "read". Only report calendar events if calendar is "read". Only give an item a source that is "read" (or "derived"). Only use a goal id that `pmos proactive goals` listed today: the workspace refuses any other. Leave out a field you cannot fill: an empty string is worse than no field.
|
|
90
90
|
5. Run `pmos proactive brief submit --file <that file>`. If it is refused, read the reason, fix the file and submit once more. Do not work around a refusal.
|
|
91
|
-
5b. MENTIONS NOTES. Run `pmos mention list`. It prints one line per conversation, with its id. For each conversation in Your move that has no reply drafted and that you cannot draft, because it needs a number or a decision that only the PM has, run `pmos mention nodraft <id> --text "<why, one line>"`. For a conversation where something is agreed, run `pmos mention stands <id> --settled "<what is agreed>" [--open "<what is still open>"]`. When a thread holds a promise with a date ("I will send the tag by end of day"), offer to watch for it: `pmos mention watch <id> --what "<Samuel’s tag>" --text "<I’ll watch for the tag and nudge Samuel at 09:00 if it’s still missing.>"`. When a promise you watch has come, run `pmos mention landed <id> --text "<Samuel’s tag landed.>"`. When, after the ask, someone other than the PM gave the answer in the same thread and the asker accepted it or
|
|
91
|
+
5b. MENTIONS NOTES. Run `pmos mention list`. It prints one line per conversation, with its id. For each conversation in Your move that has no reply drafted and that you cannot draft, because it needs a number or a decision that only the PM has, run `pmos mention nodraft <id> --text "<why, one line>"`. For a conversation where something is agreed, run `pmos mention stands <id> --settled "<what is agreed>" [--open "<what is still open>"]`. When a thread holds a promise with a date ("I will send the tag by end of day"), offer to watch for it: `pmos mention watch <id> --what "<Samuel’s tag>" --text "<I’ll watch for the tag and nudge Samuel at 09:00 if it’s still missing.>"`. When a promise you watch has come, run `pmos mention landed <id> --text "<Samuel’s tag landed.>"`. When, after the ask, someone other than the PM gave the answer in the same thread and the asker accepted it in words ("thanks, that works", "ok, going with that") or acted on it, you are sure: run `pmos mention answered <id> --who "<their name>" --text "<their line, quoted as written>" --on <when they wrote it, ISO>`. The ask leaves Today into PMOS handled, with the line quoted and Undo. When someone else gave an answer but the asker did not accept it or move on, you are not sure: run `pmos mention looks <id> --who "<their name>" --text "<their line, quoted as written>" --on <when they wrote it, ISO>`. Only when the saved read holds that line; never for the PM's own reply (PMOS sees that from the records); not when the asker asked again after it. This closes nothing: the PM confirms with ✓ or keeps it with ✕. Write only what the saved reads say. These commands post nothing.
|
|
92
92
|
6. RECORD THE PEOPLE, only when `pmos people settings` printed `calendar names: on` and calendar is "read". For each attendee of today's meetings other than the PM, write one sighting: {"source": "calendar", "handle": {"kind": "mail", "value": "<their address>"} (or {"kind": "name", "value": "<their name>"} when there is no address), "name": "<display name>", "external": true when they are outside the PM's company, "interaction": {"date": "YYYY-MM-DD", "kind": "Meeting" (or "1:1" for two people), "text": "<the meeting title, at most 200 characters>", "pointer": "calendar · <event id or link> · <date>"}}. Skip meetings marked private, personal, confidential or HR. Put the sightings in one file {"sightings": [...]} in the scratch folder and run `pmos people record --file <that file>` once. With `calendar names: off`, skip this step and say "people: off".
|
|
93
93
|
7. Finish by saying in three lines how many goals have a step and which have none, how many priorities and worth-asking items you submitted, and which sources were not reached. Add how many people you recorded, or "people: off".
|
|
94
94
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "work-backlog: the Backlog in Work, every open task of a product in one list (lib/backlog.js, lib/routes-backlog.js, public/pm/bk-model.js, public/pm/bd-backlog.js) and PMOS taking tasks through the day run. No browser.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"backlog.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"backlog.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "The meeting buddy and the one-press start (initiative meeting-buddy, done test T1-T6): lib/meeting-focus.js callLinkOf and the caught bullet ids, pm/buddy-core.js, the Meet panel's address, Today's play icon. Pure, node.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"meeting-buddy.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"meeting-buddy.test.js": 2
|
|
8
|
+
}
|
|
9
|
+
}
|