-
Notifications
You must be signed in to change notification settings - Fork 58
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
Password comp #1316
base: dev
Are you sure you want to change the base?
Password comp #1316
Conversation
68a0423
to
4cd5d24
Compare
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
Accessibility Violations Found
|
2 similar comments
Accessibility Violations Found
|
Accessibility Violations Found
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #1316 +/- ##
============================================
+ Coverage 82.40% 82.56% +0.16%
- Complexity 919 933 +14
============================================
Files 103 104 +1
Lines 2358 2375 +17
Branches 317 319 +2
============================================
+ Hits 1943 1961 +18
+ Misses 255 254 -1
Partials 160 160
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
4cd5d24
to
fdcdfb9
Compare
Accessibility Violations Found
|
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
Accessibility Violations Found
|
2 similar comments
Accessibility Violations Found
|
Accessibility Violations Found
|
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.
Can we use the new field type in this PR ? Please sync with talmiz on this
Yes we have used new field type in this PR, please refer to this commit |
For opening and closing eye icon, we have changed code in theme |
Accessibility Violations Found
|
Accessibility Violations Found
|
1 similar comment
Accessibility Violations Found
|
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
Accessibility Violations Found
|
9432b5c
to
f17a90a
Compare
* GH actions * Dummy change * dummy * change * Fix error * Fix error * fix error * Fix error * fix regex * Fix code * dummy change * Dummy change * Fix errors
Updated Javascript code for toggle password visibility. Html code cleanups
f17a90a
to
1943844
Compare
Accessibility Violations Found
|
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
Accessibility Violations Found
|
1 similar comment
Accessibility Violations Found
|
Accessibility Violations Found
|
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.
check comments
|
||
## BEM Description | ||
``` | ||
BLOCK cmp-adaptiveform-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.
This BEM is not complete, please correct the BEM as per the HTML output
|
||
@Override | ||
public String getFieldType() { | ||
return super.getFieldType(); |
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.
fieldType function was changed recently, please check the recent implementation, we now return a constant value in fieldType and not rely on JCR anymore (we have a fallback now)
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.
Done
|
||
@ValueMapValue(injectionStrategy = InjectionStrategy.OPTIONAL) | ||
@Nullable | ||
private String validationPattern; |
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.
Please add a test case using validation pattern same for some common customer use-cases (for example) password should contain 2 number, and only some special characters like ! and @
} | ||
|
||
@Override | ||
public Integer getMinLength() { |
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.
Can we create an abstract method and re-use this, looks like it is copy / pasted from TextInput and NumberInput
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.
done
@@ -36,6 +36,7 @@ public enum FieldType { | |||
FORM("form"), | |||
CHECKBOX_GROUP("checkbox-group"), | |||
IMAGE("image"), | |||
|
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.
Please revert this
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.
done
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" | ||
jcr:primaryType="nt:unstructured" | ||
jcr:title="Password" | ||
fieldType="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.
let's get rid of this
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.
Done
jcr:primaryType="cq:ClientLibraryFolder" | ||
allowProxy="{Boolean}true" | ||
categories="[core.forms.components.password.v1.runtime]" | ||
dependencies="[core.forms.components.runtime.base,core.forms.components.container.v2.runtime]"/> |
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.
This should not be dependent on container.v2.runtime, please remove it
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.
Done
placeholder="${password.placeHolder}" | ||
pattern="${password.validationPattern}" | ||
dir="auto" | ||
aria-label="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.
Why is aria-label a constant value ?
@@ -365,6 +365,6 @@ export const Constants = { | |||
* Prefix path for all AF HTTP APIs. | |||
* @type {string} | |||
*/ | |||
API_PATH_PREFIX : "/adobe/forms/af" | |||
API_PATH_PREFIX : "/adobe/forms/af", |
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.
unrelated change
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.
Done
}) | ||
}) | ||
|
||
it("decoration element should not have same class name", () => { |
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.
Can we have runtime test using pattern and eye icon, which is pretty common for password field ?
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: