-
Notifications
You must be signed in to change notification settings - Fork 50
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
drag and drop feature in file input #935
Conversation
d2638c8
to
9e5d013
Compare
c296e07
to
6f2ba76
Compare
.../src/main/java/com/adobe/cq/forms/core/components/internal/models/v1/form/FileInputImpl.java
Outdated
Show resolved
Hide resolved
...n/content/jcr_root/apps/core/fd/af-clientlibs/core-forms-components-runtime-all/.content.xml
Outdated
Show resolved
Hide resolved
...s/src/main/content/jcr_root/apps/core/fd/components/form/fileinput/v2/fileinput/.content.xml
Show resolved
Hide resolved
...apps/src/main/content/jcr_root/apps/core/fd/components/form/fileinput/v2/fileinput/README.md
Show resolved
Hide resolved
...content/jcr_root/apps/core/fd/components/form/fileinput/v2/fileinput/_cq_dialog/.content.xml
Outdated
Show resolved
Hide resolved
...root/apps/core/fd/components/form/fileinput/v2/fileinput/clientlibs/site/js/fileinputview.js
Outdated
Show resolved
Hide resolved
...ot/apps/core/fd/components/form/fileinput/v2/fileinput/clientlibs/site/js/fileinputwidget.js
Outdated
Show resolved
Hide resolved
.../src/main/java/com/adobe/cq/forms/core/components/internal/models/v1/form/FileInputImpl.java
Outdated
Show resolved
Hide resolved
Please fix the test failures and check comments |
6f2ba76
to
05fb74a
Compare
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
Accessibility Violations Found
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #935 +/- ##
============================================
+ Coverage 80.29% 80.34% +0.04%
- Complexity 729 732 +3
============================================
Files 89 90 +1
Lines 2045 2050 +5
Branches 271 271
============================================
+ Hits 1642 1647 +5
Misses 251 251
Partials 152 152 ☔ View full report in Codecov by Sentry. |
0c4d213
to
f692b20
Compare
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
Accessibility Violations Found
|
Lighthouse scores (desktop)
|
Lighthouse scores (mobile)
|
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.
Please fix the following,
- I see a lot of copy/paste of code which should have being re-used.
- Please fix the property names.
i will do a second review once this is completed
ComponentExporter.class }, | ||
resourceType = { FormConstants.RT_FD_FORM_FILE_INPUT_V2 }) | ||
@Exporter(name = ExporterConstants.SLING_MODEL_EXPORTER_NAME, extensions = ExporterConstants.SLING_MODEL_EXTENSION) | ||
public class FileInputImplV2 extends FileInputImpl { |
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.
implements FileInput
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.
I need fileinputimpl with one extra property that why extended the FileInputImpl. Should I write whole FileInputImplV2 similar to FileInputImpl by implementing FileInput and then adding my properties above that?
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.
You need to extend the base implementation, but adding an explicit implements makes the code more readable
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.
CWIIW but as FileInputImplV2 is extending the FileInputImpl which is already implementing the FileInput hence its not requried to implement in V2 as well.
...rc/main/java/com/adobe/cq/forms/core/components/internal/models/v2/form/FileInputImplV2.java
Outdated
Show resolved
Hide resolved
bundles/af-core/src/test/resources/schema/0.12.1/adaptive-form.schema.json
Outdated
Show resolved
Hide resolved
...n/content/jcr_root/apps/forms-components-examples/components/form/fileinput/_cq_template.xml
Outdated
Show resolved
Hide resolved
...content/jcr_root/apps/core/fd/components/form/fileinput/v2/fileinput/_cq_dialog/.content.xml
Outdated
Show resolved
Hide resolved
...content/jcr_root/apps/core/fd/components/form/fileinput/v2/fileinput/_cq_dialog/.content.xml
Show resolved
Hide resolved
...s/src/main/content/jcr_root/apps/core/fd/components/form/fileinput/v2/fileinput/.content.xml
Show resolved
Hide resolved
..._root/apps/core/fd/components/form/fileinput/v2/fileinput/clientlibs/editor/js/editDialog.js
Show resolved
Hide resolved
7526a48
to
67976d8
Compare
67976d8
to
3907187
Compare
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
Accessibility Violations Found
|
Lighthouse scores (mobile)
|
Lighthouse scores (desktop)
|
Accessibility Violations Found
|
...n/content/jcr_root/apps/core/fd/af-clientlibs/core-forms-components-runtime-all/.content.xml
Show resolved
Hide resolved
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.
Design wise, the PR looks incorrect to me
77bd9f8
to
ef6ed58
Compare
8b138ec
to
6314fe6
Compare
64f6699
to
32bc644
Compare
32bc644
to
86d0731
Compare
50859d5
to
32bc644
Compare
13675c8
to
3162122
Compare
3162122
to
1716af7
Compare
1716af7
to
627ec86
Compare
627ec86
to
1716af7
Compare
1716af7
to
62c6b4e
Compare
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
No description provided.