feat: payment status badge in listing-card, webhook debug info, UX fixes

This commit is contained in:
2026-02-06 15:22:48 +01:00
parent d9202f9ca2
commit a532fa120f
6 changed files with 114 additions and 8 deletions

View File

@@ -744,7 +744,25 @@ class PageCreate extends HTMLElement {
})
clearPendingInvoice(listingId)
router.navigate(`/listing/${listingId}`)
this.showPaymentSuccess()
}
showPaymentSuccess() {
this.innerHTML = /* html */`
<div class="create-page">
<div class="payment-success">
<div class="success-icon">
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="10"></circle>
<polyline points="12 6 12 12 16 14"></polyline>
</svg>
</div>
<h2>${t('payment.processing')}</h2>
<p>${t('payment.awaitingHint')}</p>
<a href="#/my-listings" class="btn btn-primary">${t('profile.myListings')}</a>
</div>
</div>
`
}
showError(message) {
@@ -993,5 +1011,28 @@ style.textContent = /* css */`
page-create .btn-link:hover {
color: var(--color-primary-hover);
}
page-create .payment-success {
text-align: center;
padding: var(--space-3xl) 0;
}
page-create .success-icon {
color: var(--color-warning, #e6a700);
margin-bottom: var(--space-lg);
}
page-create .payment-success h2 {
margin-bottom: var(--space-md);
}
page-create .payment-success p {
color: var(--color-text-secondary);
margin-bottom: var(--space-xl);
max-width: 400px;
margin-left: auto;
margin-right: auto;
line-height: 1.5;
}
`
document.head.appendChild(style)