create-pmos 0.475.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/package.json +14 -20
- 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/changelog.json +13 -0
- package/workspace/guide/claude-proposes.md +5 -1
- package/workspace/guide/settings.md +9 -0
- package/workspace/lib/proposals.js +4 -3
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-grill.js +70 -0
- package/workspace/lib/routes-proposals.js +8 -6
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/cozy-ev.css +6 -0
- package/workspace/public/pm/cozy-insights.css +2 -0
- package/workspace/public/pm/cozy-settings.js +27 -3
- 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 +31 -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-insights.js +43 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.476.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -32,6 +32,19 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.476.0",
|
|
37
|
+
"at": "2026-11-01T06:51:29.850Z",
|
|
38
|
+
"f": 3,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1132,
|
|
42
|
+
"t": "Grill and Forecast screens: Claude's checks, grill findings, forecast ✦ line, Home line",
|
|
43
|
+
"s": "Grill and Forecast screens: Claude's checks, grill findings, forecast ✦ line, Home line",
|
|
44
|
+
"k": "new"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
35
48
|
{
|
|
36
49
|
"v": "0.475.0",
|
|
37
50
|
"at": "2026-11-01T06:12:23.972Z",
|
|
@@ -278,25 +291,6 @@
|
|
|
278
291
|
"k": "new"
|
|
279
292
|
}
|
|
280
293
|
]
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"v": "0.456.0",
|
|
284
|
-
"at": "2026-10-29T14:52:35.157Z",
|
|
285
|
-
"f": 3,
|
|
286
|
-
"prs": [
|
|
287
|
-
{
|
|
288
|
-
"n": null,
|
|
289
|
-
"t": "Compact initiative summary above full-width tasks",
|
|
290
|
-
"s": "Compact initiative summary above full-width tasks",
|
|
291
|
-
"k": "fix"
|
|
292
|
-
},
|
|
293
|
-
{
|
|
294
|
-
"n": 1102,
|
|
295
|
-
"t": "Compact initiative summary above full-width tasks",
|
|
296
|
-
"s": "The desktop summary is a compact horizontal header, followed by milestones and full-width Tasks sized to their content.",
|
|
297
|
-
"k": "fix"
|
|
298
|
-
}
|
|
299
|
-
]
|
|
300
294
|
}
|
|
301
295
|
]
|
|
302
296
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Eval calibration log"
|
|
4
4
|
description: "Append-only record of every PM override of an evaluator verdict."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-01T06:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-01T06:51:27Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-01T06:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-01T06:51:27Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-01T06:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-01T06:51:27Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.476.0",
|
|
4
|
+
"at": "2026-11-01T06:51:29.850Z",
|
|
5
|
+
"f": 3,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1132,
|
|
9
|
+
"t": "Grill and Forecast screens: Claude's checks, grill findings, forecast ✦ line, Home line",
|
|
10
|
+
"s": "Grill and Forecast screens: Claude's checks, grill findings, forecast ✦ line, Home line",
|
|
11
|
+
"k": "new"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
2
15
|
{
|
|
3
16
|
"v": "0.475.0",
|
|
4
17
|
"at": "2026-11-01T06:12:23.972Z",
|
|
@@ -62,10 +62,14 @@ Claude also tests an initiative without being asked. There is no Grill button an
|
|
|
62
62
|
- when its scope or dates move a lot (30% more or fewer tasks, or the end moves 14 days or more),
|
|
63
63
|
- once a month, when it is running and has late work.
|
|
64
64
|
|
|
65
|
-
Each finding is a proposal in the group "Claude grilled it", under the same ✦.
|
|
65
|
+
Each finding is a proposal in the group "Claude grilled it", under the same ✦. Each row shows the mark and the name of the angle that found it: Premortem, Red team, Voices, Reframe, Scope or What-if. Voices are simulated from your stored research and meeting notes, only with 3 sources or more, and carry the tag "Simulated, not evidence". A What-if carries "Simulated, not the plan". Each finding ends with one next step. ✓ adds that step as a task. ✎ lets you write the step in your own words first; ✓ then adds your words. ✕ drops the finding. A finding never rides on the header's ✓. Above the findings, one quiet line names the angles Claude chose, when and why it ran, and what the run cost. Three findings show at a time; "+N smaller findings" and its ⋯ show the rest. On a phone the findings are cards side by side: swipe for the next. With no findings, nothing shows.
|
|
66
|
+
|
|
67
|
+
When Claude grilled an initiative this week and left findings, Home says so in one line under "Good morning", and its ✦ opens the findings. When a key result will miss its goal, or drifted to at risk, Intelligence's ✦ line names it and the initiative Claude grilled for it; its ✦ opens those findings.
|
|
66
68
|
|
|
67
69
|
Every run counts against a monthly credit cap. A run starts only when the cap holds its whole budget, and it stops at that budget, so the month never goes past the cap. At the cap Claude pauses until the next month.
|
|
68
70
|
|
|
71
|
+
Set when Claude grills, and how much it may spend, in **Settings › Claude's checks** (see the Settings guide), or with these commands:
|
|
72
|
+
|
|
69
73
|
- `pmos grill mode [full|exits|off]`: when Claude grills by itself. `exits` grills only before a stage ends. `PMOS_GRILL=off` turns it off on this computer.
|
|
70
74
|
- `pmos grill cap [<dollars>]`: the monthly credit cap, in US dollars (10 by default).
|
|
71
75
|
- `pmos grill spend`: what this month spent, each run's cost, and whether Claude paused.
|
|
@@ -36,6 +36,7 @@ Settings is not a tab. While it is open, no tab is selected. Press a tab to go b
|
|
|
36
36
|
| Privacy and data | A list of what leaves this computer and when. Whether a TypeSafe key is saved, the local model that answers when there is no key (Off, Winnow or Laya), and the data folder. |
|
|
37
37
|
| Appearance | The theme (Same as system, Light or Dark) and the page that opens first. |
|
|
38
38
|
| Claude | The Claude profile that new Claude sessions start with, and the Anthropic API key for Claude's own runs on the API (see below). |
|
|
39
|
+
| Claude's checks | When Claude grills an initiative by itself (Full, Only at stage exits, or Off) and the monthly credit for its checks ($5, $10, $20 or $50), with what this month used. See below. |
|
|
39
40
|
| Updates | The version of the app and of each workspace's kit, the check for updates, and what changed in each week's kits (what's new). See below. |
|
|
40
41
|
|
|
41
42
|
Type in **Search settings** to find a setting in any section. Press **Open section** to go to its section.
|
|
@@ -80,6 +81,14 @@ Under the update card, **Updates** shows what changed in the published kits. **T
|
|
|
80
81
|
|
|
81
82
|
**API key.** Some runs of Claude, for example Grill, can use the Claude API and not a Claude session. Paste an Anthropic API key and press **Save** to turn this on. The key stays on this computer, in a file only you can read, outside every repository. PMOS never shows the key again: the row only says that a key is set. Press **Remove** to delete it. A key saved here is used before `ANTHROPIC_API_KEY`. A command that a run starts does not get the key. Only the computer that runs the workspace can change it. Set `PMOS_GRILL_API=off` to stop runs on the API.
|
|
82
83
|
|
|
84
|
+
## Claude's checks: when Claude grills, and what it may spend
|
|
85
|
+
|
|
86
|
+
Claude grills an initiative by itself and files what it finds under the initiative's ✦ (see the Claude proposes guide). There is no button to start it. This section is the only control.
|
|
87
|
+
|
|
88
|
+
**Grill by itself.** Full grills before an initiative leaves a stage, when a forecast turns at risk or will miss, when scope or dates move a lot, and once a month on running work with late work. Only at stage exits grills only before a stage ends. Off stops it. When `PMOS_GRILL=off` is set in the environment, the row says Off and cannot be changed here.
|
|
89
|
+
|
|
90
|
+
**Monthly credit for checks.** The most Claude's checks may spend in a month: $5, $10, $20 or $50. The bar under it shows what this month used. At the limit Claude pauses and the row says so; it never spends beyond the limit. `pmos grill mode` and `pmos grill cap` change the same two settings.
|
|
91
|
+
|
|
83
92
|
## Where the settings are kept
|
|
84
93
|
|
|
85
94
|
The settings that had a home before this page keep it. For example, the recording engine is kept by the notes engine, Validate consent by the validate route, and the theme and the new-session defaults in this browser.
|
|
@@ -304,7 +304,7 @@ const ORDER = { found: 0, dates: 1, status: 2, names: 3, links: 4, grill: 5 };
|
|
|
304
304
|
const GRILL_SHOWN = 3;
|
|
305
305
|
/**
|
|
306
306
|
* One initiative's proposals, as the ✦ and the Viewer draw them, or null when there is nothing to show.
|
|
307
|
-
* o: { T (Map uid → task), today (iso), stages: [{ key, name }], links: approved task links, settle, linkProps: [task-links proposal] }
|
|
307
|
+
* o: { T (Map uid → task), today (iso), stages: [{ key, name }], links: approved task links, settle, linkProps: [task-links proposal], grillAll (no fold) }
|
|
308
308
|
* → { n, sure, look: { run, why, at, ended, stopped, sources: [{ source, name, state, n, what }] } | null, groups: [{ group, props: [p] }], t }
|
|
309
309
|
*/
|
|
310
310
|
function viewOf(F, ini, o = {}) {
|
|
@@ -324,8 +324,9 @@ function viewOf(F, ini, o = {}) {
|
|
|
324
324
|
}
|
|
325
325
|
// Grill findings (lib/grill.js): 3 show, the best first (rank); the rest wait folded and come up as the PM keeps or drops one
|
|
326
326
|
const grill = props.filter((p) => p.group === 'grill').sort((a, b) => ((a.data && a.data.rank) || 5) - ((b.data && b.data.rank) || 5) || String(b.at).localeCompare(String(a.at)));
|
|
327
|
-
|
|
328
|
-
|
|
327
|
+
// o.grillAll (the PM pressed "Show the rest", or a keep names a folded one): every finding shows
|
|
328
|
+
const grillMore = o.grillAll ? 0 : Math.max(0, grill.length - GRILL_SHOWN);
|
|
329
|
+
if (!o.grillAll) for (const p of grill.slice(GRILL_SHOWN)) props.splice(props.indexOf(p), 1);
|
|
329
330
|
if (today != null) for (const p of datesOf(ini, T, { today, filed: [...F.props.values()].filter((x) => x.group === 'dates' && x.ini === ini), stages: o.stages, links: o.links, settle: o.settle, drops: F.drops })) if (!kept.has(p.id + ':' + p.sig)) props.push(p);
|
|
330
331
|
for (const lp of o.linkProps || []) props.push({ id: 'lk:' + lp.id, group: 'links', type: lp.kind, section: 'sure', link: lp, title: '', why: lp.why || '', sources: [], items: [] });
|
|
331
332
|
// ✕ on one item drops that item for good: the page sends its signature
|
|
@@ -55,6 +55,7 @@ const MODULES = Object.freeze([
|
|
|
55
55
|
'routes-board-grill', // premium-uncovered-features (Board): a new initiative's Why, material and first questions (page press; file mode)
|
|
56
56
|
'routes-insights-premium', // briefing-premium-insights: the premium Insights page's model from the KR metric records and report files (read-only)
|
|
57
57
|
'routes-forecast', // build brief Grill and Forecast F-A: a goal forecast's kept baseline, and the forecasts that turned
|
|
58
|
+
'routes-grill', // Grill and Forecast screens: Claude's checks for the pages (mode, cap, spend, each initiative's last run, Home's one line; read-only)
|
|
58
59
|
'routes-home-desk', // premium-agreed-design (Home): seen marks, queued messages, the weekly update's recipients and sends, stakeholders (page press; file mode)
|
|
59
60
|
'routes-live', // batch 6 item 2: the Live pill's sessions and the titles of their initiatives (read-only)
|
|
60
61
|
'routes-home-review', // premium-uncovered-features (Home): the weekly review's four steps and the untouched work looked at (page press; file mode)
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* routes-grill.js — what the pages show of Claude's checks (Grill and Forecast screens: canvas GrillEntry, GrillResult, FcIntel, FcPhone).
|
|
3
|
+
*
|
|
4
|
+
* GET /api/grill?ws=<id>[&inis=<id,id,…>]
|
|
5
|
+
* → { ok, mode, envOff, cap, spent, left, month, paused, runs: { [ini]: run }, news: run | null }
|
|
6
|
+
* mode, cap Settings › Claude's checks (lib/settings-store.js grill.mode, grill.cap; POST /api/settings writes them)
|
|
7
|
+
* spent, left this month, in US dollars (lib/grill.js spentIn: an open run counts its whole budget)
|
|
8
|
+
* paused the cap held a run back this month
|
|
9
|
+
* runs for each initiative asked for: its last ended run { ini, why, at, cost, n, turn? }; n = its open grill findings
|
|
10
|
+
* news the newest ended run of this workspace in the last 7 days that left open findings (Home's one line); null is silence
|
|
11
|
+
* run.turn: { scope, id, to } when the run started on a forecast turn (lib/forecast.js `turned` line, its key)
|
|
12
|
+
*
|
|
13
|
+
* Read-only: no run starts from a page (Claude grills by itself, lib/grill-runs.js), and the settings are written by /api/settings. */
|
|
14
|
+
const G = require('./grill.js');
|
|
15
|
+
const PR = require('./proposals.js');
|
|
16
|
+
const SS = require('./settings-store.js');
|
|
17
|
+
|
|
18
|
+
const WEEK = 7 * 864e5;
|
|
19
|
+
const ID_RE = /^[a-z0-9][\w.-]{0,80}$/i;
|
|
20
|
+
|
|
21
|
+
/** The open grill findings of one initiative, every one (no fold). */
|
|
22
|
+
function openFindings(F, ini) {
|
|
23
|
+
try { const v = PR.viewOf(F, ini, { grillAll: true }); const g = v && v.groups.find((x) => x.group === 'grill'); return g ? g.props.length : 0; } catch { return 0; }
|
|
24
|
+
}
|
|
25
|
+
/** key forecast:<ws>:<scope>:<id>:<at> → { scope, id, to } from the forecast ledger's turned line at that time, else { scope, id } */
|
|
26
|
+
function turnOf(r, turned) {
|
|
27
|
+
const m = /^forecast:[^:]*:(goal|initiative):(.+):(\d{4}-.+)$/.exec(r.key || '');
|
|
28
|
+
if (!m) return null;
|
|
29
|
+
const t = (turned || []).find((x) => x.scope === m[1] && x.id === m[2] && String(x.at) === m[3]);
|
|
30
|
+
return { scope: m[1], id: m[2], ...(t ? { to: t.to } : {}) };
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function model(ctx, w, inis, now = Date.now()) {
|
|
34
|
+
const rt = ctx.runtimeDir || null;
|
|
35
|
+
const F = rt ? G.read(rt) : G.fold([]);
|
|
36
|
+
const get = (k) => { try { return SS.get(rt, k); } catch { return undefined; } };
|
|
37
|
+
const cap = Number(get('grill.cap')), month = G.monthOf(now), spent = G.spentIn(F, month);
|
|
38
|
+
let dir = null;
|
|
39
|
+
try { dir = ctx.stateDirFor ? ctx.stateDirFor(w) : null; } catch { dir = null; }
|
|
40
|
+
const P = dir ? PR.read(dir) : null;
|
|
41
|
+
let turned = [];
|
|
42
|
+
try { turned = dir ? require('./forecast.js').turnedSince(dir, null) : []; } catch { turned = []; }
|
|
43
|
+
const ended = [...F.runs.values()].filter((r) => r.ended && r.ok !== false && r.ws === w.id).sort((a, b) => String(a.endAt || a.at).localeCompare(String(b.endAt || b.at)));
|
|
44
|
+
const shape = (r) => ({ ini: r.ini, why: r.why, at: r.endAt || r.at, cost: r.cost, n: P ? openFindings(P, r.ini) : 0, ...(r.why === 'forecast' ? { turn: turnOf(r, turned) } : {}) });
|
|
45
|
+
const runs = {};
|
|
46
|
+
for (const id of inis) { const r = ended.filter((x) => x.ini === id).pop(); if (r) runs[id] = shape(r); }
|
|
47
|
+
let news = null;
|
|
48
|
+
for (let i = ended.length - 1; i >= 0 && !news; i--) {
|
|
49
|
+
const r = ended[i];
|
|
50
|
+
if (now - (Date.parse(r.endAt || r.at) || 0) > WEEK) break;
|
|
51
|
+
const s = shape(r);
|
|
52
|
+
if (s.n > 0) news = s;
|
|
53
|
+
}
|
|
54
|
+
return { ok: true, mode: G.modeOf(get, ctx.env || process.env), envOff: G.off(ctx.env || process.env), cap: Number.isFinite(cap) ? cap : null,
|
|
55
|
+
spent, left: Number.isFinite(cap) ? Math.max(0, Math.round((cap - spent) * 100) / 100) : null, month, paused: F.paused.has(month), runs, news };
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function handle(req, res, url, ctx) {
|
|
59
|
+
if (url.pathname !== '/api/grill') return false;
|
|
60
|
+
if (req.method !== 'GET') { ctx.json(res, { ok: false, error: 'GET only' }, 405); return true; }
|
|
61
|
+
const wsId = url.searchParams.get('ws');
|
|
62
|
+
let w = null;
|
|
63
|
+
try { w = ctx.getWs(wsId || null); } catch { w = null; }
|
|
64
|
+
if (!w || (wsId && w.id !== wsId)) { ctx.json(res, { ok: false, error: 'no such workspace' }, 404); return true; }
|
|
65
|
+
const inis = String(url.searchParams.get('inis') || '').split(',').map((s) => s.trim()).filter((s) => ID_RE.test(s)).slice(0, 60);
|
|
66
|
+
ctx.json(res, model(ctx, w, inis), 200);
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
module.exports = { prefixes: ['/api/grill'], handle, model, openFindings };
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* initiative goes through the board's own writer (routes-boards writeAs), so its checks and its ledger line are the route's own. A Jira
|
|
5
5
|
* ticket is never written: a proposal for one becomes a drafted comment in the outbox (rule 8). A draft plan is never touched (rule 9).
|
|
6
6
|
*
|
|
7
|
-
* GET /api/proposals?ws&board&initiative
|
|
7
|
+
* GET /api/proposals?ws&board&initiative[&grill=all] → { ok, props, found } props: lib/proposals.js viewOf (null: nothing to show); grill=all unfolds every grill finding
|
|
8
8
|
* POST /api/proposals/keep { ws, board, initiative, ids?: [id] | all: true, choices?: { <from>><to>: 'keep' | 'ignore' } }
|
|
9
9
|
* → { ok, batch, said, counts, props } ✓ one proposal, or ✓ in the header (all: every one Claude is sure of;
|
|
10
10
|
* Check these and a Jira ticket's comment never ride on it). One batch, one toast, one Undo.
|
|
@@ -41,7 +41,7 @@ function stagesOf(ctx, p, ini) {
|
|
|
41
41
|
try { const r = RB.initiativeWorkflow(ctx, p.w, ini); if (r.ok) return (r.row.wfStages || []).map((s) => ({ key: s.key, name: s.name })); } catch { /* none */ }
|
|
42
42
|
return [];
|
|
43
43
|
}
|
|
44
|
-
function view(ctx, p, ini, f) {
|
|
44
|
+
function view(ctx, p, ini, f, o = {}) {
|
|
45
45
|
const dir = dirOf(ctx, p.w); if (!dir) return null;
|
|
46
46
|
f = f || TLR.frame(ctx, p.w, p.board);
|
|
47
47
|
if (!f) return null;
|
|
@@ -50,7 +50,7 @@ function view(ctx, p, ini, f) {
|
|
|
50
50
|
let linkProps = [];
|
|
51
51
|
try { const lv = TL.viewOf(LF, ini, { T: f.T, today: todayIso(), limit: f.limit, src: TLR.sourcesOf(p.w.root, ini, f.items) }); linkProps = lv ? lv.proposals : []; } catch { linkProps = []; }
|
|
52
52
|
const T = new Map(); for (const x of f.items) { if (!x || !(x.uid || x.key)) continue; const t = PR.taskOf(x); T.set(t.uid, t); }
|
|
53
|
-
return PR.viewOf(F, ini, { T, today: todayIso(), stages: stagesOf(ctx, p, ini), links, settle: TL.settle, linkProps });
|
|
53
|
+
return PR.viewOf(F, ini, { T, today: todayIso(), stages: stagesOf(ctx, p, ini), links, settle: TL.settle, linkProps, grillAll: !!o.grillAll });
|
|
54
54
|
}
|
|
55
55
|
function viewFor(ctx, w, boardId, ini) {
|
|
56
56
|
const fr = RB.frameFor(ctx, w), board = fr.boards.find((b) => b.id === boardId);
|
|
@@ -134,7 +134,9 @@ function applyOne(ctx, p, g, f, ini, x, choices, outbox) {
|
|
|
134
134
|
}
|
|
135
135
|
} else if (x.group === 'grill') {
|
|
136
136
|
// a grill finding (lib/grill.js): ✓ adds its next step as a task, with the finding and its sources in the notes
|
|
137
|
-
|
|
137
|
+
// ✎ on the finding: the PM's own words for the next step (choices[id]) replace Claude's
|
|
138
|
+
const own = choices && typeof choices[x.id] === 'string' ? choices[x.id].replace(/\s+/g, ' ').trim().slice(0, 200) : '';
|
|
139
|
+
const next = own || (x.data && x.data.next);
|
|
138
140
|
if (next) {
|
|
139
141
|
const r = RB.taskAdd(ctx, { ws: p.w.id, board: p.board.id, initiative: ini, title: String(next).slice(0, 200),
|
|
140
142
|
notes: [x.title, x.why, source ? 'From ' + source : ''].filter(Boolean).join('\n').slice(0, 1900) }, g);
|
|
@@ -208,7 +210,7 @@ const READS = {
|
|
|
208
210
|
const ini = url.searchParams.get('initiative') || '';
|
|
209
211
|
if (!ini) return fail(ctx, res, 400, 'initiative is required');
|
|
210
212
|
const dir = dirOf(ctx, p.w);
|
|
211
|
-
ctx.json(res, { ok: true, props: dir ? view(ctx, p, ini) : null, found: dir ? PR.foundOf(PR.read(dir), ini) : null });
|
|
213
|
+
ctx.json(res, { ok: true, props: dir ? view(ctx, p, ini, null, { grillAll: url.searchParams.get('grill') === 'all' }) : null, found: dir ? PR.foundOf(PR.read(dir), ini) : null });
|
|
212
214
|
},
|
|
213
215
|
'/api/proposals/history': (ctx, res, url) => {
|
|
214
216
|
const p = RB.postFrame(ctx, res, { ws: url.searchParams.get('ws') || null, board: url.searchParams.get('board') || '' });
|
|
@@ -228,7 +230,7 @@ const WRITES = {
|
|
|
228
230
|
if (!ids.length && body.all !== true) return fail(ctx, res, 400, 'ids names the proposals to keep, or all: true');
|
|
229
231
|
const f = TLR.frame(ctx, p.w, p.board);
|
|
230
232
|
if (!f) return fail(ctx, res, 202, 'The board is still being read. Try again in a moment.');
|
|
231
|
-
const v = view(ctx, p, ini, f), all = v ? v.groups.flatMap((x) => x.props) : [];
|
|
233
|
+
const v = view(ctx, p, ini, f, { grillAll: true }), all = v ? v.groups.flatMap((x) => x.props) : []; // a folded grill finding can be kept by its id
|
|
232
234
|
// ✓ in the header keeps all Claude is sure of: Check these, Not placed and Jira-only proposals wait for their own ✓
|
|
233
235
|
const want = body.all === true ? all.filter((x) => x.section === 'sure') : all.filter((x) => ids.includes(x.id));
|
|
234
236
|
if (!want.length) return fail(ctx, res, 409, 'Those proposals are no longer open');
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.476.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.476.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -313,3 +313,9 @@
|
|
|
313
313
|
.nv-row b { flex: none; font-weight: 800; }
|
|
314
314
|
.nv-row span { flex: 1; min-width: 0; text-align: right; color: var(--cz-ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
315
315
|
.nv-row svg { flex: none; color: var(--cz-ink3); }
|
|
316
|
+
/* Settings › Claude's checks (canvas GrillEntry): what this month used of the credit, as one quiet bar */
|
|
317
|
+
.cz .ev-gcap { flex-wrap: wrap; }
|
|
318
|
+
.cz .ev-gcap .ev-small { flex: 1 1 160px; }
|
|
319
|
+
.cz .ev-gbar { position: relative; flex: 1 1 200px; height: 8px; border-radius: 4px; background: var(--cz-well2, var(--cz-well)); overflow: hidden; }
|
|
320
|
+
.cz .ev-gbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--cz-blue); }
|
|
321
|
+
@media (max-width: 600px) { .cz .ev-trow:has(.ev-seg[aria-label="Grill by itself"]), .cz .ev-trow:has(.ev-seg[aria-label="Monthly credit for checks"]) { flex-wrap: wrap; } }
|
|
@@ -876,3 +876,5 @@ textarea.ins-dri { height: auto; padding: 6px 8px; font-weight: 500; resize: ver
|
|
|
876
876
|
.ins-nomv .ins-cols > .mv, .ins-nomv .ins-cols > .ins-mvh { display: none; }
|
|
877
877
|
.ins-row.vwo, .ins-row.vwo:hover { background: var(--cz-bluebg); box-shadow: inset 3px 0 0 var(--cz-blue); }
|
|
878
878
|
.ins-card.vwo { background: var(--cz-bluebg); box-shadow: inset 3px 0 0 var(--cz-blue); border-color: transparent; }
|
|
879
|
+
/* the budget's burn under its pace (canvas FcIntel) */
|
|
880
|
+
.ins-burn { margin-top: 4px; }
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
* (this device), Product (which products Home reads: the Products card), Your day (when the end-of-day card shows:
|
|
4
4
|
* time.workEnd, POST /api/settings), Your impact (impact.on, POST /api/settings; canvas GmP1Switch, batch 16 item 7: the one switch
|
|
5
5
|
* for Adler's leaf, the impact log and the weekly check; the page hears `pmos:impact`), Agents write to Jira (fixed: only after Commit)
|
|
6
|
+
* Claude’s checks Grill by itself (Full, Only at stage exits, Off) and the monthly credit for checks with what this month used (grill.mode,
|
|
7
|
+
* grill.cap, POST /api/settings; GET /api/grill; canvas GrillEntry). At the cap Claude pauses and says so once here.
|
|
6
8
|
* Adler how much of Claude's face shows, Motion, Celebrations, Quiet after (adler.*, POST /api/settings; canvas AdM5, batch 16 item 2)
|
|
7
9
|
* › Dress for the day (adler.dress.*, canvas AsSet1, batch 18 item 8): the master switch, where you are, one switch per group,
|
|
8
10
|
* "More festivals" with one switch per day, big sports and your colours, exam season, your days, Wear now (pm/cozy-seasons.js).
|
|
@@ -36,7 +38,7 @@ async function pmSend(method, path, body) {
|
|
|
36
38
|
try { const res = await pressFetch(path, { method, ...(body === undefined ? {} : { body: JSON.stringify(body) }) }); const out = await res.json(); if (out && typeof out === 'object' && !res.ok) out.status = res.status; return out; }
|
|
37
39
|
catch (e) { return { ok: false, error: 'could not reach the workspace server — ' + ((e && e.message) || String(e)) }; }
|
|
38
40
|
}
|
|
39
|
-
const SECTIONS = [['general', 'General'], ['claude', 'Claude'], ['adler', 'Adler'], ['connectors', 'Connectors'], ['workspaces', 'Workspaces'], ['workflows', 'Workflows'], ['updates', 'Updates']];
|
|
41
|
+
const SECTIONS = [['general', 'General'], ['claude', 'Claude'], ['checks', 'Claude’s checks'], ['adler', 'Adler'], ['connectors', 'Connectors'], ['workspaces', 'Workspaces'], ['workflows', 'Workflows'], ['updates', 'Updates']];
|
|
40
42
|
const PAGE_LINKS = { workflows: '/premium-workflows.html' }; // a section that is a page of its own: the row goes there
|
|
41
43
|
const SRC = { calendar: 'Calendar', wispr: 'Wispr Flow', mail: 'Mail', slack: 'Slack', jira: 'Jira', confluence: 'Confluence', github: 'GitHub', drive: 'Google Drive', figma: 'Figma', website: 'Your websites' };
|
|
42
44
|
const VIEWER_KEY = 'pmos.cz.viewer';
|
|
@@ -242,7 +244,21 @@ function claudeSec() {
|
|
|
242
244
|
+ trow('API key', keySub, keyRight)
|
|
243
245
|
+ (k.present && C.off ? trow('Runs on the API', 'Off: PMOS_GRILL_API is off in the environment.', '<span class="ev-pill">Off</span>') : '');
|
|
244
246
|
}
|
|
245
|
-
|
|
247
|
+
/* Settings > Claude's checks (GrillEntry): Claude grills by itself, so this is the only control: when, and how much it may spend a month */
|
|
248
|
+
const CAPS = [5, 10, 20, 50];
|
|
249
|
+
const usd = (n) => '$' + (Math.round(Number(n) * 100) % 100 ? Number(n).toFixed(2) : String(Math.round(Number(n))));
|
|
250
|
+
function checksSec() {
|
|
251
|
+
const C = T.gr;
|
|
252
|
+
if (!C) return '<p class="ev-small ev-mut">Reading Claude’s checks.</p>';
|
|
253
|
+
if (C.ok === false) return `<p class="ev-small ev-mut">Claude’s checks could not be read: ${esc(C.error || 'the server did not answer')}.</p>`;
|
|
254
|
+
const caps = [...new Set(CAPS.concat(Number.isFinite(C.cap) ? [C.cap] : []))].sort((a, b) => a - b);
|
|
255
|
+
const modeSub = C.envOff ? 'Off: PMOS_GRILL is off in the environment.' : 'Before an initiative leaves a stage, when a forecast turns, when scope or dates move a lot, and once a month on running work that feels off. Findings wait under ✦.';
|
|
256
|
+
const used = Number.isFinite(C.cap) && C.cap > 0 ? Math.min(100, Math.round((C.spent / C.cap) * 100)) : 0;
|
|
257
|
+
return trow('Grill by itself', modeSub, C.envOff ? '<span class="ev-pill">Off</span>' : seg('Grill by itself', 'grill.mode', C.mode, [['full', 'Full'], ['exits', 'Only at stage exits'], ['off', 'Off']]))
|
|
258
|
+
+ trow('Monthly credit for checks', C.paused ? 'Paused at the limit this month. Claude starts again next month, or when you raise it.' : 'At the limit Claude pauses and says so once. It never charges beyond it.', seg('Monthly credit for checks', 'grill.cap', C.cap, caps.map((v) => [v, usd(v)])))
|
|
259
|
+
+ `<div class="ev-trow ev-gcap"><span class="ev-small"><b>${esc(usd(C.spent))}</b> of ${esc(usd(C.cap))} used this month</span><span class="ev-gbar" role="img" aria-label="${used}% of the monthly credit used"><i style="width:${used}%"></i></span></div>`;
|
|
260
|
+
}
|
|
261
|
+
const BODY = { general, claude: claudeSec, checks: checksSec, adler: adlerSec, connectors, workspaces, updates };
|
|
246
262
|
let disposeClaudeSetup = null;
|
|
247
263
|
function draw() {
|
|
248
264
|
const el = T.el; if (!el || el.hidden) return;
|
|
@@ -299,6 +315,13 @@ async function press(e) {
|
|
|
299
315
|
if ('evArc' in t.dataset) { T.arc = !T.arc; draw(); return; }
|
|
300
316
|
if (t.dataset.evGo) { T.sec = t.dataset.evGo; draw(); return; }
|
|
301
317
|
if (t.dataset.evSeg === 'theme') { const M = await import('./cozy-nav.js'); M.setTheme(t.dataset.v); draw(); return; }
|
|
318
|
+
if (t.dataset.evSeg && t.dataset.evSeg.startsWith('grill.')) {
|
|
319
|
+
const key = t.dataset.evSeg, value = key === 'grill.cap' ? Number(t.dataset.v) : t.dataset.v;
|
|
320
|
+
const r = await pmPost('/api/settings', { key, value });
|
|
321
|
+
if (r && r.ok) T.gr = { ...T.gr, [key === 'grill.cap' ? 'cap' : 'mode']: r.value !== undefined ? r.value : value, ...(key === 'grill.cap' ? { paused: T.gr.paused && Number(value) <= T.gr.spent } : {}) };
|
|
322
|
+
T.msg = r && r.ok ? (key === 'grill.mode' ? (value === 'off' ? 'Saved. Claude no longer grills by itself.' : value === 'exits' ? 'Saved. Claude grills only before a stage ends.' : 'Saved. Claude grills by itself when it matters.') : 'Saved. Claude’s checks spend at most ' + usd(value) + ' a month.') : (r && r.error) || 'Not saved.';
|
|
323
|
+
draw(); return;
|
|
324
|
+
}
|
|
302
325
|
if (t.dataset.evSeg && t.dataset.evSeg.startsWith('adler.')) { const r = await AD.savePref(pmPost, t.dataset.evSeg, t.dataset.v); T.msg = r && r.ok ? 'Saved.' : (r && r.error) || 'Not saved.'; draw(); return; }
|
|
303
326
|
if (t.dataset.evDress) {
|
|
304
327
|
const a = t.dataset.evDress;
|
|
@@ -413,6 +436,7 @@ async function readAgain(id) {
|
|
|
413
436
|
}
|
|
414
437
|
async function load() {
|
|
415
438
|
readFresh();
|
|
439
|
+
pmGet('/api/grill').then((g) => { T.gr = g && g.ok ? g : { ok: false, error: (g && g.error) || '' }; draw(); }).catch(() => { T.gr = { ok: false }; draw(); });
|
|
416
440
|
pmGet('/api/profiles').then(async (pr) => { const k = await pmGet('/api/anthropic'); T.cl = { profiles: pr && Array.isArray(pr.profiles) ? pr.profiles : [], prefs: (pr && pr.prefs) || {}, perr: pr && pr.ok === false ? (pr.error || 'the server did not answer') : '', key: k && k.ok ? k.key : { present: false, source: null }, off: !!(k && k.off) }; draw(); }).catch(() => { T.cl = { profiles: [], prefs: {}, perr: 'the server did not answer', key: { present: false, source: null } }; draw(); });
|
|
417
441
|
const [w, p, s, b] = await Promise.all([pmGet('/api/workspaces'), pmGet('/api/proactive/settings'), pmGet('/api/settings'), pmGet('/api/briefing-premium')]);
|
|
418
442
|
T.ws = w && Array.isArray(w.workspaces) ? w.workspaces : [];
|
|
@@ -430,7 +454,7 @@ async function load() {
|
|
|
430
454
|
export function openSettings(section) {
|
|
431
455
|
const el = mount();
|
|
432
456
|
if (section === 'dress') { T.sec = 'adler'; T.dress = true; } else if (section && BODY[section]) { T.sec = section; T.dress = false; }
|
|
433
|
-
if (el.hidden) { const ae = document.activeElement; T.back = ae && ae !== document.body ? ae : null; T.ws = null; T.src = null; T.msg = ''; T.phase = ''; T.auto = false; T.wkOpen = new Set(); T.arc = false; T.fresh = null; T.note = {}; T.dset = {}; T.cl = null; }
|
|
457
|
+
if (el.hidden) { const ae = document.activeElement; T.back = ae && ae !== document.body ? ae : null; T.ws = null; T.src = null; T.msg = ''; T.phase = ''; T.auto = false; T.wkOpen = new Set(); T.arc = false; T.fresh = null; T.note = {}; T.dset = {}; T.cl = null; T.gr = null; }
|
|
434
458
|
el.hidden = false; document.getElementById('evStScrim').hidden = false; el.setAttribute('data-esc-layer', '');
|
|
435
459
|
draw();
|
|
436
460
|
const f = el.querySelector('[aria-current="page"]'); if (f) f.focus();
|
|
@@ -540,3 +540,6 @@ body.cz-home .hm-hd.hv-bar > .hv-hi { flex: 1 0 auto; max-width: 100%; }
|
|
|
540
540
|
.hv-rcs { margin: 0 0 4px; padding: 4px; background: color-mix(in srgb, var(--cz-well) 55%, var(--cz-card)); border-radius: 14px; }
|
|
541
541
|
.hv-rcs .hv-r::before { display: none; }
|
|
542
542
|
.hv-rcs .hv-r.safe { background: var(--cz-bluebg); border-radius: 14px; }
|
|
543
|
+
/* Home's one grill line (canvas FcPhone, Home): quiet, with ✦ at its end */
|
|
544
|
+
.hv-gn { display: flex; align-items: center; gap: 8px; color: var(--cz-ink2); }
|
|
545
|
+
.hv-gn span { flex: 1; min-width: 0; }
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* pm/grill-words.js — the words and marks every page uses for Claude's checks (Grill and Forecast screens; canvas GrillResult, GrillLenses,
|
|
2
|
+
* FcIntel, FcPhone). Pure: Node can import it.
|
|
3
|
+
*
|
|
4
|
+
* ANGLE { [angle]: { label, icon (a 24-unit path) } }: premortem · redteam · voices · reframe · scope · whatif
|
|
5
|
+
* findingOf(p) a grill proposal (lib/grill.js finding) → { angle, label, icon, title, why, next, simulated }
|
|
6
|
+
* the title and why without the angle prefix and the "Next:" tail lib/grill.js writes into them
|
|
7
|
+
* whenWord(iso, now) 'overnight' · 'today' · 'yesterday' · 'on Oct 30'
|
|
8
|
+
* costWord(usd) '38¢' · '$1.20' · '' (unknown)
|
|
9
|
+
* whyWord(run) 'before it leaves its stage' · 'when its forecast turned' · 'after its scope or dates moved' · 'in the monthly look'
|
|
10
|
+
* runLine(run, now) "Claude grilled it overnight, when its forecast turned" (no cost; the page adds it quietly)
|
|
11
|
+
* turnWord(to) 'will miss' · 'is at risk' · '' */
|
|
12
|
+
export const ANGLE = Object.freeze({
|
|
13
|
+
premortem: { label: 'Premortem', icon: 'M12 3l9 16H3zM12 10v4M12 17v.5' },
|
|
14
|
+
redteam: { label: 'Red team', icon: 'M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8' },
|
|
15
|
+
voices: { label: 'Voices', icon: 'M4 5h12v8H9l-4 3v-3H4zM19 9v7h-1v3l-3-3h-4' },
|
|
16
|
+
reframe: { label: 'Reframe', icon: 'M4 8V4h4M20 8V4h-4M4 16v4h4M20 16v4h-4M9 9h6v6H9z' },
|
|
17
|
+
scope: { label: 'Scope', icon: 'M4 6h16M7 12h10M10 18h4' },
|
|
18
|
+
whatif: { label: 'What-if', icon: 'M4 18c4 0 4-12 8-12s4 12 8 12M4 12c4 0 4-6 8-6' },
|
|
19
|
+
});
|
|
20
|
+
const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
21
|
+
|
|
22
|
+
export function findingOf(p) {
|
|
23
|
+
const d = (p && p.data) || {}, angle = ANGLE[d.angle] ? d.angle : ANGLE[p && p.type] ? p.type : 'premortem';
|
|
24
|
+
const A = ANGLE[angle];
|
|
25
|
+
// lib/grill.js writes "Premortem (Simulated, not evidence): the finding" and "the evidence Next: the step"; the page shows them apart
|
|
26
|
+
const title = String((p && p.title) || '').replace(/^[^:]{1,60}:\s*/, '');
|
|
27
|
+
const next = String(d.next || '');
|
|
28
|
+
let why = String((p && p.why) || '');
|
|
29
|
+
if (next && why.endsWith(' Next: ' + next)) why = why.slice(0, -(' Next: ' + next).length);
|
|
30
|
+
return { angle, label: A.label, icon: A.icon, title: title || A.label, why, next, simulated: d.simulated || '' };
|
|
31
|
+
}
|
|
32
|
+
const dayKey = (t) => { const d = new Date(t); return d.getFullYear() * 400 + d.getMonth() * 32 + d.getDate(); };
|
|
33
|
+
export function whenWord(iso, now = Date.now()) {
|
|
34
|
+
const t = Date.parse(iso || '');
|
|
35
|
+
if (!Number.isFinite(t)) return '';
|
|
36
|
+
const h = new Date(t).getHours(), ago = now - t;
|
|
37
|
+
if (ago >= 0 && ago < 20 * 36e5 && (h >= 21 || h < 7)) return 'overnight';
|
|
38
|
+
if (dayKey(t) === dayKey(now)) return 'today';
|
|
39
|
+
if (dayKey(t) === dayKey(now - 864e5)) return 'yesterday';
|
|
40
|
+
const d = new Date(t); return 'on ' + MON[d.getMonth()] + ' ' + d.getDate();
|
|
41
|
+
}
|
|
42
|
+
export function costWord(usd) {
|
|
43
|
+
const n = Number(usd);
|
|
44
|
+
if (usd == null || !Number.isFinite(n)) return '';
|
|
45
|
+
return n < 1 ? Math.max(1, Math.round(n * 100)) + '¢' : '$' + n.toFixed(2);
|
|
46
|
+
}
|
|
47
|
+
const WHY = { exit: 'before it leaves its stage', forecast: 'when its forecast turned', move: 'after its scope or dates moved', monthly: 'in the monthly look' };
|
|
48
|
+
export const whyWord = (r) => (r && WHY[r.why]) || '';
|
|
49
|
+
export function runLine(r, now = Date.now()) {
|
|
50
|
+
if (!r) return '';
|
|
51
|
+
return ['Claude grilled it', whenWord(r.at, now)].filter(Boolean).join(' ') + (whyWord(r) ? ', ' + whyWord(r) : '');
|
|
52
|
+
}
|
|
53
|
+
export const turnWord = (to) => (to === 'will-miss' ? 'will miss' : to === 'at-risk' ? 'is at risk' : '');
|
|
@@ -41,6 +41,7 @@ import { mountPhoneCard } from './home-phone-card.js';
|
|
|
41
41
|
import { mountFirst } from './premium-first.js';
|
|
42
42
|
import * as L from './home-list.js';
|
|
43
43
|
import * as TD from './home-today.js';
|
|
44
|
+
import * as GW from './grill-words.js'; // Home's one line when Claude grilled something by itself (canvas FcPhone, Home)
|
|
44
45
|
import * as YD from './home-day.js';
|
|
45
46
|
import * as AD from './cozy-adler.js'; // Adler, Claude's face (batch 16 item 2)
|
|
46
47
|
import * as OKL from './okr-list.js'; // the product page's Goals line (batch 16 item 6, GsProduct)
|
|
@@ -210,6 +211,7 @@ async function load() {
|
|
|
210
211
|
NEED.refresh(); // an open ask: its agent finished, or it left Home while it was open
|
|
211
212
|
loadImpact();
|
|
212
213
|
readImpact();
|
|
214
|
+
loadGrillNews();
|
|
213
215
|
// the boards of the other products Home reads, each its own closed group: read after the list is drawn, so a slow one never holds it up
|
|
214
216
|
const others = await Promise.all(otherProducts(D).map((a) => getRetry('/api/board-premium?ws=' + encodeURIComponent(a.ws), 4).then((r) => (r && r.ok && r.model ? { ws: a.ws, name: a.name, model: r.model } : null))));
|
|
215
217
|
const got = others.filter(Boolean);
|
|
@@ -219,6 +221,33 @@ async function load() {
|
|
|
219
221
|
// an initiative of another product opened before its board was read (a link, a quick press): read it again from its own board
|
|
220
222
|
if (S.ini && !S.IM && otherIni(S.ini)) goIni(S.ini, { page: VW.isOpen() });
|
|
221
223
|
}
|
|
224
|
+
/* ── Home's one line (canvas FcPhone, Home: "only when something changed"): the newest grill this week that left findings, from GET /api/grill.
|
|
225
|
+
* "Checkout v2 will miss its date. I grilled it overnight: 3 findings." ✦ opens them on the initiative. Nothing to say is silence. ── */
|
|
226
|
+
async function loadGrillNews() {
|
|
227
|
+
const b0 = (S.D.board && S.D.board.board) || {};
|
|
228
|
+
const r = await pmGet('/api/grill' + (b0.ws ? '?ws=' + encodeURIComponent(b0.ws) : wsQ())).catch(() => null);
|
|
229
|
+
const n = r && r.ok && r.news ? r.news : null;
|
|
230
|
+
if (JSON.stringify(n) === JSON.stringify(S.gn || null)) return;
|
|
231
|
+
S.gn = n; drawList();
|
|
232
|
+
}
|
|
233
|
+
function grillNews() {
|
|
234
|
+
const n = S.gn; if (!n || !n.n) return null;
|
|
235
|
+
const row = H.boardRows(S.D).find((r) => r.id === n.ini), title = (row && row.title) || n.ini;
|
|
236
|
+
const t = n.turn && GW.turnWord(n.turn.to), when = GW.whenWord(n.at), f = n.n + (n.n === 1 ? ' finding' : ' findings');
|
|
237
|
+
const text = t ? (n.turn.scope === 'goal' ? 'A goal ' + title + ' moves ' + t + '. I grilled it ' + when + ': ' + f + '.' : title + ' ' + t + (t === 'will miss' ? ' its date' : '') + '. I grilled it ' + when + ': ' + f + '.')
|
|
238
|
+
: 'I grilled ' + title + ' ' + when + (GW.whyWord(n) ? ', ' + GW.whyWord(n) : '') + ': ' + f + '.';
|
|
239
|
+
return { id: n.ini, title, text, n: n.n };
|
|
240
|
+
}
|
|
241
|
+
/** ✦ on Home's grill line: the initiative opens, and its findings over it in the Viewer (pm/ini-props.js). */
|
|
242
|
+
async function openGrillNews(id) {
|
|
243
|
+
const g = grillNews(); if (!g || g.id !== id) return;
|
|
244
|
+
const b0 = (S.D.board && S.D.board.board) || {};
|
|
245
|
+
await goIni(id);
|
|
246
|
+
const r = await pmGet('/api/proposals?ws=' + encodeURIComponent(b0.ws || WS || '') + '&board=' + encodeURIComponent(b0.id || '') + '&initiative=' + encodeURIComponent(id)).catch(() => null);
|
|
247
|
+
if (!r || r.ok === false) { toast((r && r.error) || 'The findings could not be read.'); return; }
|
|
248
|
+
const IP = await import('./ini-props.js');
|
|
249
|
+
IP.open({ id, title: g.title, props: r.props }, { where: () => ({ ws: b0.ws || WS, board: b0.id }), reload: () => load(), toast: (m, undo) => (undo ? toastUndo(m, undo) : toast(m)) });
|
|
250
|
+
}
|
|
222
251
|
/** The products Home reads (Products, on) other than the board's own: each is a group of the list, read from its own board. At most four. */
|
|
223
252
|
function otherProducts(D) {
|
|
224
253
|
const av = (D.brief && D.brief.products && D.brief.products.available) || [];
|
|
@@ -313,7 +342,7 @@ function homeListHtml() {
|
|
|
313
342
|
return TD.listHtml(M, todayModel(), {
|
|
314
343
|
sel, selHead: S.head, ses: S.ses, pOpen, here: isPhone() ? null : TD.groupOfOpen(M, sel) || S.head, restOpen: (k) => S.rest.has(k), cap: S.cap, pin: S.pin, avHtml, ready: S.ready, err: S.D.err.length ? S.D.err[0] : '',
|
|
315
344
|
pick: S.D.pick, tones: pickTones(), review: R, mic: canDictate(), phone: isPhone(), day: S.day, news: S.news && S.news.ok ? S.news.count : 0, top: S.ready ? RECROW.html() + MEN.rowHtml(S.D, { sel: S.sel }) + (S.impact ? IMP.rowHtml(S.impact.c, { esc, sel: S.sel === 'impact' }) : '') : '',
|
|
316
|
-
imFace: IM.faceHtml(S.im, { joy: S.imJoy }),
|
|
345
|
+
imFace: IM.faceHtml(S.im, { joy: S.imJoy }), grill: S.ready ? grillNews() : null,
|
|
317
346
|
});
|
|
318
347
|
}
|
|
319
348
|
/** Your day (XvAPhDay): "Good morning" opens it in the Viewer on a phone and a desktop alike (batch 16, Wawan: the same press must lead to
|
|
@@ -1742,6 +1771,7 @@ $('#hmList').onclick = (e) => { // delegated: every press on the list is a <bu
|
|
|
1742
1771
|
if ('hrImpact' in d) { if (S.day) S.day = false; S.sel = 'impact'; if (isPhone()) S.phoneChat = true; openTarget(homeTarget()); drawList(); return; } // Your impact: Home's own chat, on the weekly check
|
|
1743
1772
|
if ('hrMentions' in d) { if (S.day) S.day = false; S.sel = 'mentions'; drawList(); MEN.openMentions(menCtx()); return; }
|
|
1744
1773
|
if ('hmImpact' in d) { if (S.day) day(false); IM.openWeek(); return; }
|
|
1774
|
+
if (d.hmGn) { openGrillNews(d.hmGn); return; }
|
|
1745
1775
|
if ('hmDay' in d) { day(!S.day); return; }
|
|
1746
1776
|
if ('hmDayx' in d) { day(false); return; }
|
|
1747
1777
|
if ('hmFlt' in d) { filterMenu(b); return; }
|
|
@@ -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; }
|
|
@@ -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 */
|