Activity: what should the list do when a pending transaction confirms? It currently jumps away from the newest rows #1120

Open
opened 2026-11-11 14:30:01 +00:00 by jarolrod · 0 comments
jarolrod commented 2026-11-11 14:30:01 +00:00 (Migrated from github.com)

When a block confirms a pending transaction, the Activity list moves by itself. I'd like to settle what it should do at that moment, because the current position looks accidental.

What happens now

  1. Start the app with a wallet and open Activity. Leave the list at the top.
  2. Receive several payments. Each new row appears at the top under Pending, and the list stays at the top.
  3. A block confirms them.

The list jumps to the row that was first when the wallet's list was loaded, and that row lands near the bottom of the visible area. Most of what arrived since then is above the visible area, including most of the transactions that just confirmed: with 20 new rows at the default window size, 3 stay visible and 17 do not. The page header, search bar and filters do not scroll, so nothing shows that the list has left the top.

How far it moves depends on how many rows have arrived since the list was loaded, counted over the whole session. At the default 800x665 window:

Rows arrived since the list was loaded After the confirming block
1 or 2 Stays at the top
3 32 px off the top
5 The newest row is off screen
20 The 18th to 22nd rows are showing

This happened on every confirming block with three or more new rows: 33 of 33 offscreen and 13 of 13 in a native window, with identical positions at the same window size. It was the same with 5, 50 and 500 existing transactions, with Day grouping, with a search or a type filter set, at other window sizes, with the page hidden behind another tab or wallet, and for payments sent from the app.

What does not move the list:

  • A payment arriving: 0 of 223 offscreen, 0 of 29 native.
  • A block that confirms nothing in this wallet: 0 of 18.

If the user has scrolled down to read older history, that position is kept while payments arrive and lost at the confirming block, which moves the view to the same row. Scrolling back up works until the next confirming block. Switching tabs or wallets does not bring the list back.

The question

A confirming row leaves the Pending group and joins the dated groups, so some rows have to move. What should the view do?

  • Stay where the user is. At the top, stay at the top, so the newest rows remain visible. Further down, keep the rows the user was reading in place. This is what the list already does when a payment arrives.
  • Follow the confirmed transaction to its new place.
  • Something else, such as staying put and showing an indicator that newer rows are above.

I lean towards the first. Bitcoin-Qt, by its source, leaves its transaction table where the user left it on a confirmation (transactiontablemodel.cpp#L283-L291), and scrolls only to a transaction the user has just acted on, such as one just sent (walletview.cpp#L84-L85). A comment in the model here states the same aim: "Reconcile stable IDs without resetting the view on each confirmation" (transactionactivitymodel.cpp#L549-L550).

Why it lands where it does

On a confirmation the filter proxy calls invalidate() (activityfilterproxymodel.cpp#L125-L135), which the list view treats as a reset. The list view keeps Qt's default current item (ActivityListPage.qml#L337-L345): it starts as the first row and is pushed down by every row inserted above it. On a reset Qt positions the view on that item. Nothing on the page uses the current item.

A stand-alone Qt 6.9 program with those two ingredients gives the same positions, and stays put without the invalidate() or with the current item cleared. I did not rebuild the app to test either change.

Reproduced on merged qt6 at eed1f426fcb6, macOS / Qt 6.9, isolated regtest, offscreen and native. Payments and blocks came over RPC, as they would from the network; no input in the app triggers it. Scrolling in the tests was set through properties, not a wheel or scroll bar. Payments were seconds apart and confirmed by one block. The 500-row, Day grouping, filter, window-size, hidden-page and in-app-send cases ran offscreen only.

When a block confirms a pending transaction, the Activity list moves by itself. I'd like to settle what it should do at that moment, because the current position looks accidental. **What happens now** 1. Start the app with a wallet and open **Activity**. Leave the list at the top. 2. Receive several payments. Each new row appears at the top under **Pending**, and the list stays at the top. 3. A block confirms them. The list jumps to the row that was first when the wallet's list was loaded, and that row lands near the bottom of the visible area. Most of what arrived since then is above the visible area, including most of the transactions that just confirmed: with 20 new rows at the default window size, 3 stay visible and 17 do not. The page header, search bar and filters do not scroll, so nothing shows that the list has left the top. How far it moves depends on how many rows have arrived since the list was loaded, counted over the whole session. At the default 800x665 window: | Rows arrived since the list was loaded | After the confirming block | |---|---| | 1 or 2 | Stays at the top | | 3 | 32 px off the top | | 5 | The newest row is off screen | | 20 | The 18th to 22nd rows are showing | This happened on every confirming block with three or more new rows: 33 of 33 offscreen and 13 of 13 in a native window, with identical positions at the same window size. It was the same with 5, 50 and 500 existing transactions, with Day grouping, with a search or a type filter set, at other window sizes, with the page hidden behind another tab or wallet, and for payments sent from the app. What does not move the list: - A payment arriving: 0 of 223 offscreen, 0 of 29 native. - A block that confirms nothing in this wallet: 0 of 18. If the user has scrolled down to read older history, that position is kept while payments arrive and lost at the confirming block, which moves the view to the same row. Scrolling back up works until the next confirming block. Switching tabs or wallets does not bring the list back. **The question** A confirming row leaves the **Pending** group and joins the dated groups, so some rows have to move. What should the view do? - **Stay where the user is.** At the top, stay at the top, so the newest rows remain visible. Further down, keep the rows the user was reading in place. This is what the list already does when a payment arrives. - **Follow the confirmed transaction** to its new place. - **Something else,** such as staying put and showing an indicator that newer rows are above. I lean towards the first. Bitcoin-Qt, by its source, leaves its transaction table where the user left it on a confirmation ([transactiontablemodel.cpp#L283-L291](https://github.com/bitcoin/bitcoin/blob/44901d8f64cb617714707bd025ecd83f108353c2/src/qt/transactiontablemodel.cpp#L283-L291)), and scrolls only to a transaction the user has just acted on, such as one just sent ([walletview.cpp#L84-L85](https://github.com/bitcoin/bitcoin/blob/44901d8f64cb617714707bd025ecd83f108353c2/src/qt/walletview.cpp#L84-L85)). A comment in the model here states the same aim: "Reconcile stable IDs without resetting the view on each confirmation" ([transactionactivitymodel.cpp#L549-L550](https://github.com/bitcoin-core/gui-qml/blob/eed1f426fcb64daa61b004590335a03afe376274/qml/models/transactionactivitymodel.cpp#L549-L550)). **Why it lands where it does** On a confirmation the filter proxy calls `invalidate()` ([activityfilterproxymodel.cpp#L125-L135](https://github.com/bitcoin-core/gui-qml/blob/eed1f426fcb64daa61b004590335a03afe376274/qml/models/activityfilterproxymodel.cpp#L125-L135)), which the list view treats as a reset. The list view keeps Qt's default current item ([ActivityListPage.qml#L337-L345](https://github.com/bitcoin-core/gui-qml/blob/eed1f426fcb64daa61b004590335a03afe376274/qml/pages/wallet/ActivityListPage.qml#L337-L345)): it starts as the first row and is pushed down by every row inserted above it. On a reset Qt positions the view on that item. Nothing on the page uses the current item. A stand-alone Qt 6.9 program with those two ingredients gives the same positions, and stays put without the `invalidate()` or with the current item cleared. I did not rebuild the app to test either change. Reproduced on merged `qt6` at `eed1f426fcb6`, macOS / Qt 6.9, isolated regtest, offscreen and native. Payments and blocks came over RPC, as they would from the network; no input in the app triggers it. Scrolling in the tests was set through properties, not a wheel or scroll bar. Payments were seconds apart and confirmed by one block. The 500-row, Day grouping, filter, window-size, hidden-page and in-app-send cases ran offscreen only.
Sign in to join this conversation.
No description provided.