create-pmos 0.429.0 → 0.431.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 +25 -25
- package/payload/KIT-VERSION +2 -2
- 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/payload/state/log.md +1 -1
- package/workspace/briefing-premium-board-test.js +2 -2
- package/workspace/briefing-premium-insights-test.js +1 -1
- package/workspace/changelog.json +24 -0
- package/workspace/guide/adler.md +45 -0
- package/workspace/guide/briefing-premium.md +2 -0
- package/workspace/guide/home.md +4 -4
- package/workspace/guide/index.md +1 -0
- package/workspace/guide/metric-drafts.md +2 -1
- package/workspace/guide/programs.md +4 -2
- package/workspace/intelligence-gaps-ui-test.js +168 -0
- package/workspace/lib/initiative-writer.js +16 -2
- package/workspace/lib/insight-moves.js +135 -0
- package/workspace/lib/insights-premium.js +4 -3
- package/workspace/lib/intel-report.js +16 -3
- package/workspace/lib/metric-drafts.js +32 -2
- package/workspace/lib/page-opens.js +74 -0
- package/workspace/lib/report-setups.js +1 -1
- package/workspace/lib/route-modules.js +2 -0
- package/workspace/lib/routes-insight-moves.js +119 -0
- package/workspace/lib/routes-insights-premium.js +10 -1
- package/workspace/lib/routes-metric-drafts.js +10 -1
- package/workspace/lib/routes-page-opens.js +26 -0
- package/workspace/lib/routes-report-setups.js +6 -1
- package/workspace/lib/settings-store.js +6 -0
- package/workspace/metric-drafts-ui-test.js +4 -4
- package/workspace/milestone-suggest-test.js +4 -4
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-viewer-flicker-test.js +1 -1
- package/workspace/public/pm/bd-prog-panel.js +3 -3
- package/workspace/public/pm/bd-prog.js +2 -2
- package/workspace/public/pm/bd-span.js +17 -14
- package/workspace/public/pm/cozy-adler.css +82 -0
- package/workspace/public/pm/cozy-adler.js +270 -0
- package/workspace/public/pm/cozy-ev.css +3 -0
- package/workspace/public/pm/cozy-home.css +4 -0
- package/workspace/public/pm/cozy-insights.css +15 -1
- package/workspace/public/pm/cozy-nav.js +2 -0
- package/workspace/public/pm/cozy-search.js +4 -2
- package/workspace/public/pm/cozy-settings.js +15 -2
- package/workspace/public/pm/cozy-today.css +15 -0
- package/workspace/public/pm/cozy.css +16 -0
- package/workspace/public/pm/home-app.js +7 -9
- package/workspace/public/pm/home-chat.js +10 -2
- package/workspace/public/pm/home-day.js +39 -16
- package/workspace/public/pm/home-today.js +5 -3
- package/workspace/public/pm/ini-view-model.js +1 -1
- package/workspace/public/pm/ini-view.css +6 -0
- package/workspace/public/pm/ini-view.js +13 -0
- package/workspace/public/pm/metric-drafts.css +7 -0
- package/workspace/public/pm/metric-drafts.js +46 -7
- package/workspace/public/pm/ms-suggest.js +2 -1
- package/workspace/public/pm/premium-board.js +2 -2
- package/workspace/public/pm/premium-insights.js +76 -10
- package/workspace/public/pm/premium-vw-cal.js +1 -1
- package/workspace/public/pm/premium-welcome.js +3 -2
- package/workspace/public/pm/premium.css +3 -0
- package/workspace/public/pm/program-model.js +7 -0
- package/workspace/public/pm/split-merge.js +2 -1
- package/workspace/public/pm/stage-line.js +7 -5
- package/workspace/public/premium-intelligence.html +1 -1
- package/workspace/test-lists/intelligence-gaps-ui.json +5 -0
- package/workspace/test-lists/intelligence-gaps.json +5 -0
- package/workspace/test-lists/milestone-label.json +5 -0
|
@@ -2682,3 +2682,6 @@ button.wl-row[aria-pressed="true"] .wl-tog{background:var(--solid);color:var(--o
|
|
|
2682
2682
|
.askfoot{margin:8px 0 0;font-size:var(--fs-2);color:var(--ink-3)}
|
|
2683
2683
|
/* chat-open-in-terminal: the header's terminal icon shows only while the dialog has a session to open or resume */
|
|
2684
2684
|
#dTerm[hidden]{display:none}
|
|
2685
|
+
/* Adler on the Welcome page (batch 16 item 2, canvas AdH6): the scene once, over the first step */
|
|
2686
|
+
.wl-ad{max-width:420px;margin:0 0 12px}
|
|
2687
|
+
.wl-hi{margin:0 0 6px;font-weight:600;color:var(--ink)}
|
|
@@ -64,6 +64,13 @@ export function milestoneStep(row, m) {
|
|
|
64
64
|
return s ? { key: s.key, label: s.name, at: -1, date: day } : { key: 'deliver', label: 'Deliver', at: DELIVER, date: day };
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
/** A Board model's rows without its cancelled and archived initiatives. The model's `rows` carries those too (the search and the
|
|
68
|
+
* "Cancelled and archived" panel read them there), so a program read from it showed them as live members (batch 16 item 9). */
|
|
69
|
+
export function liveRows(model) {
|
|
70
|
+
const G = (model && model.initiatives && model.initiatives.gone) || {};
|
|
71
|
+
const gone = new Set([...(G.cancelled || []), ...(G.archived || [])].map((r) => r && r.id).filter(Boolean));
|
|
72
|
+
return ((model && model.rows) || []).filter((r) => r && !gone.has(r.id));
|
|
73
|
+
}
|
|
67
74
|
export function programOf(programs, ws, ini) {
|
|
68
75
|
return (programs || []).find((p) => (p.members || []).some((m) => m.initiative === ini && (!m.ws || !ws || m.ws === ws))) || null;
|
|
69
76
|
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* selected and opened; after a merge the one that stays is. Both toasts carry Undo (POST /api/initiatives/sm-undo), which puts both back.
|
|
19
19
|
* On a phone the Viewer is the full-screen sheet, so the card and both views are the phone sheet too. CSS: pm/split-merge.css, loaded here. */
|
|
20
20
|
import * as VW from './cozy-viewer.js';
|
|
21
|
+
import { adler } from './cozy-adler.js'; // Adler holds the suggestion (batch 16 item 2, canvas AdU2, AdM2)
|
|
21
22
|
|
|
22
23
|
const CSS = new URL('./split-merge.css', import.meta.url).href;
|
|
23
24
|
if (typeof document !== 'undefined' && document.head && !document.querySelector(`link[href="${CSS}"]`)) {
|
|
@@ -58,7 +59,7 @@ export function cardHtml(sg, title) {
|
|
|
58
59
|
? [[ICON.scissors, sg.name, countText(sg.counts || {})], [ICON.stay, 'Stays here', sg.stays || '']]
|
|
59
60
|
: [[ICON.stay, sg.intoTitle + ' stays', sg.reason ? 'Because ' + sg.reason : ''], [ICON.merge, (title || 'This one') + ' closes', 'Its work moves; its chats, run log and history stay']];
|
|
60
61
|
const ok = split ? 'Split as suggested' : 'Merge as suggested';
|
|
61
|
-
return `<section class="sm-card" role="region" aria-label="${esc('Claude suggests: ' + sg.title)}"><div class="sm-h">${
|
|
62
|
+
return `<section class="sm-card" role="region" aria-label="${esc('Claude suggests: ' + sg.title)}"><div class="sm-h">${adler('needs-you', 36, { label: false })}<b>${esc(sg.title)}</b></div>`
|
|
62
63
|
+ (sg.why ? `<p class="sm-why">${esc(sg.why)}</p>` : '')
|
|
63
64
|
+ lines.map(([d, b, t]) => `<div class="sm-pl">${SVG(d, 15)}<span><b>${esc(b)}</b>${t ? ' · ' + esc(t) : ''}</span></div>`).join('')
|
|
64
65
|
+ `<div class="sm-acts"><button type="button" class="sm-ib" data-sm="no" aria-label="Not now" title="Not now">${SVG(ICON.x, 16)}</button>`
|
|
@@ -226,8 +226,8 @@ export function lineOf(r, o = {}) {
|
|
|
226
226
|
});
|
|
227
227
|
const skips = skipsOf(parts, P, B);
|
|
228
228
|
|
|
229
|
-
// 8 the ◇s: the end ◇ is the committed end (a milestone task on that day, or the latest one in the workflow's last ◆ stage, IS it
|
|
230
|
-
// others merge when they are within NEAR % of each other
|
|
229
|
+
// 8 the ◇s: the end ◇ is the committed end (a milestone task on that day, or the latest one in the workflow's last ◆ stage, IS it, at the
|
|
230
|
+
// task's own date and with its own date under it: the timeline-label hotfix, as the Board); the others merge when they are within NEAR % of each other
|
|
231
231
|
const lastMs = (list.filter((s) => s.ms).slice(-1)[0] || {}).key;
|
|
232
232
|
const inLast = lastMs ? MS.filter((m) => m.sec === lastMs) : [];
|
|
233
233
|
const endTask = E && !draft ? (MS.filter((m) => +m.d === +E).slice(-1)[0] || inLast.slice(-1)[0] || null) : null;
|
|
@@ -238,8 +238,9 @@ export function lineOf(r, o = {}) {
|
|
|
238
238
|
name: c.n > 1 ? plural(c.n, 'milestone', 'milestones') : c.first.name, date: md(day(c.date), t), done: c.done, late: c.late, dash: !!draft }));
|
|
239
239
|
const ms = C.slice();
|
|
240
240
|
if (E && !draft) {
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
const ED = endTask ? endTask.d : E;
|
|
242
|
+
ms.push({ x: X(ED), n: 1, end: true, atEnd: +ED === +E, items: endTask ? [{ id: endTask.id, name: endTask.name, date: md(ED, t), done: endTask.done, late: endTask.late, ago: endTask.ago }] : [],
|
|
243
|
+
name: endTask ? endTask.name : '', date: md(ED, t), done: finished || !!(endTask && endTask.done), late: !finished && (over || !!clash || !!(endTask && endTask.late)) });
|
|
243
244
|
} else if (draft && E) ms.push({ x: X(E), n: 1, end: true, items: [], name: '', date: md(E, t), done: false, late: false, dash: true });
|
|
244
245
|
ms.sort((p, q) => p.x - q.x);
|
|
245
246
|
// the names, right to left (rule 3): centred on the ◇; one that would run into the next name aligns its right edge to its own ◇; one
|
|
@@ -277,7 +278,8 @@ export function lineOf(r, o = {}) {
|
|
|
277
278
|
const endTxt = end ? [end.date, end.late, end.words, end.slip].filter(Boolean).join(' · ') : '';
|
|
278
279
|
let lim = 100 - (endTxt ? wOf(endTxt) * 0.6 : 0);
|
|
279
280
|
for (let i = ms.length - 1; i >= 0; i--) {
|
|
280
|
-
|
|
281
|
+
// past its end: the end ◇ stands left of the corner, its date under it; a milestone before the end says its own date
|
|
282
|
+
const m = ms[i]; if (m.end && m.atEnd !== false && !(over && !clash && !finished)) continue;
|
|
281
283
|
const w = wOf(m.date) * 0.6;
|
|
282
284
|
if (m.x + w / 2 <= lim) { m.showDate = true; lim = m.x - w / 2; }
|
|
283
285
|
}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</div>
|
|
50
50
|
|
|
51
51
|
<!-- the ✦ strip (Iq8Overview): one finding at a time, its drafted move when it has one, Ask why, Not now and the dots that page through them -->
|
|
52
|
-
<div class="ins-strip ins-hero" id="insHero"><span class="sp" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z"/></svg></span><p class="t" id="insText" aria-live="polite"><b id="insEye"></b> <span id="brief">Reading the records.</span> <span id="insWhy"></span></p><span class="ins-hact" id="insAct"></span><a class="cz-chip gh" id="askWhy" href="/premium.html?ask=insights"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6h-6v6H4a1 1 0 0 1-1-1z"/></svg>Ask why</a><span class="ins-pg" id="insPg"></span></div>
|
|
52
|
+
<div class="ins-strip ins-hero" id="insHero"><span class="sp" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z"/></svg></span><p class="t" id="insText" aria-live="polite"><b id="insEye"></b> <span id="brief">Reading the records.</span> <span id="insWhy"></span><span class="ins-mv" id="insMv" hidden></span></p><span class="ins-hact" id="insAct"></span><a class="cz-chip gh" id="askWhy" href="/premium.html?ask=insights"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6h-6v6H4a1 1 0 0 1-1-1z"/></svg>Ask why</a><span class="ins-pg" id="insPg"></span></div>
|
|
53
53
|
<!-- the North Star and its inputs (Iq8Overview): drawn only when a KR metric record has role north-star -->
|
|
54
54
|
<section class="ins-ns" id="nsRow" aria-label="North Star" hidden></section>
|
|
55
55
|
<!-- what Claude drafted for this product (Iq8Suggest, Iq9Draft): shown only while a draft is running or waits for your ✓ -->
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Batch 16 item 1 (client): the ✦ strip's drafted move with ✓, Done and Undo; the weekly report proposal from page opens; a metric draft edited in place on Intelligence and on the program card; the type scale and the phone. The write routes are stubbed.",
|
|
3
|
+
"panels": ["intelligence-gaps-ui-test.js"],
|
|
4
|
+
"seconds": { "intelligence-gaps-ui-test.js": 20 }
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Batch 16 item 1: the three 0.429.0 Intelligence gaps in process: the ✦ strip's drafted move (chase, anchor, date) and its apply/undo routes, the inline edit of a metric draft, page opens and the weekly report proposal.",
|
|
3
|
+
"modules": ["intelligence-gaps.test.js"],
|
|
4
|
+
"seconds": { "intelligence-gaps.test.js": 3 }
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "The timeline-label hotfix: a milestone on the timeline says its own name and date (the Board row's end ◇ and label, the product lane, the hold clash, the initiative's stage line).",
|
|
3
|
+
"modules": ["milestone-label.test.js"],
|
|
4
|
+
"seconds": { "milestone-label.test.js": 2 }
|
|
5
|
+
}
|