@join-pantheon/cli 0.34.0 → 0.34.1-rc.1
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/dist/admin-founder.js +179 -0
- package/dist/admin-pages.js +249 -116
- package/dist/admin-ui.js +149 -73
- package/dist/board.js +30 -3
- package/dist/claude-confine.js +3 -2
- package/dist/cli.js +75 -5
- package/dist/client.js +31 -3
- package/dist/config.js +21 -0
- package/dist/conn-report.js +148 -0
- package/dist/doctor.js +13 -0
- package/dist/flow-stats.js +21 -18
- package/dist/founder-stats.js +203 -0
- package/dist/goal-flow.js +218 -0
- package/dist/home-safety.js +2 -0
- package/dist/machine.js +95 -2
- package/dist/mcp.js +6 -0
- package/dist/notifier.js +166 -101
- package/dist/power.js +66 -0
- package/dist/readiness-alert.js +16 -3
- package/dist/relay.js +303 -23
- package/dist/spend.js +24 -1
- package/dist/status-engine.js +222 -0
- package/dist/status-nudge.js +34 -0
- package/dist/tray.js +57 -7
- package/dist/viewer-pages.js +36 -29
- package/dist/win-host.js +79 -7
- package/dist/worker.js +17 -8
- package/helper/macos/main.swift +45 -12
- package/helper/macos/menubar.swift +409 -67
- package/helper/macos/prebuilt/manifest.json +6 -6
- package/helper/macos/prebuilt/pantheon-hud +0 -0
- package/helper/macos/prebuilt/pantheon-tray +0 -0
- package/helper/windows/pantheon-tray.ps1 +216 -15
- package/package.json +1 -1
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { SEAL, cap, esc, pct, plural, spark, when } from "./admin-ui.js";
|
|
2
|
+
import { dur } from "./flow-stats.js";
|
|
3
|
+
import { WEEKS } from "./founder-stats.js";
|
|
4
|
+
export const FOUNDER_DEFS = {
|
|
5
|
+
week: "This week is the last 7 days in UTC, today included. Last week is the 7 days before that.",
|
|
6
|
+
activeTeams: "Teams that made at least one hand-off (one agent asking another for something) in the week.",
|
|
7
|
+
activePeople: "People who sent at least one message in the week, by hand or through their worker.",
|
|
8
|
+
handoffs: "Requests one agent sent to another in the week.",
|
|
9
|
+
answered: "Of this week's hand-offs, the share already answered or delivered by someone they were asked of.",
|
|
10
|
+
answerTime: "Half of this week's answered hand-offs were answered faster than this.",
|
|
11
|
+
byWorker: "Of this week's answered hand-offs, the share a person's worker answered unattended. A person answered the rest in their own session.",
|
|
12
|
+
decisions: "Escalations and decision requests raised this week that only a person can settle; how many are settled, and the median wait of those.",
|
|
13
|
+
delivered: "Work handed back as delivered this week. The relay accepts a delivery only with a branch and a commit.",
|
|
14
|
+
newTeams: "Teams whose first member joined in the week.",
|
|
15
|
+
newPeople: "Accounts created in the week.",
|
|
16
|
+
activation: "Of teams created 7 to 30 days ago, the share that made a first hand-off within 7 days of being created. Also the median time from creation to first hand-off, over every team created in the last 30 days that has one.",
|
|
17
|
+
funnel: "Accounts that signed up; of those, the ones admitted to at least one team; of those, the ones who have sent a hand-off.",
|
|
18
|
+
wow: "Of teams with a hand-off 8 to 14 days ago, the share that also had one in the last 7 days.",
|
|
19
|
+
fourWeek: "Of teams with a hand-off 22 to 28 days ago, the share that had one in the last 7 days.",
|
|
20
|
+
quiet: "Teams with a hand-off in the 4 weeks before this one and none this week, newest activity first.",
|
|
21
|
+
plans: "Teams by their owner's plan, and accounts by their own plan. Counts only.",
|
|
22
|
+
workers: "A person's worker answers requests while they are away. These cannot right now, and say why.",
|
|
23
|
+
waiting: "Decisions only a person can make, oldest first.",
|
|
24
|
+
behind: "Machines that did not take the relay's current build by themselves.",
|
|
25
|
+
relay: "The relay itself: how long its event loop waits (99th percentile), whether its disk is writing, and the last off-host backup.",
|
|
26
|
+
};
|
|
27
|
+
export const BACKUP_STALE_MS = 26 * 3_600_000;
|
|
28
|
+
const LOOP_SLOW_MS = 200;
|
|
29
|
+
const teamLink = (t) => `<a href="/admin/space?name=${encodeURIComponent(t)}">${esc(t)}</a>`;
|
|
30
|
+
const label = (text, key) => `<span class="l" tabindex="0" data-tip="${esc(text)}|${esc(FOUNDER_DEFS[key])}" aria-describedby="def-${key}">${esc(text)}</span>`;
|
|
31
|
+
function delta(cur, prev, o = {}) {
|
|
32
|
+
if (cur === null || prev === null)
|
|
33
|
+
return `<span class="dl">no figure last week</span>`;
|
|
34
|
+
const d = o.unit === "ms" ? Math.round(cur / 60_000) * 60_000 - Math.round(prev / 60_000) * 60_000 : cur - prev;
|
|
35
|
+
if (d === 0)
|
|
36
|
+
return `<span class="dl">same as last week</span>`;
|
|
37
|
+
const mag = o.unit === "ms" ? dur(Math.abs(d)) : o.unit === "pts" ? `${Math.abs(d)} pts` : String(Math.abs(d));
|
|
38
|
+
const up = d > 0;
|
|
39
|
+
const good = o.better ? (o.better === "up") === up : null;
|
|
40
|
+
return `<span class="dl${good === null ? "" : good ? " good" : " bad"}"><span aria-hidden="true">${up ? "▲" : "▼"}</span> ${o.unit === "ms" ? (up ? "slower by " : "faster by ") : up ? "+" : "−"}${mag} vs last week</span>`;
|
|
41
|
+
}
|
|
42
|
+
const trend = (s) => `<span class="trend">${spark(s.weeks, 112, 28)}<span class="vh">Weekly, oldest first: ${s.weeks.join(", ")}.</span></span>`;
|
|
43
|
+
function metric(o) {
|
|
44
|
+
return `<div class="metric${o.tone ? ` ${o.tone}` : ""}">${label(o.title, o.key)}<div class="v">${o.value}</div>${o.delta ? `<div class="d">${o.delta}</div>` : ""}${o.sub ? `<div class="s">${o.sub}</div>` : ""}${o.trend ?? ""}</div>`;
|
|
45
|
+
}
|
|
46
|
+
const last = (s) => s.weeks[WEEKS - 1] ?? 0, prev = (s) => s.weeks[WEEKS - 2] ?? 0;
|
|
47
|
+
const rate = (a, b) => (b ? Math.round((a / b) * 100) : null);
|
|
48
|
+
export function healthSection(h, now) {
|
|
49
|
+
const okAge = h.backupOkAt ? now - h.backupOkAt : null;
|
|
50
|
+
const backupBad = okAge === null || okAge > BACKUP_STALE_MS;
|
|
51
|
+
const loopSlow = h.loopP99 !== null && h.loopP99 > LOOP_SLOW_MS;
|
|
52
|
+
const issues = (backupBad ? 1 : 0) + (h.storage ? 1 : 0) + (loopSlow ? 1 : 0) + h.workers.length + h.waiting.length + h.behind.length + (h.owed ? 1 : 0);
|
|
53
|
+
const upH = Math.floor(h.upMs / 3_600_000);
|
|
54
|
+
const up = upH >= 24 ? `${Math.floor(upH / 24)}d ${upH % 24}h` : upH >= 1 ? `${upH}h ${Math.floor((h.upMs % 3_600_000) / 60_000)}m` : `${Math.max(0, Math.floor(h.upMs / 60_000))}m`;
|
|
55
|
+
const relay = `<div class="card pad hcard${backupBad || h.storage || loopSlow ? " bad" : ""}">
|
|
56
|
+
<h3>${label("The relay", "relay")}</h3>
|
|
57
|
+
<ul class="kvl">
|
|
58
|
+
<li><span>Version</span><b><span class="mono">${esc(h.version)}</span>, up ${up}</b></li>
|
|
59
|
+
<li><span>Event-loop delay (p99)</span><b>${h.loopP99 === null ? "not measured yet" : `${Math.round(h.loopP99)} ms · ${loopSlow ? `<span class="badtext">slow</span>` : "healthy"}`}</b></li>
|
|
60
|
+
<li><span>Disk</span><b>${h.storage ? `<span class="badtext">failing: ${esc(h.storage)}</span>` : "writing normally"}</b></li>
|
|
61
|
+
<li><span>Last off-host backup</span><b>${backupBad ? `<span class="badtext">${okAge === null ? "none recorded" : `${dur(okAge)} ago`}</span>` : `${dur(okAge)} ago`}</b></li>
|
|
62
|
+
</ul>
|
|
63
|
+
${backupBad ? `<p class="fix" role="alert"><b>Backup is overdue.</b> ${h.backupAt && (!h.backupOkAt || h.backupAt > h.backupOkAt) ? `One was asked for ${dur(now - h.backupAt)} ago and did not finish. ` : ""}Check the nightly backup job on the backup machine (it downloads <span class="mono">/admin/backup</span> with the admin token; DEPLOY-RAILWAY.md, "Backups"), or <a href="/admin/backup">download one now</a>.</p>` : ""}
|
|
64
|
+
</div>`;
|
|
65
|
+
const list = (items, none) => items.length ? `<ul class="hl">${items.join("")}</ul>` : `<p class="none">${none}</p>`;
|
|
66
|
+
const workers = `<div class="card pad hcard${h.workers.length ? " warn" : ""}"><h3>${label("Workers that can't take requests", "workers")} <span class="n">${h.workers.length}</span></h3>${list(h.workers.slice(0, 6).map((w) => `<li><b>${esc(cap(w.member))}</b> in ${teamLink(w.team)}<span class="sub">${esc(cap(w.reason))} · reported ${when(w.at, "time")}</span></li>`), "Every worker that is connected can take requests.")}${h.workers.length > 6 ? `<p class="sub">and ${h.workers.length - 6} more</p>` : ""}</div>`;
|
|
67
|
+
const waiting = `<div class="card pad hcard${h.waiting.length ? " warn" : ""}"><h3>${SEAL} ${label("Decisions waiting on a person", "waiting")} <span class="n">${h.waiting.length}</span></h3>${list(h.waiting.slice(0, 5).map((w) => `<li><b>${esc(cap(w.owner))}</b> in ${teamLink(w.team)}, waiting <b>${dur(w.ageMs)}</b><span class="sub">${w.from && w.from !== w.owner ? `asked by ${esc(cap(w.from))}'s agent` : "escalated by their own agent"}${w.goal ? ` · in ${esc(w.goal)}` : ""}</span></li>`), h.unshown?.length ? `None shown. ${plural(h.unshown.length, "team")} (${h.unshown.slice(0, 3).map(esc).join(", ")}${h.unshown.length > 3 ? ", …" : ""}) cannot show ${h.unshown.length === 1 ? "its" : "their"} open items until ${h.unshown.length === 1 ? "it rebuilds" : "they rebuild"}.` : "No decision is waiting on anyone.")}${h.waiting.length > 5 ? `<p class="sub">and ${h.waiting.length - 5} more</p>` : ""}${h.owed ? `<p class="sub text">Also: <b>${esc(cap(h.owed.owner))}</b> has owed ${esc(cap(h.owed.from ?? "someone"))} an answer for ${dur(h.owed.ageMs)} in ${teamLink(h.owed.team)}.</p>` : ""}</div>`;
|
|
68
|
+
const behind = `<div class="card pad hcard${h.behind.length ? " warn" : ""}"><h3>${label("Machines behind on version", "behind")} <span class="n">${h.behind.length}</span></h3>${list(h.behind.slice(0, 6).map((b) => `<li><b>${esc(cap(b.member))}</b> on <span class="mono">${esc(b.pkg)}</span><span class="sub">in ${esc(b.team)} · the relay runs ${esc(h.current)}</span></li>`), `Every machine seen is on ${esc(h.current)} or upgrading to it.`)}${h.behind.length > 6 ? `<p class="sub">and ${h.behind.length - 6} more</p>` : ""}</div>`;
|
|
69
|
+
return `<section class="sec fsec" id="health" aria-labelledby="h-health">
|
|
70
|
+
<div class="sechead"><h2 id="h-health">Health right now</h2><p class="${issues ? "badtext" : ""}">${issues ? `${plural(issues, "thing needs", "things need")} a look` : "Nothing needs you right now"}</p></div>
|
|
71
|
+
<div class="hgrid">${relay}${waiting}${workers}${behind}</div>
|
|
72
|
+
</section>`;
|
|
73
|
+
}
|
|
74
|
+
export function founderSections(f, h, now) {
|
|
75
|
+
const u = f.usage, v = f.value, g = f.growth, r = f.retention;
|
|
76
|
+
const partialNote = (p) => (p ? `<p class="note">Partial: some team's history was compacted inside these weeks; people and value count what it still holds (hand-offs come from the daily counts there).</p>` : "");
|
|
77
|
+
const usage = `<section class="sec fsec" id="usage" aria-labelledby="h-usage">
|
|
78
|
+
<div class="sechead"><h2 id="h-usage">Is it being used</h2><p>this week, against last week, and the last 8 weeks</p></div>
|
|
79
|
+
<div class="mgrid">
|
|
80
|
+
${metric({ key: "activeTeams", title: "Weekly active teams", value: String(last(u.activeTeams)), delta: delta(last(u.activeTeams), prev(u.activeTeams), { better: "up" }), trend: trend(u.activeTeams) })}
|
|
81
|
+
${metric({ key: "activePeople", title: "Weekly active people", value: String(last(u.activePeople)), delta: delta(last(u.activePeople), prev(u.activePeople), { better: "up" }), trend: trend(u.activePeople) })}
|
|
82
|
+
${metric({ key: "handoffs", title: "Hand-offs this week", value: String(last(u.handoffs)), delta: delta(last(u.handoffs), prev(u.handoffs), { better: "up" }), trend: trend(u.handoffs) })}
|
|
83
|
+
</div>
|
|
84
|
+
${partialNote(u.handoffs.partial)}
|
|
85
|
+
</section>`;
|
|
86
|
+
const ans = [rate(v.answered[0], v.asks[0]), rate(v.answered[1], v.asks[1])];
|
|
87
|
+
const wk = [rate(v.byWorker[0], v.answered[0]), rate(v.byWorker[1], v.answered[1])];
|
|
88
|
+
const value = `<section class="sec fsec" id="value" aria-labelledby="h-value">
|
|
89
|
+
<div class="sechead"><h2 id="h-value">Is it delivering value</h2><p>agents hand off, people decide: this week, against last week</p></div>
|
|
90
|
+
<div class="mgrid five">
|
|
91
|
+
${metric({ key: "answered", title: "Hand-offs answered", value: ans[0] === null ? "none asked" : `${ans[0]}%`, sub: `${v.answered[0]} of ${plural(v.asks[0], "hand-off")}`, delta: ans[0] === null ? "" : delta(ans[0], ans[1], { unit: "pts", better: "up" }) })}
|
|
92
|
+
${metric({ key: "answerTime", title: "Median time to answer", value: v.medianAnswerMs[0] === null ? "none yet" : dur(v.medianAnswerMs[0]), delta: v.medianAnswerMs[0] === null ? "" : delta(v.medianAnswerMs[0], v.medianAnswerMs[1], { unit: "ms", better: "down" }) })}
|
|
93
|
+
${metric({ key: "byWorker", title: "Answered by a worker", value: wk[0] === null ? "none yet" : `${wk[0]}%`, sub: v.answered[0] ? `${v.byWorker[0]} by a worker · ${v.byPerson[0]} by a person` : "", delta: wk[0] === null ? "" : delta(wk[0], wk[1], { unit: "pts" }) })}
|
|
94
|
+
${metric({ key: "decisions", title: "Decisions that reached a person", value: String(v.decisions[0]), sub: v.decisions[0] ? `${v.decided[0]} settled${v.medianDecisionMs[0] !== null ? `, median wait ${dur(v.medianDecisionMs[0])}` : ""}${v.decisions[0] - v.decided[0] ? ` · ${v.decisions[0] - v.decided[0]} still waiting` : ""}` : "none raised", delta: delta(v.decisions[0], v.decisions[1]) })}
|
|
95
|
+
${metric({ key: "delivered", title: "Deliveries", value: String(v.delivered[0]), sub: "each with a branch and a commit", delta: delta(v.delivered[0], v.delivered[1], { better: "up" }) })}
|
|
96
|
+
</div>
|
|
97
|
+
${partialNote(v.partial[0] || v.partial[1])}
|
|
98
|
+
</section>`;
|
|
99
|
+
const a = g.activation;
|
|
100
|
+
const act = a.matured ? Math.round((a.activated / a.matured) * 100) : null;
|
|
101
|
+
const funnelRow = (name, x) => {
|
|
102
|
+
const bar = (n) => `<span class="fbar"><i style="width:${x.signedUp ? Math.max(n ? 2 : 0, Math.round((n / x.signedUp) * 100)) : 0}%"></i></span>`;
|
|
103
|
+
return `<tr><th scope="row">${name}</th><td class="r num">${x.signedUp}</td><td>${bar(x.joined)}<span class="num">${x.joined}</span> <span class="muted">(${pct(x.joined, x.signedUp)}%)</span></td><td>${bar(x.handedOff)}<span class="num">${x.handedOff}</span> <span class="muted">(${pct(x.handedOff, x.signedUp)}%)</span></td></tr>`;
|
|
104
|
+
};
|
|
105
|
+
const growth = `<section class="sec fsec" id="growth" aria-labelledby="h-growth">
|
|
106
|
+
<div class="sechead"><h2 id="h-growth">Growth and activation</h2></div>
|
|
107
|
+
<div class="mgrid">
|
|
108
|
+
${metric({ key: "newTeams", title: "New teams this week", value: String(last(g.newTeams)), delta: delta(last(g.newTeams), prev(g.newTeams), { better: "up" }), trend: trend(g.newTeams) })}
|
|
109
|
+
${metric({ key: "newPeople", title: "New people this week", value: String(last(g.newPeople)), delta: delta(last(g.newPeople), prev(g.newPeople), { better: "up" }), trend: trend(g.newPeople) })}
|
|
110
|
+
${metric({ key: "activation", title: "First hand-off within 7 days", value: act === null ? "no team old enough" : `${act}%`, sub: `${a.matured ? `${a.activated} of ${plural(a.matured, "team")} created 7 to 30 days ago` : "no team was created 7 to 30 days ago"}${a.medianToFirstMs !== null ? ` · median ${dur(a.medianToFirstMs)} to the first` : ""}${a.young ? ` · ${plural(a.young, "newer team")} still in ${a.young === 1 ? "its" : "their"} first week, ${a.youngActivated} with one already` : ""}` })}
|
|
111
|
+
</div>
|
|
112
|
+
<div class="card" style="margin-top:14px"><div class="fhead">${label("Sign-up to first hand-off", "funnel")}</div><div class="scroll"><table class="funnel">
|
|
113
|
+
<thead><tr><th scope="col"><span class="vh">Who</span></th><th scope="col" class="r">Signed up</th><th scope="col">Joined a team</th><th scope="col">Sent a first hand-off</th></tr></thead>
|
|
114
|
+
<tbody>${funnelRow("Everyone", g.funnel.all)}${funnelRow("Signed up in the last 30 days", g.funnel.last30)}</tbody>
|
|
115
|
+
</table></div></div>
|
|
116
|
+
</section>`;
|
|
117
|
+
const wow = r.wow.base ? Math.round((r.wow.kept / r.wow.base) * 100) : null, four = r.fourWeek.base ? Math.round((r.fourWeek.kept / r.fourWeek.base) * 100) : null;
|
|
118
|
+
const retention = `<section class="sec fsec" id="retention" aria-labelledby="h-retention">
|
|
119
|
+
<div class="sechead"><h2 id="h-retention">Retention</h2><p>a team is active in a week it makes a hand-off</p></div>
|
|
120
|
+
<div class="mgrid">
|
|
121
|
+
${metric({ key: "wow", title: "Still active a week later", value: wow === null ? "no team to follow" : `${wow}%`, sub: r.wow.base ? `${r.wow.kept} of ${plural(r.wow.base, "team")} active 8 to 14 days ago` : "", trend: r.wowSeries.some((x) => x !== null) ? `<span class="trend">${spark(r.wowSeries.map((x) => x ?? 0), 112, 28)}<span class="vh">Week-over-week, oldest first: ${r.wowSeries.map((x) => (x === null ? "none" : `${x}%`)).join(", ")}.</span></span>` : "" })}
|
|
122
|
+
${metric({ key: "fourWeek", title: "Still active 4 weeks later", value: four === null ? "no team to follow" : `${four}%`, sub: r.fourWeek.base ? `${r.fourWeek.kept} of ${plural(r.fourWeek.base, "team")} active 22 to 28 days ago` : "" })}
|
|
123
|
+
<div class="metric">${label("Went quiet", "quiet")}<div class="v">${r.quiet.length}</div>${r.quiet.length ? `<ul class="hl">${r.quiet.slice(0, 5).map((q) => `<li>${teamLink(q.name)}<span class="sub">last active ${q.lastActiveAt ? when(q.lastActiveAt, "date") : "unknown"} · ${plural(q.handoffs4w, "hand-off")} in the 4 weeks before</span></li>`).join("")}</ul>${r.quiet.length > 5 ? `<p class="sub">and ${r.quiet.length - 5} more</p>` : ""}` : `<div class="s">no team stopped this week</div>`}</div>
|
|
124
|
+
</div>
|
|
125
|
+
</section>`;
|
|
126
|
+
const plans = [...new Set([...Object.keys(f.plans.teams), ...Object.keys(f.plans.people)])].sort((x, y) => (x === "none" ? 1 : y === "none" ? -1 : x.localeCompare(y)));
|
|
127
|
+
const plansSec = `<section class="sec fsec" id="plans" aria-labelledby="h-plans">
|
|
128
|
+
<div class="sechead"><h2 id="h-plans">Plans</h2><p>${label("counts only", "plans")}</p></div>
|
|
129
|
+
<div class="card"><table class="rt"><thead><tr><th>Plan</th><th class="r">Teams</th><th class="r">People</th></tr></thead><tbody>${plans.map((p) => `<tr><td class="span"><b>${esc(p === "none" ? "no plan on record" : p)}</b></td><td data-l="Teams" class="r num">${f.plans.teams[p] ?? 0}</td><td data-l="People" class="r num">${f.plans.people[p] ?? 0}</td></tr>`).join("") || `<tr><td colspan="3" class="empty">No teams or accounts yet.</td></tr>`}</tbody></table></div>
|
|
130
|
+
</section>`;
|
|
131
|
+
return `${healthSection(h, now)}${usage}${value}${growth}${retention}${plansSec}`;
|
|
132
|
+
}
|
|
133
|
+
export function definitionsSection() {
|
|
134
|
+
const order = [["week", "This week"], ["activeTeams", "Weekly active teams"], ["activePeople", "Weekly active people"], ["handoffs", "Hand-offs"], ["answered", "Hand-offs answered"], ["answerTime", "Median time to answer"], ["byWorker", "Answered by a worker"], ["decisions", "Decisions that reached a person"], ["delivered", "Deliveries"], ["newTeams", "New teams"], ["newPeople", "New people"], ["activation", "First hand-off within 7 days"], ["funnel", "Sign-up to first hand-off"], ["wow", "Still active a week later"], ["fourWeek", "Still active 4 weeks later"], ["quiet", "Went quiet"], ["plans", "Plans"], ["relay", "The relay"], ["waiting", "Decisions waiting on a person"], ["workers", "Workers that can't take requests"], ["behind", "Machines behind on version"]];
|
|
135
|
+
return `<section class="sec" id="definitions" aria-labelledby="h-defs">
|
|
136
|
+
<div class="sechead"><h2 id="h-defs">What these mean</h2><p>built only from what the relay already keeps: no tracking was added</p></div>
|
|
137
|
+
<div class="card pad"><dl class="defs">${order.map(([k, t]) => `<div><dt>${esc(t)}</dt><dd id="def-${k}">${esc(FOUNDER_DEFS[k])}</dd></div>`).join("")}</dl></div>
|
|
138
|
+
</section>`;
|
|
139
|
+
}
|
|
140
|
+
export const FOUNDER_CSS = `
|
|
141
|
+
.fsec{margin-top:30px}
|
|
142
|
+
.hgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:start}
|
|
143
|
+
.hcard h3{display:flex;align-items:center;gap:8px;font-size:16px;margin-bottom:10px}
|
|
144
|
+
.hcard h3 .l{font-size:16px;font-weight:600;color:var(--text)}
|
|
145
|
+
.hcard h3 .n{font:600 13px var(--ui-mono);background:var(--surface-2);border-radius:999px;padding:2px 8px;margin-left:auto}
|
|
146
|
+
.hcard.warn{border-color:var(--mustard)}
|
|
147
|
+
.hcard.bad{border-color:var(--accent-text);box-shadow:0 3px 0 var(--accent-text)}
|
|
148
|
+
.badtext{color:var(--accent-text);font-weight:600}
|
|
149
|
+
.kvl{list-style:none;margin:0;padding:0;display:grid;gap:8px}
|
|
150
|
+
.kvl li{display:flex;flex-direction:column}
|
|
151
|
+
.kvl li span{font-size:13.5px;color:var(--muted)}
|
|
152
|
+
.kvl li b{font-weight:500}
|
|
153
|
+
.hl{list-style:none;margin:0;padding:0;display:grid;gap:10px}
|
|
154
|
+
.none{margin:0;color:var(--muted)}
|
|
155
|
+
.fix{margin:12px 0 0;padding:10px 12px;border-radius:8px;border:1.5px solid var(--accent-text);background:var(--bg);font-size:14px}
|
|
156
|
+
.mgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
|
|
157
|
+
.mgrid.five{grid-template-columns:repeat(5,minmax(0,1fr))}
|
|
158
|
+
.metric{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px 18px;box-shadow:0 3px 0 var(--line);min-width:0;display:flex;flex-direction:column;gap:4px}
|
|
159
|
+
.metric .l{font-size:14.5px;font-weight:600;color:var(--text);text-decoration:underline dotted var(--link-line);text-underline-offset:4px;cursor:help;align-self:flex-start}
|
|
160
|
+
.metric .v{font-size:32px;font-weight:600;line-height:1.15;letter-spacing:-.02em;margin-top:4px}
|
|
161
|
+
.metric .d,.metric .s{font-size:14px;color:var(--muted)}
|
|
162
|
+
.metric .trend{margin-top:6px}
|
|
163
|
+
.dl{white-space:nowrap}
|
|
164
|
+
.dl.good span[aria-hidden]{color:var(--teal-deep)}
|
|
165
|
+
.dl.bad span[aria-hidden]{color:var(--accent-text)}
|
|
166
|
+
.fhead{padding:14px 18px 4px}
|
|
167
|
+
.fhead .l{font-size:16px;font-weight:600;color:var(--text);text-decoration:underline dotted var(--link-line);text-underline-offset:4px;cursor:help}
|
|
168
|
+
.funnel th[scope=row]{color:var(--text);font-weight:500;white-space:normal;font-size:14.5px}
|
|
169
|
+
.fbar{display:inline-block;width:110px;height:10px;border-radius:3px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);margin-right:8px;vertical-align:0;overflow:hidden}
|
|
170
|
+
.fbar i{display:block;height:100%;background:var(--teal)}
|
|
171
|
+
.defs{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 28px}
|
|
172
|
+
.defs dt{font-weight:600}
|
|
173
|
+
.defs dd{margin:2px 0 0;color:var(--muted);font-size:14px}
|
|
174
|
+
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .dl.good span[aria-hidden]{color:#7fc9c2}}
|
|
175
|
+
:root[data-theme="dark"] .dl.good span[aria-hidden]{color:#7fc9c2}
|
|
176
|
+
@media (max-width:1180px){.hgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.mgrid.five{grid-template-columns:repeat(3,minmax(0,1fr))}}
|
|
177
|
+
@media (max-width:720px){.hgrid,.mgrid,.mgrid.five,.defs{grid-template-columns:minmax(0,1fr)}.metric .v{font-size:28px}.fbar{display:none}.funnel th,.funnel td{padding:10px 8px;white-space:normal}}
|
|
178
|
+
`;
|
|
179
|
+
//# sourceMappingURL=admin-founder.js.map
|