diff --git a/frontend-modern/src/pages/Alerts.tsx b/frontend-modern/src/pages/Alerts.tsx index 0d2323e..882191a 100644 --- a/frontend-modern/src/pages/Alerts.tsx +++ b/frontend-modern/src/pages/Alerts.tsx @@ -3027,39 +3027,8 @@ function OverviewTab(props: { Get Help - e.stopPropagation()} - > - - - - Runbook - - } - > - { - e.stopPropagation(); - toggleRunbookPanel(finding.id); - }} - title="Run a vetted remediation runbook" - > - - - - Runbook - - - {/* I Fixed It button - hides until next patrol verifies */} + {/* Runbook button removed - feature was removed */} + { @@ -3169,118 +3138,9 @@ function OverviewTab(props: { - - - - Runbook Execution - - - - - Loading or executing runbook... - - - - - {runbookErrors()[finding.id]} - - - - 0} fallback={ - - No runbooks available for this finding yet. - - }> - - { - const value = e.currentTarget.value; - setRunbookSelection((prev) => ({ ...prev, [finding.id]: value })); - }} - class="px-2 py-1 text-xs rounded border border-blue-200 dark:border-blue-700 bg-white dark:bg-gray-900 text-gray-700 dark:text-gray-200" - > - - {(runbook) => ( - {runbook.title} - )} - - - { - e.stopPropagation(); - runSelectedRunbook(finding.id); - }} - > - Run - - - {(() => { - const runbooks = runbooksByFinding()[finding.id] || []; - const selected = runbooks.find((rb) => rb.id === runbookSelection()[finding.id]); - if (!selected) return null; - const riskStyles = { - low: 'bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-300', - medium: 'bg-amber-100 text-amber-700 dark:bg-amber-900/40 dark:text-amber-300', - high: 'bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-300', - } as const; - const riskStyle = riskStyles[selected.risk] || riskStyles.medium; - return ( - - - {selected.risk} risk - - {selected.description} - - ); - })()} - - + {/* Runbook Execution section removed - feature was removed */} + - - {(result) => ( - - - - Outcome: - - - {result.outcome} - - {result.message} - - - - - {(step) => ( - - - {step.success ? 'OK' : 'FAIL'} - - {step.name} - - )} - - - - - - Verification: {result.verification.name} - - - - )} - - - {/* Fix Receipts section removed - was showing "No fixes logged" without runbooks */}