create-pmos 0.400.0 → 0.402.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 +226 -0
- package/workspace/board-shot.js +54 -0
- package/workspace/briefing-premium-board-test.js +23 -16
- package/workspace/briefing-premium-calendar-test.js +6 -3
- package/workspace/briefing-premium-sources-test.js +17 -10
- package/workspace/briefing-premium-test.js +41 -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/program-ascent.js +101 -0
- package/workspace/guide/home.md +15 -8
- package/workspace/guide/index.md +1 -0
- package/workspace/guide/programs.md +37 -0
- package/workspace/lib/briefing-premium-products.js +4 -4
- package/workspace/lib/briefing-premium.js +2 -2
- package/workspace/lib/core-docs.js +2 -2
- package/workspace/lib/programs.js +129 -0
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-briefing-premium.js +1 -1
- 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 +1 -1
- package/workspace/premium-phone-card-test.js +6 -1
- package/workspace/premium-vw-cal-test.js +10 -4
- package/workspace/program-panel-test.js +143 -0
- package/workspace/public/pm/bd-acts.js +23 -14
- package/workspace/public/pm/bd-asks.js +89 -23
- package/workspace/public/pm/bd-prog-panel.js +451 -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 +226 -9
- package/workspace/public/pm/cozy-home.css +27 -1
- package/workspace/public/pm/cozy-panel.css +178 -0
- package/workspace/public/pm/cozy-today.css +190 -3
- package/workspace/public/pm/home-app.js +93 -26
- package/workspace/public/pm/home-chat.js +35 -32
- package/workspace/public/pm/home-data.js +8 -2
- package/workspace/public/pm/home-ini.js +1 -1
- package/workspace/public/pm/home-list.js +100 -24
- package/workspace/public/pm/home-today.js +138 -61
- package/workspace/public/pm/home-work.js +1 -3
- package/workspace/public/pm/premium-board.js +225 -57
- package/workspace/public/pm/premium-vw-item.css +6 -0
- package/workspace/public/pm/program-model.js +192 -0
- package/workspace/public/premium-board.html +4 -1
- package/workspace/test-files.json +1 -0
- package/workspace/test-lists/board-programs.json +9 -0
- package/workspace/test-lists/program-hierarchy.json +11 -0
- package/workspace/test-lists/program-panel.json +9 -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>`;
|
|
@@ -214,9 +214,15 @@ body.bd-page main.bd-main { position: relative; max-width: none; margin: 16px; p
|
|
|
214
214
|
.bd-tr em { font-style: normal; color: var(--cz-ink3); }
|
|
215
215
|
|
|
216
216
|
/* ── the side panel: initiative, ticket, timeline (AgBoardPanel, AgBoardTicket, AgBoardTimelinePanel) ── */
|
|
217
|
-
|
|
217
|
+
/* B1 (canvas XnAgBoardPanel): every desktop side panel opens at 60 % of the width, and its grip sets 50 to 70 % (pm/bd-prog-panel.js keeps it as --bd-pkw) */
|
|
218
|
+
.bd-peek { position: fixed; z-index: 45; top: 16px; right: 16px; bottom: 16px; width: var(--bd-pkw, 60vw); 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
219
|
.bd-peek[hidden] { display: none; }
|
|
219
|
-
.
|
|
220
|
+
.pk-grip { display: none; }
|
|
221
|
+
body.pk-on .pk-grip { display: block; position: fixed; z-index: 46; top: 44px; bottom: 44px; right: calc(16px + var(--bd-pkw, 60vw) - 6px); width: 12px; cursor: col-resize; touch-action: none; }
|
|
222
|
+
body.pk-on .pk-grip::before { content: ""; position: absolute; left: 4px; top: 50%; width: 4px; height: 44px; margin-top: -22px; border-radius: 2px; background: var(--cz-hair); opacity: 0; transition: opacity .15s; }
|
|
223
|
+
body.pk-on .pk-grip.on::before, body.pk-on .pk-grip:focus-visible::before { opacity: 1; background: var(--bd-pass); }
|
|
224
|
+
body.pk-on .pk-grip:focus-visible { outline: 0; }
|
|
225
|
+
@media (hover: hover) { body.pk-on .pk-grip:hover::before { opacity: 1; } }
|
|
220
226
|
.pk-h { padding: 20px 16px 6px 20px; display: flex; gap: 8px; align-items: flex-start; position: relative; }
|
|
221
227
|
/* the tools sit on the eyebrow's line; the status line under the title runs the panel's full width (AgBoardPanel) */
|
|
222
228
|
.pk-h > .pk-tools { position: absolute; top: 14px; right: 16px; }
|
|
@@ -236,6 +242,18 @@ body.bd-page main.bd-main { position: relative; max-width: none; margin: 16px; p
|
|
|
236
242
|
.pk-tools { display: flex; gap: 2px; flex: none; }
|
|
237
243
|
.pk-tools .bd-ib { width: 36px; height: 36px; }
|
|
238
244
|
.pk-tools svg { width: 17px; height: 17px; }
|
|
245
|
+
/* 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) */
|
|
246
|
+
@media (min-width: 721px) {
|
|
247
|
+
.pk-eye { color: var(--cz-ink3); font-weight: 800; }
|
|
248
|
+
.pk-h h2 { font-size: 20px; margin-top: 3px; }
|
|
249
|
+
.bd-peek:not(.pp-peek) .pk-h > .pk-tools { top: 20px; }
|
|
250
|
+
.bd-peek:not(.pp-peek) .pk-tools .bd-ib { width: 32px; height: 32px; }
|
|
251
|
+
.bd-peek:not(.pp-peek) .pk-tools svg { width: 16px; height: 16px; }
|
|
252
|
+
}
|
|
253
|
+
/* ⋯ is drawn with a heavier stroke, as every frame draws it (stroke-width 3), so its dots read at 16 px */
|
|
254
|
+
.bd-peek .pk-tools svg path[d^="M5 12h.01"] { stroke-width: 3; }
|
|
255
|
+
/* the title takes the focus when a panel opens, for a screen reader; it is not a control, so it draws no ring */
|
|
256
|
+
.bd-peek h2[tabindex="-1"]:focus, .bd-peek h2[tabindex="-1"]:focus-visible { outline: 0; }
|
|
239
257
|
.pk-b { flex: 1; min-height: 0; overflow: auto; padding: 4px 20px 16px; display: flex; flex-direction: column; gap: 14px; }
|
|
240
258
|
.pk-lad { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); height: 32px; margin-top: -4px; } /* right under the status line (AgBoardPanel) */
|
|
241
259
|
.pk-lad .ln { position: absolute; left: 6.25%; right: 6.25%; top: 9px; height: 2px; background: var(--bd-rail); }
|
|
@@ -300,7 +318,7 @@ button.gi:hover .n { color: var(--cz-blueink); }
|
|
|
300
318
|
.pk-ask .in .bd-ib.solid { width: 32px; height: 32px; }
|
|
301
319
|
.pk-ask .in .bd-ib svg { width: 16px; height: 16px; }
|
|
302
320
|
.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; }
|
|
321
|
+
.pk-ask .ft .sp { flex: 1; border: 0; border-radius: 0; background: none; } /* a spacer: not the sprint table's .sp box */
|
|
304
322
|
.pk-ask .ft .jr { display: inline-flex; align-items: center; gap: 4px; }
|
|
305
323
|
.pk-ask .ft .jr svg { width: 11px; height: 11px; }
|
|
306
324
|
/* the timeline panel (AgBoardTimelinePanel) */
|
|
@@ -364,7 +382,12 @@ button.tg-n:hover b { color: var(--cz-blueink); }
|
|
|
364
382
|
.tg-bar > b { display: block; height: 100%; border-radius: 6px; background: var(--bd-done); }
|
|
365
383
|
.tg-bar.t-risk { background: color-mix(in srgb, var(--cz-dot-risk) 30%, var(--cz-card)); }
|
|
366
384
|
.tg-bar.t-you { background: color-mix(in srgb, var(--cz-blue) 22%, var(--cz-card)); }
|
|
367
|
-
|
|
385
|
+
/* the committed end (PgTimeline .tdm): an open ◇ for Deliver or Evaluate, its date right of it; filled blue while the initiative is at it */
|
|
386
|
+
.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; }
|
|
387
|
+
.tg-end.ms { background: var(--cz-blue); border-color: var(--cz-blue); }
|
|
388
|
+
.tg-end.late { border-color: var(--cz-dot-late); }
|
|
389
|
+
.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; }
|
|
390
|
+
.tg-endl.l { transform: translate(calc(-100% - 11px), -50%); }
|
|
368
391
|
.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
392
|
.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
393
|
.tg-fc.solo { border-color: var(--cz-blue); }
|
|
@@ -445,7 +468,7 @@ button.tg-n:hover b { color: var(--cz-blueink); }
|
|
|
445
468
|
.bt-r { grid-template-columns: 180px 400px minmax(0, 1fr); }
|
|
446
469
|
.bt-cells { grid-template-columns: repeat(8, 50px); }
|
|
447
470
|
.bt-h .bt-cells > div { font-size: 10.5px; }
|
|
448
|
-
.bd-peek { width:
|
|
471
|
+
.bd-peek { width: var(--bd-pkw, 60vw); }
|
|
449
472
|
.tg-r, .tg-ax { grid-template-columns: 180px minmax(0, 1fr); }
|
|
450
473
|
}
|
|
451
474
|
|
|
@@ -506,6 +529,7 @@ button.tg-n:hover b { color: var(--cz-blueink); }
|
|
|
506
529
|
/* the panel as a bottom sheet */
|
|
507
530
|
.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
531
|
.bd-peek::before { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--cz-hair); }
|
|
532
|
+
body.pk-on .pk-grip { display: none; }
|
|
509
533
|
.pk-h { padding-top: 22px; }
|
|
510
534
|
body.pk-on main.bd-main::after { content: ""; position: fixed; inset: 0; z-index: 44; background: rgba(42,46,53,.32); }
|
|
511
535
|
body.pk-on .cz-fabw { display: none; }
|
|
@@ -776,9 +800,7 @@ a.bd-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration:
|
|
|
776
800
|
.bd-gr { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--cz-hair); }
|
|
777
801
|
.bd-gr .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; }
|
|
778
802
|
.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; }
|
|
803
|
+
/* the side panel's widths and its new parts: New initiative, a document and the wide panels take the one width above (B1) */
|
|
782
804
|
.pk-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--cz-ink3); }
|
|
783
805
|
.pk-dg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
|
|
784
806
|
.pk-dg .bd-box { padding: 10px 12px; gap: 2px; }
|
|
@@ -817,6 +839,7 @@ button.pk-jt:focus-visible { outline: 2px solid var(--cz-blue); outline-offset:
|
|
|
817
839
|
.bd-lt.foot { grid-template-columns: 1fr auto; min-height: 44px; background: var(--bd-row); }
|
|
818
840
|
.bd-lth { all: unset; cursor: pointer; white-space: nowrap; }
|
|
819
841
|
.bd-lth.on, .bd-lth:hover { color: var(--cz-ink); }
|
|
842
|
+
.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
843
|
.bd-lth:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 4px; }
|
|
821
844
|
.bd-ltn { all: unset; cursor: pointer; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
822
845
|
.bd-ltn b { font-weight: 800; }
|
|
@@ -842,6 +865,13 @@ button.pk-jt:focus-visible { outline: 2px solid var(--cz-blue); outline-offset:
|
|
|
842
865
|
.bd-bc .t { font-size: 13.5px; font-weight: 800; color: var(--cz-ink); }
|
|
843
866
|
.bd-bc .s { font-size: 12px; }
|
|
844
867
|
.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; }
|
|
868
|
+
.bd-bc .f .nx { color: var(--cz-blueink); font-weight: 800; }
|
|
869
|
+
/* a phone's By stage keeps the swimlane order inside each step (PgKanban): a small program or product label over its cards */
|
|
870
|
+
.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); }
|
|
871
|
+
.bd-scol .bd-sl.pg { color: var(--bd-prog); }
|
|
872
|
+
.bd-scol .bd-sl .bd-ti, .bd-scol .bd-sl .bd-pti { width: 20px; height: 20px; border-radius: 7px; font-size: 9px; }
|
|
873
|
+
.bd-scol .bd-sl .bd-pti svg { width: 12px; height: 12px; }
|
|
874
|
+
.bd-sempty { margin: 0; padding: 10px 14px; border-radius: 16px; background: var(--bd-row); font-size: 12.5px; color: var(--cz-ink3); }
|
|
845
875
|
.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
876
|
.bd-strip span { writing-mode: vertical-rl; font-size: 12.5px; font-weight: 800; color: var(--cz-ink2); white-space: nowrap; }
|
|
847
877
|
.bd-strip:hover { background: var(--cz-well2); }
|
|
@@ -913,7 +943,6 @@ button.sp-n:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -
|
|
|
913
943
|
@media (max-width: 720px) {
|
|
914
944
|
.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
945
|
.bd-mi, .bd-sp1 { min-height: 44px; }
|
|
916
|
-
.bd-peek.pk-new, .bd-peek.pk-doc, .bd-peek.pk-wide { width: auto; }
|
|
917
946
|
.bd-ptabs { display: flex !important; }
|
|
918
947
|
.bd-scols.ph { flex-direction: column; overflow: visible; }
|
|
919
948
|
.bd-scols.ph .bd-scol { min-height: 0; min-width: 0; }
|
|
@@ -939,3 +968,191 @@ button.sp-n:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -
|
|
|
939
968
|
.bd-finp:focus-within { box-shadow: 0 0 0 2px var(--cz-blue); }
|
|
940
969
|
.bd-scols.ph { align-items: stretch; }
|
|
941
970
|
body:has(#bdPop.sheet:not([hidden])) .cz-fabw { display: none; }
|
|
971
|
+
|
|
972
|
+
/* the program panel's parts (PgProgram) */
|
|
973
|
+
.pg-ms .gi.late .r, .pg-ms .gi.late .n { color: var(--cz-red); }
|
|
974
|
+
.pg-ms .k.pgd { border-radius: 2px; transform: rotate(45deg); width: 8px; height: 8px; background: var(--cz-blue); }
|
|
975
|
+
.pg-ms .gi.done .k.pgd { background: var(--bd-done); }
|
|
976
|
+
.pg-tk { display: flex; align-items: center; gap: 8px; }
|
|
977
|
+
.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; }
|
|
978
|
+
.pg-ck:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
979
|
+
.pg-tree .lbl { margin-top: 10px; }
|
|
980
|
+
|
|
981
|
+
/* ── programs (initiative program-hierarchy, P4 P6 P8; canvas PgBoard, PgBoardProduct, PgKanban, PgTimeline, PgList) ──
|
|
982
|
+
* Programs first, then the product; every group folds. The program's colour is the frames' violet (--bd-prog, --bd-progbg); a product's tile
|
|
983
|
+
* 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. */
|
|
984
|
+
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); }
|
|
985
|
+
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); }
|
|
986
|
+
@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); } }
|
|
987
|
+
.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; }
|
|
988
|
+
.bd-ti.s { width: 20px; height: 20px; border-radius: 7px; font-size: 9px; }
|
|
989
|
+
.bd-ti.tn0 { background: var(--cz-bluebg); color: var(--cz-blueink); } .bd-ti.tn1 { background: var(--cz-c-f4eee6); color: var(--cz-c-7a5a2e); }
|
|
990
|
+
.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); }
|
|
991
|
+
.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; }
|
|
992
|
+
.bd-pti svg { width: 14px; height: 14px; }
|
|
993
|
+
.bd-pti.s { width: 20px; height: 20px; border-radius: 7px; background: var(--bd-progbg); } .bd-pti.s svg { width: 12px; height: 12px; }
|
|
994
|
+
.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; }
|
|
995
|
+
.bd-pgi svg { width: 12px; height: 12px; stroke-width: 2; }
|
|
996
|
+
.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; }
|
|
997
|
+
.bd-dm { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; background: var(--bd-prog); display: inline-block; flex: none; }
|
|
998
|
+
.bd-dm.o { background: transparent; border: 2px solid var(--bd-prog); width: 7px; height: 7px; margin-right: 4px; }
|
|
999
|
+
.bd-rdy { display: inline-flex; gap: 3px; margin-left: 6px; }
|
|
1000
|
+
.bd-rdy i { display: block; width: 6px; height: 6px; border-radius: 1px; transform: rotate(45deg); background: var(--bd-plan); }
|
|
1001
|
+
.bd-rdy i.on { background: var(--bd-prog); }
|
|
1002
|
+
.bd-fold { color: var(--cz-ink3); }
|
|
1003
|
+
.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; }
|
|
1004
|
+
/* the grouping control in the toolbar (PgBoardProduct: "By product" on in violet) */
|
|
1005
|
+
.bd-grpw2 { position: relative; display: inline-flex; align-items: center; }
|
|
1006
|
+
.bd-grpw2[hidden] { display: none; }
|
|
1007
|
+
.bd-grp.on { background: var(--bd-progbg); border-color: transparent; color: var(--bd-prog); font-weight: 700; }
|
|
1008
|
+
.bd-grp.on svg { width: 13px; height: 13px; stroke-width: 2; }
|
|
1009
|
+
.bd-grpw2 .bd-grpm { left: auto; right: 0; }
|
|
1010
|
+
.bd-grpw2 .bd-grpm button[aria-checked="true"] { color: var(--bd-prog); }
|
|
1011
|
+
|
|
1012
|
+
/* the stage track (PgBoard): the program's band row, its product sub-rows and initiatives, then each product's head and rows */
|
|
1013
|
+
.bt-pg { background: var(--bd-progbg); border-top: 1px solid var(--cz-hair); min-height: 58px; }
|
|
1014
|
+
.bt-pgn { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 14px; min-width: 0; }
|
|
1015
|
+
.bt-pgo { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
|
|
1016
|
+
.bt-pgo .tt { min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
|
|
1017
|
+
.bt-pgo .tt b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cz-ink); }
|
|
1018
|
+
.bt-pgo .tt .m { font-size: 11.5px; color: var(--cz-ink2); font-weight: 600; }
|
|
1019
|
+
.bt-pgo:hover .tt b { color: var(--bd-prog); }
|
|
1020
|
+
.bt-spread { position: relative; }
|
|
1021
|
+
.bd-spb { position: absolute; top: 50%; height: 10px; margin-top: -5px; border-radius: 5px; background: var(--bd-progsp); }
|
|
1022
|
+
.bd-spl { position: absolute; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; color: var(--bd-prog); white-space: nowrap; }
|
|
1023
|
+
.bt-pg .bt-dl { border-left-color: var(--bd-progln); }
|
|
1024
|
+
.bd-pm { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--cz-ink2); white-space: nowrap; overflow: hidden; }
|
|
1025
|
+
.bd-pm b { color: var(--cz-ink); font-weight: 800; }
|
|
1026
|
+
.bd-pm.late b, .bd-pm.late { color: var(--cz-late); }
|
|
1027
|
+
.bd-pm.q { color: var(--cz-ink3); }
|
|
1028
|
+
.bt-pg .bt-dl .t3 { display: flex; align-items: center; gap: 2px; }
|
|
1029
|
+
.bt-kid .bt-nm, .bt-gr .bt-nm { padding-left: 50px; position: relative; }
|
|
1030
|
+
.bt-kid .bt-nm::before { content: ""; position: absolute; left: 26px; top: 0; bottom: 0; width: 2px; background: var(--bd-progln); }
|
|
1031
|
+
.bt-kid.last .bt-nm::before { bottom: 50%; }
|
|
1032
|
+
.bt-nm b .bd-pgi { vertical-align: -4px; }
|
|
1033
|
+
.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; }
|
|
1034
|
+
.bt-psb > span, .tg-psb > span { display: inline-flex; align-items: center; gap: 8px; }
|
|
1035
|
+
.bt-psb::before, .tg-psb::before { content: ""; position: absolute; left: 26px; top: 0; bottom: 0; width: 2px; background: var(--bd-progln); }
|
|
1036
|
+
.bt-prd, .tg-prd { display: flex; align-items: center; padding: 8px 14px; background: var(--bd-row); border-top: 1px solid var(--cz-hair); }
|
|
1037
|
+
.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; }
|
|
1038
|
+
.bd-prdb svg { width: 15px; height: 15px; stroke-width: 2; color: var(--cz-ink3); margin-left: auto; }
|
|
1039
|
+
/* a product head's goal dots (PgBoard .gd): Home's source and look (cozy-today.css .hv-gd) */
|
|
1040
|
+
.bd-prdb .n { font-size: 12px; font-weight: 700; color: var(--cz-ink3); margin-left: auto; }
|
|
1041
|
+
.bd-prdb .n + svg { margin-left: 6px; }
|
|
1042
|
+
.bd-gd { display: inline-flex; gap: 3px; margin-left: auto; flex: none; }
|
|
1043
|
+
.bd-gd i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--cz-dot-ok); }
|
|
1044
|
+
.bd-gd i.off { background: var(--cz-dot-late); }
|
|
1045
|
+
.bd-prdb .bd-gd + svg { margin-left: 6px; }
|
|
1046
|
+
.bd-lh .bd-gd { margin: 0 6px 0 0; }
|
|
1047
|
+
.bt-tf { padding-left: 50px; }
|
|
1048
|
+
|
|
1049
|
+
/* By stage (PgKanban): programs as swimlanes, then the product; any column folds to a strip with its count */
|
|
1050
|
+
.bd-kb { display: grid; column-gap: 8px; align-content: start; }
|
|
1051
|
+
.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; }
|
|
1052
|
+
.bd-kh .l { display: inline-flex; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
1053
|
+
.bd-kh .n { margin-left: auto; font-weight: 600; color: var(--cz-ink3); }
|
|
1054
|
+
.bd-kh svg { width: 14px; height: 14px; color: var(--cz-ink3); flex: none; }
|
|
1055
|
+
.bd-kh:focus-visible, .bd-kstrip:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
1056
|
+
.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; }
|
|
1057
|
+
.bd-kstrip b { font-size: 12.5px; font-weight: 800; color: var(--cz-ink2); }
|
|
1058
|
+
.bd-kstrip span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; display: inline-flex; align-items: center; }
|
|
1059
|
+
.bd-kstrip:hover { background: var(--cz-well2); }
|
|
1060
|
+
.bd-kc { background: var(--cz-well); padding: 6px; display: flex; flex-direction: column; gap: 6px; min-height: 24px; min-width: 0; }
|
|
1061
|
+
.bd-kc.end { border-radius: 0 0 14px 14px; padding-bottom: 8px; min-height: 30px; }
|
|
1062
|
+
.bd-kc.drop { box-shadow: inset 0 0 0 2px var(--cz-blue); }
|
|
1063
|
+
.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); }
|
|
1064
|
+
.bd-kc .bd-bc.you { border-color: rgba(72,148,234,.5); }
|
|
1065
|
+
.bd-kc .bd-bc .t { font-size: 13px; line-height: 1.25; }
|
|
1066
|
+
.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; }
|
|
1067
|
+
.bd-lh.pg { background: var(--bd-progbg); } .bd-lh.pd { background: var(--cz-card); border: 1px solid var(--cz-hair); }
|
|
1068
|
+
.bd-lho { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
|
|
1069
|
+
.bd-lh .bd-sp { flex: 1; }
|
|
1070
|
+
.bd-pm2 { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--cz-ink2); white-space: nowrap; }
|
|
1071
|
+
.bd-pm2 b { color: var(--bd-prog); font-weight: 800; }
|
|
1072
|
+
.bd-pm2 .bd-dm { width: 10px; height: 10px; }
|
|
1073
|
+
.bd-pm2.late b { color: var(--cz-late); }
|
|
1074
|
+
.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; }
|
|
1075
|
+
.bd-sfoot { padding-left: 50px; }
|
|
1076
|
+
|
|
1077
|
+
/* List (PgList): Product and Program after the initiative */
|
|
1078
|
+
.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; }
|
|
1079
|
+
.bd-ltw.pg .bd-lt.foot { grid-template-columns: 1fr auto; }
|
|
1080
|
+
.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; }
|
|
1081
|
+
@media (max-width: 1200px) and (min-width: 721px) {
|
|
1082
|
+
.bd-ltw.pg .bd-lt { grid-template-columns: minmax(150px, 1.6fr) 110px 130px minmax(100px, .9fr) minmax(120px, 1fr) 44px 70px 80px 36px; }
|
|
1083
|
+
.bd-ltw.pg .bd-lt > :nth-child(4), .bd-ltw.pg .bd-lt > :nth-child(8) { display: none; }
|
|
1084
|
+
.bd-ltw.pg .bd-lt > :nth-child(2), .bd-ltw.pg .bd-lt > :nth-child(6) { display: inline-flex; }
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
/* the timeline (PgTimeline): one line per initiative; the program row brackets its initiatives and draws its milestones as violet diamonds */
|
|
1088
|
+
.tg-q .tg-body > .tg-r:not(.tg-h) { min-height: 44px; }
|
|
1089
|
+
.tg-q .tg-n.ini2 { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; }
|
|
1090
|
+
.tg-q .tg-n.ini2 .cz-dot { width: 7px; height: 7px; }
|
|
1091
|
+
.tg-pg { background: var(--bd-progbg); }
|
|
1092
|
+
.tg-q .tg-body > .tg-pg { min-height: 56px; }
|
|
1093
|
+
.tg-pgn { flex-direction: row; align-items: center; gap: 6px; padding-right: 6px; }
|
|
1094
|
+
.tg-pgo { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
|
|
1095
|
+
.tg-pgo .tt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
|
|
1096
|
+
.tg-pgo .tt b { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
1097
|
+
.tg-pgo .tt small { font-size: 12px; color: var(--cz-ink3); font-weight: 600; }
|
|
1098
|
+
.tg-pgo:hover .tt b { color: var(--bd-prog); }
|
|
1099
|
+
.tg-kid .tg-n, .tg-gr .tg-n { padding-left: 50px; position: relative; }
|
|
1100
|
+
.tg-kid .tg-n::before { content: ""; position: absolute; left: 26px; top: 0; bottom: 0; width: 2px; background: var(--bd-progln); }
|
|
1101
|
+
.tg-kid.last .tg-n::before { bottom: 50%; }
|
|
1102
|
+
.tg-span { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--bd-progsp); z-index: 1; }
|
|
1103
|
+
.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; }
|
|
1104
|
+
.tg-pdm.o { background: var(--cz-card); }
|
|
1105
|
+
.tg-pdm.late { border-color: var(--cz-dot-late); background: var(--cz-card); }
|
|
1106
|
+
.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; }
|
|
1107
|
+
.tg-clu.late { background: var(--cz-dot-late); }
|
|
1108
|
+
.tg-clu b { transform: rotate(-45deg); color: var(--cz-card); font-size: 10px; font-weight: 800; }
|
|
1109
|
+
.tg-clu:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 3px; }
|
|
1110
|
+
.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; }
|
|
1111
|
+
.tg-pdl.late { color: var(--cz-late); }
|
|
1112
|
+
.tg-prd .bd-prdb, .tg-psb { grid-column: 1 / -1; }
|
|
1113
|
+
.tg-lgd .k.pdm { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; background: var(--bd-prog); margin-right: 7px; }
|
|
1114
|
+
.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; }
|
|
1115
|
+
.tg-lgd .k.td { width: 2px; height: 12px; border-radius: 0; background: var(--cz-ink); opacity: .75; vertical-align: -2px; }
|
|
1116
|
+
/* 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 */
|
|
1117
|
+
.bt-l .bt-dl .t1 b { color: var(--cz-ink3); font-weight: 600; }
|
|
1118
|
+
.bt-l .bt-dl .t3 { font-size: 12.5px; color: var(--cz-ink); font-weight: 600; }
|
|
1119
|
+
.bt-l .bt-dl .t3 em.nx { color: var(--cz-blueink); font-weight: 800; }
|
|
1120
|
+
/* the committed date under a milestone (PgBoard .eta) */
|
|
1121
|
+
.sc .eta { position: absolute; top: calc(50% + 8px); font-size: 10.5px; font-weight: 700; color: var(--cz-ink2); white-space: nowrap; }
|
|
1122
|
+
.sc .cur .eta { top: 19px; }
|
|
1123
|
+
.sc .eta.late { color: var(--cz-late); }
|
|
1124
|
+
.bd-kb.lanes .bd-kstrip span { margin-top: 58px; }
|
|
1125
|
+
.bd-chipset .tg-lgd { position: static; padding: 0; background: none; font-weight: 600; white-space: nowrap; }
|
|
1126
|
+
/* the phone (BdPhone): a program is a head card with its next milestone; its initiatives and the product heads follow as cards */
|
|
1127
|
+
@media (max-width: 720px) {
|
|
1128
|
+
.bt-pg { display: grid; grid-template-columns: minmax(0, 1fr); border: 0; border-radius: 14px; padding: 8px 6px 10px 4px; min-height: 0; }
|
|
1129
|
+
.bt-pg .bt-spread { display: none; }
|
|
1130
|
+
.bt-pg .bt-dl { grid-area: auto; border: 0; padding: 4px 0 0 46px; }
|
|
1131
|
+
.bt-pg .bt-dl .t3 { display: flex; }
|
|
1132
|
+
.bt-pgn { padding: 0; }
|
|
1133
|
+
.bt-kid .bt-nm, .bt-gr .bt-nm { padding-left: 0; }
|
|
1134
|
+
.bt-kid .bt-nm::before, .bt-psb::before { display: none; }
|
|
1135
|
+
.bt-prd { background: none; border: 0; padding: 6px 2px 0; }
|
|
1136
|
+
.bt-psb { background: none; border: 0; padding: 4px 2px 0; }
|
|
1137
|
+
.bt-tf { padding-left: 4px; }
|
|
1138
|
+
.bd-fold { width: 44px; height: 44px; }
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
/* programs first on every span (PgTimeline's rule): the long spans' program row brackets its initiatives' bars and carries its milestones */
|
|
1142
|
+
.tg-pms { position: relative; flex: none; height: 40px; margin-bottom: -6px; }
|
|
1143
|
+
.tg-y .tg-body > .tg-pg:first-of-type .tg-stack { padding-top: 30px; }
|
|
1144
|
+
.tg-pms .tg-pdm, .tg-pms .tg-clu, .tg-pms .tg-span { top: 72%; }
|
|
1145
|
+
.tg-pms .tg-pdl { bottom: calc(28% + 10px); }
|
|
1146
|
+
.tg-y .tg-pg .tg-yb > b { background: color-mix(in srgb, var(--bd-prog) 40%, var(--cz-card)); }
|
|
1147
|
+
.tg-5.tg-pg { min-height: 96px; }
|
|
1148
|
+
.tg-5 .tg-pms { position: absolute; left: 0; right: 0; top: 52px; height: 40px; margin: 0; }
|
|
1149
|
+
.tg-phase.pg { background: color-mix(in srgb, var(--bd-prog) 18%, var(--cz-card)); color: var(--bd-prog); }
|
|
1150
|
+
.tg-phase.pg small { color: var(--cz-ink2); }
|
|
1151
|
+
.sp-pg { background: var(--bd-progbg); min-height: 56px; }
|
|
1152
|
+
.sp-pg .sp-n { flex-direction: row; align-items: center; justify-content: flex-start; }
|
|
1153
|
+
.sp-pg .sp-t { position: relative; }
|
|
1154
|
+
.sp-r.tg-prd, .sp .tg-psb { display: flex; }
|
|
1155
|
+
.sp .tg-prd .bd-prdb { flex: 1; }
|
|
1156
|
+
.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); }
|
|
1157
|
+
.bt-gmore:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: -2px; }
|
|
1158
|
+
.bt-gmore svg { width: 14px; height: 14px; }
|
|
@@ -16,6 +16,15 @@ body.cz-home { min-height: 100vh; overflow: hidden; }
|
|
|
16
16
|
.hm-vw:empty { display: none; }
|
|
17
17
|
/* the chat keeps at least 360px beside the list and the Viewer: on a narrower desktop the Viewer gives up width first, down to 380px */
|
|
18
18
|
@media (min-width: 761px) { .hm-vw .cz-vw { flex-basis: min(500px, max(380px, calc(100vw - 808px))); width: min(500px, max(380px, calc(100vw - 808px))); } }
|
|
19
|
+
/* Home A + C on a desktop (HvACDesk): no desk card around the columns. The list (its well) and the chat (a white card) sit on the page's
|
|
20
|
+
* ground, 16px apart, the list 360px wide (cozy-today.css) */
|
|
21
|
+
@media (min-width: 761px) {
|
|
22
|
+
body.cz-home .hm-desk { inset: 0; padding: 16px; gap: 16px; background: none; box-shadow: none; border-radius: 0; }
|
|
23
|
+
body.cz-home .hm-chat { background: var(--cz-card); border-radius: 24px; padding: 16px 24px 20px; box-shadow: 0 10px 30px -24px var(--cz-c-9da3ac); }
|
|
24
|
+
body.cz-home .hm-vw .cz-vw { flex-basis: min(500px, max(380px, calc(100vw - 852px))); width: min(500px, max(380px, calc(100vw - 852px))); }
|
|
25
|
+
body.cz-home.hm-folded .hm-desk { padding-left: 56px; }
|
|
26
|
+
body.cz-home .hm-reopen { top: 12px; right: 12px; }
|
|
27
|
+
}
|
|
19
28
|
.hm-folded .hm-list { display: none; }
|
|
20
29
|
.hm-unfold { display: none; }
|
|
21
30
|
.hm-folded .hm-unfold { display: grid; place-items: center; position: absolute; left: 10px; top: 24px; z-index: 2; width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--cz-well); color: var(--cz-ink2); cursor: pointer; }
|
|
@@ -158,6 +167,23 @@ body.cz-home { min-height: 100vh; overflow: hidden; }
|
|
|
158
167
|
body.cz-home:not(.hm-vw-open) .hm-log, body.cz-home:not(.hm-vw-open) .hm-foot { box-sizing: border-box; width: 100%; max-width: 880px; align-self: center; }
|
|
159
168
|
@container (max-width: 968px) { .hm-reopen:not([hidden]) ~ .hm-log { padding-top: 46px; } }
|
|
160
169
|
}
|
|
170
|
+
/* the header line over the conversation on a desktop (HvACDesk .ch): the open row's mark, its title, the chip of where it sits; the Viewer
|
|
171
|
+
* button sits at its end */
|
|
172
|
+
.hm-chd { flex: none; display: flex; align-items: center; gap: 10px; min-width: 0; height: 40px; padding-right: 48px; margin-bottom: 26px; box-sizing: border-box; }
|
|
173
|
+
.hm-chd[hidden] { display: none; }
|
|
174
|
+
.hm-chd .hv-mk { margin-right: -4px; }
|
|
175
|
+
.hm-chb { min-width: 0; font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
176
|
+
.hm-chs { flex: 0 1 auto; min-width: 0; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink2); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
|
|
177
|
+
.hm-chs > span { overflow: hidden; text-overflow: ellipsis; }
|
|
178
|
+
.hm-chs .hv-mt { margin-left: 0; }
|
|
179
|
+
.hm-chs > svg { flex: none; color: var(--cz-c-6b4fa3); }
|
|
180
|
+
.hm-chd .hv-tl.sm { width: 24px; height: 24px; border-radius: 8px; }
|
|
181
|
+
@media (min-width: 761px) {
|
|
182
|
+
body.cz-home .hm-chat.hm-has-ch > .hm-reopen { top: 16px; right: 24px; width: 40px; height: 40px; border-radius: 999px; background: none; }
|
|
183
|
+
body.cz-home .hm-chat.hm-has-ch > .hm-reopen:hover { background: var(--cz-well); }
|
|
184
|
+
body.cz-home .hm-chat.hm-has-ch > .hm-log { padding-top: 2px; }
|
|
185
|
+
}
|
|
186
|
+
@media (max-width: 760px) { .hm-chd { display: none; } }
|
|
161
187
|
.hm-log { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 2px 4px 12px 0; scrollbar-width: thin; }
|
|
162
188
|
|
|
163
189
|
.hm-empty { margin: auto; max-width: 360px; text-align: center; color: var(--cz-ink3); font-size: 14px; line-height: 1.5; }
|
|
@@ -269,7 +295,7 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
|
|
|
269
295
|
.hm-att em { font-style: normal; color: var(--cz-ink3); white-space: nowrap; }
|
|
270
296
|
.hm-ath { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; margin-left: -6px; }
|
|
271
297
|
.hm-att button { border: 0; background: none; cursor: pointer; width: 28px; height: 28px; border-radius: 999px; color: var(--cz-ink3); }
|
|
272
|
-
@media (pointer: coarse), (max-width: 760px) { .hm-att button { width: 44px; height: 44px; margin: -8px -6px -8px -10px; } .hm-
|
|
298
|
+
@media (pointer: coarse), (max-width: 760px) { .hm-att button { width: 44px; height: 44px; margin: -8px -6px -8px -10px; } .hm-tb .hm-tool { width: 44px; height: 44px; } }
|
|
273
299
|
.hm-chat.hm-drop { outline: 2px dashed var(--cz-blue); outline-offset: -8px; }
|
|
274
300
|
.hm-scope { display: flex; align-items: center; gap: 8px; }
|
|
275
301
|
.hm-scope .sp { flex: 1; }
|