diff --git a/frontend/src/components/pages/ComplianceDetailPanel.js b/frontend/src/components/pages/ComplianceDetailPanel.js
index 0a39caf..ef6105b 100644
--- a/frontend/src/components/pages/ComplianceDetailPanel.js
+++ b/frontend/src/components/pages/ComplianceDetailPanel.js
@@ -296,33 +296,7 @@ export default function ComplianceDetailPanel({ hostname, onClose, onNoteAdded,
)}
- {/* Resolved metrics */}
- {resolvedMetrics.length > 0 && (
-
- {resolvedMetrics.map(m => (
-
- ))}
-
- )}
-
- {/* Upload history summary */}
- {activeMetrics.length > 0 && (
- }>
- {activeMetrics.map(m => (
-
-
-
- 2 ? '#F59E0B' : '#94A3B8' }}>
- {m.seen_count}× seen
-
- {m.first_seen && since {m.first_seen}}
-
-
- ))}
-
- )}
-
- {/* Metric Selector for Metadata Editing */}
+ {/* Metric Selector for Metadata Editing — placed right after Failing Metrics per issue #21 */}
{activeMetrics.length > 0 && (
}>
{activeMetrics.length > 1 && (() => {
@@ -434,6 +408,7 @@ export default function ComplianceDetailPanel({ hostname, onClose, onNoteAdded,
fontSize: '0.8rem',
fontFamily: 'monospace',
outline: 'none',
+ colorScheme: 'dark',
}}
onFocus={e => e.target.style.borderColor = `${TEAL}70`}
/>
@@ -521,6 +496,32 @@ export default function ComplianceDetailPanel({ hostname, onClose, onNoteAdded,
/>
+ {/* Resolved metrics */}
+ {resolvedMetrics.length > 0 && (
+
+ {resolvedMetrics.map(m => (
+
+ ))}
+
+ )}
+
+ {/* Upload history summary */}
+ {activeMetrics.length > 0 && (
+ }>
+ {activeMetrics.map(m => (
+
+
+
+ 2 ? '#F59E0B' : '#94A3B8' }}>
+ {m.seen_count}× seen
+
+ {m.first_seen && since {m.first_seen}}
+
+
+ ))}
+
+ )}
+
{/* Change History */}
{detail.history && detail.history.length > 0 && (
}>