From 608672956361f1de1e465fc4c8f4485ac494abdc Mon Sep 17 00:00:00 2001 From: Edwin van den Houdt Date: Fri, 26 Jun 2026 07:38:06 +0200 Subject: [PATCH] Fix login output name collision and herregistratie demo eligibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Walking through the running app surfaced two issues: - login-form's `submit` output collided with the native DOM `submit` event bubbling to , so login() also fired with an Event (not the BSN string) — "bsn.trim is not a function". Renamed the output to `submitted` (matching the other forms). - The static mock herregistratie deadline (2027-09-01) sat outside the 12-month eligibility window, so the wizard was correctly hidden. Moved it to 2027-03-01 so "verloopt binnenkort" is true and the flow is demoable. Co-Authored-By: Claude Opus 4.8 --- public/mock/registration.json | 2 +- src/app/auth/ui/login-form/login-form.component.ts | 4 ++-- src/app/auth/ui/login.page.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/mock/registration.json b/public/mock/registration.json index e1192fa..d377283 100644 --- a/public/mock/registration.json +++ b/public/mock/registration.json @@ -4,5 +4,5 @@ "beroep": "Arts", "registratiedatum": "2012-09-01", "geboortedatum": "1985-03-14", - "status": { "tag": "Geregistreerd", "herregistratieDatum": "2027-09-01" } + "status": { "tag": "Geregistreerd", "herregistratieDatum": "2027-03-01" } } diff --git a/src/app/auth/ui/login-form/login-form.component.ts b/src/app/auth/ui/login-form/login-form.component.ts index 50af1d2..50364ce 100644 --- a/src/app/auth/ui/login-form/login-form.component.ts +++ b/src/app/auth/ui/login-form/login-form.component.ts @@ -9,7 +9,7 @@ import { ButtonComponent } from '@shared/ui/button/button.component'; selector: 'app-login-form', imports: [FormsModule, FormFieldComponent, TextInputComponent, ButtonComponent], template: ` -
+ @@ -27,5 +27,5 @@ import { ButtonComponent } from '@shared/ui/button/button.component'; export class LoginFormComponent { bsn = ''; password = ''; - submit = output(); + submitted = output(); } diff --git a/src/app/auth/ui/login.page.ts b/src/app/auth/ui/login.page.ts index 05b83e2..7751b1d 100644 --- a/src/app/auth/ui/login.page.ts +++ b/src/app/auth/ui/login.page.ts @@ -12,7 +12,7 @@ import { SessionStore } from '@auth/application/session.store'; @if (error()) { {{ error() }} } - + `, })