Skip to content

Override the vanilla blockwishlist 4.0 modals - #1142

Merged
Progi1984 merged 1 commit into
PrestaShop:developfrom
Progi1984:feat/blockwishlist-vanilla-modals
Nov 24, 2026
Merged

Progi1984 merged 1 commit into
PrestaShop:developfrom
Progi1984:feat/blockwishlist-vanilla-modals

Conversation

@Progi1984

@Progi1984 Progi1984 commented Nov 13, 2026 •

Copy link
Copy Markdown
Member
Questions Answers
Description? blockwishlist 5.0 (PrestaShop/blockwishlist#564) removes Vue.js and GraphQL from the front office: its modals are now plain Smarty templates in 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.h5 title, form-label, "Create new list" as div[role="button"] as expected by the UI tests, now focusable with tabindex="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.
Type? improvement
BC breaks? no
Deprecations? no
Fixed ticket?
Sponsor company Mintfull Agency
How to test? With blockwishlist from PrestaShop/blockwishlist#564 and Hummingbird enabled:
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.

LameuleFR
LameuleFR previously approved these changes Nov 13, 2026
@ps-jarvis ps-jarvis added the Waiting for QA Status: Action required, Waiting for test feedback label Nov 13, 2026
@ps-jarvis ps-jarvis moved this from Ready for review to To be tested in PR Dashboard Nov 13, 2026
jf-viguier
jf-viguier previously approved these changes Nov 13, 2026
Touxten
Touxten previously approved these changes Nov 16, 2026
@Touxten Touxten self-assigned this Nov 17, 2026
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.
@Progi1984
Progi1984 dismissed stale reviews from Touxten, jf-viguier, and LameuleFR via f1691f8 November 17, 2026 10:12
@Progi1984
Progi1984 force-pushed the feat/blockwishlist-vanilla-modals branch from da9cb89 to f1691f8 Compare November 17, 2026 10:12
@Progi1984 Progi1984 removed Waiting for Author Waiting for QA Status: Action required, Waiting for test feedback labels Nov 17, 2026
@Touxten

Touxten commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

QA report

🟢 Approved — tested #1142 at f1691f8 on PrestaShop 9.2.1 with Hummingbird 2.1.2 and Chromium.

With blockwishlist 4.0.0 (PrestaShop/blockwishlist#564)

Scenario Result
Guest sign-in Clicking the heart on a product miniature opened the Hummingbird sign-in dialog.
Create and add with the mouse Opened the add dialog, created a wishlist, selected it in the reopened dialog and verified that the product appeared in the list.
Create and add using only the keyboard Used Tab and Enter to open the dialog, reach “Create new list”, enter a name and submit. In the reopened dialog, Tab reached the new list and Space added the product. The heart remained filled after reload.
Select an existing wishlist Tested Enter and Space separately. Both added the product to the focused list. The previous revision skipped existing lists when pressing Tab.
Manage and share a wishlist Renamed the list, opened its share URL in a signed-out session and verified that the product was visible. Removed the product, then deleted the list.
Hummingbird modal styling Verified the theme’s close button and heading in all six dialogs: sign-in, add to wishlist, create, rename, share and delete. Checked the delete dialog for both product removal and list deletion.

Backward compatibility with blockwishlist 3.0.2

Ran 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

@Touxten

Touxten commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

CC @Hlavtox && @tblivet ok for me i wait you before merge.

@Touxten Touxten added the QA with AI ✓ AI-assisted QA label Nov 17, 2026
@Progi1984

Copy link
Copy Markdown
Member Author

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 prestashop/hummingbird: ^2.1 and is locked on v2.1.2, would it be possible to ship this in a release? Happy to backport it to 2.1.x if that's the branch you'd release from. Thanks!

@Progi1984

Copy link
Copy Markdown
Member Author

@Touxten I have a feedback from @cnavarro-prestashop

Before I can merge it, it miss some screenshots / vidéos for the BEFORE & AFTER.

@Touxten

Touxten commented Nov 24, 2026

Copy link
Copy Markdown
Contributor
QA-Hummingbird-1142-avant-apres-PR.mp4

@Progi1984

Copy link
Copy Markdown
Member Author

Thanks @Touxten

@Progi1984 Progi1984 added QA by Community ✓ Status: Check done by community member, Code approved and removed QA with AI ✓ AI-assisted QA labels Nov 24, 2026
@Progi1984
Progi1984 merged commit 99e45b6 into PrestaShop:develop Nov 24, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from To be tested to Merged in PR Dashboard Nov 24, 2026
@ps-jarvis

Copy link
Copy Markdown

PR merged, well done!

Message to @PrestaShop/committers: do not forget to milestone it before the merge.

@tblivet

tblivet commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

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 develop, and the 2.1.x backport shouldn't have been opened. It was merged without any review from someone who mainly contributes to or works on the theme, and the module side isn't merged yet. The module should land first, then the theme integration.

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 js-* classes as hooks. Since the module JS has just been rewritten from scratch, it's the right moment to follow the data-ps-* conventions described in #934 (data-ps-component, data-ps-action, data-ps-target...), which we're trying to use as much as possible inside the theme. It would keep behavior separate from styling and make the templates much safer to override.

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 develop before going any further on a potential backport to 2.1.x, so I'd keep #1146 on hold until then. Blockwishlist also stays in to_disable and none of this ships in a release for now.

Thanks for the work on the module, I'm sure we can get to something we're all happy with 👍

@Progi1984

Copy link
Copy Markdown
Member Author

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 develop that aligns the modals, the lists page, the sort select and the product cards with the rest of the theme. #1146 stays on hold and blockwishlist stays in to_disable until then. You can close #1147.

On the JS hooks, good point: since the 5.0 template/JS contract isn't released yet, I'll switch the module from js-* classes to data-ps-* attributes in PrestaShop/blockwishlist#564, so the follow-up overrides can be built on it.

@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.

@Hlavtox

Hlavtox commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

@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.

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 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

QA by Community ✓ Status: Check done by community member, Code approved

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

7 participants