feat: show finding IDs in history, display Ivanti reviewer notes (rework/approval feedback) in history tab
This commit is contained in:
@@ -2707,6 +2707,21 @@ function FpEditModal({ open, onClose, submission, queueItems, onSuccess }) {
|
||||
{/* History tab */}
|
||||
{activeTab === 'history' && (
|
||||
<div>
|
||||
{/* Ivanti reviewer notes (rework/approval feedback) */}
|
||||
{(submission.ivanti_rework_note || submission.ivanti_current_state_notes) && (
|
||||
<div style={{
|
||||
padding: '0.625rem 0.75rem', marginBottom: '0.75rem',
|
||||
borderRadius: '0.375rem',
|
||||
background: 'rgba(245,158,11,0.06)', border: '1px solid rgba(245,158,11,0.2)',
|
||||
}}>
|
||||
<div style={{ fontFamily: 'monospace', fontSize: '0.68rem', fontWeight: '600', color: '#F59E0B', textTransform: 'uppercase', letterSpacing: '0.06em', marginBottom: '0.35rem' }}>
|
||||
Ivanti Reviewer Notes
|
||||
</div>
|
||||
<div style={{ fontFamily: 'monospace', fontSize: '0.72rem', color: '#CBD5E1', whiteSpace: 'pre-wrap', lineHeight: 1.5 }}>
|
||||
{submission.ivanti_rework_note || submission.ivanti_current_state_notes}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{history.length === 0 ? (
|
||||
<div style={{ fontFamily: 'monospace', fontSize: '0.72rem', color: '#475569', textAlign: 'center', padding: '2rem 0' }}>
|
||||
No history entries.
|
||||
@@ -2742,13 +2757,26 @@ function FpEditModal({ open, onClose, submission, queueItems, onSuccess }) {
|
||||
</div>
|
||||
)}
|
||||
{entry.change_type === 'findings_added' && details.addedFindingIds && (
|
||||
<div style={{ fontFamily: 'monospace', fontSize: '0.65rem', color: '#94A3B8', marginTop: '0.15rem' }}>
|
||||
+{details.addedFindingIds.length} finding(s)
|
||||
<div style={{ marginTop: '0.15rem' }}>
|
||||
<div style={{ fontFamily: 'monospace', fontSize: '0.65rem', color: '#94A3B8' }}>
|
||||
+{details.addedFindingIds.length} finding(s):
|
||||
</div>
|
||||
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '0.2rem', marginTop: '0.2rem' }}>
|
||||
{details.addedFindingIds.map(fid => (
|
||||
<span key={fid} style={{
|
||||
padding: '0.05rem 0.3rem', borderRadius: '0.15rem',
|
||||
background: 'rgba(14,165,233,0.08)', border: '1px solid rgba(14,165,233,0.2)',
|
||||
fontFamily: 'monospace', fontSize: '0.6rem', color: '#0EA5E9',
|
||||
}}>
|
||||
{fid}
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
{entry.change_type === 'attachments_added' && details.files && (
|
||||
<div style={{ fontFamily: 'monospace', fontSize: '0.65rem', color: '#94A3B8', marginTop: '0.15rem' }}>
|
||||
{details.files.length} file(s) uploaded
|
||||
{details.files.filter(f => f.success).length} of {details.files.length} file(s) uploaded
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user