Repository navigation
Override the vanilla blockwishlist 4.0 modals - #1142
Conversation
b0eddf8 to
da9cb89
Compare
blockwishlist 4.0 drops Vue.js and renders its modals from views/templates/front/modals/. The Hummingbird overrides of views/templates/components/modals/ are kept for blockwishlist 3.x.
f1691f8
da9cb89 to
f1691f8
Compare
QA report🟢 Approved — tested #1142 at With blockwishlist 4.0.0 (PrestaShop/blockwishlist#564)
Backward compatibility with blockwishlist 3.0.2Ran the same mouse-driven workflow before and after the theme PR. All 10 checks passed in both runs, covering the six legacy dialogs, opening the shared list as a guest, removing a product and deleting a list. The homepage, product page, cart and back-office entry point also responded successfully. The responsive checks at 375 px and 768 px found no horizontal overflow. No JavaScript errors were recorded during the 4.0.0 browser runs. QA-Hummingbird-1142-avant-apres-PR.mp4 |
|
Hi @Hlavtox @tblivet, could you have a look at this one when you get a chance? Touxten's QA is green, including the keyboard navigation and backward compatibility with blockwishlist 3.0.2. PrestaShop/blockwishlist#564 is blocked until this PR is merged, because its Hummingbird UI tests need these modal overrides. Once it's merged, I'll update Hummingbird in the core. As the core requires |
|
@Touxten I have a feedback from @cnavarro-prestashop Before I can merge it, it miss some screenshots / vidéos for the BEFORE & AFTER. |
QA-Hummingbird-1142-avant-apres-PR.mp4 |
|
Thanks @Touxten |
|
PR merged, well done! Message to @PrestaShop/committers: do not forget to milestone it before the merge. |
|
Hi @Progi1984, @Touxten, @Hlavtox ... I'd like to put everything in one place, it'll be easier than spreading it across PRs. First, I'm not criticizing the work done on PrestaShop/blockwishlist#564. Removing Vue and GraphQL from the front office is a real improvement and I'd like to see this module back in Hummingbird. @Touxten's QA looks complete on the functional side, but it doesn't cover the final rendering, which is what matters most for a theme integration. That's not on him, the "How to test" of the PR only asked for functional checks. The issue is that a PR that works is not automatically a PR that can be merged as is. In my opinion this one shouldn't have been merged on A lot of quality and polish work went into Hummingbird v2 to get a consistent UI across the whole theme. This module was disabled at install precisely because it didn't meet that level. The new overrides take the old ones as they were, so we're bringing back exactly what we had set aside. None of the wishlist UI is displayed the way it should be in Hummingbird: the modals, the lists page, the sort select, the product cards inside a list... They should look and behave like their equivalents in the rest of the theme, and today they don't. On the JS side, the module and the overrides still rely on So here's what I suggest. I'm fine with closing my revert (#1147), but only if a follow-up PR cleans up all these rendering and display inconsistencies so the module is aligned with the rest of the theme. Everything needs to be OK on Thanks for the work on the module, I'm sure we can get to something we're all happy with 👍 |
|
Thanks @tblivet, that's fair, and having it in one place helps. I agree with the plan: module first, then a follow-up PR on On the JS hooks, good point: since the 5.0 template/JS contract isn't released yet, I'll switch the module from @Touxten @cnavarro this means the module can be reviewed and merged on its own: the Hummingbird integration will follow, and the two Hummingbird UI jobs of PrestaShop/blockwishlist#564 can't pass until then. Could you list the Hummingbird components you'd expect each part to match (e.g. which modal/card/select partials)? It'll avoid a back and forth on the follow-up PR. |
|
@Progi1984 @tblivet I think most of the things can be fixed by just removing 95% of the CSS styles. If a theme is already styled, almost everything will look good out of the box, if the native logic for modals and other elements is used.
@Progi1984 IMHO just "disconnect" yourself from the legacy look of the module and use what is done in the theme, and it will look good. Start fresh. |
views/templates/front/modals/, driven by a small vanilla script. This PR adds the Hummingbird overrides of these new templates, with the same Bootstrap 5 markup as the current ones (btn-close,p.h5title,form-label, "Create new list" asdiv[role="button"]as expected by the UI tests, now focusable withtabindex="0": blockwishlist 5.0 activates it with Enter and Space).The current overrides of
views/templates/components/modals/are kept: blockwishlist < 5.0 still uses them. They can be removed once Hummingbird no longer supports blockwishlist < 5.0.1. Logged out, click a heart on a product miniature: the sign-in modal uses the Hummingbird style.
2. Logged in, add a product to a wishlist, click "Create new list" in the add modal, create a list. Do it again with the keyboard only (Tab, then Enter).
3. My account > My wishlists: rename, share and delete a list; open a list and remove a product. Every modal has the Hummingbird close button and title.
4. With blockwishlist < 5.0, the modals are unchanged.