-
Notifications
You must be signed in to change notification settings - Fork 213
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
(feat) O3-2583: Configure Password Field Placement on Login Screen #820
Conversation
New Configuration Variable: - Introduced a new configuration variable named 'passwordOnSeparateScreen' to allow implementers to customize the placement of the password field on the login screen. - The default value is set to 'true' to maintain the existing behavior of having the password field on a separate screen. Configuration Usage: - When 'passwordOnSeparateScreen' is set to 'true', the password field appears on a separate screen. - When set to 'false', the password field is displayed on the same screen as the username and other login elements.
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.
Thanks @jayasanka-sack! Some comments. Also, please include a conventional commit message in your PR title at least.
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.
Largely looks good to me, save for a few concerns about naming. Thanks, @jayasanka-sack.
@@ -247,4 +247,64 @@ describe("Login", () => { | |||
expect(performLogin).toHaveBeenCalledWith("yoshi", "no-tax-fraud") | |||
); | |||
}); | |||
|
|||
it("should focus the username input", async () => { |
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.
🚀
Requirements
For changes to apps
If applicable
Summary
This pull request addresses the enhancement outlined in the "Configure Password Field Placement on Login Screen (O3-2583)" ticket under the "Enhance Login Page Configurability" epic.
Changes Introduced:
New Configuration Variable:
Configuration Usage:
Other
Other Changes I've done:
mockConfig
didn't use the correct type and there were some missing fields, I've fixed itScreenshots
Related Issue
https://issues.openmrs.org/browse/O3-2583