-
Notifications
You must be signed in to change notification settings - Fork 59
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
Terms and Conditions Component #889
Conversation
Lighthouse scores (desktop)
|
Lighthouse scores (mobile)
|
Accessibility Violations Found
|
(function($) { | ||
"use strict"; | ||
|
||
var Utils = window.CQ.FormsCoreComponents.Utils.v1, |
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 use the latest ES6 syntax like let, const etc
jcr:primaryType="cq:Component" | ||
jcr:title="Adaptive Form Links (v1)" | ||
sling:resourceSuperType="core/fd/components/form/checkboxgroup/v1/checkboxgroup" | ||
componentGroup=".core-adaptiveform"/> |
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.
The component group for this should be hidden, I don't see any usage of this other than TNC
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.
Also should we name this as toggleable link ?
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/--> | ||
<sly data-sly-use.renderer="${'checkboxgroup.js'}" |
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 do you need to copy paste the entire sightly, it should auto inherit from parent ? This will lead to maintenance hazard
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
Lighthouse scores (desktop)
|
Lighthouse scores (mobile)
|
Accessibility Violations Found
|
Codecov Report
@@ Coverage Diff @@
## dev #889 +/- ##
============================================
+ Coverage 80.16% 80.25% +0.08%
- Complexity 718 728 +10
============================================
Files 88 89 +1
Lines 2032 2046 +14
Branches 269 271 +2
============================================
+ Hits 1629 1642 +13
Misses 254 254
- Partials 149 150 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
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
|
||
String FD_TERMS_AND_CONDITIONS = "fd:tnc"; | ||
|
||
boolean isShowApprovalOption(); |
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 java doc for all API's and also update package-info
97375b1
to
3ca93e5
Compare
Lighthouse scores (desktop)
|
Lighthouse scores (mobile)
|
Accessibility Violations Found
|
c48c506
to
5673178
Compare
Lighthouse scores (desktop)
|
Lighthouse scores (mobile)
|
Accessibility Violations Found
|
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
Accessibility Violations Found
|
Lighthouse scores (desktop)
|
Lighthouse scores (mobile)
|
Accessibility Violations Found
|
5673178
to
fa1bdc8
Compare
Lighthouse scores (desktop)
|
Lighthouse scores (mobile)
|
Accessibility Violations Found
|
fieldLabel="Link" | ||
fieldDescription="Enter the link." | ||
required="{Boolean}true"/> | ||
<enumNames |
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 you implement the rich text which was recently added by @im-shiv, its missing here ? Please also add test cases for the same.
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 is already done
Line 30 in 07e8c84
${checkboxgroup.enumNamesAsTextContent[itemList.index].value @ context = checkboxgroup.enumNamesAsTextContent[itemList.index].richText ? 'html' : 'text'} |
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
* Defines the form {@code TermsAndConditions} Sling Model used for the | ||
* {@code /apps/core/fd/components/form/termsandconditions/v1/termsandconditions} component. | ||
* | ||
* @since com.adobe.cq.forms.core.components.models.form 4.5.0 |
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 you update the package-info.java with 4.7.0 and update the same here, since new interface is added
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
Accessibility Violations Found
|
Lighthouse scores (desktop)
|
Lighthouse scores (mobile)
|
Accessibility Violations Found
|
~ limitations under the License. | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/--> | ||
<template data-sly-template.widget="${ @ checkboxgroup }"> | ||
<div class="cmp-adaptiveform-checkboxgroup__widget ${checkboxgroup.orientation}" id="${widgetId}"> |
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 this copy pasted ? Ideally, markup needs to be re-used from checkbox group right ?
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.
-1 for now
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
Accessibility Violations Found
|
Terms and Conditions Component Terms and Conditions Component Terms and Conditions component Terms and conditions: code formatting and readme Terms and conditions tooltip Terms and conditions review comments Terms and conditions review comments Terms and Conditions Test Case Fix Terms and Conditions added new tests Terms and Conditions review comments Terms and Conditions component
6685b0c
to
b1e26ec
Compare
Lighthouse scores (desktop)
|
Lighthouse scores (mobile)
|
Accessibility Violations Found
|
* Terms and Conditions Terms and Conditions Component Terms and Conditions Component Terms and Conditions component Terms and conditions: code formatting and readme Terms and conditions tooltip Terms and conditions review comments Terms and conditions review comments Terms and Conditions Test Case Fix Terms and Conditions added new tests Terms and Conditions review comments Terms and Conditions component * Terms and Conditions * Terms and Conditions * Terms and conditions: Rich Text Support * Terms and conditions: bump model version --------- Co-authored-by: barshatr <[email protected]>
* Terms and Conditions Terms and Conditions Component Terms and Conditions Component Terms and Conditions component Terms and conditions: code formatting and readme Terms and conditions tooltip Terms and conditions review comments Terms and conditions review comments Terms and Conditions Test Case Fix Terms and Conditions added new tests Terms and Conditions review comments Terms and Conditions component * Terms and Conditions * Terms and Conditions * Terms and conditions: Rich Text Support * Terms and conditions: bump model version --------- Co-authored-by: barshatr <[email protected]>
Terms and Conditions Component
Terms and Conditions component
Terms and conditions: code formatting and readme
Terms and conditions tooltip
Terms and conditions review comments
Terms and conditions review comments
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: