Repository navigation
fix(explore-dash): open a gift card bought via Show all locations - #1437
Conversation
The details screen handed Show all locations the pay and sell handlers but not onGiftCardPurchased, so a purchase from a location opened there never returned to Explore or showed the card. A factory now passes all three handlers. Fixes #1396 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
✅ Final review complete — no blockers (commit cb5e112) · triage: low |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
The PR correctly preserves all three completion handlers when constructing the all-locations screen, allowing gift-card purchases from a location reached through “Show all locations” to use the existing completion flow. The regression test directly verifies handler forwarding without loading views, and the target-membership, title, workflow, accessibility, and CodeRabbit checks pass; the simulator test remains in progress. No in-scope defects were found.
Review provenance
Source: reviewer 1: glm-5.3-flash (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)
- Triage:
lowbygpt-6.1-sol(effort low) — This is a small, well-contained navigation-handler propagation fix with a focused regression test and no changes to funds movement or other critical surfaces. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 97% left, weekly 99% left; passed overgemini-3.8-flash-high(antigravity quota lookup failed) - Fresh verifier:
gpt-6.1-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.1-sol— general (completed, effort medium); agentphase2-reviewer
romchornyi
left a comment
There was a problem hiding this comment.
✅ No blockers · no majors · 2 non-blocking recommendations — reviewed at cb5e112c8d
| Level | Verdict | |
|---|---|---|
| 1 · Idea | ✅ valid | The cause in #1396 holds: the "Show all locations" push carried two of the three handlers, so onGiftCardPurchased was dropped; the fix addresses that directly |
| 2 · Architecture | ✅ right layer | Handlers travel down the navigation chain; the hand-off now lives in one factory, makeAllLocationsController(searchRadius:) |
| 3 · Completeness | ✅ complete | Every place that builds POIDetailsViewController or AllMerchantLocationsViewController (merchant list, POI list, all-locations pushDetails, the new factory) now passes onGiftCardPurchased; both openers (Explore pops to root, the Home shortcut dismisses its modal) complete correctly at any stack depth |
| 4 · Code | ✅ clean | The factory reproduces the old construction plus the missing handler; [weak self] is unchanged; the new test checks all three handlers pass through |
2 non-blocking recommendations
- The test covers the factory, not the tap —
POIDetailsViewController.swift#L191— if the closure ever builds the controller inline again, the test still passes. Acceptable for a one-line call. - No end-to-end purchase — as the test plan says, completing a real gift card purchase through this path was not exercised; it needs a real payment.
Review details
Layered review (idea → architecture → completeness → code). Level 3 traced every construction site of the details and all-locations controllers and both `onGiftCardPurchased` openers (`ExploreMenuScreen.showMerchants`, `HomeViewController.showGiftCardDetails`) at the reviewed head.🤖 Reviewed with Claude Code
Summary
Fixes #1396: a gift card bought from a location reached through Show all locations now completes like one bought from the merchant's details: the app returns to Explore and opens the card.
POIDetailsViewControllerhanded "Show all locations" the pay and sell handlers but notonGiftCardPurchased, so the details screen opened from there had no completion for a purchase. The push now goes throughmakeAllLocationsController(searchRadius:), which passes all three handlers;AllMerchantLocationsViewControlleralready forwards them to the details it opens.No visual change.
Test plan
ExploreListNavigationTests.testShowAllLocationsCarriesTheDetailsHandlers(new): the all-locations screen calls the details screen's pay, sell and gift-card handlersExploreListNavigationTestspass🤖 Generated with Claude Code
Summary by CodeRabbit