create-pmos 0.730.0 → 0.731.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 +20 -32
- package/payload/KIT-VERSION +1 -1
- package/payload/design-system/brand/icons.json +59 -0
- 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 +19 -0
- package/workspace/design-system/brand/icons.json +59 -0
- package/workspace/guide/agent-capabilities.md +1 -0
- package/workspace/guide/cli.md +10 -0
- package/workspace/guide/initiatives-and-next-steps.md +6 -0
- package/workspace/guide/layout.md +2 -0
- package/workspace/lib/headless.js +1 -0
- package/workspace/lib/icon-check.js +280 -0
- package/workspace/lib/job-graph.js +1 -0
- package/workspace/lib/pmos-verbs.js +3 -0
- package/workspace/lib/principles-cli.js +109 -0
- package/workspace/lib/principles.js +165 -0
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-principles.js +109 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/agenda-live.js +1 -1
- package/workspace/public/pm/bd-principles.js +64 -0
- package/workspace/public/pm/bd-span.js +1 -1
- package/workspace/public/pm/bd-sprint-ds.js +1 -1
- package/workspace/public/pm/bd-sprint.js +1 -1
- package/workspace/public/pm/bd-work.js +1 -1
- package/workspace/public/pm/cozy-day-pick.js +1 -1
- package/workspace/public/pm/cozy-events-view.js +1 -1
- package/workspace/public/pm/cozy-popup.js +1 -1
- package/workspace/public/pm/cozy-rec-present.js +1 -1
- package/workspace/public/pm/goal-chat.js +1 -1
- package/workspace/public/pm/home-chat.js +1 -1
- package/workspace/public/pm/home-rec-row.js +1 -1
- package/workspace/public/pm/home-today.js +3 -3
- package/workspace/public/pm/ini-agent.js +1 -1
- package/workspace/public/pm/ini-edit.js +2 -2
- package/workspace/public/pm/ini-groups.js +1 -1
- package/workspace/public/pm/ini-versions.js +1 -1
- package/workspace/public/pm/ini-view.js +2 -2
- package/workspace/public/pm/intent.js +2 -2
- package/workspace/public/pm/okr-list.js +2 -2
- package/workspace/public/pm/pinned-views.js +1 -1
- package/workspace/public/pm/premium-board.js +2 -0
- package/workspace/public/pm/premium-insights.js +3 -3
- package/workspace/public/pm/premium-mtg-present.js +2 -2
- package/workspace/public/pm/premium-mtg-replay.js +1 -1
- package/workspace/public/pm/premium-shell.js +1 -1
- package/workspace/public/pm/premium-vw-mtg.js +1 -1
- package/workspace/public/pm/premium-vw-slides.js +3 -3
- package/workspace/public/pm/task-card.js +1 -1
- package/workspace/public/pm/wf-page.js +1 -1
- package/workspace/public/premium-board.html +2 -0
- package/workspace/public/premium-events.html +2 -2
- package/workspace/skills/principles-draft.skill +23 -0
- package/workspace/test-lists/icon-check.json +9 -0
- package/workspace/test-lists/principles.json +9 -0
|
@@ -39,7 +39,7 @@ export function recRowHtml(st, now = Date.now()) {
|
|
|
39
39
|
+ `<button type="button" class="hm-rm" data-hm-recopen="${esc(st.id)}" aria-label="${esc(st.title)}. ${word}. Open the meeting">`
|
|
40
40
|
+ `<span class="hv-mk"><span class="hr-rdot" aria-hidden="true"></span></span><span class="hm-rt"><b>${esc(st.title)}</b></span>`
|
|
41
41
|
+ `<span class="hv-st hr-rst">${word} · <span data-hr-clock>${clockOf(elapsed(st, now))}</span></span><span class="hv-xc" aria-hidden="true"></span></button>`
|
|
42
|
-
+ `<button type="button" class="hr-stop" data-hr-stop="${esc(st.id)}" aria-label="Stop the recording" title="Stop the recording"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="
|
|
42
|
+
+ `<button type="button" class="hr-stop" data-hr-stop="${esc(st.id)}" aria-label="Stop the recording" title="Stop the recording"><svg viewBox="0 0 24 24" aria-hidden="true"><rect x="6" y="6" width="12" height="12" rx="2"/></svg></button></div></div>`;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
export function mountRecRow({ notes, refresh, redraw } = {}) {
|
|
@@ -24,9 +24,9 @@ import * as LS from './load-shapes.js'; // the ring, the grey shapes and the l
|
|
|
24
24
|
export const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
25
25
|
export const P = {
|
|
26
26
|
chevR: 'M10 7l5 5-5 5', chevD: 'M7 10l5 5 5-5', chevU: 'M7 14l5-5 5 5', layers: 'M12 3l9 5-9 5-9-5zM3 13l9 5 9-5M3 17.5l9 5 9-5', filter: 'M4 6h16M7 12h10M10 18h4',
|
|
27
|
-
calendar: 'M4 5h16v15H4zM8 3v4M16 3v4M4 10h16', plus: 'M12 5v14M5 12h14', x: 'M6 6l12 12M18 6L6 18', check: 'M5
|
|
27
|
+
calendar: 'M4 5h16v15H4zM8 3v4M16 3v4M4 10h16', plus: 'M12 5v14M5 12h14', x: 'M6 6l12 12M18 6L6 18', check: 'M5 12.5l4.5 4.5L19 7.5',
|
|
28
28
|
mic: 'M12 3a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3M5 11a7 7 0 0 0 14 0M12 18v3', clock: 'M12 4a8 8 0 1 0 0 16a8 8 0 1 0 0-16M12 8v4l3 2',
|
|
29
|
-
pause: 'M8 5v14M16 5v14', stop: '
|
|
29
|
+
pause: 'M8 5v14M16 5v14', stop: 'M8 6h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z', list: 'M9 6h11M9 12h11M9 18h11', doc: 'M7 3h7l5 5v13H7zM14 3v5h5',
|
|
30
30
|
gate: 'M12 3l7 3v6c0 4-3 7-7 9-4-2-7-5-7-9V6z', flag: 'M5 21V4h11l-2 4 2 4H5', cal: 'M4 6h16v14H4zM4 10h16', pin: 'M9 4h6l-1 6 3 3H7l3-3zM12 13v7',
|
|
31
31
|
decide: 'M12 3v18M5 8l7-5 7 5', ret: 'M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3', back: 'M19 12H5M11 6l-6 6 6 6', warn: 'M12 4l9 16H3zM12 10v4M12 17v.5',
|
|
32
32
|
chat: 'M4 5h16v11H9l-5 4z', fold: 'M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zM9 4v16', prog: 'M4 5h7v5H4zM13 5h7v5h-7zM8.5 14h7v5h-7zM7.5 10v2h9v-2M12 12v2', dots: 'M5 12h.01M12 12h.01M19 12h.01', send: 'M5 12h14M13 6l6 6-6 6', ticket: 'M3 5h18v4H3zM3 11h18v4H3z',
|
|
@@ -108,7 +108,7 @@ export function kidSub(k) {
|
|
|
108
108
|
/** What Claude proposes on one row of the list (canvas XcsA1Pill): a session idle and safe to close gets the ✦ in its line and one ✓. One ✦ a row. */
|
|
109
109
|
export function kidActHtml(k) {
|
|
110
110
|
if (!(k && k.kind === 'session' && k.close && k.close.safe && k.sid)) return '';
|
|
111
|
-
return `<button type="button" class="ut-ib hv-ib hm-cls" data-hm-close="${esc(k.sid)}" aria-label="Close this session; PMOS says it is idle and safe" title="Close this session; PMOS says it is idle and safe">${svg(P.
|
|
111
|
+
return `<button type="button" class="ut-ib hv-ib hm-cls" data-hm-close="${esc(k.sid)}" aria-label="Close this session; PMOS says it is idle and safe" title="Close this session; PMOS says it is idle and safe">${svg(P.x, 16)}</button>`;
|
|
112
112
|
}
|
|
113
113
|
/** The pill's model: the most urgent state, the count and its accessible words. Nothing in the initiative: null (zero is silence). */
|
|
114
114
|
export function pillOf(r) {
|
|
@@ -28,7 +28,7 @@ import { controlHtml } from './ini-kind.js'; // W5 (boards WfA, WfB): Project
|
|
|
28
28
|
|
|
29
29
|
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
30
30
|
const SVG = (d, w = 16, sw = 1.8) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${sw}" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
|
|
31
|
-
const P = { undo: 'M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3', check: 'M5
|
|
31
|
+
const P = { undo: 'M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3', check: 'M5 12.5l4.5 4.5L19 7.5', warn: 'M12 8v5M12 16.5v.01M10.3 3.9L2.6 17.5A2 2 0 0 0 4.3 20.5h15.4a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z',
|
|
32
32
|
clock: 'M12 7.5V12l3 2M12 3.5a8.5 8.5 0 1 0 0 17a8.5 8.5 0 1 0 0-17', x: 'M6 6l12 12M18 6L6 18', right: 'M10 7l5 5-5 5',
|
|
33
33
|
flag: 'M5 21V4M5 4h11l-2 4 2 4H5', target: 'M12 3.5a8.5 8.5 0 1 0 0 17a8.5 8.5 0 1 0 0-17M12 8a4 4 0 1 0 0 8a4 4 0 1 0 0-8M12 11.5v1',
|
|
34
34
|
person: 'M12 4a3.5 3.5 0 1 0 0 7a3.5 3.5 0 1 0 0-7M5 20a7 7 0 0 1 14 0', ms: 'M12 3.5l8.5 8.5-8.5 8.5-8.5-8.5z' };
|
|
@@ -33,7 +33,7 @@ import * as JM from './jira-move.js';
|
|
|
33
33
|
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
34
34
|
const SVG = (d, w = 16, sw = 1.8) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${sw}" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
|
|
35
35
|
const P = {
|
|
36
|
-
more: 'M5 12h.01M12 12h.01M19 12h.01', plus: 'M12 5v14M5 12h14', check: 'M5
|
|
36
|
+
more: 'M5 12h.01M12 12h.01M19 12h.01', plus: 'M12 5v14M5 12h14', check: 'M5 12.5l4.5 4.5L19 7.5', down: 'M7 10l5 5 5-5', right: 'M10 7l5 5-5 5', left: 'M14 7l-5 5 5 5',
|
|
37
37
|
dia: 'M12 4l8 8-8 8-8-8z', stage: 'M12 3l9 5-9 5-9-5zM3 13l9 5 9-5', box: 'M6 5h12a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1z',
|
|
38
38
|
who: 'M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM4 21c1-4 4-6 8-6s7 2 8 6', cal: 'M4 5h16v15H4zM8 3v4M16 3v4M4 10h16', grip: 'M9 6h.01M15 6h.01M9 12h.01M15 12h.01M9 18h.01M15 18h.01',
|
|
39
39
|
open: 'M14 4h6v6M20 4l-9 9M18 14v6H4V6h6', bin: 'M5 7h14M10 7V4h4v3M7 7l1 13h8l1-13',
|
|
@@ -127,7 +127,7 @@ export function addHtml(sec, id) {
|
|
|
127
127
|
const own = sec.key || '', nm = sec.name || 'Not in a stage', D = ADD_D.get(id) || {}, to = addTo(id, own, nm);
|
|
128
128
|
return `<form class="iv-addf iv-addin" data-esc-layer data-iv-addin="${esc(own)}" data-nm="${esc(nm)}">${addBox(D.ms)}`
|
|
129
129
|
+ `<input type="text" data-iv-addinp maxlength="200" autocomplete="off" placeholder="${esc('New task in ' + to.name)}" aria-label="${esc('New task in ' + to.name)}">`
|
|
130
|
-
+ `<button type="submit" class="iv-go" aria-label="Add the task" title="Add (Enter). Esc closes.">${SVG(P.
|
|
130
|
+
+ `<button type="submit" class="iv-go" aria-label="Add the task" title="Add (Enter). Esc closes.">${SVG(P.plus, 16, 2.2)}</button></form>`
|
|
131
131
|
+ `<div class="iv-addd">${chipsHtml(id, D, to)}</div>`;
|
|
132
132
|
}
|
|
133
133
|
/** The names an owner can be: You first, then everyone who owns a task of this initiative. */
|
|
@@ -25,7 +25,7 @@ const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&':
|
|
|
25
25
|
const SVG = (d, w = 16, sw = 1.8) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${sw}" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
|
|
26
26
|
const P = {
|
|
27
27
|
send: 'M4 12l16-8-6 16-3-7zM11 13l9-9', more: 'M5 12h.01M12 12h.01M19 12h.01',
|
|
28
|
-
check: 'M5
|
|
28
|
+
check: 'M5 12.5l4.5 4.5L19 7.5', x: 'M6 6l12 12M18 6L6 18', plus: 'M12 5v14M5 12h14', tk: 'M4 7h16v3a2 2 0 0 0 0 4v3H4v-3a2 2 0 0 0 0-4z', draft: 'M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M5.6 18.4l2.8-2.8M15.6 8.4l2.8-2.8',
|
|
29
29
|
};
|
|
30
30
|
const plural = (n, one, many) => n + ' ' + (n === 1 ? one : many);
|
|
31
31
|
const LAY = new Map(); // initiative id → its layout (GET /api/initiative-layout), as the last read or write answered
|
|
@@ -21,7 +21,7 @@ import { pmPost } from './http.js';
|
|
|
21
21
|
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
22
22
|
const SVG = (d, w = 16, sw = 1.8) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${sw}" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
|
|
23
23
|
export const PV = {
|
|
24
|
-
down: 'M7 10l5 5 5-5', right: 'M10 7l5 5-5 5', check: 'M5
|
|
24
|
+
down: 'M7 10l5 5 5-5', right: 'M10 7l5 5-5 5', check: 'M5 12.5l4.5 4.5L19 7.5', plus: 'M12 5v14M5 12h14', x: 'M6 6l12 12M18 6L6 18',
|
|
25
25
|
flag: 'M5 21V4M5 4h11l-2 4 2 4H5', pen: 'M4 20h4L19 9l-4-4L4 16zM13 7l4 4', copy: 'M9 9h10v10H9zM5 15V5h10', bin: 'M5 7h14M10 7V4h4v3M7 7l1 13h8l1-13',
|
|
26
26
|
seal: 'M12 3l2.5 1.6 2.9-.2 1.1 2.7 2.5 1.6-.7 2.9.7 2.9-2.5 1.6-1.1 2.7-2.9-.2L12 21l-2.5-1.6-2.9.2-1.1-2.7-2.5-1.6.7-2.9-.7-2.9 2.5-1.6 1.1-2.7 2.9.2zM8.5 12l2.4 2.4 4.6-4.8',
|
|
27
27
|
line: 'M4 9v6M4 12h16M20 9v6', addc: 'M12 8v8M8 12h8M12 3a9 9 0 1 0 0 18 9 9 0 1 0 0-18',
|
|
@@ -56,7 +56,7 @@ if (typeof document !== 'undefined' && document.head && !document.querySelector(
|
|
|
56
56
|
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
57
57
|
const SVG = (d, w = 16, sw = 1.8) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${sw}" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
|
|
58
58
|
const P = {
|
|
59
|
-
go: 'M5 12h14M13 6l6 6-6 6', check: 'M5
|
|
59
|
+
go: 'M5 12h14M13 6l6 6-6 6', check: 'M5 12.5l4.5 4.5L19 7.5', right: 'M10 7l5 5-5 5', down: 'M7 10l5 5 5-5', plus: 'M12 5v14M5 12h14',
|
|
60
60
|
prog: 'M12 3l9 5-9 5-9-5zM3 13l9 5 9-5', doc: 'M7 3h7l5 5v13H7zM14 3v5h5', draft: 'M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M5.6 18.4l2.8-2.8M15.6 8.4l2.8-2.8',
|
|
61
61
|
skip: 'M6 7l5 5-5 5M13 7l5 5-5 5', // » a skipped stage (batch 11 item 13: the same mark as the timelines)
|
|
62
62
|
pause: 'M9 6v12M15 6v12', cal: 'M4 5h16v15H4zM8 3v4M16 3v4M4 10h16', again: 'M20 11a8 8 0 1 0-2.3 5.7M20 5v6h-6',
|
|
@@ -350,7 +350,7 @@ function tasksHtml(v0, o) {
|
|
|
350
350
|
if (ivId) ED.stagesSet(ivId, v0, v);
|
|
351
351
|
o = { ...o, lk, ivId, stageMode, addIn: !!(o.add && o.quick), jiraRead: v.jiraRead || v0.jiraRead || '' };
|
|
352
352
|
const head = `<div class="iv-th"><b>Tasks</b>${cnt ? `<span class="n">${esc(cnt)}</span>` : ''}${LK.headHtml(lk)}${VS.headHtml(v.vs)}<span class="iv-sp"></span>${T.empty ? '' : G.headHtml(v) + TV.viewBtnHtml(mode)}${VS.liveHtml(v.vs)}${add}</div>`
|
|
353
|
-
+ (o.adding ? `<form class="iv-addf" data-iv-addform><input id="ivAddTask" type="text" maxlength="160" autocomplete="off" placeholder="A task for ${esc(v.title)}${o.addHint ? esc(', ' + o.addHint) : ''}" aria-label="New task"><button type="submit" class="iv-go" aria-label="Add the task" title="Add (Enter). Esc cancels.">${SVG(P.
|
|
353
|
+
+ (o.adding ? `<form class="iv-addf" data-iv-addform><input id="ivAddTask" type="text" maxlength="160" autocomplete="off" placeholder="A task for ${esc(v.title)}${o.addHint ? esc(', ' + o.addHint) : ''}" aria-label="New task"><button type="submit" class="iv-go" aria-label="Add the task" title="Add (Enter). Esc cancels.">${SVG(P.plus, 16, 2.2)}</button></form>` : '');
|
|
354
354
|
// while Claude looks for a new initiative elsewhere, Tasks waits for what it finds (PiA1)
|
|
355
355
|
if (T.empty && PP.lookHtml(v)) return head + PP.lookHtml(v);
|
|
356
356
|
if (T.empty && !cardHasAdler(v0) && AD.prefs()['adler.amount'] === 'full') {
|
|
@@ -17,7 +17,7 @@ const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&':
|
|
|
17
17
|
const SV = (d, n = 16, w = 1.9) => `<svg viewBox="0 0 24 24" width="${n}" height="${n}" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="${w}" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
|
|
18
18
|
const P = {
|
|
19
19
|
pen: 'M4 20h4L19 9l-4-4L4 16v4zM13.5 6.5l4 4', spark: 'M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z',
|
|
20
|
-
x: 'M6 6l12 12M18 6L6 18', check: 'M5 12.5l4.5 4.5L19 7',
|
|
20
|
+
x: 'M6 6l12 12M18 6L6 18', check: 'M5 12.5l4.5 4.5L19 7.5',
|
|
21
21
|
};
|
|
22
22
|
export const FIELDS = [['want', 'What we want'], ['limits', 'Limits'], ['not', 'We will not']];
|
|
23
23
|
const NOUN = { want: 'what we want', limits: 'a limit', not: 'what we will not do' };
|
|
@@ -37,7 +37,7 @@ function propHtml(p) {
|
|
|
37
37
|
const from = [src ? 'From ' + src : p.why, day(p.at)].filter(Boolean).join(' · ');
|
|
38
38
|
return `<div class="it-pr" data-it-prop="${esc(p.id)}"><span class="st">${SV(P.spark, 16)}</span><div class="tx">${esc(say + p.text)}${from ? `<small>${esc(from)}</small>` : ''}</div>`
|
|
39
39
|
+ `<button type="button" data-it-drop="${esc(p.id)}" aria-label="Not this" title="Not this">${SV(P.x, 14, 2)}</button>`
|
|
40
|
-
+ `<button type="button" class="ok" data-it-keep="${esc(p.id)}" aria-label="Add it" title="Add it">${SV(
|
|
40
|
+
+ `<button type="button" class="ok" data-it-keep="${esc(p.id)}" aria-label="Add it" title="Add it">${SV('M12 5v14M5 12h14', 16, 2.4)}</button></div>`;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export function intentHtml(x, o = {}) {
|
|
@@ -25,11 +25,11 @@ const r2 = (v) => Math.round(v * 100) / 100;
|
|
|
25
25
|
/* the icons of the rows and drafts (the frames' set: 24 × 24, stroke 1.8) */
|
|
26
26
|
export const P = {
|
|
27
27
|
spark: 'M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z', alert: 'M12 4l9 16H3zM12 10v4M12 17v.5', chk: 'M5 12l5 5 9-10',
|
|
28
|
-
checks: 'M2 12l5 5 9-10M9 17l1 1 11-12', x: 'M6 6l12 12M18 6L6 18', pen: 'M4 20h4L19 9l-4-4L4
|
|
28
|
+
checks: 'M2 12l5 5 9-10M9 17l1 1 11-12', x: 'M6 6l12 12M18 6L6 18', pen: 'M4 20h4L19 9l-4-4L4 16v4zM13.5 6.5l4 4', plug: 'M9 3v5M15 3v5M6 8h12v3a6 6 0 0 1-12 0zM12 17v4',
|
|
29
29
|
ticket: 'M4 7h16v3a2 2 0 0 0 0 4v3H4v-3a2 2 0 0 0 0-4z', msg: 'M4 5h16v11H9l-5 4z', flag: 'M6 21V4M6 4h11l-2 4 2 4H6', book: 'M5 4h11a3 3 0 0 1 3 3v13H8a3 3 0 0 1-3-3zM5 17a3 3 0 0 1 3-3h11',
|
|
30
30
|
user: 'M12 12a4 4 0 1 0 0-8a4 4 0 1 0 0 8M4 21a8 8 0 0 1 16 0', chart: 'M4 20V10M10 20V4M16 20v-8M22 20H2', clock: 'M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18M12 7v5l3 2',
|
|
31
31
|
down: 'M6 9l6 6 6-6', list: 'M9 6h11M9 12h11M9 18h11M4.5 6h.01M4.5 12h.01M4.5 18h.01', tree: 'M9 3h6v5H9zM3 16h6v5H3zM15 16h6v5h-6zM12 8v4M6 16v-4h12v4',
|
|
32
|
-
bell: 'M6 16V11a6 6 0 0 1 12 0v5l2 2H4zM10 21h4', quiet: 'M6 16V11a6 6 0 0 1 9.5-4.9M18 11v5l2 2H8M4 4l16 16', undo: 'M9 14L4 9l5-5M4
|
|
32
|
+
bell: 'M6 16V11a6 6 0 0 1 12 0v5l2 2H4zM10 21h4', quiet: 'M6 16V11a6 6 0 0 1 9.5-4.9M18 11v5l2 2H8M4 4l16 16', undo: 'M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3',
|
|
33
33
|
};
|
|
34
34
|
export const SV = (d, s = 18) => `<svg viewBox="0 0 24 24" width="${s}" height="${s}" aria-hidden="true"><path d="${d}"/></svg>`;
|
|
35
35
|
|
|
@@ -104,7 +104,7 @@ export function dismiss(store, sig) {
|
|
|
104
104
|
/* ── markup: design-system parts only ── */
|
|
105
105
|
const icon = (d) => `<svg class="pm-ic" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="${d}"/></svg>`;
|
|
106
106
|
const PIN = 'M9 4h6l-1 6 3 3v2H7v-2l3-3zM12 15v5';
|
|
107
|
-
const X = '
|
|
107
|
+
const X = 'M6 6l12 12M18 6L6 18';
|
|
108
108
|
const YES = 'M5 12.5l4.5 4.5L19 7.5';
|
|
109
109
|
const STAR = '<svg class="pm-ic pm-star" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z"/></svg>';
|
|
110
110
|
|
|
@@ -69,6 +69,7 @@ import * as BK from './bd-backlog.js';
|
|
|
69
69
|
import * as ST from './bd-stands.js'; // Where it stands, its Suggestion and the Next milestones line (initiative work-design-system-blocks, WorkDS) // the Backlog beside Initiatives in Work: every task in one list (initiative work-backlog)
|
|
70
70
|
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
|
|
71
71
|
import * as STRAT from './bd-strategy.js'; // the product's strategy in five lines above the initiatives (bet A458)
|
|
72
|
+
import * as PRIN from './bd-principles.js'; // the product's principles drafted from its decisions, below the strategy (bet A352)
|
|
72
73
|
import * as SWN from './cozy-status-when.js'; // the day a status move really happened, in the toast (round 3 point 18)
|
|
73
74
|
|
|
74
75
|
const VIEW_KEY = 'pmos.board.view', PVIEW_KEY = 'pmos.board.pview', SPAN_KEY = 'pmos.board.span', GROUPING_KEY = 'pmos.board.grouping';
|
|
@@ -1448,6 +1449,7 @@ async function load() {
|
|
|
1448
1449
|
M = r.model; readTries = 0; jiraReading = false; holdNames(); draw();
|
|
1449
1450
|
readChanges();
|
|
1450
1451
|
STRAT.refresh($('#cStrat'), { ws: M.board.ws || null, board: M.board.id || null, single: !ALL, say });
|
|
1452
|
+
PRIN.refresh($('#cPrin'), { ws: M.board.ws || null, single: !ALL, say });
|
|
1451
1453
|
focusOnce(); programOnce(); newOnce(); loadOthers(); loadWorkflows();
|
|
1452
1454
|
if (r.stale) setTimeout(load, 2000); // a press is still being derived: ask again
|
|
1453
1455
|
else { loadTrail(); loadGrill(); }
|
|
@@ -85,11 +85,11 @@ mountPanels({ page: document.getElementById('stage'), key: 'intel', sources: IP2
|
|
|
85
85
|
|
|
86
86
|
const SV = (d, sw) => `<svg viewBox="0 0 24 24" aria-hidden="true"${sw ? ` stroke-width="${sw}"` : ''}><path d="${d}"/></svg>`;
|
|
87
87
|
const I = {
|
|
88
|
-
doc: 'M6 3h9l4 4v14H6zM14 3v5h5M9 13h6M9 17h4', pin: 'M9 3h6l-1 6 4 3v2H6v-2l4-3zM12 14v7', chk: 'M5
|
|
88
|
+
doc: 'M6 3h9l4 4v14H6zM14 3v5h5M9 13h6M9 17h4', pin: 'M9 3h6l-1 6 4 3v2H6v-2l4-3zM12 14v7', chk: 'M5 12.5l4.5 4.5L19 7.5', x: 'M6 6l12 12M18 6L6 18',
|
|
89
89
|
more: 'M5 12h.01M12 12h.01M19 12h.01', home: 'M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6h-6v6H4a1 1 0 0 1-1-1z', next: 'M9 6l6 6-6 6', plus: 'M12 5v14M5 12h14',
|
|
90
90
|
spark: 'M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z', up: 'M12 19V5M6 11l6-6 6 6', grip: 'M9 6h.01M15 6h.01M9 12h.01M15 12h.01M9 18h.01M15 18h.01',
|
|
91
91
|
chart: 'M4 20V10M10 20V4M16 20v-8M22 20H2', ext: 'M14 4h6v6M20 4l-9 9M18 14v5H5V6h5', down: 'M7 10l5 5 5-5', pen: 'M4 20h4L19 9l-4-4L4 16zM13 7l4 4',
|
|
92
|
-
pause: 'M9 5v14M15 5v14', play: 'M7 5l12 7-12 7z', undo: 'M9 14L4 9l5-5M4
|
|
92
|
+
pause: 'M9 5v14M15 5v14', play: 'M7 5l12 7-12 7z', undo: 'M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3',
|
|
93
93
|
};
|
|
94
94
|
const byKey = (k) => (PF && PF.charts[k]) || (M && (M.charts || []).find((c) => c.key === k)) || null;
|
|
95
95
|
const savedDash = () => (M.dashboards || []).filter((d) => d.saved);
|
|
@@ -498,7 +498,7 @@ function drawStrip() {
|
|
|
498
498
|
// "n of N" with ‹ ›: each arrow names the finding it goes to (data-ins), so a press lands on that one
|
|
499
499
|
if (open.length > 1) {
|
|
500
500
|
const at = open.indexOf(insIdx), prev = open[(at - 1 + open.length) % open.length], next = open[(at + 1) % open.length];
|
|
501
|
-
$('#insPg').innerHTML = `<span class="pm-meta" id="insOf">${at + 1} of ${open.length}</span><button type="button" class="pm-btn" data-ins="${prev}" aria-label="Previous finding" title="Previous finding">${SV('M15 6l-6 6 6 6')}</button><button type="button" class="pm-btn" data-ins="${next}" aria-label="Next finding" title="Next finding">${SV('
|
|
501
|
+
$('#insPg').innerHTML = `<span class="pm-meta" id="insOf">${at + 1} of ${open.length}</span><button type="button" class="pm-btn" data-ins="${prev}" aria-label="Previous finding" title="Previous finding">${SV('M15 6l-6 6 6 6')}</button><button type="button" class="pm-btn" data-ins="${next}" aria-label="Next finding" title="Next finding">${SV('M9 6l6 6-6 6')}</button>`;
|
|
502
502
|
}
|
|
503
503
|
if (f.impact && f.impact.url) act.insertAdjacentHTML('beforeend', `<a class="pm-btn" href="${esc(f.impact.url)}"${/^https:/i.test(f.impact.url) ? ' target="_blank" rel="noopener noreferrer"' : ''} aria-label="Open the source: ${esc(f.impact.label)}" title="Open the source">${SV(I.open || 'M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5')}</a>`);
|
|
504
504
|
}
|
|
@@ -48,7 +48,7 @@ const HINT = {
|
|
|
48
48
|
live: 'It stays live: click and type in the audience window; the call sees the same · M switches',
|
|
49
49
|
none: 'M switches material',
|
|
50
50
|
};
|
|
51
|
-
const ICO = { prev: 'M15 6l-6 6 6 6', next: 'M9 6l6 6-6 6', plus: 'M12 5v14M5 12h14', minus: 'M5 12h14', x: 'M6 6l12 12M18 6L6 18', chev: 'M7 10l5 5 5-5',
|
|
51
|
+
const ICO = { stop: 'M8 6h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z', prev: 'M15 6l-6 6 6 6', next: 'M9 6l6 6-6 6', plus: 'M12 5v14M5 12h14', minus: 'M5 12h14', x: 'M6 6l12 12M18 6L6 18', chev: 'M7 10l5 5 5-5',
|
|
52
52
|
deck: 'M4 5h16v11H4zM12 16v4M8 20h8', doc: 'M7 3h7l5 5v13H7zM14 3v5h5', image: 'M4 4.5h16v15H4zM9 10a1.6 1.6 0 1 0 0-.01M20 16l-5-5-8 8',
|
|
53
53
|
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', share: 'M3 4h18v12H3zM10 8.5l4 2.5-4 2.5zM8 20h8M12 16v4', file: 'M7 3h7l5 5v13H7zM14 3v5h5' };
|
|
54
54
|
const ic = (k, w = 18) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24"><path d="${ICO[k]}"/></svg>`;
|
|
@@ -170,7 +170,7 @@ export function presentHtml(V, slideHtml = () => '', deck = null) {
|
|
|
170
170
|
const share = `<button type="button" class="vzx-share" data-x="share" data-k="${esc(V.share)}" title="PMOS opened a window with the stage only. Your call app shares it: press Share there and pick “Audience · ${esc(V.meeting)}”.">${ic('share', 15)}${esc(V.shareText)}</button>`;
|
|
171
171
|
const bar = V.used != null ? `<svg class="vzx-used" aria-hidden="true" width="100%" height="3"><rect width="100%" height="3" class="vzx-bg"/><rect width="${(V.used * 100).toFixed(1)}%" height="3" class="vzx-fg${V.late ? ' late' : ''}"/></svg>` : '';
|
|
172
172
|
return `<div class="vzx-top"><span class="vzx-rec"${V.rec ? '' : ' hidden'} aria-hidden="true"></span><b>${esc(V.meeting)} · presenting</b>${mat}<span class="vzx-mut" data-x-clock>${esc(meta)}</span><span class="vzx-sp"></span>${share}`
|
|
173
|
-
+ `<button type="button" class="vzx-stop" data-x="end" aria-label="Stop presenting (Esc)" title="Stop presenting (Esc)">${ic('
|
|
173
|
+
+ `<button type="button" class="vzx-stop" data-x="end" aria-label="Stop presenting (Esc)" title="Stop presenting (Esc)">${ic('stop', 17)}</button>${bar}</div>`
|
|
174
174
|
+ `<section class="vzx-stage" data-kind="${m ? m.kind : 'none'}">${stageHtml(V, slideHtml)}${stopsHtml(V, slideHtml, deck)}</section>`
|
|
175
175
|
+ `<aside class="vzx-side">${sideHtml(V, slideHtml, deck)}</aside>`
|
|
176
176
|
+ `<p class="vzx-foot">${esc(ONLY_YOU)} ${esc(V.hint)}</p>${menuHtml(V)}`;
|
|
@@ -202,7 +202,7 @@ export function wordPopHtml(heard, sug, P) {
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
/* ── html (pure) ── */
|
|
205
|
-
const P = { play: 'M8 5v14l11-7z', pause: 'M8 5h3v14H8zM13 5h3v14h-3z', big: 'M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7', chev: '
|
|
205
|
+
const P = { play: 'M8 5v14l11-7z', pause: 'M8 5h3v14H8zM13 5h3v14h-3z', big: 'M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7', chev: 'M9 6l6 6-6 6', prev: 'M15 6l-6 6 6 6', chk: 'M5 12l5 5 9-10', task: 'M5 12l4 4L19 6', x: 'M6 6l12 12M18 6L6 18', bin: 'M5 7h14M10 7V4h4v3M7 7l1 13h8l1-13',
|
|
206
206
|
box: 'M5 5h14v14H5z', ask: 'M9.2 9.2a2.8 2.8 0 1 1 3.9 2.6c-.7.3-1.1 1-1.1 1.7v.5M12 17.2v.01', pen: 'M4 20h4L19 9l-4-4L4 16zM13.5 6.5l4 4', no: 'M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM5.6 5.6l12.8 12.8', more: 'M5 12h.01M12 12h.01M19 12h.01',
|
|
207
207
|
caps: 'M4 6h16v12H4zM4 16l4.5-4.5 4 4 3-3L20 17M9 9.5h.01', chaps: 'M9 6h11M9 12h11M9 18h11M4.5 6h.01M4.5 12h.01M4.5 18h.01', undo: 'M9 14L4 9l5-5M4 9h9a6 6 0 0 1 0 12h-3' };
|
|
208
208
|
const ic = (k, w = 16, cls = '') => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24"${cls ? ` class="${cls}"` : ''}><path d="${P[k]}"/></svg>`;
|
|
@@ -871,7 +871,7 @@ export function crumbHtml(o) {
|
|
|
871
871
|
const menu = '<div id="crMenu" class="crmenu" role="menu" hidden></div>';
|
|
872
872
|
// an initiative: a round back button to its board, then one pill with its name and the switcher; a board page: the page, the board and its switcher
|
|
873
873
|
const left = o.ini
|
|
874
|
-
? `<button id="crBoard" class="glass round crback" aria-label="Back to ${esc(o.board)}" title="Back to ${esc(o.board)}"><svg class="i" viewBox="0 0 24 24"><path d="
|
|
874
|
+
? `<button id="crBoard" class="glass round crback" aria-label="Back to ${esc(o.board)}" title="Back to ${esc(o.board)}"><svg class="i" viewBox="0 0 24 24"><path d="M19 12H5M11 6l-6 6 6 6"/></svg></button><nav class="crumb" aria-label="Where you are"><span id="crIni" aria-current="page">${esc(o.ini)}</span>${chev('crSw2', 'Switch initiative', o.siblings && o.siblings.length > 1)}${menu}</nav>`
|
|
875
875
|
: `<nav class="crumb" aria-label="Where you are">${o.page ? `<span class="crpg">${esc(o.page)}</span>` : ''}<button id="crBoard" aria-current="page" disabled>${esc(o.board)}</button>${chev('crSw', 'Switch board', o.boards && o.boards.length > 1)}${menu}</nav>`;
|
|
876
876
|
return `<div class="where">${left}</div>`;
|
|
877
877
|
}
|
|
@@ -298,7 +298,7 @@ const SV = { link: '<path d="M10 14a4 4 0 0 0 6 0l3-3a4 4 0 0 0-6-6l-1 1M14 10a4
|
|
|
298
298
|
prod: '<path d="M5 20V11M12 20V5M19 20v-6"/>', ticket: '<path d="M4 7h16v4a2 2 0 0 0 0 4v4H4v-4a2 2 0 0 0 0-4z"/>', warn: '<path d="M12 4l9 16H3zM12 10v4M12 17v.01"/>',
|
|
299
299
|
rec: '<circle cx="12" cy="12" r="5"/>', star: '<path d="M12 3.8l2.5 5.2 5.7.8-4.1 4 1 5.7L12 16.8l-5.1 2.7 1-5.7-4.1-4 5.7-.8z"/>',
|
|
300
300
|
img: '<path d="M4 4.5h16v15H4zM9 10a1.6 1.6 0 1 0 0-.01M20 16l-5-5-8 8"/>', up: '<path d="M12 16V4M7 9l5-5 5 5M5 20h14"/>',
|
|
301
|
-
tab: '<path d="M14 4h6v6M20 4l-8 8M18 14v6H4V6h6"/>', present: '<path d="M3 4h18v12H3zM10 8.5l4 2.5-4 2.5zM8 20h8M12 16v4"/>', undo: '<path d="M9 14L4 9l5-5M4
|
|
301
|
+
tab: '<path d="M14 4h6v6M20 4l-8 8M18 14v6H4V6h6"/>', present: '<path d="M3 4h18v12H3zM10 8.5l4 2.5-4 2.5zM8 20h8M12 16v4"/>', undo: '<path d="M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3"/>' };
|
|
302
302
|
const svg = (k, w, extra) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24"${extra || ''}>${SV[k]}</svg>`;
|
|
303
303
|
/* bars split by weight (live topics): an SVG, so each length is an attribute and not an inline style */
|
|
304
304
|
function weightBar(cls, parts) {
|
|
@@ -22,8 +22,8 @@ const esc = D.esc;
|
|
|
22
22
|
const ICO = { undo: 'M9 14 4 9l5-5M4 9h11a5 5 0 0 1 0 10h-3', redo: 'm15 14 5-5-5-5M20 9H9a5 5 0 0 0 0 10h3', txt: 'M5 6V4h14v2M12 4v16M9 20h6',
|
|
23
23
|
img: 'M4 5h16v14H4zM4 16l5-5 4 4 2-2 5 5M15 9h.01', chart: 'M4 20V4M4 20h16M8 16v-5M12 16V8M16 16v-3', tbl: 'M4 5h16v14H4zM4 10h16M4 15h16M10 5v14',
|
|
24
24
|
shape: 'M5 5h14v14H5z', lay: 'M4 4h16v16H4zM4 9h16M10 9v11', pal: 'M12 3a9 9 0 1 0 0 18c1 0 1.5-.8 1.5-1.6 0-1.3 1-1.9 2-1.9H18a3 3 0 0 0 3-3A9 9 0 0 0 12 3zM7.5 11h.01M10 7h.01M15 7h.01',
|
|
25
|
-
play: 'M8 5v14l11-7z', save: 'M5 4h11l3 3v13H5zM8 4v5h7V4M8 20v-6h8v6', dup: 'M8 8h11v11H8zM5 15V5h10', trash: 'M5 7h14M10
|
|
26
|
-
lt: 'm15 6-6 6 6 6', rt: 'm9 6 6 6-6 6', up: 'm6 14 6-6 6 6', down: 'm6 10 6 6 6-6', plus: 'M12 5v14M5 12h14', x: 'M6 6l12 12M18 6 6 18', front: 'M8 8h11v11H8zM5 5h9v2M5 5v9h2', back: 'M5 5h11v11H5zM10 19h9V10',
|
|
25
|
+
play: 'M8 5v14l11-7z', save: 'M5 4h11l3 3v13H5zM8 4v5h7V4M8 20v-6h8v6', dup: 'M8 8h11v11H8zM5 15V5h10', trash: 'M5 7h14M10 7V4h4v3M7 7l1 13h8l1-13',
|
|
26
|
+
lt: 'm15 6-6 6 6 6', rt: 'm9 6 6 6-6 6', up: 'm6 14 6-6 6 6', down: 'm6 10 6 6 6-6', plus: 'M12 5v14M5 12h14', stop: 'M8 6h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z', x: 'M6 6l12 12M18 6 6 18', front: 'M8 8h11v11H8zM5 5h9v2M5 5v9h2', back: 'M5 5h11v11H5zM10 19h9V10',
|
|
27
27
|
al: 'M4 6h16M4 12h10M4 18h14', ac: 'M4 6h16M7 12h10M5 18h14', ar: 'M4 6h16M10 12h10M6 18h14', ul: 'M9 6h11M9 12h11M9 18h11M5 6h.01M5 12h.01M5 18h.01' };
|
|
28
28
|
const I = (k) => `<svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="${ICO[k]}"/></svg>`;
|
|
29
29
|
const tb = (c, label, ic, extra = '') => `<button type="button" class="sl-b" data-c="${c}" aria-label="${esc(label)}" title="${esc(label)}"${extra}>${I(ic)}</button>`;
|
|
@@ -85,7 +85,7 @@ export function present(deck, ws, start, opt = {}) {
|
|
|
85
85
|
const bar = `<div class="sl-prb"><b>${esc(deck.title)}</b><span class="sl-pk" data-pt title="Time since you started">${mmss(Math.floor((Date.now() - P.t0) / 1000))}</span><button type="button" class="sl-b sl-pd" data-c="tm" aria-label="Restart the timer" title="Restart the timer">${I('undo')}</button><span class="sl-gap"></span>`
|
|
86
86
|
+ `<button type="button" class="sl-b sl-bl sl-pd" data-c="win" title="A second window with the slide only, to share or put on the room's screen">${I('front')}<span>Audience window</span></button>`
|
|
87
87
|
+ `<button type="button" class="sl-b sl-bl sl-pd" data-c="kind" aria-pressed="${P.kind === 'aud'}">${I(P.kind === 'aud' ? 'lay' : 'play')}<span>${P.kind === 'aud' ? 'Presenter view' : 'Slides only'}</span></button>`
|
|
88
|
-
+ `<button type="button" class="sl-b sl-pd" data-c="end" aria-label="Stop presenting" title="Stop presenting (Escape)">${I('
|
|
88
|
+
+ `<button type="button" class="sl-b sl-pd" data-c="end" aria-label="Stop presenting" title="Stop presenting (Escape)">${I('stop')}</button></div>`;
|
|
89
89
|
const cur = `<div class="sl-pslot"><div class="sl-pbox" data-c="adv">${slideHtml(s, deck.theme, ws, false)}</div></div>`;
|
|
90
90
|
o.dataset.k = P.kind;
|
|
91
91
|
o.innerHTML = P.kind === 'aud' ? `${bar}${cur}${nav()}`
|
|
@@ -35,7 +35,7 @@ const SICON = {
|
|
|
35
35
|
const I = {
|
|
36
36
|
cal: '<rect x="4" y="5" width="16" height="15" rx="3"/><path d="M8 3v4M16 3v4M4 10h16"/>',
|
|
37
37
|
folder: '<path d="M4 7a2 2 0 0 1 2-2h4l2 2h6a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z"/>',
|
|
38
|
-
move: '<path d="M7 7h11l-3-3M17 17H6l3 3"/>', chev: '<path d="M10 7l5 5-5 5"/>', prev: '<path d="
|
|
38
|
+
move: '<path d="M7 7h11l-3-3M17 17H6l3 3"/>', chev: '<path d="M10 7l5 5-5 5"/>', prev: '<path d="M15 6l-6 6 6 6"/>', next: '<path d="M9 6l6 6-6 6"/>',
|
|
39
39
|
clear: '<path d="M6 6l12 12M18 6L6 18"/>', tick: '<path d="M20 6 9 17l-5-5"/>', user: '<circle cx="12" cy="8.5" r="3.5"/><path d="M5 20a7 7 0 0 1 14 0"/>',
|
|
40
40
|
flag: '<path d="M6 21V4M6 4h11l-2 4 2 4H6"/>', drag: '<path d="M12 3v18M3 12h18M12 3l-3 3M12 3l3 3M12 21l-3-3M12 21l3-3M3 12l3-3M3 12l3 3M21 12l-3-3M21 12l-3 3"/>',
|
|
41
41
|
dia: '<path d="M12 4l8 8-8 8-8-8z"/>',
|
|
@@ -29,7 +29,7 @@ const PHONE = 760;
|
|
|
29
29
|
const isPhone = () => innerWidth <= PHONE;
|
|
30
30
|
const CHAT_KEY = 'pmos.wf.chat';
|
|
31
31
|
const store = { get(k) { try { return localStorage.getItem(k); } catch { return null; } }, set(k, v) { try { if (v) localStorage.setItem(k, v); else localStorage.removeItem(k); } catch { /* a private window */ } } };
|
|
32
|
-
const DRAG = 'M9 6h.01M15 6h.01M9 12h.01M15 12h.01M9 18h.01M15 18h.01', PLUS = 'M12 5v14M5 12h14', BRANCH = ICON.branch, OK = 'M5
|
|
32
|
+
const DRAG = 'M9 6h.01M15 6h.01M9 12h.01M15 12h.01M9 18h.01M15 18h.01', PLUS = 'M12 5v14M5 12h14', BRANCH = ICON.branch, OK = 'M5 12.5l4.5 4.5L19 7.5';
|
|
33
33
|
|
|
34
34
|
/* S.list: [wf + { count }] | null while reading; S.sel: the picked id, 'new' for New workflow; S.edit: a draft opened by hand (not saved yet) */
|
|
35
35
|
const S = { list: null, sel: null, draft: null, edit: null, err: '', msg: '', renaming: false, renErr: '', busy: false, pop: null, poll: 0, phoneOpen: false, want: null };
|
|
@@ -60,6 +60,8 @@
|
|
|
60
60
|
|
|
61
61
|
<!-- the product's strategy in five lines (pm/bd-strategy.js, bet A458): above the initiatives on a Board that shows one product -->
|
|
62
62
|
<section class="bd-sec" id="cStrat" aria-label="Strategy" hidden></section>
|
|
63
|
+
<!-- the product's principles drafted from its decisions (pm/bd-principles.js, bet A352): below the strategy, one product only -->
|
|
64
|
+
<section class="bd-sec" id="cPrin" aria-label="Principles" hidden></section>
|
|
63
65
|
<section class="bd-sec" id="cIni" aria-labelledby="hIni">
|
|
64
66
|
<h2 class="vh" id="hIni">Initiatives</h2>
|
|
65
67
|
<div id="bdShowing" hidden></div>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<div class="evp-scope" id="evpScope"></div>
|
|
27
27
|
<p class="evp-dayf pm-chip" id="evpDay" hidden>Only <b></b><button type="button" class="evp-ib pm-btn" data-evp-clear aria-label="Show every day" title="Show every day"><svg class="pm-ic" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M6 6l12 12M18 6L6 18"/></svg></button></p>
|
|
28
28
|
<span class="evp-sp"></span>
|
|
29
|
-
<button type="button" class="evp-ib pm-btn" data-evp-search aria-label="Search" title="Search"><svg class="pm-ic" 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="M11 4a7 7 0 1 0 0
|
|
29
|
+
<button type="button" class="evp-ib pm-btn" data-evp-search aria-label="Search" title="Search"><svg class="pm-ic" 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="M11 4a7 7 0 1 0 0 14a7 7 0 1 0 0-14M20 20l-4-4"/></svg></button>
|
|
30
30
|
<button type="button" class="evp-ib evp-add pm-btn" data-evp-add aria-label="Add your own date" title="Add your own date"><svg class="pm-ic" 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="M12 5v14M5 12h14"/></svg></button>
|
|
31
31
|
<span class="evp-mw">
|
|
32
32
|
<button type="button" class="evp-ib pm-btn" data-evp-more aria-haspopup="menu" aria-expanded="false" aria-controls="evpMenu" aria-label="More" title="More"><svg class="pm-ic" 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="M5 12h.01M12 12h.01M19 12h.01"/></svg></button>
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
<form class="evp-new" id="evpAdd" hidden aria-label="Your own date">
|
|
44
44
|
<input class="pm-input" name="what" type="text" placeholder="What, for example: Call Rina about the contract" aria-label="What" autocomplete="off" />
|
|
45
45
|
<input class="pm-input" name="when" type="date" aria-label="When" />
|
|
46
|
-
<button type="submit" class="evp-ib evp-yes pm-btn primary" aria-label="Add it" title="Add it"><svg class="pm-ic" 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="
|
|
46
|
+
<button type="submit" class="evp-ib evp-yes pm-btn primary" aria-label="Add it" title="Add it"><svg class="pm-ic" 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="M12 5v14M5 12h14"/></svg></button>
|
|
47
47
|
</form>
|
|
48
48
|
<p class="evp-note small" id="evpNote" role="status" hidden></p>
|
|
49
49
|
<div id="evpHid"></div>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: principles-draft
|
|
3
|
+
label: "Draft the product's principles (once, from its decisions)"
|
|
4
|
+
description: "Draft 4 to 6 principles for this product from its past decisions, each citing the decisions it came from. Each one waits on the Board until the PM keeps or drops it."
|
|
5
|
+
run: agent
|
|
6
|
+
agent: claude
|
|
7
|
+
output:
|
|
8
|
+
- Principles
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
/principles-draft — draft the PRINCIPLES of THIS product from its past decisions. A principle is a rule the team already decides by, said in one line ("Simple over configurable", "Every change is reversible"). The PM keeps or drops each one on the Board. Work only from what you can read here.
|
|
12
|
+
|
|
13
|
+
Rules that always hold:
|
|
14
|
+
1. ONE KIND OF WRITE. Your only write is `pmos principles draft` (step 3), once per principle. Write no file. Send, post or share nothing.
|
|
15
|
+
2. CITED. Every principle cites 1 to 5 decisions it came from, by the ids `pmos principles sources` lists. A principle that only one decision shows is weak; prefer a pattern that 2 or more decisions share.
|
|
16
|
+
3. NOTHING INVENTED. If the decisions show no clear pattern, draft fewer. Two true principles are correct; six guessed ones are not.
|
|
17
|
+
4. LIGHT. Do not copy message bodies, tokens or credentials.
|
|
18
|
+
|
|
19
|
+
Procedure:
|
|
20
|
+
1. Run `pmos principles sources` for the decisions you may cite, and `pmos principles list --all` for the principles already kept, waiting or dropped. Do not draft one again that is already there, even in other words.
|
|
21
|
+
2. Read the decisions that need more than their title (DECISIONS.md, its ADRs, `pmos decisions show <id>`). Find the trade-offs the product makes again and again.
|
|
22
|
+
3. For each pattern, run once: `pmos principles draft --text "<the principle, one line, at most 140 characters>" --why "<the pattern, one line: what these decisions chose and what they gave up>" --source <id> --source <id>`. Draft 4 to 6 in all. A refused draft says why: fix it or leave it out. `dropped` means the PM dropped it before: leave it out.
|
|
23
|
+
4. End with one line: how many principles you drafted. If the decisions hold no pattern, draft nothing and say so in one line.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "initiative icon-consistency-check (bet A414): one icon per action, and the check that lists a control drawing its action another way (pure, scratch git repo, and PMOS's own pages; no network).",
|
|
3
|
+
"modules": [
|
|
4
|
+
"icon-check.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"icon-check.test.js": 3
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "A product's principles drafted from its past decisions, each citing them, kept or dropped on the Board (bet A352, done test planning/done-tests/product-principles-draft.md C1-C8). Pure checks and the routes in process. No connector, model or network.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"principles.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"principles.test.js": 2
|
|
8
|
+
}
|
|
9
|
+
}
|