create-pmos 0.314.0 → 0.315.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 +1 -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-work-test.js +47 -35
- package/workspace/guide/briefing-premium.md +8 -8
- package/workspace/lib/my-work-premium.js +37 -23
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-work-depth-test.js +21 -18
- package/workspace/public/pm/premium-work.js +48 -49
- package/workspace/public/pm/premium.css +15 -0
- package/workspace/public/premium-work.html +16 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.315.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": {
|
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-19T13:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-19T13:49:40Z"}
|
|
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-19T13:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-19T13:49:40Z"}
|
|
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-19T13:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-19T13:49:40Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -17,6 +17,8 @@ const F = require('./fixtures/my-work-premium-facts.js');
|
|
|
17
17
|
const BASE = T.BASE;
|
|
18
18
|
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
19
19
|
const until = async (fn, ms = 10000, step = 100) => { const t0 = Date.now(); for (;;) { const v = await fn(); if (v) return v; if (Date.now() - t0 > ms) return v; await sleep(step); } };
|
|
20
|
+
/* the Work queue shows one tab at a time: bring up the tab that holds a row before pressing it (each press redraws the tab row, so the button is found again) */
|
|
21
|
+
const showKey = (pg, key) => pg.evaluate((key) => { const has = () => document.querySelector(`#qBody .wrow[data-key="${key}"], #waitBody .wrow[data-key="${key}"]`); if (has()) return true; for (const k of [...document.querySelectorAll('#qTabs .qtb')].map((b) => b.dataset.tab)) { document.querySelector(`#qTabs [data-tab="${k}"]`).click(); if (has()) return true; } return false; }, key);
|
|
20
22
|
const results = [];
|
|
21
23
|
const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + extra : ''}`); };
|
|
22
24
|
const more = async (pg) => { if (await pg.locator('#card [data-p="more"][aria-expanded="false"]').count()) await pg.click('#card [data-p="more"]'); };
|
|
@@ -53,12 +55,12 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
53
55
|
await page.route('**/api/pm-items/**', (r) => { const rq = r.request(); posts.push({ path: new URL(rq.url()).pathname, body: JSON.parse(rq.postData() || '{}'), headers: rq.headers() }); r.fulfill({ status: answer.status, contentType: 'application/json', body: JSON.stringify(answer.body) }); });
|
|
54
56
|
await page.route('**/api/briefing-premium/**', (r) => { const rq = r.request(); if (rq.method() === 'GET') return r.fulfill({ contentType: 'application/json', body: JSON.stringify(thread) }); posts.push({ path: new URL(rq.url()).pathname, body: JSON.parse(rq.postData() || '{}'), headers: rq.headers() }); return r.fulfill({ status: answer.status, contentType: 'application/json', body: JSON.stringify(answer.body) }); });
|
|
55
57
|
await page.goto(BASE + '/premium-work.html?theme=' + theme);
|
|
56
|
-
const up = await until(() => page.evaluate(() => document.querySelectorAll('#
|
|
58
|
+
const up = await until(() => page.evaluate(() => document.querySelectorAll('#qBody .wrow').length > 0), 20000);
|
|
57
59
|
return { ctx, page, errors, posts, up, setModel: (m) => { current = m; }, set: (a) => { answer = a; }, setThread: (t) => { thread = t; }, gets: () => gets };
|
|
58
60
|
};
|
|
59
61
|
|
|
60
62
|
const A = await open();
|
|
61
|
-
ok('0 the page draws the
|
|
63
|
+
ok('0 the page draws the Work queue', A.up);
|
|
62
64
|
if (!A.up) return finish(1);
|
|
63
65
|
const p = A.page, M = mk();
|
|
64
66
|
const txt = (s) => p.evaluate((q) => (document.querySelector(q) || {}).textContent || '', s);
|
|
@@ -92,26 +94,33 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
92
94
|
/* M10 */
|
|
93
95
|
ok('M10 the header says what is real and that Jira and Slack appear only when read', /^Real data · as of 18:05/.test(await txt('#snap')) && /only when an agent session has read them/.test(await txt('#snap')));
|
|
94
96
|
|
|
95
|
-
/* M4 */
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
ok('M4
|
|
99
|
-
ok('M4
|
|
100
|
-
ok('M4
|
|
101
|
-
|
|
97
|
+
/* M4 the Work queue: one card, a tab for each place a thing waits */
|
|
98
|
+
const qtab = (k) => p.click(`#qTabs [data-tab="${k}"]`);
|
|
99
|
+
const q = await p.evaluate(() => ({ tabs: [...document.querySelectorAll('#qTabs .qtb')].map((b) => b.textContent), sel: [...document.querySelectorAll('#qTabs [aria-selected="true"]')].map((b) => b.dataset.tab), tops: new Set([...document.querySelectorAll('#qTabs .qtb')].map((b) => Math.round(b.getBoundingClientRect().top))).size, cap: document.querySelector('#qCap').textContent, first: [...document.querySelectorAll('.tgf')].map((x) => x.closest('.wrow').dataset.key), titles: [...document.querySelectorAll('#qBody .wtit')].map((x) => x.textContent.replace('Do this first', '')), chips: [...document.querySelectorAll('#qBody .due')].map((x) => x.textContent), od: [...document.querySelectorAll('#qBody .due.od')].length, ck: [...document.querySelectorAll('#qBody .wck')].map((b) => Math.round(b.getBoundingClientRect().height)), cols: getComputedStyle(document.querySelector('#qBody')).gridTemplateColumns.split(' ').length, old: ['#plate', '#agCard', '#trayCard'].filter((x) => document.querySelector(x)), title: document.querySelector('#hQueue').textContent }));
|
|
100
|
+
ok('M4 one Work queue card replaces On your plate, With agents and the tray', q.title === 'Work queue' && q.old.length === 0, JSON.stringify(q));
|
|
101
|
+
ok('M4 seven tabs in one pill row with their counts, and the card opens on Today', q.tabs.join() === 'Today3,Inbox4,Agents3,Upcoming2,Someday1,Kept0,Done0' && q.sel.join() === 'today' && q.tops === 1, JSON.stringify(q));
|
|
102
|
+
ok('M4 Today holds its rows in two columns, with a due chip only where a date was set; the overdue one says so', q.cols === 2 && q.titles.length === 3 && q.titles[0] === 'Sign off the fit-out contractor shortlist' && q.chips.join() === 'Overdue · 15 Oct,Today' && q.od === 1, JSON.stringify(q));
|
|
103
|
+
ok('M4 "Do this first" tags the overdue item only, and a check circle is 44 px', q.first.length === 1 && q.first[0] === 'work:wbs:alpha:4.2' && q.ck.length === 3 && q.ck.every((h) => h >= 44), JSON.stringify([q.first, q.ck]));
|
|
104
|
+
const dec = await p.evaluate(() => { const b = document.querySelector('#qBody .wrow[data-key="work:wbs:alpha:4.2"] .wck'); const r = b.closest('.wrow'); return { dec: b.classList.contains('dec'), eye: !!b.querySelector('circle'), label: b.getAttribute('aria-label'), first: r.classList.contains('first'), tagBlock: getComputedStyle(r.querySelector('.tgf')).display, bar: getComputedStyle(r).boxShadow !== 'none', others: [...document.querySelectorAll('#qBody .wck')].filter((x) => x !== b).every((x) => !x.classList.contains('dec')) }; });
|
|
102
105
|
ok('M4 an item whose agent draft is ready has a highlighted eye circle (not a check), the first overdue row carries the ember bar and its tag sits on its own line', dec.dec && dec.eye && /^Review the agent draft/.test(dec.label) && dec.first && dec.tagBlock === 'block' && dec.bar && dec.others, JSON.stringify(dec));
|
|
103
|
-
|
|
104
|
-
|
|
106
|
+
await qtab('inbox');
|
|
107
|
+
const ib = await p.evaluate(() => ({ labels: [...document.querySelectorAll('#qBody .wsec .label')].map((x) => x.textContent), counts: [...document.querySelectorAll('#qBody .wsec em')].map((x) => x.textContent), glyphs: [...document.querySelectorAll('#qBody .inb .wgl')].map((x) => x.title), titles: [...document.querySelectorAll('#qBody .wtit')].map((x) => x.textContent), checks: document.querySelectorAll('#qBody .wck').length, note: document.querySelector('#qNote').textContent, focus: document.activeElement && document.activeElement.dataset.tab }));
|
|
108
|
+
ok('M4 Inbox holds what is new from Jira and Slack, then what you added, each with its source; nothing there has a check', ib.labels.join() === 'New from Jira and Slack,Added by you' && /^3 · counts to clear/.test(ib.counts[0]) && /^1 · not counted/.test(ib.counts[1]) && ib.glyphs.join() === 'Jira,Jira,Slack,Yours' && ib.titles[3] === 'Is the payment-step experiment worth another week?' && ib.checks === 0 && /counts to clear only once you place it/.test(ib.note) && ib.focus === 'inbox', JSON.stringify(ib));
|
|
109
|
+
await p.focus('#qTabs [data-tab="inbox"]'); await p.keyboard.press('ArrowRight');
|
|
110
|
+
ok('M4 the arrow keys move between tabs', await p.evaluate(() => document.activeElement.dataset.tab === 'agents' && document.querySelector('#qTabs [aria-selected="true"]').dataset.tab === 'agents'));
|
|
105
111
|
ok('M4 the add box has no Enter label', !(await p.evaluate(() => !!document.querySelector('#cap kbd'))));
|
|
106
|
-
ok('M4 no suggestion, no estimate and no demo label is drawn', !(await p.evaluate(() => /Accept all|~\d+ min|demo/i.test(document.querySelector('#
|
|
112
|
+
ok('M4 no suggestion, no estimate and no demo label is drawn', !(await p.evaluate(() => /Accept all|~\d+ min|demo|fold the laundry|on the shelf|composts/i.test(document.querySelector('#queue').textContent))));
|
|
107
113
|
|
|
108
|
-
/* M5 */
|
|
109
|
-
const ag = await p.evaluate(() => ({ tiles: [...document.querySelectorAll('#
|
|
110
|
-
ok('M5 three counts from the agent field and the rows that are running or ready', ag.tiles.join() === '1Running,1Failed,1To review' && ag.hot === 0 && ag.rows.length === 3 && /draft ready to review/.test(ag.rows[0]) && /the run failed/.test(ag.rows.join()) &&
|
|
111
|
-
ok('M5 the
|
|
112
|
-
const tile = async (k) => { await p.click(`#
|
|
114
|
+
/* M5 the Agents tab */
|
|
115
|
+
const ag = await p.evaluate(() => ({ shown: !document.querySelector('#qPipe').hidden, tiles: [...document.querySelectorAll('#qPipe .pst')].map((x) => x.textContent.replace(/\s+/g, ' ').trim()), hot: document.querySelectorAll('#qPipe .pst.hot').length, rows: [...document.querySelectorAll('#qBody .ws')].map((x) => x.textContent), cap: document.querySelector('#qCap').textContent, hold: document.querySelector('#qNote').textContent, buttons: [...document.querySelectorAll('#qBody button')].map((b) => b.textContent).join('|') }));
|
|
116
|
+
ok('M5 the Agents tab shows three counts from the agent field and the rows that are running, failed or ready', ag.shown && ag.tiles.join() === '1Running,1Failed,1To review' && ag.hot === 0 && ag.rows.length === 3 && /draft ready to review/.test(ag.rows[0]) && /the run failed/.test(ag.rows.join()) && /one draft to review/.test(ag.cap), JSON.stringify(ag));
|
|
117
|
+
ok('M5 the Agents tab offers no press of its own, and says nothing is posted before a confirm', !/\b(Give to agent|Approve|Revise|Retry)\b/i.test(ag.buttons) && /Nothing is posted until you confirm it/.test(ag.hold));
|
|
118
|
+
const tile = async (k) => { await p.click(`#qPipe [data-ag="${k}"]`); return p.evaluate(() => ({ pressed: [...document.querySelectorAll('#qPipe [aria-pressed="true"]')].map((b) => b.dataset.ag), rows: [...document.querySelectorAll('#qBody .ws')].map((x) => x.textContent), focus: document.activeElement && document.activeElement.dataset.ag })); };
|
|
113
119
|
const tf = await tile('failed'), tr = await tile('ready'), tc = await tile('ready');
|
|
114
120
|
ok('M5 a count filters the list to that state, a second press shows every item again, and focus stays on the tile', tf.pressed.join() === 'failed' && tf.rows.length === 1 && /the run failed/.test(tf.rows[0]) && tr.pressed.join() === 'ready' && tr.rows.length === 1 && /draft ready to review/.test(tr.rows[0]) && tc.pressed.length === 0 && tc.rows.length === 3 && tc.focus === 'ready', JSON.stringify({ tf, tr, tc }));
|
|
121
|
+
await qtab('upcoming');
|
|
122
|
+
ok('M5 the counts show only on the Agents tab', await p.evaluate(() => document.querySelector('#qPipe').hidden && document.querySelectorAll('#qBody .wrow').length === 2));
|
|
123
|
+
await qtab('today');
|
|
115
124
|
|
|
116
125
|
/* M6 */
|
|
117
126
|
const wt = await p.evaluate(() => ({ cap: document.querySelector('#waitCap').textContent, rows: [...document.querySelectorAll('#waitBody .wtit')].map((x) => x.textContent), subs: [...document.querySelectorAll('#waitBody .ws')].map((x) => x.textContent), nudge: /Nudge/.test(document.querySelector('#waitCard').textContent) }));
|
|
@@ -122,31 +131,32 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
122
131
|
ok('M7 the untouched card counts the items from the review list', !rv.hidden && /^2 items have sat untouched for 7 days/.test(rv.txt), JSON.stringify(rv));
|
|
123
132
|
|
|
124
133
|
/* M9 */
|
|
125
|
-
ok('M9 the hero, the
|
|
134
|
+
ok('M9 the hero, the Work queue and the dock agree on one count', await p.evaluate(() => /^7 to clear/.test(document.querySelector('#qCap').textContent) && document.querySelector('#dN').textContent === '7' && document.querySelector('#dLab').textContent === 'to clear'));
|
|
126
135
|
|
|
127
136
|
/* M3 add */
|
|
128
137
|
A.set({ status: 200, body: { ok: true, item: { id: 'item-new', title: 'Reply to Lee', due: null, priority: 'P1' } } });
|
|
129
138
|
{ const v = F.view(); v.work.inbox.push(F.it('item-new', 'Reply to Lee', { priority: 'P1' })); A.setModel(WP.build({ v, now: F.NOW })); }
|
|
130
139
|
await p.fill('#capIn', 'Reply to Lee !p1'); await p.press('#capIn', 'Enter');
|
|
131
|
-
ok('M3 one line is posted to the Work page\'s add route, and the page shows what was read', await until(() => A.posts.some((x) => x.path === '/api/pm-items/add' && x.body.line === 'Reply to Lee !p1' && Object.keys(x.body).join() === 'line')) && await until(() => txt('#capHint').then((t) => /Added: Reply to Lee \(P1\)\. It is in your
|
|
132
|
-
ok('M3 a new item lands in the
|
|
140
|
+
ok('M3 one line is posted to the Work page\'s add route, and the page shows what was read', await until(() => A.posts.some((x) => x.path === '/api/pm-items/add' && x.body.line === 'Reply to Lee !p1' && Object.keys(x.body).join() === 'line')) && await until(() => txt('#capHint').then((t) => /Added: Reply to Lee \(P1\)\. It is in your inbox until you place it\./.test(t))));
|
|
141
|
+
ok('M3 a new item lands in the Inbox tab under Added by you, and its dialog opens at once so it can be placed', await until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on') && document.querySelector('#dTitle').textContent === 'Reply to Lee' && /Inbox, added by you/.test(document.querySelector('#oMain').textContent) && document.querySelector('#qBody').dataset.tab === 'inbox' && !!document.querySelector('#qBody [data-key="work:item-new"]')), 6000));
|
|
133
142
|
await p.keyboard.press('Escape'); await until(() => p.evaluate(() => !document.querySelector('#dlg').classList.contains('on'))); A.setModel(mk());
|
|
134
143
|
const n0 = A.posts.length; await p.fill('#capIn', ' '); await p.press('#capIn', 'Enter'); await sleep(200);
|
|
135
144
|
ok('M3 an empty line is not posted', A.posts.length === n0 && /Write one line/.test(await txt('#capHint')));
|
|
145
|
+
await qtab('today'); // a line with no date opened the queue on Inbox
|
|
136
146
|
|
|
137
147
|
/* M8 presses from a check circle, and from the dialog */
|
|
138
148
|
{
|
|
139
149
|
const n = A.posts.length;
|
|
140
|
-
await p.locator('.wrow[data-key="work:wbs:alpha:4.2"] .wck.dec').click(); await until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(500);
|
|
150
|
+
await showKey(p, 'work:wbs:alpha:4.2'); await p.locator('.wrow[data-key="work:wbs:alpha:4.2"] .wck.dec').click(); await until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(500);
|
|
141
151
|
ok('M8 the eye circle opens the item to review the draft and posts nothing', A.posts.length === n && (await p.textContent('#dTitle')) === 'Sign off the fit-out contractor shortlist' && /Agent draft · not checked/.test(await p.textContent('#oMain')));
|
|
142
152
|
await p.keyboard.press('Escape'); await until(() => p.evaluate(() => !document.querySelector('#dlg').classList.contains('on')));
|
|
143
153
|
}
|
|
144
|
-
const openKey = async (key) => { await p.locator(`.wrow[data-key="${key}"] .wrh`).first().click(); await until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(700); };
|
|
154
|
+
const openKey = async (key) => { await showKey(p, key); await p.locator(`.wrow[data-key="${key}"] .wrh`).first().click(); await until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(700); };
|
|
145
155
|
const shut = async () => { await p.keyboard.press('Escape'); await until(() => p.evaluate(() => !document.querySelector('#dlg').classList.contains('on'))); };
|
|
146
156
|
const lastPost = () => A.posts[A.posts.length - 1];
|
|
147
157
|
A.set({ status: 200, body: { ok: true } });
|
|
148
158
|
const g0 = A.gets();
|
|
149
|
-
await p.locator('.wrow[data-key="work:item-bbbbbbbbbbb2"] .wck').click();
|
|
159
|
+
await showKey(p, 'work:item-bbbbbbbbbbb2'); await p.locator('.wrow[data-key="work:item-bbbbbbbbbbb2"] .wck').click();
|
|
150
160
|
ok('M8 a check circle posts Done with the item id only, offers Undo, and the page reads again', await until(() => A.posts.some((x) => x.path === '/api/pm-items/done' && Object.keys(x.body).join() === 'id' && x.body.id === 'item-bbbbbbbbbbb2')) && await until(() => p.evaluate(() => /Undo/.test(document.querySelector('#toast').textContent))) && await until(() => A.gets() > g0));
|
|
151
161
|
await p.locator('#toast .undo').click();
|
|
152
162
|
ok('M8 Undo posts Reopen for that item', await until(() => A.posts.some((x) => x.path === '/api/pm-items/reopen' && x.body.id === 'item-bbbbbbbbbbb2')));
|
|
@@ -200,7 +210,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
200
210
|
/* M2 / M4 degraded: an empty list */
|
|
201
211
|
{
|
|
202
212
|
const E = await open({ model: WP.build({ v: { today: '2026-10-16', work: {} }, now: F.NOW }) });
|
|
203
|
-
ok('M2 an empty list says so, in one sentence, and the
|
|
213
|
+
ok('M2 an empty list says so, in one sentence, and the Work queue says nothing is placed for today', await E.page.evaluate(() => document.querySelector('#brief').textContent === 'Your list is empty.' && /Nothing is placed for today/.test(document.querySelector('#qBody').textContent) && document.querySelector('#revCard').hidden && /Nobody owes you anything/.test(document.querySelector('#waitBody').textContent) && document.querySelector('#dN').textContent === '0'));
|
|
204
214
|
await E.ctx.close();
|
|
205
215
|
}
|
|
206
216
|
{
|
|
@@ -208,13 +218,13 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
208
218
|
const ctx = await browser.newContext({ viewport: { width: 1280, height: 900 } }), pg = await ctx.newPage();
|
|
209
219
|
await pg.route('**/api/my-work-premium', (r) => r.fulfill({ status: 500, contentType: 'application/json', body: JSON.stringify({ ok: false, state: 'error', error: 'the list could not be read' }) }));
|
|
210
220
|
await pg.goto(BASE + '/premium-work.html');
|
|
211
|
-
ok('M10 a failed read says why and shows nothing instead of a guess', await until(() => pg.evaluate(() => /The reason: the list could not be read/.test(document.querySelector('#brief').textContent) && document.querySelectorAll('#
|
|
221
|
+
ok('M10 a failed read says why and shows nothing instead of a guess', await until(() => pg.evaluate(() => /The reason: the list could not be read/.test(document.querySelector('#brief').textContent) && document.querySelectorAll('#qBody .wrow').length === 0), 5000));
|
|
212
222
|
await ctx.close();
|
|
213
223
|
}
|
|
214
224
|
|
|
215
225
|
{
|
|
216
226
|
const R = await open({ w: 820, h: 1000 }), t = R.page;
|
|
217
|
-
await t.locator('.wrow[data-key="work:item-aaaaaaaaaaa1"] .wrh').click(); await until(() => t.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(900);
|
|
227
|
+
await showKey(t, 'work:item-aaaaaaaaaaa1'); await t.locator('.wrow[data-key="work:item-aaaaaaaaaaa1"] .wrh').click(); await until(() => t.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(900);
|
|
218
228
|
const g = await t.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 }; });
|
|
219
229
|
ok('M12 on a tablet (820 px) the dialog is centred with a 12 px margin, and the Detail / Conversation switch is shown', Math.abs(g.l - (g.vw - g.w) / 2) <= 2 && g.w === g.vw - 24 && g.tabs !== 'none', JSON.stringify(g));
|
|
220
230
|
await R.ctx.close();
|
|
@@ -222,7 +232,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
222
232
|
/* M12 floors on a phone, both themes */
|
|
223
233
|
for (const theme of ['light', 'dark']) {
|
|
224
234
|
const R = await open({ w: 390, h: 844, theme }), q = R.page;
|
|
225
|
-
await q.locator('.wrow[data-key="work:item-aaaaaaaaaaa1"] .wrh').click(); await until(() => q.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(800);
|
|
235
|
+
await showKey(q, 'work:item-aaaaaaaaaaa1'); await q.locator('.wrow[data-key="work:item-aaaaaaaaaaa1"] .wrh').click(); await until(() => q.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(800);
|
|
226
236
|
const geo = () => q.evaluate(() => { const r = document.querySelector('#dlg').getBoundingClientRect(); return { l: Math.round(r.left), w: Math.round(r.width), vw: innerWidth }; });
|
|
227
237
|
const g1 = await geo();
|
|
228
238
|
ok(`M12 at 390 px (${theme}) the dialog opens on Detail at the full width of the screen`, g1.l === 0 && g1.w === g1.vw, JSON.stringify(g1));
|
|
@@ -232,12 +242,12 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
232
242
|
const m = await q.evaluate(() => { const hs = (sel) => [...document.querySelectorAll(sel)].map((b) => Math.round(b.getBoundingClientRect().height)); return { over: document.documentElement.scrollWidth > innerWidth + 1 || document.querySelector('#dlg').scrollWidth > document.querySelector('#dlg').clientWidth + 1, small: [].concat(hs('#card .cta'), hs('#card .seg2 button'), hs('#wOn'), hs('.askbar input'), hs('#askGo')).filter((h) => h < 44) }; });
|
|
233
243
|
ok(`M12 at 390 px (${theme}) the dialog has no sideways scroll and every control is 44 px`, !m.over && m.small.length === 0, JSON.stringify(m));
|
|
234
244
|
await q.keyboard.press('Escape'); await sleep(300);
|
|
235
|
-
const pg = await q.evaluate(() => ({ over: document.documentElement.scrollWidth > innerWidth + 1, small: [...document.querySelectorAll('.wck, .capb, .wrh, #revBtn, .fchip')].filter((b) => !b.closest('[hidden]') && b.getBoundingClientRect().height < 44 && b.getBoundingClientRect().height > 0).map((b) => b.className + ':' + Math.round(b.getBoundingClientRect().height)) }));
|
|
245
|
+
const pg = await q.evaluate(() => ({ over: document.documentElement.scrollWidth > innerWidth + 1, small: [...document.querySelectorAll('.wck, .capb, .wrh, #revBtn, .fchip, .qtb')].filter((b) => !b.closest('[hidden]') && b.getBoundingClientRect().height < 44 && b.getBoundingClientRect().height > 0).map((b) => b.className + ':' + Math.round(b.getBoundingClientRect().height)) }));
|
|
236
246
|
ok(`M12 at 390 px (${theme}) the page has no sideways scroll and every control is 44 px`, !pg.over && pg.small.length === 0, JSON.stringify(pg));
|
|
237
247
|
await R.ctx.close();
|
|
238
248
|
}
|
|
239
249
|
{
|
|
240
|
-
const R = await open(); await R.page.locator('.wrow[data-key="work:item-aaaaaaaaaaa1"] .wrh').first().focus();
|
|
250
|
+
const R = await open(); await showKey(R.page, 'work:item-aaaaaaaaaaa1'); await R.page.locator('.wrow[data-key="work:item-aaaaaaaaaaa1"] .wrh').first().focus();
|
|
241
251
|
await R.page.keyboard.press('Enter'); await until(() => R.page.evaluate(() => document.querySelector('#dlg').classList.contains('on'))); await sleep(500);
|
|
242
252
|
ok('M12 the page behind a dialog is inert, Escape closes it and focus returns to the row', await R.page.evaluate(() => ['.rail', 'main.stage', '#dock'].every((s) => document.querySelector(s).inert)) && (await R.page.keyboard.press('Escape'), await until(() => R.page.evaluate(() => !document.querySelector('#dlg').classList.contains('on') && document.activeElement.classList.contains('wrh')))));
|
|
243
253
|
await R.ctx.close();
|
|
@@ -250,11 +260,11 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
250
260
|
await pg.goto(BASE + '/premium-work.html');
|
|
251
261
|
ok('E1 on an empty scratch state the real page says the list is empty', await until(() => pg.evaluate(() => document.querySelector('#brief').textContent === 'Your list is empty.'), 20000));
|
|
252
262
|
await pg.fill('#capIn', 'Reply to Rina about SSO !p1'); await pg.press('#capIn', 'Enter');
|
|
253
|
-
ok('E2 an added line comes back through the real routes in the
|
|
263
|
+
ok('E2 an added line comes back through the real routes in the Inbox tab, with its priority, not counted to clear, and its dialog opens', await until(() => pg.evaluate(() => document.querySelector('#qBody').dataset.tab === 'inbox' && /Reply to Rina about SSO/.test(document.querySelector('#qBody').textContent) && /P1/.test(document.querySelector('#qBody').textContent) && /Added by you/.test(document.querySelector('#qBody').textContent) && document.querySelector('#dN').textContent === '0' && document.querySelector('#dlg').classList.contains('on')), 15000));
|
|
254
264
|
await sleep(700);
|
|
255
265
|
await pg.locator('#card [data-p="flag"]').click();
|
|
256
|
-
ok('E3 Do today, pressed in that dialog, moves it from the
|
|
257
|
-
await pg.locator('#
|
|
266
|
+
ok('E3 Do today, pressed in that dialog, moves it from the Inbox to Today through the real route', await until(() => pg.evaluate(() => document.querySelector('#qTabs [data-tab="today"]').textContent === 'Today1' && document.querySelector('#qTabs [data-tab="inbox"]').textContent === 'Inbox0' && document.querySelector('#dN').textContent === '1'), 15000));
|
|
267
|
+
await pg.click('#qTabs [data-tab="today"]'); await pg.locator('#qBody .wck').first().click();
|
|
258
268
|
ok('E4 the check circle marks it done, and the list is empty again', await until(() => pg.evaluate(() => document.querySelector('#brief').textContent === 'Your list is empty.' && document.querySelector('#dN').textContent === '0'), 15000));
|
|
259
269
|
const api = await fetch(BASE + '/api/my-work-premium').then((r) => r.json());
|
|
260
270
|
ok('E5 the model route answers ready with the list the Work page reads', api.ok && api.state === 'ready' && api.model.dock.needs === 0);
|
|
@@ -270,8 +280,10 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
270
280
|
/* M12 fidelity against the mockup: computed style and geometry of the regions both pages have */
|
|
271
281
|
if (!fs.existsSync(MOCKUP)) ok('M12 the mockup is in the repository', false, MOCKUP);
|
|
272
282
|
else {
|
|
273
|
-
|
|
274
|
-
const
|
|
283
|
+
/* the Work queue (PM, 2026-10-19) replaced the mockup's plate with one full-width card, so its parts are matched by style and not by place */
|
|
284
|
+
const PAIRS = [['rail', '.rail'], ['name', '.top .name'], ['date', '.hero .date'], ['brief', '.brief'], ['cap', '.cap'], ['capin', '.cap input'], ['capbtn', '.cap .capb'], ['plate', '#plate', '#queue'], ['heading', '#hPlate', '#hQueue'], ['row', '#plateBody .wrow:not(.first)', '#qBody .wrow:not(.first)'], ['title', '#plateBody .wrow:not(.first) .wtit', '#qBody .wrow:not(.first) .wtit'], ['sub', '#plateBody .wrow:not(.first) .ws', '#qBody .wrow:not(.first) .ws'], ['due', '#plateBody .due:not(.od)', '#qBody .due:not(.od)'], ['waitrow', '#waitBody .wrow'], ['dock', '.dock']];
|
|
285
|
+
const QUEUE = ['plate', 'heading', 'row', 'title', 'sub', 'due', 'waitrow'];
|
|
286
|
+
const SKIP_GEOM = { 1280: QUEUE, 390: QUEUE };
|
|
275
287
|
const PROPS = ['fontSize', 'fontWeight', 'fontFamily', 'color', 'backgroundColor', 'borderRadius', 'paddingTop', 'paddingLeft', 'letterSpacing', 'lineHeight', 'boxShadow', 'backdropFilter', 'borderTopColor'];
|
|
276
288
|
const grab = (pg, pairs) => pg.evaluate(([pairs, props]) => { const o = {}; for (const [n, s0] of pairs) { 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]);
|
|
277
289
|
for (const [w, h] of [[1280, 900], [390, 844]]) for (const th of ['light', 'dark']) {
|
|
@@ -283,7 +295,7 @@ const MOCKUP = path.join(__dirname, '..', 'prototype', 'premium-ux-concept', 'br
|
|
|
283
295
|
const R = await open({ w, h, theme: th }); await sleep(500);
|
|
284
296
|
/* a theme change starts a .3 s box-shadow transition; on a slow runner it can still be running, so let every animation finish before reading styles */
|
|
285
297
|
for (const pg of [m, R.page]) await pg.evaluate(() => Promise.all(document.getAnimations().filter((a) => a.effect && a.effect.getComputedTiming().iterations !== Infinity).map((a) => a.finished.catch(() => null)))).catch(() => null);
|
|
286
|
-
const a = await grab(m, PAIRS), c = await grab(R.page, PAIRS), diffs = [];
|
|
298
|
+
const a = await grab(m, PAIRS.map(([n, s0]) => [n, s0])), c = await grab(R.page, PAIRS.map(([n, s0, s1]) => [n, s1 || s0])), diffs = [];
|
|
287
299
|
for (const [n] of PAIRS) {
|
|
288
300
|
if (!a[n] || !c[n]) { diffs.push(n + ' missing'); continue; }
|
|
289
301
|
for (const k of Object.keys(a[n])) {
|
|
@@ -204,11 +204,11 @@ My work is the second place on the rail, at `/premium-work.html`. It reads the l
|
|
|
204
204
|
|
|
205
205
|
**Row suggestions and buttons.** A row shows a suggestion line only when a record backs it: an agent's offer on the item, a draft that is ready, or a date. A row has no button of its own. Press the row to open the item, where you review a draft, start the agent, or give the item a day. To act without opening it, swipe the row or press the right or left arrow key. A row in Today goes to Done (or opens its draft when one is ready) on the right and to Tomorrow on the left. Any other row goes to Today on the right and to Someday on the left. A row from Jira shows its Jira key.
|
|
206
206
|
|
|
207
|
-
**Weekly review.** A card lists five steps: sort the inbox, place
|
|
207
|
+
**Weekly review.** A card lists five steps: sort the inbox, place what you added, check who owes you, review agent drafts, and look at what sat untouched. Each step shows a count from your list and opens its first item. **Start the review** opens the first step that has something. On a Friday the card reads Friday review. PMOS keeps no review schedule and no timing, so the card shows none. Answers, ideas and reports an agent files by itself are not shown, because PMOS holds no records for them.
|
|
208
208
|
|
|
209
209
|
**Decide.** An inbox row shows a **Decide** button that opens the item, where you give it a day, put it in Someday or drop it.
|
|
210
210
|
|
|
211
|
-
**
|
|
211
|
+
**Work queue.** One full-width card holds everything you sort, as tabs in one row: **Today**, **Inbox**, **Agents**, **Upcoming**, **Someday**, **Kept** and **Done**. Each tab shows its count, and the card opens on Today (or on the first tab that has something). Rows sit in two columns, one column on a narrow screen. The left and right arrow keys move between tabs. **Inbox** shows what is new from Jira and Slack first, then what you added. **Agents** holds drafts ready, runs working and runs failed. **Kept** gathers items you pressed Keep on, and **Done** shows what you added and marked done in the last 7 days. An item shows in one place tab only. Kept is a mark on an item, not a place, so a kept item also shows where it was placed. The card replaces the earlier On your plate, With agents and tray cards.
|
|
212
212
|
|
|
213
213
|
**The item dialog.** The dialog shows **Done**, **Not yet** (Later today, Tomorrow, Next week, Do today) and **Drop it**. **More** opens the rest: Edit, Who does each step, Not before, Someday and Waiting on someone. Every action stays reachable.
|
|
214
214
|
|
|
@@ -218,10 +218,10 @@ My work is the second place on the rail, at `/premium-work.html`. It reads the l
|
|
|
218
218
|
|
|
219
219
|
- **The hero** is built from counts of your list: new in the inbox, overdue, due today, people who owe you something (and the longest wait), agent drafts to review, and items untouched for seven days. A clause with no record is left out.
|
|
220
220
|
- **One count.** "To clear" is the inbox, plus today, plus agent drafts to review. The hero, the card and the dock use it.
|
|
221
|
-
- **Add** takes one line, read by the Work page's own parser (`Reply to Rina about SSO by Friday !p1`). A new item with no date waits in
|
|
222
|
-
- **
|
|
223
|
-
- **
|
|
224
|
-
- **
|
|
221
|
+
- **Add** takes one line, read by the Work page's own parser (`Reply to Rina about SSO by Friday !p1`). A new item with no date waits in the **Inbox** tab, under Added by you. The card opens on that tab and the item's dialog opens at once, so you can place it. An item with a date goes where its date says.
|
|
222
|
+
- **What you added** and have not placed is not counted to clear until you place it (Do today, Later, Not yet, Waiting, Done or Drop).
|
|
223
|
+
- **The Work queue's place tabs** are Today, Inbox, Upcoming and Someday. A row shows where it came from (Yours, Jira, Slack, Board) and a due chip only when a date was set. The round check marks it done, with Undo for a few seconds. "Do this first" appears only on an overdue item.
|
|
224
|
+
- **The Agents tab** counts running, failed and to-review drafts from each item's agent field. Press a count to show only the items in that state; press it again to show every item. The dark tile is the filter you picked. A draft is labelled "Agent draft, not checked" and is never counted as done. The agent itself is started, stopped, edited, sent back or approved in the item's dialog (see below).
|
|
225
225
|
- **Waiting on others** lists who you wait for and for how long. There is no nudge.
|
|
226
226
|
- **An item's dialog** offers Done, Not yet (later today, tomorrow, next week), Do today, Waiting on a name, Drop (with Undo), and Keep for an item untouched for seven days. The read-only agent from "Asking the agent" is beside it. Below those is a tool row with four more presses, each through the Work page's own route:
|
|
227
227
|
- **Edit** changes the title, due day, priority, who you wait on and the job. A title that Jira, the breakdown or the morning brief owns is read-only, and the panel says so. Only the fields you changed are saved, and Undo writes the old values back.
|
|
@@ -230,9 +230,9 @@ My work is the second place on the rail, at `/premium-work.html`. It reads the l
|
|
|
230
230
|
- **Someday** sends the item to Someday. On an item already there, the same button brings it back.
|
|
231
231
|
- **The agent on an item** appears at the top of the dialog when the item has one. A *suggestion* shows what the agent will do (you can change the words) and **Let the agent draft this**. A *queued or working* agent shows its state and **Stop**. A *ready* draft is labelled the agent's and unchecked. **Post it to Jira** (or Slack, email and so on, from where the item came) first asks, names the place, shows exactly the text and posts nothing until you press **Post it now**. **Edit the draft** lets you change the text, and the post sends your text. **Send it back with a note** needs a note. **Mark it done** posts nothing. A failed run says why and offers **Try again** and **Stop**. An item you added has no place to post to, so it has no Post.
|
|
232
232
|
- **Focus** sits under the add line. It shows the first of the (at most three) things PMOS suggests for today, grouped by the job they serve, with **Accept**. **See all** lists them with Accept, Not today and Clear, and your jobs with their open counts, and **Add a job** takes one line (`when …, I want …, so …`). An accepted group tags its Today rows with Focus. Focus starts empty each day. Editing and deleting a job stay in the console.
|
|
233
|
-
- **Keys and swipe** work on the rows of the
|
|
233
|
+
- **Keys and swipe** work on the rows of the Work queue. J and K move between rows. The right arrow, or a drag to the right past 90 px, does Done on a Today row and In Today elsewhere; the left arrow, or a drag to the left, does Tomorrow on a Today row and Someday elsewhere. A Today row whose draft is ready offers Review on the right. A row in Waiting has none. Each one offers Undo, and under reduced motion the row does not slide.
|
|
234
234
|
|
|
235
|
-
Not drawn, because no record backs them: answers and ideas an agent files by itself, "fold the laundry", the week bars and the capacity figure, and the mockup's suggested place on an inbox item.
|
|
235
|
+
Not drawn, because no record backs them: answers and ideas an agent files by itself, "fold the laundry", the "Next day" demo control, shelf life and "composts soon", the week bars and the capacity figure, and the mockup's suggested place on an inbox item.
|
|
236
236
|
|
|
237
237
|
## Board
|
|
238
238
|
|
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
*
|
|
7
7
|
* THE RULE THE FILE FOLLOWS (as lib/briefing-premium.js): a sentence, a count or a chip is made only from a field of an item. A clause with no
|
|
8
8
|
* record is left out. The hero, the card headers and the dock read ONE definition of "to clear": inbox + today + agent drafts to review (M9).
|
|
9
|
-
* The
|
|
10
|
-
*
|
|
11
|
-
* behind them and are not built (PRD D15, amended by the PM 2026-10-17 to add the
|
|
9
|
+
* The PM's own unsorted captures (an item the PM added, source local, that no date or flag has placed yet) wait in the inbox beside the items
|
|
10
|
+
* from Jira and Slack. They are not counted as work to clear until the PM places it. The shelf, the capacity figure and the week bars of the mockup
|
|
11
|
+
* have no record behind them and are not built (PRD D15, amended by the PM 2026-10-17 to add the captures).
|
|
12
|
+
* The Work queue (PM, 2026-10-19): one card holds what On your plate, With agents and the tray held, as tabs. No item shows in two tabs except
|
|
13
|
+
* Kept, which is a mark on an item and not a place.
|
|
12
14
|
* An agent draft is the agent's text: it is shown labelled and is never counted as done. */
|
|
13
15
|
|
|
14
16
|
const WORDS = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven', 'twelve'];
|
|
@@ -118,7 +120,7 @@ function fridayOf({ today, work, tray, ready, review }) {
|
|
|
118
120
|
const first = (a) => (a[0] ? 'work:' + (a[0].it ? a[0].it.id : a[0].id) : null);
|
|
119
121
|
const steps = [
|
|
120
122
|
{ key: 'inbox', label: 'Sort the inbox', n: (work.inbox || []).length, first: first(work.inbox || []) },
|
|
121
|
-
{ key: 'tray', label: 'Place
|
|
123
|
+
{ key: 'tray', label: 'Place what you added', n: tray.length, first: first(tray) },
|
|
122
124
|
{ key: 'waiting', label: 'Check who owes you', n: (work.waiting || []).length, first: first(work.waiting || []) },
|
|
123
125
|
{ key: 'drafts', label: 'Review agent drafts', n: ready.length, first: first(ready) },
|
|
124
126
|
{ key: 'stale', label: 'Look at what sat untouched', n: review.length, first: first(review) },
|
|
@@ -133,7 +135,7 @@ function rowOf(it, list, v, inReview, focusIds) {
|
|
|
133
135
|
const sub = [srcLabel(it) + (it.key && it.source !== 'local' ? ' ' + it.key : ''), it.priority, it.waiting_on ? 'waiting on ' + it.waiting_on : null, (it.steps || []).length ? (it.steps || []).length + ' ' + plural((it.steps || []).length, 'step', 'steps') + ((it.steps || []).some((x) => x.who === 'agent-does' || x.who === 'agent-drafts') ? ' · agent can do ' + (it.steps || []).filter((x) => x.who !== 'you').length : '') : null].filter(Boolean).join(' · ');
|
|
134
136
|
const days = it.waiting_since ? daysBetween(String(it.waiting_since).slice(0, 10), today) : null;
|
|
135
137
|
const facts = [
|
|
136
|
-
['From', srcLabel(it)], ['Place', list === 'upcoming' ? 'Upcoming' : list.charAt(0).toUpperCase() + list.slice(1)], ['Due', it.due ? shortDate(it.due) + (overdue ? ' (overdue)' : '') : ''],
|
|
138
|
+
['From', srcLabel(it)], ['Place', list === 'upcoming' ? 'Upcoming' : list === 'tray' ? 'Inbox, added by you' : list.charAt(0).toUpperCase() + list.slice(1)], ['Due', it.due ? shortDate(it.due) + (overdue ? ' (overdue)' : '') : ''],
|
|
137
139
|
['Priority', it.priority], ['Waiting on', it.waiting_on], ['Waiting since', it.waiting_since ? shortDate(String(it.waiting_since).slice(0, 10)) + (days != null ? ' (' + days + ' ' + plural(days, 'day', 'days') + ')' : '') : ''],
|
|
138
140
|
['Not before', it.defer && it.defer > today ? shortDate(it.defer) : ''], ['Added', it.created_at ? shortDate(String(it.created_at).slice(0, 10)) : ''], ['Last touched', it.touched_at ? shortDate(String(it.touched_at).slice(0, 10)) : ''],
|
|
139
141
|
].filter((x) => x[1]);
|
|
@@ -144,7 +146,7 @@ function rowOf(it, list, v, inReview, focusIds) {
|
|
|
144
146
|
if (list !== 'waiting') actions.push('waiting');
|
|
145
147
|
actions.push('remove');
|
|
146
148
|
if (inReview) actions.push('keep');
|
|
147
|
-
const say = overdue ? 'This was due ' + shortDate(it.due) + ' and is still open.' : list === 'tray' ? 'You
|
|
149
|
+
const say = overdue ? 'This was due ' + shortDate(it.due) + ' and is still open.' : list === 'tray' ? 'You added this. It has no date or place yet. Place it, or drop it.' : list === 'inbox' ? 'This is new and has no date or place yet.' : list === 'waiting' ? 'You are waiting on ' + (it.waiting_on || 'someone') + (days != null ? ' for ' + days + ' ' + plural(days, 'day', 'days') : '') + '.' : 'This is on your list.';
|
|
148
150
|
const { sug, cta } = suggestOf(it, list, today, overdue);
|
|
149
151
|
return {
|
|
150
152
|
key: 'work:' + it.id, id: it.id, list, title: clip(it.title, 140), sub: sub + (added && (list === 'inbox' || list === 'tray') ? ' · added ' + added : ''), chip, overdue, src: srcLabel(it), sug, cta,
|
|
@@ -202,7 +204,7 @@ function build({ v, now, events }) {
|
|
|
202
204
|
if (first.length) line1.push(...first);
|
|
203
205
|
for (const b of bits) { if (line1.length) line1.push({ t: ', ' }); line1.push(...b); }
|
|
204
206
|
if (line1.length) { line1.push({ t: '.' }); add(line1, [].concat(work.inbox.map((i) => i.id), overdue.map((x) => x.it.id), dueToday.map((i) => i.id))); }
|
|
205
|
-
if (tray.length) add([{ t: num(tray.length), s: true }, { t: ' ' + plural(tray.length, 'thing you
|
|
207
|
+
if (tray.length) add([{ t: num(tray.length), s: true }, { t: ' ' + plural(tray.length, 'thing you added waits', 'things you added wait') + ' to be placed.' }], tray.map((i) => i.id));
|
|
206
208
|
if ((work.waiting || []).length) add([{ t: num(work.waiting.length), s: true }, { t: ' ' + plural(work.waiting.length, 'person owes', 'people owe') + ' you something' + (longest != null ? ', the longest for ' : '.') }].concat(longest != null ? [{ t: longest + ' ' + plural(longest, 'day', 'days'), s: true }, { t: '.' }] : []), work.waiting.map((i) => i.id));
|
|
207
209
|
if (ready.length) add([{ t: num(ready.length), s: true }, { t: ' agent ' + plural(ready.length, 'draft needs', 'drafts need') + ' your review.' }], ready.map((x) => x.it.id));
|
|
208
210
|
if ((v.review || []).length) add([{ t: num(v.review.length), s: true }, { t: ' ' + plural(v.review.length, 'item has', 'items have') + ' sat untouched for ' + v.review_days + ' days.' }], v.review.map((i) => i.id));
|
|
@@ -219,24 +221,37 @@ function build({ v, now, events }) {
|
|
|
219
221
|
const agentBy = {};
|
|
220
222
|
for (const [k, xs] of [['running', running], ['failed', failed], ['ready', ready]]) agentBy[k] = { more: Math.max(0, xs.length - MAX_PER), rows: xs.slice(0, MAX_PER).map((x) => rowOf(x.it, x.list, v, reviewIds.has(x.it.id), focusIds)) };
|
|
221
223
|
const trayRows = tray.slice(0, MAX_PER).map((it) => rowOf(it, 'tray', v, reviewIds.has(it.id), focusIds));
|
|
222
|
-
const
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
for (const r of trayRows) if (reviewIds.has(r.id)) r.stale = true;
|
|
225
|
+
const queue = queueOf();
|
|
226
|
+
const rowsAll = [...new Set([].concat(...sections.map((s) => s.rows), waitingRows, agentRows, ...Object.values(agentBy).map((g) => g.rows), trayRows, ...queue.tabs.map((t) => [].concat(...t.groups.map((g) => g.rows)))))]; // the queue's tabs reuse the section rows
|
|
227
|
+
/* The Work queue: one card, one tab for each place a thing waits, from the item records alone. Today, Inbox (new from Jira and Slack, then what
|
|
228
|
+
* the PM added), Agents (a draft ready, a run working or failed), Upcoming, Someday, Kept (a Keep press was recorded) and Done (done in the last
|
|
229
|
+
* 7 days). Answers and ideas an agent files on its own have no record, so no tab holds them. */
|
|
230
|
+
function queueOf() {
|
|
226
231
|
const loc = (v.items || all.map((x) => x.it)).filter(isLocal);
|
|
227
|
-
const rowFor = (it, cta) => { const r = rowOf(it, 'tray', v, reviewIds.has(it.id), focusIds); r.cta = cta; return r; };
|
|
228
232
|
const week = daysAgo(today, 7);
|
|
229
|
-
const
|
|
233
|
+
const grp = (key, label, n, rows, more, hint) => ({ key, label, n, rows, more, hint: hint || '' });
|
|
234
|
+
const sec = (k) => sections.find((s) => s.key === k);
|
|
235
|
+
const listTab = (k, label, note) => { const s = sec(k); return { key: k, label, n: s.n, groups: [grp(k, '', s.n, s.rows, s.more)], note }; };
|
|
236
|
+
const kept = loc.filter((it) => !it.done && it.kept_at), done = loc.filter((it) => it.done && String(it.done_at || '').slice(0, 10) >= week);
|
|
237
|
+
const placeOf = (it) => (it.done ? 'done' : (all.find((x) => x.it.id === it.id) || { list: 'tray' }).list);
|
|
238
|
+
const recRows = (items) => items.slice(0, MAX_PER).map((it) => rowOf(it, placeOf(it), v, reviewIds.has(it.id), focusIds));
|
|
239
|
+
const agN = ready.length + running.length + failed.filter((x) => !ready.includes(x)).length;
|
|
240
|
+
const inbox = sec('inbox');
|
|
230
241
|
const tabs = [
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
['
|
|
235
|
-
|
|
236
|
-
|
|
242
|
+
listTab('today', 'Today', 'What you placed for today. "Do this first" marks an overdue item only.'),
|
|
243
|
+
{ key: 'inbox', label: 'Inbox', n: inbox.n + tray.length, groups: [grp('new', 'New from Jira and Slack', inbox.n, inbox.rows, inbox.more, 'counts to clear'), grp('mine', 'Added by you', tray.length, trayRows, Math.max(0, tray.length - MAX_PER), 'not counted until you place it')],
|
|
244
|
+
note: 'Everything new or not yet placed. Open one to place it: Today, later, waiting on someone, or drop it. What you added counts to clear only once you place it.' },
|
|
245
|
+
{ key: 'agents', label: 'Agents', n: agN, groups: [grp('agents', '', agN, agentRows, Math.max(0, agN - MAX_PER))], by: agentBy, counts: { running: running.length, failed: failed.length, ready: ready.length }, note: HOLD.agent },
|
|
246
|
+
listTab('upcoming', 'Upcoming', 'Items with a later date.'),
|
|
247
|
+
listTab('someday', 'Someday', 'Items you parked with no date.'),
|
|
248
|
+
{ key: 'kept', label: 'Kept', n: kept.length, groups: [grp('kept', '', kept.length, recRows(kept), Math.max(0, kept.length - MAX_PER))], note: 'Items you pressed Keep on. They stay where they were placed; this tab gathers them.' },
|
|
249
|
+
{ key: 'done', label: 'Done', n: done.length, groups: [grp('done', '', done.length, recRows(done), Math.max(0, done.length - MAX_PER))], note: 'What you added and marked done in the last 7 days. Items from Jira or Slack close there, not here.' },
|
|
237
250
|
];
|
|
238
|
-
|
|
239
|
-
|
|
251
|
+
const start = (tabs.find((t) => t.key === 'today' && t.n) || tabs.find((t) => t.n) || tabs[0]).key;
|
|
252
|
+
const bits = [ready.length ? num(ready.length) + ' ' + plural(ready.length, 'draft', 'drafts') + ' to review' : null, tray.length ? tray.length + ' to place' : null].filter(Boolean);
|
|
253
|
+
return { title: 'Work queue', n: clear, cap: bits, tabs, start,
|
|
254
|
+
note: 'Each item comes from your list. A date shows only when one was set, and PMOS does not guess a place. Nothing changes in Jira or Slack from here. Answers and ideas an agent files on its own are not shown: PMOS holds no record of them.' };
|
|
240
255
|
}
|
|
241
256
|
const firstToday = sections[1].rows[0];
|
|
242
257
|
const model = {
|
|
@@ -245,12 +260,11 @@ function build({ v, now, events }) {
|
|
|
245
260
|
hero, empty,
|
|
246
261
|
capture: { placeholder: 'Add anything: "Reply to Rina about SSO by Friday"', hint: 'One line. The date and priority are read from it.' },
|
|
247
262
|
plate: { title: 'On your plate', cap: clear + ' to clear', n: clear, sections, note: 'Each item comes from your list. A suggestion shows only when an agent offered it, a draft is ready, or a date says so; PMOS does not guess a place. A date shows only when one was set. Nothing changes in Jira or Slack from here.' },
|
|
248
|
-
tray: { title: 'Your tray', cap: tray.length ? tray.length + ' to place' : 'empty', n: tray.length, more: Math.max(0, tray.length - MAX_PER), rows: trayRows, note: 'Anything you add lands here first. Open one to place it: Today, Later, waiting on someone, or drop it. Nothing here counts as work to clear until you place it.' },
|
|
249
263
|
agents: { title: 'With agents', cap: ready.length ? num(ready.length) + ' to review' : running.length ? num(running.length) + ' running' : 'nothing running', counts: { running: running.length, ready: ready.length, failed: failed.length }, rows: agentRows, by: agentBy, hold: HOLD.agent },
|
|
250
264
|
waiting: { title: 'Waiting on others', cap: longest != null ? 'longest ' + longest + ' ' + plural(longest, 'day', 'days') : (work.waiting || []).length ? num(work.waiting.length) + ' waiting' : '', n: (work.waiting || []).length, more: Math.max(0, (work.waiting || []).length - MAX_PER), rows: waitingRows },
|
|
251
265
|
review: { n: (v.review || []).length, days: v.review_days, ids: (v.review || []).map((i) => i.id) },
|
|
252
266
|
dock: { needs: clear, label: 'to clear', next: firstToday ? firstToday.title : (sections[0].rows[0] ? sections[0].rows[0].title : null) },
|
|
253
|
-
|
|
267
|
+
queue,
|
|
254
268
|
friday: fridayOf({ today, work, tray, ready, review: v.review || [] }),
|
|
255
269
|
week: weekOf({ today, items: v.items || all.map((x) => x.it), events }),
|
|
256
270
|
focus, jobs,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.315.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.315.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/workspace/package.json
CHANGED
|
@@ -60,12 +60,15 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
|
|
|
60
60
|
await page.route('**/api/pm-items/**', rec); await page.route('**/api/pm-jobs/**', rec); await page.route('**/api/my-work/**', rec);
|
|
61
61
|
await page.route('**/api/briefing-premium/**', (r) => r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, turns: [], working: false }) }));
|
|
62
62
|
await page.goto(BASE + '/premium-work.html?theme=' + theme);
|
|
63
|
-
const up = await until(() => page.evaluate(() => document.querySelectorAll('#
|
|
63
|
+
const up = await until(() => page.evaluate(() => document.querySelectorAll('#qBody .wrow').length > 0), 20000);
|
|
64
64
|
return { ctx, page, errors, posts, up, replies, setModel: (m) => { current = m; }, refuse: (f) => { fail = f; }, last: () => posts[posts.length - 1] };
|
|
65
65
|
};
|
|
66
66
|
const dlgOn = (p) => until(() => p.evaluate(() => document.querySelector('#dlg').classList.contains('on')));
|
|
67
67
|
const dlgOff = (p) => until(() => p.evaluate(() => !document.querySelector('#dlg').classList.contains('on')));
|
|
68
|
-
|
|
68
|
+
/* the Work queue shows one tab at a time: bring up the tab that holds a row before pressing it (each press redraws the tab row, so the button is found again) */
|
|
69
|
+
const showKey = (p, key) => p.evaluate((key) => { const has = () => document.querySelector(`#qBody .wrow[data-key="${key}"], #waitBody .wrow[data-key="${key}"]`); if (has()) return true; for (const k of [...document.querySelectorAll('#qTabs .qtb')].map((b) => b.dataset.tab)) { document.querySelector(`#qTabs [data-tab="${k}"]`).click(); if (has()) return true; } return false; }, key);
|
|
70
|
+
const qTab = (p, k) => p.click(`#qTabs [data-tab="${k}"]`);
|
|
71
|
+
const openKey = async (p, key) => { await showKey(p, key); await p.locator(`.wrow[data-key="${key}"] .wrh`).first().click(); await dlgOn(p); await sleep(700); };
|
|
69
72
|
const undoOf = async (p, direct) => { await until(() => p.evaluate(() => /Undo/.test(document.querySelector('#toast').textContent))); if (direct) { /* the Undo window is 8 s; on a loaded runner the real-server steps before this can outlast it, so press the button itself rather than race the toast's fade */ await p.evaluate(() => document.querySelector('#toast .undo').click()); } else await p.locator('#toast .undo').click(); await sleep(250); };
|
|
70
73
|
|
|
71
74
|
const A = await open();
|
|
@@ -232,7 +235,7 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
|
|
|
232
235
|
await R.ctx.close(); }
|
|
233
236
|
|
|
234
237
|
/* W8 keys */
|
|
235
|
-
await p.locator('#
|
|
238
|
+
await showKey(p, 'work:item-bbbbbbbbbbb2'); await p.locator('#qBody .wrow[data-key="work:item-bbbbbbbbbbb2"] .wrh').focus();
|
|
236
239
|
const desc = await p.evaluate(() => document.activeElement.getAttribute('aria-description'));
|
|
237
240
|
ok('W8 a row names what the arrows do and that J and K move', /Right arrow: Done\. Left arrow: Tomorrow\. J and K move between rows\./.test(desc || ''), desc);
|
|
238
241
|
await p.keyboard.press('j');
|
|
@@ -240,32 +243,32 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
|
|
|
240
243
|
await p.keyboard.press('ArrowRight');
|
|
241
244
|
ok('W8 Right arrow on a Today row posts done, with Undo', await wait(() => A.last().path === '/api/pm-items/done' && A.last().body.id === 'item-bbbbbbbbbbb2') && await until(() => p.evaluate(() => /Undo/.test(document.querySelector('#toast').textContent))), JSON.stringify(A.last()));
|
|
242
245
|
await sleep(300);
|
|
243
|
-
await p.locator('#
|
|
246
|
+
await showKey(p, 'work:item-bbbbbbbbbbb2'); await p.locator('#qBody .wrow[data-key="work:item-bbbbbbbbbbb2"] .wrh').focus(); await p.keyboard.press('ArrowLeft');
|
|
244
247
|
ok('W8 Left arrow on a Today row puts it off to tomorrow (defer to the next day)', await wait(() => A.last().path === '/api/pm-items/defer' && A.last().body.id === 'item-bbbbbbbbbbb2' && A.last().body.until === '2026-10-17'), JSON.stringify(A.last()));
|
|
245
248
|
await sleep(300);
|
|
246
|
-
await p.locator('#
|
|
249
|
+
await showKey(p, 'work:item-aaaaaaaaaaa1'); await p.locator('#qBody .wrow[data-key="work:item-aaaaaaaaaaa1"] .wrh').focus(); await p.keyboard.press('ArrowRight');
|
|
247
250
|
ok('W8 Right arrow on an Inbox row moves it to Today (flag)', await wait(() => A.last().path === '/api/pm-items/flag' && A.last().body.id === 'item-aaaaaaaaaaa1' && A.last().body.flagged === true), JSON.stringify(A.last()));
|
|
248
251
|
await sleep(300);
|
|
249
|
-
await p.locator('#
|
|
252
|
+
await showKey(p, 'work:item-aaaaaaaaaaa2'); await p.locator('#qBody .wrow[data-key="work:item-aaaaaaaaaaa2"] .wrh').focus(); await p.keyboard.press('ArrowLeft');
|
|
250
253
|
ok('W8 Left arrow on an Inbox row sends it to Someday', await wait(() => A.last().path === '/api/pm-items/someday' && A.last().body.id === 'item-aaaaaaaaaaa2'), JSON.stringify(A.last()));
|
|
251
254
|
await sleep(300);
|
|
252
|
-
const n2 = pc(); await p.locator('#
|
|
255
|
+
const n2 = pc(); await showKey(p, 'work:item-eeeeeeeeeee1'); await p.locator('#qBody .wrow[data-key="work:item-eeeeeeeeeee1"] .wrh').focus(); await p.keyboard.press('ArrowLeft'); await sleep(250);
|
|
253
256
|
ok('W8 a Someday row has no left action, and posts nothing', pc() === n2);
|
|
254
257
|
await p.locator('#waitBody .wrh').first().focus(); await p.keyboard.press('ArrowRight'); await sleep(250);
|
|
255
258
|
ok('W8 a Waiting row has no arrow actions, and posts nothing', pc() === n2);
|
|
256
|
-
await p.locator('#
|
|
259
|
+
await showKey(p, 'work:wbs:alpha:4.2'); await p.locator('#qBody .wrow[data-key="work:wbs:alpha:4.2"] .wrh').focus();
|
|
257
260
|
ok('W8 a Today row whose draft is ready offers Review on the right, not Done', /Right arrow: Review/.test(await p.evaluate(() => document.activeElement.getAttribute('aria-description'))));
|
|
258
261
|
await p.keyboard.press('ArrowRight'); await dlgOn(p);
|
|
259
262
|
ok('W8 …and Review opens the dialog without posting', pc() === n2 + 0 || A.last().path !== '/api/pm-items/done');
|
|
260
263
|
await p.keyboard.press('Escape'); await dlgOff(p);
|
|
261
264
|
{ const r = await open(); const t = r.page;
|
|
262
|
-
await t.locator('#
|
|
263
|
-
ok('W8 the keys work on a
|
|
265
|
+
await showKey(t, 'work:item-aaaaaaaaaaa4'); await t.locator('#qBody .wrow[data-key="work:item-aaaaaaaaaaa4"] .wrh').focus(); await t.keyboard.press('ArrowRight');
|
|
266
|
+
ok('W8 the keys work on a row you added too (flag)', await until(() => r.last() && r.last().path === '/api/pm-items/flag' && r.last().body.id === 'item-aaaaaaaaaaa4'), JSON.stringify(r.last()));
|
|
264
267
|
await r.ctx.close(); }
|
|
265
268
|
|
|
266
269
|
/* W8 swipe */
|
|
267
270
|
const drag = async (pg, key, dx, hold = false) => {
|
|
268
|
-
const loc = pg.locator(`#
|
|
271
|
+
await showKey(pg, key); const loc = pg.locator(`#qBody .wrow[data-key="${key}"] .wrh`); await loc.evaluate((e) => e.scrollIntoView({ block: 'center' })); await sleep(150); // centred, so the Undo toast at the foot of the screen does not cover the row
|
|
269
272
|
const b = await loc.boundingBox(); const y = b.y + b.height / 2, x = b.x + b.width / 2;
|
|
270
273
|
await pg.mouse.move(x, y); await pg.mouse.down(); await pg.mouse.move(x + dx / 3, y, { steps: 4 }); await pg.mouse.move(x + dx, y, { steps: 6 });
|
|
271
274
|
const seen = await pg.evaluate(() => { const rv = document.querySelector('.xrv'); return rv ? { text: rv.textContent.trim(), op: +getComputedStyle(rv).opacity, tr: getComputedStyle(rv.parentElement.querySelector('.wrow')).transform } : null; });
|
|
@@ -279,7 +282,7 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
|
|
|
279
282
|
ok('W8 a drag of 50 px snaps back and posts nothing', r.posts.length === n3 && s2 && s2.op < 0.7, JSON.stringify([s2, r.posts.length - n3]));
|
|
280
283
|
const s3 = await drag(t, 'work:item-bbbbbbbbbbb3', -130); await sleep(300);
|
|
281
284
|
ok('W8 dragging left shows "Tomorrow" and posts defer to the next day', s3 && s3.text === 'Tomorrow' && await until(() => r.last().path === '/api/pm-items/defer' && r.last().body.until === '2026-10-17'), JSON.stringify([s3, r.last()]));
|
|
282
|
-
const n4 = r.posts.length; await t.locator('#
|
|
285
|
+
const n4 = r.posts.length; await showKey(t, 'work:item-aaaaaaaaaaa3'); await t.locator('#qBody .wrow[data-key="work:item-aaaaaaaaaaa3"] .wrh').click(); await dlgOn(t);
|
|
283
286
|
ok('W8 an ordinary click still opens the row and posts nothing', r.posts.length === n4);
|
|
284
287
|
await r.ctx.close(); }
|
|
285
288
|
{ const r = await open({ rm: true }); const t = r.page;
|
|
@@ -310,7 +313,7 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
|
|
|
310
313
|
}
|
|
311
314
|
ok(`W12 at 390 px (${theme}) the edit, steps and Not before panels have no sideways scroll and every control is 44 px`, ['edit', 'steps', 'defer'].every((k) => !g[k].over && g[k].small.length === 0), JSON.stringify(g));
|
|
312
315
|
await q2.keyboard.press('Escape'); await dlgOff(q2);
|
|
313
|
-
await R.page.locator('#
|
|
316
|
+
await showKey(R.page, 'work:wbs:alpha:4.2'); await R.page.locator('#qBody .wrow[data-key="work:wbs:alpha:4.2"] .wrh').click(); await dlgOn(q2); await sleep(500); await q2.click('#dTabs [data-t="chat"]'); await sleep(900);
|
|
314
317
|
const ag = await q2.evaluate(() => ({ over: document.documentElement.scrollWidth > innerWidth + 1 || document.querySelector('#dlg').scrollWidth > document.querySelector('#dlg').clientWidth + 1, small: [...document.querySelectorAll('.agblk button')].filter((b) => b.getBoundingClientRect().height < 43.5).map((b) => b.textContent.trim()) }));
|
|
315
318
|
ok(`W12 at 390 px (${theme}) the agent block has no sideways scroll and its buttons are 44 px`, !ag.over && ag.small.length === 0, JSON.stringify(ag));
|
|
316
319
|
await R.ctx.close();
|
|
@@ -335,7 +338,7 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
|
|
|
335
338
|
await undoOf(pg, true); await sleep(300);
|
|
336
339
|
it = (await get('/api/pm-items')).items.find((i) => i.id === it.id);
|
|
337
340
|
ok('E3 Undo writes the old values back (the title the parser made, no day, P1)', it.title === 'Reply to Rina about SSO !' && !it.due && it.priority === 'P1', JSON.stringify(it));
|
|
338
|
-
await pg.locator('#
|
|
341
|
+
await pg.locator('#qBody .wrh').first().click(); await dlgOn(pg); await sleep(700);
|
|
339
342
|
await more(pg); await pg.click('[data-p="xt"][data-k="steps"]');
|
|
340
343
|
await pg.fill('#xsIn', 'Send the SSO plan to Rina'); await pg.click('[data-p="xsadd"]');
|
|
341
344
|
ok('E4 a step is added through the real route', await until(async () => ((await get('/api/pm-items')).items.find((i) => i.id === it.id) || {}).steps && (await get('/api/pm-items')).items.find((i) => i.id === it.id).steps.length === 1, 8000));
|
|
@@ -349,16 +352,16 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
|
|
|
349
352
|
await undoOf(pg, true); await sleep(300);
|
|
350
353
|
it = (await get('/api/pm-items')).items.find((i) => i.id === it.id);
|
|
351
354
|
ok('E7 Undo clears it', !it.defer, JSON.stringify(it));
|
|
352
|
-
await pg.locator('.wrow, #
|
|
353
|
-
await pg.locator('#
|
|
355
|
+
await pg.locator('.wrow, #qBody .wrh').first().click({ trial: true }).catch(() => {});
|
|
356
|
+
await pg.locator('#qBody .wrh').first().click(); await dlgOn(pg); await sleep(700);
|
|
354
357
|
await more(pg); await pg.click('[data-p="xt"][data-k="someday"]'); await dlgOff(pg);
|
|
355
358
|
ok('E8 Someday parks the real record', (await get('/api/pm-items')).work.someday.some((i) => i.id === it.id));
|
|
356
359
|
await undoOf(pg, true); await sleep(300);
|
|
357
360
|
ok('E9 Undo brings it back (unpark)', !(await get('/api/pm-items')).work.someday.some((i) => i.id === it.id));
|
|
358
|
-
await pg.locator('#
|
|
361
|
+
await pg.locator('#qBody .wrh').first().click(); await dlgOn(pg); await sleep(700); await pg.click('[data-p="flag"]'); await dlgOff(pg);
|
|
359
362
|
ok('E10 once the item is in Today, Focus suggests it and the bar says why', await until(() => pg.evaluate(() => /Suggested · /.test(document.querySelector('#xFocus').textContent)), 8000));
|
|
360
363
|
await pg.click('#xFocus [data-xf="acc"]');
|
|
361
|
-
ok('E11 Accept writes the group to today\'s Focus, and the Today row carries the Focus tag', await until(async () => (await get('/api/pm-items')).focus.accepted.length === 1, 8000) && await until(() => pg.evaluate(() => !!document.querySelector('#
|
|
364
|
+
ok('E11 Accept writes the group to today\'s Focus, and the Today row carries the Focus tag', await until(async () => (await get('/api/pm-items')).focus.accepted.length === 1, 8000) && (await qTab(pg, 'today'), await until(() => pg.evaluate(() => !!document.querySelector('#qBody .xfc')), 8000)));
|
|
362
365
|
await pg.click('#xFocus [data-xf="more"]'); await dlgOn(pg); await sleep(500);
|
|
363
366
|
await pg.fill('#xjIn', 'when a launch slips, I want the owner named, so the date holds'); await pg.click('[data-fx="jadd"]');
|
|
364
367
|
ok('E12 Add a job writes it, and the dialog lists it with its open count', await until(async () => (await get('/api/pm-items')).jobs.length === 1, 8000) && await until(() => pg.evaluate(() => /the owner named/.test(document.querySelector('#oMain').textContent) && /0 open items/.test(document.querySelector('#oMain').textContent)), 8000));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* pm/premium-work.js — the premium My work page (initiative briefing-premium-work, slice 4). Reads GET /api/my-work-premium and draws the model
|
|
2
|
-
* lib/my-work-premium.js builds from the list the Work page reads: the hero,
|
|
2
|
+
* lib/my-work-premium.js builds from the list the Work page reads: the hero, the Work queue, Waiting on others, the dock and the standard dialog.
|
|
3
3
|
* Every press goes to the Work page's own route under /api/pm-items, /api/pm-jobs or /api/my-work; this file adds no writer. A control with nothing honest to write stays off and says why.
|
|
4
4
|
* My work depth (initiative premium-work-depth): the dialog's tool row (Edit, Who does each step, Not before, Someday), the Focus bar and its jobs, the agent on an item
|
|
5
5
|
* (draft, stop, edit, post after a confirm, send back, try again), and keys and swipe on the rows. */
|
|
@@ -39,9 +39,9 @@ function drawHero() {
|
|
|
39
39
|
}
|
|
40
40
|
function drawDock() { $('#dN').textContent = M.dock.needs; $('#dLab').textContent = M.dock.needs === 0 ? 'to clear' : M.dock.label; $('#dNext').innerHTML = M.dock.next ? `<i></i>Next <b>${esc(M.dock.next)}</b>` : 'Nothing more on your list'; }
|
|
41
41
|
|
|
42
|
-
/* ── the
|
|
42
|
+
/* ── the Work queue ─────────────────────────────────────────────────────────────────────────────────────── */
|
|
43
43
|
function rowHtml(r, o = {}) {
|
|
44
|
-
const inbox = r.list === 'inbox' || r.list === 'tray', sm = o.sm;
|
|
44
|
+
const inbox = r.list === 'inbox' || r.list === 'tray' || r.list === 'done', sm = o.sm;
|
|
45
45
|
const sd = sm ? null : sideOf(r);
|
|
46
46
|
const desc = sd ? ` aria-description="${esc((sd.r ? 'Right arrow: ' + sd.r.label + '. ' : '') + (sd.l ? 'Left arrow: ' + sd.l.label + '. ' : '') + 'J and K move between rows.')}"` : '';
|
|
47
47
|
let lead;
|
|
@@ -55,49 +55,50 @@ function rowHtml(r, o = {}) {
|
|
|
55
55
|
const sug = !sm && r.sug ? `<span class="wsg">${ICO('<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"/>')}<span><b>${esc(r.sug.b)}</b> ${esc(r.sug.t)}</span></span>` : '';
|
|
56
56
|
return `<div class="wrw"><div class="wrow${sm ? ' sm' : ''}${inbox ? ' inb' : ''}${o.first ? ' first' : ''}" data-key="${esc(r.key)}">${lead}<button class="wrh" aria-haspopup="dialog"${desc}><span class="wtx"><span class="wtit">${esc(r.title)}${o.first ? '<em class="tgf">Do this first</em>' : ''}${r.focus ? '<em class="xfc">Focus</em>' : ''}</span><span class="ws">${esc(r.sub)}${esc(state)}</span>${sug}</span>${meta}</button></div></div>`;
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
$('#plateCap').innerHTML = `<b>${P.n}</b> to clear`;
|
|
61
|
-
$('#plateNote').textContent = P.note;
|
|
62
|
-
let h = '';
|
|
63
|
-
for (const s of P.sections) {
|
|
64
|
-
if (!s.n) {
|
|
65
|
-
h += `<div class="wsec" data-lane="${s.key}"><span class="label">${esc(s.label)}</span><em>empty</em></div>` + (s.key === 'inbox' ? `<p class="empty3">${CHECK}Nothing waits to be sorted.</p>` : '<p class="empty3 plain">Nothing here.</p>');
|
|
66
|
-
continue;
|
|
67
|
-
}
|
|
68
|
-
h += `<div class="wsec" data-lane="${s.key}"><span class="label">${esc(s.label)}</span><em>${s.n} open</em></div>`;
|
|
69
|
-
const first = s.key === 'today' ? s.rows.find((r) => r.overdue) || null : null;
|
|
70
|
-
h += s.rows.map((r) => rowHtml(r, { first: first && r.key === first.key })).join('');
|
|
71
|
-
if (s.more) h += `<p class="note">${s.more} more ${s.more === 1 ? 'item is' : 'items are'} not shown here.</p>`;
|
|
72
|
-
}
|
|
73
|
-
$('#plateBody').innerHTML = h;
|
|
74
|
-
}
|
|
75
|
-
let shelfTab = null;
|
|
76
|
-
function drawTray() {
|
|
77
|
-
const T = M.tray, Sh = M.shelf;
|
|
78
|
-
$('#trayCap').textContent = T.cap;
|
|
79
|
-
const tabs = Sh.tabs;
|
|
80
|
-
if (!shelfTab || !tabs.some((t) => t.key === shelfTab)) shelfTab = (tabs.find((t) => t.n) || tabs[0]).key;
|
|
81
|
-
const cur = tabs.find((t) => t.key === shelfTab);
|
|
82
|
-
$('#trayTabs').innerHTML = tabs.map((t) => `<button type="button" role="tab" class="stb" data-tab="${t.key}" aria-selected="${t.key === shelfTab}">${esc(t.label)} <b>${t.n}</b></button>`).join('');
|
|
83
|
-
$('#trayBody').innerHTML = cur.rows.length ? cur.rows.map((r) => rowHtml(r)).join('') + (cur.more ? `<p class="note">${cur.more} more not shown here.</p>` : '') : `<p class="empty3 plain">${cur.key === 'place' ? 'Nothing in your tray. Add a line above and it lands here first.' : 'Nothing here.'}</p>`;
|
|
84
|
-
$('#trayNote').textContent = T.note + ' ' + Sh.note;
|
|
85
|
-
}
|
|
86
|
-
$('#trayTabs').addEventListener('click', (e) => { const b = e.target.closest('[data-tab]'); if (!b) return; shelfTab = b.dataset.tab; drawTray(); const n = $(`#trayTabs [data-tab="${shelfTab}"]`); if (n) n.focus(); });
|
|
87
|
-
/* the three counts filter the list under them: a press shows one state, a second press on the same tile shows all again */
|
|
58
|
+
/* One card, one tab for each place a thing waits. A tab draws its groups in two columns; the Agents tab keeps the three counts, which filter its list. */
|
|
59
|
+
let qTab = null;
|
|
88
60
|
const AG_TILES = [['running', 'Running'], ['failed', 'Failed'], ['ready', 'To review']];
|
|
89
61
|
const AG_EMPTY = { running: 'No agent is running right now.', failed: 'No agent run has failed.', ready: 'No draft waits for your review.' };
|
|
62
|
+
const Q_EMPTY = { today: 'Nothing is placed for today.', inbox: 'Nothing waits to be sorted. Add a line above and it lands here first.', agents: 'No agent is working on your items.', upcoming: 'Nothing has a later date.', someday: 'Nothing is parked.', kept: 'Nothing kept yet.', done: 'Nothing done this week.' };
|
|
90
63
|
let agTile = null;
|
|
91
|
-
function
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
$('#
|
|
64
|
+
function groupHtml(g, tab) {
|
|
65
|
+
const ag = tab === 'agents', first = tab === 'today' ? g.rows.find((r) => r.overdue) || null : null;
|
|
66
|
+
return g.rows.map((r) => rowHtml(r, { sm: ag ? 'ag' : undefined, first: first && r.key === first.key })).join('') + (g.more ? `<p class="note">${g.more} more ${g.more === 1 ? 'item is' : 'items are'} not shown here.</p>` : '');
|
|
67
|
+
}
|
|
68
|
+
function drawQueue() {
|
|
69
|
+
const Q = M.queue, tabs = Q.tabs;
|
|
70
|
+
if (!qTab || !tabs.some((t) => t.key === qTab)) qTab = Q.start;
|
|
71
|
+
const cur = tabs.find((t) => t.key === qTab);
|
|
72
|
+
$('#qCap').innerHTML = `<b>${Q.n}</b> to clear` + Q.cap.map((c) => ' · ' + esc(c)).join('');
|
|
73
|
+
$('#qTabs').innerHTML = tabs.map((t) => `<button type="button" role="tab" class="qtb" id="qt-${t.key}" data-tab="${t.key}" aria-selected="${t.key === qTab}" aria-controls="qBody" tabindex="${t.key === qTab ? 0 : -1}">${esc(t.label)}<em>${t.n}</em></button>`).join('');
|
|
74
|
+
$('#qBody').setAttribute('aria-labelledby', 'qt-' + qTab);
|
|
75
|
+
const pipe = $('#qPipe');
|
|
76
|
+
pipe.hidden = qTab !== 'agents';
|
|
77
|
+
let h = '';
|
|
78
|
+
if (qTab === 'agents') {
|
|
79
|
+
const c = cur.counts;
|
|
80
|
+
if (agTile && !(cur.by && cur.by[agTile])) agTile = null;
|
|
81
|
+
pipe.innerHTML = AG_TILES.map(([k, label]) => `<button type="button" class="pst${agTile === k ? ' hot' : ''}" data-ag="${k}" aria-pressed="${agTile === k}" aria-controls="qBody" title="${agTile === k ? 'Show every item again' : 'Show only the items that are ' + label.toLowerCase()}"><b>${c[k]}</b><span>${label}</span></button>`).join('');
|
|
82
|
+
const g = agTile ? cur.by[agTile] : cur.groups[0];
|
|
83
|
+
h = g.rows.length ? groupHtml(g, 'agents') : `<p class="empty3 plain">${agTile ? AG_EMPTY[agTile] : Q_EMPTY.agents}</p>`;
|
|
84
|
+
} else if (!cur.n) h = `<p class="empty3${qTab === 'inbox' ? '' : ' plain'}">${qTab === 'inbox' ? CHECK : ''}${Q_EMPTY[qTab]}</p>`;
|
|
85
|
+
else for (const g of cur.groups) {
|
|
86
|
+
if (cur.groups.length > 1) h += `<div class="wsec" data-lane="${g.key}"><span class="label">${esc(g.label)}</span><em>${g.n ? g.n + ' · ' + esc(g.hint) : 'empty'}</em></div>`;
|
|
87
|
+
h += groupHtml(g, qTab);
|
|
88
|
+
}
|
|
89
|
+
$('#qBody').innerHTML = h;
|
|
90
|
+
$('#qBody').dataset.tab = qTab;
|
|
91
|
+
$('#qNote').textContent = cur.note;
|
|
100
92
|
}
|
|
93
|
+
$('#qTabs').addEventListener('click', (e) => { const b = e.target.closest('[data-tab]'); if (!b) return; qTab = b.dataset.tab; drawQueue(); const n = $(`#qTabs [data-tab="${qTab}"]`); if (n) n.focus(); });
|
|
94
|
+
$('#qTabs').addEventListener('keydown', (e) => {
|
|
95
|
+
if (e.key !== 'ArrowRight' && e.key !== 'ArrowLeft' && e.key !== 'Home' && e.key !== 'End') return;
|
|
96
|
+
e.preventDefault();
|
|
97
|
+
const ks = M.queue.tabs.map((t) => t.key), i = ks.indexOf(qTab);
|
|
98
|
+
qTab = ks[e.key === 'Home' ? 0 : e.key === 'End' ? ks.length - 1 : (i + (e.key === 'ArrowRight' ? 1 : -1) + ks.length) % ks.length];
|
|
99
|
+
drawQueue(); $(`#qTabs [data-tab="${qTab}"]`).focus();
|
|
100
|
+
});
|
|
101
|
+
$('#qPipe').addEventListener('click', (e) => { const b = e.target.closest('[data-ag]'); if (!b) return; agTile = agTile === b.dataset.ag ? null : b.dataset.ag; drawQueue(); const n = $(`#qPipe [data-ag="${b.dataset.ag}"]`); if (n) n.focus(); });
|
|
101
102
|
function drawWaiting() {
|
|
102
103
|
const W = M.waiting;
|
|
103
104
|
$('#waitCap').textContent = W.cap;
|
|
@@ -143,7 +144,7 @@ function drawWeek() {
|
|
|
143
144
|
+ (x && x.rows.length ? x.rows.map((r) => `<div class="ev src-meeting${r.past || (x.today && Date.parse(r.end || r.at) < Date.now()) ? ' wkpast' : ''}" role="listitem"><time>${esc(r.time)}</time><span class="gl-t"><svg class="i" viewBox="0 0 24 24"><rect x="4" y="5" width="16" height="15" rx="3"/><path d="M4 10h16M9 3v4M15 3v4"/></svg></span><span><b>${esc(r.title)}</b><span class="d">${esc([r.sub, r.about].filter(Boolean).join(' · ') || 'No other people listed')}</span></span></div>`).join('') : '<div class="empty">No meetings.</div>');
|
|
144
145
|
}
|
|
145
146
|
$('#weekBody').addEventListener('click', (e) => { const b = e.target.closest('[data-day]'); if (!b || !M) return; wkPick = b.dataset.day; drawWeek(); });
|
|
146
|
-
function draw() { drawHero(); drawWeek(); drawFriday(); drawFocus();
|
|
147
|
+
function draw() { drawHero(); drawWeek(); drawFriday(); drawFocus(); drawQueue(); drawWaiting(); drawReview(); drawDock(); onScroll(); backFocus(); }
|
|
147
148
|
const rowOf = (key) => (M && M.rows || []).find((r) => r.key === key) || null;
|
|
148
149
|
|
|
149
150
|
/* ── the dialog: detail first, the presses of the Work page, the tool row, the agent, the read-only agent beside it ─────────────────── */
|
|
@@ -529,11 +530,8 @@ document.addEventListener('click', async (e) => {
|
|
|
529
530
|
});
|
|
530
531
|
|
|
531
532
|
/* ── the list: a check marks done, a row opens its dialog, keys and swipe act on a row ───────────────────────────────────── */
|
|
532
|
-
$('#
|
|
533
|
-
$('#agl').addEventListener('click', (e) => { listClick(e); });
|
|
534
|
-
$('#pipe').addEventListener('click', (e) => { const b = e.target.closest('[data-ag]'); if (!b) return; agTile = agTile === b.dataset.ag ? null : b.dataset.ag; drawAgents(); const n = $(`#pipe [data-ag="${b.dataset.ag}"]`); if (n) n.focus(); });
|
|
533
|
+
$('#qBody').addEventListener('click', async (e) => { await listClick(e); });
|
|
535
534
|
$('#waitBody').addEventListener('click', (e) => { listClick(e); });
|
|
536
|
-
$('#trayBody').addEventListener('click', (e) => { listClick(e); });
|
|
537
535
|
async function listClick(e) {
|
|
538
536
|
const ck = e.target.closest('.wck');
|
|
539
537
|
if (ck && ck.dataset.open) { openRow(rowOf(ck.dataset.open)); return; }
|
|
@@ -572,7 +570,7 @@ function backFocus() {
|
|
|
572
570
|
const L = rowsIn(f.box), el = $(`${f.box} .wrow[data-key="${f.key}"] .wrh`) || L[Math.min(f.i, L.length - 1)];
|
|
573
571
|
if (el) el.focus();
|
|
574
572
|
}
|
|
575
|
-
for (const box of ['#
|
|
573
|
+
for (const box of ['#qBody']) {
|
|
576
574
|
const root = $(box);
|
|
577
575
|
root.addEventListener('keydown', (e) => {
|
|
578
576
|
const h = e.target.closest && e.target.closest('.wrh');
|
|
@@ -629,8 +627,9 @@ $('#cap').addEventListener('submit', async (e) => {
|
|
|
629
627
|
if (!res || res.ok !== true) { $('#capHint').textContent = (res && res.error) || 'It was not added.'; return; }
|
|
630
628
|
inp.value = '';
|
|
631
629
|
const it = res.item || {};
|
|
630
|
+
if (!it.due) qTab = 'inbox'; // a line with no date waits in the inbox, so the queue opens there
|
|
632
631
|
const bits = [it.due ? 'due ' + it.due : null, it.priority].filter(Boolean);
|
|
633
|
-
$('#capHint').textContent = 'Added: ' + (it.title || line) + (bits.length ? ' (' + bits.join(', ') + ')' : '') + '. It is in your
|
|
632
|
+
$('#capHint').textContent = 'Added: ' + (it.title || line) + (bits.length ? ' (' + bits.join(', ') + ')' : '') + '. It is in your inbox until you place it.';
|
|
634
633
|
await load();
|
|
635
634
|
const fresh = it.id ? rowOf('work:' + it.id) : null; // a new item opens at once, so it can be placed
|
|
636
635
|
if (fresh) openRow(fresh);
|
|
@@ -1977,6 +1977,21 @@ button.wl-row[aria-pressed="true"] .wl-tog{background:var(--solid);color:var(--o
|
|
|
1977
1977
|
.mhint .lk{display:inline;font-size:12.5px;font-weight:600;color:var(--ink);text-decoration:underline;text-underline-offset:2px;padding:0}
|
|
1978
1978
|
.mhint .lk:hover{color:var(--ember-ink)}
|
|
1979
1979
|
|
|
1980
|
+
/* My work: the Work queue (PM, 2026-10-19) — one card for what On your plate, With agents and the tray held. Tabs are one pill row as the mockup's tray. */
|
|
1981
|
+
.qtabs{display:inline-flex;flex-wrap:wrap;gap:2px;padding:4px;margin:14px 0 6px;border-radius:var(--r-chip);background:var(--well);max-width:100%}
|
|
1982
|
+
.qtb{height:36px;padding:0 14px;border-radius:var(--r-chip);font-size:var(--t-small);font-weight:600;color:var(--ink-2);white-space:nowrap;transition:background .25s,color .25s}
|
|
1983
|
+
.qtb em{font-style:normal;font-weight:500;margin-left:6px;opacity:.75}
|
|
1984
|
+
.qtb:hover{color:var(--ink)}
|
|
1985
|
+
.qtb[aria-selected="true"]{background:var(--solid);color:var(--on-solid)}
|
|
1986
|
+
.qtb:focus-visible{outline:2px solid var(--ember);outline-offset:2px}
|
|
1987
|
+
.qpipe{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 4px;max-width:520px}
|
|
1988
|
+
.qpipe[hidden]{display:none}
|
|
1989
|
+
#qCap b{color:var(--ink)}
|
|
1990
|
+
.tgrid .wsec{grid-column:1/-1}
|
|
1991
|
+
.tgrid .wsec+.wrw+.wrw{border-top:0}
|
|
1992
|
+
#qBody .wsec:first-child{padding-top:8px}
|
|
1993
|
+
@media (max-width:1000px){.tgrid .wsec+.wrw+.wrw{border-top:1px solid var(--hair)}}
|
|
1994
|
+
@media (max-width:700px){.qtabs{display:flex;border-radius:18px;width:100%}.qtb{flex:1 1 auto;min-height:44px;padding:0 10px}}
|
|
1980
1995
|
.rdbtns{display:inline-flex;gap:6px;align-items:center}
|
|
1981
1996
|
.wks .wkc{font:400 12px var(--sans);letter-spacing:0;text-transform:none;padding:12px 4px 10px}
|
|
1982
1997
|
.wkc .wkl{font:500 11px var(--mono);letter-spacing:.08em}
|
|
@@ -49,27 +49,15 @@
|
|
|
49
49
|
<button class="capb" type="submit" aria-label="Add it to your list" title="Add it to your list"><svg class="i" viewBox="0 0 24 24"><path d="M5 12h14M13 6l6 6-6 6"/></svg></button>
|
|
50
50
|
</form>
|
|
51
51
|
<div class="tx rise" style="--d:4" id="tx"><span class="hint" id="capHint" aria-live="polite">One line. The date and priority are read from it, for example "Reply to Rina about SSO by Friday".</span></div>
|
|
52
|
+
<section class="card rise" style="--d:5;margin-top:24px" id="queue" aria-labelledby="hQueue">
|
|
53
|
+
<div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="3"/><path d="M8 9h8M8 13h8M8 17h5"/></svg></span><h2 id="hQueue">Work queue</h2><small id="qCap"></small></div>
|
|
54
|
+
<div class="qtabs" id="qTabs" role="tablist" aria-label="Work queue"></div>
|
|
55
|
+
<div class="qpipe" id="qPipe" hidden></div>
|
|
56
|
+
<div class="tgrid" id="qBody" role="tabpanel" aria-labelledby="hQueue"></div>
|
|
57
|
+
<p class="note" id="qNote" style="margin-top:14px"></p>
|
|
58
|
+
</section>
|
|
52
59
|
<div class="cols2" style="margin-top:24px">
|
|
53
60
|
<div>
|
|
54
|
-
<section class="card rise" style="--d:5" id="plate" aria-labelledby="hPlate">
|
|
55
|
-
<div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="3"/><path d="m8.5 12 2.5 2.5 4.5-5"/></svg></span><h2 id="hPlate">On your plate</h2><small id="plateCap"></small></div>
|
|
56
|
-
<div id="plateBody"></div>
|
|
57
|
-
<p class="note" id="plateNote" style="margin-top:14px"></p>
|
|
58
|
-
</section>
|
|
59
|
-
</div>
|
|
60
|
-
<div>
|
|
61
|
-
<section class="card rise" style="--d:6" id="weekCard" aria-labelledby="hWeek">
|
|
62
|
-
<div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><rect x="4" y="5" width="16" height="15" rx="3"/><path d="M4 10h16M9 3v4M15 3v4"/></svg></span><h2 id="hWeek">Calendar</h2><small id="weekCap"></small></div>
|
|
63
|
-
<div id="weekBody"></div>
|
|
64
|
-
<div class="tl wkday" id="wkList" role="list" aria-label="Meetings of the picked day"></div>
|
|
65
|
-
<p class="note" id="weekNote" style="margin-top:8px"></p>
|
|
66
|
-
</section>
|
|
67
|
-
<section class="card rise" style="--d:7" id="agCard" aria-labelledby="hAg">
|
|
68
|
-
<div class="ch"><span class="ic"><svg class="i" 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><h2 id="hAg">With agents</h2><small id="agCap"></small></div>
|
|
69
|
-
<div class="pipe" id="pipe"></div>
|
|
70
|
-
<div class="agl" id="agl"></div>
|
|
71
|
-
<p class="note" id="agHold" style="margin-top:12px"></p>
|
|
72
|
-
</section>
|
|
73
61
|
<section class="card rise" style="--d:8" id="waitCard" aria-labelledby="hWait">
|
|
74
62
|
<div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg></span><h2 id="hWait">Waiting on others</h2><small id="waitCap"></small></div>
|
|
75
63
|
<div id="waitBody"></div>
|
|
@@ -83,14 +71,16 @@
|
|
|
83
71
|
<div class="revc"><p id="revTxt"></p><button id="revBtn" type="button">Look at them</button></div>
|
|
84
72
|
</section>
|
|
85
73
|
</div>
|
|
74
|
+
<div>
|
|
75
|
+
<section class="card rise" style="--d:6" id="weekCard" aria-labelledby="hWeek">
|
|
76
|
+
<div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><rect x="4" y="5" width="16" height="15" rx="3"/><path d="M4 10h16M9 3v4M15 3v4"/></svg></span><h2 id="hWeek">Calendar</h2><small id="weekCap"></small></div>
|
|
77
|
+
<div id="weekBody"></div>
|
|
78
|
+
<div class="tl wkday" id="wkList" role="list" aria-label="Meetings of the picked day"></div>
|
|
79
|
+
<p class="note" id="weekNote" style="margin-top:8px"></p>
|
|
80
|
+
</section>
|
|
81
|
+
</div>
|
|
86
82
|
</div>
|
|
87
|
-
<
|
|
88
|
-
<div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M4 8h16l-1.5 11a2 2 0 0 1-2 1.7H7.5a2 2 0 0 1-2-1.7z"/><path d="M8 8V6a4 4 0 0 1 8 0v2"/></svg></span><h2 id="hTray">Your tray</h2><small id="trayCap"></small></div>
|
|
89
|
-
<div class="stabs" id="trayTabs" role="tablist" aria-label="Tray"></div>
|
|
90
|
-
<div class="tgrid" id="trayBody"></div>
|
|
91
|
-
<p class="note" id="trayNote" style="margin-top:14px"></p>
|
|
92
|
-
</section>
|
|
93
|
-
<p class="foot" id="foot">This page reads your list, the same one the Work page reads. It writes only when you press a button that says what it does, and each press uses the Work page's own route. Starting an agent from a list is not built here. The tray's tabs show only your own items. Answers, ideas and reports an agent files on its own, effort figures and review timing need records PMOS does not hold yet. Jira and Slack items appear only when an agent session has read them.</p>
|
|
83
|
+
<p class="foot" id="foot">This page reads your list, the same one the Work page reads. It writes only when you press a button that says what it does, and each press uses the Work page's own route. Starting an agent from a list is not built here. The Kept and Done tabs show only your own items. Answers, ideas and reports an agent files on its own, effort figures and review timing need records PMOS does not hold yet. Jira and Slack items appear only when an agent session has read them.</p>
|
|
94
84
|
</main>
|
|
95
85
|
<noscript>This page needs JavaScript.</noscript>
|
|
96
86
|
<script type="module" src="/pm/premium-work.js"></script>
|