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

feat: product configurator support #5347

Merged
merged 465 commits into from
Jan 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
465 commits
Select commit Hold shift + click to select a range
9ddb485
Bug/gh 8595 synchronization issues (#8623)
ChristophHi Aug 18, 2020
573acb1
Add a conflict solver e2e test (#8376)
Larisa-Staroverova Aug 19, 2020
ceb2809
GH-8596 Don't do configuration updates if cart updates are pending (#…
ChristophHi Aug 19, 2020
969c47e
Have e2e tests available for configuration and overview page (#8354)
MichaelBoeser Aug 19, 2020
82ce41f
Feature/gh 8339 (#8405)
schuppell Aug 19, 2020
4de1c61
Bug/gh 8648 cache promotion issue (#8656)
ChristophHi Aug 25, 2020
b44b006
GH-8584 OV banner component does not depend on entry (#8698)
ChristophHi Aug 26, 2020
909a9ab
GH-8709: Remove Link Texts for Conflict Navigation (#8723)
steinsebastian Aug 26, 2020
2f36463
Merge branch 'develop' into epic/product-configuration
ChristophHi Aug 26, 2020
f7a5c09
Fix typo in OV form component
ChristophHi Aug 26, 2020
671584e
Fix typo also in test
ChristophHi Aug 26, 2020
76b5a4b
GH-8727 remove skip from tests (#8731)
MichaelBoeser Aug 26, 2020
32f2d19
GH-8741 delete group status after add to cart test (#8745)
MichaelBoeser Aug 28, 2020
c73502c
Fix formatting change
ChristophHi Aug 31, 2020
e5a602e
fix formatting change
ChristophHi Aug 31, 2020
8fa9042
fix formatting change
ChristophHi Aug 31, 2020
42ce5e7
Reduce difference bettwen dev and epic
ChristophHi Aug 31, 2020
10b583b
fix formatting change
ChristophHi Aug 31, 2020
8638fd5
fix formatting change
ChristophHi Aug 31, 2020
5bd8de0
Fix wrong formatting
ChristophHi Aug 31, 2020
efd34b5
fix wrong formatting
ChristophHi Aug 31, 2020
66ad3e9
fix wrong formatting change
ChristophHi Aug 31, 2020
8e92e45
fix formatting change
ChristophHi Aug 31, 2020
4aba955
fix wrong formatting
ChristophHi Aug 31, 2020
6703d3f
fix wrong formatting
ChristophHi Aug 31, 2020
2a5cdf9
fix unintended formatting
ChristophHi Aug 31, 2020
4c91c46
fix unintended formatting
ChristophHi Aug 31, 2020
673da2e
fix unintended formatting
ChristophHi Aug 31, 2020
60f2372
fix unintended formatting
ChristophHi Aug 31, 2020
f65e6c5
Fix unintended formatting
ChristophHi Aug 31, 2020
d8b99d5
Fix unintended formatting
ChristophHi Aug 31, 2020
9d2cd55
Fix unintended formatting
ChristophHi Aug 31, 2020
fee8ba1
Fix unintended formatting
ChristophHi Aug 31, 2020
3b2913c
Fix unintended formatting
ChristophHi Aug 31, 2020
7908cb8
Fix unintended formatting
ChristophHi Aug 31, 2020
9cdb1c8
Fix unintended formatting
ChristophHi Aug 31, 2020
9ab091b
Merge branch 'develop' into epic/product-configuration
ChristophHi Aug 31, 2020
5a71ccc
Fix duplicate line
ChristophHi Aug 31, 2020
1ce39a7
Fix unintended formatting
ChristophHi Sep 1, 2020
432da03
Fix unintended formatting
ChristophHi Sep 1, 2020
2282700
Fix unintended formatting
ChristophHi Sep 1, 2020
cf849f4
Fix unintended formatting
ChristophHi Sep 1, 2020
5466e95
Fix unintended formatting
ChristophHi Sep 1, 2020
0cf06bd
Fix unintended formatting
ChristophHi Sep 1, 2020
869321f
Fix unintended formatting
ChristophHi Sep 1, 2020
8ff5b35
Fix unintended formatting
ChristophHi Sep 1, 2020
b79c17e
Fix unintended formatting
ChristophHi Sep 1, 2020
7b391c1
Fix duplicate line
ChristophHi Sep 1, 2020
ac45e20
GH-8629 Anonymous consent: Improve error handling (#8726)
ChristophHi Sep 1, 2020
f2414e3
Bug/gh 8732 cover non existing session cart (#8737)
ChristophHi Sep 1, 2020
0e149d6
Feature/gh 8696 wait for issue navigation in menu (#8715)
ChristophHi Sep 1, 2020
f7a0b38
Feature/gh 8754 extensibility improvement (#8758)
ChristophHi Sep 2, 2020
b63956f
GH-8346: change ngselect to select to keep focus on ddl (#8598)
alepil Sep 2, 2020
252cdaa
Feature/gh 8406 move facade layer (#8718)
ChristophHi Sep 2, 2020
a83ebee
Bug/gh 8588 menu shows wrong group (#8765)
ChristophHi Sep 3, 2020
33be567
GH-8669: Add conflict to config group status determination (#8749)
schuppell Sep 3, 2020
f3c77ea
GH-8775 Fix test coverage for effect (#8804)
ChristophHi Sep 3, 2020
cb44e38
Feature/gh 8799 review feedback (#8800)
ChristophHi Sep 3, 2020
1c30e7b
GH-8323 move cypress tests (#8790)
MichaelBoeser Sep 4, 2020
6b12fad
GH-8807: Take total number of issues from OCC (#8817)
steinsebastian Sep 7, 2020
61545bc
Feature/gh 8813 prettify routes (#8821)
ChristophHi Sep 7, 2020
70caaf9
Fix failing cypress tests
Larisa-Staroverova Sep 8, 2020
6c6a129
Change Image Selection to offer both Enter and Space (Single and Mult…
Larisa-Staroverova Sep 8, 2020
0ecc69a
Feature/gh 8805 move store (#8806)
ChristophHi Sep 8, 2020
2f2339b
Feature/gh 8836 rename entities (#8849)
ChristophHi Sep 9, 2020
c6b8775
Add a filter to overview notification banner (#8855)
Larisa-Staroverova Sep 10, 2020
a7d3a27
Change group Menu HTML structure (#8831)
Larisa-Staroverova Sep 10, 2020
31174d6
GH-8802: Change layout config (#8867)
schuppell Sep 10, 2020
170b2b6
Merge branch 'develop' into epic/product-configuration
ChristophHi Sep 11, 2020
e6c3f95
Merge branch 'develop' into epic/product-configuration
ChristophHi Sep 11, 2020
b148106
Revert unintended formatting
ChristophHi Sep 11, 2020
656944c
Feature/gh 8835 move connectors adapters (#8862)
ChristophHi Sep 11, 2020
6f9d3d3
Bug/gh 8863 checkout data synchronization (#8904)
ChristophHi Sep 14, 2020
da58539
Feature/gh 8812 (#8900)
steinsebastian Sep 14, 2020
b2e7204
Feature/gh 8851 (#8913)
schuppell Sep 15, 2020
9322e6b
Enable button for read only (#8932)
Larisa-Staroverova Sep 17, 2020
a38b235
Feature/gh 8899 move assets (#8918)
ChristophHi Sep 18, 2020
a439e30
Apply ng 10 / Merge develop into epic/product-configuration (#8947)
Larisa-Staroverova Sep 18, 2020
1738ec4
GH-8897: Change test user (#8954)
steinsebastian Sep 18, 2020
b465c3c
GH-8948 Fix waiting for issue navigation (#8951)
ChristophHi Sep 21, 2020
1c21224
GH-8781: Refactor configurator-message component (#8803)
schuppell Sep 21, 2020
a78c1de
Bug/gh 8961 add to cart wrong value (#8975)
ChristophHi Sep 22, 2020
9998b47
Fix cypress test: Order not found in order history (#8974)
Larisa-Staroverova Sep 22, 2020
1dfc5ee
Define ConfiguratorUIKeyGenerator as a base class for components (#8966)
Larisa-Staroverova Sep 23, 2020
70cfc32
GH-9011 use a different selector (#9012)
MichaelBoeser Sep 24, 2020
b0e6648
Re-activate all cypress tests that are not executed after the 20.05 m…
Larisa-Staroverova Sep 24, 2020
fde4460
GH-9058 Introduce retractTriggered / small renaming in update event (…
ChristophHi Sep 28, 2020
0d455e0
Merge branch 'develop' into epic/product-configuration
Larisa-Staroverova Sep 28, 2020
ecb16cb
Fix shaky test (#9062)
Larisa-Staroverova Sep 28, 2020
4980981
GH-9095 Rename CMS components to more generic names (#9102)
ChristophHi Sep 30, 2020
ea494a6
Expose styles from product lib
ChristophHi Sep 30, 2020
3f11e19
Refactor shaky e2e test (#9094)
Larisa-Staroverova Sep 30, 2020
eb60d28
Merge branch 'develop' into epic/product-configuration
ChristophHi Oct 1, 2020
bb04107
GH-9097: Change CSS and HTML Structure to fix display bug (#9125)
schuppell Oct 2, 2020
ed0e020
Rafactor e2e tests for running in ccv2 (#9135)
Larisa-Staroverova Oct 2, 2020
650fea9
Merge branch 'develop' into epic/product-configuration
ChristophHi Oct 5, 2020
bae2588
Fix order hook test
ChristophHi Oct 5, 2020
82533aa
GH-9137: Remove explicit handling of plural message keys (#9162)
ChristophHi Oct 5, 2020
7bc538e
Change HTML structure of image selection components according to HTML…
Larisa-Staroverova Oct 5, 2020
786c95d
Fix failing cypress test
Larisa-Staroverova Oct 5, 2020
fa40768
Merge branch 'develop' into epic/product-configuration
ChristophHi Oct 7, 2020
7e4263c
Remove unneeded import of httpClientModule
ChristophHi Oct 8, 2020
42f8ded
Merge branch 'develop' into epic/product-configuration
ChristophHi Oct 9, 2020
154024a
Remove obsolete test
ChristophHi Oct 9, 2020
92ba3d0
Simplify DOM structure I (#9182)
Larisa-Staroverova Oct 14, 2020
b65bc7c
GH-8631 add route and wait for route (#9301)
MichaelBoeser Oct 14, 2020
2718186
GH-9228: Fix cypress test: check of group-title (#9326)
steinsebastian Oct 15, 2020
04e0d65
Simplify DOM structure II (#9299)
Larisa-Staroverova Oct 19, 2020
413047e
GH-9281: Add logout function to configuration helper (#9383)
schuppell Oct 20, 2020
9adf58d
Support right-to-left (part I) (#9420)
Larisa-Staroverova Oct 20, 2020
408049b
Merge branch 'develop' into epic/product-configuration
ChristophHi Oct 21, 2020
b5037ee
Refactor group menu for RTL & LTR support (#9448)
Larisa-Staroverova Oct 22, 2020
339a5cf
Refactor styling (#9472)
Larisa-Staroverova Oct 22, 2020
675f577
GH-9178 extract OCC configuration into feature lib (#9212)
ChristophHi Oct 23, 2020
5be2615
GH-9330: Issue with group status after resolve conflict (#9451)
steinsebastian Oct 26, 2020
6543c6c
Correct styling for DE product title (#9523)
Larisa-Staroverova Oct 27, 2020
75e973a
Empty group should not be clickable and not be visited (#9509)
Larisa-Staroverova Oct 28, 2020
f77a54a
Feature/gh 9000 restructure libs (#9566)
ChristophHi Oct 29, 2020
7830268
GH-9000 Fix build
ChristophHi Oct 29, 2020
8675f82
Merge branch 'develop' into epic/product-configuration
ChristophHi Oct 29, 2020
5a6e71c
Fix API (was accidentally removed during merge)
ChristophHi Oct 29, 2020
2784823
Fix prettier issues
ChristophHi Oct 29, 2020
445d1de
Feature/gh 9589 refactor adapters converters (#9628)
ChristophHi Nov 3, 2020
e0d59b9
Merge branch 'develop' into epic/product-configuration
ChristophHi Nov 3, 2020
65a8b45
Fix test
ChristophHi Nov 3, 2020
d97e806
GH-9666 rename new checkout selector and facade method and turn meani…
ChristophHi Nov 6, 2020
fa23fec
Merge branch 'develop' into epic/product-configuration
ChristophHi Nov 10, 2020
a3d09a1
Fix styling that is not RTL compliant
ChristophHi Nov 10, 2020
5237a2c
GH-9720: Use complete/consistent flags from OCC
steinsebastian Nov 12, 2020
efa0a03
GH-9723 Make endpoints configurator specific again (#9728)
ChristophHi Nov 12, 2020
4cded34
Remove disable / trash icon & add some group status tests (#9756)
Larisa-Staroverova Nov 12, 2020
2fcb44a
Feature/gh 9740 extract configurator from storefrontlib (#9754)
ChristophHi Nov 13, 2020
a4aaaf1
Feature/gh 9759 product outlets (#9775)
ChristophHi Nov 16, 2020
e690ab7
Merge branch 'develop' into epic/product-configuration
ChristophHi Nov 16, 2020
d6dfced
Fix warnings / get rid of deprecated imports
ChristophHi Nov 17, 2020
853867f
Feature/gh 9177 type augmentation and cleanup (#9799)
ChristophHi Nov 17, 2020
9f30432
GH-9434 delegate modal handling to modalModule (#9800)
ChristophHi Nov 17, 2020
47d1b88
Remove obsolete changes
ChristophHi Nov 17, 2020
b7c7981
Simplify DOM structure: cart-issues-notification, configure-cart-entr…
Larisa-Staroverova Nov 18, 2020
52d9666
Rafector configure button styling on PDP
Larisa-Staroverova Nov 18, 2020
5bb5245
Merge branch 'develop' into epic/product-configuration
ChristophHi Nov 19, 2020
45ee51b
Fix rulebased styling
ChristophHi Nov 19, 2020
bd76271
Fix prettier issue
ChristophHi Nov 19, 2020
907a647
Fix configure button styling (#9982)
Larisa-Staroverova Nov 23, 2020
f2386a8
Increase coverage (#9944)
steinsebastian Nov 26, 2020
afe1010
Merge branch 'develop' into epic/product-configuration
ChristophHi Nov 30, 2020
fa3e890
GH-9161: Change Button to anchor tag (#10033)
schuppell Nov 30, 2020
7e11f76
Fix failing cypress tests
Larisa-Staroverova Dec 1, 2020
8915828
GH-10148: Fix cypress test (#10156)
steinsebastian Dec 2, 2020
5362232
Feature/gh 9943 review feedback (#9973)
ChristophHi Dec 2, 2020
ec4070b
Change description of e2e smoke test
ChristophHi Dec 3, 2020
361f8b1
Merge branch 'develop' into epic/product-configuration
ChristophHi Dec 3, 2020
263edaa
Change descriptions in e2e regression test
ChristophHi Dec 3, 2020
8ebd9fb
Publicly export new service
ChristophHi Dec 3, 2020
b020bd9
GH-10213 Disabled e2e test and removed page labels (#10227)
ChristophHi Dec 4, 2020
00cdb17
How to do e2e order test without providing test user in sampledata (#…
Larisa-Staroverova Dec 7, 2020
4d88f03
GH-10224 Extract default routes from storefrontlib (#10239)
ChristophHi Dec 8, 2020
5db24df
GH-10279 Fix validation (#10282)
ChristophHi Dec 9, 2020
8a2da85
Dispaly previous & next buttons only if there is more than one group …
Larisa-Staroverova Dec 9, 2020
4d76d77
Merge branch 'develop' into epic/product-configuration
ChristophHi Dec 10, 2020
aaece16
GH-10265: Don't show complete and warning icons at the same time (#10…
steinsebastian Dec 10, 2020
6b237aa
Fix prettier issues
ChristophHi Dec 10, 2020
e778ce0
Merge branch 'epic/product-configuration' of https://github.com/SAP/c…
ChristophHi Dec 10, 2020
4e87fe2
Previous button gets a hover mode even when the button is disable (#1…
Larisa-Staroverova Dec 10, 2020
815b023
GH-10199 Product detail scope doesn't need to include CFG scope (#10236)
ChristophHi Dec 10, 2020
5d5a271
Fix styling issue (#10333)
Larisa-Staroverova Dec 11, 2020
45644a5
GH-10280 AddToCart button always enabled (#10339)
ChristophHi Dec 14, 2020
ca6a864
Refactor cypress product-configuration helper classes (#10416)
Larisa-Staroverova Dec 15, 2020
d6c1a76
fix: improve group menu sidebar (#10423)
kacperknapik Dec 16, 2020
35816bc
Feature/gh 10259 move library (#10394)
ChristophHi Dec 17, 2020
28bd83c
Merge branch 'develop' into epic/product-configuration
ChristophHi Dec 17, 2020
72fdbf6
Add product-configurator in changelog.ts
ChristophHi Dec 17, 2020
d2be454
Include product-configurator in api-extractor
ChristophHi Dec 17, 2020
ed34368
Sync helper cypress class
Larisa-Staroverova Dec 17, 2020
49c1c18
Merge branch 'epic/product-configuration' of https://github.com/SAP/s…
Larisa-Staroverova Dec 17, 2020
183dbdf
GH-10473 Prepare .scss
ChristophHi Dec 17, 2020
76d2260
Merge branch 'develop' into epic/product-configuration
ChristophHi Dec 17, 2020
84409c2
Merge branch 'epic/product-configuration' into feature/GH-10473-load-…
ChristophHi Dec 17, 2020
7d74ce4
Fix styles.scss
ChristophHi Dec 17, 2020
9577afa
Merge branch 'epic/product-configuration' into feature/GH-10473-load-…
ChristophHi Dec 17, 2020
5483bf3
GH-10473 Import core scss
ChristophHi Dec 17, 2020
beb741d
fix: Use productSearch model instead of product model in PLP outlet (…
Platonn Dec 21, 2020
97e2e4b
Merge branch 'develop' into epic/product-configuration
ChristophHi Dec 22, 2020
7b7d773
Revert group menu styling fix
Larisa-Staroverova Dec 22, 2020
46f35cf
Define own data type object in configuration model (#10549)
Larisa-Staroverova Jan 4, 2021
f8c0e58
GH-10503 (#10504)
ChristophHi Jan 4, 2021
4a442a6
Remove obsolete field
ChristophHi Jan 8, 2021
7170ae6
GH-10645 add namespace for configuration (#10646)
ChristophHi Jan 11, 2021
68ef1db
GH-10647 Fix display from order history (#10648)
ChristophHi Jan 11, 2021
8cc99d7
Merge branch 'develop' into epic/product-configuration
ChristophHi Jan 12, 2021
63ca878
Prettyfiy
ChristophHi Jan 12, 2021
e01fd0f
Revert obsolete changes
ChristophHi Jan 12, 2021
9c2c3a3
Update root package.json & cypress package.json
Larisa-Staroverova Jan 13, 2021
99e8ef8
Update package.json
Larisa-Staroverova Jan 13, 2021
0c1ad13
Make prettier happy
Larisa-Staroverova Jan 13, 2021
f3764ce
Update package.json IV
Larisa-Staroverova Jan 13, 2021
b4e5955
replace children with within() as in CPQ branch
Uli-Tiger Jan 13, 2021
7c1284a
Fix confusing naming for locale retrieval
ChristophHi Jan 14, 2021
3e9f99d
Merge branch 'develop' into epic/product-configuration
ChristophHi Jan 19, 2021
c4f5055
Revert change to start command
ChristophHi Jan 19, 2021
ac8b8e7
Merge branch 'develop' into epic/product-configuration
ChristophHi Jan 19, 2021
3c9d1e5
Revert obsolete formatting changes
ChristophHi Jan 20, 2021
b4d34c9
Revert obsolete formatting settings
ChristophHi Jan 20, 2021
2679bef
Remove obsolete todo list
ChristophHi Jan 20, 2021
c3e7a9f
Fix failing cypress tests
Larisa-Staroverova Jan 20, 2021
8af4a45
Merge branch 'epic/product-configuration' of https://github.com/SAP/s…
Larisa-Staroverova Jan 20, 2021
9d54815
Improve attribute header label styling (#10784)
Larisa-Staroverova Jan 20, 2021
22f4f52
Review feedback I
ChristophHi Jan 21, 2021
29c89a4
Review Feedback II
ChristophHi Jan 21, 2021
f8a6945
Merge branch 'develop' into epic/product-configuration
ChristophHi Jan 21, 2021
dee5b2b
Remove formatting changes
ChristophHi Jan 21, 2021
42a1979
Improve required message styling (#10791)
Larisa-Staroverova Jan 21, 2021
e583966
Only expose dummy constant in product lib, renaming of enums
ChristophHi Jan 21, 2021
ce54836
fix scss linter - no block comments
Platonn Jan 21, 2021
b26d95b
Clean up public_api and remove obsolete theta-exports
ChristophHi Jan 21, 2021
7625420
Introduce env variable and rename
ChristophHi Jan 21, 2021
af89f34
Add fallback in environment.prod.ts as well
ChristophHi Jan 21, 2021
5733acf
add explicit alias for umd modules to avoid warnings in prod build
Platonn Jan 21, 2021
9532e0e
Merge branch 'epic/product-configuration' of github.com:SAP/spartacus…
Platonn Jan 21, 2021
1f9bc4d
Merge branch 'develop' into epic/product-configuration
Platonn Jan 21, 2021
8db9ed6
dropenvironment-driven inclusion of the lib
Platonn Jan 21, 2021
75e32d4
Merge branch 'epic/product-configuration' of github.com:SAP/spartacus…
Platonn Jan 21, 2021
08a10d3
drop environment-driven inclusion of the lib - part 2
Platonn Jan 21, 2021
4b29ef6
import feature directly in app.module (#10820)
Platonn Jan 22, 2021
dd63df6
fix prettier package.json
Platonn Jan 22, 2021
0880da5
move product configuration imports from app.module to b2c.feature
Platonn Jan 22, 2021
8bafd24
add dummy test in empty product lib to pass core coverage
Platonn Jan 22, 2021
038aaa3
add comment for dummy test
Platonn Jan 22, 2021
1ee1563
Wait for OCC calls to return (#10851)
ChristophHi Jan 25, 2021
eae71ff
Merge branch 'develop' of github.com:SAP/spartacus into epic/product-…
Platonn Jan 25, 2021
ba77ab9
Feature/gh 10825 stabilize e2e (#10870)
ChristophHi Jan 25, 2021
1ccaf01
GH-10858-avoid-breaking-change-with-3.0 (#10868)
ChristophHi Jan 26, 2021
370df27
Merge branch 'develop' into epic/product-configuration
ChristophHi Jan 26, 2021
8b8a3b9
Extract flaky cypress tests
Larisa-Staroverova Jan 26, 2021
6d29931
trigger travis
Platonn Jan 26, 2021
ff4bc4b
trigger travis 2
Platonn Jan 26, 2021
a74daf8
remove ngcc lock from node_modules before building libs
Platonn Jan 26, 2021
3a366d8
trigger travis 3
Platonn Jan 26, 2021
542b602
remove ngcc lock file before every build of libs - for developers con…
Platonn Jan 26, 2021
0c14e9a
remove only the ngcc lock file, but not whole .cli-ngcc folder
Platonn Jan 26, 2021
da1cbe3
Merge branch 'develop' of github.com:SAP/spartacus into epic/product-…
Platonn Jan 26, 2021
017d927
Mark VC related tests as flaky
ChristophHi Jan 27, 2021
b207a3d
Merge branch 'develop' into epic/product-configuration
ChristophHi Jan 27, 2021
f9d0393
Fix package.json
ChristophHi Jan 27, 2021
c5038a1
Fix config files
ChristophHi Jan 27, 2021
2fd34ad
Merge branch 'develop' into epic/product-configuration
Platonn Jan 27, 2021
56cfcc8
Unify suite names
ChristophHi Jan 27, 2021
b8aeabe
Remove obsolete method
ChristophHi Jan 27, 2021
9b1934b
Wrap with version mixin: repeat
ChristophHi Jan 27, 2021
f346c93
prettier:fix package.json of product configurator
Platonn Jan 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
42 changes: 42 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
"input": "projects/storefrontapp/src/styles/lib-organization.scss",
"bundleName": "organization"
},
{
"input": "projects/storefrontapp/src/styles/lib-product-configurator.scss",
"bundleName": "product-configurator"
},
{
"input": "projects/storefrontapp/src/styles/lib-storefinder.scss",
"bundleName": "storefinder"
Expand Down Expand Up @@ -491,6 +495,44 @@
}
}
},
"product-configurator": {
"projectType": "library",
"root": "feature-libs/product-configurator",
"sourceRoot": "feature-libs/product-configurator",
"prefix": "cx",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "feature-libs/product-configurator/tsconfig.lib.json",
"project": "feature-libs/product-configurator/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "feature-libs/product-configurator/tsconfig.lib.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "feature-libs/product-configurator/test.ts",
"tsConfig": "feature-libs/product-configurator/tsconfig.spec.json",
"karmaConfig": "feature-libs/product-configurator/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"feature-libs/product-configurator/tsconfig.lib.json",
"feature-libs/product-configurator/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
},
"cdc": {
"projectType": "library",
"root": "integration-libs/cdc",
Expand Down
20 changes: 18 additions & 2 deletions ci-scripts/unit-tests-sonar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [[ -n "$coverage" ]]; then
exit 1
fi

echo "Running unit tests and code coverage for Spartacus core"
echo "Running unit tests and code coverage for core"
exec 5>&1
output=$(ng test core --watch=false --sourceMap --code-coverage --browsers=ChromeHeadless | tee /dev/fd/5)
coverage=$(echo $output | grep -i "does not meet global threshold" || true)
Expand All @@ -22,7 +22,7 @@ if [[ -n "$coverage" ]]; then
exit 1
fi

echo "Running unit tests and code coverage for storefront library"
echo "Running unit tests and code coverage for storefrontlib"
exec 5>&1
output=$(ng test storefrontlib --sourceMap --watch=false --code-coverage --browsers=ChromeHeadless | tee /dev/fd/5)
coverage=$(echo $output | grep -i "does not meet global threshold" || true)
Expand All @@ -31,6 +31,22 @@ if [[ -n "$coverage" ]]; then
exit 1
fi

echo "Running unit tests and code coverage for product library"
exec 5>&1
output=$(ng test product --sourceMap --watch=false --code-coverage --browsers=ChromeHeadless | tee /dev/fd/5)

echo "Running unit tests and code coverage for product-configurator library"
exec 5>&1
output=$(ng test product-configurator --sourceMap --watch=false --code-coverage --browsers=ChromeHeadless | tee /dev/fd/5)
coverage=$(echo $output | grep -i "does not meet global threshold" || true)
if [[ -n "$coverage" ]]; then
echo "Error: Tests did not meet coverage expectations"
exit 1
fi
echo "Running schematics unit tests and code coverage for product-configurator library"
exec 5>&1
output=$(yarn --cwd feature-libs/product-configurator run test:schematics --coverage=true | tee /dev/fd/5)

echo "Running unit tests and code coverage for CDC"
exec 5>&1
output=$(ng test cdc --sourceMap --watch=false --code-coverage --browsers=ChromeHeadless | tee /dev/fd/5)
Expand Down
34 changes: 34 additions & 0 deletions feature-libs/product-configurator/.release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"git": {
"requireCleanWorkingDir": true,
"requireUpstream": false,
"tagName": "product-configurator-${version}",
"commitMessage": "Bumping product-configurator version to ${version}",
"tagAnnotation": "Bumping product-configurator version to ${version}"
},
"npm": {
"publishPath": "./../../dist/product-configurator"
},
"hooks": {
"after:version:bump": "cd ../.. && ng build product-configurator --prod"
},
"github": {
"release": true,
"assets": ["../../docs.tar.gz", "../../docs.zip"],
"releaseName": "@spartacus/product-configurator@${version}",
"releaseNotes": "ts-node ../../scripts/changelog.ts --verbose --lib product-configurator --to product-configurator-${version}"
},
"plugins": {
"../../scripts/release-it/bumper.js": {
"out": [
{
"file": "package.json",
"path": [
"peerDependencies.@spartacus/core",
"peerDependencies.@spartacus/storefront"
]
}
]
}
}
}
5 changes: 5 additions & 0 deletions feature-libs/product-configurator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Spartacus Product Configurator

`@spartacus/product-configurator` is a package that you can include in your application, which allows you to use different product configurators.

For more information, see [Spartacus](https://github.com/SAP/spartacus).
5 changes: 5 additions & 0 deletions feature-libs/product-configurator/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import '~@spartacus/styles/scss/core';

@import './common/index';
@import './rulebased/index';
@import './textfield/index';
17 changes: 17 additions & 0 deletions feature-libs/product-configurator/common/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@import './styles/index';

$configurator-common-components: cx-configurator-issues-notification,
cx-configure-product, cx-configure-cart-entry, cx-configurator-cart-entry-info !default;

@each $selector in $configurator-common-components {
#{$selector} {
@extend %#{$selector} !optional;
}
}

// add body specific selectors
body {
@each $selector in $configurator-common-components {
@extend %#{$selector}__body !optional;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './translations/translations';
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
export const configurator = {
configurator: {
header: {
consistent: 'Consistent',
complete: 'Complete',
configId: 'Configuration ID',
toconfig: 'Configure',
editConfiguration: 'Edit Configuration',
displayConfiguration: 'Display Configuration',
resolveIssues: 'Resolve Issues',
updateMessage: 'The configuration is being updated in the background',
showMore: 'show more',
showLess: 'show less',
},
tabBar: {
configuration: 'Configuration',
overview: 'Overview',
},
notificationBanner: {
numberOfIssues: '{{count}} issue must be resolved before checkout.',
numberOfIssues_plural:
'{{count}} issues must be resolved before checkout.',
},
attribute: {
caption: 'Attributes',
notSupported: 'Attibute Type is not supported.',
requiredAttribute: '{{param}} required',
defaultRequiredMessage: 'Enter a value for the required field',
singleSelectRequiredMessage: 'Select a value',
multiSelectRequiredMessage: 'Select one or more values',
wrongNumericFormat:
'Wrong format, this numerical attribute should be entered according to pattern {{pattern}}',
},
button: {
previous: 'Previous',
next: 'Next',
back: 'Back',
},
priceSummary: {
basePrice: 'Base Price',
selectedOptions: 'Selected Options',
totalPrice: 'Total',
},
addToCart: {
button: 'Add to Cart',
buttonAfterAddToCart: 'Continue to Cart',
buttonUpdateCart: 'Done',
confirmation: 'Configuration has been added to the cart',
confirmationUpdate: 'Cart has been updated with configuration',
},
overviewForm: {
noAttributeHeader: 'No Results',
noAttributeText: 'Remove filter(s) to see Overview content',
},
group: {
general: 'General',
conflictHeader: 'Resolve conflicts',
conflictGroup: 'Conflict for {{attribute}}',
},
conflict: {
suggestionTitle: 'Suggestion {{number}}:',
suggestionText: 'Change value for "{{ attribute }}"',
viewConflictDetails: 'Conflict Detected',
viewConfigurationDetails: '',
},
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { configurator } from './configurator-common';

export const en = {
configurator,
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { TranslationChunksConfig, TranslationResources } from '@spartacus/core';
import { en } from './en/index';

export const configuratorTranslations: TranslationResources = {
en,
};
//empty for now but needed for schematics support
export const configuratorTranslationChunksConfig: TranslationChunksConfig = {};
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { NgModule } from '@angular/core';
import { CommonConfiguratorComponentsModule } from './components/common-configurator-components.module';
import { CommonConfiguratorCoreModule } from './core/common-configurator-core.module';
import { CommonConfiguratorOccModule } from './occ/common-configurator-occ.module';

@NgModule({
imports: [CommonConfiguratorCoreModule, CommonConfiguratorComponentsModule],
imports: [CommonConfiguratorOccModule, CommonConfiguratorComponentsModule],
})
export class CommonConfiguratorModule {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { NgModule } from '@angular/core';
import { ConfiguratorCartEntryInfoModule } from './configurator-cart-entry-info/configurator-cart-entry-info.module';
import { ConfiguratorIssuesNotificationModule } from './configurator-issues-notification/configurator-issues-notification.module';
import { ConfigureCartEntryModule } from './configure-cart-entry/configure-cart-entry.module';
import { ConfigureProductModule } from './configure-product/configure-product.module';

@NgModule({
imports: [
ConfiguratorIssuesNotificationModule,
ConfiguratorCartEntryInfoModule,
ConfigureCartEntryModule,
ConfigureProductModule,
],
})
export class CommonConfiguratorComponentsModule {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<ng-container *ngIf="cartItemContext?.context$ | async as ctx">
<ng-container *ngIf="hasStatus(ctx.item)">
<div
class="cx-configuration-info"
*ngFor="let info of ctx.item.configurationInfos"
>
<div class="cx-label">{{ info?.configurationLabel }}:</div>
<div class="cx-value">
{{ info?.configurationValue }}
</div>
</div>
</ng-container>

<cx-configure-cart-entry
*ngIf="ctx.item?.product?.configurable"
[cartEntry]="ctx.item"
[readOnly]="ctx.readonly"
[msgBanner]="false"
[disabled]="ctx.quantityControl.disabled"
></cx-configure-cart-entry>
</ng-container>
Loading