-
Notifications
You must be signed in to change notification settings - Fork 4
Feature: sponsor services cart #752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR introduces a sponsor cart feature, adding Redux actions and reducers to manage sponsor cart operations (fetch, delete, lock/unlock forms), new Material-UI table row components (TotalRow, NotesRow), a SponsorCartTab component for cart management, i18n translations, and updated API scopes for cart operations. Changes
Sequence DiagramsequenceDiagram
participant User
participant SponsorCartTab
participant Redux Store
participant API
participant Server
User->>SponsorCartTab: Mount/View Cart
SponsorCartTab->>Redux Store: dispatch(getSponsorCart)
Redux Store->>Redux Store: REQUEST_SPONSOR_CART
Redux Store->>API: GET /sponsor-cart
API->>Server: Fetch sponsor cart
Server-->>API: Cart data
API-->>Redux Store: Cart response
Redux Store->>Redux Store: RECEIVE_SPONSOR_CART (normalize amounts)
Redux Store-->>SponsorCartTab: Update state
SponsorCartTab->>User: Render cart table
User->>SponsorCartTab: Delete Form
SponsorCartTab->>Redux Store: dispatch(deleteSponsorCartForm)
Redux Store->>API: DELETE /form
API->>Server: Delete form
Server-->>API: Success
API-->>Redux Store: Response
Redux Store->>Redux Store: SPONSOR_CART_FORM_DELETED
Redux Store->>Redux Store: dispatch(getSponsorCart) refresh
Redux Store-->>SponsorCartTab: Updated state
SponsorCartTab->>User: Render updated cart
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested reviewers
Poem
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (12)
Comment |
https://app.clickup.com/t/86b66n5kb
Summary by CodeRabbit
New Features
Localization
✏️ Tip: You can customize this high-level summary in your review settings.