fix: harden upstream and downstream receipt delivery

This commit is contained in:
hectorzhao
2026-07-25 23:32:13 +08:00
parent 5018167696
commit 54617c927e
18 changed files with 1797 additions and 779 deletions
@@ -66,6 +66,35 @@ function DeliveryDetailModal({ record, onClose }: { record: DownstreamDeliveryRe
<div><span> ID</span><strong>{record.connectionId ?? '-'}</strong></div>
<div className="detail-grid__wide"><span></span><strong>{record.lastError ?? '-'}</strong></div>
</div>
<section className="report-history">
<h3></h3>
<div className="downstream-attempt-table" role="table" aria-label="逐次投递记录">
<div className="downstream-attempt-table__header" role="row">
<span> / </span><span> / ACK </span><span> / Sequence / Msg_Id</span><span></span>
</div>
{(record.attempts ?? []).map((attempt) => (
<div key={attempt.id} role="row">
<strong> {attempt.attemptNo} <br />{attempt.status}</strong>
<span>
{attempt.sentAt ? formatDateTime(attempt.sentAt) : '-'}
<br />
ACK{attempt.acknowledgedAt ? formatDateTime(attempt.acknowledgedAt) : '-'}
</span>
<span>
{attempt.connectionId ?? '-'}
<br />
Seq{attempt.sequenceId ?? '-'} / Msg{attempt.messageId ?? '-'}
</span>
<span>
ACK Result{attempt.ackResult ?? '-'}
<br />
{attempt.errorMessage ?? attempt.failureType ?? '-'}
</span>
</div>
))}
{(record.attempts ?? []).length === 0 ? <p></p> : null}
</div>
</section>
<section className="report-history">
<h3>Payload</h3>
<pre style={{ whiteSpace: 'pre-wrap', wordBreak: 'break-word', margin: 0 }}>{payloadText}</pre>