feat: update success status labels to dynamically reflect specific action results in InboxDetailPage
Build and Push Multi-Platform Images / build-and-push (push) Successful in 17s

This commit is contained in:
2026-05-05 13:45:57 +02:00
parent 44d5206e07
commit 3ace13eb67
@@ -335,19 +335,28 @@ function PostprocessWizardModal({
antStatus = 'wait'; antStatus = 'wait';
} }
const actionLabels: Record<string, string> = {
PAPERLESS: 'An Paperless gesendet',
MAIL: 'Per E-Mail versendet',
EXPORT: 'Exportiert',
};
const successLabel = step.results && step.results.length > 0
? [...new Set(step.results.map((r) => actionLabels[r.actionType] ?? r.actionType))].join(', ')
: 'Verarbeitet';
let description: ReactNode = <span style={{ color: '#999' }}>{pageRange}</span>; let description: ReactNode = <span style={{ color: '#999' }}>{pageRange}</span>;
if (step.status === 'processing') { if (step.status === 'processing') {
description = ( description = (
<Space direction="vertical" size={2}> <Space direction="vertical" size={2}>
<span style={{ color: '#999' }}>{pageRange}</span> <span style={{ color: '#999' }}>{pageRange}</span>
<span>An Paperless senden </span> <span>Wird verarbeitet </span>
</Space> </Space>
); );
} else if (step.status === 'success') { } else if (step.status === 'success') {
description = ( description = (
<Space direction="vertical" size={2}> <Space direction="vertical" size={2}>
<span style={{ color: '#999' }}>{pageRange}</span> <span style={{ color: '#999' }}>{pageRange}</span>
<span style={{ color: '#52c41a' }}>An Paperless gesendet</span> <span style={{ color: '#52c41a' }}>{successLabel}</span>
</Space> </Space>
); );
} else if (step.status === 'duplicate') { } else if (step.status === 'duplicate') {