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

[4.x] Add warning alert if upgrade command is not completed #3550

Draft
wants to merge 3 commits into
base: 4.x
Choose a base branch
from

Conversation

lukeholder
Copy link
Member

@lukeholder lukeholder commented Jun 21, 2024

Description

Need to get a better warning message before merging this:

Commerce 4 Upgrade Incomplete. Please ensure the Commerce 4 upgrade command has finished running. Contact a developer if you are unsure.

@lukeholder lukeholder changed the title Add warning alert if upgrade command not completed [4.x] Add warning alert if upgrade command not completed Jun 21, 2024
@lukeholder lukeholder changed the title [4.x] Add warning alert if upgrade command not completed [4.x] Add warning alert if upgrade command is not completed Jun 21, 2024
if ($columnsExist) {
Event::on(Cp::class, Cp::EVENT_REGISTER_ALERTS, static function($event) {
$event->alerts[] = [
'content' => Craft::t('commerce', '<strong>Commerce 4 upgrade incomplete.</strong> Please ensure the <a href="https://craftcms.com/docs/commerce/4.x/upgrading.html#performing-the-upgrade" target="_blank" rel="noopener noreferrer">Commerce 4 upgrade command</a> has finished running.'),

Choose a reason for hiding this comment

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

@lukeholder just popping in because I recently started updating some translations that include brand names and saw that this was relevant. Because the brand names aren’t translated, I’ve started wrapping them with <span lang="en"></span> so that screen readers switch their pronunciation to English when encountering them in the context of another language.

You can see an example of this in this recent commit, and Brandon also provided some guidance here about ensuring they're not being escaped.

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks @gcamacho079 ! will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants