Skip to content

fix(ui): correct the Payments tab-bar comments, drop a redundant flag - #1390

Merged
ross-dash merged 1 commit into
developfrom
fix/tab-bar-restore-after-pop
Nov 12, 2026
Merged

ross-dash merged 1 commit into
developfrom
fix/tab-bar-restore-after-pop

Conversation

@ross-dash

@ross-dash ross-dash commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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, and BaseNavigationController hides it on every push above a tab's root.
  • PaymentsLandingHostingController.pushWithoutTabBar: the doc said the landing keeps the tab bar. Fixed, and dropped the redundant hidesBottomBarWhenPushed = true — all three places that build a landing (tab root, Home's presentPaymentsLandingScreen, the lock screen's Quick Receive) put it in a BaseNavigationController.

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

  • dashpay Debug builds
  • Payments → Send → address form opens without the tab bar; back returns to the landing; closing the sheet brings the tab bar back (simulator, Payments opened from the centre tab button)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • The tab bar is now hidden while the Payment landing screen is visible.
    • The tab bar also remains hidden when navigating to screens opened from the Payment landing screen, providing consistent navigation across the Payment flow.

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]>
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Payment-tab comments now describe tab bar visibility on the landing and pushed screens. pushWithoutTabBar(_:) no longer sets hidesBottomBarWhenPushed on pushed controllers.

Changes: Payment Tab Bar Handling

Layer / File(s) Summary
Payment tab bar visibility
DashWallet/Sources/UI/Main/MainTabbarController.swift, DashWallet/Sources/UI/Payments/Landing/PaymentsLandingHostingController.swift
The comments describe the tab bar as hidden on the Payment landing and on screens pushed above it. pushWithoutTabBar(_:) no longer sets hidesBottomBarWhenPushed on the pushed controller.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Possibly related issues

  • Issue 1389: It concerns tab bar visibility after a pop under a modal. This change concerns the same tab bar behavior, but the provided summary does not show a change to modal-pop handling.

Suggested reviewers: llbartekll, romchornyi

Merge Risk: Minimal · up to 8e585

This change removes a redundant setting and updates comments. The Payments tab bar behavior should be unchanged. The manual Send flow check is still unchecked, so it is worth running before merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: correcting Payments tab-bar comments and removing a redundant flag. The raw summary confirms both parts. It removes the hidesBottomBarWhenPushed assignment in pushWith…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the main change: correcting Payments tab-bar comments and removing a redundant flag. The raw summary confirms both parts. It removes the hidesBottomBarWhenPushed assignment in pushWithoutTabBar and updates comments in MainTabbarController and the hosting controller. The title is specific and accurate, and the 'fix(ui)' prefix fits a comment and cleanup change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 85704805-4d42-4b6d-8739-bef3f3e335c9
Commits

Reviewing files that changed from the base of the PR and between 0c6bb7a and 8e5853c.

Files selected for processing: 2

  • DashWallet/Sources/UI/Main/MainTabbarController.swift
  • DashWallet/Sources/UI/Payments/Landing/PaymentsLandingHostingController.swift

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@thepastaclaw

thepastaclaw commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

✅ Final review complete — no blockers (commit 8e5853c) · triage: low

@thepastaclaw thepastaclaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: low by gpt-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); agent phase1-reviewer
  • Phase 1 model: glm-5.3-flash — zai quota: 5h 90% left, weekly 64% left; passed over gemini-3.8-flash-high (antigravity quota lookup failed)
  • Fresh verifier: gpt-6.1-sol — final-verifier; agent sol-verifier
  • Phase 2 reviewers: gpt-6.1-sol — general (completed, effort medium); agent phase2-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()`.

Comment on lines 306 to +309
// 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 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.

Suggested change
// 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)

@ross-dash
ross-dash merged commit b854978 into develop Nov 12, 2026
9 checks passed
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