-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix: enable password manager autofill for all password fields #8295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: enable password manager autofill for all password fields #8295
Conversation
- Added autofillHints to password fields in sign-in, password setup, and password change screens - Enables password managers (1Password, LastPass, Bitwarden, etc.) to detect and autofill password fields - Minimal change: only added AutofillHints.password property to 8 password fields across 4 files
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds AutofillHints.password to all password input fields across sign-in and account settings screens to enable password manager detection and autofill. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `frontend/appflowy_flutter/lib/user/presentation/screens/sign_in_screen/widgets/continue_with/set_new_password.dart:148` </location>
<code_context>
hintText: LocaleKeys.signIn_enterPassword.tr(),
autoFocus: true,
obscureText: true,
+ autofillHints: const [AutofillHints.password],
suffixIconConstraints: BoxConstraints.tightFor(
width: iconSize + theme.spacing.m,
</code_context>
<issue_to_address>
**suggestion:** Use AutofillHints.newPassword for new password entry fields.
AutofillHints.newPassword should be used here to indicate a password creation field, improving compatibility with password managers.
</issue_to_address>
### Comment 2
<location> `frontend/appflowy_flutter/lib/workspace/presentation/settings/pages/account/password/setup_password.dart:139` </location>
<code_context>
hintText: LocaleKeys.signIn_enterPassword.tr(),
autoFocus: true,
obscureText: true,
+ autofillHints: const [AutofillHints.password],
suffixIconConstraints: BoxConstraints.tightFor(
width: iconSize + theme.spacing.m,
</code_context>
<issue_to_address>
**suggestion:** Switch to AutofillHints.newPassword for password setup fields.
Use AutofillHints.newPassword for both password and confirm password fields during password setup to improve autofill functionality.
Suggested implementation:
```
autofillHints: const [AutofillHints.newPassword],
```
```
autofillHints: const [AutofillHints.newPassword],
```
</issue_to_address>
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
key: newPasswordKey, | ||
controller: newPasswordController, | ||
obscureText: true, | ||
autofillHints: const [AutofillHints.password], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Use AutofillHints.newPassword for new password entry fields.
AutofillHints.newPassword should be used here to indicate a password creation field, improving compatibility with password managers.
.tr(), | ||
keyboardType: TextInputType.visiblePassword, | ||
obscureText: true, | ||
autofillHints: const [AutofillHints.password], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Switch to AutofillHints.newPassword for password setup fields.
Use AutofillHints.newPassword for both password and confirm password fields during password setup to improve autofill functionality.
Suggested implementation:
autofillHints: const [AutofillHints.newPassword],
autofillHints: const [AutofillHints.newPassword],
#8293
Feature Preview
PR Checklist
Summary by Sourcery
Enhancements: