create-pmos 0.328.0 → 0.330.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 +227 -1
- 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-insights-test.js +56 -25
- package/workspace/briefing-premium-test.js +3 -1
- package/workspace/changelog.json +672 -0
- package/workspace/guide/briefing-premium.md +10 -8
- package/workspace/lib/insights-premium.js +111 -26
- package/workspace/lib/kit-update.js +57 -8
- package/workspace/lib/premium-dashboards.js +25 -5
- package/workspace/lib/routes-insights-premium.js +19 -4
- package/workspace/lib/routes-premium-dashboards.js +12 -1
- package/workspace/lib/settings-store.js +3 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-report-read-test.js +4 -2
- package/workspace/premium-studio-chart-test.js +3 -3
- package/workspace/premium-studio-report-test.js +1 -1
- package/workspace/premium-studio-test.js +4 -4
- package/workspace/premium-vw-cal-test.js +3 -1
- package/workspace/premium-vw-slides-test.js +8 -4
- package/workspace/public/pm/c3-settings.js +1 -1
- package/workspace/public/pm/premium-insights.css +52 -0
- package/workspace/public/pm/premium-insights.js +129 -50
- package/workspace/public/pm/premium-shell.js +137 -3
- package/workspace/public/pm/premium-vw-cal.css +66 -42
- package/workspace/public/pm/premium-vw-cal.js +38 -17
- package/workspace/public/pm/premium.css +22 -0
- package/workspace/public/pm/premium.js +1 -1
- package/workspace/public/premium-insights.html +29 -19
- package/workspace/server.js +7 -2
- package/workspace/test-run.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.330.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -30,5 +30,231 @@
|
|
|
30
30
|
"gui",
|
|
31
31
|
"workflow",
|
|
32
32
|
"audit"
|
|
33
|
+
],
|
|
34
|
+
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.330.0",
|
|
37
|
+
"at": "2026-10-19T23:58:03.460Z",
|
|
38
|
+
"prs": [
|
|
39
|
+
{
|
|
40
|
+
"n": 925,
|
|
41
|
+
"s": "js timeGrid and monthGrid)."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"n": 917,
|
|
45
|
+
"s": "premium Settings opens with Updates. It shows the PMOS version you have, the newest published one, Check now, and Update when you are behind."
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"v": "0.329.0",
|
|
51
|
+
"at": "2026-10-19T23:44:17.780Z",
|
|
52
|
+
"prs": [
|
|
53
|
+
{
|
|
54
|
+
"n": 911,
|
|
55
|
+
"s": "the page opens with an insight: the strongest finding across the board's measures, the reason with its numbers, two more findings, and Ask PMOS why / See the chart. A measure that is short of its target with a target date ahead gets a projection, for example \"Partner activation will miss its 50%…"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"v": "0.328.0",
|
|
61
|
+
"at": "2026-10-19T23:33:48.003Z",
|
|
62
|
+
"prs": [
|
|
63
|
+
{
|
|
64
|
+
"n": 915,
|
|
65
|
+
"s": "both open as a tab in the premium viewer, showing only what PMOS holds (D53: no route reads either tool). - A copy linked to a PMOS document (Copies → Preview)."
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"v": "0.327.0",
|
|
71
|
+
"at": "2026-10-19T23:09:42.241Z",
|
|
72
|
+
"prs": [
|
|
73
|
+
{
|
|
74
|
+
"n": null,
|
|
75
|
+
"s": "Merge pull request #921 from wawancsui/claude/project-thread-86repq"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"v": "0.326.0",
|
|
81
|
+
"at": "2026-10-19T22:57:26.019Z",
|
|
82
|
+
"prs": [
|
|
83
|
+
{
|
|
84
|
+
"n": 908,
|
|
85
|
+
"s": "Open the backlog appears in the Board's Sprint dialog and on its sprint tab. It opens a viewer tab that lists the open sprints (active, then next) and then Backlog: the board's tickets that are in no sprint and not done."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"n": 916,
|
|
89
|
+
"s": "the Briefing's top bar has Record (an untitled note now) with an arrow listing today's meetings that can still be recorded, and New note. The first start asks \"Tell everyone first\"."
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"n": 910,
|
|
93
|
+
"s": "a whole-line HTML comment is kept in the page as a hidden block and is never drawn. A save writes it back exactly as it was."
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"v": "0.325.0",
|
|
99
|
+
"at": "2026-10-19T22:48:34.964Z",
|
|
100
|
+
"prs": [
|
|
101
|
+
{
|
|
102
|
+
"n": 912,
|
|
103
|
+
"s": "the Board's initiative dialog (popup mode) and the initiative's own dialog have Open the full record, and a task's dialog has Open the initiative. The initiative opens as a viewer tab with its record (lane, stage, anchor, status, owner, planned finish, progress), the next step, the checks with…"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"n": 913,
|
|
107
|
+
"s": "the Briefing's Calendar card has a Notes button (in the header on a wide screen; under the day on a phone, where the header has no room beside the full-calendar and fold buttons). It opens the dialog with every note, grouped as the console groups them (Portfolio, each board in the portfolio's…"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"v": "0.324.0",
|
|
113
|
+
"at": "2026-10-19T22:31:07.298Z",
|
|
114
|
+
"prs": [
|
|
115
|
+
{
|
|
116
|
+
"n": 914,
|
|
117
|
+
"s": "Read > Edit the slides (also on the report's document page) opens the same file as a Slides tab in the viewer. This is the prototype's full editor, which Wawan chose on 2026-10-19."
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"n": 918,
|
|
121
|
+
"s": "Present opens the presenter view from the prototype's conversation shell. It shows the slide, the next slide, the speaker notes and a timer you can restart."
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"v": "0.323.0",
|
|
127
|
+
"at": "2026-10-19T16:13:33.275Z",
|
|
128
|
+
"prs": [
|
|
129
|
+
{
|
|
130
|
+
"n": 907,
|
|
131
|
+
"s": "a button in the Calendar card's title row opens the calendar in the dialog, with Day, Week and Month, the arrows and Today. Week is a timeline with an all-day row, and in a narrow pane (a phone) it becomes a list of days."
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"v": "0.322.0",
|
|
137
|
+
"at": "2026-10-19T15:37:38.371Z",
|
|
138
|
+
"prs": [
|
|
139
|
+
{
|
|
140
|
+
"n": 904,
|
|
141
|
+
"s": "a Jira task opens its ticket in a second viewer tab. The tab shows the key, title, status, sprint, story points, priority, size, the draft's sections as markdown, the subtask count, links between tickets and the PRD, and one line that sends the rest to Jira."
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"v": "0.321.0",
|
|
147
|
+
"at": "2026-10-19T15:28:55.229Z",
|
|
148
|
+
"prs": [
|
|
149
|
+
{
|
|
150
|
+
"n": 903,
|
|
151
|
+
"s": "any markdown file (a PRD, a new doc, a report cycle) opens as one page in a viewer tab beside the dialog: title, byline from the edit log, a properties table from the front matter, then panels, tables, task lists, status labels, expand and code blocks. Page, Edit and Markdown are one control."
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"v": "0.320.0",
|
|
157
|
+
"at": "2026-10-19T15:12:24.143Z",
|
|
158
|
+
"prs": [
|
|
159
|
+
{
|
|
160
|
+
"n": 899,
|
|
161
|
+
"s": "the right pane can open other items as tabs beside its own detail, with at most 4 extra tabs. With no extra tab it looks exactly as before."
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"v": "0.319.0",
|
|
167
|
+
"at": "2026-10-19T14:50:54.311Z",
|
|
168
|
+
"prs": [
|
|
169
|
+
{
|
|
170
|
+
"n": 897,
|
|
171
|
+
"s": "My work has no calendar. The Calendar card on the Briefing does not change."
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"v": "0.318.0",
|
|
177
|
+
"at": "2026-10-19T14:41:50.138Z",
|
|
178
|
+
"prs": [
|
|
179
|
+
{
|
|
180
|
+
"n": 896,
|
|
181
|
+
"s": "every page has the same bar. On the left is where you are, plus one round Chat button with no label (on Insights it opens the Studio)."
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"v": "0.317.0",
|
|
187
|
+
"at": "2026-10-19T14:34:45.290Z",
|
|
188
|
+
"prs": [
|
|
189
|
+
{
|
|
190
|
+
"n": 895,
|
|
191
|
+
"s": "- Usage-limit hold. When a headless run fails with a usage or rate limit, the orchestrator records a hold until the reset time the error names (1 hour when none is named, 15 minutes for \"overloaded\")."
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"v": "0.316.0",
|
|
197
|
+
"at": "2026-10-19T14:01:52.906Z",
|
|
198
|
+
"prs": [
|
|
199
|
+
{
|
|
200
|
+
"n": 889,
|
|
201
|
+
"s": "- Keep-rate report. GET /api/orchestrator/keep-rate covers the last four weeks: per week the items decided, kept, returned and dropped, the keep rate, and the correction rate per Driver run."
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"n": 892,
|
|
205
|
+
"s": "5 body. Layout, colours and glass are unchanged."
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"v": "0.315.0",
|
|
211
|
+
"at": "2026-10-19T13:55:49.728Z",
|
|
212
|
+
"prs": [
|
|
213
|
+
{
|
|
214
|
+
"n": 884,
|
|
215
|
+
"s": "One full-width Work queue card under the add line, styled like the mockup's tray: one pill row of tabs (Today, Inbox, Agents, Upcoming, Someday, Kept, Done) with counts, rows in two columns, and arrow keys between tabs. Inbox shows what is new from Jira and Slack, then \"Added by you\", which still…"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"v": "0.314.0",
|
|
221
|
+
"at": "2026-10-19T13:42:07.408Z",
|
|
222
|
+
"prs": [
|
|
223
|
+
{
|
|
224
|
+
"n": 891,
|
|
225
|
+
"s": "Insights has a Board measures card with the same four tiles, drawn by the same code, over 8, 26 or 52 weeks. Press a measure on Insights to set or clear its target."
|
|
226
|
+
}
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"v": "0.313.0",
|
|
231
|
+
"at": "2026-10-19T13:29:15.565Z",
|
|
232
|
+
"prs": [
|
|
233
|
+
{
|
|
234
|
+
"n": 887,
|
|
235
|
+
"s": "the list shows the console's Needs you rows, in the console's order, from the same reads (GET /api/briefing, /api/brief-page, /api/needs). The header count, the dock and the bell use the same number."
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"v": "0.312.0",
|
|
241
|
+
"at": "2026-10-19T13:07:09.009Z",
|
|
242
|
+
"prs": [
|
|
243
|
+
{
|
|
244
|
+
"n": 885,
|
|
245
|
+
"s": "Both pages have one Calendar card. Monday to Friday is a strip on top, with the My work bars and the done and due blocks."
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"v": "0.311.0",
|
|
251
|
+
"at": "2026-10-19T13:00:39.372Z",
|
|
252
|
+
"prs": [
|
|
253
|
+
{
|
|
254
|
+
"n": 882,
|
|
255
|
+
"s": "\"), says plainly that no measure here has a target, and ends with an inline \"open Insights\" link to the same board's Insights. A tile that needs a look carries the mockup's chip (\"Needs a look\") and orange outline."
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
}
|
|
33
259
|
]
|
|
34
260
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Eval calibration log"
|
|
4
4
|
description: "Append-only record of every PM override of an evaluator verdict."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-10-19T23:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-19T23:58:00Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-10-19T23:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-19T23:58:00Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-10-19T23:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-19T23:58:00Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -31,7 +31,7 @@ const finish = async (code) => {
|
|
|
31
31
|
};
|
|
32
32
|
process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
33
33
|
|
|
34
|
-
const mk = (o) => IP.build(F.facts(o));
|
|
34
|
+
const mk = (o) => IP.build(F.facts(Object.assign({ pinned: 'all' }, o))); // All measures pinned, so the top card starts on every measure
|
|
35
35
|
const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'briefing-artifact.html');
|
|
36
36
|
|
|
37
37
|
(async () => {
|
|
@@ -95,20 +95,22 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
95
95
|
const ns = await p.evaluate(() => [...document.querySelectorAll('#dashBody .ngl, #dashBody .dplist .nempty')].map((e) => e.textContent.replace(/\s+/g, ' ').trim()));
|
|
96
96
|
ok('I4 a measure with one reading or none is listed with the record\'s reason and not drawn', ns[0] === 'No series recorded · 2' && /Partner NPS.*Only one reading is recorded\. It is not drawn\./.test(ns[1]) && /Monthly churn.*No reading is recorded yet\./.test(ns[2]), JSON.stringify(ns));
|
|
97
97
|
/* I5 dashboards */
|
|
98
|
-
const tabs = await p.evaluate(() => [...document.querySelectorAll('#
|
|
99
|
-
ok('I5 dashboards: all measures first, then the saved ones
|
|
100
|
-
await p.click('#
|
|
98
|
+
const tabs = await p.evaluate(() => [...document.querySelectorAll('#listRows [data-d]')].map((b) => b.querySelector('b').textContent + ':' + (b.parentElement.querySelector('[data-pin]') || { getAttribute: () => 'none' }).getAttribute('aria-pressed')));
|
|
99
|
+
ok('I5 dashboards: all measures first, then the saved ones, then the pillars the records name; the pinned one is marked, pillars cannot be pinned', tabs.join() === 'All measures:true,Weekly partner review:false,Growth:none,Reliability:none', tabs.join());
|
|
100
|
+
await p.click('#repBody [data-d="p:Reliability"]');
|
|
101
101
|
ok('I5 choosing a pillar shows only its charts and one count', (await p.evaluate(() => document.querySelectorAll('#dashBody .mch').length)) === 1 && /1 of 1.*on their line/.test(await txt('#dashBody .mhint')) && (await p.evaluate(() => document.querySelector('#dashBody .mprog').getAttribute('aria-valuenow'))) === '1');
|
|
102
|
-
await p.click('#
|
|
102
|
+
await p.click('#repBody [data-d="all"]');
|
|
103
103
|
const hint = await txt('#dashBody .mhint');
|
|
104
104
|
ok('I5 the card counts the measures behind their line from the records: 1 of 3 on their line', /1 of 3 on their line\. 2 are behind it\./.test(hint.replace(/\s+/g, ' ')), hint);
|
|
105
105
|
ok('I5 the dock counts the same two', (await txt('#dN')) === '2' && /measures off their line/.test(await txt('#dLab')) && /First Time to first call/.test(await txt('#dNext')));
|
|
106
106
|
/* I6 */
|
|
107
107
|
const fd = await p.evaluate(() => [...document.querySelectorAll('.nfd li')].map((li) => li.className + ': ' + li.textContent.replace(/\s+/g, ' ').trim()));
|
|
108
|
-
ok('I6 what stands out
|
|
109
|
-
ok('I6 no sentence
|
|
108
|
+
ok('I6 the pinned card says what else stands out on it, with the reason and its numbers', fd.length === 2 && /^miss: Partner activation will miss its 50% target on 31 Dec at this pace\. It is at 28% and moving 0\.53 points a week/.test(fd[0]) && /^course: Partner uptime/.test(fd[1]) && /Also on this dashboard/.test(await txt('#dashBody .nfd .label')), JSON.stringify(fd));
|
|
109
|
+
ok('I6 no sentence gives a cause', !fd.some((x) => /forecast|because|caused|expected to/i.test(x)));
|
|
110
|
+
const hero = await p.evaluate(() => ({ eye: document.querySelector('#insEye').textContent, head: document.querySelector('#brief').textContent, why: document.querySelector('#insWhy').textContent, more: [...document.querySelectorAll('#insMore button')].map((b) => b.textContent), acts: [...document.querySelectorAll('#insAct button')].map((b) => b.textContent), note: document.querySelector('#insNote').textContent }));
|
|
111
|
+
ok('L1 the insight leads the page: the strongest finding, its reason, two more and the method', /2 of 3 behind their line · readings to 15 Oct/.test(hero.eye) && hero.head === 'Time to first call will miss its 3 days target on 31 Dec unless it turns.' && /Over its last 4 readings it went from 8 days to 9 days/.test(hero.why) && hero.more.length === 2 && /Partner activation will miss/.test(hero.more[0]) && hero.acts.join() === 'Ask PMOS why,See the chart' && /straight line through its last four readings/.test(hero.note), JSON.stringify(hero));
|
|
110
112
|
/* I7 dialog */
|
|
111
|
-
await p.
|
|
113
|
+
await p.click('#insAct [data-open]'); await until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(500);
|
|
112
114
|
const dl = await p.evaluate(() => ({ title: document.querySelector('#dTitle').textContent, eye: document.querySelector('#dEye').textContent, kv: [...document.querySelectorAll('#oMain .kv2')].map((k) => k.textContent.replace(/\s+/g, ' ')).join(' | '), path: document.querySelector('#oMain .dpath').textContent, btn: document.querySelectorAll('#oMain button').length, hold: document.querySelector('#holdWhy').textContent, sw: [...document.querySelectorAll('#oMain [role=switch]')].map((b) => b.querySelector('b').textContent + ':' + b.getAttribute('aria-checked')).join(), inert: ['.rail', 'main.stage', '#dock'].every((s) => document.querySelector(s).inert) }));
|
|
113
115
|
ok('I7 a finding opens the standard dialog: the record\'s numbers, its readings with dates, its path, and only the dashboard switch as a press', dl.title === 'Time to first call' && /real data/.test(dl.eye) && /Target3 days by 31 Dec/.test(dl.kv) && /15 Oct9 days/.test(dl.kv) && dl.path === 'planning/records/kr-metrics.jsonl' && dl.btn === 1 && dl.sw === 'Weekly partner review:true' && /Nothing here changes a record/.test(dl.hold) && dl.inert, JSON.stringify(dl));
|
|
114
116
|
ok('I7 Escape closes it and focus returns', (await p.keyboard.press('Escape'), await until(() => p.evaluate(() => !document.querySelector('#dlg').classList.contains('on')))));
|
|
@@ -126,9 +128,11 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
126
128
|
await R.ctx.close();
|
|
127
129
|
}
|
|
128
130
|
/* I8 reports */
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
await p.click('#listSeg [data-f="rep"]'); await sleep(100);
|
|
132
|
+
const rp = await p.evaluate(() => ({ rows: [...document.querySelectorAll('#listRows [data-rep]')].map((r) => r.querySelector('.dmn b').textContent + ' / ' + r.querySelector('.s').textContent), note: document.querySelector('#cRep .mhint').textContent, cap: document.querySelector('#repCap').textContent, setups: document.querySelectorAll('#listRows [data-setup]').length, dash: document.querySelectorAll('#listRows [data-d]').length }));
|
|
133
|
+
ok('I8 the Reports filter lists the set-up reports, then the report files: cadence, slot, draft or issued', rp.rows.join() === 'biweekly · 14 Oct / Draft,monthly · 30 Sep / Issued 1 Oct' && rp.setups === 1 && rp.dash === 0 && /Nothing is sent from here/.test(rp.note) && rp.cap === '7', JSON.stringify(rp));
|
|
134
|
+
await p.click('#listSeg [data-f="all"]');
|
|
135
|
+
{ const R = await open(); await R.page.click('#listSeg [data-f="rep"]'); await R.page.locator('#listRows [data-rep]').first().click(); ok('I8 a report opens in the page\'s reader, not the console (premium-report-read R1)', await until(() => R.page.evaluate(() => document.querySelector('#dlg').classList.contains('rdrd') && document.querySelector('#dlg').classList.contains('on')), 5000) && /premium-insights\.html/.test(R.page.url()), R.page.url());
|
|
132
136
|
await R.page.click('#dClose'); await R.page.click('#repOpen'); ok('I8 the Reports tab link still opens the console to edit or issue', await until(() => /\/console\.html\?tab=rep/.test(R.page.url()), 5000), R.page.url()); await R.ctx.close(); }
|
|
133
137
|
/* I9 labels */
|
|
134
138
|
ok('I9 no demo label, and the foot says what is left out', !(await p.evaluate(() => /demo/i.test(document.querySelector('main.stage').textContent))) && /Left out: any measure no record holds/.test(await txt('#foot')) && /Board measures card/.test(await txt('#foot')) && /Real data/.test(await txt('#snap')));
|
|
@@ -136,7 +140,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
136
140
|
/* I10 empty */
|
|
137
141
|
{
|
|
138
142
|
const R = await open({ model: mk({ outcomes: [] }) });
|
|
139
|
-
ok('I10 with no KR metric the page says
|
|
143
|
+
ok('I10 with no KR metric the page says there is no insight yet, draws nothing, and the list still holds the report files', await R.page.evaluate(() => /No KR metric is recorded/.test(document.querySelector('#brief').textContent) && /No KR metric is recorded for this workspace/.test(document.querySelector('#dashBody').textContent) && document.querySelectorAll('#listRows [data-rep]').length === 2 && document.querySelectorAll('#dashBody .mch').length === 0 && /There is no insight yet/.test(document.querySelector('#brief').textContent) && document.querySelectorAll('#insAct button').length === 0));
|
|
140
144
|
await R.ctx.close();
|
|
141
145
|
const R2 = await open({ model: mk({ reportsOk: false, reports: [], missing: ['reports'] }) });
|
|
142
146
|
ok('I10 reports that could not be read are said to be unread, not empty', await R2.page.evaluate(() => /report files could not be read/.test(document.querySelector('#repBody').textContent) && /not read: reports/.test(document.querySelector('#snap').textContent)));
|
|
@@ -160,9 +164,9 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
160
164
|
const last = () => sent[sent.length - 1] || [null, {}];
|
|
161
165
|
const dlgOn = () => until(() => q.evaluate(() => document.querySelector('#dlg').classList.contains('on')));
|
|
162
166
|
const shut = async () => { for (let i = 0; i < 2 && await q.evaluate(() => document.querySelector('#dlg').classList.contains('on')); i++) { await q.keyboard.press('Escape'); await sleep(150); } await until(() => q.evaluate(() => !document.querySelector('#dlg').classList.contains('on'))); }; // a full-screen dialog leaves full screen on the first Escape
|
|
163
|
-
await q.click('#
|
|
167
|
+
await q.click('#repBody [data-d="pd-1"]'); await sleep(200);
|
|
164
168
|
const sv = await q.evaluate(() => ({ tiles: [...document.querySelectorAll('#dashBody .mch .mlab')].map((e) => e.firstChild.textContent), gone: [...document.querySelectorAll('#dashBody .dplist .nempty')].map((e) => e.textContent.replace(/\s+/g, ' ')), bar: document.querySelector('#dashBar').textContent }));
|
|
165
|
-
ok('R1 a saved dashboard draws its charts in its order and says which chart is gone, in its place', sv.tiles.join() === 'Partner activation,Time to first call' && sv.gone.length === 1 && /krm-gone.*No KR metric record is called krm-gone/.test(sv.gone[0]) && /
|
|
169
|
+
ok('R1 a saved dashboard draws its charts in its order and says which chart is gone, in its place', sv.tiles.join() === 'Partner activation,Time to first call' && sv.gone.length === 1 && /krm-gone.*No KR metric record is called krm-gone/.test(sv.gone[0]) && /Monday partner review.*Pin.*Back to All measures.*Edit/.test(sv.bar), JSON.stringify(sv));
|
|
166
170
|
await q.click('#pdEdit'); await dlgOn();
|
|
167
171
|
const chipv = (k) => q.evaluate((x) => (document.querySelector(`#oMain [data-st="chip|${x}"] b`) || {}).textContent || '', k);
|
|
168
172
|
await q.click('#oMain [data-st="chip|charts"]');
|
|
@@ -171,18 +175,18 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
171
175
|
await q.click('#stTr [data-st="mv|1|-1"]'); await q.click('#stTr [data-st="rm|2"]'); await q.click('#oMain [data-st="lib"]'); await q.click('#stLb [data-st="libc|krm-up"]');
|
|
172
176
|
await q.click('#oMain [data-st="chip|name"]'); await q.fill('#stI', 'Monday review'); await q.click('#oMain [data-st="save"]'); await sleep(400);
|
|
173
177
|
ok('R2 Save posts the dashboard with the new order, name and Main to the one save route', last()[0] === '/api/premium-dashboards/save' && JSON.stringify(last()[1]) === JSON.stringify({ ws: 'w1', board: 'w1', id: 'pd-1', name: 'Monday review', purpose: 'The measures the Monday partner review reads.', charts: ['krm-ttfc', 'krm-act', 'krm-up'], main: true }), JSON.stringify(last()));
|
|
174
|
-
await q.click('#pdNew'); await dlgOn(); await q.click('#oMain [data-st="save"]'); await sleep(200);
|
|
178
|
+
await q.click('#listNew'); await q.click('#pdNew'); await dlgOn(); await q.click('#oMain [data-st="save"]'); await sleep(200);
|
|
175
179
|
ok('R2 a new dashboard without a name says so and posts nothing', /Give the dashboard a name/.test(await qt('#stMsg')) && last()[1].id === 'pd-1');
|
|
176
180
|
answer = () => ({ ok: false, error: '“Weekly partner review” is already a dashboard on this board.' });
|
|
177
181
|
await q.click('#oMain [data-st="chip|name"]'); await q.fill('#stI', 'Weekly partner review'); await q.click('#oMain [data-st="chip|use"]'); await q.fill('#stI', 'x'); await q.click('#oMain [data-st="save"]'); await sleep(300);
|
|
178
182
|
ok('R7 the server\'s refusal is shown in words and the dialog stays open', /already a dashboard on this board/.test(await qt('#stMsg')) && await q.evaluate(() => document.querySelector('#dlg').classList.contains('on') && !document.querySelector('#oMain [data-st="save"]').disabled));
|
|
179
183
|
answer = (u, b) => ({ ok: true, dashboard: { id: b.id || 'pd-9' }, dashboards: [], setup: {}, drafted: { slot: '2026-10-23', path: 'planning/reports/release-readiness/2026-10-23.md' } });
|
|
180
184
|
await shut();
|
|
181
|
-
await q.click('#
|
|
185
|
+
await q.click('#pdBack'); await q.locator('#dashBody .lk[data-open="ins:krm-up"]').click(); await dlgOn(); await q.click('#oMain [data-pdsw="pd-1"]'); await sleep(300);
|
|
182
186
|
ok('R3 the chart dialog\'s switch saves that dashboard with the chart added', last()[0] === '/api/premium-dashboards/save' && JSON.stringify(last()[1].charts) === JSON.stringify(['krm-act', 'krm-ttfc', 'krm-gone', 'krm-up']) && /Added to Weekly partner review/.test(await qt('#pdSwM')), JSON.stringify(last()));
|
|
183
187
|
await shut();
|
|
184
188
|
const groups = await q.evaluate(() => [...document.querySelectorAll('#repBody .ngrp > .label')].map((e) => e.textContent));
|
|
185
|
-
ok('R1
|
|
189
|
+
ok('R1 your requests and what PMOS found stay at the top of the list', groups.join() === 'Your requests · 2,Found in your work · 1', groups.join());
|
|
186
190
|
await q.click('#repFound .dmo'); await dlgOn();
|
|
187
191
|
ok('R2 a finding opens with its proposal and what PMOS saw', /ScheduleWeekly, Thursdays 09:00/.test(await qt('#oMain .kv2')) && (await q.evaluate(() => document.querySelectorAll('#oMain .pdev li').length)) === 2);
|
|
188
192
|
const n0 = sent.length;
|
|
@@ -194,7 +198,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
194
198
|
await q.click('#repFound .dmo'); await dlgOn(); await q.click('#oMain [data-rx="set"]'); await sleep(400);
|
|
195
199
|
ok('R2 Set it up posts the finding and says where the first draft is', last()[0] === '/api/report-setups/setup' && last()[1].finding === 'f-1' && /first draft is planning\/reports\/release-readiness\/2026-10-23\.md/.test(await qt('#toast')), JSON.stringify(last()));
|
|
196
200
|
await q.fill('#repAskIn', 'A weekly risk note'); await q.click('#repAskGo'); await sleep(300);
|
|
197
|
-
ok('R3 the Ask box posts the request and says it only proposes', last()[0] === '/api/report-setups/ask' && last()[1].text === 'A weekly risk note' && /Nothing is set up yet/.test(await qt('#toast')) && /only proposes/.test(await qt('#
|
|
201
|
+
ok('R3 the Ask box posts the request and says it only proposes', last()[0] === '/api/report-setups/ask' && last()[1].text === 'A weekly risk note' && /Nothing is set up yet/.test(await qt('#toast')) && /only proposes/.test(await qt('#cRep .nask-n')), JSON.stringify(last()));
|
|
198
202
|
await q.click('#repAsks [data-ask="a-1"]'); await dlgOn(); await q.click('#oMain [data-rx="chg"]'); await sleep(100);
|
|
199
203
|
ok('R3 Change it needs words first', /Say what to change/.test(await qt('#rxM')));
|
|
200
204
|
await q.fill('#rxChg', 'quarterly'); await q.click('#oMain [data-rx="chg"]'); await sleep(300);
|
|
@@ -202,7 +206,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
202
206
|
await q.click('#repAsks [data-ask="a-2"]'); await dlgOn();
|
|
203
207
|
ok('R3 a running request says it is working and offers only Cancel', /background run is working/.test(await qt('#oMain')) && (await q.evaluate(() => [...document.querySelectorAll('#oMain [data-rx]')].map((b) => b.dataset.rx).join())) === 'cancel');
|
|
204
208
|
await shut();
|
|
205
|
-
await q.click('#
|
|
209
|
+
await q.click('#repBody [data-setup="partner-update"]'); await dlgOn();
|
|
206
210
|
const su = await q.evaluate(() => ({ kv: document.querySelector('#oMain .kv2').textContent, acts: [...document.querySelectorAll('#oMain [data-rx]')].map((b) => b.dataset.rx).join() }));
|
|
207
211
|
ok('R4 a set-up report shows its schedule and next draft, with Draft it now, Pause and Shape it in the Studio', /ScheduleEvery other Monday at 09:00/.test(su.kv) && /Next draft26 Oct/.test(su.kv) && su.acts === 'draft,pause,studio', JSON.stringify(su));
|
|
208
212
|
await q.click('#oMain [data-rx="pause"]'); await sleep(300);
|
|
@@ -212,10 +216,37 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
212
216
|
await R.ctx.close();
|
|
213
217
|
}
|
|
214
218
|
|
|
219
|
+
/* insights-one-list: the pinned card, the pin press, the menu and the pages (PRD L4, L5) */
|
|
220
|
+
{
|
|
221
|
+
const R = await open({ model: mk({ pinned: undefined }) }), q = R.page, sent = [];
|
|
222
|
+
await q.route('**/api/premium-dashboards/pin', (r) => { const b = JSON.parse(r.request().postData() || '{}'); sent.push(b); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, pinned: b.id }) }); });
|
|
223
|
+
const top = await q.evaluate(() => ({ h: document.querySelector('#hDash').textContent, tag: document.querySelector('#dashTag').textContent, tiles: document.querySelectorAll('#dashBody .mch').length, pin: document.querySelector('#pdPin').textContent }));
|
|
224
|
+
ok('L4 the saved main dashboard is the pinned one and shows at the top, with Unpin', top.h === 'Weekly partner review' && top.tag === 'Pinned' && top.tiles === 2 && top.pin === 'Unpin', JSON.stringify(top));
|
|
225
|
+
R.setModel(mk({ pinned: 'all' })); await q.click('#repBody [data-pin="all"]'); await sleep(300);
|
|
226
|
+
ok('L4 after Pin, the pinned dashboard is the top card', await until(() => q.evaluate(() => document.querySelector('#hDash').textContent === 'All measures' && document.querySelector('#dashTag').textContent === 'Pinned')));
|
|
227
|
+
ok('L4 the pin on a row posts that dashboard to the pin route, and nothing else', sent.length === 1 && sent[0].id === 'all' && sent[0].ws === 'w1' && sent[0].board === 'w1' && R.posts.every((x) => x === 'POST /api/premium-dashboards/pin'), JSON.stringify([sent, R.posts]));
|
|
228
|
+
R.setModel(mk({ pinned: null })); await q.click('#pdPin'); await sleep(300);
|
|
229
|
+
ok('L4 Unpin posts no dashboard, and with nothing pinned the top card shows All measures as not pinned, with Pin', sent[sent.length - 1].id === null && await until(() => q.evaluate(() => document.querySelector('#hDash').textContent === 'All measures' && document.querySelector('#dashTag').textContent === 'Not pinned' && document.querySelector('#pdPin').textContent === 'Pin')), JSON.stringify(sent));
|
|
230
|
+
await q.click('#listNew');
|
|
231
|
+
const mn = await q.evaluate(() => ({ open: !document.querySelector('#listMenu').hidden, items: [...document.querySelectorAll('#listMenu button')].map((b) => b.textContent).join(), exp: document.querySelector('#listNew').getAttribute('aria-expanded') }));
|
|
232
|
+
await q.keyboard.press('Escape');
|
|
233
|
+
ok('L5 New offers Dashboard or Report, and Escape closes it', mn.open && mn.items === 'Dashboard,Report' && mn.exp === 'true' && await q.evaluate(() => document.querySelector('#listMenu').hidden), JSON.stringify(mn));
|
|
234
|
+
const pg1 = await q.evaluate(() => ({ rows: document.querySelectorAll('#listRows .dmr').length, pager: document.querySelector('#listPager').textContent }));
|
|
235
|
+
await q.click('#listPager [data-pg="2"]'); await sleep(100);
|
|
236
|
+
const pg2 = await q.evaluate(() => ({ rows: [...document.querySelectorAll('#listRows .dmo b')].map((b) => b.textContent), cur: document.querySelector('#listPager [aria-current="page"]').textContent }));
|
|
237
|
+
ok('L5 six rows to a page with page numbers; page 2 holds the rest', pg1.rows === 6 && /1–6 of 7/.test(pg1.pager) && pg2.cur === '2' && pg2.rows.join() === 'monthly · 30 Sep', JSON.stringify([pg1, pg2]));
|
|
238
|
+
await R.ctx.close();
|
|
239
|
+
const lead = { 'planning/reports/biweekly/2026-10-14.md': 'Activation slipped to 28% this fortnight.' };
|
|
240
|
+
const R2 = await open({ model: mk({ leads: lead }) });
|
|
241
|
+
const ln = await R2.page.evaluate(() => ({ dash: [...document.querySelectorAll('#listRows [data-d] .nil')].map((e) => e.textContent), rep: [...document.querySelectorAll('#listRows [data-rep] .nil')].map((e) => e.textContent), su: document.querySelector('#listRows [data-setup] small').textContent }));
|
|
242
|
+
ok('L6 each dashboard row shows its top finding, a report row quotes its file, a setup with no file says no draft is written yet', ln.dash[0] === 'Time to first call will miss its 3 days target on 31 Dec unless it turns.' && ln.rep[0] === '“Activation slipped to 28% this fortnight.”' && /^No draft is written yet/.test(ln.su), JSON.stringify(ln));
|
|
243
|
+
await R2.ctx.close();
|
|
244
|
+
}
|
|
245
|
+
|
|
215
246
|
/* I11 floors */
|
|
216
247
|
for (const theme of ['light', 'dark']) {
|
|
217
248
|
const R = await open({ w: 390, h: 844, theme }), q = R.page;
|
|
218
|
-
const m = await q.evaluate(() => { const small = [...document.querySelectorAll('#
|
|
249
|
+
const m = await q.evaluate(() => { const small = [...document.querySelectorAll('#listSeg button, #listNew, #listPager button, #repBody .npin, #insAct button, #insMore button, #dashBar button, #dashBody .lk, #dashBody .nfr, #repBody .dmo, #repBody .lk, #repBody input, #repAskGo, #crSw')].filter((b) => !b.closest('[hidden]') && b.getBoundingClientRect().height > 0 && b.getBoundingClientRect().height < 44).map((b) => b.className + ':' + Math.round(b.getBoundingClientRect().height)); return { over: document.documentElement.scrollWidth > innerWidth + 1, small }; });
|
|
219
250
|
ok(`I11 at 390 px (${theme}) the page has no sideways scroll and every control is 44 px`, !m.over && m.small.length === 0, JSON.stringify(m));
|
|
220
251
|
await q.locator('#dashBody .nfr').first().click(); await until(() => q.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(900);
|
|
221
252
|
const g = await q.evaluate(() => { const r = document.querySelector('#dlg').getBoundingClientRect(); return { l: Math.round(r.left), w: Math.round(r.width), vw: innerWidth, tabs: getComputedStyle(document.querySelector('#dTabs')).display }; });
|
|
@@ -259,10 +290,10 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
259
290
|
await pg.goto(base2 + '/premium-insights.html');
|
|
260
291
|
ok('E7 the real page draws that chart with the record\'s numbers and no script error', await until(() => pg.evaluate(() => { const t = document.querySelector('#dashBody .mch'); return !!t && t.querySelector('.mval').textContent === '30%' && /Partner activation/.test(t.textContent); }), 20000) && errs.length === 0, errs.join(' | '));
|
|
261
292
|
/* briefing-premium-reports against the real server: New dashboard, Save, the switch, then the ledger answers it back */
|
|
262
|
-
await pg.click('#pdNew'); await until(() => pg.evaluate(() => document.querySelector('#dlg').classList.contains('on')));
|
|
293
|
+
await pg.click('#listNew'); await pg.click('#pdNew'); await until(() => pg.evaluate(() => document.querySelector('#dlg').classList.contains('on')));
|
|
263
294
|
await pg.click('#oMain [data-st="chip|name"]'); await pg.fill('#stI', 'Partner review'); await pg.click('#oMain [data-st="chip|use"]'); await pg.fill('#stI', 'The Monday partner review.');
|
|
264
295
|
await pg.click('#stLb [data-st="libc|' + m.charts[0].id + '"]'); await pg.click('#oMain [data-st="chip|main"]'); await pg.click('#stTr [data-st="set|main|1"]'); await pg.click('#oMain [data-st="save"]');
|
|
265
|
-
ok('E8 a dashboard made on the real page is saved and drawn
|
|
296
|
+
ok('E8 a dashboard made on the real page as the main one is saved, pinned and drawn at the top', await until(() => pg.evaluate(() => !document.querySelector('#dlg').classList.contains('on') && document.querySelector('#hDash').textContent === 'Partner review' && document.querySelector('#dashTag').textContent === 'Pinned' && document.querySelectorAll('#dashBody .mch').length === 1), 10000), await pg.evaluate(() => (document.querySelector('#pdM') || {}).textContent + ' / ' + document.querySelector('#hDash').textContent + ' ' + document.querySelector('#dashTag').textContent));
|
|
266
297
|
const j2 = await (await fetch(base2 + '/api/insights-premium')).json(), d2 = j2.model.dashboards.find((d) => d.saved);
|
|
267
298
|
ok('E8 the model reads it back from the ledger', !!d2 && d2.name === 'Partner review' && d2.main && d2.charts.join() === m.charts[0].id, JSON.stringify(d2));
|
|
268
299
|
const H = await T.pressHeaders(base2), body = JSON.stringify({ ws: m.board.ws, board: m.board.id, name: 'From an agent', purpose: 'x', charts: [] });
|
|
@@ -276,9 +307,9 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
276
307
|
/* I11 fidelity against the mockup */
|
|
277
308
|
if (!fs.existsSync(MOCKUP)) ok('I11 the mockup is in the repository', false, MOCKUP);
|
|
278
309
|
else {
|
|
279
|
-
const PAIRS = [['rail', '.rail', '.rail'], ['card', '.nlc .card', '
|
|
310
|
+
const PAIRS = [['rail', '.rail', '.rail'], ['card', '.nlc .card', '#cDash'], ['heading', '#hNd', '#hDash'], ['band', '.nfd', '.nfd'], ['bandlabel', '.nfd .label', '.nfd .label'], ['finding', '.nfd .nfr', '.nfd .nfr'], ['findtext', '.nfd .nft', '.nfd .nft'], ['dot', '.nfd .nfdot', '.nfd .nfdot'],
|
|
280
311
|
['hint', '.mhint', '.mhint'], ['grid', '.ngrid', '.ngrid'], ['tile', '.ngrid .mt1', '.ngrid .mt1'], ['tlabel', '.ngrid .mlab', '.ngrid .mlab'], ['chip', '.ngrid .mchip', '.ngrid .mchip'], ['value', '.ngrid .mval', '.ngrid .mval'], ['caption', '.ngrid .mwk', '.ngrid .mwk'],
|
|
281
|
-
['foot', '.ngrid .mfoot', '.ngrid .mfoot'], ['link', '.ntf .lk', '.ntf .lk'], ['repcard', '.nlr .card', '
|
|
312
|
+
['foot', '.ngrid .mfoot', '.ngrid .mfoot'], ['link', '.ntf .lk', '.ntf .lk'], ['repcard', '.nlr .card', '#cRep'], ['dock', '.dock', '.dock']];
|
|
282
313
|
const SKIP_W = ['card', 'band', 'bandlabel', 'finding', 'findtext', 'hint', 'tile', 'tlabel', 'chip', 'value', 'caption', 'foot', 'link', 'heading', 'repcard', 'grid'];
|
|
283
314
|
const PROPS = ['fontSize', 'fontWeight', 'fontFamily', 'color', 'backgroundColor', 'borderRadius', 'paddingTop', 'paddingLeft', 'letterSpacing', 'lineHeight', 'boxShadow', 'backdropFilter', 'borderTopColor'];
|
|
284
315
|
const grab = (pg, which) => pg.evaluate(([pairs, props, idx]) => { const o = {}; for (const pr of pairs) { const n = pr[0], s0 = pr[idx]; const s = (n === 'rail' || n === 'dock') ? s0 : 'main.stage:not([hidden]) ' + s0; const e = document.querySelector(s); if (!e) { o[n] = null; continue; } const cs = getComputedStyle(e), r = e.getBoundingClientRect(), v = { left: Math.round(r.left), width: Math.round(r.width) }; props.forEach((k) => { v[k] = cs[k]; }); o[n] = v; } return o; }, [PAIRS, PROPS, which]);
|
|
@@ -294,7 +325,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
294
325
|
if (!a[n] || !c[n]) { diffs.push(n + ' missing'); continue; }
|
|
295
326
|
for (const k of Object.keys(a[n])) {
|
|
296
327
|
const geom = k === 'left' || k === 'width';
|
|
297
|
-
if (geom && (SKIP_W.includes(n) && k === 'width' || ['findtext', 'tlabel', 'chip', 'value', 'caption', 'foot', 'link', 'dot', 'finding', 'hint', 'heading'].includes(n) && k === 'left')) continue;
|
|
328
|
+
if (geom && (SKIP_W.includes(n) && k === 'width' || ['findtext', 'tlabel', 'chip', 'value', 'caption', 'foot', 'link', 'dot', 'finding', 'hint', 'heading', 'repcard'].includes(n) && k === 'left')) continue;
|
|
298
329
|
if (geom ? Math.abs(a[n][k] - c[n][k]) > 2 : a[n][k] !== c[n][k]) diffs.push(`${n}.${k} ${a[n][k]} | ${c[n][k]}`);
|
|
299
330
|
}
|
|
300
331
|
}
|
|
@@ -123,7 +123,9 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
123
123
|
await p.click('#settingsBtn');
|
|
124
124
|
const drawn = await until(() => p.evaluate(() => document.querySelectorAll('#oMain .sr').length > 0), 8000);
|
|
125
125
|
const labs = await p.evaluate(() => [...document.querySelectorAll('#oMain .label')].map((x) => x.textContent));
|
|
126
|
-
ok('S2 the dialog has
|
|
126
|
+
ok('S2 the dialog has Updates and What\'s new (premium-updates), then the two choices, Workspaces and Connectors', drawn && labs.join() === "Updates,What's new,Workspaces,Connectors", labs.join());
|
|
127
|
+
const upd = await until(() => p.evaluate(() => { const b = document.querySelector('#oMain [data-upd="check"]'); return !!b && /PMOS/.test(document.querySelector('#oMain .updb').textContent); }), 6000);
|
|
128
|
+
ok('S2 premium-updates: Updates names the installed PMOS and offers Check now; nothing asked the registry by itself', upd && !A.reqs.some((r) => /\/api\/kit\/check/.test(r)), A.reqs.filter((r) => /kit/.test(r)).join());
|
|
127
129
|
const sw = await p.evaluate(() => { const b = document.querySelector('#oMain [data-src="mail"]'); return b ? b.getAttribute('aria-checked') : null; });
|
|
128
130
|
await p.click('#oMain [data-src="mail"]');
|
|
129
131
|
const flipped = await until(() => p.evaluate((v) => document.querySelector('#oMain [data-src="mail"]').getAttribute('aria-checked') !== v, sw), 6000);
|