Closed Blokh closed 1 month ago
Latest commit: 7166f41242dd1513bdf7c232835f7a2b264092e7
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The recent changes enhance the reporting capabilities in the business reports module by introducing two new fields, detectedMcc
and formattedMcc
. These updates span multiple components, allowing for richer data integration and improved user feedback. Key areas affected include the report adapter, a component for displaying line of business details, and the business report logic, all working together to provide a more comprehensive experience in the reporting process.
Files | Summary |
---|---|
.../report-adapter/report-adapter.ts |
Added detectedMcc and formattedMcc fields to the report adapter for enhanced reporting and analytics capabilities. |
.../WebsiteLineOfBusiness/WebsiteLineOfBusiness.tsx |
Introduced detectedMcc and formattedMcc props, enabling conditional rendering of MCC-related information. |
.../hooks/useMerchantMonitoringBusinessReportLogic/useMerchantMonitoringBusinessReportLogic.tsx |
Integrated detectedMcc and formattedMcc into the hook's state, facilitating deeper component interactions. |
.../prisma/data-migrations |
Updated subproject commit reference to a newer version, synchronizing project dependencies. |
.../swagger/swagger.ts |
Renamed mccMatching to formattedMcc in SwaggerSingleton , enhancing clarity without functional change. |
sequenceDiagram
participant User
participant ReportAdapter
participant WebsiteLineOfBusiness
participant MerchantMonitoringLogic
User->>ReportAdapter: Request report data
ReportAdapter->>ReportAdapter: Extract data including detectedMcc and formattedMcc
ReportAdapter->>WebsiteLineOfBusiness: Pass detectedMcc and formattedMcc
MerchantMonitoringLogic->>MerchantMonitoringLogic: Manage detectedMcc and formattedMcc
MerchantMonitoringLogic->>WebsiteLineOfBusiness: Provide detectedMcc and formattedMcc
WebsiteLineOfBusiness->>User: Display report with detectedMcc and formattedMcc
🐰 In the land of code where bunnies play,
New fields hop in to brighten the day!
detectedMcc
brings clarity anew,
formattedMcc
joins in, with insights too.
With every change, our magic grows,
A world of insights in each row that flows! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
feat: added mcc to the report
Summary by CodeRabbit
New Features
detectedMcc
andformattedMcc
fields in business reports, enhancing reporting capabilities.WebsiteLineOfBusiness
component for displaying MCC information.detectedMcc
andformattedMcc
into the report logic for improved data management and presentation.Bug Fixes
Refactor
mccMatching
toformattedMcc
in the Swagger configuration for improved clarity.