Repository navigation
refactor(explore-dash): cut the details nav-stack lookup, weak map delegate - #1393
Conversation
…legate Groundwork for moving the Explore lists to SwiftUI (#1382): - POIDetailsViewController no longer casts the previous controller on the navigation stack to ExplorePointOfUseListViewController to read the radius and the All tab. The opener already passes both: the list's current radius, or the infinite radius from the merchant list's All tab, which is the only place "Show all locations" can be reached from. - ExploreMapViewDelegate is class-bound and ExploreMapView holds it weakly, breaking the controller -> map view -> controller cycle. - ExploreViewController was never instantiated; it is removed with the unused MainTabbarController property. Its kMerchantTypesShown key moves, private, into ExploreMenuScreen, its only user. 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 014207f) · triage: low · Phase 2 only (queue backlog) |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 2 only (queue backlog)
Verified the complete base-to-head diff at 014207f and confirmed the Phase-2 assessment: callers preserve radius propagation, both weak delegate conformers are controller-owned, and the deleted controller has no remaining runtime references. No actionable findings remain. Current CI reports passing simulator tests, target-membership checks, workflow lint, and accessibility auditing; only the automated review is pending, and the multi-location merchant smoke remains unperformed.
Review provenance
Source: reviewer 1: 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 UIKit refactor that removes obsolete navigation-stack coupling, weakens a delegate reference, and deletes an unused controller without changing critical logic. - Phase 1 reviewers: not run (skipped for throughput: 12 PRs queued, above the 10 limit)
- Fresh verifier:
gpt-6.1-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.1-sol— general (completed, effort medium); agentphase2-reviewer
Summary
Step 0 of the plan for #1382 (Explore map and sheet lists to SwiftUI): remove the hidden dependencies that would break silently once the list controllers are replaced.
POIDetailsViewControllerno longer reads the list from the navigation stack. It castviewControllers.dropLast().lasttoExplorePointOfUseListViewControllertwice: for the current radius and to detect the All tab (tag == 2). Both values are already passed in: the base list passesfilters?.currentRadius ?? kDefaultRadius, the merchant list passes the infinite radius on its All tab. "Show all locations" is visible only for physical merchants opened from Where to Spend (ATMs and the all-locations screen passisShowAllHidden = true), so "from the All tab" is exactly "radius is infinite", and the radius from the stack equals the one passed.ExploreMapViewDelegateis class-bound and held weakly, breaking the controller → map view → controller cycle (both conformers are view controllers that own the map view).ExploreViewControlleris removed. It was never instantiated (only the type of an unused weak property inMainTabbarController); no ObjC, storyboard or XIB references. ItskMerchantTypesShownkey moves, private, intoExploreMenuScreen, its only user.No behaviour change intended.
Test plan
dashpayDebug builds;project.pbxprojpassesplutil -lint🤖 Generated with Claude Code
Summary by CodeRabbit