LNK-4651: add hoc type for adhoc report generation - #1373
Conversation
… LNK-4651-AddHic-Type-for-AdhocReportGeneration
…portGeneration' into LNK-4651-AddHic-Type-for-AdhocReportGeneration
…portGeneration' into LNK-4651-AddHic-Type-for-AdhocReportGeneration
… the option selected
… LNK-4651-AddHic-Type-for-AdhocReportGeneration
…portGeneration' into LNK-4651-AddHic-Type-for-AdhocReportGeneration
📝 WalkthroughWalkthroughThe AdHoc Source block in the facility view report template is now conditionally rendered based on the presence of Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**⚙️ CodeRabbit configuration file
Files:
🧠 Learnings (2)📓 Common learnings📚 Learning: 2025-03-20T22:11:00.226ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
✏️ Tip: You can disable this entire section by setting 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.
Pull request overview
This PR addresses LNK-4651 by conditionally rendering the AdHoc Source section in the report view only when ad-hoc type data is present, preventing unnecessary UI elements from displaying when the value is empty.
Changes:
- Added conditional rendering logic to hide the AdHoc Source section when
reportSummary?.adHocTypeis not populated
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
🛠️ Description of Changes
Hide the AdHoc type column if value is not populated
🧪 Testing Performed
Tested locally
🧑🔬 Unit Testing
📓 Documentation Updated
Please update any relevant sections in the project documentation that were impacted by the changes in the PR.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.