From 4d255209fd9f482f17648776be9bbb83fb73d949 Mon Sep 17 00:00:00 2001 From: Jordan Ramos Date: Fri, 15 May 2026 15:31:56 -0600 Subject: [PATCH] Group history entries together, remove (optional) from change reason MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. History entries saved at the same time by the same user now display as a single grouped entry (resolution date + remediation plan together) 2. Removed '(optional)' from the change reason placeholder โ€” engineers should treat it as expected, even though the backend allows empty 3. Save button now saves both resolution date AND remediation plan in one call (removed the onBlur auto-save on the date field) so they share a timestamp and group correctly in history --- .../components/pages/ComplianceDetailPanel.js | 61 ++++++++++++------- 1 file changed, 39 insertions(+), 22 deletions(-) diff --git a/frontend/src/components/pages/ComplianceDetailPanel.js b/frontend/src/components/pages/ComplianceDetailPanel.js index bccd939..b073891 100644 --- a/frontend/src/components/pages/ComplianceDetailPanel.js +++ b/frontend/src/components/pages/ComplianceDetailPanel.js @@ -255,7 +255,6 @@ export default function ComplianceDetailPanel({ hostname, onClose, onNoteAdded, type="date" value={resolutionDate} onChange={e => setResolutionDate(e.target.value)} - onBlur={() => handleSaveMetadata({ resolution_date: resolutionDate || null })} style={{ width: '100%', background: 'rgba(15,23,42,0.8)', @@ -299,7 +298,7 @@ export default function ComplianceDetailPanel({ hostname, onClose, onNoteAdded, {remediationPlan.length}/2000