Skip to content

Native purchase for every cross-sell product - #3407

Draft
hugokallstrom wants to merge 33 commits into
developfrom
feat/native-cross-sell-purchase
Draft

hugokallstrom wants to merge 33 commits into
developfrom
feat/native-cross-sell-purchase

Conversation

@hugokallstrom

Copy link
Copy Markdown
Contributor

Why

Members who tap a cross-sell should be able to buy any Swedish product in the app instead of being sent to hedvig.com, to raise cross-sell conversion. Backend: HedvigInsurance/storefront#1396.

What

  • Combines the product pages (Product pages DRAFT #3362) with the in-app purchase flow (DRAFT Native purchase flow [GEN-5846] #3305); the product page is the only way into the flow
  • Product page buy button opens the native flow when the backend sets inAppProduct, else the web store as before
  • Product page shows the product's FAQ; the flow's separate product-info screen is removed
  • Product info comes from the real crossSellProductInfo query instead of the hard-coded fake
  • Form fields can hold several values; new inputs for text, searchable select (breeds) and extra buildings (ported from the May house purchase branch)
  • InAppProduct covers dog, cat, car, apartments, villa and vacation home
  • Finishing a purchase returns to where the cross-sell was tapped
  • Design and plans in docs/superpowers/

🤖 Generated with Claude Code

panasetskaya and others added 30 commits October 14, 2026 11:51
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hugokallstrom and others added 3 commits November 18, 2026 12:19
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Develop moved the app shell into the KMP app-shell module and ported the features to KMP, so the purchase flow
follows: feature-in-app-purchase and ui-bankid become KMP modules, the product page entries move to commonMain,
the BankID QR code uses the design system's HedvigQrCode, and the shell wires the new entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Metro merges view model contributions only from modules the graph's own module depends on, so the product page
crashed with no provider for CrossSellProductViewModelFactory while the modules were listed only in app-shell.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants