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
address review: drop redundant null guard, fix guard-scope wording
[._.]/ Adam Eivy92c306152882
diff --git a/AGENTS.md b/AGENTS.mdindex 07b9cb09ac..a5cc3fb750 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -136,7 +136,7 @@ If a close match exists, **extend it or use it**. Only add a new module when non- `useLockToggle` (`client/src/hooks/useLockToggle.js`) — optimistic-PATCH lock toggle for any new lock button.- `useSseProgress` (`client/src/hooks/useSseProgress.js`) — generic JSON-frame EventSource subscriber; build new progress hooks on it.- `formatBytes` / `formatTimecode` / `formatDateShort` / `formatDurationMs` / `timeAgo` (`client/src/utils/formatters.js`) — never re-define formatters inside components.-- `formatCount` / `formatUsd` (`client/src/utils/formatters.js`) — thousands-grouped, en-US-pinned (`2,762`, `$4,610.09`). Reach for these rather than rendering a raw integer or a bare `.toLocaleString()` for a user-facing count or amount — an unseparated `4610` is read at the wrong order of magnitude, and the browser locale disagrees with the `$` beside it. A **measured** zero already renders `0`; `formatCount` gives `—` only for a value that is missing or unparseable, so pass `{ fallback: '0' }` just where an ABSENT count should still read as zero. `client/src/numberFormattingConventions.test.js` enforces this tree-wide — a new bare `.toLocaleString(` call under `components/`, `pages/`, or `lib/` fails CI.+- `formatCount` / `formatUsd` (`client/src/utils/formatters.js`) — thousands-grouped, en-US-pinned (`2,762`, `$4,610.09`). Reach for these rather than rendering a raw integer or a bare `.toLocaleString()` for a user-facing count or amount — an unseparated `4610` is read at the wrong order of magnitude, and the browser locale disagrees with the `$` beside it. A **measured** zero already renders `0`; `formatCount` gives `—` only for a value that is missing or unparseable, so pass `{ fallback: '0' }` just where an ABSENT count should still read as zero. `client/src/numberFormattingConventions.test.js` enforces this tree-wide — any new bare `.toLocaleString(` call under `client/src` fails CI.### Maintenance rule (WHEN adding a public module)diff --git a/client/src/components/meatspace/ActivityBloodCorrelation.jsx b/client/src/components/meatspace/ActivityBloodCorrelation.jsxindex 91e27b9bff..37bef9bee3 100644--- a/client/src/components/meatspace/ActivityBloodCorrelation.jsx+++ b/client/src/components/meatspace/ActivityBloodCorrelation.jsx@@ -37,7 +37,7 @@ const CustomTooltip = ({ active, payload, label, colors }) => {<p style={{ color: colors.axis, marginBottom: 4 }}>{label}</p>{payload.map((entry) => (<p key={entry.dataKey} style={{ color: entry.color ?? entry.fill, margin: '2px 0' }}>- {entry.name}: {entry.value != null ? formatCount(entry.value) : '—'}+ {entry.name}: {formatCount(entry.value)}{entry.dataKey === 'steps' ? ' steps/day' : ''}</p>))}