Review report

bitcoin-core/gui-qml: PR #1052

2 minor findings · 1 suggestion

Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.

Findings

Link

[minor] · Return accepts the full-wallet send alert without focusing its button

After the sweep alert opens, Return or Enter invokes “Send all funds” without focusing that button, weakening the extra confirmation before sending a prepared full-wallet transaction.

Location: qml/pages/wallet/SendTransactionReview.qml:391 (head).

Details and suggested fix

When requestSend() opens sweepAlert, DialogPopup focuses its content because no initialFocusItem is set. AlertPopup now routes a non-repeating Return or Enter there to its only Normal-role action, and “Send all funds” retains that default role. The handler therefore calls commitSend() after the opening transition without requiring focus on the confirmation button. Base handled only Escape at this level. The transaction-identity guard still restricts the action to the reviewed transaction, and a wallet requiring unlock still prompts for its password; a sendable transaction can proceed immediately. Mark this action AlertAction.Destructive so the Return default excludes it, and add a sweep-specific test asserting that Return on the content-focused alert does not call commitSend().


Link

[minor] · Compact Wallet settings lack a Back route to the settings list

Below 640 pixels, opening Wallet settings hides the sidebar but provides no Back route to it, leaving the settings list and its Done button inaccessible until the view is widened.

Location: qml/components/SettingsPageContainer.qml:27 (head).

Details and suggested fix

showSectionPage() switches the compact split to Detail, hiding and disabling the sidebar. configureRootPage() wires the return button only when the pushed root exposes showBackButton and back, but walletSettingsHost is a plain Item. Its empty-state WalletSectionPage and both internally loaded and desktop-provided WalletSettingsStack roots consequently retain showBackButton: false; subpage Back actions only return to that wallet root. Forward the compact root-navigation contract through the host to whichever wallet root is visible, and test entering and leaving each variant. The current compact test checks Connection Back but widens immediately after entering Wallet settings. Release desktop windows have an 800-pixel minimum outside debug Mobile preview, so normal desktop resizing does not trigger this. The mobile-mode node SettingsView can use this path at compact widths, but production occurrence on mobile remains unconfirmed.


Optional improvements

Link

[suggestion] · Reduce motion keeps a startup snapshot of the OS preference

OS preference changes leave motion and the Display switch stale until restart; startup-only sampling may be intentional, but the row currently describes it as following the system.

Location: qml/motionpreference.h:18 (head).

Details and suggested fix

StartupMotionMode() samples the platform when the singleton is created, and MotionPreference stores that result as a const member exposed through a CONSTANT property. Theme's binding and resetMode() reread that snapshot rather than the OS. Turning reduced motion on later therefore leaves full motion unless the app switch is used; starting with it on and then turning it off leaves the switch checked, disabled and saying “Following your system setting.” The header explicitly describes a starting mode, so choose and communicate the intended contract. If startup-only sampling is intended, state that in the row or design documentation. If live following is intended, expose a NOTIFY property updated from platform notifications on the QObject's thread, while preserving the separate -test-motion override.


Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.