create-pmos 0.401.0 → 0.403.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 -30
- 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/board-programs-test.js +227 -0
- package/workspace/board-shot.js +54 -0
- package/workspace/briefing-premium-adddoc-test.js +28 -22
- package/workspace/briefing-premium-board-test.js +107 -82
- package/workspace/briefing-premium-calendar-2-test.js +23 -10
- package/workspace/briefing-premium-calendar-3-test.js +23 -19
- package/workspace/briefing-premium-calendar-test.js +20 -15
- package/workspace/briefing-premium-initiative-test.js +25 -12
- package/workspace/briefing-premium-insights-test.js +31 -18
- package/workspace/briefing-premium-metrics-test.js +8 -8
- package/workspace/briefing-premium-sources-test.js +15 -10
- package/workspace/briefing-premium-test.js +39 -16
- package/workspace/changelog.json +24 -0
- package/workspace/fixtures/board-premium-facts.js +20 -3
- package/workspace/fixtures/briefing-premium-facts.js +18 -2
- package/workspace/fixtures/premium-viewer-fixtures.js +24 -2
- package/workspace/fixtures/program-ascent.js +101 -0
- package/workspace/guide/home.md +11 -7
- package/workspace/guide/index.md +1 -0
- package/workspace/guide/jira.md +38 -6
- package/workspace/guide/programs.md +37 -0
- package/workspace/home-rows-test.js +184 -0
- package/workspace/lib/briefing-premium-products.js +4 -4
- package/workspace/lib/briefing-premium.js +2 -2
- package/workspace/lib/calendar-layers.js +8 -4
- package/workspace/lib/initiative-layout.js +4 -3
- package/workspace/lib/jira-cli.js +17 -12
- package/workspace/lib/jira-status.js +1 -1
- package/workspace/lib/jira-tickets.js +126 -24
- package/workspace/lib/meeting-files.js +58 -0
- package/workspace/lib/meeting-learn.js +139 -0
- package/workspace/lib/meeting-material.js +12 -5
- package/workspace/lib/notes.js +3 -0
- package/workspace/lib/programs.js +129 -0
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-brief-page.js +8 -1
- package/workspace/lib/routes-briefing-premium.js +1 -1
- package/workspace/lib/routes-calendar-views.js +24 -3
- package/workspace/lib/routes-meeting-material.js +38 -0
- package/workspace/lib/routes-meeting-points.js +23 -3
- package/workspace/lib/routes-programs.js +122 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +31 -25
- package/workspace/premium-chat-context-test.js +1 -1
- package/workspace/premium-chat-goal-view-test.js +1 -1
- package/workspace/premium-chat-viewer-test.js +1 -1
- package/workspace/premium-core-doc-issue-test.js +13 -7
- package/workspace/premium-discuss-landing-test.js +83 -0
- package/workspace/premium-link-suggest-test.js +103 -0
- package/workspace/premium-report-read-test.js +86 -82
- package/workspace/premium-vw-backlog-test.js +6 -5
- package/workspace/premium-vw-cal-test.js +45 -19
- package/workspace/premium-vw-item-test.js +8 -6
- package/workspace/premium-vw-jira-test.js +3 -2
- package/workspace/premium-vw-meet-test.js +122 -66
- package/workspace/premium-vw-notes-test.js +7 -6
- package/workspace/premium-vw-rec-test.js +14 -13
- package/workspace/premium-vw-slides-test.js +11 -5
- package/workspace/program-panel-test.js +152 -0
- package/workspace/public/pm/bd-acts.js +24 -15
- package/workspace/public/pm/bd-asks.js +111 -30
- package/workspace/public/pm/bd-ini-panel.js +229 -0
- package/workspace/public/pm/bd-pop.js +2 -2
- package/workspace/public/pm/bd-prog-panel.js +436 -0
- package/workspace/public/pm/bd-prog.js +191 -0
- package/workspace/public/pm/bd-span.js +98 -15
- package/workspace/public/pm/bd-views.js +93 -29
- package/workspace/public/pm/cozy-board.css +214 -20
- package/workspace/public/pm/cozy-evui.js +4 -2
- package/workspace/public/pm/cozy-home-rows.css +54 -0
- package/workspace/public/pm/cozy-home.css +35 -0
- package/workspace/public/pm/cozy-insights.css +1 -2
- package/workspace/public/pm/cozy-mtg-present.css +160 -0
- package/workspace/public/pm/cozy-panel.css +155 -0
- package/workspace/public/pm/cozy-rec-pill.css +12 -0
- package/workspace/public/pm/cozy-rec-pill.js +46 -0
- package/workspace/public/pm/cozy-today.css +189 -0
- package/workspace/public/pm/cozy-viewer.js +307 -43
- package/workspace/public/pm/cozy-vw-mtg.css +96 -94
- package/workspace/public/pm/cozy-vw-rp.css +40 -25
- package/workspace/public/pm/cozy-vw-shell.css +127 -0
- package/workspace/public/pm/cozy-xv.css +51 -0
- package/workspace/public/pm/cozy-xv.js +34 -0
- package/workspace/public/pm/home-app.js +192 -72
- package/workspace/public/pm/home-chat.js +17 -4
- package/workspace/public/pm/home-data.js +1 -1
- package/workspace/public/pm/home-day.js +64 -0
- package/workspace/public/pm/home-ini-model.js +1 -1
- package/workspace/public/pm/home-ini.js +197 -54
- package/workspace/public/pm/home-list.js +100 -27
- package/workspace/public/pm/home-mentions.js +187 -0
- package/workspace/public/pm/home-rec-row.js +67 -0
- package/workspace/public/pm/home-review.js +20 -10
- package/workspace/public/pm/home-task.js +19 -18
- package/workspace/public/pm/home-today.js +137 -59
- package/workspace/public/pm/premium-board.js +294 -288
- package/workspace/public/pm/premium-insights.js +118 -82
- package/workspace/public/pm/premium-mtg-present.js +408 -100
- package/workspace/public/pm/premium-mtg-replay.js +70 -10
- package/workspace/public/pm/premium-report-read.js +118 -63
- package/workspace/public/pm/premium-vw-cal.js +62 -34
- package/workspace/public/pm/premium-vw-mtg.js +348 -192
- package/workspace/public/pm/program-model.js +192 -0
- package/workspace/public/pm/rec-state.js +63 -0
- package/workspace/public/pm/rp-parts.js +33 -8
- package/workspace/public/pm/tk-draft.js +107 -0
- package/workspace/public/pm/tk-model.js +134 -0
- package/workspace/public/pm/tk-send.js +124 -0
- package/workspace/public/pm/tk-tasks.css +120 -0
- package/workspace/public/premium-board.html +4 -2
- package/workspace/server.js +4 -2
- package/workspace/skills/jira-push.skill +3 -3
- package/workspace/test-lists/board-programs.json +9 -0
- package/workspace/test-lists/prd-to-jira.json +6 -0
- package/workspace/test-lists/program-hierarchy.json +11 -0
- package/workspace/test-lists/program-panel.json +9 -0
- package/workspace/test-lists/viewer-home-rows.json +9 -0
- package/workspace/test-lists/viewer-meetings.json +9 -0
- package/workspace/test-lists/viewer-shell-a.json +15 -0
- package/workspace/tk-tasks-test.js +199 -0
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Nothing here invents a value: what no record holds is shown as "—" or not drawn. */
|
|
11
11
|
import { esc } from './premium-shell.js';
|
|
12
12
|
|
|
13
|
-
let A = null; // the page: { M(), statusOf(r), usual(t), trail(r), docMeta(path), sel() }
|
|
13
|
+
let A = null; // the page: { M(), statusOf(r), usual(t), trail(r), docMeta(path, ws), sel(), groups(L), folded(key), laneHead(g), subTile(name), memberIcon(id), programOf(r), programs() }
|
|
14
14
|
export function init(api) { A = api; }
|
|
15
15
|
const M = () => A.M();
|
|
16
16
|
const SV = (d) => `<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${d}"/></svg>`;
|
|
@@ -48,8 +48,11 @@ const stepText = (r, days) => { const t = r.track || {}; return (t.label || r.st
|
|
|
48
48
|
const nextOf = (r) => { const t = r.track || {}; if (typeof t.next === 'string' && t.next) return t.next; if (t.next && t.next.text) return t.next.text; const l = (t.line || [])[0]; return l ? l.text : ''; };
|
|
49
49
|
|
|
50
50
|
/* ── List (BdList) ───────────────────────────────────────────────────────────────────────────────────────────── */
|
|
51
|
-
let sortBy =
|
|
51
|
+
let sortBy = null, meOpen = false; // null: by product with All products (PgList), else by need, until a column title is pressed
|
|
52
52
|
const COLS = [['title', 'Initiative'], ['kind', 'Kind'], ['stage', 'Stage'], ['need', 'Status'], ['owner', 'Owner'], ['', 'Next'], ['finish', 'Finish'], ['', 'Output'], ['', '']];
|
|
53
|
+
// with a program on the board (PgList): Product and Program after the initiative, both sortable; a row with no program leaves the cell empty
|
|
54
|
+
const PCOLS = [COLS[0], ['product', 'Product'], ['program', 'Program'], ...COLS.slice(1)];
|
|
55
|
+
const progOf = (r) => (A.programOf ? A.programOf(r) : null);
|
|
53
56
|
const SORTS = {
|
|
54
57
|
need: (a, b) => needOf(a) - needOf(b) || kOf(a) - kOf(b),
|
|
55
58
|
title: (a, b) => String(a.title).localeCompare(String(b.title)),
|
|
@@ -57,13 +60,17 @@ const SORTS = {
|
|
|
57
60
|
stage: (a, b) => kOf(a) - kOf(b) || needOf(a) - needOf(b),
|
|
58
61
|
owner: (a, b) => String(a.owner || '~').localeCompare(String(b.owner || '~')),
|
|
59
62
|
finish: (a, b) => String(a.end || '9999').localeCompare(String(b.end || '9999')),
|
|
63
|
+
product: (a, b) => String(a.product || '').localeCompare(String(b.product || '')) || needOf(a) - needOf(b),
|
|
64
|
+
program: (a, b) => { const x = progOf(a), y = progOf(b); return (x ? 0 : 1) - (y ? 0 : 1) || String(x ? x.title : '').localeCompare(String(y ? y.title : '')) || needOf(a) - needOf(b); },
|
|
60
65
|
};
|
|
61
66
|
export function setSort(k) { if (SORTS[k]) sortBy = k; }
|
|
62
67
|
export function toggleME() { meOpen = !meOpen; }
|
|
63
|
-
function listRow(r) {
|
|
68
|
+
function listRow(r, pg) {
|
|
64
69
|
const s = statusLine(r), sel = A.sel && A.sel() === r.key, finish = r.end ? r.finish : '—';
|
|
70
|
+
const p = pg ? progOf(r) : null, prod = pg ? r.product || A.product() : '';
|
|
71
|
+
const pcells = pg ? `<span role="cell" class="bd-pt">${A.tileHtml(prod, 'bd-ti s')}<span class="bd-ell">${esc(prod)}</span></span><span role="cell" class="bd-pt">${p ? A.progTile('bd-pti s') + `<span class="bd-ell">${esc(p.title)}</span>` : ''}</span>` : '';
|
|
65
72
|
return `<div class="bd-lt${sel ? ' sel' : ''}${r.acts && r.acts.life === 'hold' ? ' held' : ''}" role="row" data-row="${esc(r.key)}">`
|
|
66
|
-
+ `<button type="button" class="bd-ltn ini2" data-key="${esc(r.key)}" role="rowheader" aria-haspopup="dialog"><b>${esc(r.title)}</b></button
|
|
73
|
+
+ `<button type="button" class="bd-ltn ini2" data-key="${esc(r.key)}" role="rowheader" aria-haspopup="dialog"><b>${esc(r.title)}</b></button>${pcells}`
|
|
67
74
|
+ `<span role="cell" class="bd-amut">${esc(cap(r.lane) || '—')}</span><span role="cell">${(r.track || {}).ms ? '<i class="cz-ms" aria-hidden="true"></i>' : ''}${esc(stepText(r, true))}</span>`
|
|
68
75
|
+ `<span role="cell" class="cs s-${s.tone}"><i class="cz-dot ${s.tone} ${s.mo || ''}"></i>${esc(s.text)}</span>`
|
|
69
76
|
+ `<span role="cell">${avatar(r.owner)}</span><span role="cell" class="bd-amut bd-ell">${esc(nextOf(r) || '—')}</span>`
|
|
@@ -72,38 +79,94 @@ function listRow(r) {
|
|
|
72
79
|
}
|
|
73
80
|
export function listHtml(L, filtered) {
|
|
74
81
|
const S = M().steps || [];
|
|
75
|
-
const
|
|
82
|
+
const pg = !!(A.groups && A.groups(L)), C = pg ? PCOLS : COLS;
|
|
83
|
+
if (!pg && (sortBy === 'product' || sortBy === 'program')) sortBy = 'need';
|
|
84
|
+
const by = sortBy || (pg && M().board.all ? 'product' : 'need');
|
|
85
|
+
const all = L.slice().sort(SORTS[by] || SORTS.need);
|
|
76
86
|
const top = all.filter((r) => !isME(r)), me = all.filter(isME);
|
|
77
87
|
const meTotal = Math.max(me.length, (S[6] ? S[6].count : 0) + (S[7] ? S[7].count : 0));
|
|
78
|
-
const head = `<div class="bd-lt h" role="row">${
|
|
79
|
-
if (!L.length) return `<div class="bd-ltw" role="table" aria-label="Initiatives">${head}<p class="bt-empty">${filtered ? 'No initiative matches the chips or the filter. <button type="button" class="dlink" id="fClear">Clear them</button>' : 'No initiatives are on this board\'s now view.'}</p></div>`;
|
|
88
|
+
const head = `<div class="bd-lt h" role="row">${C.map(([k, n], i) => (k ? `<button type="button" role="columnheader" class="bd-lth${by === k ? ' on' : ''}" data-sort="${k}" aria-sort="${by === k ? 'ascending' : 'none'}">${i === 0 ? esc(n) + (by === 'need' ? ' · sorted by need' : '') : esc(n)}${by === k && i ? SV('M12 5v14M6 13l6 6 6-6') : ''}</button>` : `<span role="columnheader">${esc(n)}</span>`)).join('')}</div>`;
|
|
89
|
+
if (!L.length) return `<div class="bd-ltw${pg ? ' pg' : ''}" role="table" aria-label="Initiatives">${head}<p class="bt-empty">${filtered ? 'No initiative matches the chips or the filter. <button type="button" class="dlink" id="fClear">Clear them</button>' : 'No initiatives are on this board\'s now view.'}</p></div>`;
|
|
80
90
|
const fold = meTotal ? (meOpen
|
|
81
|
-
? me.map(listRow).join('') + `<div class="bd-lt foot" role="row"><span class="bd-amut">Monitor and Evaluate · ${meTotal}${meTotal > me.length ? ' · ' + (meTotal - me.length) + ' more are not loaded' : ''}</span><button type="button" class="bd-btn sm" data-me aria-expanded="true">Fold them</button></div>`
|
|
91
|
+
? me.map((r) => listRow(r, pg)).join('') + `<div class="bd-lt foot" role="row"><span class="bd-amut">Monitor and Evaluate · ${meTotal}${meTotal > me.length ? ' · ' + (meTotal - me.length) + ' more are not loaded' : ''}</span><button type="button" class="bd-btn sm" data-me aria-expanded="true">Fold them</button></div>`
|
|
82
92
|
: `<div class="bd-lt foot" role="row"><span class="bd-amut">${meTotal} more in Monitor and Evaluate · sorted below</span><button type="button" class="bd-btn sm" data-me aria-expanded="false">Show them</button></div>`) : '';
|
|
83
|
-
return `<div class="bd-ltw" role="table" aria-label="Initiatives">${head}${top.map(listRow).join('')}${fold}</div><p class="bd-foot"
|
|
93
|
+
return `<div class="bd-ltw${pg ? ' pg' : ''}" role="table" aria-label="Initiatives">${head}${top.map((r) => listRow(r, pg)).join('')}${fold}</div><p class="bd-foot">${by === 'product' ? 'Sorted by product. Press Program to sort by program instead; a row with no program leaves the cell empty.' : 'Press a column title to sort. Press a row to open its panel, the same panel as the stage track.'}</p>`;
|
|
84
94
|
}
|
|
85
95
|
|
|
86
|
-
/* ── By stage (BdByStage)
|
|
87
|
-
|
|
88
|
-
|
|
96
|
+
/* ── By stage (BdByStage, PgKanban): programs as swimlanes, then the product; any column folds to a strip ─────────────────────────────────── */
|
|
97
|
+
/* A column folds to a strip with its count and stays folded (localStorage pmos.board.cols). Until the PM folds or opens it, a column starts
|
|
98
|
+
* folded when no card on screen is in it, and Monitor and Evaluate start folded while nothing in them needs you. */
|
|
99
|
+
const COL_KEY = 'pmos.board.cols';
|
|
100
|
+
let COLS_SET = null;
|
|
101
|
+
const colChoice = () => { if (!COLS_SET) { let v = null; try { v = JSON.parse(localStorage.getItem(COL_KEY) || 'null'); } catch { v = null; } COLS_SET = v && typeof v === 'object' && !Array.isArray(v) ? v : {}; } return COLS_SET; };
|
|
102
|
+
let colDefault = {}; // the last drawn default of each column, so a press flips what the PM sees
|
|
103
|
+
export function toggleCol(k) {
|
|
104
|
+
const C = colChoice(), shut = C[k] ? C[k] === 'fold' : !!colDefault[k];
|
|
105
|
+
C[k] = shut ? 'open' : 'fold';
|
|
106
|
+
try { localStorage.setItem(COL_KEY, JSON.stringify(C)); } catch { /* no storage: the fold lasts until the reload */ }
|
|
107
|
+
}
|
|
89
108
|
const EMPTY = ['Nothing in Triage.', 'Nothing in Discover.', 'Nothing in Plan.', 'Nothing waits to be ranked.', 'Nothing in Build.', 'Nothing waits to ship.', 'Nothing in Monitor.', 'Nothing waits for a verdict.'];
|
|
90
109
|
function card(r, drag) {
|
|
91
110
|
const t = r.track || {}, s = statusLine(r), u = A.usual(t);
|
|
92
|
-
|
|
111
|
+
// the foot leads with the next step (PgKanban, the nextfirst rule): your next part in blue when it waits on you, else the output and its
|
|
112
|
+
// count ("BRD 1 of 4"); the owner is in the List, the panel and the card's name for a reader
|
|
113
|
+
const out = t.count && t.count !== 'Not counted yet' ? String(t.output || '').replace(/ complete$/, '').split(/[ ,+]/)[0] + ' ' + String(t.count).replace(/ parts?$/, '') : '';
|
|
114
|
+
const left = t.you && nextOf(r) ? `<b class="nx">${esc(cap(nextOf(r).replace(/^Next: /, '')))}</b>` : `<span>${esc(out)}</span>`;
|
|
93
115
|
const right = t.key === 'deliver' && r.release ? r.release.name + ' · ' + r.release.at : (t.key === 'build' || t.key === 'deliver') && t.prog && t.prog.unit !== '%' ? t.count : t.days != null ? t.days + 'd' + (u ? ' · usually ' + u.days : '') : '';
|
|
94
|
-
return `<button type="button" class="bd-bc ini2${t.ms ? ' ms' : ''}${t.you ? ' you' : ''}${A.sel && A.sel() === r.key ? ' sel' : ''}" data-key="${esc(r.key)}"${drag ? ' draggable="true"' : ''} aria-haspopup="dialog"><b class="t">${esc(r.title)}</b><span class="s cs s-${s.tone}"><i class="cz-dot ${s.tone} ${s.mo || ''}"></i>${esc(s.text)}</span><span class="f">${left}<span>${esc(right)}</span></span></button>`;
|
|
116
|
+
return `<button type="button" class="bd-bc ini2${t.ms ? ' ms' : ''}${t.you ? ' you' : ''}${A.sel && A.sel() === r.key ? ' sel' : ''}" data-key="${esc(r.key)}"${drag ? ' draggable="true"' : ''} aria-haspopup="dialog"${r.owner ? ` title="${esc(r.title + ' · owner ' + r.owner)}"` : ''}><b class="t">${r.inProgram && A.memberIcon ? A.memberIcon(r.inProgram) : ''}${esc(r.title)}</b><span class="s cs s-${s.tone}"><i class="cz-dot ${s.tone} ${s.mo || ''}"></i>${esc(s.text)}</span><span class="f">${left}<span>${esc(right)}</span></span></button>`;
|
|
117
|
+
}
|
|
118
|
+
/** The phone keeps one stacked section per step (BdPhone): it has no room for lanes side by side. Inside a step the cards keep the swimlane
|
|
119
|
+
* order (PgKanban): programs first, then each product, each under a small label, only when a program or more than one product is drawn.
|
|
120
|
+
* The empty steps fold into one line at the foot, as the desktop folds empty columns (zero is silence). */
|
|
121
|
+
function phoneStages(L, S) {
|
|
122
|
+
const G = A.groups ? A.groups(L) : null;
|
|
123
|
+
const lanes = G ? G.map((g) => ({ g, label: g.kind === 'program' ? `<p class="bd-sl pg">${A.progTile('bd-pti s')}${esc(g.program.title)}</p>` : `<p class="bd-sl">${A.subTile(g.name)}${esc(g.name)}</p>`, rows: g.rows })) : [{ g: null, label: '', rows: L }];
|
|
124
|
+
const empty = [];
|
|
125
|
+
const secs = S.map((s, j) => {
|
|
126
|
+
const at = (rows) => rows.filter((r) => r.track && r.track.k === j).sort((a, b) => needOf(a) - needOf(b));
|
|
127
|
+
const n = at(L).length;
|
|
128
|
+
if (!n) { empty.push(s.label); return ''; }
|
|
129
|
+
const body = lanes.map((ln) => { const rs = at(ln.rows); return rs.length ? (G ? ln.label : '') + rs.map((r) => card(r, false)).join('') : ''; }).join('');
|
|
130
|
+
return `<section class="bd-scol" aria-label="${esc(s.label)}" data-step="${j}"><h3>${s.ms ? '<i class="cz-ms" aria-hidden="true"></i>' : ''}${esc(s.label)}<span>${s.count}</span></h3>${body}</section>`;
|
|
131
|
+
}).join('');
|
|
132
|
+
const tail = empty.length ? `<p class="bd-sempty">Nothing on screen in ${esc(empty.length > 1 ? empty.slice(0, -1).join(', ') + ' or ' + empty[empty.length - 1] : empty[0])}.</p>` : '';
|
|
133
|
+
return `<div class="bd-scols ph">${secs}${tail}</div>`;
|
|
95
134
|
}
|
|
96
135
|
export function stagesHtml(L, o = {}) {
|
|
97
136
|
const S = M().steps || [], drag = !M().board.self && !o.phone;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
137
|
+
if (o.phone) return phoneStages(L, S);
|
|
138
|
+
const C = colChoice();
|
|
139
|
+
colDefault = {};
|
|
140
|
+
const shut = S.map((s, j) => {
|
|
141
|
+
const rs = L.filter((r) => r.track && r.track.k === j);
|
|
142
|
+
colDefault[s.key] = !rs.length || (j >= 6 && !rs.some((r) => r.track.you));
|
|
143
|
+
return C[s.key] ? C[s.key] === 'fold' : colDefault[s.key];
|
|
144
|
+
});
|
|
145
|
+
const G = A.groups ? A.groups(L) : null;
|
|
146
|
+
// the lanes: each a head row (a program or a product) and its rows of cells; with no program here, one lane and no head (zero is silence)
|
|
147
|
+
const lanes = G ? G.map((g) => ({ g, subs: g.kind === 'program' ? g.products.map((x) => ({ name: x.name, rows: x.rows, sub: g.products.length > 1 })) : [{ rows: g.rows }] }))
|
|
148
|
+
: [{ g: null, subs: [{ rows: L }] }];
|
|
149
|
+
let row = 2;
|
|
150
|
+
const cell = (j, rs, end) => `<div class="bd-kc${end ? ' end' : ''}" data-step="${j}" style="grid-row:${row};grid-column:${j + 1}" aria-label="${esc(S[j].label)}">${rs.filter((r) => r.track && r.track.k === j).sort((a, b) => needOf(a) - needOf(b)).map((r) => card(r, drag)).join('')}</div>`;
|
|
151
|
+
let body = '';
|
|
152
|
+
lanes.forEach((ln, li) => {
|
|
153
|
+
const g = ln.g, open = !g || !A.folded(g.key);
|
|
154
|
+
if (g) { body += `<div class="bd-lh ${g.kind === 'program' ? 'pg' : 'pd'}" style="grid-row:${row}">${A.laneHead(g)}</div>`; row++; }
|
|
155
|
+
if (!open) return;
|
|
156
|
+
ln.subs.forEach((sub, si) => {
|
|
157
|
+
if (sub.sub) { body += `<div class="bd-ls" style="grid-row:${row}">${A.subTile(sub.name)}${esc(sub.name)}</div>`; row++; }
|
|
158
|
+
const last = li === lanes.length - 1 && si === ln.subs.length - 1;
|
|
159
|
+
body += S.map((s, j) => (shut[j] ? '' : cell(j, sub.rows, last))).join('');
|
|
160
|
+
row++;
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
const span = Math.max(2, row);
|
|
164
|
+
const heads = S.map((s, j) => (shut[j]
|
|
165
|
+
? `<button type="button" class="bd-kstrip" data-colfold="${s.key}" style="grid-column:${j + 1};grid-row:1 / span ${span - 1}" aria-expanded="false" aria-label="Show ${esc(s.label)}, ${s.count}"><b>${s.count}</b><span>${s.ms ? '<i class="cz-ms" aria-hidden="true"></i>' : ''}${esc(s.label)}</span></button>`
|
|
166
|
+
: `<button type="button" class="bd-kh" data-colfold="${s.key}" style="grid-column:${j + 1}" aria-expanded="true" aria-label="${esc(s.label)}, ${s.count}. Fold the column"><span class="l">${s.ms ? '<i class="cz-ms" aria-hidden="true"></i>' : ''}${esc(s.label)}</span><span class="n">${s.count}</span>${SV('M7 10l5 5 5-5')}</button>`)).join('');
|
|
167
|
+
const cols = shut.map((x) => (x ? '40px' : 'minmax(0,1fr)')).join(' ');
|
|
168
|
+
const foot = `<div class="bd-foot bd-sfoot"><span>Any column folds to a strip and stays folded. Empty ones start folded.</span>${drag ? '<span>Drag a card to move its stage</span>' : ''}</div>`;
|
|
169
|
+
return `<div class="bd-kb${G ? ' lanes' : ''}" style="grid-template-columns:${cols}">${heads}${body}</div>${foot}`;
|
|
107
170
|
}
|
|
108
171
|
|
|
109
172
|
/* ── the phone list (BdPhone) ─────────────────────────────────────────────────────────────────────────────────── */
|
|
@@ -129,17 +192,18 @@ export function docRows() {
|
|
|
129
192
|
const out = [], seen = new Set(), m = M();
|
|
130
193
|
for (const r of m.initiatives.list.rows) {
|
|
131
194
|
const T = A.trail(r), L = (T && T.links) || {};
|
|
132
|
-
const add = (kind, label, path, extra = {}) => { if (!path || seen.has(
|
|
195
|
+
const add = (kind, label, path, extra = {}) => { const id = (r.ws ? r.ws + ':' : '') + path; if (!path || seen.has(id)) return; seen.add(id); out.push({ src: 'ini', kind, title: label, path, ini: r, ws, ...extra }); };
|
|
133
196
|
const drift = (T && T.drift) || [];
|
|
134
197
|
const parts = r.track && r.track.key === 'discover' && T && Array.isArray(T.parts) ? T.parts : null;
|
|
198
|
+
const ws = r.ws || m.board.ws || '';
|
|
135
199
|
add('PRD', L.prdVersion ? 'PRD v' + String(L.prdVersion).replace(/^v/i, '') : 'PRD', L.prd, { drift, parts });
|
|
136
200
|
add('Rubric', 'Rubric', L.rubric); add('Evaluation', 'Evaluation', L.evaluation); add('Release notes', 'Release notes' + (r.release ? ' ' + r.release.name : ''), L.notes, { you: !!(r.track && r.track.you && r.track.key === 'deliver') });
|
|
137
201
|
}
|
|
138
|
-
for (const d of (m.docs && m.docs.rows) || []) out.push({ src: 'core', kind: 'Board', title: d.title, path: d.path || null, d });
|
|
202
|
+
for (const d of (m.docs && m.docs.rows) || []) out.push({ src: 'core', kind: 'Board', title: d.title, path: d.path || null, ws: d.ws || m.board.ws || '', d });
|
|
139
203
|
return out;
|
|
140
204
|
}
|
|
141
205
|
/** A row's id: a core document by its key (its path appears only once drafted), an initiative's by its path. */
|
|
142
|
-
export const docId = (x) => (x.src === 'core' ? 'core:' + x.d.key : x.path);
|
|
206
|
+
export const docId = (x) => (x.src === 'core' ? 'core:' + (x.d.ws ? x.d.ws + '/' : '') + x.d.key : (x.ini && x.ini.ws ? x.ini.ws + ':' : '') + x.path);
|
|
143
207
|
export function healthOf(x) {
|
|
144
208
|
if (x.src === 'core') return { tone: ST_TONE[x.d.st] || '', text: x.d.state || '—' };
|
|
145
209
|
if (x.drift && x.drift.length) return { tone: 'w', text: 'Changed after the push' };
|
|
@@ -156,13 +220,13 @@ export function docsHtml() {
|
|
|
156
220
|
if (!rows.length) return chips + `<p class="bd-amut">${D.missing ? 'The core documents could not be read, so none is shown.' : 'No document is on this board yet.'}</p>`;
|
|
157
221
|
const sel = A.docSel ? A.docSel() : null;
|
|
158
222
|
const row = (x) => {
|
|
159
|
-
const h = healthOf(x), meta = x.path ? A.docMeta(x.path) : null, d = x.d || {};
|
|
223
|
+
const h = healthOf(x), meta = x.path ? A.docMeta(x.path, x.ws) : null, d = x.d || {};
|
|
160
224
|
const changed = x.src === 'core' ? d.when || d.added || '—' : meta && meta.changed ? meta.changed + (x.drift && x.drift.length ? ' · after the push' : '') : '—';
|
|
161
225
|
const by = x.src === 'core' ? `<span class="bd-amut">${esc(d.by || '—')}</span>` : meta && meta.by ? avatar(meta.by, 'b') : '<span class="bd-amut">—</span>';
|
|
162
|
-
const act = x.src === 'core' && d.act && d.act.kind === 'draft' ? `<button type="button" class="bd-btn sm" data-act="draft" data-key="${esc(d.key)}"${d.running ? ' disabled' : ''}>${d.running ? 'Drafting' : esc(d.act.label || 'Draft it')}</button>` : '';
|
|
226
|
+
const act = x.src === 'core' && d.act && d.act.kind === 'draft' ? `<button type="button" class="bd-btn sm" data-act="draft" data-key="${esc(d.key)}"${d.ws ? ` data-ws="${esc(d.ws)}"` : ''}${d.running ? ' disabled' : ''}>${d.running ? 'Drafting' : esc(d.act.label || 'Draft it')}</button>` : '';
|
|
163
227
|
const id = docId(x);
|
|
164
228
|
return `<div class="bd-dt${sel === id ? ' sel' : ''}" role="row" data-docrow="${esc(id)}"><span class="bd-dic" aria-hidden="true">${SV(DOC_IC[x.kind] || DOC_IC.PRD)}</span>`
|
|
165
|
-
+ `<button type="button" class="bd-dlink" role="rowheader" data-opendoc="${esc(id)}">${esc(x.title)}</button><span role="cell">${esc(x.src === 'core' ? m.board.name || 'Board' : x.ini.title)}</span>`
|
|
229
|
+
+ `<button type="button" class="bd-dlink" role="rowheader" data-opendoc="${esc(id)}">${esc(x.title)}</button><span role="cell">${esc(x.src === 'core' ? d.product || m.board.name || 'Board' : x.ini.title)}</span>`
|
|
166
230
|
+ `<span role="cell"><span class="bd-pill${h.tone ? ' ' + h.tone : ''}">${esc(h.text)}</span></span><span role="cell" class="bd-amut">${esc(changed)}</span><span role="cell" class="bd-dby">${by}${act}</span></div>`;
|
|
167
231
|
};
|
|
168
232
|
return chips + `<div class="bd-dtw" role="table" aria-label="Documents"><div class="bd-dt h" role="row"><span></span><span role="columnheader">Document</span><span role="columnheader">Initiative</span><span role="columnheader">Health</span><span role="columnheader">Changed</span><span role="columnheader">By</span></div>${shown.map(row).join('')}</div>`;
|
|
@@ -117,7 +117,7 @@ body.bd-page main.bd-main { position: relative; max-width: none; margin: 16px; p
|
|
|
117
117
|
.bd-msg { margin: 0; padding: 18px; border: 1px solid var(--cz-hair); border-radius: 18px; font-size: 13px; color: var(--cz-ink3); }
|
|
118
118
|
.bd-msg b { color: var(--cz-ink); }
|
|
119
119
|
.bd-msg.err b { color: var(--cz-red); }
|
|
120
|
-
.bd-toast { position: fixed; z-index:
|
|
120
|
+
.bd-toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--cz-ink); color: var(--cz-card); border-radius: 999px; padding: 9px 18px; font: 600 13px var(--cz-sans); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); max-width: calc(100vw - 32px); }
|
|
121
121
|
.bd-toast[hidden] { display: none; }
|
|
122
122
|
.bd-toast { display: flex; align-items: center; gap: 12px; }
|
|
123
123
|
.bd-undo { all: unset; cursor: pointer; font-weight: 800; color: var(--cz-blueink); padding: 2px 4px; border-radius: 6px; }
|
|
@@ -213,10 +213,7 @@ body.bd-page main.bd-main { position: relative; max-width: none; margin: 16px; p
|
|
|
213
213
|
.bd-tr b .cz-ms { margin: 0 0 0 1px; width: 9px; height: 9px; }
|
|
214
214
|
.bd-tr em { font-style: normal; color: var(--cz-ink3); }
|
|
215
215
|
|
|
216
|
-
/* ── the
|
|
217
|
-
.bd-peek { position: fixed; z-index: 45; top: 16px; right: 16px; bottom: 16px; width: 440px; background: var(--cz-card); border-left: 1px solid var(--cz-hair); border-radius: 0 28px 28px 0; box-shadow: -20px 0 40px -30px rgba(42,46,53,.35); display: flex; flex-direction: column; font-family: var(--cz-sans); color: var(--cz-ink); }
|
|
218
|
-
.bd-peek[hidden] { display: none; }
|
|
219
|
-
.bd-peek.pk-tl { width: 420px; }
|
|
216
|
+
/* ── the panels' parts (the panels themselves open in the Viewer's shell A: pm/bd-ini-panel.js, premium-board.js actsPanel) ── */
|
|
220
217
|
.pk-h { padding: 20px 16px 6px 20px; display: flex; gap: 8px; align-items: flex-start; position: relative; }
|
|
221
218
|
/* the tools sit on the eyebrow's line; the status line under the title runs the panel's full width (AgBoardPanel) */
|
|
222
219
|
.pk-h > .pk-tools { position: absolute; top: 14px; right: 16px; }
|
|
@@ -236,6 +233,11 @@ body.bd-page main.bd-main { position: relative; max-width: none; margin: 16px; p
|
|
|
236
233
|
.pk-tools { display: flex; gap: 2px; flex: none; }
|
|
237
234
|
.pk-tools .bd-ib { width: 36px; height: 36px; }
|
|
238
235
|
.pk-tools svg { width: 17px; height: 17px; }
|
|
236
|
+
/* XnAgBoardPanel's head on desktop: the eyebrow in grey, a 20 px title, and 32 px tools on the title's top line (the program panel keeps its own) */
|
|
237
|
+
@media (min-width: 721px) {
|
|
238
|
+
.pk-eye { color: var(--cz-ink3); font-weight: 800; }
|
|
239
|
+
.pk-h h2 { font-size: 20px; margin-top: 3px; }
|
|
240
|
+
}
|
|
239
241
|
.pk-b { flex: 1; min-height: 0; overflow: auto; padding: 4px 20px 16px; display: flex; flex-direction: column; gap: 14px; }
|
|
240
242
|
.pk-lad { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); height: 32px; margin-top: -4px; } /* right under the status line (AgBoardPanel) */
|
|
241
243
|
.pk-lad .ln { position: absolute; left: 6.25%; right: 6.25%; top: 9px; height: 2px; background: var(--bd-rail); }
|
|
@@ -300,7 +302,7 @@ button.gi:hover .n { color: var(--cz-blueink); }
|
|
|
300
302
|
.pk-ask .in .bd-ib.solid { width: 32px; height: 32px; }
|
|
301
303
|
.pk-ask .in .bd-ib svg { width: 16px; height: 16px; }
|
|
302
304
|
.pk-ask .ft { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--cz-ink3); padding: 2px 0; min-height: 28px; }
|
|
303
|
-
.pk-ask .ft .sp { flex: 1; }
|
|
305
|
+
.pk-ask .ft .sp { flex: 1; border: 0; border-radius: 0; background: none; } /* a spacer: not the sprint table's .sp box */
|
|
304
306
|
.pk-ask .ft .jr { display: inline-flex; align-items: center; gap: 4px; }
|
|
305
307
|
.pk-ask .ft .jr svg { width: 11px; height: 11px; }
|
|
306
308
|
/* the timeline panel (AgBoardTimelinePanel) */
|
|
@@ -364,7 +366,12 @@ button.tg-n:hover b { color: var(--cz-blueink); }
|
|
|
364
366
|
.tg-bar > b { display: block; height: 100%; border-radius: 6px; background: var(--bd-done); }
|
|
365
367
|
.tg-bar.t-risk { background: color-mix(in srgb, var(--cz-dot-risk) 30%, var(--cz-card)); }
|
|
366
368
|
.tg-bar.t-you { background: color-mix(in srgb, var(--cz-blue) 22%, var(--cz-card)); }
|
|
367
|
-
|
|
369
|
+
/* the committed end (PgTimeline .tdm): an open ◇ for Deliver or Evaluate, its date right of it; filled blue while the initiative is at it */
|
|
370
|
+
.tg-end { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; transform: rotate(45deg); border-radius: 2px; background: var(--cz-card); border: 2px solid var(--bd-done); box-sizing: border-box; z-index: 2; }
|
|
371
|
+
.tg-end.ms { background: var(--cz-blue); border-color: var(--cz-blue); }
|
|
372
|
+
.tg-end.late { border-color: var(--cz-dot-late); }
|
|
373
|
+
.tg-endl { position: absolute; top: 50%; transform: translate(11px, -50%); font-size: 11.5px; font-weight: 700; color: var(--cz-ink2); white-space: nowrap; z-index: 3; }
|
|
374
|
+
.tg-endl.l { transform: translate(calc(-100% - 11px), -50%); }
|
|
368
375
|
.tg-over { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--cz-c-f0a27a) 0 4px, var(--cz-c-fbdccb) 4px 8px); z-index: 1; }
|
|
369
376
|
.tg-fc { position: absolute; top: 50%; height: 12px; margin-top: -6px; border-radius: 6px; border: 1.5px dashed var(--cz-dot-late); box-sizing: border-box; z-index: 1; }
|
|
370
377
|
.tg-fc.solo { border-color: var(--cz-blue); }
|
|
@@ -445,7 +452,6 @@ button.tg-n:hover b { color: var(--cz-blueink); }
|
|
|
445
452
|
.bt-r { grid-template-columns: 180px 400px minmax(0, 1fr); }
|
|
446
453
|
.bt-cells { grid-template-columns: repeat(8, 50px); }
|
|
447
454
|
.bt-h .bt-cells > div { font-size: 10.5px; }
|
|
448
|
-
.bd-peek { width: min(440px, 70vw); }
|
|
449
455
|
.tg-r, .tg-ax { grid-template-columns: 180px minmax(0, 1fr); }
|
|
450
456
|
}
|
|
451
457
|
|
|
@@ -503,12 +509,7 @@ button.tg-n:hover b { color: var(--cz-blueink); }
|
|
|
503
509
|
.bd-tbl, .bd-tbl4, .bd-tbl3 { grid-template-columns: 1fr 1fr; }
|
|
504
510
|
.bd-tr.th { display: none; }
|
|
505
511
|
.bd-tr > span:nth-child(n+3) { grid-column: 1 / -1; border-top: 0; padding-top: 0; }
|
|
506
|
-
/* the panel as a bottom sheet */
|
|
507
|
-
.bd-peek { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 88vh; border-radius: 28px 28px 0 0; border-left: 0; box-shadow: 0 -20px 50px -20px rgba(42,46,53,.45); }
|
|
508
|
-
.bd-peek::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--cz-hair); }
|
|
509
512
|
.pk-h { padding-top: 22px; }
|
|
510
|
-
body.pk-on main.bd-main::after { content: ""; position: fixed; inset: 0; z-index: 44; background: rgba(42,46,53,.32); }
|
|
511
|
-
body.pk-on .cz-fabw { display: none; }
|
|
512
513
|
.pk-tools .bd-ib, .pk-ask .in .bd-ib.solid, .pk-ask .bd-ib.sm, .pk-nb .bd-ib, .pk-acts .bd-ib, .pk-need .bd-ib { width: 44px; height: 44px; }
|
|
513
514
|
.wi { min-height: 44px; }
|
|
514
515
|
.pk-lk .bd-chip { height: 44px; }
|
|
@@ -642,9 +643,9 @@ button.bd-lr:hover { background: var(--bd-row); }
|
|
|
642
643
|
/* ── the uncovered features (initiative premium-uncovered-features, Board: BdList, BdByStage, BdDocs, BdSpans, BdAsks, BdNew, BdGrill, BdActions,
|
|
643
644
|
* BdFilter, BdSprint, BdPanel, BdPhone, BdHead). The canvas's cozy parts (.pop .mi .mlbl .pill .box .need .warn .field .inp .bar .av .kbd) as bd-* ── */
|
|
644
645
|
/* popovers (pm/bd-pop.js) */
|
|
645
|
-
.bd-pp { position: fixed; z-index:
|
|
646
|
+
.bd-pp { position: fixed; z-index: 75; background: var(--cz-card); border-radius: 20px; box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); padding: 8px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 24px); overflow: auto; font-family: var(--cz-sans); color: var(--cz-ink); width: 320px; }
|
|
646
647
|
.bd-pp[hidden], .bd-scrim[hidden] { display: none; }
|
|
647
|
-
.bd-scrim { position: fixed; inset: 0; z-index:
|
|
648
|
+
.bd-scrim { position: fixed; inset: 0; z-index: 74; background: rgba(42,46,53,.32); }
|
|
648
649
|
.bd-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--cz-hair); margin: 2px auto 8px; flex: none; }
|
|
649
650
|
.bd-mi { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 12px; font: 600 14px var(--cz-sans); color: var(--cz-ink); width: 100%; cursor: pointer; }
|
|
650
651
|
.bd-mi:hover, .bd-mi.hl { background: var(--cz-well); }
|
|
@@ -658,7 +659,7 @@ button.bd-lr:hover { background: var(--bd-row); }
|
|
|
658
659
|
.bd-mnote { padding: 4px 12px 8px; }
|
|
659
660
|
.bd-hr { height: 1px; background: var(--cz-hair); margin: 4px 6px; flex: none; }
|
|
660
661
|
.bd-ppb { display: flex; flex-direction: column; gap: 8px; padding: 4px 12px 10px; }
|
|
661
|
-
.bd-pp .sm, .bd-
|
|
662
|
+
.bd-pp .sm, .bd-actsvw .sm { font-size: 12.5px; }
|
|
662
663
|
.bd-pp b.sm { font-weight: 800; }
|
|
663
664
|
/* the canvas's small parts */
|
|
664
665
|
.bd-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font: 700 11.5px var(--cz-sans); background: var(--cz-well); color: var(--cz-ink2); white-space: nowrap; flex: none; }
|
|
@@ -776,9 +777,7 @@ a.bd-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration:
|
|
|
776
777
|
.bd-gr { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--cz-hair); }
|
|
777
778
|
.bd-gr .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; }
|
|
778
779
|
.bd-gr small { font-size: 12px; color: var(--cz-ink3); }
|
|
779
|
-
/* the side panel's widths and its new parts */
|
|
780
|
-
.bd-peek.pk-new, .bd-peek.pk-doc { width: 520px; }
|
|
781
|
-
.bd-peek.pk-wide { width: 560px; }
|
|
780
|
+
/* the side panel's widths and its new parts: New initiative, a document and the wide panels take the one width above (B1) */
|
|
782
781
|
.pk-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--cz-ink3); }
|
|
783
782
|
.pk-dg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
|
|
784
783
|
.pk-dg .bd-box { padding: 10px 12px; gap: 2px; }
|
|
@@ -817,6 +816,7 @@ button.pk-jt:focus-visible { outline: 2px solid var(--cz-blue); outline-offset:
|
|
|
817
816
|
.bd-lt.foot { grid-template-columns: 1fr auto; min-height: 44px; background: var(--bd-row); }
|
|
818
817
|
.bd-lth { all: unset; cursor: pointer; white-space: nowrap; }
|
|
819
818
|
.bd-lth.on, .bd-lth:hover { color: var(--cz-ink); }
|
|
819
|
+
.bd-lth svg { width: 12px; height: 12px; margin-left: 3px; vertical-align: -1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
820
820
|
.bd-lth:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
|
|
821
821
|
.bd-ltn { all: unset; cursor: pointer; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
822
822
|
.bd-ltn b { font-weight: 800; }
|
|
@@ -842,6 +842,13 @@ button.pk-jt:focus-visible { outline: 2px solid var(--cz-blue); outline-offset:
|
|
|
842
842
|
.bd-bc .t { font-size: 13.5px; font-weight: 800; color: var(--cz-ink); }
|
|
843
843
|
.bd-bc .s { font-size: 12px; }
|
|
844
844
|
.bd-bc .f { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--cz-ink3); font-size: 11.5px; font-weight: 700; margin-top: 2px; min-height: 22px; }
|
|
845
|
+
.bd-bc .f .nx { color: var(--cz-blueink); font-weight: 800; }
|
|
846
|
+
/* a phone's By stage keeps the swimlane order inside each step (PgKanban): a small program or product label over its cards */
|
|
847
|
+
.bd-scol .bd-sl { display: flex; align-items: center; gap: 7px; margin: 4px 2px 0; font-size: 12px; font-weight: 800; color: var(--cz-ink3); }
|
|
848
|
+
.bd-scol .bd-sl.pg { color: var(--bd-prog); }
|
|
849
|
+
.bd-scol .bd-sl .bd-ti, .bd-scol .bd-sl .bd-pti { width: 20px; height: 20px; border-radius: 7px; font-size: 9px; }
|
|
850
|
+
.bd-scol .bd-sl .bd-pti svg { width: 12px; height: 12px; }
|
|
851
|
+
.bd-sempty { margin: 0; padding: 10px 14px; border-radius: 16px; background: var(--bd-row); font-size: 12.5px; color: var(--cz-ink3); }
|
|
845
852
|
.bd-strip { all: unset; box-sizing: border-box; flex: none; width: 44px; min-height: 220px; border-radius: 18px; background: var(--cz-well); cursor: pointer; display: flex; align-items: flex-start; justify-content: center; padding-top: 14px; }
|
|
846
853
|
.bd-strip span { writing-mode: vertical-rl; font-size: 12.5px; font-weight: 800; color: var(--cz-ink2); white-space: nowrap; }
|
|
847
854
|
.bd-strip:hover { background: var(--cz-well2); }
|
|
@@ -913,7 +920,6 @@ button.sp-n:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -
|
|
|
913
920
|
@media (max-width: 720px) {
|
|
914
921
|
.bd-pp.sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto !important; max-height: 82vh; border-radius: 28px 28px 0 0; padding: 10px 12px 24px; box-shadow: 0 -20px 50px -20px rgba(42,46,53,.35); }
|
|
915
922
|
.bd-mi, .bd-sp1 { min-height: 44px; }
|
|
916
|
-
.bd-peek.pk-new, .bd-peek.pk-doc, .bd-peek.pk-wide { width: auto; }
|
|
917
923
|
.bd-ptabs { display: flex !important; }
|
|
918
924
|
.bd-scols.ph { flex-direction: column; overflow: visible; }
|
|
919
925
|
.bd-scols.ph .bd-scol { min-height: 0; min-width: 0; }
|
|
@@ -939,3 +945,191 @@ button.sp-n:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -
|
|
|
939
945
|
.bd-finp:focus-within { box-shadow: 0 0 0 2px var(--cz-blue); }
|
|
940
946
|
.bd-scols.ph { align-items: stretch; }
|
|
941
947
|
body:has(#bdPop.sheet:not([hidden])) .cz-fabw { display: none; }
|
|
948
|
+
|
|
949
|
+
/* the program panel's parts (PgProgram) */
|
|
950
|
+
.pg-ms .gi.late .r, .pg-ms .gi.late .n { color: var(--cz-red); }
|
|
951
|
+
.pg-ms .k.pgd { border-radius: 2px; transform: rotate(45deg); width: 8px; height: 8px; background: var(--cz-blue); }
|
|
952
|
+
.pg-ms .gi.done .k.pgd { background: var(--bd-done); }
|
|
953
|
+
.pg-tk { display: flex; align-items: center; gap: 8px; }
|
|
954
|
+
.pg-ck { all: unset; cursor: pointer; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--cz-ink3); flex: none; box-sizing: border-box; }
|
|
955
|
+
.pg-ck:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
956
|
+
.pg-tree .lbl { margin-top: 10px; }
|
|
957
|
+
|
|
958
|
+
/* ── programs (initiative program-hierarchy, P4 P6 P8; canvas PgBoard, PgBoardProduct, PgKanban, PgTimeline, PgList) ──
|
|
959
|
+
* Programs first, then the product; every group folds. The program's colour is the frames' violet (--bd-prog, --bd-progbg); a product's tile
|
|
960
|
+
* takes one of four calm tones by its name. One left edge: every group head starts at 14px with a 26px tile, every row under it at 50px. */
|
|
961
|
+
body.bd-page { --bd-prog: rgb(91,79,176); --bd-progbg: rgb(241,239,250); --bd-progln: rgba(91,79,176,.22); --bd-progsp: rgba(91,79,176,.18); }
|
|
962
|
+
html[data-theme="dark"] body.bd-page { --bd-prog: rgb(180,170,240); --bd-progbg: rgba(140,125,230,.16); --bd-progln: rgba(180,170,240,.3); --bd-progsp: rgba(180,170,240,.26); }
|
|
963
|
+
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) body.bd-page { --bd-prog: rgb(180,170,240); --bd-progbg: rgba(140,125,230,.16); --bd-progln: rgba(180,170,240,.3); --bd-progsp: rgba(180,170,240,.26); } }
|
|
964
|
+
.bd-ti { width: 26px; height: 26px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; flex: none; }
|
|
965
|
+
.bd-ti.s { width: 20px; height: 20px; border-radius: 7px; font-size: 9px; }
|
|
966
|
+
.bd-ti.tn0 { background: var(--cz-bluebg); color: var(--cz-blueink); } .bd-ti.tn1 { background: var(--cz-c-f4eee6); color: var(--cz-c-7a5a2e); }
|
|
967
|
+
.bd-ti.tn2 { background: var(--cz-okbg); color: var(--cz-c-2e6e48); } .bd-ti.tn3 { background: var(--cz-c-f1ecf8); color: var(--cz-c-6b4fa3); }
|
|
968
|
+
.bd-pti { width: 26px; height: 26px; border-radius: 9px; background: var(--cz-card); color: var(--bd-prog); display: inline-flex; align-items: center; justify-content: center; flex: none; }
|
|
969
|
+
.bd-pti svg { width: 14px; height: 14px; }
|
|
970
|
+
.bd-pti.s { width: 20px; height: 20px; border-radius: 7px; background: var(--bd-progbg); } .bd-pti.s svg { width: 12px; height: 12px; }
|
|
971
|
+
.bd-pgi { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 6px; background: var(--bd-progbg); color: var(--bd-prog); margin-right: 6px; flex: none; vertical-align: -3px; }
|
|
972
|
+
.bd-pgi svg { width: 12px; height: 12px; stroke-width: 2; }
|
|
973
|
+
.bd-yc { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--cz-bluebg); color: var(--cz-blueink); font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
|
|
974
|
+
.bd-dm { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; background: var(--bd-prog); display: inline-block; flex: none; }
|
|
975
|
+
.bd-dm.o { background: transparent; border: 2px solid var(--bd-prog); width: 7px; height: 7px; margin-right: 4px; }
|
|
976
|
+
.bd-rdy { display: inline-flex; gap: 3px; margin-left: 6px; }
|
|
977
|
+
.bd-rdy i { display: block; width: 6px; height: 6px; border-radius: 1px; transform: rotate(45deg); background: var(--bd-plan); }
|
|
978
|
+
.bd-rdy i.on { background: var(--bd-prog); }
|
|
979
|
+
.bd-fold { color: var(--cz-ink3); }
|
|
980
|
+
.bd-fold:focus-visible, .bt-pgo:focus-visible, .bd-prdb:focus-visible, .bd-lho:focus-visible, .tg-pgo:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 10px; }
|
|
981
|
+
/* the grouping control in the toolbar (PgBoardProduct: "By product" on in violet) */
|
|
982
|
+
.bd-grpw2 { position: relative; display: inline-flex; align-items: center; }
|
|
983
|
+
.bd-grpw2[hidden] { display: none; }
|
|
984
|
+
.bd-grp.on { background: var(--bd-progbg); border-color: transparent; color: var(--bd-prog); font-weight: 700; }
|
|
985
|
+
.bd-grp.on svg { width: 13px; height: 13px; stroke-width: 2; }
|
|
986
|
+
.bd-grpw2 .bd-grpm { left: auto; right: 0; }
|
|
987
|
+
.bd-grpw2 .bd-grpm button[aria-checked="true"] { color: var(--bd-prog); }
|
|
988
|
+
|
|
989
|
+
/* the stage track (PgBoard): the program's band row, its product sub-rows and initiatives, then each product's head and rows */
|
|
990
|
+
.bt-pg { background: var(--bd-progbg); border-top: 1px solid var(--cz-hair); min-height: 58px; }
|
|
991
|
+
.bt-pgn { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 14px; min-width: 0; }
|
|
992
|
+
.bt-pgo { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
|
|
993
|
+
.bt-pgo .tt { min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
|
|
994
|
+
.bt-pgo .tt b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cz-ink); }
|
|
995
|
+
.bt-pgo .tt .m { font-size: 11.5px; color: var(--cz-ink2); font-weight: 600; }
|
|
996
|
+
.bt-pgo:hover .tt b { color: var(--bd-prog); }
|
|
997
|
+
.bt-spread { position: relative; }
|
|
998
|
+
.bd-spb { position: absolute; top: 50%; height: 10px; margin-top: -5px; border-radius: 5px; background: var(--bd-progsp); }
|
|
999
|
+
.bd-spl { position: absolute; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; color: var(--bd-prog); white-space: nowrap; }
|
|
1000
|
+
.bt-pg .bt-dl { border-left-color: var(--bd-progln); }
|
|
1001
|
+
.bd-pm { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--cz-ink2); white-space: nowrap; overflow: hidden; }
|
|
1002
|
+
.bd-pm b { color: var(--cz-ink); font-weight: 800; }
|
|
1003
|
+
.bd-pm.late b, .bd-pm.late { color: var(--cz-late); }
|
|
1004
|
+
.bd-pm.q { color: var(--cz-ink3); }
|
|
1005
|
+
.bt-pg .bt-dl .t3 { display: flex; align-items: center; gap: 2px; }
|
|
1006
|
+
.bt-kid .bt-nm, .bt-gr .bt-nm { padding-left: 50px; position: relative; }
|
|
1007
|
+
.bt-kid .bt-nm::before { content: ""; position: absolute; left: 26px; top: 0; bottom: 0; width: 2px; background: var(--bd-progln); }
|
|
1008
|
+
.bt-kid.last .bt-nm::before { bottom: 50%; }
|
|
1009
|
+
.bt-nm b .bd-pgi { vertical-align: -4px; }
|
|
1010
|
+
.bt-psb, .tg-psb { display: flex; align-items: center; gap: 8px; padding: 7px 14px 5px 50px; font-size: 12px; font-weight: 800; color: var(--cz-ink3); background: var(--cz-card); border-top: 1px solid var(--cz-hair); position: relative; }
|
|
1011
|
+
.bt-psb > span, .tg-psb > span { display: inline-flex; align-items: center; gap: 8px; }
|
|
1012
|
+
.bt-psb::before, .tg-psb::before { content: ""; position: absolute; left: 26px; top: 0; bottom: 0; width: 2px; background: var(--bd-progln); }
|
|
1013
|
+
.bt-prd, .tg-prd { display: flex; align-items: center; padding: 8px 14px; background: var(--bd-row); border-top: 1px solid var(--cz-hair); }
|
|
1014
|
+
.bd-prdb { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; color: var(--cz-ink); min-height: 28px; }
|
|
1015
|
+
.bd-prdb svg { width: 15px; height: 15px; stroke-width: 2; color: var(--cz-ink3); margin-left: auto; }
|
|
1016
|
+
/* a product head's goal dots (PgBoard .gd): Home's source and look (cozy-today.css .hv-gd) */
|
|
1017
|
+
.bd-prdb .n { font-size: 12px; font-weight: 700; color: var(--cz-ink3); margin-left: auto; }
|
|
1018
|
+
.bd-prdb .n + svg { margin-left: 6px; }
|
|
1019
|
+
.bd-gd { display: inline-flex; gap: 3px; margin-left: auto; flex: none; }
|
|
1020
|
+
.bd-gd i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--cz-dot-ok); }
|
|
1021
|
+
.bd-gd i.off { background: var(--cz-dot-late); }
|
|
1022
|
+
.bd-prdb .bd-gd + svg { margin-left: 6px; }
|
|
1023
|
+
.bd-lh .bd-gd { margin: 0 6px 0 0; }
|
|
1024
|
+
.bt-tf { padding-left: 50px; }
|
|
1025
|
+
|
|
1026
|
+
/* By stage (PgKanban): programs as swimlanes, then the product; any column folds to a strip with its count */
|
|
1027
|
+
.bd-kb { display: grid; column-gap: 8px; align-content: start; }
|
|
1028
|
+
.bd-kh { all: unset; box-sizing: border-box; cursor: pointer; grid-row: 1; height: 38px; padding: 8px 10px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--cz-ink); background: var(--cz-well); border-radius: 14px 14px 0 0; min-width: 0; }
|
|
1029
|
+
.bd-kh .l { display: inline-flex; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
1030
|
+
.bd-kh .n { margin-left: auto; font-weight: 600; color: var(--cz-ink3); }
|
|
1031
|
+
.bd-kh svg { width: 14px; height: 14px; color: var(--cz-ink3); flex: none; }
|
|
1032
|
+
.bd-kh:focus-visible, .bd-kstrip:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
1033
|
+
.bd-kstrip { all: unset; box-sizing: border-box; cursor: pointer; background: var(--cz-well); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 10px; gap: 8px; min-height: 120px; color: var(--cz-ink3); font-size: 12px; font-weight: 700; overflow: hidden; }
|
|
1034
|
+
.bd-kstrip b { font-size: 12.5px; font-weight: 800; color: var(--cz-ink2); }
|
|
1035
|
+
.bd-kstrip span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; display: inline-flex; align-items: center; }
|
|
1036
|
+
.bd-kstrip:hover { background: var(--cz-well2); }
|
|
1037
|
+
.bd-kc { background: var(--cz-well); padding: 6px; display: flex; flex-direction: column; gap: 6px; min-height: 24px; min-width: 0; }
|
|
1038
|
+
.bd-kc.end { border-radius: 0 0 14px 14px; padding-bottom: 8px; min-height: 30px; }
|
|
1039
|
+
.bd-kc.drop { box-shadow: inset 0 0 0 2px var(--cz-blue); }
|
|
1040
|
+
.bd-kc .bd-bc { border: 1px solid var(--cz-hair); border-radius: 12px; padding: 9px 10px; box-shadow: 0 1px 2px rgba(42,46,53,.05); }
|
|
1041
|
+
.bd-kc .bd-bc.you { border-color: rgba(72,148,234,.5); }
|
|
1042
|
+
.bd-kc .bd-bc .t { font-size: 13px; line-height: 1.25; }
|
|
1043
|
+
.bd-lh { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin: 6px 0 0; border-radius: 12px; font-size: 14px; font-weight: 800; position: relative; z-index: 2; min-height: 42px; }
|
|
1044
|
+
.bd-lh.pg { background: var(--bd-progbg); } .bd-lh.pd { background: var(--cz-card); border: 1px solid var(--cz-hair); }
|
|
1045
|
+
.bd-lho { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
|
|
1046
|
+
.bd-lh .bd-sp { flex: 1; }
|
|
1047
|
+
.bd-pm2 { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--cz-ink2); white-space: nowrap; }
|
|
1048
|
+
.bd-pm2 b { color: var(--bd-prog); font-weight: 800; }
|
|
1049
|
+
.bd-pm2 .bd-dm { width: 10px; height: 10px; }
|
|
1050
|
+
.bd-pm2.late b { color: var(--cz-late); }
|
|
1051
|
+
.bd-ls { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 6px 12px 2px 50px; font-size: 12px; font-weight: 800; color: var(--cz-ink3); position: relative; z-index: 1; pointer-events: none; }
|
|
1052
|
+
.bd-sfoot { padding-left: 50px; }
|
|
1053
|
+
|
|
1054
|
+
/* List (PgList): Product and Program after the initiative */
|
|
1055
|
+
.bd-ltw.pg .bd-lt { grid-template-columns: minmax(150px, 2fr) 128px 150px 76px minmax(96px, .9fr) minmax(130px, 1.5fr) 54px minmax(110px, 1.3fr) 70px 90px 36px; }
|
|
1056
|
+
.bd-ltw.pg .bd-lt.foot { grid-template-columns: 1fr auto; }
|
|
1057
|
+
.bd-pt { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-weight: 700; font-size: 12.5px; color: var(--cz-ink2); white-space: nowrap; overflow: hidden; }
|
|
1058
|
+
@media (max-width: 1200px) and (min-width: 721px) {
|
|
1059
|
+
.bd-ltw.pg .bd-lt { grid-template-columns: minmax(150px, 1.6fr) 110px 130px minmax(100px, .9fr) minmax(120px, 1fr) 44px 70px 80px 36px; }
|
|
1060
|
+
.bd-ltw.pg .bd-lt > :nth-child(4), .bd-ltw.pg .bd-lt > :nth-child(8) { display: none; }
|
|
1061
|
+
.bd-ltw.pg .bd-lt > :nth-child(2), .bd-ltw.pg .bd-lt > :nth-child(6) { display: inline-flex; }
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
/* the timeline (PgTimeline): one line per initiative; the program row brackets its initiatives and draws its milestones as violet diamonds */
|
|
1065
|
+
.tg-q .tg-body > .tg-r:not(.tg-h) { min-height: 44px; }
|
|
1066
|
+
.tg-q .tg-n.ini2 { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; }
|
|
1067
|
+
.tg-q .tg-n.ini2 .cz-dot { width: 7px; height: 7px; }
|
|
1068
|
+
.tg-pg { background: var(--bd-progbg); }
|
|
1069
|
+
.tg-q .tg-body > .tg-pg { min-height: 56px; }
|
|
1070
|
+
.tg-pgn { flex-direction: row; align-items: center; gap: 6px; padding-right: 6px; }
|
|
1071
|
+
.tg-pgo { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
|
|
1072
|
+
.tg-pgo .tt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
|
|
1073
|
+
.tg-pgo .tt b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
1074
|
+
.tg-pgo .tt small { font-size: 12px; color: var(--cz-ink3); font-weight: 600; }
|
|
1075
|
+
.tg-pgo:hover .tt b { color: var(--bd-prog); }
|
|
1076
|
+
.tg-kid .tg-n, .tg-gr .tg-n { padding-left: 50px; position: relative; }
|
|
1077
|
+
.tg-kid .tg-n::before { content: ""; position: absolute; left: 26px; top: 0; bottom: 0; width: 2px; background: var(--bd-progln); }
|
|
1078
|
+
.tg-kid.last .tg-n::before { bottom: 50%; }
|
|
1079
|
+
.tg-span { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--bd-progsp); z-index: 1; }
|
|
1080
|
+
.tg-pdm { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; transform: rotate(45deg); border-radius: 2px; background: var(--bd-prog); border: 2px solid var(--bd-prog); box-sizing: border-box; z-index: 2; }
|
|
1081
|
+
.tg-pdm.o { background: var(--cz-card); }
|
|
1082
|
+
.tg-pdm.late { border-color: var(--cz-dot-late); background: var(--cz-card); }
|
|
1083
|
+
.tg-clu { all: unset; box-sizing: border-box; position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; z-index: 2; cursor: pointer; transform: rotate(45deg); border-radius: 4px; background: var(--bd-prog); box-shadow: 0 0 0 3px var(--bd-progbg); display: flex; align-items: center; justify-content: center; }
|
|
1084
|
+
.tg-clu.late { background: var(--cz-dot-late); }
|
|
1085
|
+
.tg-clu b { transform: rotate(-45deg); color: var(--cz-card); font-size: 10px; font-weight: 800; }
|
|
1086
|
+
.tg-clu:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 3px; }
|
|
1087
|
+
.tg-pdl { position: absolute; bottom: calc(50% + 10px); transform: translateX(-50%); font-size: 11.5px; font-weight: 800; color: var(--bd-prog); white-space: nowrap; z-index: 3; }
|
|
1088
|
+
.tg-pdl.late { color: var(--cz-late); }
|
|
1089
|
+
.tg-prd .bd-prdb, .tg-psb { grid-column: 1 / -1; }
|
|
1090
|
+
.tg-lgd .k.pdm { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; background: var(--bd-prog); margin-right: 7px; }
|
|
1091
|
+
.tg-lgd .k.dlv { width: 8px; height: 8px; transform: rotate(45deg); border-radius: 2px; border: 2px solid var(--bd-done); background: var(--cz-card); margin-right: 7px; }
|
|
1092
|
+
.tg-lgd .k.td { width: 2px; height: 12px; border-radius: 0; background: var(--cz-ink); opacity: .75; vertical-align: -2px; }
|
|
1093
|
+
/* the next step leads (PgBoard, the frame's nextfirst layer): the output's name is quiet, the next-step line is ink with its part in blue ink */
|
|
1094
|
+
.bt-l .bt-dl .t1 b { color: var(--cz-ink3); font-weight: 600; }
|
|
1095
|
+
.bt-l .bt-dl .t3 { font-size: 12.5px; color: var(--cz-ink); font-weight: 600; }
|
|
1096
|
+
.bt-l .bt-dl .t3 em.nx { color: var(--cz-blueink); font-weight: 800; }
|
|
1097
|
+
/* the committed date under a milestone (PgBoard .eta) */
|
|
1098
|
+
.sc .eta { position: absolute; top: calc(50% + 8px); font-size: 10.5px; font-weight: 700; color: var(--cz-ink2); white-space: nowrap; }
|
|
1099
|
+
.sc .cur .eta { top: 19px; }
|
|
1100
|
+
.sc .eta.late { color: var(--cz-late); }
|
|
1101
|
+
.bd-kb.lanes .bd-kstrip span { margin-top: 58px; }
|
|
1102
|
+
.bd-chipset .tg-lgd { position: static; padding: 0; background: none; font-weight: 600; white-space: nowrap; }
|
|
1103
|
+
/* the phone (BdPhone): a program is a head card with its next milestone; its initiatives and the product heads follow as cards */
|
|
1104
|
+
@media (max-width: 720px) {
|
|
1105
|
+
.bt-pg { display: grid; grid-template-columns: minmax(0, 1fr); border: 0; border-radius: 14px; padding: 8px 6px 10px 4px; min-height: 0; }
|
|
1106
|
+
.bt-pg .bt-spread { display: none; }
|
|
1107
|
+
.bt-pg .bt-dl { grid-area: auto; border: 0; padding: 4px 0 0 46px; }
|
|
1108
|
+
.bt-pg .bt-dl .t3 { display: flex; }
|
|
1109
|
+
.bt-pgn { padding: 0; }
|
|
1110
|
+
.bt-kid .bt-nm, .bt-gr .bt-nm { padding-left: 0; }
|
|
1111
|
+
.bt-kid .bt-nm::before, .bt-psb::before { display: none; }
|
|
1112
|
+
.bt-prd { background: none; border: 0; padding: 6px 2px 0; }
|
|
1113
|
+
.bt-psb { background: none; border: 0; padding: 4px 2px 0; }
|
|
1114
|
+
.bt-tf { padding-left: 4px; }
|
|
1115
|
+
.bd-fold { width: 44px; height: 44px; }
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
/* programs first on every span (PgTimeline's rule): the long spans' program row brackets its initiatives' bars and carries its milestones */
|
|
1119
|
+
.tg-pms { position: relative; flex: none; height: 40px; margin-bottom: -6px; }
|
|
1120
|
+
.tg-y .tg-body > .tg-pg:first-of-type .tg-stack { padding-top: 30px; }
|
|
1121
|
+
.tg-pms .tg-pdm, .tg-pms .tg-clu, .tg-pms .tg-span { top: 72%; }
|
|
1122
|
+
.tg-pms .tg-pdl { bottom: calc(28% + 10px); }
|
|
1123
|
+
.tg-y .tg-pg .tg-yb > b { background: color-mix(in srgb, var(--bd-prog) 40%, var(--cz-card)); }
|
|
1124
|
+
.tg-5.tg-pg { min-height: 96px; }
|
|
1125
|
+
.tg-5 .tg-pms { position: absolute; left: 0; right: 0; top: 52px; height: 40px; margin: 0; }
|
|
1126
|
+
.tg-phase.pg { background: color-mix(in srgb, var(--bd-prog) 18%, var(--cz-card)); color: var(--bd-prog); }
|
|
1127
|
+
.tg-phase.pg small { color: var(--cz-ink2); }
|
|
1128
|
+
.sp-pg { background: var(--bd-progbg); min-height: 56px; }
|
|
1129
|
+
.sp-pg .sp-n { flex-direction: row; align-items: center; justify-content: flex-start; }
|
|
1130
|
+
.sp-pg .sp-t { position: relative; }
|
|
1131
|
+
.sp-r.tg-prd, .sp .tg-psb { display: flex; }
|
|
1132
|
+
.sp .tg-prd .bd-prdb { flex: 1; }
|
|
1133
|
+
.bt-gmore { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; padding: 9px 14px 9px 50px; background: var(--bd-row); border-top: 1px solid var(--cz-hair); font: 800 12px var(--cz-sans); color: var(--cz-ink3); }
|
|
1134
|
+
.bt-gmore:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
|
|
1135
|
+
.bt-gmore svg { width: 14px; height: 14px; }
|
|
@@ -37,9 +37,11 @@ export function cantRead({ what = 'This', why = '', since = '', retry = true, so
|
|
|
37
37
|
return `<div class="ev-warn ev-cant" role="alert"><p><b>${esc(what)} could not be read.</b>${why ? ' It answered “' + esc(why) + '”.' : ''}${since ? ' ' + esc(since) : ''}</p>`
|
|
38
38
|
+ `<div class="ev-acts">${retry ? '<button type="button" class="ev-btn sm" data-ev-retry>Read again</button>' : ''}${sources ? '<button type="button" class="ev-btn sm ghost" data-ev-sources>Sources</button>' : ''}</div></div>`;
|
|
39
39
|
}
|
|
40
|
+
/* shell A (canvas XvAFailed): the summary card says it could not be opened and why; Find it is the one primary, Try again a quiet icon beside it */
|
|
40
41
|
export function failedItem({ what = 'This document', why = '', retry = true, find = '' } = {}) {
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
const again = retry ? '<button type="button" class="czs-ib" data-ev-retry aria-label="Try again" title="Try again"><svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 11a8 8 0 0 0-14.6-4.5M4 13a8 8 0 0 0 14.6 4.5M5 3v4h4M19 21v-4h-4"/></svg></button>' : '';
|
|
43
|
+
return `<div class="czs-sum ev-fail" role="alert"><div class="czs-line warn"><span class="czs-dot" aria-hidden="true"></span><span>Could not be opened</span></div><p class="czs-p"><b>${esc(what)} could not be opened.</b>${why ? ' ' + esc(why) : ''}</p>`
|
|
44
|
+
+ (find || again ? `<div class="czs-acts">${find ? `<button type="button" class="czs-pri" data-ev-find="${esc(find)}">Find it</button>` : ''}${again}</div>` : '') + '</div>';
|
|
43
45
|
}
|
|
44
46
|
export const allClear = (text = 'All clear', right = '') => `<p class="ev-clear"><i class="ev-dot ok" aria-hidden="true"></i>${esc(text)}${right ? `<span class="ev-sub ev-right">${esc(right)}</span>` : ''}</p>`;
|
|
45
47
|
export const moreRow = (shown, total, step = 25) => (total > shown ? `<div class="ev-more"><span class="ev-small ev-mut">Showing ${shown} of ${total}</span><button type="button" class="ev-btn sm" data-ev-more>Show ${Math.min(step, total - shown)} more</button></div>` : '');
|