Skip to content
Merged
Changes from 2 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
8b8cc24
v2.0.0-beta: 10 autonomous cron workflows + CTO self-merge
germanf Jul 3, 2026
aef15a8
v2.1.0-beta: Phase B — Memory & Self-Improvement (#121)
germanf Jul 3, 2026
8d5bb68
5.3.c — Health check expansion: memory, CPU, backup, MCP, backends
Jul 7, 2026
2843b80
Merge pull request #123 from germanf/feature/health-check-expansion
germanf Jul 7, 2026
21e4d48
5.3.a — Alerting system: webhook channel, REST API, health integratio…
Jul 7, 2026
23f8981
Merge pull request #126 from germanf/feature/alerting-system
germanf Jul 7, 2026
6696218
5.4.a — Real-time SSE Jobs Page: job list + live log viewer with Even…
Jul 7, 2026
6932311
Merge pull request #127 from germanf/feature/realtime-jobs
germanf Jul 7, 2026
8224879
5.1.a — Map-Reduce in Orchestrator: backend factory + endpoint, front…
Jul 7, 2026
7cc90f1
fix: parallelism validation, empty input guard, chunk denominator
Jul 7, 2026
f423b15
Merge pull request #128 from germanf/feature/map-reduce
germanf Jul 9, 2026
06efd24
5.4.b — Alert UI in Dashboard: Active Alerts widget with polling + ac…
Jul 9, 2026
d71689b
fix: ack error handling, consistent polling, remove unused CSS
Jul 9, 2026
7a7abd6
Merge pull request #129 from germanf/feature/alert-ui
germanf Jul 10, 2026
f0124a1
5.3.b — Prometheus metrics endpoint at /metrics with health_check gauge
Jul 10, 2026
7568ebb
Merge pull request #130 from germanf/feature/prometheus-metrics
germanf Jul 10, 2026
cc46e89
5.4.c — Health Timeline: degraded/unavailable lines, summary bar
Jul 10, 2026
35201ea
Merge pull request #131 from germanf/feature/health-timeline
germanf Jul 11, 2026
4333d4e
5.3.d — Backup Integrity Verification: PRAGMA integrity_check on all …
Jul 11, 2026
590c0f1
Merge pull request #132 from germanf/feature/backup-integrity
germanf Oct 28, 2026
c2555db
Merge branch 'main' into dev
germanf Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions dashboard/frontend/src/components/HealthChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,39 @@ export default function HealthChart() {

if (history.length < 2) return null;

const total = history[0]?.components.length ?? 1;
const lineData = history.map(h => ({
time: new Date(h.timestamp * 1000).toLocaleTimeString(),
healthy: h.components.filter(c => c.status === "healthy").length,
total: h.components.length,
degraded: h.components.filter(c => c.status === "degraded").length,
unavailable: h.components.filter(c => c.status === "unavailable").length,
total,
}));

const last = lineData[lineData.length - 1];
const pct = last ? Math.round(last.healthy / last.total * 100) : 100;

return (
<div className="card">
<div className="card-title">Health History</div>
<ResponsiveContainer width="100%" height={120}>
<div className="card-title">Health Timeline</div>
<div className="flex items-center gap-3 mb-2 text-xs">
<span><span className="inline-block w-2 h-2 rounded-full bg-success mr-1" />Healthy {last?.healthy ?? 0}/{total}</span>
<span><span className="inline-block w-2 h-2 rounded-full bg-warning mr-1" />Degraded {last?.degraded ?? 0}/{total}</span>
<span><span className="inline-block w-2 h-2 rounded-full bg-danger mr-1" />Unavailable {last?.unavailable ?? 0}/{total}</span>
<span className="text-text-muted">{pct}% uptime</span>
</div>
<ResponsiveContainer width="100%" height={100}>
<LineChart data={lineData} margin={{ top: 4, right: 4, left: 4, bottom: 0 }}>
<CartesianGrid stroke="#30363d" strokeDasharray="3 3" />
<XAxis dataKey="time" tick={{ fill: "#8b949e", fontSize: 9 }} axisLine={{ stroke: "#30363d" }} />
<YAxis domain={[0, "dataMax"]} tick={{ fill: "#8b949e", fontSize: 9 }} axisLine={{ stroke: "#30363d" }} />
<YAxis domain={[0, total]} tick={{ fill: "#8b949e", fontSize: 9 }} axisLine={{ stroke: "#30363d" }} />
<Tooltip
contentStyle={{ backgroundColor: "#161b22", border: "1px solid #30363d", borderRadius: 6, fontSize: 11 }}
labelStyle={{ color: "#c9d1d9" }}
/>
<Line type="monotone" dataKey="healthy" name="Healthy components" stroke="#3fb950" strokeWidth={2} dot={false} />
<Line type="monotone" dataKey="healthy" name="Healthy" stroke="#3fb950" strokeWidth={2} dot={false} />
<Line type="monotone" dataKey="degraded" name="Degraded" stroke="#d29922" strokeWidth={2} dot={false} />
<Line type="monotone" dataKey="unavailable" name="Unavailable" stroke="#f85149" strokeWidth={2} dot={false} />
</LineChart>
</ResponsiveContainer>
</div>
Expand Down