Improve tooltip status text for product availability issues#6293
Improve tooltip status text for product availability issues#6293
Conversation
|
There was a problem hiding this comment.
Pull request overview
This PR improves the tooltip status text displayed for products with availability issues. When a product has availability issues in a channel, the tooltip now shows "Issues" / "Has availability issues" as the primary status instead of the underlying publication status (live/scheduled/hidden).
Changes:
- Added internationalization messages for issues status and description
- Modified status label and description logic to prioritize showing "Issues" when availability issues are present
- Updated locale file with new message translations
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/products/components/ProductDoctor/messages.ts | Added status_issues and statusDescription_issues message definitions following the established naming convention |
| src/products/components/ProductDoctor/AvailabilityChannelItem.tsx | Modified getStatusLabel() and getStatusDescription() to return issues-related messages when hasIssues is true, prioritizing issue visibility over publication status |
| locale/defaultMessages.json | Added translations for the two new message IDs (PF7Zsp and vsSdHA) with appropriate context |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6293 +/- ##
==========================================
- Coverage 42.50% 42.49% -0.01%
==========================================
Files 2492 2492
Lines 43216 43220 +4
Branches 10162 9779 -383
==========================================
Hits 18368 18368
- Misses 24812 24816 +4
Partials 36 36 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.