Use deployedProduct label/version in details - #249
Rashmika998 merged 1 commit into
Conversation
Prefer deployedProduct fields when rendering product details: Product Name now shows deployedProduct.label with a fallback to data.product, and Product Version displays deployedProduct.version (or null). This surfaces the actual deployed product info in the case details panel.
📝 WalkthroughWalkthroughThis PR updates the Product & Environment section in the Case Details panel to retrieve product information from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@apps/customer-portal/webapp/src/components/support/case-details/details-tab/CaseDetailsDetailsPanel.tsx`:
- Around line 219-221: The render currently uses
formatValue(data?.deployedProduct?.label ?? data?.product) which treats an empty
deployedProduct.label as present; change the fallback so empty strings are
treated as missing (e.g., check deployedProduct.label?.trim()?.length > 0) and
fall back to data?.product before calling formatValue in the
CaseDetailsDetailsPanel component (the Typography with valueSx). Update the
expression that reads data?.deployedProduct?.label to perform a truthy/non-empty
check so formatValue receives the correct value.
ℹ️ Review info
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
apps/customer-portal/webapp/src/components/support/case-details/details-tab/CaseDetailsDetailsPanel.tsx
236ebf6
into
wso2-open-operations:customer-portal-milestone-1
Prefer deployedProduct fields when rendering product details: Product Name now shows deployedProduct.label with a fallback to data.product, and Product Version displays deployedProduct.version (or null). This surfaces the actual deployed product info in the case details panel.
Purpose
Goals
Approach
User stories
Release note
Documentation
Training
Certification
Marketing
Automation tests
Security checks
Samples
Related PRs
Migrations (if applicable)
Test environment
Learning
Summary by CodeRabbit