You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GH#2154: fix: wrap long customer email on thank-you page - #2155
Add wu-min-w-0 to info grid items and replace the non-existent wu-break-all with an inline overflow-wrap rule so long emails wrap instead of overlapping Total
Files Changed
views/dashboard-widgets/thank-you.php
Runtime Testing
Risk level: Medium
Verification: self-assessed — php -l and pre-commit phpcs/phpstan pass
aidevops.sh v3.39.189 plugin for OpenCode v1.19.5 with claude-sonnet-5-5 spent 1m and 1,931 tokens on this as a headless worker.
Summary by CodeRabbit
Style
Improved wrapping of long email addresses and order details on the thank-you page, helping prevent content from overflowing in completed and pending payment views.
What: Add wu-min-w-0 to info grid items and replace the non-existent wu-break-all with an inline overflow-wrap rule so long emails wrap instead of overlapping Total
No actionable comments were generated in the recent review.
Walkthrough
The thank-you page adds wu-min-w-0 to order-detail items in the completed and pending payment views. Email values in both views replace wu-break-all with inline overflow-wrap: anywhere and word-break: break-word styles.
This change makes long customer emails wrap on the thank-you page so they no longer overlap the Total column. It is limited to display styling in one template, and the risk of regression is low. Merging is reasonable, though a quick visual check at the requested widths is advisable.
Pre-merge checks: 3 · 1
Failed checks: 1 inconclusive
Check name
Status
Explanation
Resolution
Linked Issues check
Issue #2154 requires that long emails wrap inside their column, and that the grid items can shrink (min-width: 0), in both info blocks of views/dashboard-widgets/thank-you.php. The diff covers both bl…
Confirm that wu-min-w-0 is defined in the compiled stylesheet used by the thank-you page (for example, a rule in assets/css/framework.css or framework.min.css), or add an equivalent min-width: 0 rule. Then verify the wrap and non-overlap at…
Passed checks: 3 passed
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: wrapping long customer emails on the thank-you page. The raw summary confirms the template change adds wu-min-w-0 and replaces wu-break-all with inline wrapping rules …
Out of Scope Changes check
The whole-PR diff (merge base 8b996de to head 3aa7e33) changes only views/dashboard-widgets/thank-you.php. Every hunk changes either a grid item's class (wu-min-w-0 on
) or an email span's class/s…
Full details: Title check
Explanation
The title names the main change: wrapping long customer emails on the thank-you page. The raw summary confirms the template change adds wu-min-w-0 and replaces wu-break-all with inline wrapping rules in views/dashboard-widgets/thank-you.php. The linked issue #2154 asks for the same fix. The title's 'GH#2154' prefix is a ticket reference and does not hurt clarity.
Full details: Out of Scope Changes check
Explanation
The whole-PR diff (merge base 8b996de to head 3aa7e33) changes only views/dashboard-widgets/thank-you.php. Every hunk changes either a grid item's class (wu-min-w-0 on <li>) or an email span's class/style (wu-break-all replaced by inline overflow-wrap rules). All hunks are in the two info blocks named by #2154. No unrelated changes, assets, or declarations were found.
Full details: Linked Issues check
Explanation
Issue #2154 requires that long emails wrap inside their column, and that the grid items can shrink (min-width: 0), in both info blocks of views/dashboard-widgets/thank-you.php. The diff covers both blocks. All four email-related or grid-item changes are present: the <li> items in both blocks gained class wu-min-w-0, and both email spans replaced wu-break-all with inline style 'overflow-wrap: anywhere; word-break: break-word;'. The inline overflow-wrap rule is a plausible fix for the wrapping requirement. The issue allows either a CSS utility or an existing class. However, the PR does not show that wu-min-w-0 exists in the compiled CSS. The assets/css files were listed but not read, and the framework.css read would be truncated. If the class is absent, the min-width: 0 part of the fix has no effect. The issue's acceptance criteria (checkout with a 30+ character email, checked at 1366px and 390px) are visual checks. The PR notes they were not performed; the verification is self-assessed as php -l and phpcs/phpstan only.
Resolution
Confirm that wu-min-w-0 is defined in the compiled stylesheet used by the thank-you page (for example, a rule in assets/css/framework.css or framework.min.css), or add an equivalent min-width: 0 rule. Then verify the wrap and non-overlap at 1366px and 390px, as the issue requires.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 443c1035-dfd0-449a-b0e8-669353a65f3e
Commits
Reviewing files that changed from the base of the PR and between 8b996de and 3aa7e33.
Files selected for processing: 1
views/dashboard-widgets/thank-you.php
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
🌐 Test in WordPress Playground (Very Experimental)
Click the link below to instantly test this PR in your browser - no installation needed!
Playground support for multisite is very limitied, hopefully it will get better in the future.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add wu-min-w-0 to info grid items and replace the non-existent wu-break-all with an inline overflow-wrap rule so long emails wrap instead of overlapping Total
Files Changed
views/dashboard-widgets/thank-you.php
Runtime Testing
Resolves #2154
aidevops.sh v3.39.189 plugin for OpenCode v1.19.5 with claude-sonnet-5-5 spent 1m and 1,931 tokens on this as a headless worker.
Summary by CodeRabbit