[ECOMMERCE-246] Adapt datasource-products datasource configuration for PreviewProvider Created: 19/Jul/19  Updated: 26/Aug/22

Status: Open
Project: E-commerce
Component/s: None
Affects Version/s: 1.0
Fix Version/s: None

Type: Task Priority: Minor
Reporter: Nguyen Phung Chi Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
caused by ECOMMERCE-225 Product image preview disappeared Closed
dependency
depends upon MGNLUI-5246 Datasource UI context gets lower prio... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: Commerce later
Team: AuthorX

 Description   

What's need to do:

  • Adapt the datasource configuration, in details, move the PreviewProvider part into the correct place <id>datasource-products</id>:

<components>
<id>datasource-products</id>
<component>
<type>info.magnolia.ui.framework.datasource.components.PropertySetFactory</type>
<implementation>info.magnolia.ecommerce.app.products.ProductPropertySetFactory</implementation>
</component>
<component>
<type>info.magnolia.ui.framework.datasource.components.ItemResolver</type>
<implementation>info.magnolia.ecommerce.app.products.ProductItemResolver</implementation>
</component>
<type-mapping>
<type>info.magnolia.ui.contentapp.browser.StatusBar</type>
<implementation>info.magnolia.ecommerce.app.products.ProductStatusBar</implementation>
</type-mapping>
<type-mapping>
<type>info.magnolia.ui.contentapp.browser.ListPresenter</type>
<implementation>info.magnolia.ecommerce.app.products.ProductListPresenter</implementation>
</type-mapping>
</components>

<!-Configure PreviewProvider for product image preview->
<components>
<id>app-ecommerce-products</id>
<component>
<type>info.magnolia.ui.contentapp.browser.preview.PreviewProvider</type>
<implementation>info.magnolia.ecommerce.app.products.preview.EcommerceProductPreviewProvider</implementation>
</component>
</components>

AC:

  • Product image preview should show on the action bar after changes.

 



 Comments   
Comment by Nguyen Phung Chi [ 19/Jul/19 ]

In ECOMMERCE-225, I did a legit workaround, but now MGNLUI-5246 resolved, we can switch back to official solution to config it.

Thanks

Generated at Mon Feb 12 01:42:13 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.