Skip to content
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

CIF-2842 - Extend List component to list pages by product or category #946

Merged
merged 23 commits into from
Aug 4, 2022

Conversation

LSantha
Copy link
Collaborator

@LSantha LSantha commented Aug 1, 2022

  • initial implementation of commerce list component
  • added unit tets
  • updated examples and documentation

Related Issue

CIF-2842

How Has This Been Tested?

Unit test, UI test, IT, manually.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes and the overall coverage did not decrease.
  • All unit tests pass on CircleCi.
  • I ran all tests locally and they pass.

 * using Associated Content Service in commere content fragment and commerce experience fragment component
 * initial implementation of commerce list component
 * added unit tets
 * updated examples and documentation
@LSantha
Copy link
Collaborator Author

LSantha commented Aug 1, 2022

The tests will pass after CIF add-on release.

}
}

if (contentQuery == null) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Iiuc this causes the component to not support any of the WCM List's behaviours right? Shouldn't we implement a fallback here? Otherwise customers would end up with two list components, one for the wcm case and one for the cif case.

Ideally we could just create the super type model without providing any additional parameters in this case. This would make the Commerce List component a drop in replacement for the wcm list.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually the wcmList is already initialized via injection, so nothing to do there.
My intention is to provide a drop in replacement for WCM List.

Buuhuu and others added 6 commits August 2, 2022 17:51
 * use aem-cif-sdk-api dependency
 * replaced injection based initialization of wcmList with factory based initialization
 * replaced injection based initialization of wcmList with factory based initialization
@Buuhuu Buuhuu added enhancement New feature or request verified labels Aug 4, 2022
 * install the add-on for classic too
 * added IT for commerce list
 * adjusted Navigation ITs
 * enabled ContentFragmentComponentIT for AEM 6.5 which was forgotten in disabled state
@codecov
Copy link

codecov bot commented Aug 4, 2022

Codecov Report

Merging #946 (6b017ca) into master (05f7756) will increase coverage by 0.02%.
The diff coverage is 92.98%.

@@             Coverage Diff              @@
##             master     #946      +/-   ##
============================================
+ Coverage     89.45%   89.47%   +0.02%     
- Complexity     2182     2204      +22     
============================================
  Files           350      351       +1     
  Lines          9803     9860      +57     
  Branches       1410     1422      +12     
============================================
+ Hits           8769     8822      +53     
- Misses          739      742       +3     
- Partials        295      296       +1     
Flag Coverage Δ
integration 52.17% <78.94%> (+0.28%) ⬆️
jest 86.55% <ø> (ø)
karma 95.33% <ø> (ø)
unittests 88.13% <92.98%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ents/internal/models/v1/list/CommerceListImpl.java 92.98% <92.98%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

Base automatically changed from CIF-2537 to master August 4, 2022 13:49
@LSantha LSantha merged commit 7ed0860 into master Aug 4, 2022
@LSantha LSantha deleted the CIF-2842 branch August 4, 2022 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request verified
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants