fix: harden upstream and downstream receipt delivery
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user