Wallet selector: improve scrolling for long wallet lists #700

Closed
opened 2026-05-14 18:37:52 +00:00 by johnny9 · 1 comment
johnny9 commented 2026-05-14 18:37:52 +00:00 (Migrated from github.com)

Summary

The wallet selector should remain fast and fully usable when the wallet directory contains a long list of wallets.

Image

Parent: #577

Problem

With many regtest wallets, the wallet selector list scrolls slowly and the long list can be cut off. WalletSelect.qml currently uses a clipped popup, a fixed-width column, a ListView with a height derived from Math.min(listView.count * 34, 300), and a trailing AddWalletButton. The selector needs to handle large wallet counts without hiding rows or making the add-wallet action unreachable.

Work Needed

  • Make the wallet selector size itself against the available viewport/window space instead of relying only on a fixed 300px list cap.
  • Ensure the ListView, scrollbar, popup clipping, and AddWalletButton cooperate so the bottom of a long list is not cut off.
  • Improve long-list scrolling responsiveness; consider delegate reuse, cache behavior, and avoiding unnecessary layout churn during scroll.
  • Validate behavior with a large number of wallets, including enough rows to require scrolling.

Acceptance Criteria

  1. A long wallet list scrolls smoothly enough to select any wallet without laggy interaction.
  2. The list is not visually cut off at the bottom of the popup/window.
  3. The Add Wallet action remains visible or reachable when the wallet list is long.
  4. Test coverage or a documented manual test exercises a long wallet list, for example 50+ wallets.
## Summary The wallet selector should remain fast and fully usable when the wallet directory contains a long list of wallets. <img width="352" height="631" alt="Image" src="https://git.fish.foo/attachments/9dd91333-57b2-48c4-81a5-4a394f26c53d" /> Parent: #577 ## Problem With many regtest wallets, the wallet selector list scrolls slowly and the long list can be cut off. `WalletSelect.qml` currently uses a clipped popup, a fixed-width column, a `ListView` with a height derived from `Math.min(listView.count * 34, 300)`, and a trailing `AddWalletButton`. The selector needs to handle large wallet counts without hiding rows or making the add-wallet action unreachable. ## Work Needed - Make the wallet selector size itself against the available viewport/window space instead of relying only on a fixed 300px list cap. - Ensure the `ListView`, scrollbar, popup clipping, and `AddWalletButton` cooperate so the bottom of a long list is not cut off. - Improve long-list scrolling responsiveness; consider delegate reuse, cache behavior, and avoiding unnecessary layout churn during scroll. - Validate behavior with a large number of wallets, including enough rows to require scrolling. ## Acceptance Criteria 1. A long wallet list scrolls smoothly enough to select any wallet without laggy interaction. 2. The list is not visually cut off at the bottom of the popup/window. 3. The `Add Wallet` action remains visible or reachable when the wallet list is long. 4. Test coverage or a documented manual test exercises a long wallet list, for example 50+ wallets.
pseudoramdom commented 2026-05-20 20:07:01 +00:00 (Migrated from github.com)

I'll take this.

I'll take this.
Sign in to join this conversation.
No description provided.