Closed Omri-Levy closed 1 week ago
Latest commit: e6cd0ccc3c789a17f4e725509a29c518305c26e0
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 updates include modifying components and hooks to streamline functionality and improve code consistency. Key changes involve updating prop types and import paths, refining rendering logic based on conditions, and enhancing block handling processes. Specifically, risk levels and search parameters have been adjusted, and several components have been refactored to use more concise and correct paths.
File or Group | Change Summary |
---|---|
OverallRiskLevel.tsx |
Updated prop types to expect riskLevels as a Record<string, TSeverity> . |
RiskIndicator.tsx |
Modified search prop to accept string | undefined and adjusted rendering logic accordingly. |
RiskIndicatorsSummary.tsx |
Enhanced rendering logic to conditionally display risk indicators or a message when none are present. |
Header.Logo.tsx , useNavbarLogic.tsx , useHomeLogic.ts , useRedirectToRootUrl.tsx , MerchantMonitoringLayout.tsx , useCreateBusinessReportMutation.tsx |
Corrected import path for useCustomerQuery . |
useSearchParamsByEntity/validation-schemas.ts |
Introduced CaseTabs constant and updated schemas to use CaseTabs instead of MonitoringReportsTabs . |
report-adapter.ts |
Made toRiskLabels function an exported entity. |
fetchers.ts in workflow-definitions dir |
Added isCaseOverviewEnabled and isCaseRiskOverviewEnabled booleans to WorkflowDefinitionConfigSchema . |
fetchers.ts in workflows dir |
Added risk_evaluation section with detailed risk indicators and scores. |
useCaseOverviewBlock.tsx |
New file providing useCaseOverviewBlock function for creating blocks with CaseOverview components. |
DefaultBlocks.tsx , useCaseBlocks.ts , apply-tabs-override.ts , create-assosiacted-company-document-blocks.tsx , get-tabs-block-map.tsx , get-variant-tabs.ts |
Various updates to import paths, block handling logic, and tab overrides in DefaultBlocks variant files. |
useDefaultBlocksLogic.tsx |
Enhanced logic for useDefaultBlocksLogic , integrating useCaseOverviewBlock and removing useProcessTrackerBlock . |
KybExampleBlocks.tsx , ManualReviewBlocks.tsx , WebsiteMonitoringBlocks.tsx |
Refactored to remove useCasePlugins , useCurrentCaseQuery dependencies, and replace ProcessTracker with CaseOverview . |
WebsiteMonitoringBusinessReportTab.tsx |
Renamed activeTab to activeMonitoringTab , and updateActiveTab to getUpdatedSearchParamsWithActiveMonitoringTab . |
In the realm of code so crisp and bright, Components changed to our delight, Paths aligned, no more disarray, Risk levels in a simpler way.
A rabbit cheers, with ears in glee, For a backoffice that's bug-free 🐰✨.
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
CaseOverview
component.Bug Fixes
useCustomerQuery
across multiple components.Improvements
OverallRiskLevel
component to use a singleriskLevels
prop.Refactor
ProcessTracker
withCaseOverview
component.