create-pmos 0.829.0 → 0.831.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 +149 -49
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/briefing-premium-board-test.js +1 -1
- package/workspace/briefing-premium-insights-test.js +1 -1
- package/workspace/changelog.json +148 -22
- package/workspace/guide/agent-capabilities.md +1 -1
- package/workspace/guide/backlog.md +12 -1
- package/workspace/guide/cli.md +20 -1
- package/workspace/guide/home.md +1 -1
- package/workspace/guide/layout.md +3 -0
- package/workspace/lib/anchor-id.js +226 -0
- package/workspace/lib/artefacts-cli.js +25 -1
- package/workspace/lib/code-map.js +8 -2
- package/workspace/lib/factory-floor.js +16 -8
- package/workspace/lib/features.json +14 -13
- package/workspace/lib/initiative-cli.js +67 -2
- package/workspace/lib/lessons-draft.js +242 -0
- package/workspace/lib/people-cli.js +9 -1
- package/workspace/lib/people-prep.js +140 -0
- package/workspace/lib/pmos-verbs.js +2 -0
- package/workspace/lib/prefs-sync.js +1 -1
- package/workspace/lib/print-cli.js +49 -0
- package/workspace/lib/print-pdf.js +96 -0
- package/workspace/lib/review-reasons.js +121 -9
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-c3-strategy.js +2 -1
- package/workspace/lib/routes-proposals.js +2 -2
- package/workspace/lib/routes-report-design.js +3 -1
- package/workspace/lib/routes-skill-map.js +39 -0
- package/workspace/lib/routes-strategy-card.js +13 -6
- package/workspace/lib/skill-map.js +199 -0
- package/workspace/lib/team-cli.js +20 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/action-keys.js +1 -0
- package/workspace/public/pm/ask-here-ctx.js +25 -1
- package/workspace/public/pm/ask-here.css +7 -0
- package/workspace/public/pm/ask-here.js +15 -2
- package/workspace/public/pm/bd-backlog.css +61 -0
- package/workspace/public/pm/bd-backlog.js +62 -8
- package/workspace/public/pm/bd-work.js +12 -1
- package/workspace/public/pm/card-fold.js +123 -0
- package/workspace/public/pm/code-map.js +15 -4
- package/workspace/public/pm/cozy-board.css +5 -1
- package/workspace/public/pm/cozy-ev.css +7 -0
- package/workspace/public/pm/cozy-nav.js +2 -0
- package/workspace/public/pm/cozy-pop-work.js +2 -0
- package/workspace/public/pm/cozy-search.js +2 -2
- package/workspace/public/pm/factory.js +199 -0
- package/workspace/public/pm/pop-cap.js +5 -3
- package/workspace/public/pm/premium-board.js +4 -0
- package/workspace/public/pm/premium-report-read.js +11 -2
- package/workspace/public/pm/print-pdf.js +191 -0
- package/workspace/public/pm/readonly.js +2 -0
- package/workspace/public/pm/review-reasons.js +19 -5
- package/workspace/public/pm/skill-map.js +57 -0
- package/workspace/public/premium-board.html +2 -0
- package/workspace/test-lists/anchor-id.json +9 -0
- package/workspace/test-lists/card-fold.json +9 -0
- package/workspace/test-lists/factory-page-ui.json +9 -0
- package/workspace/test-lists/lessons-on-close.json +9 -0
- package/workspace/test-lists/people-prep.json +9 -0
- package/workspace/test-lists/print-pdf.json +9 -0
- package/workspace/test-lists/skill-map.json +9 -0
- package/workspace/test-lists/surface-ask-card.json +9 -0
- package/workspace/test-lists/voice-files.json +9 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* pm/skill-map.js — the team skill map on Work, below Principles (bet A208, initiative skill-map; board BatchPeopleDS panel 11, Team › Skills).
|
|
2
|
+
*
|
|
3
|
+
* mount(host, { ws, single, say }) → draws the block into `host`; a Work page that shows several products at once shows none
|
|
4
|
+
*
|
|
5
|
+
* Built only from Komorebi parts: a block (pm-block, its head), a pm-table (Person · Strong at · Often corrected on), a pm-said line with
|
|
6
|
+
* the ✦ star for the one pairing, and one icon-only pm-btn ✕ (skip it for the next one; the toast offers Undo). It reads and writes GET and
|
|
7
|
+
* POST /api/team/skills (lib/routes-skill-map.js) and nothing else.
|
|
8
|
+
* · No score, no count and no ranking: names and kind words only, rows by name.
|
|
9
|
+
* · No one with a kind to show: no block (zero is silence). A published page (?pack=) never draws it: it is for the person and their lead.
|
|
10
|
+
* The ✕ is named skillMapSkip and each draw with rows notes skillMapOpen in the local use log (the bet's kill line). */
|
|
11
|
+
import { pmGet, pmPost } from './http.js';
|
|
12
|
+
import { noteUse } from './use-log.js';
|
|
13
|
+
|
|
14
|
+
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
15
|
+
const SV = (d, cls = 'pm-ic') => `<svg class="${cls}" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="${d}"/></svg>`;
|
|
16
|
+
const I = { star: 'M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z', x: 'M6 6l12 12M18 6L6 18' };
|
|
17
|
+
|
|
18
|
+
/** The block's markup. v = { people, pair }. Pure, so the test reads it. '' when there is no one to show. */
|
|
19
|
+
export function blockHtml(v) {
|
|
20
|
+
const people = Array.isArray(v && v.people) ? v.people : [];
|
|
21
|
+
if (!people.length) return '';
|
|
22
|
+
const cell = (list) => (Array.isArray(list) && list.length ? esc(list.join(', ')) : '—');
|
|
23
|
+
const rows = people.map((p) => `<tr><td>${esc(p.who)}</td><td>${cell(p.strong)}</td><td>${cell(p.corrected)}</td></tr>`).join('');
|
|
24
|
+
const pair = v.pair
|
|
25
|
+
? `<p class="pm-said" data-skill-pair="${esc(v.pair.key)}">${SV(I.star, 'pm-ic pm-star')}<span>${esc(v.pair.text)}</span>`
|
|
26
|
+
+ `<button type="button" class="pm-btn outline" name="skillMapSkip" value="${esc(v.pair.key)}" aria-label="Skip this pairing" title="Skip this pairing">${SV(I.x)}</button></p>`
|
|
27
|
+
: '';
|
|
28
|
+
return `<section class="pm-block" aria-label="Team skills"><div class="head"><h3 class="pm-h-sm">Team skills</h3><span class="sp"></span><span class="pm-meta">last 90 days, for you and each person only</span></div>`
|
|
29
|
+
+ `<table class="pm-table"><thead><tr><th scope="col">Person</th><th scope="col">Strong at</th><th scope="col">Often corrected on</th></tr></thead><tbody>${rows}</tbody></table>${pair}</section>`;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const published = () => typeof location !== 'undefined' && /[?&]pack=/.test(location.search || '');
|
|
33
|
+
|
|
34
|
+
/** Draw the block into `host` and wire its press. */
|
|
35
|
+
export async function mount(host, opts = {}) {
|
|
36
|
+
if (!host) return;
|
|
37
|
+
const { ws = null, single = true, say = null } = opts;
|
|
38
|
+
if (!single || published()) { host.hidden = true; host.innerHTML = ''; return; }
|
|
39
|
+
const r = await pmGet('/api/team/skills' + (ws ? '?ws=' + encodeURIComponent(ws) : '')).catch(() => null);
|
|
40
|
+
if (!r || !r.ok) { host.hidden = true; return; } // the block is an extra: a failed read leaves Work as it was
|
|
41
|
+
const html = blockHtml(r);
|
|
42
|
+
host.hidden = !html; host.innerHTML = html;
|
|
43
|
+
if (html) noteUse('skillMapOpen');
|
|
44
|
+
host.onclick = async (e) => {
|
|
45
|
+
const b = e.target.closest('button[name="skillMapSkip"]'); if (!b) return;
|
|
46
|
+
noteUse(b.name);
|
|
47
|
+
b.disabled = true;
|
|
48
|
+
const key = b.value;
|
|
49
|
+
const res = await pmPost('/api/team/skills', { ws, act: 'skip', key }).catch(() => null);
|
|
50
|
+
if (!res || !res.ok) { b.disabled = false; if (say) say((res && res.error) || 'Not saved.'); return; }
|
|
51
|
+
if (say) say('Pairing skipped.', async () => { await pmPost('/api/team/skills', { ws, act: 'undo', key }).catch(() => null); mount(host, opts); });
|
|
52
|
+
mount(host, opts);
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** Draw the block again after a read of Work. */
|
|
57
|
+
export const refresh = (host, opts) => mount(host, opts);
|
|
@@ -65,6 +65,8 @@
|
|
|
65
65
|
<section class="bd-sec" id="cStrat" aria-label="Strategy" hidden></section>
|
|
66
66
|
<!-- the product's principles drafted from its decisions (pm/bd-principles.js, bet A352): below the strategy, one product only -->
|
|
67
67
|
<section class="bd-sec" id="cPrin" aria-label="Principles" hidden></section>
|
|
68
|
+
<!-- the team skill map (pm/skill-map.js, bet A208): below the principles, one product only, for the person and their lead -->
|
|
69
|
+
<section class="bd-sec" id="cSkills" aria-label="Team skills" hidden></section>
|
|
68
70
|
<!-- the product's code map (pm/code-map.js, idea A176): one box per main part of its repository, one product only -->
|
|
69
71
|
<section class="bd-sec" id="cCode" aria-label="Code" hidden></section>
|
|
70
72
|
<section class="bd-sec" id="cIni" aria-labelledby="hIni">
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Big cards fold away (initiative card-fold, done test planning/done-tests/card-fold.md F1-F4, N1-N2): the shared fold on Strategy, Where it stands and North Star, the kept fold per page and card, the ✦ count, and the menu's mount. No server, network or browser.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"card-fold.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"card-fold.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Factory page slice C (factory-page-ui): Work › Factory, the stations and the work they make (pm/factory.js, the Factory tab in pm/bd-backlog.js). Pure; no browser, no server.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"factory-page-ui.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"factory-page-ui.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Lessons drafted when an experiment closes (initiative lessons-on-close, done test L1-L5, N1, N2): the facts, the draft with an injected session and its plain fallback, the hook, the never-over-the-PM rule and pmos artefacts lessons on a scratch repository. No server, browser, model or network.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"lessons-draft.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"lessons-draft.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "A 1:1 brief from the person's own tasks (initiative people-prep, done test P1-P7, N1-N4): pmos people prep and the person's Ask card offer. No browser, model or network.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"people-prep.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"people-prep.test.js": 2
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Clean print and PDF (initiative print-pdf, job #1911, A379, done test P1-P9, N1-N3): the one print layout, glyphs as words, the brand, GET /api/print and pmos print on a scratch folder. No server, browser, model or network.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"print-pdf.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"print-pdf.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "The team skill map (initiative skill-map, job #1898, idea A208; done test S1-S6, N1-N4): signals from sign-offs and the decision journal, the 90-day fold, one pairing with skip and undo, pmos team skills, the route and the Work block's markup. No server, browser, model or network.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"skill-map.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"skill-map.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "The Ask card shows what PMOS can do (initiative surface-ask-card, done test A1-A5, N1, N2): actionsOf and its markup on a fake tree, the press wiring, Search or ask and the ? list row. No server, browser, model or network.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"surface-ask-card.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"surface-ask-card.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Customer voice reads review exports by itself (initiative review-reasons-files, done test S1, V1-V4, N1-N3): the folder scan, the read and its Undo on a scratch repository, the /api/voice route and the block's read line. No browser, model or network.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"voice-files.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"voice-files.test.js": 3
|
|
8
|
+
}
|
|
9
|
+
}
|