Skip to content

Show product pillow above purchase summary card (RND-1965)#2952

Open
hugokallstrom wants to merge 1 commit into
feat/in-app-vacation-home-purchasefrom
feat/show-pillow-on-purchase-summary
Open

Show product pillow above purchase summary card (RND-1965)#2952
hugokallstrom wants to merge 1 commit into
feat/in-app-vacation-home-purchasefrom
feat/show-pillow-on-purchase-summary

Conversation

@hugokallstrom
Copy link
Copy Markdown
Contributor

Summary

  • Adds a product pillow image above the existing summary card on PurchaseSummaryDestination. The right pillow is picked from ContractGroup.pillowResource() based on the contract being purchased.
  • Threads contractGroup through SelectTierParametersSummaryParameters from each feature's offer fetch (ProductVariant.typeOfContract.toContractGroup()), so apartment / car / house / pet flows all populate it.
  • Adds a debug-only MockPurchaseSummaryActivity that renders the screen with test data and cycles ContractGroup.entries on 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 contractGroup changes (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.MockPurchaseSummaryActivity

Test plan

  • Drive an apartment purchase to the summary screen — confirm rental/homeowner pillow shows
  • Drive a pet purchase to the summary screen — confirm cat/dog pillow shows
  • Drive a car or house purchase to the summary screen — confirm car/villa pillow shows

(Replaces #2951, which closed itself when the branch was renamed from claude/sweet-jennings-c60d52.)

🤖 Generated with Claude Code

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>
@hugokallstrom hugokallstrom requested a review from a team as a code owner May 22, 2026 07:26
@hugokallstrom hugokallstrom changed the title Show product pillow above purchase summary card Show product pillow above purchase summary card (RND-1965) May 22, 2026
@notion-workspace
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant