create-pmos 0.443.0 → 0.445.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +25 -25
- package/payload/KIT-VERSION +2 -2
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/payload/state/log.md +1 -1
- package/workspace/adler-moments-test.js +8 -0
- package/workspace/adler-seasons-art-test.js +3 -0
- package/workspace/board-columns-test.js +168 -0
- package/workspace/board-programs-test.js +1 -1
- package/workspace/briefing-premium-board-test.js +91 -8
- package/workspace/briefing-premium-insights-test.js +83 -38
- package/workspace/briefing-premium-test.js +2 -1
- package/workspace/calm-timeline-test.js +3 -1
- package/workspace/changelog.json +24 -0
- package/workspace/goals-clear-ui-test.js +34 -20
- package/workspace/guide/home.md +5 -0
- package/workspace/guide/jira.md +13 -1
- package/workspace/guide/ready-made-dashboards.md +2 -2
- package/workspace/intel-report-ui-test.js +1 -1
- package/workspace/lib/board-fold.js +33 -5
- package/workspace/lib/board-premium.js +1 -1
- package/workspace/lib/console-state.js +5 -1
- package/workspace/lib/engine/boards.js +9 -2
- package/workspace/lib/factory-join.js +46 -14
- package/workspace/lib/freshness.js +14 -1
- package/workspace/lib/initiative-rows.js +38 -4
- package/workspace/lib/issues.js +8 -1
- package/workspace/lib/jira-cli.js +18 -2
- package/workspace/lib/jira-moves.js +119 -0
- package/workspace/lib/jira-tickets.js +23 -4
- package/workspace/lib/notes.js +4 -2
- package/workspace/lib/offloop.js +75 -29
- package/workspace/lib/page-build.js +97 -0
- package/workspace/lib/plan-items.js +24 -3
- package/workspace/lib/plan-tree.js +62 -9
- package/workspace/lib/ready-reports.js +22 -8
- package/workspace/lib/refresh.js +14 -2
- package/workspace/lib/routes-board-premium.js +9 -1
- package/workspace/lib/routes-boards.js +114 -16
- package/workspace/lib/routes-brief-page.js +3 -1
- package/workspace/lib/routes-calendar-import.js +13 -1
- package/workspace/lib/routes-ready-reports.js +28 -5
- package/workspace/lib/task-links.js +12 -1
- package/workspace/lib/workflows-store.js +14 -3
- package/workspace/live-pill-round-test.js +178 -0
- package/workspace/milestone-pins-test.js +1 -1
- package/workspace/okr-goals-ui-test.js +21 -19
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/panels-test.js +375 -0
- package/workspace/premium-rec-tab-test.js +2 -1
- package/workspace/premium-vw-item-test.js +10 -2
- package/workspace/premium-vw-jira-test.js +3 -0
- package/workspace/program-panel-test.js +6 -6
- package/workspace/public/pm/bd-cols.js +149 -0
- package/workspace/public/pm/bd-ini-panel.js +3 -2
- package/workspace/public/pm/bd-pane.js +41 -0
- package/workspace/public/pm/bd-span.js +29 -11
- package/workspace/public/pm/cozy-adler.js +21 -0
- package/workspace/public/pm/cozy-board.css +45 -0
- package/workspace/public/pm/cozy-divider.css +32 -0
- package/workspace/public/pm/cozy-divider.js +45 -0
- package/workspace/public/pm/cozy-insights.css +22 -0
- package/workspace/public/pm/cozy-live-pill.css +17 -22
- package/workspace/public/pm/cozy-live-pill.js +38 -18
- package/workspace/public/pm/cozy-panels.css +80 -0
- package/workspace/public/pm/cozy-panels.js +691 -0
- package/workspace/public/pm/cozy-viewer.js +148 -70
- package/workspace/public/pm/dash-view.js +5 -2
- package/workspace/public/pm/goals-clear.js +9 -2
- package/workspace/public/pm/home-app.js +30 -19
- package/workspace/public/pm/home-ini.js +9 -3
- package/workspace/public/pm/home-today.js +4 -2
- package/workspace/public/pm/ini-edit.js +405 -0
- package/workspace/public/pm/ini-tasks.js +175 -46
- package/workspace/public/pm/ini-versions.js +18 -4
- package/workspace/public/pm/ini-view-model.js +12 -7
- package/workspace/public/pm/ini-view.css +162 -26
- package/workspace/public/pm/ini-view.js +44 -13
- package/workspace/public/pm/ini-wf-model.js +9 -0
- package/workspace/public/pm/ini-wf.js +14 -9
- package/workspace/public/pm/ins-pane.js +55 -0
- package/workspace/public/pm/jira-move.js +50 -0
- package/workspace/public/pm/live-model.js +3 -2
- package/workspace/public/pm/pn-narrow.js +76 -0
- package/workspace/public/pm/premium-board.js +85 -32
- package/workspace/public/pm/premium-insights.js +211 -43
- package/workspace/public/pm/task-card.css +2 -0
- package/workspace/public/pm/task-card.js +4 -1
- package/workspace/public/premium-board.html +2 -0
- package/workspace/ready-dash-ui-test.js +4 -4
- package/workspace/server.js +71 -20
- package/workspace/skills/jira-move.skill +35 -0
- package/workspace/stage-card-tasks-test.js +397 -0
- package/workspace/stage-card-test.js +1 -1
- package/workspace/task-delete-test.js +9 -1
- package/workspace/task-links-test.js +1 -0
- package/workspace/task-milestones-test.js +3 -3
- package/workspace/task-plans-test.js +1 -1
- package/workspace/task-press-test.js +12 -4
- package/workspace/task-views-test.js +166 -13
- package/workspace/test-lists/batch18-live-pill-round.json +10 -0
- package/workspace/test-lists/batch18-panels.json +9 -0
- package/workspace/test-lists/board-columns.json +5 -0
- package/workspace/test-lists/jira-moves.json +11 -0
- package/workspace/test-lists/page-speed-fold.json +5 -0
- package/workspace/test-lists/page-speed-reads.json +5 -0
- package/workspace/test-lists/stage-card-tasks.json +6 -0
- package/workspace/timeline-holds-test.js +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* P open on ?program=, the shell's header, no chat box · G goals per half, each KR's name and whether it is met · M the track and the
|
|
8
8
|
* Milestones row · W waits on you, in Home · T the initiatives per product, another product read from its board · K every task by level,
|
|
9
9
|
* and the sort card after Turn into a program · F folds kept · O the Board's program row opens it, an initiative opens the Board's
|
|
10
|
-
* initiative in the same shell · X task done and a program check · V
|
|
10
|
+
* initiative in the same shell · X task done and a program check · V opens beside the page, the divider · S full screen on a phone. Per product the
|
|
11
11
|
* KRs (GET /api/boards/anchors), the Insights goals (GET /api/insights-premium) and the PMOS tasks (GET /api/boards/items) answer from
|
|
12
12
|
* fixtures/program-ascent.js. */
|
|
13
13
|
const path = require('path');
|
|
@@ -71,8 +71,8 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
71
71
|
await sleep(1500); // the other product's board and the program reads land after the program opened: none of them opens it again
|
|
72
72
|
ok('P ?program=<id> sends bd:program once: one path opens the program', await p.evaluate(() => window.__bdp) === 1, String(await p.evaluate(() => window.__bdp)));
|
|
73
73
|
const hd = await p.evaluate(() => { const v = document.querySelector('#czViewer'); const r = v.getBoundingClientRect(); return { t: v.querySelector('.cz-vw-title').textContent, kind: (v.querySelector('.cz-vw-kind') || {}).textContent, meta: (v.querySelector('.czs-meta') || {}).textContent, tools: [...v.querySelectorAll('.cz-vw-head [data-cz-vw], [data-cz-vw]')].filter((b) => b.closest('#czViewer') && !b.classList.contains('cz-vw-grip')).map((b) => b.getAttribute('aria-label')), input: v.querySelectorAll('.cz-vw-body input, .cz-vw-body textarea').length, tabs: v.querySelectorAll('.pp-tab, [role="tab"]').length, w: Math.round(r.width), right: Math.round(innerWidth - r.right), sel: !!document.querySelector('#ibBody [data-prow="project-ascent"].sel') }; });
|
|
74
|
-
ok('P the shell\'s header names it once ("title · goal"), with Discuss in chat, the Dashboard toggle once the dashboard reads (it took the charter icon\'s place, batch 17 PbH1Header; the charter stays in ⋯ and on the Milestones pencil), ⋯, Open wide and Close; the summary says the owner and the span; there is no chat box and no tab', hd.t === 'Project Ascent · CIAM migration' && hd.kind === 'Program' && hd.meta === 'Wawan · Sep 2026 to Jun 2028' && /^Discuss in chat\|(Show the dashboard\|)?More\|
|
|
75
|
-
ok('V the program
|
|
74
|
+
ok('P the shell\'s header names it once ("title · goal"), with Discuss in chat, the Dashboard toggle once the dashboard reads (it took the charter icon\'s place, batch 17 PbH1Header; the charter stays in ⋯ and on the Milestones pencil), ⋯, ⧉ Arrange (in place of Open wide, panels on Board and Intelligence) and Close; the summary says the owner and the span; there is no chat box and no tab', hd.t === 'Project Ascent · CIAM migration' && hd.kind === 'Program' && hd.meta === 'Wawan · Sep 2026 to Jun 2028' && /^Discuss in chat\|(Show the dashboard\|)?More\|Arrange\|Close the viewer$/.test([...new Set(hd.tools)].join('|')) && hd.input === 0 && hd.tabs === 0, JSON.stringify(hd));
|
|
75
|
+
ok('V the program opens beside the page, at the right edge, no wider than leaves the Board its 880 px (506 at 1440), and its band row on the Board is selected', hd.w === 506 && hd.right < 40 && hd.sel && await p.evaluate(() => !document.querySelector('#czViewer.cz-vw-float') && !!document.querySelector('.cz-pn-div')), JSON.stringify(hd));
|
|
76
76
|
const sm = await p.evaluate(() => ({ line: (document.querySelector('#czViewer .czs-line') || {}).textContent, pri: (document.querySelector('#czViewer .czs-pri') || {}).textContent || '' }));
|
|
77
77
|
ok('P the summary line is the next milestone (Waits on you counts itself in its row, said once); no primary while every task has a level', /^Next: Pilot live/.test(sm.line) && sm.pri === '', JSON.stringify(sm));
|
|
78
78
|
const g = await p.evaluate(() => ({ per: document.querySelector('#czViewer .pp-per').textContent.trim(), krs: [...document.querySelectorAll('#czViewer .pp-goal .pp-kr:not(.ghost) b')].map((b) => b.textContent) }));
|
|
@@ -125,10 +125,10 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
|
125
125
|
await until(() => p.evaluate(() => document.querySelector('#czViewer').hidden));
|
|
126
126
|
await p.click('#ibBody [data-prog="project-ascent"]');
|
|
127
127
|
ok('O the Board\'s program row opens the program (bd:program)', await shown(p));
|
|
128
|
-
await p.focus('
|
|
128
|
+
await p.focus('.cz-pn-div');
|
|
129
129
|
await p.keyboard.press('ArrowLeft');
|
|
130
|
-
const gw = await p.evaluate(() => { const r = document.querySelector('#czViewer').getBoundingClientRect(); let kept = null; try { kept = localStorage.getItem('cz-
|
|
131
|
-
ok('V the
|
|
130
|
+
const gw = await p.evaluate(() => { const r = document.querySelector('#czViewer').getBoundingClientRect(); let kept = null; try { kept = JSON.parse(localStorage.getItem('cz-pn:board')); } catch { /* none */ } return { w: Math.round(r.width), kept }; });
|
|
131
|
+
ok('V the divider beside the page widens it 24 px, and the Board keeps the share (not a width per kind)', gw.w === 530 && !!gw.kept && gw.kept.v === 2, JSON.stringify(gw));
|
|
132
132
|
await p.keyboard.press('Escape');
|
|
133
133
|
ok('P Escape closes the Viewer', await until(() => p.evaluate(() => document.querySelector('#czViewer').hidden)));
|
|
134
134
|
ok('0 no page error on desktop', D.errors.length === 0, D.errors.join(' | '));
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/* pm/bd-cols.js — the columns of the Board's timeline (batch 19 item 5, Board Track; canvas StsA8Board, StsA9BoardDark, sticky stsBoard).
|
|
2
|
+
* · The columns come from the Board List, plus Start and Next milestone. Initiative always shows. On by default: Stage, Status, Start and
|
|
3
|
+
* Next milestone. Off by default: Workflow, Category, Owner, Next step and Jira key. The choice is remembered in this browser
|
|
4
|
+
* (localStorage pmos.board.tlcols), as the view is.
|
|
5
|
+
* · Status is empty on track (zero is silence); at risk an amber dot, late an orange dot, on hold a grey dot. With Status shown, the dot
|
|
6
|
+
* before the name goes (say it once).
|
|
7
|
+
* · Next milestone: ◇, the milestone's name and its date; a missed one is orange with "+Nd". With this column shown, the bar's end has no
|
|
8
|
+
* label (the ◇ keeps its hover). With it off, the bar's end names the milestone as before.
|
|
9
|
+
* · A press on a column title sorts by it, as in the List; the rows otherwise read in time.
|
|
10
|
+
* · On a narrow Board the columns drop from right to left until the timeline keeps MIN_TRACK px. A phone has no columns (StsA3Phone).
|
|
11
|
+
* Pure markup and state; pm/bd-span.js draws with it, pm/premium-board.js wires the menu and the sort. */
|
|
12
|
+
import { esc, store } from './premium-shell.js';
|
|
13
|
+
import { stageOfRow, wfOf, wfIcon, catOfRow, catLabel, CAT_ORDER } from './bd-wf.js';
|
|
14
|
+
import { offTone, md, dy } from './bd-span.js';
|
|
15
|
+
|
|
16
|
+
/** Every column in its place, left to right: key, title, width in px. Initiative takes what the others leave of its 250 px. */
|
|
17
|
+
export const COLS = [
|
|
18
|
+
{ k: 'title', n: 'Initiative', w: 250 },
|
|
19
|
+
{ k: 'stage', n: 'Stage', w: 100 },
|
|
20
|
+
{ k: 'status', n: 'Status', w: 92 },
|
|
21
|
+
{ k: 'start', n: 'Start', w: 72 },
|
|
22
|
+
{ k: 'ms', n: 'Next milestone', w: 210 },
|
|
23
|
+
{ k: 'wf', n: 'Workflow', w: 150 },
|
|
24
|
+
{ k: 'cat', n: 'Category', w: 110 },
|
|
25
|
+
{ k: 'owner', n: 'Owner', w: 130 },
|
|
26
|
+
{ k: 'next', n: 'Next step', w: 220 },
|
|
27
|
+
{ k: 'jira', n: 'Jira key', w: 100 },
|
|
28
|
+
];
|
|
29
|
+
export const DEFAULT = ['stage', 'status', 'start', 'ms'];
|
|
30
|
+
export const KEY = 'pmos.board.tlcols';
|
|
31
|
+
/** The timeline keeps at least this much room beside the columns; below it the last column drops. */
|
|
32
|
+
export const MIN_TRACK = 420;
|
|
33
|
+
const byK = Object.fromEntries(COLS.map((c) => [c.k, c]));
|
|
34
|
+
|
|
35
|
+
/** The columns this person picked, in column order (Initiative first). */
|
|
36
|
+
export function chosen() {
|
|
37
|
+
let v = null; try { v = JSON.parse(store.get(KEY) || 'null'); } catch { v = null; }
|
|
38
|
+
const on = new Set(Array.isArray(v) ? v.filter((k) => byK[k] && k !== 'title') : DEFAULT);
|
|
39
|
+
return COLS.filter((c) => c.k === 'title' || on.has(c.k)).map((c) => c.k);
|
|
40
|
+
}
|
|
41
|
+
export function setOn(k, on) {
|
|
42
|
+
if (!byK[k] || k === 'title') return;
|
|
43
|
+
const s = new Set(chosen().filter((x) => x !== 'title'));
|
|
44
|
+
if (on) s.add(k); else s.delete(k);
|
|
45
|
+
store.set(KEY, JSON.stringify(COLS.filter((c) => s.has(c.k)).map((c) => c.k)));
|
|
46
|
+
}
|
|
47
|
+
/** The columns that fit a Board `width` px wide: the picked ones less the rightmost until the timeline keeps MIN_TRACK. */
|
|
48
|
+
export function fit(keys, width) {
|
|
49
|
+
const out = keys.slice();
|
|
50
|
+
while (out.length > 1 && out.reduce((n, k) => n + byK[k].w, 0) > width - MIN_TRACK) out.pop();
|
|
51
|
+
return out;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
let sortBy = null; // null: in time (the timeline's own order) until a column title is pressed
|
|
55
|
+
export const sorted = () => sortBy;
|
|
56
|
+
export function setSort(k) { sortBy = byK[k] ? k : null; }
|
|
57
|
+
|
|
58
|
+
const midnight = (d) => new Date(d.getFullYear(), d.getMonth(), d.getDate());
|
|
59
|
+
const day = (v) => { const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(String(v || '')); return m ? new Date(+m[1], +m[2] - 1, +m[3]) : null; };
|
|
60
|
+
/** A row's next milestone: the earliest milestone not done (a missed one first, it is the earliest), else the end the row stands for
|
|
61
|
+
* (Deliver, or Evaluate past it). → { name, d, late, over } or null. over: days past the date. */
|
|
62
|
+
export function nextMs(r, now = new Date()) {
|
|
63
|
+
const t = midnight(now);
|
|
64
|
+
const M = (r.milestones || []).filter((m) => !m.done && day(m.date)).sort((a, b) => day(a.date) - day(b.date));
|
|
65
|
+
let x = M.length ? { name: M[0].name, d: day(M[0].date) } : null;
|
|
66
|
+
const k = r.track ? r.track.k : -1;
|
|
67
|
+
if (!x && day(r.end) && k < 8 && !(r.track && r.track.prog && r.track.prog.total > 0 && r.track.prog.done >= r.track.prog.total)) x = { name: k >= 6 ? 'Evaluate' : 'Deliver', d: day(r.end) };
|
|
68
|
+
if (!x) return null;
|
|
69
|
+
const over = Math.round((t - x.d) / 864e5);
|
|
70
|
+
return { ...x, late: over > 0, over: Math.max(0, over) };
|
|
71
|
+
}
|
|
72
|
+
const STATUS = { late: 'Late', risk: 'At risk', q: 'On hold' };
|
|
73
|
+
const nextText = (r) => { const t = r.track || {}; if (typeof t.next === 'string') return t.next; if (t.next && t.next.text) return t.next.text; const l = (t.line || [])[0]; return l ? l.text || '' : ''; };
|
|
74
|
+
const stageName = (r) => { const s = stageOfRow(r); return (s && s.name) || (r.track && r.track.label) || r.stage || ''; };
|
|
75
|
+
|
|
76
|
+
/** One cell's markup (never a <b>: the name is the row's only one). o: { now, avatar(name) } */
|
|
77
|
+
function cell(r, k, o) {
|
|
78
|
+
const now = o.now;
|
|
79
|
+
if (k === 'stage') return `<span class="tg-c">${esc(stageName(r))}</span>`;
|
|
80
|
+
if (k === 'status') { const t = offTone(r, now); return t ? `<span class="tg-c tg-cst ${t}"><i class="cz-dot ${t}" aria-hidden="true"></i>${STATUS[t]}</span>` : '<span class="tg-c"></span>'; }
|
|
81
|
+
if (k === 'start') { const d = day(r.start); return `<span class="tg-c">${d ? esc(dy(d, now)) : ''}</span>`; }
|
|
82
|
+
if (k === 'ms') {
|
|
83
|
+
const m = nextMs(r, now);
|
|
84
|
+
if (!m) return '<span class="tg-c"></span>';
|
|
85
|
+
return `<span class="tg-c tg-cms${m.late ? ' late' : ''}"><i class="msd" aria-hidden="true"></i><span><em>${esc(m.name)}</em><small>${esc(dy(m.d, now))}${m.late ? ` +${m.over}d` : ''}</small></span></span>`;
|
|
86
|
+
}
|
|
87
|
+
if (k === 'wf') { const w = wfOf(r); return `<span class="tg-c tg-cwf">${wfIcon(w, 16)}<span>${esc(w.name)}</span></span>`; }
|
|
88
|
+
if (k === 'cat') { const c = catOfRow(r); return `<span class="tg-c">${c ? esc(catLabel(c)) : ''}</span>`; }
|
|
89
|
+
if (k === 'owner') return `<span class="tg-c tg-cow">${r.owner ? (o.avatar ? o.avatar(r.owner) : '') + `<span>${esc(r.owner)}</span>` : ''}</span>`;
|
|
90
|
+
if (k === 'next') return `<span class="tg-c">${esc(nextText(r))}</span>`;
|
|
91
|
+
if (k === 'jira') return `<span class="tg-c tg-cjk">${esc((r.epics || [])[0] || '')}</span>`;
|
|
92
|
+
return '<span class="tg-c"></span>';
|
|
93
|
+
}
|
|
94
|
+
/** The words a reader hears for a row's cells: "Build, Late, starts Oct 6, next Checkout to 100% Oct 26, 3 days late". */
|
|
95
|
+
function words(r, keys, now) {
|
|
96
|
+
return keys.map((k) => {
|
|
97
|
+
if (k === 'stage') return stageName(r);
|
|
98
|
+
if (k === 'status') { const t = offTone(r, now); return t ? STATUS[t] : ''; }
|
|
99
|
+
if (k === 'start') return day(r.start) ? 'starts ' + md(day(r.start)) : '';
|
|
100
|
+
if (k === 'ms') { const m = nextMs(r, now); return m ? 'next ' + m.name + ' ' + md(m.d) + (m.late ? ', ' + m.over + (m.over === 1 ? ' day' : ' days') + ' late' : '') : ''; }
|
|
101
|
+
if (k === 'wf') return wfOf(r).name;
|
|
102
|
+
if (k === 'cat') { const c = catOfRow(r); return c ? catLabel(c) : ''; }
|
|
103
|
+
if (k === 'owner') return r.owner || '';
|
|
104
|
+
if (k === 'next') return nextText(r);
|
|
105
|
+
if (k === 'jira') return (r.epics || [])[0] || '';
|
|
106
|
+
return '';
|
|
107
|
+
}).filter(Boolean).join(', ');
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const tone = (r, now) => ({ late: 0, risk: 1, q: 2 })[offTone(r, now)] ?? 3;
|
|
111
|
+
const str = (v) => String(v || '~');
|
|
112
|
+
const SORTS = {
|
|
113
|
+
title: (a, b) => String(a.title).localeCompare(String(b.title)),
|
|
114
|
+
stage: (a, b) => ((stageOfRow(a) || { n: 99 }).n - (stageOfRow(b) || { n: 99 }).n) || str(stageName(a)).localeCompare(str(stageName(b))),
|
|
115
|
+
status: (a, b, now) => tone(a, now) - tone(b, now),
|
|
116
|
+
start: (a, b) => str(a.start).localeCompare(str(b.start)),
|
|
117
|
+
ms: (a, b, now) => { const x = nextMs(a, now), y = nextMs(b, now); return (x ? +x.d : Infinity) - (y ? +y.d : Infinity) || 0; },
|
|
118
|
+
wf: (a, b) => String(wfOf(a).name).localeCompare(String(wfOf(b).name)),
|
|
119
|
+
cat: (a, b) => (CAT_ORDER[catOfRow(a)] ?? 9) - (CAT_ORDER[catOfRow(b)] ?? 9),
|
|
120
|
+
owner: (a, b) => str(a.owner).localeCompare(str(b.owner)),
|
|
121
|
+
next: (a, b) => str(nextText(a)).localeCompare(str(nextText(b))),
|
|
122
|
+
jira: (a, b) => str((a.epics || [])[0]).localeCompare(str((b.epics || [])[0])),
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
const SORT_ICON = '<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M6 13l6 6 6-6"/></svg>';
|
|
126
|
+
/** The columns a timeline draws at a Board `width` px wide, or null with no column beside Initiative (the timeline then draws as before).
|
|
127
|
+
* → { keys, nw, tpl, head(back), cells(r), label(r), order, msOn, statusOn } */
|
|
128
|
+
export function colsFor(width, o = {}) {
|
|
129
|
+
const now = o.now || new Date(), keys = fit(o.keys || chosen(), width);
|
|
130
|
+
if (keys.length < 2) return null;
|
|
131
|
+
const nw = keys.reduce((n, k) => n + byK[k].w, 0), by = sortBy && keys.includes(sortBy) ? sortBy : null;
|
|
132
|
+
const tpl = keys.map((k, i) => (i ? byK[k].w + 'px' : 'minmax(0,1fr)')).join(' ');
|
|
133
|
+
const hd = (k) => { const on = by === k; return `<button type="button" class="tg-chd${on ? ' on' : ''}" data-tsort="${k}" aria-sort="${on ? 'ascending' : 'none'}" title="Sort by ${esc(byK[k].n.toLowerCase())}">${esc(byK[k].n)}${on ? SORT_ICON : ''}</button>`; };
|
|
134
|
+
return {
|
|
135
|
+
keys, nw, tpl, msOn: keys.includes('ms'), statusOn: keys.includes('status'),
|
|
136
|
+
head: (back) => `<span class="tg-c0">${hd('title')}${back || ''}</span>${keys.slice(1).map(hd).join('')}`,
|
|
137
|
+
cells: (r) => keys.slice(1).map((k) => cell(r, k, { now, avatar: o.avatar })).join(''),
|
|
138
|
+
label: (r) => words(r, keys.slice(1), now),
|
|
139
|
+
order: by ? (a, b) => SORTS[by](a, b, now) || String(a.title).localeCompare(String(b.title)) : null,
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/** The Columns menu (StsA8Board's sheet): one check box per column, two to a line; Initiative is always on. */
|
|
144
|
+
export function menuHtml() {
|
|
145
|
+
const on = new Set(chosen());
|
|
146
|
+
return `<span class="bd-cmh" id="bdColsH">Columns</span><span class="bd-cmg">${COLS.map((c) => (c.k === 'title'
|
|
147
|
+
? `<label class="bd-cmi"><input type="checkbox" checked disabled>${esc(c.n)}<small>always</small></label>`
|
|
148
|
+
: `<label class="bd-cmi"><input type="checkbox" data-tcol="${c.k}"${on.has(c.k) ? ' checked' : ''}>${esc(c.n)}</label>`)).join('')}</span>`;
|
|
149
|
+
}
|
|
@@ -50,7 +50,7 @@ const jiraAt = () => { const J = (O.M() && O.M().jira) || {}; return J.readAt ?
|
|
|
50
50
|
/** The view's model for a row: the same function Home's page calls, with what only the Board's model holds (its eight steps, its day). */
|
|
51
51
|
export function viewOf(r) {
|
|
52
52
|
const M = O.M() || {}, p = O.programOf ? O.programOf(r) : null, u = O.usual ? O.usual(r.track || {}) : null;
|
|
53
|
-
return iniView(rowFor(r), { steps: M.steps || [], today: M.today, usual: u, grill: r.id ? O.grill(r.id) : null, program: p ? { id: p.id, title: p.title } : null, jiraAt: jiraAt() });
|
|
53
|
+
return iniView(rowFor(r), { steps: M.steps || [], today: M.today, usual: u, grill: r.id ? O.grill(r.id) : null, program: p ? { id: p.id, title: p.title } : null, jiraAt: jiraAt(), jiraReadAt: ((M.jira || {}).readAt) || '' });
|
|
54
54
|
}
|
|
55
55
|
function draftedHtml(d, g) {
|
|
56
56
|
return d.slice(0, 8).map((x) => lr({ mk: x.waiting ? 'you' : '', title: (x.id ? `<em>${esc(x.id)}</em> ` : '') + esc(x.summary || ''), sub: 'not in Jira' })).join('')
|
|
@@ -204,7 +204,8 @@ function wire(body, key) {
|
|
|
204
204
|
// the stage card's ⏸ or calendar on a hold (batch 11 item 21): the Board's own hold menu (bd-acts.js)
|
|
205
205
|
hold: (i, b) => { const r = O.rowOf(key); if (r && O.hold) O.hold(r, i, b); },
|
|
206
206
|
addCancel: () => { adding = null; addTo = ''; addDates = null; redraw(); },
|
|
207
|
-
|
|
207
|
+
// opt (batch 18 item 16): the + on a stage, with the dates its field picked
|
|
208
|
+
addTask: async (title, inp, opt) => { const r = O.rowOf(key); if (!r || !O.addTask) return; inp.disabled = true; const ok = await O.addTask(r, title, opt ? opt.section : addTo, opt ? (opt.start || opt.due ? opt : null) : addDates, opt ? opt.name : ''); inp.disabled = false; if (ok && !opt) { inp.value = ''; inp.focus(); } },
|
|
208
209
|
primary: (act, b) => {
|
|
209
210
|
const r = O.rowOf(key); if (!r) return;
|
|
210
211
|
if (act === 'grill') O.grillOpen(r, b);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* pm/bd-pane.js — the Board as the first panel (panels on Board and Intelligence, P-B; canvas In development BiB1Split to BiB9DropOn, sticky
|
|
2
|
+
* "What to build" items 0, 3 and 5). What the panels engine (cozy-panels.js mountPanels) needs from the Board, and the open row's mark.
|
|
3
|
+
* SOURCES the rows that open beside: a drag on the row's name or ⌘/Ctrl-click. The grip still reorders (it is not the name). By stage cards
|
|
4
|
+
* are not here: a drag there moves the stage, so they open beside with ⌘/Ctrl-click only (wire()).
|
|
5
|
+
* fit() the px the Board's desktop view needs to be whole: the stage track, the timeline and By stage about 880, the List 360. It
|
|
6
|
+
* measures the desktop's view, not the narrow form's, so the form does not flip back and forth.
|
|
7
|
+
* openKeys(list, rows, vidOf) the rows an open Viewer shows (each initiative, with several Viewers), for the blue mark. */
|
|
8
|
+
import { panels } from './cozy-viewer.js';
|
|
9
|
+
|
|
10
|
+
export const SOURCES = '#ibBody .ini2[data-key]:not(.bd-bc)';
|
|
11
|
+
export const CARDS = '#ibBody .bd-bc[data-key]';
|
|
12
|
+
const NEED = { track: 880, time: 880, stages: 880, list: 360 };
|
|
13
|
+
export const fit = () => NEED[(document.getElementById('stage') || { dataset: {} }).dataset.bdDesk] || 880;
|
|
14
|
+
|
|
15
|
+
export function openKeys(list, rows, vidOf) {
|
|
16
|
+
const ids = new Set((list || []).filter((p) => p.open && p.item && p.item.kind === 'Initiative').map((p) => p.item.id));
|
|
17
|
+
return (rows || []).filter((r) => ids.has(vidOf(r))).map((r) => r.key);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** Open a row in a Viewer of its own: the engine's openBeside, or (before it is mounted) the Viewer's next open goes beside and the row is
|
|
21
|
+
* pressed as a plain click. */
|
|
22
|
+
export function openBeside(el) {
|
|
23
|
+
const P = window.czPanels;
|
|
24
|
+
if (P && typeof P.openBeside === 'function' && P.openBeside(el) !== false) return true; // false: the engine did nothing (a phone, not mounted)
|
|
25
|
+
if (panels && panels.beside) panels.beside();
|
|
26
|
+
el.click();
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
const besidePress = (e) => e.metaKey || e.ctrlKey || e.button === 1;
|
|
30
|
+
let wired = false;
|
|
31
|
+
/** ⌘/Ctrl-click and middle-click on a By stage card open it beside; a plain click and the drag stay the page's. Not on a phone. */
|
|
32
|
+
export function wire() {
|
|
33
|
+
if (wired) return; wired = true;
|
|
34
|
+
const on = (e) => {
|
|
35
|
+
if (innerWidth <= 760 || !besidePress(e)) return;
|
|
36
|
+
const c = e.target.closest && e.target.closest(CARDS); if (!c) return;
|
|
37
|
+
e.preventDefault(); e.stopPropagation(); openBeside(c);
|
|
38
|
+
};
|
|
39
|
+
document.addEventListener('click', on, true);
|
|
40
|
+
document.addEventListener('auxclick', on, true);
|
|
41
|
+
}
|
|
@@ -34,7 +34,10 @@
|
|
|
34
34
|
* orange late), the dashed Jira forecast, Today. The dotted hold, ⏸, the amber tint, the blue ◆ and the hatched out-of-window band are gone.
|
|
35
35
|
* Only the milestones the Filter shows are drawn (pm/bd-pins.js: the pinned ones, by default the last); every ◇ presses (data-ms-pick).
|
|
36
36
|
* · Group rows draw nothing while open; folded, the roll-up line, the counted ◇s, the end date and one dot per initiative off track.
|
|
37
|
-
* · A row's dot shows only off track (late, at risk, on hold). Names wrap to two lines. One tint (programs); quarter grid lines only.
|
|
37
|
+
* · A row's dot shows only off track (late, at risk, on hold). Names wrap to two lines. One tint (programs); quarter grid lines only.
|
|
38
|
+
* Columns and bars (batch 19 item 5, Board Track; StsA8Board, StsA9BoardDark): a desktop shows columns beside the names (o.cols, pm/bd-cols.js),
|
|
39
|
+
* Status carries the dot and Next milestone the end's words; the bars are 20 px, now blue to the end of this week while under way, and a late
|
|
40
|
+
* row draws an orange line from its end to Today. */
|
|
38
41
|
import { esc } from './premium-shell.js';
|
|
39
42
|
import { mergeClose } from './program-model.js';
|
|
40
43
|
import { stagesOfRow } from './bd-wf.js';
|
|
@@ -100,7 +103,7 @@ const msLate = (m, now) => !m.done && day(m.date) && day(m.date) < new Date(now.
|
|
|
100
103
|
export const anyMsLate = (r, now) => !!(now && (r.milestones || []).some((m) => msLate(m, now)));
|
|
101
104
|
const toneOf = (r, now) => (r.late || anyMsLate(r, now) ? 'late' : r.status === 'at risk' ? 'risk' : r.track && r.track.you ? 'you' : r.status === 'on track' ? 'ok' : 'q');
|
|
102
105
|
/** A row's dot (batch 13 item 4): only off track. 'late' | 'risk' | 'q' (on hold) | null. */
|
|
103
|
-
const offTone = (r, now) => { const t = toneOf(r, now); return t === 'late' || t === 'risk' ? t : r.status === 'on hold' ? 'q' : null; };
|
|
106
|
+
export const offTone = (r, now) => { const t = toneOf(r, now); return t === 'late' || t === 'risk' ? t : r.status === 'on hold' ? 'q' : null; };
|
|
104
107
|
const dotHtml = (r, now) => { const t = offTone(r, now); return t ? `<i class="cz-dot ${t}${t === 'q' ? '' : ' m-warn'}" aria-hidden="true"></i>` : ''; };
|
|
105
108
|
const dated = (r) => day(r.start) || day(r.end) || (r.track && day(r.track.forecast)) || (r.draft && day(r.draft.start));
|
|
106
109
|
/** Done work leaves no edge tab (TsCGrill 5): the initiative is past Deliver, or every part it counts is done. */
|
|
@@ -204,6 +207,8 @@ function qBar(r, X, now, phone, fmt, pxPct, ms = {}) {
|
|
|
204
207
|
out += g.html; clash = g.clash;
|
|
205
208
|
const over = r.over && now > e, late = fc && fc > e, hover = [];
|
|
206
209
|
if (over) hover.push(r.overDays + ' ' + (r.overDays === 1 ? 'day' : 'days') + ' over');
|
|
210
|
+
// a late initiative (batch 19 item 5): a thin orange line from the day after its end to Today, ending in a dot; the bar keeps its fill
|
|
211
|
+
if (over) out += `<span class="tg-late" style="left:${P(X(e))};width:${P(Math.max(0, X(now) - X(e)))}" aria-hidden="true"></span>`;
|
|
207
212
|
if (late) { out += `<span class="tg-fc" style="left:${P(X(e))};width:${P(X(fc) - X(e))}" title="Jira forecast ${esc(md(fc))}"></span>`; hover.push('Jira forecast ' + md(fc)); }
|
|
208
213
|
if (clash) hover.push(clash);
|
|
209
214
|
const sw = slipWords(r, e); if (sw) hover.push(sw);
|
|
@@ -213,14 +218,15 @@ function qBar(r, X, now, phone, fmt, pxPct, ms = {}) {
|
|
|
213
218
|
const ed = et ? day(et.date) : e; if (+ed !== +e) hover.push('Initiative ends ' + dy(e, now));
|
|
214
219
|
const name = landsOf(r, et), eTitle = name + ' · ' + md(ed) + (et && et.stage ? ' · ◆ ' + et.stage : '') + (et && et.done ? ' · done' : isLate ? ' · late' : '');
|
|
215
220
|
out += `<button type="button" class="tg-end${et && et.done ? ' dn' : ''}${isLate ? ' late' : ''}" data-ms-pick="${esc(r.key)}" data-ms-id="${esc(et ? et.id : '')}" style="left:${P(X(ed))}" aria-haspopup="dialog" aria-label="${esc(eTitle + '. Milestones of ' + r.title)}" title="${esc(eTitle + (clash ? '. ' + clash : ''))}"></button>`;
|
|
216
|
-
|
|
221
|
+
// with the Next milestone column on, the column names it and the bar's end has no label (StsA8Board); the ◇ keeps the words as its hover
|
|
222
|
+
if (!ms.noLabel) out += endLabel(Math.max(X(e), X(ed), over ? X(now) : 0, late ? X(fc) : 0), name, ed, isLate ? 'late' : risk, now, pxPct, hover, slipHtml(r));
|
|
217
223
|
} else if (fc) {
|
|
218
224
|
out += `<span class="tg-fc solo" style="left:${P(X(fc))};width:12px;margin-left:-12px" title="Jira forecast ${esc(md(fc))}"></span>` + endLabel(X(fc), 'Jira forecast', fc, '', now, pxPct, [], '');
|
|
219
225
|
} else if (r.draft && day(r.draft.start)) {
|
|
220
226
|
out += draftBar(r, X, phone, fmt, now, pxPct);
|
|
221
227
|
} else {
|
|
222
228
|
const d = s || e;
|
|
223
|
-
out += `<button type="button" class="tg-end" data-ms-pick="${esc(r.key)}" data-ms-id="" style="left:${P(X(d))}" aria-haspopup="dialog" aria-label="${esc((s ? 'Starts ' : 'Ends ') + md(d) + '. Milestones of ' + r.title)}" title="${s ? 'Starts' : 'Ends'} ${esc(md(d))}"></button>` + (e ? endLabel(X(d), landsOf(r, et), d, risk, now, pxPct, [], '') : '');
|
|
229
|
+
out += `<button type="button" class="tg-end" data-ms-pick="${esc(r.key)}" data-ms-id="" style="left:${P(X(d))}" aria-haspopup="dialog" aria-label="${esc((s ? 'Starts ' : 'Ends ') + md(d) + '. Milestones of ' + r.title)}" title="${s ? 'Starts' : 'Ends'} ${esc(md(d))}"></button>` + (e && !ms.noLabel ? endLabel(X(d), landsOf(r, et), d, risk, now, pxPct, [], '') : '');
|
|
224
230
|
}
|
|
225
231
|
return out + planMarks(r, X, phone, fmt);
|
|
226
232
|
}
|
|
@@ -292,11 +298,16 @@ function gapsHtml(r, X, now, phone, fmt, pxPct, s, e, tone, note = '', lands = n
|
|
|
292
298
|
if (at < e) pieces.push([at, e, faded]);
|
|
293
299
|
const days = (p) => Math.max(0, (p[1] - p[0]) / 86400000), total = pieces.reduce((n, p) => n + days(p), 0);
|
|
294
300
|
let left = (doneOf(r) / 100) * total;
|
|
301
|
+
// now is blue (batch 19 item 5, StsA8Board): from where the done part ends to the end of this week, while the work is under way
|
|
302
|
+
let doneAt = s; { let l = left; for (const p of pieces) { const d = days(p); if (l <= d) { doneAt = new Date(+p[0] + l * 864e5); break; } l -= d; doneAt = p[1]; } }
|
|
303
|
+
const t0 = new Date(now.getFullYear(), now.getMonth(), now.getDate()), nowTo = addDays(t0, 7);
|
|
304
|
+
const live = s <= t0 && !isDone(r) && doneOf(r) < 100;
|
|
305
|
+
const nowIn = (p) => { if (!live) return ''; const a = doneAt > p[0] ? doneAt : p[0], b = nowTo < p[1] ? nowTo : p[1]; if (b <= a) return ''; const w = +p[1] - +p[0] || 1; return `<i class="nw" style="left:${(((a - p[0]) / w) * 100).toFixed(1)}%;width:${(((b - a) / w) * 100).toFixed(1)}%"></i>`; };
|
|
295
306
|
const hold = (H.length ? '. ' + H.map((x) => holdWords(x, now)).join('. ') : '') + (dropped.length ? '. ' + dropped.join('. ') : '') + (note ? '. ' + note : '');
|
|
296
307
|
let html = pieces.map((p, i) => {
|
|
297
308
|
const d = days(p), f = d ? Math.max(0, Math.min(1, left / d)) : 0; left -= d;
|
|
298
309
|
const xl = i > 0 || p[0] > s ? ' xl' : '', xr = i < pieces.length - 1 || p[1] < e ? ' xr' : '';
|
|
299
|
-
return `<span class="tg-bar${xl}${xr}${p[2] ? ' fd' : ''}" data-key="${esc(r.key)}" style="left:${P(X(p[0]))};width:${P(Math.max(0.15, X(p[1]) - X(p[0])))}" title="${esc('PMOS plan ' + md(s) + ' to ' + md(e) + hold)}"><b style="width:${(f * 100).toFixed(1)}%"></b
|
|
310
|
+
return `<span class="tg-bar${xl}${xr}${p[2] ? ' fd' : ''}" data-key="${esc(r.key)}" style="left:${P(X(p[0]))};width:${P(Math.max(0.15, X(p[1]) - X(p[0])))}" title="${esc('PMOS plan ' + md(s) + ' to ' + md(e) + hold)}"><b style="width:${(f * 100).toFixed(1)}%"></b>${nowIn(p)}</span>`;
|
|
300
311
|
}).join('');
|
|
301
312
|
// each plain gap: the hairline, one press (a 24 px area) with its words; a phone draws the line alone and its row sheet says it
|
|
302
313
|
plain.forEach(([a, b], gi) => {
|
|
@@ -464,7 +475,7 @@ function edgeTabs(r, X, now, phone) {
|
|
|
464
475
|
* (extra: { plan, draft }; batch 11 item 8), one hairline key for a gap or a hold while one is drawn and Skipped while a » is (extra: { gap, skip };
|
|
465
476
|
* batch 13 item 4 folds the hold into the gap's hairline), the Jira forecast, Milestone, today. `prog` is kept for the callers: a program draws
|
|
466
477
|
* no ◇ of its own while open. */
|
|
467
|
-
export const legendHtml = (prog, hold, extra = {}) => `<span class="tg-lgd" role="group" aria-label="Legend"><span><i class="k dn"></i>Done in Jira</span><span><i class="k pl"></i>To do</span>${extra.plan ? '<span><i class="k pln"></i>Plan</span>' : ''}${extra.draft ? '<span><i class="k drf"></i>Draft</span>' : ''}${hold || extra.gap ? `<span><i class="k ng"></i>${hold && extra.gap ? 'Gap or hold' : hold ? 'On hold' : 'No activity'}</span>` : ''}${extra.skip ? `<span><i class="k sk">${SV(SKIP)}</i>Skipped</span>` : ''}<span><i class="k fc"></i>Jira forecast</span><span><i class="k dlv"></i>Milestone</span><span><i class="k td"></i>Today</span></span>`;
|
|
478
|
+
export const legendHtml = (prog, hold, extra = {}) => `<span class="tg-lgd" role="group" aria-label="Legend"><span><i class="k dn"></i>Done in Jira</span><span><i class="k nw"></i>Now</span><span><i class="k pl"></i>To do</span>${extra.plan ? '<span><i class="k pln"></i>Plan</span>' : ''}${extra.draft ? '<span><i class="k drf"></i>Draft</span>' : ''}${hold || extra.gap ? `<span><i class="k ng"></i>${hold && extra.gap ? 'Gap or hold' : hold ? 'On hold' : 'No activity'}</span>` : ''}${extra.skip ? `<span><i class="k sk">${SV(SKIP)}</i>Skipped</span>` : ''}<span><i class="k fc"></i>Jira forecast</span><span><i class="k dlv"></i>Milestone</span><span><i class="k td"></i>Today</span></span>`;
|
|
468
479
|
|
|
469
480
|
/** The dates on record a window must hold: every shown row's plan and forecast, the programs' spans and milestones, the release. */
|
|
470
481
|
function datesOf(list, M, o) {
|
|
@@ -483,7 +494,9 @@ function scaled(rows, M, o) {
|
|
|
483
494
|
// one screen shows W.cols columns; the track is as many screens wide as the window holds (pm/bd-scroll.js measures it again on screen)
|
|
484
495
|
const days = (W.to - W.from) / 86400000, viewDays = W.fixed ? days : W.cols * COL_DAYS[W.unit];
|
|
485
496
|
const ratio = days / viewDays, tpx = Math.max(200, o.trackPx || (o.phone ? 340 : 1100)), pxDay = tpx / viewDays;
|
|
486
|
-
|
|
497
|
+
// the columns beside the names (batch 19 item 5, StsA8Board): a desktop only; o.cols from pm/bd-cols.js colsFor, or null
|
|
498
|
+
const C = !o.phone && o.cols ? o.cols : null;
|
|
499
|
+
const msO = { sp, reach: Math.max(1, Math.round(40 / pxDay)), mode: o.msMode || 'pinned', noLabel: !!(C && C.msOn) }; // a row's milestone ◇s closer than ~40 px merge (batch 11 item 3); the Filter's milestones (batch 13 item 4)
|
|
487
500
|
const ov = overlay(W, X, now, sprint, rel), pxPct = (tpx * (W.fixed ? 1 : ratio)) / 100;
|
|
488
501
|
const ra = rel && day(rel.iso), sa = sprint && day(sprint.start), sb = sprint && day(sprint.end);
|
|
489
502
|
// an undated program member's track says so beside today, where the view opens
|
|
@@ -508,7 +521,8 @@ function scaled(rows, M, o) {
|
|
|
508
521
|
const footNone = none.filter((r) => !shownNd.has(r.key));
|
|
509
522
|
// a timeline reads in time (batch 11 item 22): each group's rows by start, then end; undated ones last. The health dot still says late or at risk
|
|
510
523
|
const at = (r) => { const x = extentOf(r, now); return x ? [+x.a, +x.b] : [Infinity, Infinity]; };
|
|
511
|
-
|
|
524
|
+
// a pressed column title sorts each group by that column instead (StsA8Board, as in the List)
|
|
525
|
+
const byTime = (L) => (C && C.order ? L.slice().sort(C.order) : L.map((r) => [at(r), r]).sort((p, q) => p[0][0] - q[0][0] || p[0][1] - q[0][1]).map((x) => x[1]));
|
|
512
526
|
list.splice(0, list.length, ...byTime(list));
|
|
513
527
|
const G = o.groups ? o.groups.map((g) => (g.kind === 'program' ? { ...g, products: g.products.filter((x) => x.rows.length).map((x) => ({ ...x, rows: byTime(x.rows) })) } : { ...g, rows: byTime(keepOf(g.rows)) })).filter((g) => g.rows.length || g.kind === 'program') : null;
|
|
514
528
|
const empty = '<p class="tg-empty">No initiative on screen has a date on record.</p>';
|
|
@@ -529,11 +543,14 @@ function scaled(rows, M, o) {
|
|
|
529
543
|
const lanePh = o.lane ? o.lane({ W, X, rows: list, groups: G, now, phone: true, pxPct }) || '' : '';
|
|
530
544
|
return { html: lanePh + `<div class="tg tg-s tgq" ${attrs}><div class="tg-scw"><div class="tg-sc" tabindex="0" role="group" aria-label="Timeline" style="${style}"><div class="tg-in">${top}<div class="tg-body">${body || empty}</div></div></div>${back}<i class="tg-fade l" aria-hidden="true"></i><i class="tg-fade r" aria-hidden="true"></i></div></div>${below}`, none };
|
|
531
545
|
}
|
|
532
|
-
const head = `<div class="tg-r tg-h"><div class="tg-n"
|
|
546
|
+
const head = `<div class="tg-r tg-h"><div class="tg-n">${C ? C.head(back) : `<b>Initiative</b>${back}`}</div><div class="tg-p">${ticks}${pill}</div></div>`;
|
|
533
547
|
// one line per initiative (PgTimeline): its status dot and its name; the owner and the step stay in the row's title for a pointer and a reader
|
|
534
548
|
const one = (r, cls) => { const s = o.status(r), sub = [r.owner, r.track ? r.track.label : r.stage, s.text].filter(Boolean).join(' · ');
|
|
535
549
|
// the dot keeps its place while it is silent, so every name starts at the same line (XcalmA1Desk)
|
|
536
|
-
|
|
550
|
+
const dot = dotHtml(r, now) || '<i class="tg-nodot" aria-hidden="true"></i>', nm = `<b>${r.inProgram && o.memberIcon ? o.memberIcon(r.inProgram) : ''}${esc(r.title)}</b>`;
|
|
551
|
+
// with columns, the Status cell carries the dot and the name has none (say it once)
|
|
552
|
+
const inner = C ? `<span class="tg-c0">${C.statusOn ? '' : dot}${nm}</span>${C.cells(r)}` : dot + nm, lab = C ? [r.title, C.label(r)].filter(Boolean).join(', ') : r.title + ', ' + sub;
|
|
553
|
+
return `<div class="tg-r${cls || ''}${o.sel === r.key ? ' sel' : ''}" data-row="${esc(r.key)}"><button type="button" class="tg-n ini2" data-key="${esc(r.key)}" title="${esc(sub)}" aria-label="${esc(lab)}">${inner}</button><div class="tg-p"${ext(r)}>${ov}${dated(r) ? qBar(r, X, now, false, fmt, pxPct, msO) + edgeTabs(r, X, now, false) : ND}</div></div>`; };
|
|
537
554
|
// programs first, then the product (PgTimeline): the program's row brackets its initiatives' bars and draws its milestones as diamonds
|
|
538
555
|
const body = G ? G.map((g) => {
|
|
539
556
|
if (g.kind !== 'program') return lane(g) + (o.folded(g.key) ? '' : g.rows.map((r) => one(r, ' tg-gr')).join(''));
|
|
@@ -546,7 +563,8 @@ function scaled(rows, M, o) {
|
|
|
546
563
|
const foot = none.length ? `<div class="tg-ft">${footNone.length ? `<span class="tg-none"><b>${footNone.length} ${footNone.length === 1 ? 'has' : 'have'} no dates:</b> <span>${esc(footNone.slice(0, 4).map((r) => r.title).join(', '))}${footNone.length > 4 ? ' and ' + (footNone.length - 4) + ' more' : ''}</span>${askBtn}</span>` : `<span class="tg-none">${askBtn}</span>`}</div>` : '';
|
|
547
564
|
// the Deliveries lane (batch 13 item 4, XcalmA6Lane): one row under the axis, a list per column (o.lane draws it; none: nothing)
|
|
548
565
|
const laneH = o.lane ? o.lane({ W, X, rows: list, groups: G, now, phone: false, pxPct }) || '' : '';
|
|
549
|
-
|
|
566
|
+
// the columns' width is the name column's (--nw: the sticky block, the left fade and the Deliveries fold all read it)
|
|
567
|
+
return { html: `<div class="tg tg-q tg-s${C ? ' tg-cols' : ''}" ${attrs}${C ? ` style="--nw:${C.nw}px;--cg:${C.tpl}"` : ''}><div class="tg-scw"><div class="tg-sc" tabindex="0" role="group" aria-label="Timeline" style="${style}"><div class="tg-in">${head}${laneH}<div class="tg-body">${body || empty}</div>${axis}</div></div><i class="tg-fade l" aria-hidden="true"></i><i class="tg-fade r" aria-hidden="true"></i></div>${foot}</div>`, none };
|
|
550
568
|
}
|
|
551
569
|
|
|
552
570
|
/** A program's row (PgTimeline .r.pg): its tile and title. Open, its track is empty: its initiatives' rows say it (batch 13 item 4, PlmA1 is
|
|
@@ -397,6 +397,27 @@ export const CHARM_KEYS = Object.freeze(Object.keys(CH));
|
|
|
397
397
|
/** The words for a charm ("Deepavali"), or '' for a key PMOS does not draw. */
|
|
398
398
|
export const charmName = (key) => (CH[key] ? CH[key].name : '');
|
|
399
399
|
|
|
400
|
+
/** The charm on its own, with no Adler (batch 18 item 15, TbT9Divider: the day's charm on the panel divider): the held charm, else the one at
|
|
401
|
+
* his feet, else the head charm, else the neck charm, in figure coordinates. The svg carries data-ad-fit: the page fits its viewBox to the
|
|
402
|
+
* drawing (fitCharm). '' for a key PMOS does not draw. */
|
|
403
|
+
export function charmIcon(key, colors = null, px = 26) {
|
|
404
|
+
const ch = CH[key]; if (!ch) return '';
|
|
405
|
+
addCss();
|
|
406
|
+
const part = ch.held || ch.feet || ch.head || ch.neck; if (!part) return '';
|
|
407
|
+
const box = ch.held ? '76 166 54 62' : '0 0 200 252';
|
|
408
|
+
return `<svg class="ad-svg ad-charm" width="${px}" height="${px}" viewBox="${box}" data-ad-fit aria-hidden="true">${part(colors)}</svg>`;
|
|
409
|
+
}
|
|
410
|
+
/** Fits a charmIcon's viewBox to what it draws, once it is in the page (getBBox needs layout). */
|
|
411
|
+
export function fitCharm(svg) {
|
|
412
|
+
if (!svg || !svg.hasAttribute('data-ad-fit') || typeof svg.getBBox !== 'function') return;
|
|
413
|
+
try {
|
|
414
|
+
const b = svg.getBBox(); if (!b.width || !b.height) return;
|
|
415
|
+
const s = Math.max(b.width, b.height), pad = s * 0.06;
|
|
416
|
+
svg.setAttribute('viewBox', [b.x + b.width / 2 - s / 2 - pad, b.y + b.height / 2 - s / 2 - pad, s + 2 * pad, s + 2 * pad].map((v) => Math.round(v * 10) / 10).join(' '));
|
|
417
|
+
svg.removeAttribute('data-ad-fit');
|
|
418
|
+
} catch { /* not laid out yet: the default box stays */ }
|
|
419
|
+
}
|
|
420
|
+
|
|
400
421
|
/* What he wears on the figure: a held charm goes in his paws only when they are free (handled, resting); in a raised-paw mood it rests at his
|
|
401
422
|
* feet instead, unless the charm already has one there. The headphones win over a head charm: they mean a meeting is recording. */
|
|
402
423
|
function wear(m, prop, c) {
|
|
@@ -1417,3 +1417,48 @@ span.tg-ng { cursor: default; }
|
|
|
1417
1417
|
.tg-msp .o.i small { display: block; font-size: var(--fs-2); font-weight: 500; color: var(--cz-ink3); white-space: normal; }
|
|
1418
1418
|
.tg-ng-i { flex: none; width: 12px; height: 2px; background: var(--bd-done); }
|
|
1419
1419
|
.tg-sk-i { flex: none; width: 12px; display: inline-flex; color: var(--cz-ink3); }
|
|
1420
|
+
|
|
1421
|
+
/* ── the Board as the first panel (panels on Board and Intelligence, P-B; BiB2Half): the narrow form is the phone form (pm/pn-narrow.js keys
|
|
1422
|
+
* the phone rules on .cz-pn-narrow); the open row is blue there too, as on the desktop ── */
|
|
1423
|
+
.cz-pn-narrow .bd-lrow.sel, .cz-pn-narrow .bt-l.sel { background: var(--cz-bluebg); box-shadow: inset 3px 0 0 var(--cz-blue); }
|
|
1424
|
+
/* the timeline's bars and columns (batch 19 item 5, Board Track; StsA8Board, StsA9BoardDark): 20 px rounded bars, the same height as the task
|
|
1425
|
+
* bars; done grey, now blue (to the end of this week), later light; a late initiative keeps its fill and gets a 4 px orange line to Today */
|
|
1426
|
+
.tg-bar { height: 20px; margin-top: -10px; border-radius: 999px; overflow: hidden; }
|
|
1427
|
+
.tg-bar > b { border-radius: 0; }
|
|
1428
|
+
.tg-bar > i.nw { position: absolute; top: 0; bottom: 0; background: var(--cz-blue); }
|
|
1429
|
+
.tg-lgd .k.nw { background: var(--cz-blue); }
|
|
1430
|
+
.tg-fc { height: 20px; margin-top: -10px; border-radius: 999px; }
|
|
1431
|
+
.tg-late { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--cz-late); z-index: 1; pointer-events: none; }
|
|
1432
|
+
.tg-late::after { content: ''; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--cz-late); }
|
|
1433
|
+
.bd-colm { min-width: 300px; padding: 12px 14px 10px; gap: 6px; }
|
|
1434
|
+
.bd-cmh { font-size: var(--fs-1); font-weight: 800; color: var(--cz-ink3); }
|
|
1435
|
+
.bd-cmg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
|
|
1436
|
+
.bd-cmi { display: flex; align-items: center; gap: 8px; min-height: 32px; font: 600 var(--fs-2) var(--cz-sans); color: var(--cz-ink); cursor: pointer; white-space: nowrap; }
|
|
1437
|
+
.bd-cmi small { font-size: var(--fs-1); color: var(--cz-ink3); }
|
|
1438
|
+
.bd-cmi input { margin: 0; width: 16px; height: 16px; accent-color: var(--cz-blue); cursor: pointer; }
|
|
1439
|
+
.bd-cmi input:disabled { cursor: default; }
|
|
1440
|
+
@media (min-width: 721px) {
|
|
1441
|
+
.tg-cols .tg-n.ini2, .tg-cols .tg-h > .tg-n { display: grid; grid-template-columns: var(--cg); align-items: center; gap: 0; }
|
|
1442
|
+
.tg-cols .tg-h > .tg-n { padding-top: 0; padding-bottom: 0; }
|
|
1443
|
+
.tg-c0 { display: flex; align-items: center; gap: 8px; min-width: 0; padding-right: 12px; }
|
|
1444
|
+
.tg-cols .tg-h .tg-c0 { justify-content: space-between; }
|
|
1445
|
+
.tg-c { min-width: 0; padding-right: 12px; font-size: var(--fs-2); font-weight: 600; color: var(--cz-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
1446
|
+
.tg-cst { display: flex; align-items: center; gap: 6px; }
|
|
1447
|
+
.tg-cst.late { color: var(--cz-late); }
|
|
1448
|
+
.tg-cst.risk { color: var(--cz-risk); }
|
|
1449
|
+
.tg-cst.q { color: var(--cz-ink3); }
|
|
1450
|
+
.tg-cms { display: flex; align-items: center; gap: 8px; }
|
|
1451
|
+
.tg-cms > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
|
|
1452
|
+
.tg-cms em { font-style: normal; font-weight: 700; color: var(--cz-ink); overflow: hidden; text-overflow: ellipsis; }
|
|
1453
|
+
.tg-cms small { font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; }
|
|
1454
|
+
.tg-cms.late small { color: var(--cz-late); }
|
|
1455
|
+
.tg-cms .msd { flex: none; width: 10px; height: 10px; box-sizing: border-box; transform: rotate(45deg); border-radius: 2px; border: 2px solid var(--cz-ink2); }
|
|
1456
|
+
.tg-cms.late .msd { border-color: var(--cz-late); background: var(--cz-late); }
|
|
1457
|
+
.tg-cwf, .tg-cow { display: flex; align-items: center; gap: 6px; }
|
|
1458
|
+
.tg-cwf > span, .tg-cow > span { overflow: hidden; text-overflow: ellipsis; }
|
|
1459
|
+
.tg-cwf svg { flex: none; }
|
|
1460
|
+
.tg-chd { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding-right: 10px; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
1461
|
+
.tg-chd:hover, .tg-chd.on { color: var(--cz-ink); }
|
|
1462
|
+
.tg-chd svg { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
|
|
1463
|
+
.tg-chd:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 6px; }
|
|
1464
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* pm/cozy-divider.css — how the panel divider looks (batch 18 item 15, canvas TbT9Divider), drawn by pm/cozy-divider.js inside the
|
|
2
|
+
* engine's .cz-pn-div (pm/cozy-panels.js). The engine sets the divider's place, size and cursor; this sheet draws the handle and what sits
|
|
3
|
+
* on it, inside the engine's centred .cz-pn-in. Token vars from cozy.css only. Motion: the leaves open on hover and the sprout leans while dragging, nothing else. */
|
|
4
|
+
.cz-dv-hd { position: absolute; left: 50%; top: 50%; width: 10px; height: 60px; margin: -30px 0 0 -5px; box-sizing: border-box; border-radius: 5px;
|
|
5
|
+
background: var(--cz-card); box-shadow: 0 2px 8px -2px rgba(42,46,53,.28), 0 0 0 1px var(--cz-hair); display: flex; flex-direction: column;
|
|
6
|
+
align-items: center; justify-content: center; gap: 4px; pointer-events: none; transition: background .15s, box-shadow .15s; }
|
|
7
|
+
.cz-dv-hd b { display: block; width: 3px; height: 3px; border-radius: 50%; background: var(--cz-ink3); }
|
|
8
|
+
.cz-pn-div.hov .cz-dv-hd, .cz-pn-div.drag .cz-dv-hd, .cz-pn-div:focus-visible .cz-dv-hd { background: var(--cz-bluebg); box-shadow: 0 0 0 1.5px var(--cz-blue), 0 4px 12px -4px color-mix(in srgb, var(--cz-blue) 50%, transparent); }
|
|
9
|
+
.cz-pn-div.hov .cz-dv-hd b, .cz-pn-div.drag .cz-dv-hd b, .cz-pn-div:focus-visible .cz-dv-hd b { background: var(--cz-blueink); }
|
|
10
|
+
.cz-pn-div:focus-visible { outline: none; }
|
|
11
|
+
/* the blue line while dragging is the engine's (.cz-pn-div::after in cozy-panels.css); its ::before is the hit area */
|
|
12
|
+
|
|
13
|
+
/* on top of the first divider: Adler's sprout, or the day's charm */
|
|
14
|
+
.cz-dv-top { position: absolute; left: 50%; top: 50%; width: 26px; height: 31px; margin: -64px 0 0 -13px; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
|
|
15
|
+
.cz-dv-top:empty { display: none; }
|
|
16
|
+
.cz-dv-sp { width: 22px; height: 26px; overflow: visible; transform-origin: 50% 100%; transition: transform .25s ease-out; }
|
|
17
|
+
.cz-dv-st { fill: none; stroke: var(--ad-h1); stroke-width: 2; stroke-linecap: round; }
|
|
18
|
+
.cz-dv-lf { stroke: none; transform-origin: 11px 14px; transition: transform .25s ease-out; }
|
|
19
|
+
.cz-dv-lf.l1 { fill: var(--ad-leaf2); }
|
|
20
|
+
.cz-dv-lf.l2 { fill: var(--ad-l0); }
|
|
21
|
+
.cz-pn-div.hov .cz-dv-lf.l1 { transform: rotate(-10deg); }
|
|
22
|
+
.cz-pn-div.hov .cz-dv-lf.l2 { transform: rotate(10deg); }
|
|
23
|
+
.cz-pn-div.drag .cz-dv-sp { transform: rotate(-14deg); }
|
|
24
|
+
.cz-dv-ch { display: inline-flex; }
|
|
25
|
+
.cz-dv-ch svg { width: 26px; height: 26px; overflow: hidden; }
|
|
26
|
+
.cz-dv-ch .env-glow { display: none; } /* the charm's glow is for his scene; on the divider it is the shape only */
|
|
27
|
+
@media (prefers-reduced-motion: reduce) {
|
|
28
|
+
.cz-dv-hd, .cz-dv-sp, .cz-dv-lf { transition: none; }
|
|
29
|
+
.cz-pn-div.hov .cz-dv-lf, .cz-pn-div.drag .cz-dv-sp { transform: none; }
|
|
30
|
+
}
|
|
31
|
+
html.ad-still .cz-dv-sp, html.ad-still .cz-dv-lf { transition: none; }
|
|
32
|
+
html.ad-still .cz-pn-div.hov .cz-dv-lf, html.ad-still .cz-pn-div.drag .cz-dv-sp { transform: none; }
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* pm/cozy-divider.js — how the panel divider looks (feedback batch 18 item 15, slice 15-B; canvas frame TbT9Divider; brief
|
|
2
|
+
* next18/briefs/15-arrange-panels-build.md rule 11). The panels engine (15-A, pm/cozy-panels.js) owns the divider element (.cz-pn-div,
|
|
3
|
+
* role=separator): its drag, its snaps, its keys and its double-click. This module draws only what is inside it.
|
|
4
|
+
*
|
|
5
|
+
* dividerHtml({ first }) the inside of one divider: a soft handle with 3 dots; on the first divider only, Adler's sprout on top, or
|
|
6
|
+
* the day's charm (cozy-adler.js dress(), from the calendar in cozy-seasons.js). Never his face, so the screen
|
|
7
|
+
* keeps one Adler. Settings > Adler > Off: the handle only.
|
|
8
|
+
* States, from classes the engine toggles: at rest · .hov (the handle turns blue, the leaves open) · .drag (a blue line, the sprout leans
|
|
9
|
+
* with the drag). Reduced motion or Settings > Adler > Motion: Still: no leaf or lean motion. Colours are tokens only (cozy-divider.css). */
|
|
10
|
+
import { dress, prefs, charmIcon, fitCharm } from './cozy-adler.js';
|
|
11
|
+
|
|
12
|
+
const SHEET = new URL('./cozy-divider.css', import.meta.url).href;
|
|
13
|
+
// the sprout: the same stem and two leaves as Adler's, alone (TbT9Divider)
|
|
14
|
+
const SPROUT = '<svg class="cz-dv-sp" viewBox="0 0 22 26" width="22" height="26" aria-hidden="true"><path class="cz-dv-st" d="M11 25V13"/>'
|
|
15
|
+
+ '<path class="cz-dv-lf l1" d="M11 15C6 15 3 11 3 6c5 0 8 4 8 9z"/><path class="cz-dv-lf l2" d="M11 12c0-5 3-9 8-9 0 5-3 9-8 9z"/></svg>';
|
|
16
|
+
|
|
17
|
+
function addCss() {
|
|
18
|
+
if (typeof document === 'undefined' || !document.head) return;
|
|
19
|
+
if (!document.querySelector(`link[href="${SHEET}"]`)) { const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = SHEET; document.head.appendChild(l); }
|
|
20
|
+
}
|
|
21
|
+
/** What sits on top of the first divider: '' (Adler is off), the day's charm (Full only), or the sprout. */
|
|
22
|
+
export function topHtml(o = {}) {
|
|
23
|
+
const P = { ...prefs(), ...(o.prefs || {}) };
|
|
24
|
+
if (P['adler.amount'] === 'off') return '';
|
|
25
|
+
const d = o.dress !== undefined ? o.dress : dress();
|
|
26
|
+
const c = d && P['adler.amount'] === 'full' ? charmIcon(d.key, d.colors || null, 26) : '';
|
|
27
|
+
return c ? `<span class="cz-dv-ch" data-charm="${d.key}">${c}</span>` : SPROUT;
|
|
28
|
+
}
|
|
29
|
+
/** The inside of one divider. o.first: the divider beside the chat, the only one with the sprout or the charm. */
|
|
30
|
+
export function dividerHtml(o = {}) {
|
|
31
|
+
addCss();
|
|
32
|
+
if (o.first) fitSoon();
|
|
33
|
+
return '<span class="cz-dv-hd" aria-hidden="true"><b></b><b></b><b></b></span>' + (o.first ? `<span class="cz-dv-top" aria-hidden="true">${topHtml(o)}</span>` : '');
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// the charm's drawing is in Adler's figure coordinates: once it is in the page, its box is fitted to what it draws
|
|
37
|
+
let fitting = false;
|
|
38
|
+
function fitSoon() {
|
|
39
|
+
if (fitting || typeof document === 'undefined' || typeof requestAnimationFrame !== 'function') return;
|
|
40
|
+
fitting = true;
|
|
41
|
+
requestAnimationFrame(() => { fitting = false; document.querySelectorAll('.cz-dv-top svg[data-ad-fit]').forEach(fitCharm); });
|
|
42
|
+
}
|
|
43
|
+
// the day's charm arrives after the first paint (loadDress), and Settings > Adler can change: every first divider follows
|
|
44
|
+
function redraw() { document.querySelectorAll('.cz-dv-top').forEach((n) => { n.innerHTML = topHtml(); }); fitSoon(); }
|
|
45
|
+
if (typeof document !== 'undefined' && document.addEventListener) { document.addEventListener('adler:dressed', redraw); document.addEventListener('adler:prefs', redraw); }
|
|
@@ -850,3 +850,25 @@ textarea.ins-dri { height: auto; padding: 6px 8px; font-weight: 500; resize: ver
|
|
|
850
850
|
.gc-wait { border: 1.5px dashed var(--cz-hair); border-color: var(--cz-dot-q); border-radius: 14px; min-height: 120px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px; font-size: var(--fs-3); color: var(--cz-ink2); }
|
|
851
851
|
.gc-ed { display: flex; flex-direction: column; gap: 10px; }
|
|
852
852
|
.ins-dr.gc-on { border: 0; padding: 0; background: none; gap: 12px; }
|
|
853
|
+
|
|
854
|
+
/* ── batch 18 item 11 gap: the goals dashboard (Iq8Overview with GcJ2FirstMonday): the first readings, a failed or held reading, the drafts under a row ── */
|
|
855
|
+
.ins-dot1 { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--cz-dot-q); }
|
|
856
|
+
.ins-row .val .ins-warn { margin-top: 4px; color: var(--cz-late); font-weight: 700; }
|
|
857
|
+
.ins-row .pace > span { font-size: var(--fs-2); color: var(--cz-ink2); }
|
|
858
|
+
.ins-row.crit .nm .okr-dot { flex: none; } /* a broken limit: the one red, pulsing dot (cozy.css m-crit) */
|
|
859
|
+
.ins-drr { border-top: 0; padding: 0 16px 4px 0; }
|
|
860
|
+
.ins-drr .okr-dr { margin-left: 16px; }
|
|
861
|
+
.ins-nsc .gc-wait { flex: 1; }
|
|
862
|
+
.ins-nsn { margin-left: auto; }
|
|
863
|
+
.ins-nsd .okr-dr { margin: 6px 0 0; }
|
|
864
|
+
.ins-inr .nm small { display: block; font-weight: 700; color: var(--cz-late); margin-top: 2px; }
|
|
865
|
+
#goalTbl[hidden] { display: none !important; }
|
|
866
|
+
@media (max-width: 720px) { .ins-cards > .okr-dr { margin: -2px 0 4px 12px; } .ins-nsn { margin-left: 0; } }
|
|
867
|
+
|
|
868
|
+
/* ── Intelligence as the first panel (panels on Board and Intelligence, P-B; BiI1Split, BiI2Half): the narrow form is the phone's goal cards
|
|
869
|
+
* (pm/pn-narrow.js keys the phone rules on .cz-pn-narrow); Moved by steps aside while the table is too narrow for it, and the goal Viewer
|
|
870
|
+
* keeps it; the row or card a Viewer shows is marked blue ── */
|
|
871
|
+
.ins-nomv .ins-cols { grid-template-columns: minmax(180px, 270px) 160px minmax(190px, 230px) minmax(150px, 1fr); column-gap: 12px; }
|
|
872
|
+
.ins-nomv .ins-cols > .mv, .ins-nomv .ins-cols > .ins-mvh { display: none; }
|
|
873
|
+
.ins-row.vwo, .ins-row.vwo:hover { background: var(--cz-bluebg); box-shadow: inset 3px 0 0 var(--cz-blue); }
|
|
874
|
+
.ins-card.vwo { background: var(--cz-bluebg); box-shadow: inset 3px 0 0 var(--cz-blue); border-color: transparent; }
|