Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
refactor: hoist the Learning tile's rate fallback to one sentinel (#4129)
Adam Eivy74949a62f498
diff --git a/client/src/pages/ChiefOfStaff.jsx b/client/src/pages/ChiefOfStaff.jsxindex d85f136162..1e9e0a2773 100644--- a/client/src/pages/ChiefOfStaff.jsx+++ b/client/src/pages/ChiefOfStaff.jsx@@ -523,6 +523,10 @@ export default function ChiefOfStaff() {// keep classifying `skipped > 0` as `critical`, or a reorder there would// silently drop the red signal while the tile still reads "N skipped".const learningSkipped = learningSummary?.skipped ?? 0;+ // `!= null`, not truthiness — a real 0% success rate is the highest-signal+ // state and must not render as the empty state. `null` is the sentinel each+ // tile falls back from to its own (differently sized) empty-state string.+ const learningRate = learningSummary?.overallSuccessRate != null ? `${learningSummary.overallSuccessRate}%` : null;const learningStatProps = {label: 'Learning',tone: learningSkipped > 0 ? 'critical' : (learningSummary?.status || 'default'),@@ -563,7 +567,7 @@ export default function ChiefOfStaff() {/><StatCard{...learningStatProps}- value={learningSummary?.overallSuccessRate != null ? `${learningSummary.overallSuccessRate}%` : 'No data'}+ value={learningRate ?? 'No data'}icon={<Brain className="w-4 h-4" />}compact/>@@ -886,7 +890,7 @@ export default function ChiefOfStaff() {{/* Learning Health - clickable to go to Learning tab */}<StatCard{...learningStatProps}- value={learningSummary?.overallSuccessRate != null ? `${learningSummary.overallSuccessRate}%` : '—'}+ value={learningRate ?? '—'}icon={<Brain className="w-3 h-3 sm:w-4 sm:h-4 lg:w-5 lg:h-5" />}mini/>