fix: show all Ivanti reviewer notes (rework, approval, current/previous state) in history tab
This commit is contained in:
@@ -2707,21 +2707,29 @@ function FpEditModal({ open, onClose, submission, queueItems, onSuccess }) {
|
|||||||
{/* History tab */}
|
{/* History tab */}
|
||||||
{activeTab === 'history' && (
|
{activeTab === 'history' && (
|
||||||
<div>
|
<div>
|
||||||
{/* Ivanti reviewer notes (rework/approval feedback) */}
|
{/* Ivanti reviewer notes (rework/approval/previous state feedback) */}
|
||||||
{(submission.ivanti_rework_note || submission.ivanti_current_state_notes) && (
|
{(() => {
|
||||||
<div style={{
|
const notes = [
|
||||||
padding: '0.625rem 0.75rem', marginBottom: '0.75rem',
|
submission.ivanti_rework_note && { label: 'Rework Note', text: submission.ivanti_rework_note },
|
||||||
borderRadius: '0.375rem',
|
submission.ivanti_approval_note && { label: 'Approval Note', text: submission.ivanti_approval_note },
|
||||||
background: 'rgba(245,158,11,0.06)', border: '1px solid rgba(245,158,11,0.2)',
|
submission.ivanti_current_state_notes && { label: 'Current State Notes', text: submission.ivanti_current_state_notes },
|
||||||
}}>
|
submission.ivanti_previous_state_notes && { label: 'Previous State Notes', text: submission.ivanti_previous_state_notes },
|
||||||
<div style={{ fontFamily: 'monospace', fontSize: '0.68rem', fontWeight: '600', color: '#F59E0B', textTransform: 'uppercase', letterSpacing: '0.06em', marginBottom: '0.35rem' }}>
|
].filter(Boolean);
|
||||||
Ivanti Reviewer Notes
|
return notes.length > 0 ? notes.map((note, idx) => (
|
||||||
|
<div key={idx} style={{
|
||||||
|
padding: '0.625rem 0.75rem', marginBottom: '0.5rem',
|
||||||
|
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' }}>
|
||||||
|
{note.label}
|
||||||
|
</div>
|
||||||
|
<div style={{ fontFamily: 'monospace', fontSize: '0.72rem', color: '#CBD5E1', whiteSpace: 'pre-wrap', lineHeight: 1.5 }}>
|
||||||
|
{note.text}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ fontFamily: 'monospace', fontSize: '0.72rem', color: '#CBD5E1', whiteSpace: 'pre-wrap', lineHeight: 1.5 }}>
|
)) : null;
|
||||||
{submission.ivanti_rework_note || submission.ivanti_current_state_notes}
|
})()}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
{history.length === 0 ? (
|
{history.length === 0 ? (
|
||||||
<div style={{ fontFamily: 'monospace', fontSize: '0.72rem', color: '#475569', textAlign: 'center', padding: '2rem 0' }}>
|
<div style={{ fontFamily: 'monospace', fontSize: '0.72rem', color: '#475569', textAlign: 'center', padding: '2rem 0' }}>
|
||||||
No history entries.
|
No history entries.
|
||||||
|
|||||||
Reference in New Issue
Block a user