From 72ff134b315b7a1d602f3cc7dd60d47c1c1c34af Mon Sep 17 00:00:00 2001 From: Benjamin <1159333+b0x42@users.noreply.github.com> Date: Mon, 16 Mar 2026 12:00:14 +0100 Subject: [PATCH] feat: Browser autofill support for login form (#521) * fix: add name and autocomplete attributes to auth form inputs Password managers (1Password, Bitwarden, etc.) rely on the HTML `name` and `autocomplete` attributes to detect and fill credential fields. The login and setup forms were missing both, preventing password managers from offering autofill. Co-Authored-By: Claude Sonnet 4.6 * docs: add JSDoc docstrings to auth form components Adds JSDoc comments to all exported functions and the internal validateSetupForm helper in the auth form files, bringing docstring coverage above the 80% threshold required by CodeRabbit. Co-Authored-By: Claude Sonnet 4.6 * fix: explicitly set name props on SetupForm credential inputs The three AuthInputField calls in SetupForm were relying on the id-to-name fallback (name={name ?? id}) inside AuthInputField. Adding explicit name props makes the password-manager contract self-contained in SetupForm and resilient to future id changes. Co-Authored-By: Claude Sonnet 4.6 --------- Co-authored-by: Benjamin <1159333+benjaminburzan@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 --- src/components/auth/view/AuthInputField.tsx | 12 ++++++++++++ src/components/auth/view/LoginForm.tsx | 7 +++++++ src/components/auth/view/SetupForm.tsx | 17 +++++++++++++++++ 3 files changed, 36 insertions(+) diff --git a/src/components/auth/view/AuthInputField.tsx b/src/components/auth/view/AuthInputField.tsx index 9ffcfc8..b382a05 100644 --- a/src/components/auth/view/AuthInputField.tsx +++ b/src/components/auth/view/AuthInputField.tsx @@ -6,8 +6,16 @@ type AuthInputFieldProps = { placeholder: string; isDisabled: boolean; type?: 'text' | 'password' | 'email'; + name?: string; + autoComplete?: string; }; +/** + * A labelled input field for authentication forms. + * Renders a `