Repository navigation
fix(ui): correct the Payments tab-bar comments, drop a redundant flag - #1390
Conversation
The comments still said the payments landing keeps the tab bar and that its pushed screens hide it themselves. The landing hides the bar while it is up, and BaseNavigationController hides it on every push above a tab's root, so the landing's own hidesBottomBarWhenPushed was redundant: every landing sits in a BaseNavigationController. 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 8e5853c) · triage: low |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
The exact-head diff preserves the intended tab-bar behavior and all CI checks shown in the evidence pass. Two non-blocking cleanup issues remain: the revised Payments comment still describes the landing as a real tab rather than the sheet opened by the current delegate flow, and an equivalent redundant tab-bar flag remains in the scanned-send path.
💬 2 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.
1 finding(s) not shown inline (the lines are not part of this PR's diff)
💬 Nitpick: Remove the remaining redundant tab-bar flag from scanned sends
DashWallet/Sources/UI/Payments/Landing/PaymentsLandingHostingController.swift:402-403
pushScannedSend still assigns controller.hidesBottomBarWhenPushed = true before pushing or replacing the stack. This controller is navigated through BaseNavigationController, whose pushViewController and setViewControllers overrides assign the same flag to every non-root controller. The assignment is therefore redundant for both branches, and the same cleanup rationale also applies to the flag in SendScreenViewController.makeSourceStep().
guard let navigationController else { return }
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) — The diff corrects navigation comments and removes one redundant tab-bar flag, a small, contained UI change whose correctness is easy to confirm against BaseNavigationController's push behavior. - Phase 1 reviewers:
glm-5.3-flash— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
glm-5.3-flash— zai quota: 5h 90% left, weekly 64% 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
🤖 Prompt for all review comments with AI agents
These findings are from an automated code review (PastaClaw). How to work through them:
- Verify each finding against the code; fix only what is real, as narrowly as the finding.
- If a finding is wrong, decline it on its thread in one or two sentences; the bot answers once and stops.
- To defer one, link a tracking issue on its thread (or reply asking the bot to file one).
- Suggestions don't block the merge, but most are worth fixing in this PR; judge each on its merits.
- Keep the PR's scope; don't grow it to satisfy hardening suggestions.
- Carried items were raised in an earlier round: read the thread first, and don't re-fix what you already fixed, declined or deferred there. Disputed and deferred items are already handled and are not listed.
In `DashWallet/Sources/UI/Main/MainTabbarController.swift`:
- [NITPICK] DashWallet/Sources/UI/Main/MainTabbarController.swift:306-309: Payment comment still calls the landing a real tab rather than a sheet
The rewritten comment corrects the tab-bar behavior but retains “A real tab, not a modal.” The same file's `tabBarController(_:shouldSelect:)` intercepts selection of the Payments index, calls `selectPaymentsTab(activeTab:)`, and returns `false`; that method presents `PaymentsLandingHostingController` in a `BaseNavigationController` as a sheet. The retained clause therefore still contradicts the implemented navigation flow and can mislead readers about where the landing is shown.
In `DashWallet/Sources/UI/Payments/Landing/PaymentsLandingHostingController.swift`:
- [NITPICK] DashWallet/Sources/UI/Payments/Landing/PaymentsLandingHostingController.swift:402-403: Remove the remaining redundant tab-bar flag from scanned sends
`pushScannedSend` still assigns `controller.hidesBottomBarWhenPushed = true` before pushing or replacing the stack. This controller is navigated through `BaseNavigationController`, whose `pushViewController` and `setViewControllers` overrides assign the same flag to every non-root controller. The assignment is therefore redundant for both branches, and the same cleanup rationale also applies to the flag in `SendScreenViewController.makeSourceStep()`.
| // Payment. A real tab, not a modal: the landing is where the send / | ||
| // receive / transfer flows start, and the tab bar stays visible on it. | ||
| // The screens it pushes set `hidesBottomBarWhenPushed`, so the bar is | ||
| // gone from the first step that asks for an amount. | ||
| // receive / transfer flows start. The landing hides the tab bar while | ||
| // it is up, and `BaseNavigationController` hides it on every screen | ||
| // pushed above the landing. |
There was a problem hiding this comment.
💬 Nitpick: Payment comment still calls the landing a real tab rather than a sheet
The rewritten comment corrects the tab-bar behavior but retains “A real tab, not a modal.” The same file's tabBarController(_:shouldSelect:) intercepts selection of the Payments index, calls selectPaymentsTab(activeTab:), and returns false; that method presents PaymentsLandingHostingController in a BaseNavigationController as a sheet. The retained clause therefore still contradicts the implemented navigation flow and can mislead readers about where the landing is shown.
| // Payment. A real tab, not a modal: the landing is where the send / | |
| // receive / transfer flows start, and the tab bar stays visible on it. | |
| // The screens it pushes set `hidesBottomBarWhenPushed`, so the bar is | |
| // gone from the first step that asks for an amount. | |
| // receive / transfer flows start. The landing hides the tab bar while | |
| // it is up, and `BaseNavigationController` hides it on every screen | |
| // pushed above the landing. | |
| // Payment. The tab item is a button, not a destination: selecting it | |
| // is intercepted in `shouldSelect` below, and the landing opens as a | |
| // sheet. The landing hides the tab bar while it is up, and | |
| // `BaseNavigationController` hides it on every screen pushed above | |
| // the landing. |
source: glm-5.3-flash (phase1-reviewer: general)
Summary
Follow-up to Roman's review of #1333 (recommendation 3).
MainTabbarController: the Payment tab comment said the tab bar stays visible on the landing and that pushed screens hide it themselves. The landing hides the bar while it is up, andBaseNavigationControllerhides it on every push above a tab's root.PaymentsLandingHostingController.pushWithoutTabBar: the doc said the landing keeps the tab bar. Fixed, and dropped the redundanthidesBottomBarWhenPushed = true— all three places that build a landing (tab root, Home'spresentPaymentsLandingScreen, the lock screen's Quick Receive) put it in aBaseNavigationController.Recommendation 1 from the same review (tab bar staying hidden after a pop under a modal) is not reproduced and a blanket fix would break the Payments landing, which hides the bar on purpose; tracked in #1389.
Test plan
dashpayDebug builds🤖 Generated with Claude Code
Summary by CodeRabbit