Show product pillow above purchase summary card (RND-1965)#2952
Open
hugokallstrom wants to merge 1 commit into
Open
Show product pillow above purchase summary card (RND-1965)#2952hugokallstrom wants to merge 1 commit into
hugokallstrom wants to merge 1 commit into
Conversation
Thread ContractGroup through SelectTierParameters and SummaryParameters so the purchase summary screen can render the right pillow per contract type (rental, homeowner, villa, car, dog, cat, etc.). Populated in each feature's offer fetch from ProductVariant.typeOfContract. Adds a debug-only MockPurchaseSummaryActivity that renders the screen with test data and cycles through ContractGroup.entries on each CTA tap for design iteration without a real session. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PurchaseSummaryDestination. The right pillow is picked fromContractGroup.pillowResource()based on the contract being purchased.contractGroupthroughSelectTierParameters→SummaryParametersfrom each feature's offer fetch (ProductVariant.typeOfContract.toContractGroup()), so apartment / car / house / pet flows all populate it.MockPurchaseSummaryActivitythat renders the screen with test data and cyclesContractGroup.entrieson each CTA tap — useful for design iteration without driving a real purchase flow.Verification
Verified in the emulator via the mock activity. The pillow swaps dynamically when
contractGroupchanges (confirmed by cycling from HOMEOWNER → CAT in the running app).Launch the mock activity manually with:
adb shell am start -n com.hedvig.dev.app/com.hedvig.android.app.debug.MockPurchaseSummaryActivityTest plan
(Replaces #2951, which closed itself when the branch was renamed from
claude/sweet-jennings-c60d52.)🤖 Generated with Claude Code