create-pmos 0.424.0 → 0.426.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 +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/board-deliveries-test.js +153 -0
- package/workspace/board-programs-test.js +60 -36
- package/workspace/board-shot.js +4 -3
- package/workspace/briefing-premium-board-test.js +9 -6
- package/workspace/briefing-premium-insights-test.js +31 -15
- package/workspace/briefing-premium-products-test.js +46 -43
- package/workspace/calm-timeline-test.js +190 -0
- package/workspace/changelog.json +24 -0
- package/workspace/ev-everywhere-test.js +3 -1
- package/workspace/guide/briefing-premium.md +3 -2
- package/workspace/guide/claude-proposes.md +16 -1
- package/workspace/guide/home.md +2 -2
- package/workspace/guide/index.md +1 -0
- package/workspace/guide/notes.md +39 -1
- package/workspace/guide/present-in-a-meeting.md +57 -0
- package/workspace/guide/programs.md +4 -3
- package/workspace/lib/board-premium.js +3 -1
- package/workspace/lib/briefing-premium-products.js +18 -4
- package/workspace/lib/chat-file-locate.js +40 -2
- package/workspace/lib/engine/boards.js +8 -2
- package/workspace/lib/idle-close.js +60 -0
- package/workspace/lib/loose-proposals.js +302 -0
- package/workspace/lib/meeting-focus.js +64 -14
- package/workspace/lib/my-work-premium.js +1 -1
- package/workspace/lib/proposal-runs.js +77 -2
- package/workspace/lib/propose-cli.js +42 -1
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-boards.js +16 -4
- package/workspace/lib/routes-brief-page.js +9 -1
- package/workspace/lib/routes-briefing-premium.js +19 -0
- package/workspace/lib/routes-loose.js +210 -0
- package/workspace/lib/routes-meeting-focus.js +28 -6
- package/workspace/lib/routes-pm-items.js +27 -17
- package/workspace/lib/settings-store.js +2 -1
- package/workspace/lib/task-cli.js +18 -11
- package/workspace/milestone-pins-test.js +170 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +2 -1
- package/workspace/premium-briefing-depth-test.js +2 -2
- package/workspace/premium-chat-term-test.js +13 -2
- package/workspace/premium-core-doc-issue-test.js +1 -1
- package/workspace/premium-rec-now-test.js +153 -0
- package/workspace/premium-rec-tab-test.js +167 -0
- package/workspace/product-lane-test.js +30 -17
- package/workspace/public/pm/bd-acts.js +6 -3
- package/workspace/public/pm/bd-deliveries.js +218 -0
- package/workspace/public/pm/bd-pin-card.css +16 -0
- package/workspace/public/pm/bd-pin-card.js +80 -0
- package/workspace/public/pm/bd-pins.js +33 -0
- package/workspace/public/pm/bd-pop.js +2 -0
- package/workspace/public/pm/bd-prog.js +5 -4
- package/workspace/public/pm/bd-span.js +140 -102
- package/workspace/public/pm/cozy-aud.css +9 -0
- package/workspace/public/pm/cozy-aud.js +80 -0
- package/workspace/public/pm/cozy-board.css +73 -11
- package/workspace/public/pm/cozy-home.css +16 -1
- package/workspace/public/pm/cozy-live-pill.js +3 -0
- package/workspace/public/pm/cozy-pick.css +41 -0
- package/workspace/public/pm/cozy-pick.js +134 -0
- package/workspace/public/pm/cozy-rec-bridge.js +32 -0
- package/workspace/public/pm/cozy-rec-now.css +104 -0
- package/workspace/public/pm/cozy-rec-now.js +330 -0
- package/workspace/public/pm/cozy-rec-present.css +69 -0
- package/workspace/public/pm/cozy-rec-present.js +467 -0
- package/workspace/public/pm/cozy-rec-tab.css +90 -0
- package/workspace/public/pm/cozy-rec-tab.js +219 -0
- package/workspace/public/pm/cozy-settings.js +8 -2
- package/workspace/public/pm/cozy-today.css +4 -0
- package/workspace/public/pm/home-app.js +51 -22
- package/workspace/public/pm/home-data.js +5 -3
- package/workspace/public/pm/home-list.js +63 -15
- package/workspace/public/pm/home-more.js +2 -31
- package/workspace/public/pm/home-today.js +19 -9
- package/workspace/public/pm/ini-tasks.js +4 -1
- package/workspace/public/pm/live-model.js +1 -1
- package/workspace/public/pm/loose-props.css +54 -0
- package/workspace/public/pm/loose-props.js +262 -0
- package/workspace/public/pm/premium-board.js +65 -30
- package/workspace/public/pm/premium-insights.js +42 -24
- package/workspace/public/pm/premium-meeting.js +17 -4
- package/workspace/public/pm/premium-mtg-present.js +4 -3
- package/workspace/public/pm/premium-report-read.js +2 -0
- package/workspace/public/pm/premium-vw-mtg.js +15 -7
- package/workspace/public/pm/rec-state.js +13 -5
- package/workspace/public/pm/rec-tab-core.js +92 -0
- package/workspace/public/pm/term-view.js +81 -10
- package/workspace/public/pm/view-notes.js +9 -0
- package/workspace/public/premium-aud.html +22 -0
- package/workspace/public/premium-board.html +2 -0
- package/workspace/public/premium-insights.html +2 -1
- package/workspace/public/premium-rec.html +30 -0
- package/workspace/public/premium.html +1 -0
- package/workspace/rec-present-test.js +229 -0
- package/workspace/server.js +116 -7
- package/workspace/skills/loose-propose.skill +39 -0
- package/workspace/task-milestones-test.js +15 -6
- package/workspace/test-lists/board-deliveries.json +13 -0
- package/workspace/test-lists/calm-timeline.json +5 -0
- package/workspace/test-lists/loose-props.json +9 -0
- package/workspace/test-lists/milestone-pins.json +6 -0
- package/workspace/test-lists/rec-now.json +6 -0
- package/workspace/test-lists/rec-present.json +13 -0
- package/workspace/test-lists/recording-tab.json +13 -0
- package/workspace/timeline-holds-test.js +44 -42
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Feedback batch 13 item 4 slice B, choose which milestones the Board timeline shows (XcalmA5Milestones): a task-pin line per milestone, the ◇ card with pin toggles, Filter Pinned · All · None. The modules suite reads the task-pin lines and the rule; the panels suite drives the Board in a browser.",
|
|
3
|
+
"modules": ["milestone-pins.test.js"],
|
|
4
|
+
"panels": ["milestone-pins-test.js"],
|
|
5
|
+
"seconds": { "milestone-pins.test.js": 6, "milestone-pins-test.js": 30 }
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Batch 12 item 1, slice S2: the recording tab's Now panel and live transcript. The unit suite covers the screen text and Raise now items in the meeting companion (lib/meeting-focus.js), POST /api/meeting-focus/raise, and the panel's pure model and markup (public/pm/cozy-rec-now.js); the browser suite mounts the panel in the real recording tab (room, shared screen, ask Claude, transcript, phone).",
|
|
3
|
+
"modules": ["rec-now.test.js"],
|
|
4
|
+
"panels": ["premium-rec-now-test.js"],
|
|
5
|
+
"seconds": { "rec-now.test.js": 2, "premium-rec-now-test.js": 25 }
|
|
6
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Batch 12 item 1, S3: Present in the recording tab (the presenter view, the audience tab, a shared window, a deck's Present while recording).",
|
|
3
|
+
"panels": [
|
|
4
|
+
"rec-present-test.js"
|
|
5
|
+
],
|
|
6
|
+
"modules": [
|
|
7
|
+
"rec-present.test.js"
|
|
8
|
+
],
|
|
9
|
+
"seconds": {
|
|
10
|
+
"rec-present-test.js": 60,
|
|
11
|
+
"rec-present.test.js": 1
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Batch 12 item 1, slice S1: a meeting records in its own tab (premium-rec.html); every other page shows a snippet.",
|
|
3
|
+
"panels": [
|
|
4
|
+
"premium-rec-tab-test.js"
|
|
5
|
+
],
|
|
6
|
+
"modules": [
|
|
7
|
+
"rec-tab.test.js"
|
|
8
|
+
],
|
|
9
|
+
"seconds": {
|
|
10
|
+
"premium-rec-tab-test.js": 60,
|
|
11
|
+
"rec-tab.test.js": 1
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
* XtiAGrill). Serves the real page from the real server; GET /api/board-premium answers a board built by lib/board-premium.js from rows that carry
|
|
5
5
|
* the holds and the plain gaps lib/routes-boards.js gives (lib/hold-spans.js folds them; hold-spans.test.js checks the fold). The page's clock is
|
|
6
6
|
* the fixture's (17 Oct 2026). POST /api/lifecycle is answered here and its bodies are kept, so a press is checked by what it would write.
|
|
7
|
-
* A the bar breaks:
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* A the bar breaks: the hold is the gap's hairline (batch 13 item 4, calmer timeline: no dotted line, no ⏸, no return date beside it); the done
|
|
8
|
+
* part skips the gap; a plain gap just breaks
|
|
9
|
+
* L the legend's hairline key only while a gap or a hold is drawn
|
|
10
|
+
* P the hold's press: how long, why, the dates; Resume now writes active; the date icon opens a date field that writes on-hold with the new date
|
|
10
11
|
* H hard cases: no return date (dotted to today, the rest faded, the date field open), passed (late colour), two holds, return after Deliver
|
|
11
12
|
* E the edge tab ahead names the return date · N a hold narrower than 8 px closes up (5 yr) · G the program line is dotted where all members wait
|
|
12
|
-
* M the phone keeps the
|
|
13
|
+
* M the phone keeps the hold's hairline and its press
|
|
13
14
|
* X no activity (batch 11 item 13; XgapA1Board, XgapAHard, XgapA3Phone, XgapAGrill): a plain gap is a hairline with its words, split at today; a hold
|
|
14
15
|
* wins for its dates; » for a skipped stage between two dated ones (on the gap, or at the joint), none at the ends; a narrow » goes to the bar's
|
|
15
16
|
* title; a future gap's press offers + New task with its dates; the legend keys only while drawn; the phone sheet lists the gap and the skip
|
|
@@ -82,12 +83,12 @@ const ROWS = [
|
|
|
82
83
|
const pc = (el) => parseFloat(el.style.left);
|
|
83
84
|
return {
|
|
84
85
|
bars: [...r.querySelectorAll('.tg-bar')].map((b) => ({ l: pc(b), w: parseFloat(b.style.width), cls: b.className, done: parseFloat(b.querySelector('b').style.width) })),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
ho: [...r.querySelectorAll('.tg-ng.ho')].map((g) => ({ l: pc(g), w: parseFloat(g.style.width), cls: g.className, tag: g.tagName, label: g.getAttribute('aria-label') })),
|
|
87
|
+
old: r.querySelectorAll('.tg-gap, .tg-pz, .tg-hl').length,
|
|
88
|
+
end: (r.querySelector('.tg-end') || {}).className || '', lab: [...r.querySelectorAll('.tg-endl')].map((x) => x.textContent.replace(/\s+/g, ' ').trim() + ' | ' + x.getAttribute('title')),
|
|
89
|
+
tone: [...r.querySelectorAll('.tg-endl > b')].map((x) => x.className),
|
|
89
90
|
tabs: [...r.querySelectorAll('.tg-edge')].map((b) => b.dataset.edge + ':' + b.textContent.trim()),
|
|
90
|
-
ng: [...r.querySelectorAll('.tg-ng')].map((b) => ({ tag: b.tagName, label: b.getAttribute('aria-label') || '', sk: !!b.querySelector('.tg-sk') })),
|
|
91
|
+
ng: [...r.querySelectorAll('.tg-ng:not(.ho)')].map((b) => ({ tag: b.tagName, label: b.getAttribute('aria-label') || '', sk: !!b.querySelector('.tg-sk') })),
|
|
91
92
|
};
|
|
92
93
|
}, title);
|
|
93
94
|
|
|
@@ -95,48 +96,48 @@ const ROWS = [
|
|
|
95
96
|
{
|
|
96
97
|
const { ctx, page: p, errors, posts } = await open();
|
|
97
98
|
const otp = await rowOf(p, 'Email OTP (passwordless login)');
|
|
98
|
-
ok('A a hold breaks the bar: two pieces with square inner ends,
|
|
99
|
-
&& /^On hold, Oct 12 to Mar 1, 2027, waits on the SMS vendor contract\. Open the hold$/.test(otp.
|
|
100
|
-
ok('A the
|
|
99
|
+
ok('A a hold breaks the bar: two pieces with square inner ends, the gap\'s hairline between them as one press with the hold in its name (batch 13 item 4)', otp && otp.bars.length === 2 && /xr/.test(otp.bars[0].cls) && /xl/.test(otp.bars[1].cls) && otp.ho.length === 1 && otp.ho[0].tag === 'BUTTON' && otp.old === 0
|
|
100
|
+
&& /^On hold, Oct 12 to Mar 1, 2027, waits on the SMS vendor contract\. Open the hold$/.test(otp.ho[0].label), JSON.stringify(otp));
|
|
101
|
+
ok('A the hairline runs from the hold to the return date, where the bar starts again; no date beside it (its hover and card say it)', otp && Math.abs(otp.ho[0].l - (otp.bars[0].l + otp.bars[0].w)) < 0.2 && Math.abs(otp.bars[1].l - (otp.ho[0].l + otp.ho[0].w)) < 0.2 && otp.old === 0, JSON.stringify(otp));
|
|
101
102
|
ok('A the done part fills the pieces in order and skips the gap: the first piece fills before the second starts', otp && otp.bars[0].done > 0 && (otp.bars[0].done === 100 || otp.bars[1].done === 0), JSON.stringify(otp && otp.bars));
|
|
102
103
|
const rc = await rowOf(p, 'Recovery codes');
|
|
103
|
-
ok('A a plain gap in the dated work breaks the bar with a hairline
|
|
104
|
+
ok('A a plain gap in the dated work breaks the bar with a hairline that is no hold: no label (batch 11 item 13)', rc && rc.bars.length === 2 && !rc.ho.length && !rc.old
|
|
104
105
|
&& rc.ng.length === 1 && rc.ng[0].tag === 'BUTTON' && rc.ng[0].label === 'Nothing planned, Oct 21 to Jan 9 · 12 wk. Plan skipped' && rc.ng[0].sk, JSON.stringify(rc));
|
|
105
106
|
const pk = await rowOf(p, 'Passkey sign-in');
|
|
106
107
|
ok('A a row with no hold and no gap keeps one whole bar', pk && pk.bars.length === 1 && !/x[lr]/.test(pk.bars[0].cls), JSON.stringify(pk));
|
|
107
108
|
const lg = await p.evaluate(() => (document.querySelector('#bdChipset .tg-lgd') || {}).textContent || '');
|
|
108
|
-
ok('L the legend names "
|
|
109
|
-
ok('X the legend names
|
|
109
|
+
ok('L the legend names one hairline key, "Gap or hold", while both are drawn (batch 13 item 4)', /To do\s*Gap or hold/.test(lg), lg);
|
|
110
|
+
ok('X the legend names the hairline and "Skipped" while they are drawn', /Gap or hold\s*Skipped\s*Jira forecast/.test(lg), lg);
|
|
110
111
|
|
|
111
112
|
const nr = await rowOf(p, 'On hold, no return date');
|
|
112
|
-
ok('H no return date:
|
|
113
|
-
&& /^On hold since Sep 1, no return date\. Set a return date$/.test(nr.
|
|
113
|
+
ok('H no return date: the hairline runs to today, its press asks for a return date, the rest of the plan faded', nr && nr.ho.length === 1 && !nr.old && nr.bars.length === 2 && /fd/.test(nr.bars[1].cls) && !/fd/.test(nr.bars[0].cls)
|
|
114
|
+
&& /^On hold since Sep 1, no return date\. Set a return date$/.test(nr.ho[0].label), JSON.stringify(nr));
|
|
114
115
|
const ps = await rowOf(p, 'Return date passed');
|
|
115
|
-
ok('H the return date passed: the
|
|
116
|
+
ok('H the return date passed: the hairline runs on to today in the late colour, and its words say how long ago', ps && ps.ho.length === 1 && /late/.test(ps.ho[0].cls) && /The return date passed 12 days ago/.test(ps.ho[0].label) && !ps.old, JSON.stringify(ps));
|
|
116
117
|
const tw = await rowOf(p, 'Resumed, two holds');
|
|
117
|
-
ok('H a resumed hold stays a gap: two holds draw two
|
|
118
|
+
ok('H a resumed hold stays a gap: two holds draw two hairlines and three pieces', tw && tw.ho.length === 2 && tw.bars.length === 3 && !tw.old && tw.ho.every((x) => /^Was on hold/.test(x.label)), JSON.stringify(tw));
|
|
118
119
|
const ad = await rowOf(p, 'Return after Deliver');
|
|
119
|
-
ok('H the return date falls after Deliver: the ◇
|
|
120
|
+
ok('H the return date falls after Deliver: the ◇ and the date turn orange, the hover says so, and no date moves', ad && /late/.test(ad.end) && ad.tone.join() === 'late' && /^Deliver Mar 1 ’27 \| .*Deliver is before the return, May 1/.test(ad.lab.join()) && ad.bars.length === 1, JSON.stringify(ad));
|
|
120
121
|
ok('E the edge tab ahead of a held row names its return date', otp && otp.tabs.includes('r:Mar ’27') && ad.tabs.includes('r:May ’27'), JSON.stringify([otp && otp.tabs, ad && ad.tabs]));
|
|
121
122
|
await shot(p, 'timeline-holds-1440');
|
|
122
123
|
|
|
123
|
-
// P the
|
|
124
|
-
await p.click('#ibBody [data-row="board:email-otp"] .tg-
|
|
124
|
+
// P the hold's press (XtiA2Hold; since batch 13 item 4 the hairline is the press)
|
|
125
|
+
await p.click('#ibBody [data-row="board:email-otp"] .tg-ng.ho');
|
|
125
126
|
const pop = await p.evaluate(() => { const h = document.querySelector('#bdPop'); return { open: !h.hidden, cls: h.className, h4: (h.querySelector('h4') || {}).textContent, p: (h.querySelector('p') || {}).textContent, btns: [...h.querySelectorAll('.acts button')].map((b) => b.getAttribute('aria-label') + ':' + (b.textContent.trim() === '')) }; });
|
|
126
|
-
ok('P
|
|
127
|
+
ok('P the hold opens the floating menu by its hairline: how long, the dates, why; two icon buttons, resume and change the date', pop.open && /bd-hold/.test(pop.cls) && pop.h4 === 'On hold · 4½ months' && pop.p === 'Oct 12 to Mar 1, 2027. Waits on the SMS vendor contract.' && pop.btns.join() === 'Resume now:true,Change the return date:true', JSON.stringify(pop));
|
|
127
128
|
await shot(p, 'timeline-holds-menu-1440');
|
|
128
129
|
await p.click('#bdPop [data-holdgo="date"]');
|
|
129
130
|
const field = await p.evaluate(() => { const f = document.querySelector('#bdPop input[type="date"]'); return f ? { v: f.value, focus: document.activeElement === f } : null; });
|
|
130
131
|
ok('P the date icon opens a date field with the return date in it', field && field.v === '2027-03-01' && field.focus, JSON.stringify(field));
|
|
131
132
|
await p.fill('#bdPop input[type="date"]', '2027-04-15'); await p.waitForTimeout(400);
|
|
132
133
|
ok('P a new date writes the on-hold line the ⋯ menu writes, with the new return date and the same reason', posts.length === 1 && posts[0].initiative_id === 'email-otp' && posts[0].state === 'on-hold' && posts[0].back === '2027-04-15' && posts[0].reason === 'Waits on the SMS vendor contract', JSON.stringify(posts));
|
|
133
|
-
await p.click('#ibBody [data-row="board:email-otp"] .tg-
|
|
134
|
+
await p.click('#ibBody [data-row="board:email-otp"] .tg-ng.ho'); await p.click('#bdPop [data-holdgo="resume"]'); await p.waitForTimeout(400);
|
|
134
135
|
ok('P Resume now writes active', posts.length === 2 && posts[1].state === 'active' && posts[1].initiative_id === 'email-otp', JSON.stringify(posts));
|
|
135
|
-
await p.click('#ibBody [data-row="board:no-return"] .tg-
|
|
136
|
+
await p.click('#ibBody [data-row="board:no-return"] .tg-ng.ho');
|
|
136
137
|
const nd = await p.evaluate(() => { const h = document.querySelector('#bdPop'); return { h4: (h.querySelector('h4') || {}).textContent, field: !!h.querySelector('input[type="date"]'), focus: document.activeElement && document.activeElement.type === 'date' }; });
|
|
137
|
-
ok('H with no return date the
|
|
138
|
+
ok('H with no return date the hold\'s press opens with the date field ready', nd.field && nd.focus && /^On hold · /.test(nd.h4), JSON.stringify(nd));
|
|
138
139
|
await p.keyboard.press('Escape');
|
|
139
|
-
await p.click('#ibBody [data-row="board:two-holds"] .tg-
|
|
140
|
+
await p.click('#ibBody [data-row="board:two-holds"] .tg-ng.ho');
|
|
140
141
|
const past = await p.evaluate(() => { const h = document.querySelector('#bdPop'); return { h4: (h.querySelector('h4') || {}).textContent, acts: h.querySelectorAll('.acts button').length }; });
|
|
141
142
|
ok('P a past hold reads how long it ran, with nothing to press', past.h4 === 'Was on hold · 4 weeks' && past.acts === 0, JSON.stringify(past));
|
|
142
143
|
await p.keyboard.press('Escape');
|
|
@@ -162,27 +163,28 @@ const ROWS = [
|
|
|
162
163
|
const c = { key: 'board:c', id: 'c', title: 'Held two', start: '2026-08-01', end: '2027-05-01', holds: [{ from: '2026-11-01', to: null, back: '2027-03-01', reason: '' }], track: { key: 'build' } };
|
|
163
164
|
const d = document.createElement('div');
|
|
164
165
|
d.innerHTML = S.timelineHtml([a], { jira: null }, 'y5', { now, trackPx: 1100 }).html;
|
|
165
|
-
const five = { bars: d.querySelectorAll('.tg-bar').length, gaps: d.querySelectorAll('.tg-
|
|
166
|
+
const five = { bars: d.querySelectorAll('.tg-bar').length, gaps: d.querySelectorAll('.tg-ng.ho').length };
|
|
166
167
|
d.innerHTML = S.timelineHtml([a], { jira: null }, 'quarter', { now, trackPx: 1100 }).html;
|
|
167
|
-
const quarter = { bars: d.querySelectorAll('.tg-bar').length, gaps: d.querySelectorAll('.tg-
|
|
168
|
+
const quarter = { bars: d.querySelectorAll('.tg-bar').length, gaps: d.querySelectorAll('.tg-ng.ho').length };
|
|
168
169
|
const groups = [{ kind: 'program', key: 'p', program: { id: 'p', title: 'IDPF Feature Expansion', products: [] }, products: [{ name: 'IDPF', rows: [b, c] }], rows: [b, c] }];
|
|
169
|
-
|
|
170
|
+
// the program's line is its roll-up, drawn while it is folded (batch 13 item 4)
|
|
171
|
+
d.innerHTML = S.timelineHtml([b, c], { jira: null }, 'year', { now, groups, trackPx: 1100, folded: () => true }).html;
|
|
170
172
|
const spans = [...d.querySelectorAll('.tg-pg .tg-span')].map((x) => x.className);
|
|
171
173
|
const groups2 = [{ ...groups[0], products: [{ name: 'IDPF', rows: [a, b] }], rows: [a, b] }];
|
|
172
|
-
d.innerHTML = S.timelineHtml([a, b], { jira: null }, 'year', { now, groups: groups2, trackPx: 1100 }).html;
|
|
174
|
+
d.innerHTML = S.timelineHtml([a, b], { jira: null }, 'year', { now, groups: groups2, trackPx: 1100, folded: () => true }).html;
|
|
173
175
|
const solid = [...d.querySelectorAll('.tg-pg .tg-span')].map((x) => x.className);
|
|
174
176
|
// batch 10 item 3 (Email OTP): a hold with no return date, then no dated work until the Build tasks in March. The rest of the bar
|
|
175
177
|
// starts where those tasks start, not today.
|
|
176
178
|
const e = { key: 'board:e', id: 'e', title: 'Email OTP', start: '2026-06-25', end: '2027-06-09', holds: [{ from: '2026-09-15', to: null, back: null, reason: '' }], gaps: [{ from: '2026-09-10', to: '2027-03-18' }], track: { key: 'build' } };
|
|
177
179
|
d.innerHTML = S.timelineHtml([e], { jira: null }, 'year', { now, trackPx: 1100 }).html;
|
|
178
|
-
const eb = [...d.querySelectorAll('.tg-bar')].map((x) => parseFloat(x.style.left)), eg = d.querySelectorAll('.tg-
|
|
180
|
+
const eb = [...d.querySelectorAll('.tg-bar')].map((x) => parseFloat(x.style.left)), eg = d.querySelectorAll('.tg-ng.ho').length;
|
|
179
181
|
d.innerHTML = S.timelineHtml([{ ...e, gaps: [] }], { jira: null }, 'year', { now, trackPx: 1100 }).html;
|
|
180
182
|
const nb = [...d.querySelectorAll('.tg-bar')].map((x) => parseFloat(x.style.left));
|
|
181
183
|
return { five, quarter, spans, solid, eb, eg, nb };
|
|
182
184
|
});
|
|
183
185
|
ok('N2 a hold with no return date, then a plain gap: the rest of the bar starts at the next dated work, later than today', r.eb.length === 2 && r.eg === 1 && r.nb.length === 2 && r.eb[1] > r.nb[1] + 5, JSON.stringify({ eb: r.eb, nb: r.nb, eg: r.eg }));
|
|
184
186
|
ok('N on 5 yr a nine-day past hold is narrower than 8 px and closes up: one whole bar; on Quarter it is a gap', r.five.bars === 1 && r.five.gaps === 0 && r.quarter.gaps === 1 && r.quarter.bars === 2, JSON.stringify(r));
|
|
185
|
-
ok('G the program line is dotted where every member is on hold, solid where one still works', r.spans.join('|') === 'tg-span|tg-span ho|tg-span' && r.solid.every((x) => x === 'tg-span'), JSON.stringify(r));
|
|
187
|
+
ok('G the folded program\'s line is dotted where every member is on hold, solid where one still works', r.spans.join('|') === 'tg-span|tg-span ho|tg-span' && r.solid.every((x) => x === 'tg-span'), JSON.stringify(r));
|
|
186
188
|
await ctx.close();
|
|
187
189
|
}
|
|
188
190
|
|
|
@@ -192,8 +194,8 @@ const ROWS = [
|
|
|
192
194
|
const r = await p.evaluate(async () => {
|
|
193
195
|
const S = await import('/pm/bd-span.js'), now = new Date(2026, 9, 17), d = document.createElement('div');
|
|
194
196
|
const draw = (row, sp = 'year', o = {}) => { d.innerHTML = S.timelineHtml([{ key: 'board:x', id: 'x', title: 'X', track: { key: 'build', k: 4 }, ...row }], { jira: null }, sp, { now, trackPx: 1100, ...o }).html;
|
|
195
|
-
return { ng: [...d.querySelectorAll('.tg-ng')].map((b) => ({ tag: b.tagName, label: b.getAttribute('aria-label') || '', sk: !!b.querySelector('.tg-sk'), ahead: b.dataset.ahead === '1' })),
|
|
196
|
-
sk: [...d.querySelectorAll('.tg-sk.on')].map((x) => x.getAttribute('aria-label') || ''), bars: [...d.querySelectorAll('.tg-bar')].map((b) => b.getAttribute('title')), gaps: d.querySelectorAll('.tg-
|
|
197
|
+
return { ng: [...d.querySelectorAll('.tg-ng:not(.ho)')].map((b) => ({ tag: b.tagName, label: b.getAttribute('aria-label') || '', sk: !!b.querySelector('.tg-sk'), ahead: b.dataset.ahead === '1' })),
|
|
198
|
+
sk: [...d.querySelectorAll('.tg-sk.on')].map((x) => x.getAttribute('aria-label') || ''), bars: [...d.querySelectorAll('.tg-bar')].map((b) => b.getAttribute('title')), gaps: d.querySelectorAll('.tg-ng.ho').length }; };
|
|
197
199
|
const base = { start: '2026-07-20', end: '2027-02-26' };
|
|
198
200
|
const across = draw({ ...base, gaps: [{ from: '2026-10-01', to: '2026-11-29' }] });
|
|
199
201
|
const past = draw({ ...base, gaps: [{ from: '2026-09-19', to: '2026-10-17' }] });
|
|
@@ -211,7 +213,7 @@ const ROWS = [
|
|
|
211
213
|
});
|
|
212
214
|
ok('X a gap across today says both: no activity up to yesterday, nothing planned from today', r.across.ng.length === 1 && r.across.ng[0].label === 'No activity, Oct 2 to Oct 16 · 2 wk. Nothing planned, Oct 17 to Nov 28 · 6 wk' && r.across.ng[0].ahead, JSON.stringify(r.across));
|
|
213
215
|
ok('X a past gap says "No activity" and offers no New task', r.past.ng[0].label === 'No activity, Sep 20 to Oct 16 · 4 wk' && !r.past.ng[0].ahead, JSON.stringify(r.past));
|
|
214
|
-
ok('X a hold over the same days wins:
|
|
216
|
+
ok('X a hold over the same days wins: the hold\'s hairline, no plain gap', r.held.gaps === 1 && r.held.ng.length === 0, JSON.stringify(r.held));
|
|
215
217
|
ok('X a skipped stage between two dated ones is one » on the gap; its words name each skip with its reason', r.onGap.ng.length === 1 && r.onGap.ng[0].sk && !r.onGap.sk.length
|
|
216
218
|
&& r.onGap.ng[0].label === 'No activity, Sep 19 to Oct 16 · 4 wk. Nothing planned, Oct 17 to Oct 18 · 2 days. Plan skipped: the security review fixed the scope. Prioritize skipped', JSON.stringify(r.onGap));
|
|
217
219
|
ok('X no gap between the two stages: the » sits on the bar at the joint', r.joint.ng.length === 0 && r.joint.sk.length === 1 && /^Plan skipped: the security review fixed the scope\. Prioritize skipped$/.test(r.joint.sk[0]), JSON.stringify(r.joint));
|
|
@@ -230,17 +232,17 @@ const ROWS = [
|
|
|
230
232
|
await ctx.close();
|
|
231
233
|
}
|
|
232
234
|
|
|
233
|
-
/* M the phone:
|
|
235
|
+
/* M the phone: the hold's hairline and its press, no dates beside it */
|
|
234
236
|
{
|
|
235
237
|
const { ctx, page: p, errors } = await open({ w: 390, h: 844 });
|
|
236
|
-
const m = await p.evaluate(() => ({ pz: document.querySelectorAll('#ibBody .tg-
|
|
237
|
-
ok('M the phone keeps
|
|
238
|
+
const m = await p.evaluate(() => ({ pz: document.querySelectorAll('#ibBody button.tg-ng.ho').length, hl: document.querySelectorAll('#ibBody .tg-hl, #ibBody .tg-pz').length, scroll: document.documentElement.scrollWidth <= innerWidth + 1 }));
|
|
239
|
+
ok('M the phone keeps each hold\'s hairline as a press, no ⏸ and no date beside it, with no sideways page scroll', m.pz >= 4 && m.hl === 0 && m.scroll, JSON.stringify(m));
|
|
238
240
|
await shot(p, 'timeline-holds-390');
|
|
239
|
-
await p.click('#ibBody [data-row="board:email-otp"] .tg-
|
|
241
|
+
await p.click('#ibBody [data-row="board:email-otp"] .tg-ng.ho');
|
|
240
242
|
const sh = await p.evaluate(() => { const h = document.querySelector('#bdPop'); return { sheet: h.classList.contains('sheet'), h4: (h.querySelector('h4') || {}).textContent }; });
|
|
241
|
-
ok('M on a phone the
|
|
243
|
+
ok('M on a phone the hold\'s press opens the same menu as a sheet', sh.sheet && sh.h4 === 'On hold · 4½ months', JSON.stringify(sh));
|
|
242
244
|
await shot(p, 'timeline-holds-menu-390');
|
|
243
|
-
const ng = await p.evaluate(() => [...document.querySelectorAll('#ibBody .tg-ng')].map((x) => x.tagName));
|
|
245
|
+
const ng = await p.evaluate(() => [...document.querySelectorAll('#ibBody .tg-ng:not(.ho)')].map((x) => x.tagName));
|
|
244
246
|
ok('X the phone draws the hairline with no words and no press', ng.length >= 1 && ng.every((t) => t === 'SPAN'), JSON.stringify(ng));
|
|
245
247
|
await p.keyboard.press('Escape'); await p.waitForTimeout(200);
|
|
246
248
|
await p.click('#ibBody .tgq-r[data-row="board:recovery-codes"] > .tg-p', { position: { x: 200, y: 10 } });
|