Skip to content

Show product pillow above purchase summary card#2951

Closed
hugokallstrom wants to merge 1 commit into
feat/in-app-vacation-home-purchasefrom
claude/sweet-jennings-c60d52
Closed

Show product pillow above purchase summary card#2951
hugokallstrom wants to merge 1 commit into
feat/in-app-vacation-home-purchasefrom
claude/sweet-jennings-c60d52

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. Two screenshots from the cycle:

HOMEOWNER pillow + product name "Hemförsäkring Bostadsrätt":

  • Pillow renders above the card, card content unchanged.

CAT pillow + product name "Kattförsäkring" (after cycling 6 taps):

  • Pillow swaps dynamically when contractGroup changes, confirming the wiring.

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

🤖 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:23
@hugokallstrom hugokallstrom deleted the claude/sweet-jennings-c60d52 branch May 22, 2026 07:24
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