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

[Blockwishlist] Mismatch class naming between the Share.vue component and the share.tpl file #26349

Closed
ghost opened this issue Oct 21, 2021 · 11 comments · Fixed by PrestaShop/blockwishlist#136
Labels
1.7.7.8 Affects versions Blockwishlist Module: blockwishlist Bug Type: Bug CO Category: Core Fixed Resolution: issue closed because fixed Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification Modules Component: Which BO section is concerned PR available Solution: issue is being addressed Regression Type: regression Verified The issue has been reproduced

Comments

@ghost
Copy link

ghost commented Oct 21, 2021

Describe the bug

The css class in the Share.vue component (line 117) does not match the class provided in the share.tpl file (line 21). If we modify the css in the vue file, all the changes will affect the display of the modal-create instead of the modal-share.

Expected behavior

Replace &-create by &-share into the Share.vue file to match the class in the share.tpl which is "wishlist-share".

Steps to reproduce

  1. In the Share.vue file (blockwishlist/_dev/front/js/components/Share/Share.vue), add a background-color : #FFCC00; like this
  .wishlist {
    &-create {
      .wishlist-modal {
        background-color : #FFCC00;
        display: block;
        opacity: 0;
        pointer-events: none;
        z-index: 0;
        &.show {
          opacity: 1;
          pointer-events: all;
          z-index: 1053;
        }
      }
    }
  }
  1. compile the module assets npm install then npm run build
  2. In the FO, go to the My account's lists page.
  3. Click on "Create a new list" : the background is changed by the color set in the Share.vue file. When you click on "Share the list", the background is not changed.

The changes set in the Share.vue file must target only the share modal and not the create modal.

Screenshots:

  • Add a new List => NOK, the background shouldn't be changed
    image

  • Share a list => NOK, the background-color should be yellow
    image

Additional context

  • Blockwishlist version : 2.0.1
  • PrestaShop version : all PS supported by this module ( >= 1.7.6.x)
@hibatallahAouadni
Copy link
Contributor

Hello @a-apare

Could you please provide steps to reproduce the issue and your PS version.
Please check and feedback.

Thanks!

@hibatallahAouadni hibatallahAouadni added 1.7.x Branch Blockwishlist Module: blockwishlist Bug Type: Bug CO Category: Core Modules Component: Which BO section is concerned NMI Status: issue needs more information labels Oct 21, 2021
@ghost
Copy link
Author

ghost commented Oct 21, 2021

Hello @a-apare

Could you please provide steps to reproduce the issue and your PS version. Please check and feedback.

Thanks!

I have updated the issue, is this OK for you ?

@NeOMakinG
Copy link

Describe the bug

The css class into the Share.vue component (line 117) does not match the class provided into the share.tpl file (line 21). If we modify the css in the vue file, all the changes will affect the display of the modal-create instead of the modal-share.

Expected behavior

Replace &-create by &-share into the Share.vue file to match the class into the share.tpl which is "wishlist-share".

Steps to reproduce

  1. In the Share.vue file (blockwishlist/_dev/front/js/components/Share/Share.vue), add a "background-color : #FFCC00;" like this
    .wishlist { &-create { .wishlist-modal { background-color : #FFCC00; display: block; opacity: 0; pointer-events: none; z-index: 0; &.show { opacity: 1; pointer-events: all; z-index: 1053; } } } }
  2. compile the module assets npm run build
  3. In the FO, go to the My account's lists page.
  4. Click on "Create a new list" : the background is changed by the color set into the Share.vue file. When you click on "Share the list", the background is not changed.

The changes set into the Share.vue file must target only the share modal and not the create modal.

Additional context

  • Blockwishlist version : 2.0.1
  • PrestaShop version : all PS supported by this module ( >= 1.7.6.x)

Nice catch! Looks legit to me

@khouloudbelguith
Copy link
Contributor

Hi @a-pare,

I tried to run this command npm run build
But I have this error
image

What do you think?

Thanks!

@apare-prolaser
Copy link

Hi @a-pare,

I tried to run this command npm run build But I have this error image

What do you think?

Thanks!

Sorry, I did not mention to execute npm install before building the assets :)

@khouloudbelguith
Copy link
Contributor

@apare-prolaser,

I manage to reproduce the issue with PS1780 & PS1778 using the blockwishlist module v2.0.1
Add a new liste => ok
image
Share a list => NOK
image

Thanks for the PR 👍

@khouloudbelguith khouloudbelguith added 1.7.7.8 Affects versions Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification PR available Solution: issue is being addressed Ready Status: Issue is ready to be worked on and removed 1.7.x Branch NMI Status: issue needs more information labels Oct 22, 2021
@khouloudbelguith khouloudbelguith added this to To do in Native modules integration via automation Oct 22, 2021
@khouloudbelguith khouloudbelguith moved this from To do to To be tested in Native modules integration Oct 22, 2021
@hibatallahAouadni hibatallahAouadni moved this from To be tested to To be merged in Native modules integration Oct 27, 2021
@hibatallahAouadni hibatallahAouadni added Fixed Resolution: issue closed because fixed and removed Ready Status: Issue is ready to be worked on labels Oct 27, 2021
Native modules integration automation moved this from To be merged to Done Oct 27, 2021
@Progi1984 Progi1984 assigned ghost Oct 27, 2021
@florine2623
Copy link
Contributor

Hello all,

I re-open this issue, as it can be reproduced in the Release : PrestaShop/blockwishlist#143

Thanks @khouloudbelguith and @hibatallahAouadni for the tests ^^

@florine2623 florine2623 reopened this Jan 31, 2022
Native modules integration automation moved this from Done to In progress Jan 31, 2022
@prestashop-issue-bot prestashop-issue-bot bot removed the Fixed Resolution: issue closed because fixed label Jan 31, 2022
@florine2623 florine2623 added Fixed Resolution: issue closed because fixed Regression Type: regression labels Jan 31, 2022
@hibatallahAouadni hibatallahAouadni added Verified The issue has been reproduced Needs Specs Status: issue needs to be specified and removed Fixed Resolution: issue closed because fixed labels Jan 31, 2022
@NeOMakinG
Copy link

Ok I know, it's only due to the fact that @ghost didn't push assets in his PR

@NeOMakinG
Copy link

It will be naturally fixed with others PR, no need to create a new PR for this, close it when you test another PR or the release

@Progi1984
Copy link
Contributor

@florine2623 Could you check again with the latest version of develop branch ?

@hibatallahAouadni hibatallahAouadni added TBR Status: issue to be reproduced and removed Needs Specs Status: issue needs to be specified labels Mar 8, 2022
@Progi1984
Copy link
Contributor

As discussed with @florine2623 & @NeOMakinG, the bug is fixed.

Native modules integration automation moved this from In progress to Done Mar 30, 2022
@hibatallahAouadni hibatallahAouadni added the Fixed Resolution: issue closed because fixed label Mar 30, 2022
@florine2623 florine2623 removed the TBR Status: issue to be reproduced label Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.7.7.8 Affects versions Blockwishlist Module: blockwishlist Bug Type: Bug CO Category: Core Fixed Resolution: issue closed because fixed Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification Modules Component: Which BO section is concerned PR available Solution: issue is being addressed Regression Type: regression Verified The issue has been reproduced
Projects
Development

Successfully merging a pull request may close this issue.

6 participants