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
fix: hide the voice-fingerprint mean/σ footer when the series is gated off (empty stats)
[._.]/ Adam Eivy090eb547134d
diff --git a/client/src/pages/PipelineVoiceFingerprint.jsx b/client/src/pages/PipelineVoiceFingerprint.jsxindex c5d75434e9..7366f9ef55 100644--- a/client/src/pages/PipelineVoiceFingerprint.jsx+++ b/client/src/pages/PipelineVoiceFingerprint.jsx@@ -157,6 +157,9 @@ function EmptyState({ gatedOff, issueCount, minIssues }) {function FingerprintMatrix({ columns, issues, seriesStats, outlierSet }) {const round2 = (n) => Math.round((Number(n) || 0) * 100) / 100;+ // Below minIssues the server gates drift off and returns `series: {}`, so a+ // mean/σ footer would render misleading 0s — only show it once stats exist.+ const hasStats = seriesStats && Object.keys(seriesStats).length > 0;return (<div className="overflow-x-auto border border-port-border rounded-lg"><table className="border-collapse font-mono text-xs w-full">@@ -202,24 +205,26 @@ function FingerprintMatrix({ columns, issues, seriesStats, outlierSet }) {</tr>))}</tbody>- <tfoot>- <tr className="border-t-2 border-port-border bg-port-card">- <td className="sticky left-0 z-10 bg-port-card text-gray-500 px-3 py-1.5">mean</td>- {columns.map((col) => (- <td key={col.key} className="px-2 py-1.5 text-right text-gray-500 tabular-nums">- {round2(seriesStats?.[col.key]?.mean)}{col.unit || ''}- </td>- ))}- </tr>- <tr className="bg-port-card">- <td className="sticky left-0 z-10 bg-port-card text-gray-500 px-3 py-1.5">σ</td>- {columns.map((col) => (- <td key={col.key} className="px-2 py-1.5 text-right text-gray-500 tabular-nums">- {round2(seriesStats?.[col.key]?.std)}- </td>- ))}- </tr>- </tfoot>+ {hasStats ? (+ <tfoot>+ <tr className="border-t-2 border-port-border bg-port-card">+ <td className="sticky left-0 z-10 bg-port-card text-gray-500 px-3 py-1.5">mean</td>+ {columns.map((col) => (+ <td key={col.key} className="px-2 py-1.5 text-right text-gray-500 tabular-nums">+ {round2(seriesStats?.[col.key]?.mean)}{col.unit || ''}+ </td>+ ))}+ </tr>+ <tr className="bg-port-card">+ <td className="sticky left-0 z-10 bg-port-card text-gray-500 px-3 py-1.5">σ</td>+ {columns.map((col) => (+ <td key={col.key} className="px-2 py-1.5 text-right text-gray-500 tabular-nums">+ {round2(seriesStats?.[col.key]?.std)}+ </td>+ ))}+ </tr>+ </tfoot>+ ) : null}</table></div>);diff --git a/client/src/pages/PipelineVoiceFingerprint.test.jsx b/client/src/pages/PipelineVoiceFingerprint.test.jsxindex 50a8938ab7..0e0f4af8eb 100644--- a/client/src/pages/PipelineVoiceFingerprint.test.jsx+++ b/client/src/pages/PipelineVoiceFingerprint.test.jsx@@ -75,11 +75,16 @@ describe('PipelineVoiceFingerprint', () => {gatedOff: true,issueCount: 2,outliers: [],+ // The server returns `series: {}` below minIssues.+ series: {},matrix: { metricKeys: ['sentenceLenMean'], issues: [{ issue: 1, words: 5, sentences: 1, metrics: { sentenceLenMean: 5 } }, { issue: 2, words: 4, sentences: 1, metrics: { sentenceLenMean: 4 } }] },});renderAt();await waitFor(() => expect(screen.getByText(/Drift detection is off/)).toBeInTheDocument());expect(screen.getByText('#1')).toBeInTheDocument();+ // No misleading mean/σ footer when the series stats are empty.+ expect(screen.queryByText('mean')).not.toBeInTheDocument();+ expect(screen.queryByText('σ')).not.toBeInTheDocument();});it('renders an empty state when nothing is drafted', async () => {