coopjakob / memory

MIT License
0 stars 0 forks source link

Extra card next to card with specific label #10

Closed coopjakob closed 4 years ago

coopjakob commented 4 years ago

Labels is found as an array in placements[0].products.productLabels and the ID of the label is found as code. It can be "alltidlagtpris", "EKO_SV", "KRAV0U0MARK", "EU0U0ORGANIC0U0FARMING" etc.

If label is being specified in the "buddy card" (ad or info card) we need to find when the first card with this label is shown, and show the card before this card, if not another buddy card is already added, if so, skip and find the next.

See info cards at #9 to know where to look for matching labels. Same support needs to be added to ad cards too.

coopjakob commented 4 years ago

Screenshot 2020-02-27 at 16 05 56

benjick commented 4 years ago

Notice! If the product card is the last one in a row. We don't want to add it as the card before, because then the product card will be pushed to the next row. If this happens we want to get more space at the end of the row by rearrange the cards and change place with the previous card, then it will end up at the next row. (should this be a separate issue maybe?)

Yes please!

coopjakob commented 4 years ago

Yes please!

13

benjick commented 4 years ago

Fixed in https://github.com/benjick/kenora-thistles-nuxt/pull/6/

benjick commented 4 years ago

Done in #15