Type registrations, email and WhatsApp messaging pages

Adds typed payloads and results for the email/WhatsApp attendee and
broadcast endpoints. The WhatsApp page's messageDirty flag becomes a ref
(it only gated the template effect), and a no-op branch in the email
template effect is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 11:10:01 +02:00
co-authored by Claude Opus 5.5
parent b2439a781e
commit b560d0d340
6 changed files with 196 additions and 174 deletions
@@ -619,8 +619,8 @@ function PaymentsContent() {
await apiFetch(`/api/yoco-transactions/${encodeURIComponent(tx.id)}/ignore`, { method: 'POST', authToken: token });
setInfo('Transaction ignored');
await loadYocoUnreconciled();
} catch (e:any) {
setError(e?.message || 'Failed to ignore');
} catch (e) {
setError(errorMessage(e) || 'Failed to ignore');
}
}}>Ignore</button>
</td>