-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix: disable autofill for time selection field #6279
base: develop
Are you sure you want to change the base?
Conversation
Welcome to the SigNoz community! Thank you for your first pull request and making this project better. 🤗 |
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.
👍 Looks good to me! Reviewed everything up to 4f93eb4 in 9 seconds
More details
- Looked at
69
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
1
drafted comments based on config settings.
1. frontend/src/components/CustomTimePicker/CustomTimePicker.test.tsx:49
- Draft comment:
Consider adding a test case to verify that the 'autocomplete' attribute is not set to 'off' when it should not be. This will help ensure that the attribute is not accidentally removed in the future. - Reason this comment was not posted:
Confidence changes required:50%
The test file is missing a test for the case when the input does not have the 'autocomplete' attribute set to 'off'. This would ensure that the attribute is not accidentally removed in the future.
Workflow ID: wflow_A4eiJ9fD7ybgL1Ai
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
Hello @YounixM , Could you please review the PR? thanks |
Hi @Sachin-chaurasiya can you please add some before screenshot as well ? where the password manager was filling some value ? |
Hey @vikrantgupta25, I have a password manager active; however, I'm unable to replicate the scenario where the password manager was filling in some value. Screen.Recording.2024-11-05.at.12.52.12.PM.mov |
This PR doesn't fix the issue. 1Password is still offering to autofill. |
Summary
This PR adds
autoComplete="off"
to the time selection input inCustomTimePicker.tsx
to prevent password managers from auto-filling values.Also, added a unit test to ensure that the input element is rendered with the correct attribute.
Related Issues / PR's
Fixes #5875
Screenshots
Affected Areas and Manually Tested Areas
Important
Adds
autoComplete="off"
toCustomTimePicker
input to prevent autofill and includes a test for this change.autoComplete="off"
to the time selection input inCustomTimePicker.tsx
to prevent autofill by password managers.CustomTimePicker.test.tsx
to verify theautocomplete="off"
attribute is present on the input element.This description was created by for 4f93eb4. It will automatically update as commits are pushed.