Show server push status in batch history
This commit is contained in:
parent
11b74d7c14
commit
d2bd66c0ce
1 changed files with 15 additions and 1 deletions
|
|
@ -2878,6 +2878,20 @@ function _adlRenderBatchHistory() {
|
||||||
? `<img src="${_adlEsc(h.thumb_url)}" class="adl-batch-history-thumb" loading="lazy">`
|
? `<img src="${_adlEsc(h.thumb_url)}" class="adl-batch-history-thumb" loading="lazy">`
|
||||||
: '';
|
: '';
|
||||||
|
|
||||||
|
// Server push status indicator
|
||||||
|
let pushBadge = '';
|
||||||
|
if (h.server_push_status) {
|
||||||
|
const pushIcons = {
|
||||||
|
pending: ['⏳', 'rgba(251,191,36,0.7)', 'Waiting to push to server'],
|
||||||
|
pushing: ['⬆', 'rgba(96,165,250,0.7)', 'Pushing to server...'],
|
||||||
|
success: ['✓', 'rgba(74,222,128,0.7)', 'Pushed to server'],
|
||||||
|
failed: ['✗', 'rgba(239,68,68,0.7)', 'Server push failed'],
|
||||||
|
skipped: ['—', 'rgba(255,255,255,0.2)', 'Server push skipped'],
|
||||||
|
};
|
||||||
|
const [icon, color, tip] = pushIcons[h.server_push_status] || ['?', 'rgba(255,255,255,0.3)', h.server_push_status];
|
||||||
|
pushBadge = ` · <span style="color:${color}" title="${tip}">${icon} server</span>`;
|
||||||
|
}
|
||||||
|
|
||||||
return `<div class="adl-batch-history-item">
|
return `<div class="adl-batch-history-item">
|
||||||
${thumb}
|
${thumb}
|
||||||
<div class="adl-batch-history-content">
|
<div class="adl-batch-history-content">
|
||||||
|
|
@ -2887,7 +2901,7 @@ function _adlRenderBatchHistory() {
|
||||||
${sourceLabel}
|
${sourceLabel}
|
||||||
<span class="adl-batch-history-date">${dateText}</span>
|
<span class="adl-batch-history-date">${dateText}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="adl-batch-history-row2">${statsParts.join(' · ')}</div>
|
<div class="adl-batch-history-row2">${statsParts.join(' · ')}${pushBadge}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>`;
|
</div>`;
|
||||||
}).join('');
|
}).join('');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue