create-pmos 0.474.0 → 0.476.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/README.md +5 -3
- package/bin/create-pmos.js +23 -1
- package/install.ps1 +2 -1
- package/install.sh +6 -1
- package/package.json +27 -33
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/README.md +1 -1
- package/workspace/bin/pmos.js +1 -1
- package/workspace/changelog.json +26 -0
- package/workspace/fixtures/fake-claude-onboard.js +48 -0
- package/workspace/guide/briefing-premium.md +2 -7
- package/workspace/guide/claude-proposes.md +5 -1
- package/workspace/guide/index.md +2 -2
- package/workspace/guide/launcher.md +14 -32
- package/workspace/guide/layout.md +1 -1
- package/workspace/guide/settings.md +12 -3
- package/workspace/guide/welcome.md +64 -21
- package/workspace/lib/claude-readiness.js +143 -0
- package/workspace/lib/engine/calendar-import.js +5 -0
- package/workspace/lib/freshness.js +5 -3
- package/workspace/lib/launcher-cli.js +83 -8
- package/workspace/lib/onboarding-progress.js +36 -0
- package/workspace/lib/project-onboard.js +363 -0
- package/workspace/lib/proposals.js +4 -3
- package/workspace/lib/route-modules.js +3 -0
- package/workspace/lib/routes-grill.js +70 -0
- package/workspace/lib/routes-onboard.js +188 -0
- package/workspace/lib/routes-onboarding.js +5 -4
- package/workspace/lib/routes-proposals.js +8 -6
- package/workspace/lib/routes-setup.js +88 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/project-onboard-flow-test.js +135 -0
- package/workspace/public/pm/cozy-claude-setup.js +90 -0
- package/workspace/public/pm/cozy-ev.css +6 -0
- package/workspace/public/pm/cozy-insights.css +2 -0
- package/workspace/public/pm/cozy-onboard.css +60 -0
- package/workspace/public/pm/cozy-onboard.js +226 -0
- package/workspace/public/pm/cozy-settings.js +35 -5
- package/workspace/public/pm/cozy-today.css +3 -0
- package/workspace/public/pm/grill-words.js +53 -0
- package/workspace/public/pm/home-app.js +41 -1
- package/workspace/public/pm/home-today.js +3 -1
- package/workspace/public/pm/ini-props.js +41 -8
- package/workspace/public/pm/ini-view.css +62 -37
- package/workspace/public/pm/premium-first.js +1 -1
- package/workspace/public/pm/premium-insights.js +43 -5
- package/workspace/public/pm/premium-welcome-model.js +1 -1
- package/workspace/public/pm/premium-welcome.js +107 -62
- package/workspace/public/pm/premium.css +16 -0
- package/workspace/public/pm/setup-checklist.js +22 -0
- package/workspace/public/premium.html +1 -0
- package/workspace/server.js +28 -6
- package/workspace/skills/calendar-sync.skill +1 -1
- package/workspace/test-files.json +6 -3
- package/workspace/test-lists/briefing-premium.json +1 -3
- package/workspace/test-lists/claude-onboarding-build.json +9 -0
- package/workspace/premium-welcome-test.js +0 -219
|
@@ -323,7 +323,9 @@ export function listHtml(M, T, o) {
|
|
|
323
323
|
+ `<button type="button" class="ut-ib hv-ib" data-hm-new aria-haspopup="menu" aria-label="New" title="New">${svg(P.plus, 20)}</button>`
|
|
324
324
|
// fold the list to the rail (batch 18 item 15, TbT1Split): the rail's list button brings it back; a phone has no rail
|
|
325
325
|
+ (o.phone ? '' : `<button type="button" class="ut-ib hv-ib" data-hm-fold aria-label="Fold the list to the rail" title="Fold the list to the rail">${svg(P.fold, 18)}</button>`) + '</span></div>'
|
|
326
|
-
+ (M.yours ? `<p class="hv-sub">${M.yours} ${M.yours === 1 ? 'is' : 'are'} yours</p>` : '')
|
|
326
|
+
+ (M.yours ? `<p class="hv-sub">${M.yours} ${M.yours === 1 ? 'is' : 'are'} yours</p>` : '')
|
|
327
|
+
// Claude grilled something by itself this week and left findings (canvas FcPhone, Home): one quiet line with ✦, else nothing
|
|
328
|
+
+ (o.grill ? `<p class="hv-sub hv-gn"><span>${esc(o.grill.text)}</span><button type="button" class="ut-ib hv-ib" data-hm-gn="${esc(o.grill.id)}" aria-label="${esc('Open the ' + o.grill.n + (o.grill.n === 1 ? ' finding' : ' findings') + ' on ' + o.grill.title)}" title="Open the findings">${svg('M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8z', 18)}</button></p>` : '');
|
|
327
329
|
// the Today card only while the day has a moment; the plain day (its meetings and load) is in Your day
|
|
328
330
|
const card = MOMENT.has(T.mode) ? todayHtml(T, { greet: M.greet, sub: '', phone: o.phone }) : '';
|
|
329
331
|
// start-up and errors (canvas AdU9, AdU6): Adler wears his glasses while Home reads, and says a failure plainly; the greeting's face hides
|
|
@@ -7,12 +7,17 @@
|
|
|
7
7
|
* open(v, H) the ✦'s press: "Claude proposes N" as a drill-in. Groups in order: Found elsewhere, Dates, Looks done, Names,
|
|
8
8
|
* Links. ✓ in the header keeps every proposal Claude is sure of; Check these and Not placed need their own ✓.
|
|
9
9
|
* Each proposal: ⌄ its items, ✓ keep, ✕ drop for good; ✕ on one item drops that item. One toast with Undo.
|
|
10
|
+
* Claude grilled it (lib/grill.js, canvas GrillResult): each finding with its angle's mark, the next step, the
|
|
11
|
+
* Simulated tag on Voices and What-if; ✓ adds the next step as a task, ✎ lets the PM word it first, ✕ drops it. 3 show,
|
|
12
|
+
* "+N smaller findings" unfolds the rest. Over them, quietly: the angles Claude chose, when it ran, and what it cost.
|
|
13
|
+
* On a phone the findings are cards side by side, one per screen.
|
|
10
14
|
* lookHtml(v) the Tasks' dashed placeholder while Claude looks and nothing is kept yet (PiA1)
|
|
11
15
|
* foundDocs(v) the documents a ✓ kept from elsewhere, for the Documents fold: [{ title, meta, ref }]
|
|
12
16
|
*
|
|
13
17
|
* The host gives H.where() → { ws, board }, H.reload(), H.toast(text, undo?). Nothing is written until the PM's ✓. */
|
|
14
18
|
import { pmGet, pmPost } from './http.js';
|
|
15
19
|
import { taskTitle } from './ini-links.js';
|
|
20
|
+
import * as GW from './grill-words.js'; // Grill findings: the angle, its mark, the next step, the Simulated tag (canvas GrillResult)
|
|
16
21
|
|
|
17
22
|
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
18
23
|
const SVG = (d, w = 16, sw = 1.8) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${sw}" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
|
|
@@ -57,9 +62,15 @@ export function sync(v, H) {
|
|
|
57
62
|
}, 5000));
|
|
58
63
|
}
|
|
59
64
|
}
|
|
60
|
-
async function read(H, id) {
|
|
65
|
+
async function read(H, id, all) {
|
|
61
66
|
const at = H.where ? H.where() : {};
|
|
62
|
-
return pmGet('/api/proposals?ws=' + encodeURIComponent(at.ws || '') + '&board=' + encodeURIComponent(at.board || '') + '&initiative=' + encodeURIComponent(id)).catch(() => null);
|
|
67
|
+
return pmGet('/api/proposals?ws=' + encodeURIComponent(at.ws || '') + '&board=' + encodeURIComponent(at.board || '') + '&initiative=' + encodeURIComponent(id) + (all ? '&grill=all' : '')).catch(() => null);
|
|
68
|
+
}
|
|
69
|
+
/** The initiative's last grill run (GET /api/grill): when, why and what it cost. Quiet: a failed read draws nothing. */
|
|
70
|
+
async function readRun(H, id) {
|
|
71
|
+
const at = H.where ? H.where() : {};
|
|
72
|
+
const r = await pmGet('/api/grill?ws=' + encodeURIComponent(at.ws || '') + '&inis=' + encodeURIComponent(id)).catch(() => null);
|
|
73
|
+
return r && r.ok && r.runs ? r.runs[id] || null : null;
|
|
63
74
|
}
|
|
64
75
|
async function write(H, route, body) {
|
|
65
76
|
const at = H.where ? H.where() : {};
|
|
@@ -75,7 +86,7 @@ export function foundDocs(v) {
|
|
|
75
86
|
}
|
|
76
87
|
|
|
77
88
|
/* ── the Viewer ── */
|
|
78
|
-
const S = { id: null, props: null, open: new Set(), choices: {}, H: null, title: '', timer: null };
|
|
89
|
+
const S = { id: null, props: null, open: new Set(), choices: {}, H: null, title: '', timer: null, edit: null, all: false, run: null };
|
|
79
90
|
const titleOf = (p) => {
|
|
80
91
|
if (p.title) return p.title;
|
|
81
92
|
const n = p.items.length;
|
|
@@ -107,7 +118,26 @@ function linkHtml(p, l) {
|
|
|
107
118
|
const mv = (l.moves || []).map((m) => m.title + ' to ' + span(m.to.start, m.to.due)).join(', ');
|
|
108
119
|
return `<div class="pp-it pp-lk"><span class="w"><b>${esc(clip(l.toTitle, 70))}</b><small>${esc(l.why)}${mv ? ' · ' + esc(mv) : ''}</small></span>${seg}</div>`;
|
|
109
120
|
}
|
|
121
|
+
/* ── Claude grilled it (canvas GrillResult) ── */
|
|
122
|
+
function grillHtml(p) {
|
|
123
|
+
const f = GW.findingOf(p), ed = S.edit === p.id, src = (p.sources || []).map((s) => s.label).join(', ');
|
|
124
|
+
const next = ed ? `<span class="pp-ned"><label class="vh" for="ppNed">The next step, in your words</label><input id="ppNed" data-pp-ned="${esc(p.id)}" maxlength="200" value="${esc(S.choices[p.id] || f.next)}"></span>`
|
|
125
|
+
: f.next ? `<small class="pp-next"><b>Next step:</b> ${esc(S.choices[p.id] || f.next)}</small>` : '';
|
|
126
|
+
return `<div class="pp-p gr" data-pp="${esc(p.id)}"><div class="pp-ph1"><span class="pp-ic gr" title="${esc(f.label)}">${SVG(f.icon, 16)}</span>`
|
|
127
|
+
+ `<span class="w"><b>${esc(f.title)}</b><small>${esc(f.why)}</small>${next}`
|
|
128
|
+
+ `<small class="pp-src"><em class="pp-ang">${esc(f.label)}</em>${f.simulated ? `<em class="pp-sim">${esc(f.simulated)}</em>` : ''}${src ? ' ' + esc(src) : ''}</small></span>`
|
|
129
|
+
+ `<span class="pp-gacts">${ib(`data-pp-drop="${esc(p.sig || '')}"`, 'Drop it', I.x)}${ib(`data-pp-edit="${esc(p.id)}" aria-pressed="${ed}"`, ed ? 'Done changing the step' : 'Change this step', I.name)}${ib(`data-pp-keep="${esc(p.id)}"`, 'Keep this step', I.check, 'ok')}</span></div></div>`;
|
|
130
|
+
}
|
|
131
|
+
/** The grill group: the angles Claude chose, when it ran and its cost over the findings; "+N smaller findings" under them. */
|
|
132
|
+
function grillSec(g) {
|
|
133
|
+
const angles = [...new Set(g.props.map((p) => GW.findingOf(p).label))];
|
|
134
|
+
const r = S.run, cost = r ? GW.costWord(r.cost) : '';
|
|
135
|
+
const head = `<p class="pp-ghd">${angles.map((a) => `<em class="pp-ang">${esc(a)}</em>`).join('')}<span>${esc(r ? GW.runLine(r) : 'Claude chose these and ran them by itself')}${cost ? ' · ' + esc(cost) : ''}. Nothing changes until you keep one.</span></p>`;
|
|
136
|
+
const more = g.more ? `<div class="pp-gmore"><span>+${g.more} smaller ${g.more === 1 ? 'finding' : 'findings'}</span>${ib('data-pp-gall', 'Show the rest', 'M5 12h.01M12 12h.01M19 12h.01')}</div>` : '';
|
|
137
|
+
return head + `<div class="pp-gl">${g.props.map(grillHtml).join('')}</div>` + (g.props.length > 1 ? `<p class="pp-gsw">${g.props.length} findings · swipe for the next</p>` : '') + more;
|
|
138
|
+
}
|
|
110
139
|
function propHtml(p) {
|
|
140
|
+
if (p.group === 'grill') return grillHtml(p);
|
|
111
141
|
if (p.group === 'links') {
|
|
112
142
|
const l = p.link || {}, a = taskTitle(p.ini || S.id, l.from), b = taskTitle(p.ini || S.id, l.to);
|
|
113
143
|
const t = l.kind === 'link' ? clip(b, 40) + ' waits on ' + clip(a, 40) : l.kind === 'pull' ? 'Pull ' + plural((l.tasks || []).length, 'task', 'tasks') + ' in' : 'Move ' + plural((l.tasks || []).length, 'task', 'tasks') + ' to keep your links';
|
|
@@ -136,7 +166,7 @@ function lookBlock(L) {
|
|
|
136
166
|
function bodyHtml(P) {
|
|
137
167
|
const VW = window.czViewer;
|
|
138
168
|
if (!P || (!P.n && !(P.look && !P.look.ended))) return '<p class="pp-none">Nothing waits here now.</p>';
|
|
139
|
-
const secs = (P.groups || []).map((g) => ({ id: g.group, title: GROUP[g.group] || g.group, count: g.props.length, open: true, html: g.props.map(propHtml).join('') }));
|
|
169
|
+
const secs = (P.groups || []).map((g) => ({ id: g.group, title: GROUP[g.group] || g.group, count: g.props.length + (g.more || 0), open: true, html: g.group === 'grill' ? grillSec(g) : g.props.map(propHtml).join('') }));
|
|
140
170
|
return `<div class="pp">${lookBlock(P.look)}${VW.czSections(secs, { key: 'props' })}</div>`;
|
|
141
171
|
}
|
|
142
172
|
function presses(P) { return P && P.sure ? [{ act: 'all', label: 'Keep all ' + P.sure + ' Claude is sure of', icon: I.check, solid: true }] : []; }
|
|
@@ -153,7 +183,7 @@ function draw() {
|
|
|
153
183
|
if (S.props && S.props.look && !S.props.look.ended) S.timer = setTimeout(fresh, 4000);
|
|
154
184
|
}
|
|
155
185
|
async function fresh() {
|
|
156
|
-
const id = S.id, r = await read(S.H, id);
|
|
186
|
+
const id = S.id, r = await read(S.H, id, S.all);
|
|
157
187
|
if (S.id !== id || !r || r.ok === false) return;
|
|
158
188
|
S.props = r.props; draw();
|
|
159
189
|
}
|
|
@@ -183,7 +213,9 @@ async function onPress(e) {
|
|
|
183
213
|
const d = b.dataset;
|
|
184
214
|
if (d.ppMore) { if (S.open.has(d.ppMore)) S.open.delete(d.ppMore); else S.open.add(d.ppMore); draw(); return; }
|
|
185
215
|
if (d.ppCh) { S.choices[d.ppCh] = d.v; draw(); return; }
|
|
186
|
-
if (d.
|
|
216
|
+
if (d.ppEdit) { const i = b.closest('.pp-p') && b.closest('.pp-p').querySelector('[data-pp-ned]'); if (i && i.value.trim()) S.choices[d.ppEdit] = i.value.trim(); S.edit = S.edit === d.ppEdit ? null : d.ppEdit; draw(); const n = document.getElementById('ppNed'); if (n) n.focus(); return; }
|
|
217
|
+
if ('ppGall' in d) { S.all = true; b.disabled = true; await fresh(); return; }
|
|
218
|
+
if (d.ppKeep) { const i = document.querySelector(`[data-pp-ned="${CSS.escape(d.ppKeep)}"]`); if (i && i.value.trim()) S.choices[d.ppKeep] = i.value.trim(); b.disabled = true; S.edit = null; await keep([d.ppKeep], false); return; }
|
|
187
219
|
if (d.ppDrop) { b.disabled = true; await drop(d.ppDrop); return; }
|
|
188
220
|
if (d.ppDropit) { b.disabled = true; await drop(d.ppDropit); return; }
|
|
189
221
|
if ('ppDroplk' in d) {
|
|
@@ -208,11 +240,12 @@ async function onPress(e) {
|
|
|
208
240
|
/** The ✦'s press: the drill-in. v: the initiative's view (id, title, props). */
|
|
209
241
|
export function open(v, H) {
|
|
210
242
|
const VW = window.czViewer; if (!VW || !v || !v.id) return;
|
|
211
|
-
S.id = v.id; S.props = v.props; S.H = H; S.open = new Set(); S.choices = {}; S.title = v.title;
|
|
243
|
+
S.id = v.id; S.props = v.props; S.H = H; S.open = new Set(); S.choices = {}; S.title = v.title; S.edit = null; S.all = false; S.run = null;
|
|
244
|
+
if (v.props && (v.props.groups || []).some((g) => g.group === 'grill')) readRun(H, v.id).then((r) => { if (S.id === v.id && r) { S.run = r; draw(); } });
|
|
212
245
|
VW.drill();
|
|
213
246
|
VW.open({ id: 'pp:' + v.id, kind: 'Claude proposes', title: 'Claude proposes' + (v.props && v.props.n ? ' ' + v.props.n : ''), sub: v.title, icon: I.spark,
|
|
214
247
|
presses: presses(v.props),
|
|
215
248
|
onPress: (act) => { if (act === 'all') keep([], true); },
|
|
216
|
-
render: (b) => { b.innerHTML = bodyHtml(S.props); if (!b.__pp) { b.__pp = true; } b.onclick = onPress; draw(); if (!S.props || S.props.look) fresh(); },
|
|
249
|
+
render: (b) => { b.innerHTML = bodyHtml(S.props); if (!b.__pp) { b.__pp = true; } b.onclick = onPress; b.onkeydown = (e) => { if (e.key !== 'Enter' || !e.target.matches('[data-pp-ned]')) return; e.preventDefault(); const k = e.target.closest('.pp-p').querySelector('[data-pp-keep]'); if (k) k.click(); }; draw(); if (!S.props || S.props.look) fresh(); },
|
|
217
250
|
onClose: () => { clearTimeout(S.timer); if (S.id === v.id) S.id = null; } });
|
|
218
251
|
}
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
.iv-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--cz-ink3); }
|
|
37
37
|
.iv-st.late i, .iv-st.risk i { background: var(--cz-risk); }
|
|
38
38
|
.iv-st.ok i { background: var(--cz-ok); }
|
|
39
|
-
.iv-av { width: 22px; height: 22px; border-radius: 50%; background: var(--cz-bluebg); color: var(--cz-blueink); font-size:
|
|
39
|
+
.iv-av { width: 22px; height: 22px; border-radius: 50%; background: var(--cz-bluebg); color: var(--cz-blueink); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
|
|
40
40
|
button.iv-wf, .iv-prog { color: var(--cz-ink3) !important; border-radius: 999px; padding: 2px 6px !important; margin-left: -6px !important; }
|
|
41
41
|
button.iv-wf:hover, .iv-prog:hover { background: var(--cz-well2) !important; color: var(--cz-ink) !important; }
|
|
42
42
|
|
|
@@ -45,7 +45,7 @@ button.iv-wf:hover, .iv-prog:hover { background: var(--cz-well2) !important; col
|
|
|
45
45
|
.iv-sch { display: flex; align-items: center; gap: 8px; }
|
|
46
46
|
.iv-sch b { font-size: var(--fs-3); font-weight: 800; min-width: 0; }
|
|
47
47
|
.iv-sch .iv-r { font-weight: 700; }
|
|
48
|
-
.iv-no { width: 22px; height: 22px; border-radius: 7px; background: var(--cz-well); color: var(--cz-ink3); font-size:
|
|
48
|
+
.iv-no { width: 22px; height: 22px; border-radius: 7px; background: var(--cz-well); color: var(--cz-ink3); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
|
|
49
49
|
.iv-sch .iv-no { background: var(--cz-bluebg); color: var(--cz-blueink); }
|
|
50
50
|
.iv-no.ms { width: 14px; height: 14px; border-radius: 3px; margin: 0 4px; transform: rotate(45deg); background: var(--cz-card); border: 1.6px solid var(--cz-ink3); }
|
|
51
51
|
.iv-sch .iv-no.ms { background: var(--cz-blueink); border-color: var(--cz-blueink); }
|
|
@@ -78,11 +78,11 @@ button.iv-wf:hover, .iv-prog:hover { background: var(--cz-well2) !important; col
|
|
|
78
78
|
|
|
79
79
|
/* the line: the Board row line's height and colours (10 px; done grey, now blue, later light), a 2 px notch between parts */
|
|
80
80
|
.iv-tl { --tl-done: color-mix(in srgb, var(--cz-ink3) 88%, var(--cz-card)); --tl-plan: color-mix(in srgb, var(--cz-ink3) 24%, var(--cz-card)); position: relative; display: flex; flex-direction: column; padding: 0 6px; }
|
|
81
|
-
.iv-tl-dep { align-self: flex-start; display: inline-flex !important; align-items: center; gap: 4px; font-size:
|
|
81
|
+
.iv-tl-dep { align-self: flex-start; display: inline-flex !important; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--cz-ink3); background: var(--cz-well) !important; border-radius: 999px !important; padding: 2px 9px !important; margin-bottom: 4px; }
|
|
82
82
|
@media (hover: hover) { .iv-tl-dep:hover { color: var(--cz-ink); } }
|
|
83
83
|
.iv-tl-nm { position: relative; height: 18px; }
|
|
84
84
|
.iv-tl.nonames .iv-tl-nm { height: 6px; }
|
|
85
|
-
.iv-tln { position: absolute; bottom: 2px; font-size:
|
|
85
|
+
.iv-tln { position: absolute; bottom: 2px; font-size: 11px; font-weight: 800; color: var(--cz-ink2); white-space: nowrap; transform: translateX(-50%); max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
|
|
86
86
|
.iv-tln.r { transform: translateX(calc(-100% + 8px)); }
|
|
87
87
|
.iv-tln.l { transform: translateX(-8px); }
|
|
88
88
|
.iv-tln.late { color: var(--cz-late); }
|
|
@@ -135,7 +135,7 @@ button.iv-wf:hover, .iv-prog:hover { background: var(--cz-well2) !important; col
|
|
|
135
135
|
.iv-tlm.n { width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px !important; }
|
|
136
136
|
.iv-tlm b { display: block; transform: rotate(-45deg); font-size: 9.5px; font-weight: 800; line-height: 13px; text-align: center; color: var(--cz-ink2); }
|
|
137
137
|
/* the labels under it: the start, the ◇ dates, the end with what it says */
|
|
138
|
-
.iv-tl-dt { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-height: 16px; font-size:
|
|
138
|
+
.iv-tl-dt { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-height: 16px; font-size: 11px; color: var(--cz-ink3); font-weight: 600; }
|
|
139
139
|
.iv-tld { position: absolute; top: 0; transform: translateX(-50%); font-weight: 700; white-space: nowrap; }
|
|
140
140
|
.iv-tld.late { color: var(--cz-late); }
|
|
141
141
|
.iv-tle { margin-left: auto; white-space: nowrap; }
|
|
@@ -207,7 +207,7 @@ button.iv-tt:hover { text-decoration: underline; text-decoration-color: var(--cz
|
|
|
207
207
|
.iv-jmv { color: var(--cz-blueink); font-weight: 700; white-space: nowrap; }
|
|
208
208
|
.ivk-d[data-ivk-jira] { cursor: grab; }
|
|
209
209
|
.tkc.ivq .ivq-st.jq { flex-wrap: wrap; }
|
|
210
|
-
.tkc.ivq .ivq-st.jq > .ivq-jn { flex-basis: 100%; margin: 2px 8px 4px; font-size:
|
|
210
|
+
.tkc.ivq .ivq-st.jq > .ivq-jn { flex-basis: 100%; margin: 2px 8px 4px; font-size: 11px; font-weight: 600; color: var(--cz-ink3); }
|
|
211
211
|
.iv-bxw > .iv-jq { margin: 3px 3px 0; }
|
|
212
212
|
.iv-more, .iv-grp { display: flex !important; align-items: center; gap: 8px; width: 100%; min-height: 40px; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink2); border-top: 1px solid var(--cz-hair) !important; }
|
|
213
213
|
.iv-grp b { flex: 1; font-size: var(--fs-3); font-weight: 700; color: var(--cz-ink); }
|
|
@@ -280,7 +280,7 @@ button.iv-bxw.jr:hover .iv-cb { box-shadow: 0 0 0 3px var(--cz-well); }
|
|
|
280
280
|
.ivt-r { display: flex; min-height: 44px; border-top: 1px solid var(--cz-hair); position: relative; }
|
|
281
281
|
.ivt-r.ax { border-top: 0; min-height: 30px; background: var(--cz-well); }
|
|
282
282
|
.ivt-r.ax .ivt-n { background: var(--cz-well); }
|
|
283
|
-
.ivt-r.ax .ivt-c span { position: absolute; top: 8px; font-size:
|
|
283
|
+
.ivt-r.ax .ivt-c span { position: absolute; top: 8px; font-size: 11px; font-weight: 700; color: var(--cz-ink3); white-space: nowrap; padding-left: 4px; }
|
|
284
284
|
.ivt-r.ax .ivt-c span.b { color: var(--cz-ink2); font-weight: 800; }
|
|
285
285
|
.ivt-r.ax .ivt-c span.cut { visibility: hidden; } /* cut by an edge or under the Today chip (ini-tasks.js wireDrag) */
|
|
286
286
|
/* Home's phone rule gives every button in its Viewer 44 px (home-ini.css .hi-v button): a bar, a mark or a title in the Timeline keeps its
|
|
@@ -321,7 +321,7 @@ button.iv-bxw.jr:hover .iv-cb { box-shadow: 0 0 0 3px var(--cz-well); }
|
|
|
321
321
|
.ivt-gp { position: absolute; top: 3px; bottom: 3px; width: 6px; border-radius: 3px; background: var(--cz-card); box-shadow: 0 0 0 1px var(--cz-hair); cursor: ew-resize; opacity: 0; }
|
|
322
322
|
.ivt-gp.l { left: 2px; } .ivt-gp.r { right: 2px; }
|
|
323
323
|
.ivt-b:hover .ivt-gp, .ivt-b.drag .ivt-gp { opacity: 1; }
|
|
324
|
-
.ivt-av { width: 16px; height: 16px; border-radius: 50%; background: var(--cz-card); color: var(--cz-ink2); font-size:
|
|
324
|
+
.ivt-av { width: 16px; height: 16px; border-radius: 50%; background: var(--cz-card); color: var(--cz-ink2); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
|
|
325
325
|
.ivt-b .ivt-av { pointer-events: none; }
|
|
326
326
|
.ivt-d { position: absolute !important; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px !important; border-radius: 50% !important; background: var(--cz-card) !important; border: 2.5px solid var(--cz-ink3) !important; z-index: 1; }
|
|
327
327
|
.ivt-d.pr { border-color: var(--cz-blue) !important; }
|
|
@@ -333,7 +333,7 @@ button.iv-bxw.jr:hover .iv-cb { box-shadow: 0 0 0 3px var(--cz-well); }
|
|
|
333
333
|
.ivt-g:hover { border-color: var(--cz-blue) !important; color: var(--cz-blueink) !important; }
|
|
334
334
|
.ivt-tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--cz-solid); color: var(--cz-onsolid); font-size: var(--fs-2); font-weight: 700; padding: 3px 8px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
|
|
335
335
|
.ivt-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--cz-blue); z-index: 2; pointer-events: none; }
|
|
336
|
-
.ivt-today i { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-style: normal; font-size:
|
|
336
|
+
.ivt-today i { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 800; color: var(--cz-card); background: var(--cz-blue); border-radius: 999px; padding: 1px 6px; white-space: nowrap; }
|
|
337
337
|
.ivt-lg { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-2); color: var(--cz-ink3); padding: 8px 4px 0; }
|
|
338
338
|
.ivt-lg span { display: inline-flex; align-items: center; gap: 6px; }
|
|
339
339
|
.ivt-lg i { display: inline-block; width: 18px; height: 8px; border-radius: 4px; background: var(--cz-well2); }
|
|
@@ -345,7 +345,7 @@ button.iv-bxw.jr:hover .iv-cb { box-shadow: 0 0 0 3px var(--cz-well); }
|
|
|
345
345
|
.ivt.cols { --nw: calc(clamp(150px, 24cqw, 280px) + var(--tl-c1w, 0px) + var(--tl-c2w, 0px) + var(--tl-c3w, 0px) + var(--tl-c4w, 0px) + var(--tl-c5w, 0px)); }
|
|
346
346
|
.ivt.cols .ivt-n { gap: 0; }
|
|
347
347
|
.ivt-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
|
|
348
|
-
.ivt-r.ax .ivt-t, .ivt-r.ax .ivt-col { font-size:
|
|
348
|
+
.ivt-r.ax .ivt-t, .ivt-r.ax .ivt-col { font-size: 11px; font-weight: 700; color: var(--cz-ink3); }
|
|
349
349
|
.ivt-col { flex: none; box-sizing: border-box; padding-left: 8px; display: flex; align-items: center; min-width: 0; font-size: var(--fs-2); color: var(--cz-ink2); white-space: nowrap; overflow: hidden; }
|
|
350
350
|
.ivt-col.p1 { width: var(--tl-c1w); } .ivt-col.p2 { width: var(--tl-c2w); } .ivt-col.p3 { width: var(--tl-c3w); } .ivt-col.p4 { width: var(--tl-c4w); } .ivt-col.p5 { width: var(--tl-c5w); }
|
|
351
351
|
.ivt-col .lt { color: var(--cz-late); font-weight: 700; }
|
|
@@ -371,7 +371,7 @@ button.ivt-st:hover, button.ivt-st[aria-expanded="true"] { background: var(--cz-
|
|
|
371
371
|
.ivs-ck[aria-disabled="true"] { cursor: default; background: transparent !important; }
|
|
372
372
|
.ivs-ck i { width: 18px; height: 18px; border-radius: 5px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1.6px solid color-mix(in srgb, var(--cz-ink3) 60%, var(--cz-card)); color: var(--cz-card); box-sizing: border-box; }
|
|
373
373
|
.ivs-ck.on i { background: var(--cz-blue); border-color: var(--cz-blue); }
|
|
374
|
-
.ivs-ck small { margin-left: auto; font-size:
|
|
374
|
+
.ivs-ck small { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--cz-ink3); }
|
|
375
375
|
|
|
376
376
|
/* a phone: the title sits above its bar; no drag (tap a bar for the picker) */
|
|
377
377
|
@container (max-width: 520px) {
|
|
@@ -408,7 +408,7 @@ button.ivt-st:hover, button.ivt-st[aria-expanded="true"] { background: var(--cz-
|
|
|
408
408
|
.ivk-d .iv-tt { font-size: var(--fs-3); line-height: 1.3; overflow-wrap: anywhere; }
|
|
409
409
|
.ivk-d.x .iv-tt { color: var(--cz-ink3); font-weight: 600; }
|
|
410
410
|
.ivk-m { display: flex; align-items: center; gap: 6px; font-size: var(--fs-2); color: var(--cz-ink3); min-height: 22px; }
|
|
411
|
-
.ivk-m .ivt-av { margin-left: auto; width: 20px; height: 20px; font-size:
|
|
411
|
+
.ivk-m .ivt-av { margin-left: auto; width: 20px; height: 20px; font-size: 11px; background: var(--cz-well); }
|
|
412
412
|
.ivk-d:hover .iv-dc.none, .ivk-d .iv-dc.none:focus-visible { opacity: 1; }
|
|
413
413
|
.ivk-tabs { display: none; gap: 4px; margin-bottom: 8px; overflow-x: auto; }
|
|
414
414
|
.ivk-tabs button { height: 32px; padding: 0 12px !important; border-radius: 999px !important; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink3) !important; white-space: nowrap; }
|
|
@@ -448,7 +448,7 @@ button.ivt-st:hover, button.ivt-st[aria-expanded="true"] { background: var(--cz-
|
|
|
448
448
|
span.iv-dc.ms { display: inline-flex; border-radius: 999px; }
|
|
449
449
|
.ivt-ms { position: absolute; top: 50%; height: 0; z-index: 2; display: flex; align-items: center; pointer-events: auto; }
|
|
450
450
|
.ivt-ms i { width: 11px; height: 11px; margin-left: -5.5px; transform: rotate(45deg); border-radius: 2px; background: var(--cz-card); border: 2px solid var(--cz-ink3); box-sizing: border-box; flex: none; }
|
|
451
|
-
.ivt-ms b { margin-left: 7px; font-size:
|
|
451
|
+
.ivt-ms b { margin-left: 7px; font-size: 11px; font-weight: 700; color: var(--cz-ink2); white-space: nowrap; }
|
|
452
452
|
.ivt-ms.dn i { background: var(--cz-ink3); box-shadow: 0 0 0 2px var(--cz-card); }
|
|
453
453
|
.ivt-ms.lt i { border-color: var(--cz-dot-late, var(--cz-late)); }
|
|
454
454
|
.ivt-ms.lt b { color: var(--cz-late); font-weight: 800; }
|
|
@@ -468,7 +468,7 @@ span.iv-dc.ms { display: inline-flex; border-radius: 999px; }
|
|
|
468
468
|
.vs-chip { display: inline-flex !important; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px !important; border-radius: 999px !important; background: var(--cz-well) !important; font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink2) !important; white-space: nowrap; max-width: 200px; flex: none; }
|
|
469
469
|
.vs-chip .t { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
|
|
470
470
|
.vs-chip.dr { background: var(--cz-bluebg) !important; color: var(--cz-blueink) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cz-blue) 45%, var(--cz-card)); }
|
|
471
|
-
.vs-chip .c { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--cz-blue); color: var(--cz-card); font-size:
|
|
471
|
+
.vs-chip .c { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--cz-blue); color: var(--cz-card); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
|
|
472
472
|
.vs-slip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink3); font-size: var(--fs-2); font-weight: 800; flex: none; }
|
|
473
473
|
.vs-slip.late { background: var(--cz-latebg); color: var(--cz-late); }
|
|
474
474
|
.vs-seal { width: 36px; height: 36px; border-radius: 999px !important; display: inline-flex !important; align-items: center; justify-content: center; background: var(--cz-ink) !important; color: var(--cz-card) !important; flex: none; }
|
|
@@ -484,7 +484,7 @@ span.iv-dc.ms { display: inline-flex; border-radius: 999px; }
|
|
|
484
484
|
.ivt-pl { position: absolute; left: var(--tl-x, 0); width: var(--tl-w, 0); bottom: 5px; height: 1.6px; background: var(--cz-ink2); z-index: 1; pointer-events: auto; }
|
|
485
485
|
.ivt-pl::before, .ivt-pl::after { content: ""; position: absolute; top: -3px; width: 1.6px; height: 7.6px; background: var(--cz-ink2); }
|
|
486
486
|
.ivt-pl::before { left: 0; } .ivt-pl::after { right: 0; }
|
|
487
|
-
.ivt-sl { position: absolute; left: var(--tl-x, 0); top: 50%; transform: translateY(-50%); font-size:
|
|
487
|
+
.ivt-sl { position: absolute; left: var(--tl-x, 0); top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; color: var(--cz-ink2); white-space: nowrap; z-index: 1; pointer-events: none; }
|
|
488
488
|
.ivt-lg i.pl { height: 1.6px; border-radius: 0; background: var(--cz-ink2); position: relative; }
|
|
489
489
|
.ivt-lg i.pl::before, .ivt-lg i.pl::after { content: ""; position: absolute; top: -3px; width: 1.6px; height: 7.6px; background: var(--cz-ink2); }
|
|
490
490
|
.ivt-lg i.pl::before { left: 0; } .ivt-lg i.pl::after { right: 0; }
|
|
@@ -494,7 +494,7 @@ span.iv-dc.ms { display: inline-flex; border-radius: 999px; }
|
|
|
494
494
|
.vs-m .vs-r { position: relative; display: flex; align-items: center; }
|
|
495
495
|
.vs-m .vs-r .o { flex: 1; min-width: 0; min-height: 44px; }
|
|
496
496
|
.vs-m .nn { display: flex; flex-direction: column; min-width: 0; text-align: left; line-height: 1.25; padding: 4px 0; }
|
|
497
|
-
.vs-m .nn small { font-size:
|
|
497
|
+
.vs-m .nn small { font-size: 11px; font-weight: 600; color: var(--cz-ink3); }
|
|
498
498
|
.vs-m .vs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cz-blue); margin-left: auto; flex: none; }
|
|
499
499
|
.vs-m .vs-k { margin-left: auto; display: inline-flex; color: var(--cz-ink2); }
|
|
500
500
|
.vs-m .vs-tl { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: none; gap: 2px; background: var(--cz-well); border-radius: 10px; padding: 2px; }
|
|
@@ -563,7 +563,7 @@ span.iv-dc.ms { display: inline-flex; border-radius: 999px; }
|
|
|
563
563
|
.lk-jt::before { content: ""; position: absolute; inset: -8px; }
|
|
564
564
|
.lk-jt.or { border-color: var(--cz-late) !important; }
|
|
565
565
|
.lk-jt:hover, .lk-jt:focus-visible { transform: scale(1.25); }
|
|
566
|
-
.lk-bang { position: absolute; left: var(--tl-lk-x); top: var(--tl-lk-y); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--cz-late); color: var(--cz-card); font-size:
|
|
566
|
+
.lk-bang { position: absolute; left: var(--tl-lk-x); top: var(--tl-lk-y); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--cz-late); color: var(--cz-card); font-size: 11px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; z-index: 2; pointer-events: none; }
|
|
567
567
|
.lk-tip { position: absolute; left: var(--tl-lk-x); top: var(--tl-lk-y); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; background: var(--cz-solid); color: var(--cz-onsolid); font-size: var(--fs-2); font-weight: 600; padding: 4px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 5; }
|
|
568
568
|
.lk-tip b { font-weight: 800; }
|
|
569
569
|
/* the List's and Kanban's meta: the link icon and the first task this one waits on, then +N */
|
|
@@ -586,15 +586,15 @@ button.lk-mt:hover { color: var(--cz-ink) !important; }
|
|
|
586
586
|
.lk-pr .ic.jr { background: var(--cz-latebg); color: var(--cz-late); }
|
|
587
587
|
.lk-pr .w { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
|
|
588
588
|
.lk-pr .w b { font-size: var(--fs-3); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
|
|
589
|
-
.lk-pr .w small { font-size:
|
|
589
|
+
.lk-pr .w small { font-size: 11px; font-weight: 600; color: var(--cz-ink3); }
|
|
590
590
|
.lk-pr .vs-ok { width: 32px; height: 32px; }
|
|
591
591
|
.lk-pr .vs-ti.ok { color: var(--cz-blueink) !important; }
|
|
592
592
|
.lk-m hr { border: 0; border-top: 1px solid var(--cz-hair); margin: 6px 0; }
|
|
593
|
-
.lk-m .h { display: block; font-size:
|
|
593
|
+
.lk-m .h { display: block; font-size: 11px; font-weight: 800; color: var(--cz-ink3); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px 4px; }
|
|
594
594
|
.lk-ny { color: var(--cz-late) !important; }
|
|
595
595
|
.lk-q { display: flex !important; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 4px 8px !important; text-align: left; }
|
|
596
596
|
.lk-q .nn { flex: 1; display: flex; flex-direction: column; font-size: var(--fs-3); font-weight: 700; line-height: 1.3; }
|
|
597
|
-
.lk-q .nn small { font-size:
|
|
597
|
+
.lk-q .nn small { font-size: 11px; font-weight: 600; color: var(--cz-ink3); }
|
|
598
598
|
.lk-sw { width: 34px; height: 20px; border-radius: 999px; background: var(--cz-well2); position: relative; flex: none; }
|
|
599
599
|
.lk-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--cz-card); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
|
|
600
600
|
.lk-sw.on { background: var(--cz-blue); } .lk-sw.on::after { left: 16px; }
|
|
@@ -612,10 +612,10 @@ button.lk-mt:hover { color: var(--cz-ink) !important; }
|
|
|
612
612
|
.lk-wt .o:hover { background: var(--cz-well) !important; }
|
|
613
613
|
.lk-wt .ck { width: 22px; display: inline-flex; justify-content: center; color: var(--cz-ink2); flex: none; }
|
|
614
614
|
.lk-wt .nn { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: var(--fs-3); font-weight: 700; line-height: 1.3; }
|
|
615
|
-
.lk-wt .nn small { font-size:
|
|
615
|
+
.lk-wt .nn small { font-size: 11px; font-weight: 600; color: var(--cz-ink3); }
|
|
616
616
|
.lk-wt .k { font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); }
|
|
617
617
|
.lk-cm { font-size: var(--fs-2); font-weight: 800; color: var(--cz-late); background: var(--cz-latebg); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
|
|
618
|
-
.lk-tile { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px; padding: 0 4px; border-radius: 5px; background: var(--cz-well2); color: var(--cz-ink2); font-size:
|
|
618
|
+
.lk-tile { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px; padding: 0 4px; border-radius: 5px; background: var(--cz-well2); color: var(--cz-ink2); font-size: 11px; font-weight: 800; font-style: normal; margin-right: 6px; vertical-align: 1px; }
|
|
619
619
|
.lk-st { display: block; font-size: var(--fs-3); font-weight: 800; padding: 4px 8px 6px; }
|
|
620
620
|
.lk-sr { display: flex; align-items: center; gap: 8px; margin: 4px 4px 2px; padding: 0 10px; height: 38px; border-radius: 10px; border: 1px solid var(--cz-hair); color: var(--cz-ink3); }
|
|
621
621
|
.lk-sr input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--fs-3); color: var(--cz-ink); }
|
|
@@ -637,7 +637,7 @@ button.lk-mt:hover { color: var(--cz-ink) !important; }
|
|
|
637
637
|
.ig-dz.ig-over { background: var(--cz-bluebg); }
|
|
638
638
|
.iv-tr[data-ig-drag] { cursor: grab; }
|
|
639
639
|
.iv-tr.drag { opacity: .45; }
|
|
640
|
-
.ig-key { font-family: var(--cz-mono); font-size:
|
|
640
|
+
.ig-key { font-family: var(--cz-mono); font-size: 11px; font-weight: 700; color: var(--cz-ink3); background: var(--cz-well); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
|
|
641
641
|
.ig-tk { text-align: left; }
|
|
642
642
|
/* a ticket's own key is grey mono; a task linked to a ticket keeps its key blue, as the List draws it (em.lk) */
|
|
643
643
|
.ig-tk .iv-tt em:not(.lk), .ivt-n .iv-tt em:not(.lk), .ivk-d .iv-tt em:not(.lk) { font-style: normal; font-family: var(--cz-mono); font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
@@ -654,7 +654,7 @@ button.lk-mt:hover { color: var(--cz-ink) !important; }
|
|
|
654
654
|
.ig-emp { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 6px 0 4px; }
|
|
655
655
|
.tkc.ivq .ig-m { min-width: 240px; max-width: calc(100vw - 16px); }
|
|
656
656
|
.tkc.ivq.vs-pop.sheet .ig-m { width: 100%; max-width: none; box-sizing: border-box; }
|
|
657
|
-
.ig-m .ig-h { margin: 0; padding: 8px 12px 4px; font-size:
|
|
657
|
+
.ig-m .ig-h { margin: 0; padding: 8px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--cz-ink3); }
|
|
658
658
|
.ig-m .ig-hr { height: 1px; background: var(--cz-hair); margin: 4px 8px; }
|
|
659
659
|
.ig-m .o { min-height: 40px; }
|
|
660
660
|
.ig-m .ck { width: 16px; display: inline-flex; color: var(--cz-blueink); }
|
|
@@ -710,7 +710,32 @@ button.lk-mt:hover { color: var(--cz-ink) !important; }
|
|
|
710
710
|
.iv-fd:hover { background: var(--cz-well) !important; }
|
|
711
711
|
.iv-fd b { font-size: var(--fs-3); font-weight: 700; }
|
|
712
712
|
.iv-fd small { font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
713
|
+
/* Claude grilled it (canvas GrillResult): the angle's mark, the next step, the Simulated tag; the angles and the run said once above */
|
|
714
|
+
.pp-ic.gr { background: var(--cz-bluebg); color: var(--cz-blueink); }
|
|
715
|
+
.pp-ph1 .pp-next { color: var(--cz-ink); }
|
|
716
|
+
.pp-ph1 .pp-next b { font-size: inherit; }
|
|
717
|
+
.pp-ph1 .pp-src em.pp-ang, .pp-ghd .pp-ang { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-right: 4px; border-radius: 10px; background: var(--cz-well); color: var(--cz-ink2); font-style: normal; font-weight: 800; font-size: 11px; }
|
|
718
|
+
.pp-ph1 .pp-src em.pp-sim { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-right: 4px; border-radius: 10px; background: var(--cz-riskbg); color: var(--cz-risk); font-style: normal; font-weight: 800; font-size: 11px; }
|
|
719
|
+
.pp-ghd { margin: 2px 4px 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
720
|
+
.pp-ghd span { flex: 1 1 220px; }
|
|
721
|
+
.pp-gacts { display: inline-flex; gap: 2px; flex: none; }
|
|
722
|
+
.pp-ned input { width: 100%; box-sizing: border-box; min-height: 36px; margin-top: 2px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink); font: inherit; font-size: var(--fs-2); }
|
|
723
|
+
.pp-ned input:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 1px; }
|
|
724
|
+
.pp-gmore { display: flex; align-items: center; gap: 8px; padding: 6px 2px 2px 40px; border-top: 1px solid var(--cz-hair); font-size: var(--fs-2); color: var(--cz-ink2); }
|
|
725
|
+
.pp-gmore span { flex: 1; }
|
|
726
|
+
.pp-gsw { display: none; }
|
|
713
727
|
@media (max-width: 760px) { .pp .pp-ib { width: 40px; height: 40px; } .pp-its { margin-left: 12px; } }
|
|
728
|
+
@media (max-width: 760px) {
|
|
729
|
+
/* a phone: one finding per screen, side by side (GrillResult, Phone); the presses sit under it at 44 px */
|
|
730
|
+
.pp-gl { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; scrollbar-width: none; }
|
|
731
|
+
.pp-gl::-webkit-scrollbar { display: none; }
|
|
732
|
+
.pp-gl > .pp-p.gr { flex: 0 0 100%; scroll-snap-align: start; border-top: 0; }
|
|
733
|
+
.pp-p.gr .pp-ph1 { flex-wrap: wrap; }
|
|
734
|
+
.pp-p.gr .pp-gacts { width: 100%; justify-content: flex-end; }
|
|
735
|
+
.pp-p.gr .pp-gacts .pp-ib { width: 44px; height: 44px; }
|
|
736
|
+
.pp-gsw { display: block; margin: 4px 4px 0; font-size: var(--fs-2); color: var(--cz-ink3); }
|
|
737
|
+
}
|
|
738
|
+
|
|
714
739
|
|
|
715
740
|
/* what left the ⋯ for the thing it changes (batch 16 item 5c, canvas FmI2Stage): the stage chip, the dates chip, the dashed + after the
|
|
716
741
|
* people, the ↻ beside Jira's freshness in Linked */
|
|
@@ -779,10 +804,10 @@ button.lk-mt:hover { color: var(--cz-ink) !important; }
|
|
|
779
804
|
.iva .iva-l { width: var(--lw); flex: none; min-width: 0; display: flex; align-items: center; gap: 8px; padding-right: 10px; box-sizing: border-box; text-align: left; }
|
|
780
805
|
.iva .iva-c { position: relative; flex: 1; min-width: 0; display: block; align-self: stretch; margin-right: 14px; }
|
|
781
806
|
.iva-ax { display: flex; height: 34px; background: var(--cz-well); }
|
|
782
|
-
.iva-ax .iva-c span { position: absolute; top: 9px; font-size:
|
|
807
|
+
.iva-ax .iva-c span { position: absolute; top: 9px; font-size: 11px; font-weight: 700; color: var(--cz-ink3); white-space: nowrap; transform: translateX(-2px); }
|
|
783
808
|
.iva-ax .iva-c span.b { color: var(--cz-ink2); font-weight: 800; }
|
|
784
809
|
.iva-ft { display: flex; height: 34px; position: relative; }
|
|
785
|
-
.iva-tc { position: absolute; top: 6px; transform: translateX(-50%); font-style: normal; font-size:
|
|
810
|
+
.iva-tc { position: absolute; top: 6px; transform: translateX(-50%); font-style: normal; font-size: 11px; font-weight: 800; color: var(--cz-card); background: var(--cz-blue); border-radius: 999px; padding: 2px 9px; white-space: nowrap; z-index: 3; }
|
|
786
811
|
.iva-bd { position: relative; }
|
|
787
812
|
.iva-ly { position: absolute; top: 0; bottom: -10px; left: calc(var(--an) + var(--lw)); right: 14px; pointer-events: none; z-index: 2; }
|
|
788
813
|
.iva-ly i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--cz-hair); }
|
|
@@ -802,7 +827,7 @@ button.lk-mt:hover { color: var(--cz-ink) !important; }
|
|
|
802
827
|
.iva-r.k .iva-l { padding-left: 14px; }
|
|
803
828
|
.iva-r.k .iva-l .iv-tt { font-size: var(--fs-2); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
|
|
804
829
|
.iva-r.x .iva-l .iv-tt { color: var(--cz-ink3); font-weight: 600; }
|
|
805
|
-
.iva-nt { font-size:
|
|
830
|
+
.iva-nt { font-size: 11px; font-weight: 800; white-space: nowrap; flex: none; }
|
|
806
831
|
.iva-nt.lt { color: var(--cz-late); }
|
|
807
832
|
.iva-nt.you { color: var(--cz-blueink); }
|
|
808
833
|
.iva-mg { color: var(--cz-ink2); display: inline-flex; }
|
|
@@ -834,7 +859,7 @@ button.iva-tb:hover, button.iva-r.g:not(:disabled):hover { filter: brightness(.9
|
|
|
834
859
|
.iva .iva-l { padding: 0; }
|
|
835
860
|
.iva-ax .iva-c span.mo, .iva-ly i.mo { display: none; }
|
|
836
861
|
.iva-ax .iva-c span.qm { visibility: hidden; position: relative; }
|
|
837
|
-
.iva-ax .iva-c span.qm::after { content: attr(data-q); font-size:
|
|
862
|
+
.iva-ax .iva-c span.qm::after { content: attr(data-q); font-size: 11px; visibility: visible; position: absolute; left: 0; top: 0; white-space: nowrap; }
|
|
838
863
|
.iva-r.g:not(.nm) .iva-l { display: none; }
|
|
839
864
|
.iva-r.g.nm .iva-l, .iva-r.k .iva-l { position: absolute; top: 5px; width: auto; --at: max(0px, min((100% - var(--an) - 14px) * var(--tl-p, 0), 100% - var(--an) - 234px)); left: calc(var(--an) + var(--at)); max-width: calc(100% - var(--an) - var(--at) - 8px); padding: 0; z-index: 3; gap: 5px; }
|
|
840
865
|
.iva-r.g.nm .iva-l small, .iva-r.g.nm .iva-ch { display: none; }
|
|
@@ -911,7 +936,7 @@ button.iv-dtc { min-height: 28px; background: transparent !important; padding: 0
|
|
|
911
936
|
.iv-setd { display: inline-flex !important; align-items: center; gap: 6px; min-height: 40px; font-size: var(--fs-3); font-weight: 800; color: var(--cz-blueink) !important; }
|
|
912
937
|
.iv-ro { display: flex; align-items: flex-end; gap: 28px; padding-top: 2px; }
|
|
913
938
|
.iv-ro > div { display: flex; flex-direction: column; gap: 1px; }
|
|
914
|
-
.iv-ro small { font-size:
|
|
939
|
+
.iv-ro small { font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--cz-ink3); }
|
|
915
940
|
.iv-ro b { font-size: var(--fs-5); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--cz-ink); line-height: 1.15; }
|
|
916
941
|
.iv-ro b i { font-style: normal; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); margin-left: 3px; }
|
|
917
942
|
.iv-ro .hot b, .iv-ro .hot small { color: var(--cz-late); }
|
|
@@ -962,7 +987,7 @@ button.iv-gr:hover { background: var(--cz-well) !important; }
|
|
|
962
987
|
.iv-grk { width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--cz-bluebg); color: var(--cz-blueink); }
|
|
963
988
|
.iv-gr.late .iv-grk { background: var(--cz-latebg); color: var(--cz-late); }
|
|
964
989
|
.iv-grn { flex: 1; min-width: 0; font-size: var(--fs-3); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
965
|
-
.iv-gr .iv-av { width: 28px; height: 28px; font-size:
|
|
990
|
+
.iv-gr .iv-av { width: 28px; height: 28px; font-size: 11px; background: var(--cz-well2); color: var(--cz-ink2); flex: none; }
|
|
966
991
|
.iv-grw { font-size: var(--fs-2); font-weight: 800; color: var(--cz-blueink); white-space: nowrap; }
|
|
967
992
|
.iv-gr.late .iv-grw { color: var(--cz-late); }
|
|
968
993
|
.iv-gx-dn { margin: 0; padding: 8px 8px 4px; font-size: var(--fs-2); font-weight: 700; color: var(--cz-ink3); }
|
|
@@ -972,12 +997,12 @@ button.iv-gr:hover { background: var(--cz-well) !important; }
|
|
|
972
997
|
/* the meta line: 40 px presses on one line that never wraps; the program chip truncates first */
|
|
973
998
|
.iv-gx .iv-meta { flex-wrap: nowrap; gap: 4px; min-width: 0; margin: 0; }
|
|
974
999
|
.iv-mt { width: 40px; height: 40px; flex: none; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 999px !important; color: var(--cz-ink3); }
|
|
975
|
-
.iv-mt .iv-av { width: 28px; height: 28px; font-size:
|
|
1000
|
+
.iv-mt .iv-av { width: 28px; height: 28px; font-size: 11px; background: var(--cz-well2); color: var(--cz-ink2); }
|
|
976
1001
|
.iv-ring { color: var(--cz-ink3); }
|
|
977
1002
|
.iv-ring svg { width: 30px; height: 30px; padding: 6px; box-sizing: border-box; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--cz-ink3) 60%, transparent); }
|
|
978
1003
|
.iv-avs { width: auto; padding: 0 6px !important; }
|
|
979
1004
|
.iv-avs .iv-av + .iv-av { margin-left: -8px; box-shadow: 0 0 0 2px var(--cz-card); }
|
|
980
|
-
.iv-avn { min-width: 28px; height: 28px; margin-left: -8px; border-radius: 999px; background: var(--cz-well2); color: var(--cz-ink2); font-size:
|
|
1005
|
+
.iv-avn { min-width: 28px; height: 28px; margin-left: -8px; border-radius: 999px; background: var(--cz-well2); color: var(--cz-ink2); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--cz-card); }
|
|
981
1006
|
.iv-mt.iv-addp { width: 40px !important; height: 40px; border: 0 !important; margin: 0; }
|
|
982
1007
|
.iv-mt.iv-addp svg { width: 30px; height: 30px; padding: 7px; box-sizing: border-box; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--cz-ink3) 60%, transparent); }
|
|
983
1008
|
button.iv-mt.iv-wf { padding: 0 !important; margin: 0 !important; }
|
|
@@ -1012,7 +1037,7 @@ button.iv-mt.iv-wf { padding: 0 !important; margin: 0 !important; }
|
|
|
1012
1037
|
.ab-lk { display: inline-flex !important; align-items: center; gap: 6px; font-size: var(--fs-3); font-weight: 800; color: var(--cz-blueink) !important; margin: 8px 14px 0 0; padding: 0 !important; text-decoration: none; cursor: pointer; }
|
|
1013
1038
|
.ab-ml { display: flex; flex-direction: column; gap: 14px; }
|
|
1014
1039
|
.ab-mr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
|
|
1015
|
-
.ab-mk { font-size:
|
|
1040
|
+
.ab-mk { font-size: 11px; font-weight: 800; color: var(--cz-ink3); letter-spacing: .02em; }
|
|
1016
1041
|
.ab-mn { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
|
|
1017
1042
|
.ab-mn b { font-size: var(--fs-3); font-weight: 700; }
|
|
1018
1043
|
.ab-mn span { font-size: var(--fs-2); color: var(--cz-ink3); font-weight: 600; }
|
|
@@ -1022,7 +1047,7 @@ button.iv-mt.iv-wf { padding: 0 !important; margin: 0 !important; }
|
|
|
1022
1047
|
.ab-trk.behind .fl, .ab-trk.stale .fl, .ab-trk.short .fl { fill: var(--cz-late); }
|
|
1023
1048
|
.ab-trk.on .fl, .ab-trk.ahead .fl, .ab-trk.hit .fl { fill: var(--cz-ok); }
|
|
1024
1049
|
.ab-trk .pc { stroke: var(--cz-ink); stroke-width: 2; stroke-linecap: round; opacity: .75; }
|
|
1025
|
-
.ab-lb { display: flex; justify-content: space-between; font-size:
|
|
1050
|
+
.ab-lb { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--cz-ink3); font-variant-numeric: tabular-nums; }
|
|
1026
1051
|
.ab-pl { font-size: var(--fs-2); font-weight: 800; color: var(--cz-ink2); }
|
|
1027
1052
|
.ab-pl.on, .ab-pl.ahead, .ab-pl.hit { color: var(--cz-ok); }
|
|
1028
1053
|
/* a phone, or a narrow Viewer */
|
|
@@ -1045,9 +1070,9 @@ html.ad-still .iv-mc-top.adl, html.ad-still .iv-mc-top.adl .iv-ask .ad-svg { ani
|
|
|
1045
1070
|
.mi-mk0 { stop-color: var(--cz-ink); stop-opacity: 1; } .mi-mk1 { stop-color: var(--cz-ink); stop-opacity: 0; } .mi-mkf { fill: var(--cz-ink); }
|
|
1046
1071
|
.mi-star { fill: var(--mi-star); }
|
|
1047
1072
|
.mi-qm { fill: var(--mi-qm); font-size: var(--fs-4); font-weight: 800; }
|
|
1048
|
-
.mi-tx { font: 800
|
|
1073
|
+
.mi-tx { font: 800 11px var(--cz-sans); fill: var(--cz-ink3); letter-spacing: .02em; stroke: none; }
|
|
1049
1074
|
.mi-tx.now { fill: var(--cz-blueink); } .mi-tx.now.late { fill: var(--mi-late); }
|
|
1050
|
-
.mi-ct { font: 800
|
|
1075
|
+
.mi-ct { font: 800 11px var(--cz-sans); fill: var(--cz-ink); stroke: none; }
|
|
1051
1076
|
.mi-bl { stroke: var(--cz-ink3); stroke-opacity: .3; }
|
|
1052
1077
|
.mi-fut path { fill: none; stroke: var(--cz-ink3); stroke-opacity: .55; stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
|
|
1053
1078
|
.mi-pt { fill: none; stroke-linecap: round; stroke-width: 4.5; }
|
|
@@ -1143,7 +1168,7 @@ html.ad-still .mi-svg * { animation: none !important; }
|
|
|
1143
1168
|
.iv-edj span { color: var(--cz-ink3); font-weight: 600; }
|
|
1144
1169
|
.iv-edl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
|
|
1145
1170
|
.iv .iv-edc { height: 34px; padding: 0 12px !important; border-radius: 999px !important; background: var(--cz-card) !important; display: inline-flex !important; align-items: center; gap: 6px; color: var(--cz-ink) !important; font-size: var(--fs-2); box-shadow: 0 0 0 1px var(--cz-hair); white-space: nowrap; }
|
|
1146
|
-
.iv .iv-edc small { color: var(--cz-ink3); font-weight: 700; font-size:
|
|
1171
|
+
.iv .iv-edc small { color: var(--cz-ink3); font-weight: 700; font-size: 11px; }
|
|
1147
1172
|
.iv .iv-edc b { font-weight: 800; }
|
|
1148
1173
|
.iv .iv-edc:hover, .iv .iv-edc[aria-expanded="true"] { box-shadow: 0 0 0 1.5px var(--cz-blue); }
|
|
1149
1174
|
.iv .iv-edc.dash { background: transparent !important; box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--cz-ink3) 55%, var(--cz-card)) !important; color: var(--cz-ink2) !important; font-weight: 700; }
|
|
@@ -32,7 +32,7 @@ export function mountFirst() {
|
|
|
32
32
|
b.disabled = true;
|
|
33
33
|
const u = await pmPost('/api/onboarding/undo', { ws, import_id: id });
|
|
34
34
|
if (!u || !u.ok) { b.disabled = false; const m = sec.querySelector('#wlUndoErr'); m.textContent = (u && u.error) || 'Undo did not work.'; m.hidden = false; return; }
|
|
35
|
-
location.assign('/premium
|
|
35
|
+
location.assign('/premium.html?onboard=1');
|
|
36
36
|
};
|
|
37
37
|
return sec;
|
|
38
38
|
}
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
* window.czViewer is feature-detected, with this page's side panel as the fallback. A report file opens in the report reader
|
|
30
30
|
* (pm/premium-report-read.js), the report panel in the Viewer card. The page has no #dlg. */
|
|
31
31
|
import { $, $$, esc, toast, wireRail, setPageGaps } from './premium-shell.js';
|
|
32
|
-
import { pmPost } from './http.js';
|
|
32
|
+
import { pmPost, pmGet } from './http.js';
|
|
33
|
+
import * as GW from './grill-words.js'; // Grill and Forecast screens (canvas FcIntel): the goal that will miss, and what Claude's grill found
|
|
33
34
|
import * as PK from './cozy-pick.js'; // the one product picker Home, Board and Insights share (batch 12 item 5)
|
|
34
35
|
import { openReport } from './premium-report-read.js';
|
|
35
36
|
import { mountNav } from './cozy-nav.js';
|
|
@@ -400,11 +401,44 @@ function okrLine() {
|
|
|
400
401
|
const news = GC.lineOf(listGoals(), M.board.name) || (base.tone === 'drafts' || base.tone === 'calm' ? GC.draftsLine(tableRows(), M.board.name) : null);
|
|
401
402
|
return news ? Object.assign({}, news, { keepAll: Math.max(news.keepAll || 0, base.keepAll || 0) }) : base;
|
|
402
403
|
}
|
|
404
|
+
/* ── the forecast ✦ line (canvas FcIntel): the key result that will miss (or drifted to at risk), first. When Claude already grilled an initiative
|
|
405
|
+
* that moves it, the line says so and ✦ opens those findings (pm/ini-props.js). One line at most; a calm forecast says nothing. ── */
|
|
406
|
+
let FCG = null;
|
|
407
|
+
const FC_RANK = { 'will-miss': 0, 'at-risk': 1 };
|
|
408
|
+
async function fcGrillLoad() {
|
|
409
|
+
if (PF || !M) { FCG = null; return; }
|
|
410
|
+
const bad = listGoals().filter((g) => g.forecast && (g.forecast.state === 'will-miss' || (g.forecast.state === 'at-risk' && g.forecast.driftFrom)))
|
|
411
|
+
.sort((a, b) => FC_RANK[a.forecast.state] - FC_RANK[b.forecast.state]);
|
|
412
|
+
if (!bad.length) { FCG = null; return; }
|
|
413
|
+
const ids = [...new Set(bad.flatMap((g) => (g.moves || []).map((r) => r.id)))].slice(0, 60);
|
|
414
|
+
const r = ids.length && M.board.ws ? await pmGet('/api/grill?ws=' + encodeURIComponent(M.board.ws) + '&inis=' + ids.map(encodeURIComponent).join(',')).catch(() => null) : null;
|
|
415
|
+
const runs = (r && r.ok && r.runs) || {};
|
|
416
|
+
const withRun = (g) => (g.moves || []).map((x) => ({ ini: x, run: runs[x.id] })).filter((x) => x.run && x.run.n > 0).sort((a, b) => String(b.run.at).localeCompare(String(a.run.at)))[0] || null;
|
|
417
|
+
const g = bad.find(withRun) || bad[0], hit = withRun(g);
|
|
418
|
+
FCG = { g, ini: hit ? hit.ini : null, run: hit ? hit.run : null };
|
|
419
|
+
}
|
|
420
|
+
function fcGrillItem() {
|
|
421
|
+
if (!FCG) return null;
|
|
422
|
+
const { g, ini, run } = FCG, F = g.forecast;
|
|
423
|
+
const text = g.title + (F.state === 'will-miss' ? ' will miss the goal.' : ' is at risk.');
|
|
424
|
+
const range = typeof F.low === 'number' && typeof F.high === 'number' ? 'Likely ' + fcV(g, F.likely) + ', range ' + fcV(g, F.low) + ' to ' + fcV(g, F.high) + '.' : '';
|
|
425
|
+
const drift = F.driftFrom ? ' Was on track on ' + md(Date.parse(F.driftFrom)) + '.' : '';
|
|
426
|
+
const why = run ? 'I grilled ' + ini.title + ' ' + GW.whenWord(run.at) + ': ' + run.n + (run.n === 1 ? ' finding' : ' findings') + ' wait under ✦.' + drift : range + drift;
|
|
427
|
+
return { text, why: why.trim(), fcGrill: run ? { id: ini.id, title: ini.title, n: run.n } : null };
|
|
428
|
+
}
|
|
429
|
+
/** ✦ on the forecast line: the initiative's findings in the Viewer, the same ✓ / ✎ / ✕ as on its own page. */
|
|
430
|
+
async function openFcGrill(x) {
|
|
431
|
+
const r = await pmGet('/api/proposals?ws=' + encodeURIComponent(M.board.ws || '') + '&board=' + encodeURIComponent(M.board.id || '') + '&initiative=' + encodeURIComponent(x.id)).catch(() => null);
|
|
432
|
+
if (!r || r.ok === false) { toast((r && r.error) || 'The findings could not be read.'); return; }
|
|
433
|
+
const IP = await import('./ini-props.js');
|
|
434
|
+
IP.open({ id: x.id, title: x.title, props: r.props }, { where: () => ({ ws: M.board.ws, board: M.board.id }), reload: () => load(), toast: (m, undo) => (undo ? toast(m, { label: 'Undo', fn: undo }) : toast(m)) });
|
|
435
|
+
}
|
|
403
436
|
function stripList() {
|
|
404
437
|
const I0 = M.insight || { none: true, text: '' };
|
|
405
438
|
// Your impact (batch 16 item 7, GmA4Moments): a key result that moved after your work, as one more ✦ line, with its source to open
|
|
406
439
|
const im = PF ? null : IM.intelItem(), mine = im ? [im] : [];
|
|
407
|
-
const
|
|
440
|
+
const fcg = PF ? null : fcGrillItem();
|
|
441
|
+
const ok = PF ? [] : [Object.assign({ okr: true, text: '', why: '' }, (() => { const L = okrLine(); return { text: L.head, why: L.sub, tone: L.tone, keepAll: L.keepAll, start: !!L.start, retry: !!L.retry }; })())].concat(fcg ? [fcg] : []);
|
|
408
442
|
if (I0.none) return ok.concat(PF ? [] : RI.stripItems(), mine);
|
|
409
443
|
const finds = [{ text: I0.text, why: I0.why || '', chart: I0.chart, move: I0.move || null, calm: !!I0.calm }].concat((I0.more || []).map((x) => ({ text: x.text, why: x.why || '', chart: x.chart, move: x.move || null })));
|
|
410
444
|
// a calm finding ("Nothing stands out") says what the ✦ line already says: it is left out
|
|
@@ -438,9 +472,10 @@ function drawStrip() {
|
|
|
438
472
|
// the ✦ line's own press: ✓✓ keeps every draft (GsM1, GsM5); with nothing to read, ✦ asks Claude to draft the goals
|
|
439
473
|
const okAct = !f.okr ? '' : f.keepAll ? `<button type="button" class="cz-ib sm solid" data-okl="keep-all" aria-label="Keep all ${f.keepAll}" title="Keep all ${f.keepAll}">${OK.SV(OK.P.checks)}</button>`
|
|
440
474
|
: f.start && M.board.ws ? `<button type="button" class="cz-ib sm solid" data-okl="start" aria-label="${f.retry ? 'Try drafting again' : 'Draft them'}" title="${f.retry ? 'Try again' : 'Draft them'}">${SV(I.spark)}</button>` : '';
|
|
441
|
-
|
|
475
|
+
const fcAct = f.fcGrill ? `<button type="button" class="cz-ib sm solid" data-fcg aria-label="${esc('Open the ' + f.fcGrill.n + (f.fcGrill.n === 1 ? ' finding' : ' findings') + ' on ' + f.fcGrill.title)}" title="Open the findings">${SV(I.spark)}</button>` : '';
|
|
476
|
+
if (!f.report) $('#insAct').innerHTML = mvAct + okAct + fcAct;
|
|
442
477
|
if (open.length > 1) {
|
|
443
|
-
if (!f.report) $('#insAct').innerHTML = `<button type="button" class="cz-ib sm" id="insNo" aria-label="Not now" title="Not now">${SV(I.x)}</button>` + mvAct + okAct;
|
|
478
|
+
if (!f.report) $('#insAct').innerHTML = `<button type="button" class="cz-ib sm" id="insNo" aria-label="Not now" title="Not now">${SV(I.x)}</button>` + mvAct + okAct + fcAct;
|
|
444
479
|
$('#insPg').innerHTML = L.map((x, i) => `<button type="button" class="${i === insIdx ? 'on' : ''}" data-ins="${i}" aria-label="Finding ${i + 1} of ${L.length}" aria-pressed="${i === insIdx}"${insSkip.has(i) ? ' hidden' : ''}></button>`).join('');
|
|
445
480
|
}
|
|
446
481
|
if (f.impact && f.impact.url) $('#insAct').insertAdjacentHTML('beforeend', `<a class="cz-ib sm" href="${esc(f.impact.url)}"${/^https:/i.test(f.impact.url) ? ' target="_blank" rel="noopener noreferrer"' : ''} aria-label="Open the source: ${esc(f.impact.label)}" title="Open the source">${SV(I.open || 'M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5')}</a>`);
|
|
@@ -448,6 +483,7 @@ function drawStrip() {
|
|
|
448
483
|
$('#insHero').addEventListener('click', async (e) => {
|
|
449
484
|
if (e.target.closest('[data-rp]')) { await RI.stripPress(e); return; }
|
|
450
485
|
const k = e.target.closest('[data-okl]'); if (k) { await draftPress(k.dataset.okl, null, k); return; }
|
|
486
|
+
if (e.target.closest('[data-fcg]')) { const f = stripList()[insIdx]; if (f && f.fcGrill) await openFcGrill(f.fcGrill); return; }
|
|
451
487
|
const b = e.target.closest('[data-mv]'); if (b) { await pressMove(b); return; }
|
|
452
488
|
const d = e.target.closest('[data-ins]'); if (d) { insIdx = +d.dataset.ins; drawStrip(); return; }
|
|
453
489
|
if (e.target.closest('#insNo')) { insSkip.add(insIdx); const L = stripList(), n = L.findIndex((x, i) => i > insIdx && !insSkip.has(i)); insIdx = n >= 0 ? n : L.findIndex((x, i) => !insSkip.has(i)); drawStrip(); }
|
|
@@ -930,7 +966,8 @@ function budgetRow(b) {
|
|
|
930
966
|
+ `<div class="nm" role="cell">${R && R.over ? OK.dotHtml('broken') : ''}<span><b>${markHtml(b.title)}</b><small><span class="cz-pill q ins-type">Stay within</span><span class="ins-sub">always on${cap !== null ? ' · cap ' + pct(cap) + ' of a quarter' : ''}</span></small></span></div>`
|
|
931
967
|
+ `<div class="val" role="cell">${val}${bar}</div>`
|
|
932
968
|
+ `<div class="sofar" role="cell">${R && R.share !== null && cap !== null ? bandSvg([{ at: M.today || iso(today()), v: R.share * 100 }], cap * 100, true, R.over ? 'late' : 'ok', b.title + ': ' + pct(R.share) + ' of open initiatives, the green band is inside its ' + pct(cap) + ' cap') : ''}<span class="note">${esc(b.covers ? 'Covers ' + b.covers : 'What it covers is not declared')}</span></div>`
|
|
933
|
-
|
|
969
|
+
// its burn (lib/forecast.js budgetBurn, canvas FcIntel): the weeks left at this pace of spend, only under 8 (zero is silence)
|
|
970
|
+
+ `<div class="pace" role="cell"><b style="color:${pace[0]}">${esc(pace[1])}</b><div class="note">${esc(pace[2])}</div>${b.burn && Number.isFinite(b.burn.weeksLeft) ? `<div class="note ins-burn"><span class="cz-pill risk">${b.burn.weeksLeft === 1 ? '1 week' : b.burn.weeksLeft + ' weeks'} left</span> at this pace of spend</div>` : ''}</div>`
|
|
934
971
|
+ `<div class="mv" role="cell">${b.moves.length ? b.moves.slice(0, 3).map((r) => initRow(r)).join('') : '<span class="note">No initiative anchors to it</span>'}</div></div>` + draftsRow(b.id);
|
|
935
972
|
}
|
|
936
973
|
const GRP_PILL = (L) => {
|
|
@@ -1978,6 +2015,7 @@ async function load() {
|
|
|
1978
2015
|
// an old tab link (Insights had Goals, Outcomes and Library): it lands on the section or the panel, once
|
|
1979
2016
|
if (first) { const t = new URLSearchParams(location.search).get('tab'); if (t === 'outcomes' || t === 'library') setTab(t); }
|
|
1980
2017
|
if (first) draftsLoad();
|
|
2018
|
+
if (!PF) fcGrillLoad().then(() => { if (M && FCG) drawStrip(); }).catch(() => {});
|
|
1981
2019
|
if (!PF) { await noteOpen(); RI.loadProposals(M.board.ws, M.board.id).then(() => { if (M) drawStrip(); }); IM.readWeek().then(() => { if (M && IM.intelItem()) drawStrip(); }).catch(() => {}); }
|
|
1982
2020
|
}
|
|
1983
2021
|
/* a report from Intelligence (batch 15 item 4): the view on screen is its first scope; a saved dashboard is its own */
|
|
@@ -10,7 +10,7 @@ export const TOOLS = [
|
|
|
10
10
|
{ source: 'inbox', brief: 'mail', name: 'Inbox', adds: 'The threads waiting on you, by subject and sender only. No message text is kept.' },
|
|
11
11
|
{ source: 'slack', brief: 'slack', name: 'Slack', adds: 'Messages that mention you and your direct messages, as short summaries.' },
|
|
12
12
|
];
|
|
13
|
-
export const STEPS = [['
|
|
13
|
+
export const STEPS = [['claude', 'Connect Claude'], ['sources', 'Add your work'], ['found', 'Review and start']];
|
|
14
14
|
export const FIELDS = ['name', 'role', 'work', 'duties'];
|
|
15
15
|
|
|
16
16
|
const str = (v) => (typeof v === 'string' ? v : '');
|