Repository navigation
fix(explore-dash): list two-way ATMs under Buy and Sell, sell-only under Sell - #1395
Conversation
…der Sell The ATM segments filtered on one machine type each: Buy showed only "Buy Only" machines, and Sell used the Buy/Sell provider, so it duplicated the Buy/Sell tab and "Sell Only" machines appeared only under All. Buy now lists buy-only and two-way machines, Sell lists sell-only and two-way machines; All and Buy/Sell are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Sell tag was shown only for two-way machines, so a "Sell Only" ATM rendered with no tag at all. It now shows for sell-only and two-way machines; an ATM with no type keeps the Buy tag alone, as before. 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 47a51d6) · triage: low |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
The change is correct and focused: Buy now includes buy-only and two-way ATMs, Sell includes sell-only and two-way ATMs, and the list badges match those capabilities. The exact reviewed head has passing simulator tests, target-membership, accessibility, workflow, and CodeRabbit checks; 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) — The diff makes small, contained corrections to ATM segment type filters and Sell badge visibility, with focused tests and test-target registration. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 75% left, weekly 61% 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
Out-of-scope follow-up suggestions (1)
These are valid observations, but they are outside this PR's scope and should be handled in separate issues or author/maintainer-requested PRs rather than blocking this review.
- ATM details screen always offers Buy Dash — The pre-existing ATM details view always renders a Buy Dash button, including for sell-only ATMs. This becomes more visible now that sell-only machines are listed in the Sell segment, but the defect is outside the changed code and is already a natural follow-up for the Explore screens rework.
- Follow-up: Address this in the #1382 Explore screens rework by showing the Buy Dash button only when the ATM type supports buying.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
thepastaclaw
left a comment
There was a problem hiding this comment.
Re-review — Final validation — Phase 1 + Phase 2
Verified head 47a51d6 against the stated base: the segment mappings, provider type sets, and Sell badge predicate implement the intended behavior without an identified functional defect. One non-blocking regression-coverage suggestion remains for the badge fix, plus a verified pre-existing details-screen issue for follow-up. Current CI shows membership, workflow lint, and accessibility checks passing, with simulator tests still pending; no local builds or tests were run in this static review.
🔴 0 blocking | 🟡 0 suggestion(s) | 💬 0 nitpick(s)
Approved: nothing here blocks the merge. The non-blocking findings are optional: fix them forward, in this PR or a follow-up, without waiting for another review round.
Follow-up candidates (optional) (1)
New non-blocking observations on code unchanged since the last full review. No inline threads are opened for them and later reviews do not repeat them: fix forward or track separately if they are worth it.
🟡 Suggestion: Add regression coverage for ATM badge visibility
DashWallet/Sources/UI/Explore Dash/Merchants & ATMs/List/Cells/AtmItemCell.swift:46-47
AtmSegmentTypesTests covers provider selection but never exercises these badge predicates. Restoring the old Sell predicate would therefore leave all four new tests passing while reintroducing the sell-only ATM's missing badge. Add a main-actor cell test covering buy-only, sell-only, two-way, and nil types, including successive updates on the same cell to verify reuse. Supply valid coordinates and a source in the fixture so the test does not depend on location authorization, and assert badge visibility through the view hierarchy or a narrow test seam.
source: glm-5.3-flash (phase1-reviewer: general)
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 UI filtering and labeling fix with focused tests and no critical-surface changes. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 94% left, weekly 59% left; passed overgemini-3.8-flash-high(antigravity quota lookup failed) - Code unchanged since the last final review (
72f6c40c): 1 new suggestion(s) listed as follow-up candidates, not posted inline - Fresh verifier:
gpt-6.1-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.1-sol— general (completed, effort medium); agentphase2-reviewer
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review. Verify the current code and confirm that no unresolved issues remain.
No unresolved findings remain from the prior review on this head.
Out-of-scope follow-up suggestions (1)
These are valid observations, but they are outside this PR's scope and should be handled in separate issues or author/maintainer-requested PRs rather than blocking this review.
- ATM details advertises buying at sell-only machines — POIDetailsView.swift renders the Buy Dash button unconditionally in atmButtonsView, while correctly restricting Sell Dash to sell-capable machines. A sell-only ATM therefore advertises an unsupported action. The same code exists in the base and was already reachable through All; this PR does not introduce the incorrect details action.
- Follow-up: A separate follow-up PR should restrict the Buy Dash action to buy-capable ATM types and cover the details-screen capability combinations.
romchornyi-pitcrew
left a comment
There was a problem hiding this comment.
Verdict: ready to merge
No blockers or majors. Reviewed at 47a51d6.
| Level | Verdict |
|---|---|
| 1 · Idea | ✅ Each segment lists every machine that supports its action. Agreed with the product owner (#1382 plan, step 5) |
| 2 · Architecture | ✅ Uses the existing provider pattern. The DAO already matches the type list (AtmDAO.swift:54-55), so no query change was needed |
| 3 · Completeness | ✅ Tests pin each segment's type set. The simulator checks in the description cover both directions |
| 4 · Code | ✅ Clean |
Checked
- Cell tags: the Sell tag now shows for
.selland.buySell, and the Buy tag hides only for.sell. An ATM with no type keeps the Buy tag alone, as before. - The list cell now agrees with the details screen, which already offered "Sell Dash" for
.selland.buySell(POIDetailsView.swift:561-562). AtmSegmentTypesTestsis in the test target (pbxproj).
Gap (outside this diff, worth a follow-up in #1382)
- The details screen always shows "Buy Dash", even for a
Sell OnlyATM (POIDetailsView.swift:553-559). The list no longer gives a sell-only machine a Buy tag, so its details screen now contradicts the list. This is pre-existing, and sell-only machines were already reachable under All.
🤖 Reviewed with Claude Code
Summary
The ATM list's segments filtered on one machine type each, so what you could buy or sell at depended on the tab in odd ways:
Buy OnlyBuy Only+Buy and SellBuy and Sell(a duplicate of Buy/Sell)Sell Only+Buy and SellBuy and SellBuy and Sell(unchanged)So two-way machines were missing from Buy, and
Sell Onlymachines appeared only under All.BuyAtmsDataProvidernow asks for[.buy, .buySell]; a newSellAtmsDataProviderasks for[.sell, .buySell]. The DAO already filters withIN.AtmItemCellshowed the Sell tag only for two-way machines, so aSell OnlyATM had no tag at all. It now shows for.selland.buySell; an ATM with no type keeps the Buy tag alone, as before.AtmSegmentTypesTestspins the type set of each segment.Decided with the product owner as part of the #1382 plan (step 5, done early because it is independent).
Screenshots
Same simulator state, develop build vs this branch. Mississauga has 235 buy-only and 6 two-way ATMs; Greensboro has the only sell-only ATM in the current database.
Test plan
AtmSegmentTypesTests(4 tests) passdashpayDebug builds🤖 Generated with Claude Code
Summary by CodeRabbit
Summary by CodeRabbit