- Introduced retry logic in DistributedTransactionService to improve resilience during step execution, allowing for configurable maximum retries. - Refactored order fulfillment orchestration to include step status updates, enhancing visibility into the execution process and error handling. - Implemented createTrackedStep utility to streamline step execution and status management, ensuring consistent handling of success and failure states. - Improved toast message handling in usePaymentRefresh and SimFeatureToggles components for better user feedback during asynchronous operations. - Added cleanup logic in SimManagementSection to prevent memory leaks and ensure proper aborting of ongoing requests.
Portal Structure Overview
This app follows a feature-first architecture with a consolidated lib for shared utilities.
Structure:
src/
app/ # Next.js App Router
components/ # Design system (ui, layout, common)
features/ # Feature modules (auth, billing, subscriptions, ...)
lib/ # Core utils and services (api, query, env, utils, types)
providers/ # App-wide providers (e.g., QueryProvider)
styles/ # Global styles
Key changes:
- Merged former
core/andshared/intolib/. - Moved
components/providers/query-provider.tsxtoproviders/query-provider.tsx. - Introduced path aliases:
@/lib/*,@/providers/*.
Migration tips:
- Prefer importing from
@/lib/...going forward. - All
@/shared/*or@/core/*imports have been removed; use@/lib/*.