* Added loggin for the onboarding flow.

* Logging for potential errors

* feat: enhance onboarding error logging with server-side capture

* Update app/(onboarding)/onboarding/page.tsx

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Mattsson
2026-03-16 11:31:58 +01:00
committed by GitHub
co-authored by greptile-apps[bot]
parent 2b1331decb
commit c7672e538a
8 changed files with 340 additions and 153 deletions
+5 -1
View File
@@ -68,7 +68,11 @@ export default function Step6ConnectBank({
</CardDescription>
</CardHeader>
<CardContent>
<form onSubmit={handleSubmit(onManualSubmit)} className="space-y-4">
<form onSubmit={handleSubmit(onManualSubmit, (errs) => {
const fields = Object.keys(errs).join(', ')
console.error('[onboarding] step 5 validation failed:', fields, errs)
fetch('/api/log', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ message: 'step 5 validation failed', extra: { fields } }) }).catch(() => {})
})} className="space-y-4">
<div className="space-y-2">
<Label htmlFor="bank_name">Bank</Label>
<Input