From e38dc02ebaa168c04c82b3f0ebc0432a86a664fc Mon Sep 17 00:00:00 2001 From: Benjamin <1159333+benjaminburzan@users.noreply.github.com> Date: Mon, 9 Mar 2026 21:33:13 +0100 Subject: [PATCH 1/3] 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 --- src/components/auth/view/AuthInputField.tsx | 6 ++++++ src/components/auth/view/LoginForm.tsx | 2 ++ src/components/auth/view/SetupForm.tsx | 3 +++ 3 files changed, 11 insertions(+) diff --git a/src/components/auth/view/AuthInputField.tsx b/src/components/auth/view/AuthInputField.tsx index 9ffcfc83d..f1c59ab51 100644 --- a/src/components/auth/view/AuthInputField.tsx +++ b/src/components/auth/view/AuthInputField.tsx @@ -6,6 +6,8 @@ type AuthInputFieldProps = { placeholder: string; isDisabled: boolean; type?: 'text' | 'password' | 'email'; + name?: string; + autoComplete?: string; }; export default function AuthInputField({ @@ -16,6 +18,8 @@ export default function AuthInputField({ placeholder, isDisabled, type = 'text', + name, + autoComplete, }: AuthInputFieldProps) { return (
@@ -25,6 +29,8 @@ export default function AuthInputField({ onChange(event.target.value)} className="w-full rounded-md border border-border bg-background px-3 py-2 text-foreground focus:border-transparent focus:outline-none focus:ring-2 focus:ring-blue-500" diff --git a/src/components/auth/view/LoginForm.tsx b/src/components/auth/view/LoginForm.tsx index 633c9728a..b8f568c42 100644 --- a/src/components/auth/view/LoginForm.tsx +++ b/src/components/auth/view/LoginForm.tsx @@ -63,6 +63,7 @@ export default function LoginForm() { onChange={(value) => updateField('username', value)} placeholder={t('login.placeholders.username')} isDisabled={isSubmitting} + autoComplete="username" /> diff --git a/src/components/auth/view/SetupForm.tsx b/src/components/auth/view/SetupForm.tsx index a67a8be62..ed6d73d28 100644 --- a/src/components/auth/view/SetupForm.tsx +++ b/src/components/auth/view/SetupForm.tsx @@ -84,6 +84,7 @@ export default function SetupForm() { onChange={(value) => updateField('username', value)} placeholder="Enter your username" isDisabled={isSubmitting} + autoComplete="username" /> From f531fedf84b8106819e490f4b49f9748e5a6a5b0 Mon Sep 17 00:00:00 2001 From: Benjamin <1159333+benjaminburzan@users.noreply.github.com> Date: Thu, 12 Mar 2026 19:21:39 +0100 Subject: [PATCH 2/3] 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 --- src/components/auth/view/AuthInputField.tsx | 6 ++++++ src/components/auth/view/LoginForm.tsx | 5 +++++ src/components/auth/view/SetupForm.tsx | 11 +++++++++++ 3 files changed, 22 insertions(+) diff --git a/src/components/auth/view/AuthInputField.tsx b/src/components/auth/view/AuthInputField.tsx index f1c59ab51..b382a059f 100644 --- a/src/components/auth/view/AuthInputField.tsx +++ b/src/components/auth/view/AuthInputField.tsx @@ -10,6 +10,12 @@ type AuthInputFieldProps = { autoComplete?: string; }; +/** + * A labelled input field for authentication forms. + * Renders a `