create-pmos 0.645.0 → 0.647.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 +27 -27
- package/payload/KIT-VERSION +1 -1
- package/payload/design-system/ui/components/Suggestion/README.md +8 -0
- package/payload/design-system/ui/components/Timeline/README.md +8 -0
- package/payload/design-system/ui/components/bundle.css +38 -0
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +26 -0
- package/workspace/design-system/ui/components/Suggestion/README.md +8 -0
- package/workspace/design-system/ui/components/Timeline/README.md +8 -0
- package/workspace/design-system/ui/components/bundle.css +38 -0
- package/workspace/guide/layout.md +24 -12
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/bd-backlog.js +21 -11
- package/workspace/public/pm/bd-ds.css +0 -7
- package/workspace/public/pm/bd-span.js +10 -5
- package/workspace/public/pm/bd-stands.js +165 -0
- package/workspace/public/pm/bd-work-ds.css +107 -0
- package/workspace/public/pm/bd-work.css +8 -77
- package/workspace/public/pm/bd-work.js +79 -46
- package/workspace/public/pm/cozy-today-app.js +10 -5
- package/workspace/public/pm/cozy-today-model.js +11 -5
- package/workspace/public/pm/cozy-today-page.css +50 -135
- package/workspace/public/pm/cozy-today-view.js +147 -98
- package/workspace/public/pm/komorebi.css +39 -0
- package/workspace/public/pm/premium-board.js +57 -10
- package/workspace/public/pm/readonly.js +3 -0
- package/workspace/public/premium-board.html +4 -1
|
@@ -37,11 +37,13 @@ export const COLS = [
|
|
|
37
37
|
];
|
|
38
38
|
const byK = Object.fromEntries(COLS.map((c) => [c.k, c]));
|
|
39
39
|
export const GROUPS = [['goal', 'Goal'], ['product', 'Product'], ['stage', 'Stage'], ['status', 'Status'], ['program', 'Program'], ['none', 'No groups']];
|
|
40
|
-
|
|
41
|
-
export const
|
|
40
|
+
// the scale tabs (WorkDS, 2026-11-20): Week, Month, Quarter, Year and Full; the number is the window's length in days (Full fits the rows)
|
|
41
|
+
export const SPANS = [['week', 'Week', 42], ['month', 'Month', 152], ['quarter', 'Quarter', 456], ['year', 'Year', 1096], ['full', 'Full', 0]];
|
|
42
|
+
const OLD_SPAN = { half: 'quarter', y2: 'year', y5: 'year' }; // a view kept before the scale tabs
|
|
43
|
+
export const KEY = 'pmos.work.view.3'; // .3 (WorkDS, 2026-11-20): every kept view starts again from the usual one, on Month
|
|
42
44
|
|
|
43
|
-
/** The usual view: grouped by goal, the timeline on, the default columns in their order,
|
|
44
|
-
export const usual = () => ({ group: 'goal', tl: true, span: '
|
|
45
|
+
/** The usual view: grouped by goal, the timeline on, the default columns in their order, Month (WorkDS). */
|
|
46
|
+
export const usual = () => ({ group: 'goal', tl: true, span: 'month', cols: COLS.map((c) => ({ k: c.k, on: c.on })), sorts: [] });
|
|
45
47
|
|
|
46
48
|
/** The view as kept, mended: an unknown key falls back to the usual one, a column missing from a kept list is added off at the end. */
|
|
47
49
|
export function mend(v) {
|
|
@@ -53,7 +55,7 @@ export function mend(v) {
|
|
|
53
55
|
return {
|
|
54
56
|
group: GROUPS.some(([k]) => k === v.group) ? v.group : u.group,
|
|
55
57
|
tl: v.tl !== false,
|
|
56
|
-
span: SPANS.some(([k]) => k === v.span) ? v.span : u.span,
|
|
58
|
+
span: SPANS.some(([k]) => k === v.span) ? v.span : OLD_SPAN[v.span] || u.span,
|
|
57
59
|
cols: cols.length ? cols : u.cols,
|
|
58
60
|
sorts: (Array.isArray(v.sorts) ? v.sorts : []).filter((x) => x && (x.k === 'title' || byK[x.k])).filter((x, i, a) => a.findIndex((y) => y.k === x.k) === i).slice(0, 3).map((x) => ({ k: x.k, up: x.up !== false })),
|
|
59
61
|
};
|
|
@@ -71,7 +73,7 @@ export function read() {
|
|
|
71
73
|
function write(v) { mem = mend(v); try { const s = box(); if (s) s.setItem(KEY, JSON.stringify(mem)); } catch { /* a private window keeps it for this page */ } return mem; }
|
|
72
74
|
export const setGroup = (g) => write({ ...read(), group: g });
|
|
73
75
|
export const setTimeline = (on) => write({ ...read(), tl: !!on });
|
|
74
|
-
export const setSpan = (s) => write({ ...read(), span: s });
|
|
76
|
+
export const setSpan = (s) => { OFF = 0; return write({ ...read(), span: s }); };
|
|
75
77
|
export const reset = () => write(usual());
|
|
76
78
|
/** A column's switch. The columns that show stay on top, in their order; one switched on goes under them, one switched off goes on top of the others. */
|
|
77
79
|
export function setCol(k, on) {
|
|
@@ -264,20 +266,35 @@ export function showingHtml(hidden) {
|
|
|
264
266
|
/* ── the timeline's window ───────────────────────────────────────────────────────────────────────────────────── */
|
|
265
267
|
/** The window of a span. Full: from the earliest start to the latest end of the rows (their milestones and today too), so no bar is cut.
|
|
266
268
|
* The other spans are a fixed length that starts a quarter of the way before today. → { from, to, span } (Dates) */
|
|
267
|
-
export function windowOf(span, rows, now = new Date()) {
|
|
268
|
-
const t = today(now), S = SPANS.find(([k]) => k === span) || SPANS[SPANS.length - 1];
|
|
269
|
-
if (S[2]) { const from = new Date(+t - Math.round(S[2] * 0.25) * DAY); return { from, to: new Date(+from + S[2] * DAY), span: S[0] }; }
|
|
269
|
+
export function windowOf(span, rows, now = new Date(), off = 0) {
|
|
270
|
+
const t = today(now), S = SPANS.find(([k]) => k === span) || SPANS[SPANS.length - 1], o = Math.round(off || 0) * DAY;
|
|
271
|
+
if (S[2]) { const from = new Date(+t - Math.round(S[2] * 0.25) * DAY + o); return { from, to: new Date(+from + S[2] * DAY), span: S[0] }; }
|
|
270
272
|
const ds = [t];
|
|
271
273
|
for (const r of rows || []) { for (const v of [r.start, r.end]) { const d = day(v); if (d) ds.push(d); } for (const m of r.milestones || []) { const d = day(m && m.date); if (d) ds.push(d); } }
|
|
272
274
|
const lo = Math.min(...ds), hi = Math.max(...ds), pad = Math.max(7 * DAY, (hi - lo) * 0.03);
|
|
273
|
-
return { from: new Date(lo - pad), to: new Date(Math.max(hi + pad, lo + 60 * DAY)), span: 'full' };
|
|
275
|
+
return { from: new Date(lo - pad + o), to: new Date(Math.max(hi + pad, lo + 60 * DAY) + o), span: 'full' };
|
|
274
276
|
}
|
|
277
|
+
/* ── scrolling sideways (WorkDS): a trackpad, a drag, or Earlier / Go to today / Later. The offset lives for this page, in days; Go to today
|
|
278
|
+
* and a new scale put it back to 0. No scrollbar is drawn. ── */
|
|
279
|
+
let OFF = 0;
|
|
280
|
+
export const offset = () => OFF;
|
|
281
|
+
/** Move the window by `d` days (a drag or a trackpad gives a fraction of the window). */
|
|
282
|
+
export const scrollBy = (d) => { OFF += d; return OFF; };
|
|
283
|
+
/** Earlier (-1) or Later (+1): half the window's length. */
|
|
284
|
+
export function step(dir, rows, now = new Date()) { const W = windowOf(read().span, rows, now, OFF); OFF += dir * Math.round((W.to - W.from) / DAY / 2); return OFF; }
|
|
285
|
+
export const toToday = () => { OFF = 0; return OFF; };
|
|
275
286
|
const X = (W, d) => ((d - W.from) / (W.to - W.from)) * 100;
|
|
276
287
|
const P = (x) => Math.max(0, Math.min(100, x)).toFixed(2) + '%';
|
|
277
288
|
const inW = (W, d) => d && d >= W.from && d <= W.to;
|
|
278
289
|
/** The ticks of a window: months up to about half a year, quarters up to about two years, then years. [{ at, mid, label }] */
|
|
279
290
|
export function ticksOf(W) {
|
|
280
291
|
const len = (W.to - W.from) / DAY, out = [];
|
|
292
|
+
if (len <= 70) { // Week: a tick each Monday, "16 Nov"
|
|
293
|
+
for (let d = new Date(W.from.getFullYear(), W.from.getMonth(), W.from.getDate() + ((8 - W.from.getDay()) % 7)); d < W.to; d = new Date(d.getFullYear(), d.getMonth(), d.getDate() + 7)) {
|
|
294
|
+
out.push({ at: d, mid: d, label: d.getDate() + ' ' + MON[d.getMonth()], show: true, edge: true });
|
|
295
|
+
}
|
|
296
|
+
return out;
|
|
297
|
+
}
|
|
281
298
|
const unit = len <= 200 ? 'm' : len <= 800 ? 'q' : 'y', step = unit === 'm' ? 1 : unit === 'q' ? 3 : 12;
|
|
282
299
|
let d = new Date(W.from.getFullYear(), unit === 'y' ? 0 : W.from.getMonth() - (unit === 'q' ? W.from.getMonth() % 3 : 0), 1);
|
|
283
300
|
let first = true;
|
|
@@ -292,18 +309,21 @@ export function ticksOf(W) {
|
|
|
292
309
|
}
|
|
293
310
|
|
|
294
311
|
/* ── markup ──────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
295
|
-
const I = { hide: 'M13 6l6 6-6 6M6 6l6 6-6 6', show: 'M11 6l-6 6 6 6M18 6l-6 6 6 6', chev: 'M7 10l5 5 5-5', sort: 'M12 5v14M6 13l6 6 6-6', x: 'M6 6l12 12M18 6L6 18'
|
|
312
|
+
const I = { hide: 'M13 6l6 6-6 6M6 6l6 6-6 6', show: 'M11 6l-6 6 6 6M18 6l-6 6 6 6', chev: 'M7 10l5 5 5-5', sort: 'M12 5v14M6 13l6 6 6-6', x: 'M6 6l12 12M18 6L6 18',
|
|
313
|
+
back: 'M15 6l-6 6 6 6', on: 'M10 8l4 4-4 4', today: 'M12 3v18M7 8l-4 4 4 4M17 8l4 4-4 4', tune: 'M4 7h10M18 7h2M4 17h4M12 17h8M14 5v4M8 15v4' };
|
|
296
314
|
|
|
297
315
|
function cellHtml(r, k, o) {
|
|
298
|
-
if (k === 'product') return `<
|
|
299
|
-
if (k === 'stage') { const s = stageText(r); return `<
|
|
300
|
-
|
|
301
|
-
if (k === '
|
|
302
|
-
|
|
303
|
-
if (k === '
|
|
304
|
-
if (k === '
|
|
305
|
-
if (k === '
|
|
306
|
-
|
|
316
|
+
if (k === 'product') return `<td>${esc(o.product(r))}</td>`;
|
|
317
|
+
if (k === 'stage') { const s = stageText(r); return `<td class="wk-stc">${o.canMove && o.canMove(r) ? `<button type="button" class="wk-st" data-wkstage="${esc(r.key)}" aria-haspopup="menu" aria-label="Stage: ${esc(s || 'none')}. Change the stage" title="Change the stage">${esc(s)}</button>` : esc(s)}</td>`; }
|
|
318
|
+
// no milestone: "none yet" in muted words (WorkDS), never a stage name or "Plan end"
|
|
319
|
+
if (k === 'ms') { const n = nextOf(r); return `<td>${n && n.name ? esc(n.name) : '<span class="pm-meta">none yet</span>'}</td>`; }
|
|
320
|
+
// a late date carries the late Badge; at risk a quiet one (WorkDS)
|
|
321
|
+
if (k === 'date') { const d = dateOf(r, o.now); return `<td class="wk-d${d.tone ? ' ' + d.tone : ''}">${esc(d.text)}${d.note ? ` <span class="pm-badge${d.tone === 'late' ? ' alert' : ''}">${esc(d.note)}</span>` : ''}</td>`; }
|
|
322
|
+
if (k === 'status') return `<td>${esc(statusText(r))}</td>`;
|
|
323
|
+
if (k === 'program') return `<td>${esc((o.programOf && o.programOf(r)) || '')}</td>`;
|
|
324
|
+
if (k === 'goal') return `<td>${esc((o.goalOf && o.goalOf(r)) || '')}</td>`;
|
|
325
|
+
if (k === 'wf') return `<td>${esc(wfOf(r).name)}</td>`;
|
|
326
|
+
return '<td></td>';
|
|
307
327
|
}
|
|
308
328
|
const words = (r, keys, o) => keys.map((k) => {
|
|
309
329
|
if (k === 'product') return o.product(r);
|
|
@@ -318,7 +338,7 @@ const words = (r, keys, o) => keys.map((k) => {
|
|
|
318
338
|
}).filter(Boolean).join(', ');
|
|
319
339
|
|
|
320
340
|
/** The grid lines and today's line of the timeline, the same on every row. */
|
|
321
|
-
const gridHtml = (W, T, now) => T.map((t) => (inW(W, t.at) ? `<i class="wk-gl" style="left:${P(X(W, t.at))}"></i>` : '')).join('') + (inW(W, today(now)) ? `<i class="
|
|
341
|
+
const gridHtml = (W, T, now) => T.map((t) => (inW(W, t.at) ? `<i class="wk-gl" style="left:${P(X(W, t.at))}"></i>` : '')).join('') + (inW(W, today(now)) ? `<i class="pm-now" style="left:${P(X(W, today(now)))}"></i>` : '');
|
|
322
342
|
/** One row's bar when the page gives none (the unit test): the plan, the part that has passed, the late line, the next milestone. The page
|
|
323
343
|
* draws the Board's own bar instead (o.bar: pm/bd-span.js rowBar). */
|
|
324
344
|
export function barHtml(r, W, o = {}) {
|
|
@@ -342,7 +362,7 @@ export function cardHtml(r, W, now = new Date()) {
|
|
|
342
362
|
}
|
|
343
363
|
/** A closed or completed initiative (its workflow's done, won't do or archived step): they fold into one line at the end of the list. */
|
|
344
364
|
export const isClosed = (r) => !!(r.closed || ['done', 'wontdo', 'archived'].includes(catOfRow(r)));
|
|
345
|
-
let CARD = null, SHUT = true, COLS_OPEN = false, LAST = null; // the row whose stage card is open; the closed ones folded; the menu's Columns open; the rows last drawn
|
|
365
|
+
let CARD = null, SHUT = true, COLS_OPEN = false, LAST = null, LASTW = null; // the row whose stage card is open; the closed ones folded; the menu's Columns open; the rows last drawn
|
|
346
366
|
|
|
347
367
|
/** The whole list. rows: the initiatives on screen. o: { now, many, sel, canMove(r), product(r), programOf(r), goalOf(r), goalGroups(rows),
|
|
348
368
|
* bar(r, W): the Board's own bar for a row (else the plain one) } → html. The closed ones fold into one line at the end. */
|
|
@@ -351,38 +371,45 @@ export function listHtml(rows, o = {}) {
|
|
|
351
371
|
const oo = { ...o, now, product: o.product || ((r) => r.product || '') };
|
|
352
372
|
LAST = { rows, o: oo };
|
|
353
373
|
const every = rows; rows = filterRows(rows, oo);
|
|
354
|
-
const W = windowOf(v.span, rows.length ? rows : every, now), T = ticksOf(W), grid = gridHtml(W, T, now);
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
const
|
|
364
|
-
|
|
365
|
-
+ `<div class="
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
374
|
+
const W = windowOf(v.span, rows.length ? rows : every, now, OFF), T = ticksOf(W), grid = gridHtml(W, T, now);
|
|
375
|
+
LASTW = W;
|
|
376
|
+
// the Table part (pm-table): a heading sorts by its column (aria-sort draws the arrow), the timeline column last
|
|
377
|
+
const sortHd = (k, n) => { const x = v.sorts.find((y) => y.k === k), first = !!x && v.sorts[0].k === k; return `<th scope="col" class="c-${k}" aria-sort="${first ? (x.up ? 'ascending' : 'descending') : 'none'}"><button type="button" class="wk-hd" data-wksort="${k}" title="Sort by ${esc(n.toLowerCase())}">${esc(n)}</button></th>`; };
|
|
378
|
+
// a tick's label keeps clear of the one before it: about 64 px of the track (o.tpx, the page measures it), else 8 %
|
|
379
|
+
const gap = o.tpx ? (64 / o.tpx) * 100 : 8; let lastX = -100;
|
|
380
|
+
const TT = T.filter((t) => t.show).filter((t) => { const x = X(W, t.at < W.from ? W.from : t.at); if (x - lastX < gap) return false; lastX = x; return true; });
|
|
381
|
+
const tlHead = !tl ? '' : `<th scope="col" class="wk-x"><div class="wk-tl">${TT.map((t) => `<span class="wk-tk" style="left:${P(X(W, t.at < W.from ? W.from : t.at))}">${esc(t.label)}</span>`).join('')}</div></th>`;
|
|
382
|
+
const scale = SPANS.map(([k, n]) => `<button type="button" class="pm-tab" role="tab" aria-selected="${k === v.span}" data-wkspick="${k}">${esc(n)}</button>`).join('');
|
|
383
|
+
const nav = (k, label, d) => `<button type="button" class="pm-btn" data-wknav="${k}" aria-label="${label}" title="${label}">${SV(d, 16)}</button>`;
|
|
384
|
+
const head = `<div class="head"><h2 class="pm-h">Initiatives</h2><span class="sp"></span>`
|
|
385
|
+
+ (tl ? `<div class="pm-tabs" role="tablist" aria-label="Scale of the timeline">${scale}</div>${nav('back', 'Earlier', I.back)}${nav('today', 'Go to today', I.today)}${nav('on', 'Later', I.on)}` : '')
|
|
386
|
+
+ `<button type="button" class="pm-btn" data-wkmenu aria-haspopup="dialog" aria-label="Choose columns, sort and filter" title="Choose columns, sort and filter">${SV(I.tune, 16)}${filterCount() ? `<i class="wk-fc" aria-hidden="true">${filterCount()}</i>` : ''}</button></div>`;
|
|
387
|
+
const ncol = 1 + keys.length + (tl ? 1 : 0);
|
|
388
|
+
let h = `<section class="pm-block wk-blk" aria-label="Initiatives">${head}${showingHtml(every.length - rows.length)}`
|
|
389
|
+
+ `<div class="wk-tw"><table class="pm-table wk${tl ? ' has-x' : ''}" aria-label="Initiatives"><colgroup><col class="c-title">${keys.map((k) => `<col class="c-${k}">`).join('')}${tl ? '<col class="c-x">' : ''}</colgroup>`
|
|
390
|
+
+ `<thead><tr>${sortHd('title', 'Initiative')}${keys.map((k) => sortHd(k, byK[k].n)).join('')}${tlHead}</tr></thead><tbody>`;
|
|
391
|
+
const row = (r) => `<tr class="wk-i${o.sel === r.key ? ' sel' : ''}${CARD === r.key ? ' hov' : ''}${isClosed(r) ? ' cl' : ''}" tabindex="0" data-key="${esc(r.key)}" aria-label="${esc(r.title + (keys.length ? ', ' + words(r, keys, oo) : ''))}">`
|
|
392
|
+
+ `<td class="n">${esc(r.title)}</td>${keys.map((k) => cellHtml(r, k, oo)).join('')}`
|
|
393
|
+
+ (tl ? `<td class="wk-x" data-wkbar="${esc(r.key)}"><div class="wk-bw pm-gt">${grid}${o.bar ? o.bar(r, W) : barHtml(r, W, { now })}</div>${CARD === r.key ? cardHtml(r, W, now) : ''}</td>` : '') + '</tr>';
|
|
370
394
|
const all = o.order ? o.order(rows) : rows, base = all.filter((r) => !isClosed(r)), shut = all.filter(isClosed), G = groupsOf(base, v.group, oo);
|
|
371
|
-
const gline = (inner) => `<
|
|
395
|
+
const gline = (inner) => `<tr class="wk-g"><td colspan="${ncol}"><div class="pm-group">${inner}</div></td></tr>`;
|
|
372
396
|
if (!G) h += sortRows(base, oo).map(row).join('');
|
|
373
397
|
else for (const g of G) {
|
|
374
|
-
h += gline(`<span
|
|
398
|
+
h += gline(`<span>${esc(g.name)}</span><small>${g.rows.length}</small>`);
|
|
375
399
|
h += sortRows(g.rows, oo).map(row).join('');
|
|
376
400
|
}
|
|
377
|
-
|
|
401
|
+
h += '</tbody></table></div>';
|
|
402
|
+
if (!rows.length && every.length) h += `<p class="wk-empty pm-meta">No initiative matches these filters. <button type="button" class="wk-sa" data-wkclear>Show all</button></p>`;
|
|
403
|
+
// the closed and completed ones: one last fold line that opens them, as stages with no task fold in the Work breakdown
|
|
378
404
|
if (shut.length) {
|
|
379
|
-
h +=
|
|
380
|
-
if (!SHUT) h += sortRows(shut, oo).map(row).join('')
|
|
405
|
+
h += `<button type="button" class="pm-fold" data-wkclosed aria-expanded="${!SHUT}">${SV(I.chev, 14)}${shut.length} closed</button>`;
|
|
406
|
+
if (!SHUT) h += `<div class="wk-tw"><table class="pm-table wk${tl ? ' has-x' : ''}" aria-label="Closed initiatives"><colgroup><col class="c-title">${keys.map((k) => `<col class="c-${k}">`).join('')}${tl ? '<col class="c-x">' : ''}</colgroup><tbody>${sortRows(shut, oo).map(row).join('')}</tbody></table></div>`;
|
|
381
407
|
}
|
|
382
|
-
h +=
|
|
383
|
-
|
|
384
|
-
return h;
|
|
408
|
+
if (tl) h += `<div class="wk-key pm-meta"><span><i class="k dn"></i>Done</span><span><i class="k nw"></i>Now</span><span><i class="k pl"></i>Planned</span><span><i class="k td"></i>Today</span><span><i class="k ms"></i>Milestone</span><span><i class="k mn"></i>${RO ? 'Close milestones; press a row to open it. Nothing here can be changed.' : 'Close milestones, hover to see them'}</span></div>`;
|
|
409
|
+
return h + '</section>';
|
|
385
410
|
}
|
|
411
|
+
/** The window the list was last drawn with: the Next milestones line follows it. */
|
|
412
|
+
export const lastWindow = () => LASTW;
|
|
386
413
|
|
|
387
414
|
/* ── the view menu (round 3; the design thread's order, 2026-11-19): Filter, Sort, View, then Columns folded; "PMOS remembers this" at the foot,
|
|
388
415
|
* with Reset only when something differs from the usual. About 360 px wide, small quiet titles, pills (no nested menu). ── */
|
|
@@ -427,6 +454,8 @@ export function menuHtml(o = {}) {
|
|
|
427
454
|
if (RO || o.ro) return `<div class="wk-menu" role="dialog" aria-label="Filter and sort">`
|
|
428
455
|
+ `<section><h6>Filter${filterOn() ? ` <button type="button" class="wk-lk" data-wkclear>Clear</button>` : ''}</h6>${F.length ? F.map(facet).join('') : '<p class="wk-note">Nothing to filter.</p>'}</section>`
|
|
429
456
|
+ `<section><h6>Sort${S.length ? ` <small>· ${esc(S.map((x) => word(x.k)).join(', then '))}</small>` : ''}</h6><div class="wk-pl wk-sorts">${sortPills}</div></section>`
|
|
457
|
+
// the timeline's switch (it was a button on the timeline's head before WorkDS): a reader can still hide it
|
|
458
|
+
+ `<section><h6>View</h6><div class="wk-mr wk-tlr"><span>Timeline</span>${sw(v.tl, 'Timeline', 'data-wktlsw')}</div></section>`
|
|
430
459
|
+ `<div class="wk-ft"><span>For this visit only</span>${differs ? '<button type="button" class="wk-rs" data-wkreset>Reset</button>' : ''}</div></div>`;
|
|
431
460
|
return `<div class="wk-menu" role="dialog" aria-label="Filter, sort and view">`
|
|
432
461
|
+ `<section><h6>Filter${filterOn() ? ` <button type="button" class="wk-lk" data-wkclear>Clear</button>` : ''}</h6>${filt}</section>`
|
|
@@ -451,6 +480,8 @@ export function pressOf(t) {
|
|
|
451
480
|
if (q('[data-wkcols]')) return { kind: 'cols' };
|
|
452
481
|
if ((b = q('[data-wkspick]'))) return { kind: 'span', span: b.dataset.wkspick };
|
|
453
482
|
if (q('[data-wkspan]')) return { kind: 'spanmenu' };
|
|
483
|
+
if ((b = q('[data-wknav]'))) return { kind: 'nav', dir: b.dataset.wknav };
|
|
484
|
+
if (q('[data-wkmenu]')) return { kind: 'menu', el: q('[data-wkmenu]') };
|
|
454
485
|
if ((b = q('[data-wktl]'))) return { kind: 'timeline', on: b.dataset.wktl === 'on' };
|
|
455
486
|
if ((b = q('[data-wkstage]'))) return { kind: 'stage', key: b.dataset.wkstage, el: b };
|
|
456
487
|
if (q('[data-wkclosed]')) return { kind: 'closed' };
|
|
@@ -479,6 +510,8 @@ export function apply(p) {
|
|
|
479
510
|
else if (p.kind === 'cols') COLS_OPEN = !COLS_OPEN;
|
|
480
511
|
else if (p.kind === 'closed') SHUT = !SHUT;
|
|
481
512
|
else if (p.kind === 'card') CARD = CARD === p.key ? null : p.key;
|
|
513
|
+
else if (p.kind === 'nav') { if (p.dir === 'today') toToday(); else step(p.dir === 'back' ? -1 : 1, LAST ? LAST.rows : []); }
|
|
514
|
+
else if (p.kind === 'menu') return false;
|
|
482
515
|
else if (p.kind === 'inside') return false;
|
|
483
516
|
else return false;
|
|
484
517
|
return true;
|
|
@@ -22,7 +22,7 @@ import { wireSwipe } from './cozy-phone-swipe.js'; // the phone: rows and the
|
|
|
22
22
|
|
|
23
23
|
const ASK_SEND = new Set(['session']);
|
|
24
24
|
export function mountToday(ctx) {
|
|
25
|
-
const X = { log: { entries: [], marks: {} }, html: '', model: null, agenda: null, read: false, busy: new Set(), type: '', open: false, hide: new Set(), sopen: new Set(), unfiled: new Set() };
|
|
25
|
+
const X = { log: { entries: [], marks: {} }, html: '', model: null, agenda: null, read: false, busy: new Set(), type: '', job: '', open: false, hide: new Set(), sopen: new Set(), unfiled: new Set(), filedOk: new Set() };
|
|
26
26
|
const el = document.getElementById('tdPage');
|
|
27
27
|
// a desk and a phone both draw Today here; a phone draws its own one column (TP.phonePageHtml, board Ph2_today) while no conversation is
|
|
28
28
|
// open over it (body.hm-plist: home-app.js's phone list state). On a phone Home's list is not drawn on today.html (cozy-today-page.css).
|
|
@@ -101,7 +101,9 @@ export function mountToday(ctx) {
|
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
el.classList.remove('tdp');
|
|
104
|
-
|
|
104
|
+
// the log's Tabs filter by job (All, Reply, Do, Decide, Send); a tab whose count went to zero goes back to All
|
|
105
|
+
if (X.job && !(L.counts || {})[X.job.toLowerCase()]) X.job = '';
|
|
106
|
+
const html = TP.pageHtml(L, A, { draft, overview: O, job: X.job, open: X.open || !!X.job, handled: X.job && X.job !== 'Reply' ? [] : handled(), hopen: X.hopen, sopen: [...X.sopen], filed: filedLine() });
|
|
105
107
|
if (html === X.html && el.firstChild) return;
|
|
106
108
|
X.html = html;
|
|
107
109
|
const st = el.parentNode ? el.parentNode.scrollTop : 0;
|
|
@@ -113,14 +115,14 @@ export function mountToday(ctx) {
|
|
|
113
115
|
* newest meeting that ended in the last 3 hours and is filed under an initiative; Undo or a later meeting takes the line away. */
|
|
114
116
|
const FILED_MS = 3 * 3600e3;
|
|
115
117
|
function filedLine() {
|
|
116
|
-
const N = (ctx.notes ? ctx.notes() : []).filter((n) => n && n.state === 'ended' && n.initiative && n.initiative.title && !X.unfiled.has(String(n.id)));
|
|
118
|
+
const N = (ctx.notes ? ctx.notes() : []).filter((n) => n && n.state === 'ended' && n.initiative && n.initiative.title && !X.unfiled.has(String(n.id)) && !X.filedOk.has(String(n.id)));
|
|
117
119
|
const at = (n) => Date.parse(n.ended_at || n.updated_at || '') || 0;
|
|
118
120
|
const n = N.sort((a, b) => at(b) - at(a))[0];
|
|
119
121
|
if (!n || ctx.now() - at(n) > FILED_MS) return null;
|
|
120
122
|
const ago = ctx.now() - at(n), min = Math.round((Number(n.meeting_ms) || 0) / 60000), t = n.came && n.came.tasks;
|
|
121
123
|
const d = new Date(at(n)), when = ago < 5 * 60000 ? 'Just now' : String(d.getHours()).padStart(2, '0') + ':' + String(d.getMinutes()).padStart(2, '0');
|
|
122
124
|
const what = [n.summary ? 'summary' : '', t ? t + (t === 1 ? ' task' : ' tasks') : ''].filter(Boolean).join(' and ');
|
|
123
|
-
return { id: String(n.id), title: n.initiative.title, ini: n.initiative.id || null, sub: [when, min ? min + ' min' : '', what].filter(Boolean).join(' · ') };
|
|
125
|
+
return { id: String(n.id), title: n.initiative.title, meeting: n.title || '', ini: n.initiative.id || null, sub: [when, min ? min + ' min' : '', what].filter(Boolean).join(' · ') };
|
|
124
126
|
}
|
|
125
127
|
const rowOf = (key) => (X.model ? X.model.rows.flatMap((r) => [r, ...(r.members || [])]).find((r) => r.key === key) : null);
|
|
126
128
|
const snap = (r) => ({ title: r.title, work: r.work, job: r.job, type: r.type });
|
|
@@ -144,7 +146,7 @@ export function mountToday(ctx) {
|
|
|
144
146
|
/** The popup's chat hidden for this open (round 3 point 7), until the popup's own per-item rule does it. */
|
|
145
147
|
const chatOff = () => setTimeout(() => { const h = document.querySelector('.cz-pop:not([hidden]) [data-pop="hide"]'); if (h && !h.closest('.chat-off')) h.click(); }, 60);
|
|
146
148
|
/** The rows in the order Today shows them, the ones that open something. */
|
|
147
|
-
const order = () => { const L = X.model; if (!L) return []; return [...(L.first || []), ...(L.todayRows || []), ...(X.open || X.type ? L.wait || [] : [])].filter((r) => r && !r.done && r.src !== 'note' && r.src !== 'own'); };
|
|
149
|
+
const order = () => { const L = X.model; if (!L) return []; return [...(L.first || []), ...(L.todayRows || []), ...(X.open || X.type || X.job ? L.wait || [] : [])].filter((r) => r && !r.done && r.src !== 'note' && r.src !== 'own' && (!X.job || r.job === X.job)); };
|
|
148
150
|
/** ↑ ↓ (j k) in the popup: the previous or next Today row opens in its place. true when it stepped. */
|
|
149
151
|
function step(d) {
|
|
150
152
|
const list = order(), i = list.findIndex((r) => r.key === X.last);
|
|
@@ -362,6 +364,9 @@ export function mountToday(ctx) {
|
|
|
362
364
|
await ctx.reloadMentions(); ctx.toast('Back on Today: it still waits on you.'); return;
|
|
363
365
|
}
|
|
364
366
|
if (act === 'type') { X.type = X.type === key ? '' : key; draw(); return; }
|
|
367
|
+
if (act === 'job') { X.job = key; draw(); return; }
|
|
368
|
+
// the recorded meeting: ✓ keeps it filed where PMOS put it, and the block leaves Today
|
|
369
|
+
if (act === 'filed-ok') { X.filedOk.add(key); draw(); return; }
|
|
365
370
|
if (act === 'ov-yes' || act === 'ov-no') {
|
|
366
371
|
const sg = X.overview && X.overview.suggest.find((x) => x.key === key); if (!sg || X.busy.has(key)) return;
|
|
367
372
|
X.busy.add(key); b.disabled = true;
|
|
@@ -402,7 +402,8 @@ export function groupLog(open, today) {
|
|
|
402
402
|
|
|
403
403
|
/** The Overview at the top of Today (written by PMOS, ✦): one or two sentences, the suggestions with ✓ ✕, and the type chips.
|
|
404
404
|
* Proven-only: the sentence names only the lines Do first picked, with their reasons; with none, it says only the counts and the free time.
|
|
405
|
-
* L: logModel(), A: agendaModel(). → { said, suggest: [{ key, text, act, keys }], chips: [{ type, n }],
|
|
405
|
+
* L: logModel(), A: agendaModel(). → { said, suggest: [{ key, text, act, keys }], chips: [{ type, n }], refs: [{ text, key }] the item names said,
|
|
406
|
+
* today: the lines for today } */
|
|
406
407
|
export const OLD_CHECK_DAYS = 60;
|
|
407
408
|
const clipT = (t, n) => { t = String(t || ''); return t.length > n ? t.slice(0, n - 1).replace(/\s+\S*$/, '') + '…' : t; };
|
|
408
409
|
export function overviewModel(L, A = {}) {
|
|
@@ -411,9 +412,14 @@ export function overviewModel(L, A = {}) {
|
|
|
411
412
|
const forToday = (L.first || []).length + (L.todayRows || []).filter((r) => !r.done && r.type !== 'Note').length;
|
|
412
413
|
if (L.open) parts.push(plural(L.open, 'line is', 'lines are') + ' open' + (forToday && forToday < L.open ? ', ' + forToday + ' of them for today.' : '.'));
|
|
413
414
|
// an ask is said by who asked ("Chen’s ask, 22 days"); another line by its title, clipped, with its reason
|
|
414
|
-
|
|
415
|
-
const
|
|
416
|
-
|
|
415
|
+
// refs: the item names in the sentence, so the page makes each one open its item (the Summary block's links)
|
|
416
|
+
const said = new Set(), refs = [];
|
|
417
|
+
const top = (L.first || []).slice(0, 3).map((r) => {
|
|
418
|
+
const ask = r.type === 'Ask' && r.who && r.who.length && !said.has(names(r.who)) && said.add(names(r.who));
|
|
419
|
+
const text = ask ? names(r.who) + '’s ask' : clipT(r.title, 48);
|
|
420
|
+
refs.push({ text, key: r.key });
|
|
421
|
+
return text + ' (' + (ask ? plural(r.carried, 'day', 'days') : r.reason.replace(/^(Late|Due|Goes|You|A)\b/, (w) => w.toLowerCase())) + ')';
|
|
422
|
+
});
|
|
417
423
|
if (top.length) parts.push('Start with ' + (top.length === 1 ? top[0] : top.slice(0, -1).join(', ') + ' and ' + top[top.length - 1]) + '.');
|
|
418
424
|
const freeW = A.free ? 'You have ' + durWord(A.free) + ' free' : '';
|
|
419
425
|
const nextW = A.next ? (A.nextFirst ? 'your first meeting is at ' : 'your next meeting is at ') + A.next : '';
|
|
@@ -423,7 +429,7 @@ export function overviewModel(L, A = {}) {
|
|
|
423
429
|
if ((L.old || []).length) suggest.push({ key: 'old-tasks', text: plural(L.old.length, 'old task has', 'old tasks have') + ' passed dates by more than ' + OLD_TASK_DAYS + ' days, so they are not on Today. Clear them from Today', act: 'drop', keys: L.old });
|
|
424
430
|
if (old.length) suggest.push({ key: 'drop-old-checks', text: 'Drop the ' + plural(old.length, 'check', 'checks') + ' due more than ' + OLD_CHECK_DAYS + ' days ago', act: 'drop', keys: old.map((r) => r.key) });
|
|
425
431
|
const chips = TYPES.filter((t) => (L.types || {})[t]).map((t) => ({ type: t, n: L.types[t] }));
|
|
426
|
-
return { said: parts.join(' '), suggest, chips, today: forToday };
|
|
432
|
+
return { said: parts.join(' '), suggest, chips, refs, today: forToday };
|
|
427
433
|
}
|
|
428
434
|
|
|
429
435
|
/* ── today's agenda ── */
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/* pm/cozy-today-page.css — Today, the place (slice 5 of the six-place navigation; board 1 on Exploring 2; pm/cozy-today-view.js draws it).
|
|
2
2
|
* today.html on a desk: the white page panel (#hmDesk) holds Today only. Home's list and chat column are not drawn; the chat is the
|
|
3
3
|
* popup's (pm/cozy-popup.js). One container: the log is one card with a thin border, the agenda one grey box on the right.
|
|
4
|
-
*
|
|
5
|
-
* (
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Built from the PMOS design system's parts (Komorebi, komorebi.css; agreed design TodayDS on Exploring 3, 2026-11-20): Main + side; the
|
|
5
|
+
* Overview a Summary block, the log a List block (Tabs, Input, ListRows, the Now group, folds, Badges, Suggestions), the agenda a Timeline
|
|
6
|
+
* block of Events, the recorded meeting a Summary block. The parts draw themselves; this sheet only places them on the page and resets
|
|
7
|
+
* the few native elements a part sits on (a title button, the play link). Nothing animates. A phone draws its own one column (.tdp, at the
|
|
8
|
+
* end of this file) in place of Home's list. */
|
|
8
9
|
|
|
9
10
|
@media (min-width: 761px) {
|
|
10
11
|
body.cz-today #hmDesk > .hm-list, body.cz-today #hmDesk > .hm-chat, body.cz-today #hmDesk > .cz-pn-div, body.cz-today #hmUnfold, body.cz-today .hm-top { display: none !important; }
|
|
@@ -18,145 +19,59 @@
|
|
|
18
19
|
body.cz-today #hmDesk > .hm-vw .cz-vw { width: min(520px, calc(100vw - var(--cz-railx, 16px) - 120px)); flex-basis: auto; }
|
|
19
20
|
}
|
|
20
21
|
.td-page[hidden] { display: none !important; }
|
|
21
|
-
|
|
22
|
-
.td { display: grid; grid-template-columns: minmax(0, 1100px) 320px; justify-content: start; gap: 28px; align-items: start; font-family: var(--cz-sans); color: var(--cz-ink); }
|
|
23
|
-
@media (max-width: 1100px) { .td { grid-template-columns: minmax(0, 1fr); } }
|
|
24
|
-
.td-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
|
|
25
|
-
|
|
26
|
-
/* the Overview: one grey box, written by PMOS (✦), as the popup's Overview */
|
|
27
|
-
/* the Overview: a Summary block (pm-block), written by PMOS (✦); its proposals the Suggestion part, its type filter the Tabs part */
|
|
28
|
-
.td-ov h2 b { color: var(--blue); }
|
|
29
|
-
.td-ov p { margin: 0; font-size: var(--fs-row); line-height: var(--lh-row); color: var(--ink); max-width: 860px; }
|
|
30
|
-
.td-ovs b, .td-sg b { color: var(--blue); font-weight: var(--fw-strong); }
|
|
31
|
-
.td-chips { align-self: flex-start; flex-wrap: wrap; }
|
|
32
|
-
.td-chip b { font-weight: var(--fw-strong); margin-left: 2px; }
|
|
33
|
-
.td-chip.on { background: var(--card); color: var(--ink); box-shadow: var(--raise); } /* the Tabs part's selected tab; a filter press is aria-pressed */
|
|
34
|
-
.td h2 { margin: 0; font-size: var(--fs-section); font-weight: var(--fw-strong); line-height: var(--lh-section); color: var(--ink); }
|
|
35
22
|
.td-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
36
|
-
.td button { font-family: var(--cz-sans); }
|
|
37
|
-
|
|
38
|
-
/* the page head: the day and the time, small, then the greeting */
|
|
39
|
-
.td-top { display: flex; flex-direction: column; gap: 2px; margin: 0 0 18px; font-family: var(--cz-sans); }
|
|
40
|
-
.td-when { font-size: var(--fs-label); font-weight: var(--fw-strong); color: var(--cz-ink3); letter-spacing: .04em; text-transform: uppercase; }
|
|
41
|
-
.td-top h1 { margin: 0; font-size: var(--fs-display); font-weight: var(--fw-strong); line-height: 1.2; color: var(--cz-ink); }
|
|
42
|
-
|
|
43
|
-
/* the log's title line: "Today's log · 12" at the left, the jobs at the right */
|
|
44
|
-
.td-h { align-items: baseline; }
|
|
45
|
-
.td-h h2 { margin-right: auto; }
|
|
46
|
-
.td-sum { font-size: var(--fs-meta); color: var(--muted); }
|
|
47
23
|
|
|
48
|
-
/*
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
.td-
|
|
52
|
-
.td-
|
|
53
|
-
.td-
|
|
54
|
-
.td-in input::placeholder { color: var(--cz-ink3); }
|
|
55
|
-
.td-key { flex: none; font-size: var(--fs-meta); color: var(--cz-ink3); letter-spacing: .02em; white-space: nowrap; }
|
|
56
|
-
.td-key em { font-style: normal; margin: 0 10px 0 3px; }
|
|
57
|
-
.td-key em:last-child { margin-right: 0; }
|
|
58
|
-
@media (max-width: 980px) { .td-key { display: none; } }
|
|
24
|
+
/* Main + side */
|
|
25
|
+
.td { display: grid; grid-template-columns: minmax(0, 1100px) 340px; justify-content: start; gap: 24px; align-items: start; }
|
|
26
|
+
@media (max-width: 1100px) { .td { grid-template-columns: minmax(0, 1fr); } }
|
|
27
|
+
.td-main, .td-side { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
|
|
28
|
+
.td-top { margin: 0 0 16px; }
|
|
29
|
+
.td-top h1, .td p { margin: 0; }
|
|
59
30
|
|
|
60
|
-
/*
|
|
61
|
-
.td-
|
|
62
|
-
.td-r { display: grid; grid-template-columns: 18px 20px minmax(0, 5fr) 100px minmax(0, 2fr) 52px 120px 104px; align-items: center; column-gap: 8px; min-height: 44px; padding: 0 12px; font-size: var(--fs-row); line-height: var(--lh-row); }
|
|
63
|
-
.td-tt.nowork .td-r { grid-template-columns: 18px 20px minmax(0, 1fr) 100px 52px 120px 104px; }
|
|
64
|
-
.td-tt.nowork .td-w, .td-tt.nowork .td-wh { display: none; }
|
|
65
|
-
.td-r + .td-r { box-shadow: inset 0 1px 0 var(--cz-hair); }
|
|
66
|
-
.td-hd { min-height: 36px; font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--muted); } /* the column names on the card; the group headings below are the grey ones */
|
|
67
|
-
.td-p b { color: var(--cz-late); font-weight: var(--fw-strong); display: block; text-align: center; }
|
|
68
|
-
.td-b i { font-style: normal; display: block; text-align: center; font-size: var(--fs-panel); line-height: 1; color: var(--cz-ink); }
|
|
69
|
-
.td-r.lab .td-b i { color: var(--cz-blueink); font-size: var(--fs-badge); }
|
|
70
|
-
.td-wt { min-width: 0; }
|
|
71
|
-
.td-t { display: block; max-width: 100%; text-align: left; border: 0; background: none; padding: 0; font: inherit; font-weight: var(--fw-strong); color: var(--cz-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
|
|
72
|
-
button.td-t { cursor: pointer; }
|
|
73
|
-
button.td-t:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
|
|
74
|
-
.td-r.note .td-t { font-weight: var(--fw-regular); color: var(--cz-ink2); }
|
|
75
|
-
/* the group headings (Do first is the lit Now group, then Today) and the folds (Can wait, PMOS handled): the List block's own */
|
|
76
|
-
.td-gr em { font-style: normal; font-weight: var(--fw-regular); color: var(--muted); margin-left: 6px; }
|
|
77
|
-
.td-gr.fold { display: block; padding: 0; }
|
|
78
|
-
.td-fold svg { color: var(--muted); }
|
|
79
|
-
.td-fold[aria-expanded="true"] svg { transform: rotate(180deg); }
|
|
80
|
-
.td-rs { display: block; font-size: var(--fs-meta); color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
81
|
-
.td-r.why { padding-top: 6px; padding-bottom: 6px; }
|
|
82
|
-
.td-ty { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-meta); color: var(--cz-ink2); white-space: nowrap; }
|
|
83
|
-
.td-ty svg { color: var(--cz-ink3); flex: none; }
|
|
84
|
-
.td-w { font-size: var(--fs-meta); color: var(--cz-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
85
|
-
.td-k { font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--cz-ink2); }
|
|
86
|
-
.td-d { font-size: var(--fs-meta); color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
87
|
-
.td-d.late { color: var(--cz-late); font-weight: var(--fw-strong); }
|
|
88
|
-
.td-a { display: flex; gap: 2px; justify-content: flex-end; opacity: 0; }
|
|
89
|
-
.td-r:hover, .td-r:focus-within { background: var(--cz-well); }
|
|
90
|
-
.td-hd:hover { background: none; }
|
|
91
|
-
.td-r:hover .td-a, .td-r:focus-within .td-a { opacity: 1; }
|
|
92
|
-
@media (hover: none) { .td-a { opacity: 1; } }
|
|
93
|
-
.td-r:hover .td-a .pm-btn:not(.primary):hover { background: var(--card); } /* a row's hover is the well; its buttons lift to the card */
|
|
94
|
-
.td-r.done .td-t, .td-r.done .td-w, .td-r.done .td-k { color: var(--cz-ink3); font-weight: var(--fw-regular); }
|
|
95
|
-
.td-r.done .td-b i { color: var(--cz-ink3); }
|
|
31
|
+
/* item names in the Overview's sentence open the item */
|
|
32
|
+
.td-ln { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
|
|
96
33
|
|
|
97
|
-
/*
|
|
98
|
-
.td-
|
|
99
|
-
.td-
|
|
100
|
-
.td-
|
|
34
|
+
/* Today's log: the tab counts, the capture line, the title button of a row, the kind icon, the Suggestion under a row, the folds */
|
|
35
|
+
.td-n { font-weight: var(--fw-regular); color: var(--muted); }
|
|
36
|
+
.td-in { margin: 0; padding: 0 16px 12px; }
|
|
37
|
+
button.td-t { max-width: 100%; border: 0; background: none; padding: 0; font: inherit; font-weight: var(--fw-strong); color: inherit; text-align: left; cursor: pointer; }
|
|
38
|
+
button.td-t:focus-visible, .td-ln:focus-visible, .td-evl:focus-visible { outline: none; box-shadow: var(--glow); border-radius: var(--radius-sm); }
|
|
39
|
+
.td-t .pm-ic { vertical-align: -2px; margin-left: 4px; color: var(--muted); }
|
|
40
|
+
.td-t[aria-expanded="true"] .pm-ic { transform: rotate(180deg); }
|
|
41
|
+
.td-kind { display: inline-flex; color: var(--muted); }
|
|
42
|
+
.td-li.lab .td-kind { color: var(--blue); }
|
|
43
|
+
.td-li.done .t, .td-li.note .t, .td-li.mem .t { font-weight: var(--fw-regular); }
|
|
44
|
+
.td-li.done .t { color: var(--muted); }
|
|
45
|
+
.td-li:hover .acts .pm-btn:not(.primary):hover { background: var(--card); } /* a row's hover is the well; its buttons lift to the card */
|
|
46
|
+
@media (hover: none) { .td-li .acts { display: flex; } }
|
|
47
|
+
.td-li.hd .w { white-space: normal; overflow-wrap: anywhere; } /* the proof in full: it is why he can trust it */
|
|
48
|
+
.td-li.hd .acts { display: flex; } /* Undo on every handled row */
|
|
49
|
+
.td-did { display: inline-flex; align-items: center; gap: 2px; margin-right: 8px; color: var(--blue); font-weight: var(--fw-strong); }
|
|
50
|
+
.td-did b { font-weight: var(--fw-regular); }
|
|
51
|
+
.rows .td-sg { margin: 2px 8px 8px 42px; } /* a Suggestion under its row lines up with the title */
|
|
52
|
+
.td-fold { width: calc(100% - 32px); margin: 0 16px; }
|
|
53
|
+
.td-fold:last-child { margin-bottom: 8px; }
|
|
54
|
+
.td-fold .pm-ic { margin-left: auto; }
|
|
55
|
+
.td-fold[aria-expanded="true"] .pm-ic { transform: rotate(180deg); }
|
|
56
|
+
.td-none { margin: 0; padding: 4px 16px 16px; }
|
|
101
57
|
|
|
102
|
-
/*
|
|
103
|
-
.td-
|
|
104
|
-
.td-
|
|
105
|
-
.td-
|
|
106
|
-
.td-
|
|
107
|
-
.td-evl { font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--cz-blueink); text-decoration: none; }
|
|
108
|
-
.td-evl:hover { text-decoration: underline; }
|
|
109
|
-
.td-evl:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
|
|
110
|
-
.td-tl { position: relative; flex: none; height: calc(var(--rows) * 64px); margin: 8px 0 8px 46px;
|
|
111
|
-
background-image: linear-gradient(to bottom, var(--cz-hair) 0, var(--cz-hair) 1px, transparent 1px); background-size: 100% calc(100% / var(--rows)); background-repeat: repeat-y; box-shadow: inset 0 -1px 0 var(--cz-hair); }
|
|
112
|
-
.td-hr { position: absolute; left: -46px; top: var(--t); transform: translateY(-50%); font-size: var(--fs-badge); color: var(--cz-ink3); }
|
|
113
|
-
/* an event: the Event part (pm-ev), placed on the day; focus time PMOS holds is dashed blue, a past one the Event's over state */
|
|
114
|
-
.td-ev { position: absolute; left: calc(4px + (100% - 4px) * var(--c, 0) / var(--n, 1)); width: calc((100% - 4px) / var(--n, 1) - 3px); top: var(--t); height: max(30px, calc(var(--h) - 3px)); box-sizing: border-box; overflow: hidden; text-align: left;
|
|
115
|
-
font: inherit; color: var(--ink); gap: 1px; }
|
|
116
|
-
.td-ev.focus { background: var(--card); box-shadow: none; border: 1.5px dashed var(--blue); }
|
|
117
|
-
.td-dk, .td-dm { display: inline-block; width: 8px; height: 8px; margin: 0 8px 1px 2px; vertical-align: middle; }
|
|
118
|
-
.td-dk { border-radius: 2px; transform: rotate(45deg); background: var(--cz-c-6b4fa3); }
|
|
119
|
-
.td-dm { border-radius: 50%; background: var(--cz-blue); }
|
|
120
|
-
.td-ev small { padding-left: 18px; }
|
|
121
|
-
.td-ev.own small, .td-ev.short small { padding-left: 0; }
|
|
58
|
+
/* the agenda: each event at its time, the now line where it falls */
|
|
59
|
+
.td-evl { font-size: var(--fs-meta); color: var(--blue); }
|
|
60
|
+
.td-tl { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: center; }
|
|
61
|
+
.td-evw { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
|
62
|
+
.td-ev { flex: 1; min-width: 0; text-align: left; font: inherit; font-size: var(--fs-meta); color: inherit; }
|
|
122
63
|
button.td-ev { cursor: pointer; }
|
|
123
|
-
button.td-ev:focus-visible { outline:
|
|
124
|
-
.td-ev b
|
|
125
|
-
.td-ev
|
|
126
|
-
.td-ev.
|
|
127
|
-
.td-
|
|
128
|
-
.td-
|
|
129
|
-
.td-
|
|
130
|
-
.td-ev.short:not(.side) b { flex: 0 1 auto; min-width: 0; }
|
|
131
|
-
.td-ev.side .td-dm, .td-ev.side .td-dk { display: none; }
|
|
132
|
-
.td-ev.side.short { flex-direction: column; justify-content: center; align-items: stretch; gap: 0; }
|
|
133
|
-
.td-ev.side small { padding-left: 0; }
|
|
134
|
-
.td-ev.own { background: none; box-shadow: none; }
|
|
135
|
-
.td-ev.on { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
|
|
136
|
-
.td-ev.past b { color: var(--cz-ink3); }
|
|
137
|
-
/* meeting-buddy: the play icon on a meeting with a call (join and record in one press), at the top right of the meeting's own box */
|
|
138
|
-
.td-ev.has-play { padding-right: 40px; }
|
|
139
|
-
.td-play { position: absolute; left: calc(4px + (100% - 4px) * (var(--c, 0) + 1) / var(--n, 1) - 35px); top: calc(var(--t) + 1px); width: 28px; height: 28px; text-decoration: none; } /* a primary Button */
|
|
140
|
-
.td-now { position: absolute; left: -6px; right: 0; top: var(--t); height: 2px; background: var(--cz-late); }
|
|
141
|
-
.td-now::before { content: ''; position: absolute; left: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--cz-late); }
|
|
64
|
+
button.td-ev:focus-visible { outline: none; box-shadow: var(--glow); }
|
|
65
|
+
.td-ev b, .td-ev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
66
|
+
.td-ev.focus { border: 1.5px dashed var(--blue); box-shadow: none; } /* focus time PMOS holds */
|
|
67
|
+
.td-ev.on { border-color: var(--blue); }
|
|
68
|
+
.td-nowt { font-size: var(--fs-meta); font-weight: var(--fw-strong); color: var(--alert); }
|
|
69
|
+
.td-now { height: 0; border-top: 2px solid var(--alert); }
|
|
70
|
+
.td-play { text-decoration: none; }
|
|
142
71
|
|
|
143
72
|
/* the date chooser beside a row (set a date) */
|
|
144
|
-
.td-dp { position: fixed; z-index: 80; display: flex; align-items: center; gap: 6px; padding: 8px; border-radius:
|
|
145
|
-
.td-dp input { font: inherit;
|
|
146
|
-
/* round 3 point 13: what PMOS did on a row, a small ✦ with the count before the reason */
|
|
147
|
-
.td-did { display: inline-flex; align-items: center; gap: 2px; margin-right: 8px; color: var(--cz-blueink); font-weight: var(--fw-strong); }
|
|
148
|
-
.td-did b { font-weight: var(--fw-regular); }
|
|
149
|
-
|
|
150
|
-
/* PMOS handled · N (design check of round 3): the asks the self check cleared today, each with Undo */
|
|
151
|
-
.td-r.hd .td-rs { text-decoration: none; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; } /* the proof in full: it is why he can trust it */
|
|
152
|
-
.td-r.hd .td-a { opacity: 1; } /* Undo on every handled row, not only on hover */
|
|
153
|
-
/* audit round 2: the same step for N initiatives lists its members under it when opened; a day with no event is one quiet line */
|
|
154
|
-
.td-t svg { vertical-align: -2px; margin-left: 4px; color: var(--cz-ink3); }
|
|
155
|
-
.td-t[aria-expanded="true"] svg { transform: rotate(180deg); }
|
|
156
|
-
.td-r.mem .td-wt { padding-left: 18px; }
|
|
157
|
-
.td-r.mem .td-t { font-weight: var(--fw-regular); }
|
|
158
|
-
.td-ag.quiet { align-self: start; }
|
|
159
|
-
.td-quiet { margin: 6px 0 0; font-size: var(--fs-row); color: var(--cz-ink2); }
|
|
73
|
+
.td-dp { position: fixed; z-index: 80; display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: var(--radius-md); background: var(--card); box-shadow: var(--lift); }
|
|
74
|
+
.td-dp input { font: inherit; color: var(--ink); background: var(--well); border: 0; border-radius: var(--radius-sm); padding: 6px 8px; color-scheme: light dark; }
|
|
160
75
|
|
|
161
76
|
/* ── Today on a phone (phone design, boards Ph2_today, Ph2_todayzero, Ph2_recdone; pm/cozy-today-view.js phonePageHtml) ──
|
|
162
77
|
* One column on the white page, a 16 px gutter, no cards and no boxes: hairlines between the parts. Home's list is not drawn on today.html;
|