Skip to content

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

fix([issue-827]): align markdown flag column with HTML (blank for in-range)

[._.]/ Adam Eivyfa491c963f1f
diff --git a/client/src/lib/clinicianReport.js b/client/src/lib/clinicianReport.js
index 1919b77997..83022daa7e 100644
--- a/client/src/lib/clinicianReport.js
+++ b/client/src/lib/clinicianReport.js
@@ -202,7 +202,10 @@ export function reportToMarkdown(report) {
lines.push('| --- | --- | --- | --- |');
for (const m of markers) {
const value = `${m.value}${m.unit ? ` ${m.unit}` : ''}`;
- lines.push(`| ${mdCell(m.label)} | ${mdCell(value)} | ${formatRange(m.range)} | ${STATUS_LABELS[m.status]} |`);
+ // Flag column matches the HTML view: blank for in-range markers, the
+ // status label only when out of range.
+ const flag = m.outOfRange ? STATUS_LABELS[m.status] : '';
+ lines.push(`| ${mdCell(m.label)} | ${mdCell(value)} | ${formatRange(m.range) || '—'} | ${flag} |`);
}
lines.push('');
}