Closed Omri-Levy closed 3 months ago
The recent updates revamped how address-related information is processed and displayed within the backoffice application. A new custom hook, useAddressBlock
, was introduced to handle various address formats and their rendering logic. Existing hooks and components were refactored to leverage this new utility, enhancing the modularity and readability of the code. The useMapBlock
function signature changed to accommodate direct address input, and updates were made to incorporate the new address handling logic into various tabs and workflows. Additionally, a data migration update was made in the workflows service.
Files/Directories | Change Summaries |
---|---|
apps/backoffice-v2/src/lib/blocks/hooks/useAddressBlock/useAddressBlock.tsx |
Introduced useAddressBlock hook for creating address-related blocks based on entity type and workflow. |
apps/backoffice-v2/src/lib/blocks/hooks/useMapBlock/useMapBlock.tsx |
Modified useMapBlock to take address as a parameter and integrated useAddressBlock for address logic. |
apps/backoffice-v2/src/lib/blocks/variants/DefaultBlocks/hooks/useCaseBlocksLogic/utils/get-tabs-block-map.tsx |
Added addressWithContainerBlock to the main and company_information tabs. |
apps/backoffice-v2/src/lib/blocks/variants/DefaultBlocks/hooks/useDefaultBlocksLogic/useDefaultBlocksLogic.tsx |
Enhanced block mappings and address handling, introduced new block for merchant monitoring, and included typed blocks creation. |
services/workflows-service/prisma/data-migrations |
Updated the subproject commit from d8e2b38fd7474e3227363ee85c1306c2b212bf83 to 0a05baa92340cd8b8ad7410e49e8b7fceabf40b5 . |
Amidst the codes where data dwells,
A helpful hook now casts its spells,
Address blocks it weaves with care,
Enhancing forms with style to spare.
New routines for maps and more,
As workflows in the backend soar.
With every change, the app does grow,
A rabbit’s touch, making it glow!
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
Refactor
Chores