Skip to content

Conversation

@sethidden
Copy link
Contributor

@sethidden sethidden commented Apr 22, 2022

Before this PR, the category page (category.vue)'s product grid and list views were inlined in the category.vue template.

After this PR, both list and grid components are separate. This means the category.vue template is a bit smaller now.

Acceptance criteria

  • There is a component responsible for rendering grid mode category page
  • There is a component responsible for rendering list mode category page
  • Components have unit tests

@sethidden sethidden force-pushed the M2-447-create-grid-list-components branch 3 times, most recently from 2922093 to 12768bd Compare April 24, 2022 19:00
@sethidden sethidden force-pushed the M2-447-create-grid-list-components branch 4 times, most recently from e6c2a74 to 98fa7c5 Compare April 25, 2022 07:43
@sethidden sethidden force-pushed the M2-447-create-grid-list-components branch 2 times, most recently from c63a33b to 903fc0e Compare April 25, 2022 12:01
/**
* Parameters accepted by the `isInCart` method in the {@link useCart} composable
*/
type UseCartIsInCartParams<CART, PRODUCT> = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The types did not match the implementation here. The cart argument is no longer necessary

@sethidden sethidden force-pushed the M2-447-create-grid-list-components branch 5 times, most recently from c794689 to df61a39 Compare April 25, 2022 14:39
@sethidden sethidden marked this pull request as ready for review April 25, 2022 14:51
M2-447

refactor: split product list and grid components

refactor: move common props to composition function

fix: paths

fix: don't show empty when isShowProducts = false

fix: don't set width on skeletons

fix: wishlist icons appearing when not supposed to

fix: can't add to cart in grid view

refactor: squash this
@sethidden sethidden force-pushed the M2-447-create-grid-list-components branch from df61a39 to 50003ff Compare April 25, 2022 14:55
@Frodigo Frodigo added this to the 1.0.0-rc.7 milestone Apr 26, 2022
@sethidden sethidden merged commit 808cefe into develop Apr 26, 2022
@sethidden sethidden deleted the M2-447-create-grid-list-components branch April 26, 2022 10:28
@sethidden
Copy link
Contributor Author

now we wait for the speedcurve results 👀

@Frodigo Frodigo changed the title refactor: components for product list/grid refactor!: components for product list/grid Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants