Closed Omri-Levy closed 4 weeks ago
Latest commit: efdbe86b5db80aa96dd1b09bee1aef95c0692a5e
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 updates enhance the backoffice-v2
application by refining data structures and renaming properties for clarity. Key changes include transforming scamOrFraud.indicators
to include label
and url
properties, renaming the summary
prop to description
in several components, and updating the companyReputationAnalysis
prop to handle objects with label
and url
.
File Path | Change Summary |
---|---|
.../report-adapter/report-adapter.ts |
Updated scamOrFraud.indicators to include label and url properties. |
.../components/WebsiteLineOfBusiness/WebsiteLineOfBusiness.tsx |
Renamed summary prop to description . |
.../components/WebsitesCompany/WebsitesCompany.tsx |
Updated companyReputationAnalysis to be an array of objects with label and url properties. |
.../hooks/useWebsiteMonitoringReportBlock/.../useWebsiteMonitoringBusinessReportTab.tsx |
Changed summary prop to description when passed to WebsiteLineOfBusiness component. |
.../pages/MerchantMonitoringBusinessReport/MerchantMonitoringBusinessReport.page.tsx |
Changed summary prop to description when passed to WebsiteLineOfBusiness component. |
sequenceDiagram
participant User
participant UI as User Interface
participant Adapter as Report Adapter
participant Component as WebsiteLineOfBusiness
User->>UI: Load Business Report
UI->>Adapter: Fetch Report Data
Adapter->>UI: Return Report Data with indicators (label, url)
UI->>Component: Render with description (lineOfBusinessDescription)
Component-->>User: Display Business Report
In the code where data flows, New labels and URLs arose, Description now takes summary's place, Enhancing clarity, adding grace. With each tweak, the system grows, A rabbit's joy in every prose. 🐇✨
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?
Summary by CodeRabbit
New Features
scamOrFraud.indicators
withlabel
andurl
properties for improved reporting.Refactor
summary
prop todescription
inWebsiteLineOfBusiness
component for better clarity.companyReputationAnalysis
inWebsitesCompany
component to an array of objects withlabel
andurl
properties for more detailed analysis.Bug Fixes
description
prop, ensuring consistent data display across the application.