Skip to content

feat: add admin banner announcing MyParcel for WooCommerce 6.0 - #1733

Merged
joerivanveen merged 1 commit into
v4from
feat/int-1689-upgrade-banner
Aug 11, 2026
Merged

feat: add admin banner announcing MyParcel for WooCommerce 6.0#1733
joerivanveen merged 1 commit into
v4from
feat/int-1689-upgrade-banner

Conversation

@FreekVR

@FreekVR FreekVR commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

adds an admin banner telling merchants still on the 4.x plugin that a new major version (6.0) is available, with a link to the migration guide.

It shows on the plugin settings page, the orders overview, the WooCommerce home and the plugins page. The banner renders through the plugin's own Messages system, so it only appears while 4.x is active and is gone once the merchant updates to 6.x. Merchants can dismiss it and the choice is remembered per shop.

Fixes INT-1689

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@FreekVR
FreekVR requested a review from a team as a code owner July 17, 2026 15:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds an upgrade announcement banner to the plugin’s existing admin Messages/Notices system, informing merchants on MyParcel for WooCommerce 4.x that version 6.0 is available and linking to the migration guide. The banner is scoped to specific admin screens and is dismissible with persistence via the existing dismissal mechanism.

Changes:

  • Introduces UpgradeBanner to render a dismissible info notice with a migration-guide link.
  • Ensures the banner can be targeted to additional admin screens (WooCommerce Home and HPOS Orders) via new MessagesRepository screen-id constants.
  • Updates notice rendering to support richer notice markup (e.g., headings) by avoiding unconditional <p> wrapping.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
woocommerce-myparcel.php Calls UpgradeBanner::show() during messenger initialization so the notice is registered consistently.
includes/admin/UpgradeBanner.php New class that builds and registers the v6 upgrade notice using the existing Messages::showAdminNotice() pipeline.
includes/admin/MessagesRepository.php Adds screen-id constants and adjusts notice output so messages can include block-level HTML (e.g., <h3>).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread includes/admin/UpgradeBanner.php
@joerivanveen
joerivanveen merged commit 81b9104 into v4 Aug 11, 2026
1 check passed
@joerivanveen
joerivanveen deleted the feat/int-1689-upgrade-banner branch August 11, 2026 13:31
myparcel-bot Bot added a commit that referenced this pull request Aug 11, 2026
## [4.26.0](v4.25.2...v4.26.0) (2026-08-11)

### 🐛 Bug Fixes

* **v4:** save delivery options when account is created during checkout ([#1763](#1763)) ([193d36a](193d36a))

### ✨ New Features

* add admin banner announcing MyParcel for WooCommerce 6.0 ([#1733](#1733)) ([81b9104](81b9104))
@myparcel-bot

myparcel-bot Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 4.26.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Development

Successfully merging this pull request may close these issues.

5 participants