create-pmos 0.784.0 → 0.786.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 +90 -59
- package/payload/AGENTS.md +160 -0
- package/payload/KIT-VERSION +1 -1
- package/payload/design-system/ui/components/Badge/README.md +2 -2
- package/payload/design-system/ui/components/Glyph/README.md +28 -0
- package/payload/design-system/ui/components/bundle.css +3 -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/bin/card-catalog-gen.js +22 -0
- package/workspace/board-columns-test.js +2 -2
- package/workspace/briefing-premium-insights-test.js +5 -4
- package/workspace/calm-timeline-test.js +4 -3
- package/workspace/changelog.json +89 -0
- package/workspace/design-system/ui/components/Badge/README.md +2 -2
- package/workspace/design-system/ui/components/Glyph/README.md +28 -0
- package/workspace/design-system/ui/components/bundle.css +3 -0
- package/workspace/guide/cli.md +19 -0
- package/workspace/guide/home.md +5 -3
- package/workspace/guide/index.md +2 -2
- package/workspace/guide/jira.md +8 -0
- package/workspace/guide/layout.md +16 -2
- package/workspace/lib/briefing-premium-agent.js +3 -0
- package/workspace/lib/card-catalog-gen.js +123 -0
- package/workspace/lib/cos-chat.js +1 -0
- package/workspace/lib/declined-asks.js +177 -0
- package/workspace/lib/declined-cli.js +87 -0
- package/workspace/lib/goal-chat.js +1 -0
- package/workspace/lib/initiative-chat.js +1 -0
- package/workspace/lib/jira-status.js +11 -2
- package/workspace/lib/live-events.js +99 -0
- package/workspace/lib/pmos-verbs.js +6 -0
- package/workspace/lib/program-chat.js +1 -0
- package/workspace/lib/quiet-cli.js +81 -0
- package/workspace/lib/quiet-sweep.js +228 -0
- package/workspace/lib/report-chat.js +1 -0
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-backlog.js +21 -1
- package/workspace/lib/routes-live-rows.js +30 -0
- package/workspace/lib/routes-slash.js +142 -2
- package/workspace/lib/routes-your-move.js +39 -3
- package/workspace/lib/task-cli.js +5 -3
- package/workspace/lib/workflow-chat.js +1 -0
- package/workspace/okr-goals-ui-test.js +3 -2
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/bd-cols.js +3 -1
- package/workspace/public/pm/bd-span.js +13 -7
- package/workspace/public/pm/bd-sprint.js +29 -1
- package/workspace/public/pm/bd-views.js +6 -3
- package/workspace/public/pm/bd-work-ds.css +1 -0
- package/workspace/public/pm/bd-work.js +15 -2
- package/workspace/public/pm/cozy-board.css +3 -0
- package/workspace/public/pm/cozy-insights.css +3 -4
- package/workspace/public/pm/ds-bridge.css +12 -0
- package/workspace/public/pm/goal-forecast.js +7 -4
- package/workspace/public/pm/home-app.js +14 -4
- package/workspace/public/pm/komorebi.css +1 -0
- package/workspace/public/pm/live-edit.js +34 -3
- package/workspace/public/pm/live-feed.js +43 -0
- package/workspace/public/pm/okr-list.js +5 -2
- package/workspace/public/pm/premium-board.js +2 -0
- package/workspace/public/pm/premium-insights.js +10 -4
- package/workspace/public/pm/premium-vw-doc.css +5 -0
- package/workspace/public/pm/premium-vw-doc.js +11 -31
- package/workspace/public/pm/premium-vw-file.js +13 -8
- package/workspace/public/pm/premium-vw-guide.css +9 -0
- package/workspace/public/pm/premium-vw-guide.js +20 -17
- package/workspace/public/pm/quiet-view.js +107 -0
- package/workspace/public/pm/reading-view.js +44 -0
- package/workspace/public/pm/state-glyph.js +135 -0
- package/workspace/skills/jira-sync.skill +4 -3
- package/workspace/task-milestones-test.js +2 -2
- package/workspace/test-lists/a2ui-chat-rules.json +9 -0
- package/workspace/test-lists/a2ui-live-rows.json +9 -0
- package/workspace/test-lists/declined-asks.json +9 -0
- package/workspace/test-lists/quiet-sweep.json +9 -0
- package/workspace/test-lists/state-glyph.json +5 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/* state-glyph.js — a state is a shape, not a word (initiative state-glyphs, idea A311; boards StatesDS and StatesPhone, agreed 2026-11-23).
|
|
2
|
+
* One shared part for every page. stateGlyph(state, { progress, size, why }) gives an inline SVG inside a span with role="img", an aria-label
|
|
3
|
+
* and a title, so a sighted person sees the shape, hover shows the word and why, and a screen reader reads the word.
|
|
4
|
+
*
|
|
5
|
+
* state shape token
|
|
6
|
+
* on a ring that fills with progress --state-on
|
|
7
|
+
* risk a half-filled circle --state-risk
|
|
8
|
+
* late a triangle with ! --state-late
|
|
9
|
+
* you a blue dot on a tint --state-you (the only one that moves: one soft pulse when it first shows)
|
|
10
|
+
* wait a clock --state-wait
|
|
11
|
+
* none a dashed ring --state-none
|
|
12
|
+
* done a filled check --state-done
|
|
13
|
+
*
|
|
14
|
+
* The glyph names only the seven --state-* tokens (komorebi.css sets them from --leaf, --alert, --blue and --muted), so a change to one token
|
|
15
|
+
* reaches every glyph with no page rebuild. On a page without the design-system class the glyph takes the text colour (currentColor). Facts stay as text next to the glyph ("29 days late", "Commerce has it"); only the state word goes.
|
|
16
|
+
* Pure: Node imports it. pressHold(root) is the one browser part: on a phone, press and hold a glyph to open a small sheet with the word and why. */
|
|
17
|
+
|
|
18
|
+
export const STATES = Object.freeze({
|
|
19
|
+
on: { word: 'On track', token: '--state-on' },
|
|
20
|
+
risk: { word: 'At risk', token: '--state-risk' },
|
|
21
|
+
late: { word: 'Late', token: '--state-late' },
|
|
22
|
+
you: { word: 'Needs you', token: '--state-you' },
|
|
23
|
+
wait: { word: 'Waiting on others', token: '--state-wait' },
|
|
24
|
+
none: { word: 'No signal', token: '--state-none' },
|
|
25
|
+
done: { word: 'Done', token: '--state-done' },
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
// the words and tones other parts of PMOS already use, mapped onto the seven states
|
|
29
|
+
const ALIAS = {
|
|
30
|
+
on: 'on', ok: 'on', 'on track': 'on', ontrack: 'on', green: 'on', good: 'on', leaf: 'on', live: 'on', 'in progress': 'on', active: 'on',
|
|
31
|
+
risk: 'risk', 'at risk': 'risk', atrisk: 'risk', amber: 'risk', warn: 'risk', watch: 'risk', slipping: 'risk',
|
|
32
|
+
late: 'late', overdue: 'late', alert: 'late', red: 'late', behind: 'late', 'off track': 'late', offtrack: 'late',
|
|
33
|
+
you: 'you', 'needs you': 'you', needsyou: 'you', blue: 'you', ask: 'you',
|
|
34
|
+
wait: 'wait', waiting: 'wait', 'waiting on others': 'wait', blocked: 'wait', q: 'wait', 'on hold': 'wait', hold: 'wait', held: 'wait',
|
|
35
|
+
none: 'none', 'no signal': 'none', nosignal: 'none', muted: 'none', grey: 'none', gray: 'none',
|
|
36
|
+
done: 'done', closed: 'done', shipped: 'done', complete: 'done', completed: 'done', finished: 'done',
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** PURE. Any state word or tone PMOS uses → one of the seven keys; null when it is not a state. */
|
|
40
|
+
export function stateKey(s) {
|
|
41
|
+
const k = String(s == null ? '' : s).trim().toLowerCase().replace(/[_-]+/g, ' ');
|
|
42
|
+
return (k && (ALIAS[k] || ALIAS[k.replace(/\s+/g, '')])) || null;
|
|
43
|
+
}
|
|
44
|
+
/** PURE. The state's word: 'At risk'; '' when it is not a state. */
|
|
45
|
+
export const stateWord = (s) => { const k = stateKey(s); return k ? STATES[k].word : ''; };
|
|
46
|
+
|
|
47
|
+
/** PURE. True when a text is only a state word ("At risk", "late", "On track"): a glyph replaces it. A fact ("15 days over") is not. */
|
|
48
|
+
export const isStateWord = (t) => { const k = String(t == null ? '' : t).trim().toLowerCase().replace(/[_-]+/g, ' '); return !!k && Object.prototype.hasOwnProperty.call(ALIAS, k); };
|
|
49
|
+
|
|
50
|
+
/** PURE. The status PMOS already says for a row ({ tone, text }, pm/ini-view-model.js statusOf) → { state, why } for its glyph.
|
|
51
|
+
* The why is the text when it is a fact ("15 days over", "2 questions"), else ''. */
|
|
52
|
+
export function fromStatus(st) {
|
|
53
|
+
const tone = String((st && st.tone) || ''), text = String((st && st.text) || '').trim(), why = isStateWord(text) ? '' : text;
|
|
54
|
+
if (tone === 'you') return { state: 'you', why };
|
|
55
|
+
if (tone === 'late') return { state: 'late', why };
|
|
56
|
+
if (tone === 'risk') return { state: 'risk', why: why.replace(/^At risk · /, '') };
|
|
57
|
+
if (tone === 'red') return { state: /blocked/i.test(text) ? 'wait' : 'late', why };
|
|
58
|
+
if (tone === 'ok') return { state: /^done$/i.test(text) ? 'done' : 'on', why };
|
|
59
|
+
if (/^on hold/i.test(text)) return { state: 'wait', why: text.replace(/^On hold( · )?/i, '') };
|
|
60
|
+
return { state: 'none', why };
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const esc = (s) => String(s == null ? '' : s).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"');
|
|
64
|
+
const n = (x) => Math.round(x * 100) / 100;
|
|
65
|
+
const col = (k) => `var(${STATES[k].token}, currentColor)`;
|
|
66
|
+
const SURFACE = 'var(--card, Canvas)';
|
|
67
|
+
|
|
68
|
+
/** PURE. The shape inside a size×size box. */
|
|
69
|
+
function shape(k, size, progress) {
|
|
70
|
+
const c = size / 2, r = size / 2 - 1.5, C = col(k);
|
|
71
|
+
switch (k) {
|
|
72
|
+
case 'on': {
|
|
73
|
+
const p = Math.max(0, Math.min(1, Number.isFinite(progress) ? progress : 0));
|
|
74
|
+
const ring = `<circle cx="${n(c)}" cy="${n(c)}" r="${n(r)}" fill="none" stroke="${C}" stroke-opacity=".22" stroke-width="3"/>`;
|
|
75
|
+
if (p <= 0) return ring;
|
|
76
|
+
if (p >= 1) return ring + `<circle data-fill="1" cx="${n(c)}" cy="${n(c)}" r="${n(r)}" fill="none" stroke="${C}" stroke-width="3"/>`;
|
|
77
|
+
const a = p * 2 * Math.PI, x = c + r * Math.sin(a), y = c - r * Math.cos(a);
|
|
78
|
+
return ring + `<path data-fill="${n(p)}" d="M${n(c)} ${n(c - r)}A${n(r)} ${n(r)} 0 ${p > 0.5 ? 1 : 0} 1 ${n(x)} ${n(y)}" fill="none" stroke="${C}" stroke-width="3" stroke-linecap="round"/>`;
|
|
79
|
+
}
|
|
80
|
+
case 'risk':
|
|
81
|
+
return `<circle cx="${n(c)}" cy="${n(c)}" r="${n(r)}" fill="none" stroke="${C}" stroke-width="1.6"/><path d="M${n(c)} ${n(c - r)}A${n(r)} ${n(r)} 0 0 0 ${n(c)} ${n(c + r)}Z" fill="${C}"/>`;
|
|
82
|
+
case 'late':
|
|
83
|
+
return `<path d="M${n(c)} 1.2L${n(size - 1)} ${n(size - 1.6)}L1 ${n(size - 1.6)}Z" fill="${C}" stroke="${C}" stroke-width="1.2" stroke-linejoin="round"/>`
|
|
84
|
+
+ `<path d="M${n(c)} ${n(size * 0.38)}V${n(size * 0.62)}" stroke="${SURFACE}" stroke-width="1.6" stroke-linecap="round"/><circle cx="${n(c)}" cy="${n(size * 0.76)}" r=".9" fill="${SURFACE}"/>`;
|
|
85
|
+
case 'you':
|
|
86
|
+
return `<circle cx="${n(c)}" cy="${n(c)}" r="${n(r)}" fill="${C}" fill-opacity=".16"/><circle class="pm-glyph-dot" cx="${n(c)}" cy="${n(c)}" r="${n(r * 0.55)}" fill="${C}"/>`;
|
|
87
|
+
case 'wait':
|
|
88
|
+
return `<circle cx="${n(c)}" cy="${n(c)}" r="${n(r)}" fill="none" stroke="${C}" stroke-width="1.6"/><path d="M${n(c)} ${n(c - 0.55 * r)}V${n(c)}L${n(c + 0.45 * r)} ${n(c + 0.3 * r)}" fill="none" stroke="${C}" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>`;
|
|
89
|
+
case 'done':
|
|
90
|
+
return `<circle cx="${n(c)}" cy="${n(c)}" r="${n(size / 2 - 1)}" fill="${C}"/><path d="M${n(size * 0.3)} ${n(size * 0.52)}l${n(size * 0.14)} ${n(size * 0.14)} ${n(size * 0.26)}-${n(size * 0.3)}" fill="none" stroke="${SURFACE}" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>`;
|
|
91
|
+
default: // none
|
|
92
|
+
return `<circle cx="${n(c)}" cy="${n(c)}" r="${n(r)}" fill="none" stroke="${C}" stroke-width="1.6" stroke-dasharray="2.2 2.2"/>`;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** PURE. The glyph's HTML ('' for anything that is not a state). state: a key, word or tone; o: { progress 0..1 (On track's ring), size px (14), why: the reason PMOS holds, cls }.
|
|
97
|
+
* The title (hover) is "Word: why"; the aria-label is the same, so a screen reader hears the state and its reason. */
|
|
98
|
+
export function stateGlyph(state, o = {}) {
|
|
99
|
+
const k = stateKey(state); if (!k) return ''; // not a state: nothing to draw
|
|
100
|
+
const size = Math.max(10, Math.min(48, Number(o.size) || 14));
|
|
101
|
+
const word = STATES[k].word, why = String(o.why == null ? '' : o.why).replace(/\s+/g, ' ').trim();
|
|
102
|
+
const label = why ? `${word}: ${why}` : word;
|
|
103
|
+
return `<span class="pm-glyph${o.cls ? ' ' + esc(o.cls) : ''}" data-state="${k}" role="img" aria-label="${esc(label)}" title="${esc(label)}"`
|
|
104
|
+
+ ` data-word="${esc(word)}"${why ? ` data-why="${esc(why)}"` : ''}>`
|
|
105
|
+
+ `<svg viewBox="0 0 ${size} ${size}" width="${size}" height="${size}" aria-hidden="true" focusable="false">${shape(k, size, Number(o.progress))}</svg></span>`;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** Browser. On a phone (a touch or pen press), press and hold a glyph inside root to open a small sheet with the word and one line of why.
|
|
109
|
+
* The listeners sit on the document (the page delegates its presses there), so the glyph stays a plain image and the row keeps its own
|
|
110
|
+
* press: a quick tap does nothing here. A tap anywhere closes the sheet. Returns a function that removes the listeners. */
|
|
111
|
+
export function pressHold(root, { hold = 450 } = {}) {
|
|
112
|
+
if (!root || typeof document === 'undefined') return () => {};
|
|
113
|
+
let t = null, sheet = null;
|
|
114
|
+
const close = () => { if (sheet) { sheet.remove(); sheet = null; } };
|
|
115
|
+
const open = (g) => {
|
|
116
|
+
close();
|
|
117
|
+
sheet = document.createElement('div');
|
|
118
|
+
sheet.className = 'pm-glyph-sheet';
|
|
119
|
+
sheet.setAttribute('role', 'status');
|
|
120
|
+
sheet.innerHTML = `<div class="pm-glyph-sheet-h">${g.outerHTML.replace(/ title="[^"]*"/, '').replace(/ role="img" aria-label="[^"]*"/, ' aria-hidden="true"')}<b>${esc(g.dataset.word || '')}</b></div>`
|
|
121
|
+
+ (g.dataset.why ? `<p>${esc(g.dataset.why)}</p>` : '');
|
|
122
|
+
document.body.appendChild(sheet);
|
|
123
|
+
};
|
|
124
|
+
const up = () => { clearTimeout(t); t = null; };
|
|
125
|
+
const down = (e) => {
|
|
126
|
+
if (sheet) { close(); return; }
|
|
127
|
+
const g = e.target && e.target.closest && e.target.closest('.pm-glyph');
|
|
128
|
+
if (!g || !root.contains(g) || !e.pointerType || e.pointerType === 'mouse') return;
|
|
129
|
+
up();
|
|
130
|
+
t = setTimeout(() => { t = null; open(g); }, hold);
|
|
131
|
+
};
|
|
132
|
+
const on = [['pointerdown', down], ['pointerup', up], ['pointercancel', up], ['scroll', up]];
|
|
133
|
+
for (const [ev, f] of on) document.addEventListener(ev, f, true);
|
|
134
|
+
return () => { close(); up(); for (const [ev, f] of on) document.removeEventListener(ev, f, true); };
|
|
135
|
+
}
|
|
@@ -15,7 +15,7 @@ output:
|
|
|
15
15
|
Rules that always hold:
|
|
16
16
|
1. READ-ONLY on Jira. Use only the Jira search tool. Never create, edit, transition, assign, comment on, link, close or delete an issue. Never write to Confluence or to any other source.
|
|
17
17
|
2. THE ONLY WRITE is `pmos jira sync`, `pmos jira summary` (step 4b), and `pmos people record` once at the end (step 5), or `pmos refresh same jira` when step 0 finds no change. Never edit a repository file. Never run `pmos item`. Never write a ledger by hand. Never commit; the PM's Sync carries the files.
|
|
18
|
-
3. LIGHT ON CONTENT. Ask Jira only for these fields: summary, status, the issue type, the parent, the sprint field, subtasks, the Flagged field, the story points field, the resolution date, and the display names of the assignee and the reporter. Never ask for or copy a description, a comment, an attachment, an email address, any other detail of a person, or a token.
|
|
18
|
+
3. LIGHT ON CONTENT. Ask Jira only for these fields: summary, status, the issue type, the parent, the sprint field, subtasks, the Flagged field, the story points field, the resolution and its date, and the display names of the assignee and the reporter. Never ask for or copy a description, a comment, an attachment, an email address, any other detail of a person, or a token.
|
|
19
19
|
4. TEMPORARY FILES OUTSIDE THE REPOSITORY. Save each search result in this session's scratch folder, never in the repository. Do not delete it: the scratch folder is removed when the session ends.
|
|
20
20
|
7. PLAIN COMMANDS ONLY. Each shell command is one `pmos …` command, or several joined with `;` or `&&`. Never use a shell loop, a variable, `$(…)`, a pipe into another program, `rm`, `cat`, `python` or `jq`: in a background run they are refused, and the run is stopped. `pmos` reads the files itself.
|
|
21
21
|
5. NOTHING INVENTED. Give `pmos jira sync` exactly what Jira returned. If Jira cannot be reached, list the initiative under "Not reached" and write nothing for it.
|
|
@@ -32,13 +32,14 @@ Procedure:
|
|
|
32
32
|
1. If the task names one initiative ("This check: initiative …"), check that one only: run `pmos jira query <initiative>`. Otherwise run `pmos jira query`: each line is an initiative id, a tab and the Jira search (JQL) to run for it. An initiative PMOS pushed no ticket for, but which is linked to Jira epics, gets a search for those epics and the issues under them. An initiative whose tasks start with a Jira key (tasks imported from Jira, such as "IDPF-2746 · Send verification email") gets those tickets in its search too: PMOS sets each task's state from what you read. If no initiative has a ticket or an epic in Jira, say so in one line and stop.
|
|
33
33
|
2. For each initiative, run its search with the Jira search tool and the fields in rule 3, at most 50 issues per page. The sprint is a custom field named "Sprint" whose id differs per site (often `customfield_10020`, on some sites `customfield_10004`). If the first page comes back with no Sprint field, ask once for every field of one issue (`*all`), find the field whose value is a list of sprints (each with a name and a state), and ask for that id from then on. Story points are also a custom field, named "Story Points" or "Story point estimate" (often `customfield_10016`); ask for it by name. With the Atlassian MCP connector, name the fields in `fields`, use the `full` view, and save the result as it comes back: it puts custom fields under `fields.customFields`, and `pmos` reads them there. Fetch every page.
|
|
34
34
|
3. Save the result as JSON in the scratch folder, for example `<scratch>/jira-<initiative>.json`, as a list with one object per issue:
|
|
35
|
-
`{"key", "summary", "status", "category", "type", "parent", "sprint", "subtasks", "points", "resolved", "flagged", "reason", "url"}`
|
|
35
|
+
`{"key", "summary", "status", "category", "type", "parent", "sprint", "subtasks", "points", "resolved", "resolution", "reporter", "flagged", "reason", "url"}`
|
|
36
36
|
- `type`: the issue type's name, for example `Epic`, `Story`, `Task` or `Bug`.
|
|
37
37
|
- `parent`: the parent issue's key (the epic of a story), or `null`.
|
|
38
38
|
- `category`: the status category, `new`, `indeterminate` or `done`.
|
|
39
39
|
- `sprint`: Jira's sprint, as `{"id": "42", "name": "Sprint 42", "state": "active", "start": "2026-10-01", "end": "2026-10-14"}`. Copy `state` as Jira gives it: `"active"`, `"future"` (a planned sprint) or `"closed"`. Use `null` when the issue is in no sprint: never write a made-up sprint such as `"Future"` or `"Backlog"` for it. Copy `id`, `start`, `end`, `completed` (a closed sprint's completion date) and `goal` (the sprint goal, as Jira writes it) from Jira's sprint field; leave out any that Jira does not give. When Jira's sprint field lists more than one sprint (a ticket carried from one sprint to the next), write `sprint` as the list of all of them, oldest first, each in that shape: PMOS keeps the ticket in every sprint it was in.
|
|
40
40
|
- `points`: the story points as a number, or `null` when none are set.
|
|
41
|
-
- `resolved`: the resolution date as `YYYY-MM-DD`, or `null` when the issue is not resolved.
|
|
41
|
+
- `resolved`: the resolution date as `YYYY-MM-DD`, or `null` when the issue is not resolved. `resolution`: the resolution's name as Jira gives it (for example `Won't Do` or `Duplicate`), or `null`.
|
|
42
|
+
- `reporter`: the reporter's display name only, or `null`. Never an email address.
|
|
42
43
|
- `subtasks`: `{"done": 2, "total": 5}`.
|
|
43
44
|
- `flagged`: `true` when the issue is flagged; `reason`: the flag's comment or the blocking status, in a few words.
|
|
44
45
|
- `url`: the issue's browse link, `https://<site>.atlassian.net/browse/<KEY>`.
|
|
@@ -89,7 +89,7 @@ const ITEMS = [
|
|
|
89
89
|
const rowOf = (p, key) => p.evaluate((k) => {
|
|
90
90
|
const r = document.querySelector(`#ibBody [data-row="${k}"]`); if (!r) return null;
|
|
91
91
|
return {
|
|
92
|
-
dot: (r.querySelector('.
|
|
92
|
+
dot: (r.querySelector('.pm-glyph') || { dataset: {} }).dataset.state || '', // the row's state glyph, at the end of its bar (state-glyphs)
|
|
93
93
|
tm: [...r.querySelectorAll('.tg-tm')].map((x) => x.className + '|' + x.getAttribute('title')),
|
|
94
94
|
tmc: [...r.querySelectorAll('.tg-tmc')].map((x) => x.className + '|' + x.textContent + '|' + x.dataset.msIds),
|
|
95
95
|
tml: [...r.querySelectorAll('.tg-tml')].map((x) => x.className + '|' + x.textContent),
|
|
@@ -106,7 +106,7 @@ const ITEMS = [
|
|
|
106
106
|
ok('B said once: the Evaluate task IS the end ◇ and takes its name; it is not drawn again', sc && /^tg-end\|KPI evaluated · Mar 31(?: ’\d\d)? · ◆ Evaluate$/.test(sc.end) && !sc.tm.some((x) => /KPI/.test(x)), JSON.stringify(sc));
|
|
107
107
|
ok('S Year puts no date under a ◇: its hover names it (batch 13 item 4)', sc && !sc.tml.length, JSON.stringify(sc && sc.tml));
|
|
108
108
|
const pk = await rowOf(p, 'board:passkey');
|
|
109
|
-
ok('B a late milestone: an orange outline, and the row\'s
|
|
109
|
+
ok('B a late milestone: an orange outline, and the row\'s state glyph says Late', pk && /tg-tm late\|Beta to staff · Oct 16 · late/.test(pk.tm[0]) && !pk.tml.length && pk.dot === 'late', JSON.stringify(pk));
|
|
110
110
|
const rc = await rowOf(p, 'board:recovery');
|
|
111
111
|
ok('M two milestones three days apart merge into one counted ◇; the latest is the end ◇; Won\'t do is not drawn', rc && rc.tm.length === 0 && rc.tmc.length === 1 && /^tg-tmc\|2\|task-c0 task-c1$/.test(rc.tmc[0]) && /Support FAQ live · Mar 6/.test(rc.end) && !rc.tml.length, JSON.stringify(rc));
|
|
112
112
|
const lg = await p.evaluate(() => (document.querySelector('#bdChipset .tg-lgd') || document.querySelector('.tg-lgd') || {}).textContent || '');
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "a2ui-chat-rules (job #1749, A499): the chat rules, the AGENTS.md command block and the / menu's PMOS group are generated from the card catalog and stay in step with it. No browser, no network.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"card-catalog-gen.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"card-catalog-gen.test.js": 2
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "a2ui-live-rows (bet A458, job #1750): a chat write moves the row on every open page at once. The real pmos task writer, the stream route on a local server, and the pure page modules live-edit.js and live-feed.js. No browser.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"live-rows.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"live-rows.test.js": 3
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Declined asks are recorded and get a kind reply draft (bet A326, done test planning/done-tests/declined-asks-reply.md D1-D6). Pure checks, the CLI in process and a temp product root. No connector, model or network.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"declined-asks.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"declined-asks.test.js": 2
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "The weekly sweep of quiet work (initiative quiet-work-sweep, bet A503, done test Q1-Q8): the quiet list over the line's rows, the keep ledger, park/close/undo writers, GET /api/quiet and POST /api/quiet/keep, the pmos quiet verb and Today's row. Temp repositories in both layouts. No server, network or browser.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"quiet-sweep.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"quiet-sweep.test.js": 3
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Initiative state-glyphs (job #1675): pm/state-glyph.js draws the seven states as shapes (role img, aria-label, title), from the seven --state-* tokens only; Work, Goals, the Timeline bar and the phone rows draw the glyph, not the word. Pure.",
|
|
3
|
+
"modules": ["state-glyph.test.js"],
|
|
4
|
+
"seconds": { "state-glyph.test.js": 1 }
|
|
5
|
+
}
|