+
+ {/* Success state */}
+ {result ? (
+
+ {/* Host summary */}
+
+
+ {hostEntries.length} unique host{hostEntries.length !== 1 ? 's' : ''} from {selectedFindings.length} selected finding{selectedFindings.length !== 1 ? 's' : ''}
+
+
+ {hostEntries.map(h => (
+
+ {h.hostName}
+ {h.hostId}
+
+ ))}
+
+
+
+ {/* Plan type dropdown */}
+
+
+
+
+ {typeOpen && (
+
+ {BULK_PLAN_TYPES.map(t => (
+
{ setPlanType(t); setTypeOpen(false); }} style={{
+ padding: '0.5rem 0.625rem', cursor: 'pointer',
+ background: t === planType ? 'rgba(14,165,233,0.12)' : 'transparent',
+ color: BULK_PLAN_TYPE_COLORS[t], fontSize: '0.78rem',
+ fontWeight: 600, textTransform: 'uppercase', letterSpacing: '0.03em',
+ }}
+ onMouseEnter={e => { if (t !== planType) e.currentTarget.style.background = 'rgba(14,165,233,0.06)'; }}
+ onMouseLeave={e => { if (t !== planType) e.currentTarget.style.background = 'transparent'; }}
+ >
+ {t.replace(/_/g, ' ')}
+
+ ))}
+
+ )}
+
+
+
+ {/* Commit date */}
+
+
+ setCommitDate(e.target.value)}
+ style={{ ...inputSt, colorScheme: 'dark' }} />
+
+
+ {/* Optional fields — shown based on plan type */}
+ {(planType === 'remediation' || planType === 'false_positive') && (
+
+
+ setQualysId(e.target.value)}
+ placeholder="QID-12345" style={inputSt} />
+
+ )}
+ {planType === 'false_positive' && (
+
+
+ setJiraVnr(e.target.value)}
+ placeholder="VNR-67890" style={inputSt} />
+
+ )}
+ {(planType === 'risk_acceptance' || planType === 'scan_exclusion') && (
+
+
+ setArcherExc(e.target.value)}
+ placeholder="EXC-54321" style={inputSt} />
+
+ )}
+
+ {/* Error */}
+ {error && (
+
+ )}
+
+ {/* Submit */}
+
+