qml: redesign the block clock #994

Open
uqlidi wants to merge 6 commits from feat/redesign/block-clock into qt6 AGit
uqlidi commented 2026-10-11 19:57:44 +00:00 (Migrated from github.com)

Redesign the block clock to match the widget library design. Built on top of #981

what was redesigned:

  • The dial shows the last twelve hours of blocks as segments around the clock, with sync progress drawn as layered rings while the node catches up
  • A status line under the dial shows the node state, peer count and a link to any warnings. It replaces the five peer dots (closes #321)
  • Clicking the clock opens Node details instead of pausing the node
  • Pausing has its own "Pause network" button, which asks for confirmation before pausing (closes #822)
  • Node details is compact by default: sync progress, download speed, peers, height and mempool. "More details" adds traffic, version, uptime and the data/blocks directories, shortened with ~ and clickable to open in the file manager
  • Node details replaces the separate i button Node information popup, and the menu's "Node Details" opens it
  • The network indicator is restyled as an outlined chip
  • A short notification appears when a new block arrives
  • Errors, lost connectivity and warnings show as a banner that can be closed
  • The warnings link opens a Warnings dialog with each warning in amber. Warnings can be dismissed one at a time or all at once, the choice persists across restarts, and dismissed warnings can be restored
  • The onboarding block clock and the blocktime images are redrawn in the new style and include the block number

showcase:

https://github.com/user-attachments/assets/28586ef7-61d2-4839-82bd-7224486de94f

Redesign the block clock to match the widget library design. Built on top of #981 what was redesigned: - The dial shows the last twelve hours of blocks as segments around the clock, with sync progress drawn as layered rings while the node catches up - A status line under the dial shows the node state, peer count and a link to any warnings. It replaces the five peer dots (closes #321) - Clicking the clock opens Node details instead of pausing the node - Pausing has its own "Pause network" button, which asks for confirmation before pausing (closes #822) - Node details is compact by default: sync progress, download speed, peers, height and mempool. "More details" adds traffic, version, uptime and the data/blocks directories, shortened with `~` and clickable to open in the file manager - Node details replaces the separate i button Node information popup, and the menu's "Node Details" opens it - The network indicator is restyled as an outlined chip - A short notification appears when a new block arrives - Errors, lost connectivity and warnings show as a banner that can be closed - The warnings link opens a Warnings dialog with each warning in amber. Warnings can be dismissed one at a time or all at once, the choice persists across restarts, and dismissed warnings can be restored - The onboarding block clock and the blocktime images are redrawn in the new style and include the block number **showcase:** https://github.com/user-attachments/assets/28586ef7-61d2-4839-82bd-7224486de94f
rreview commented 2026-11-04 00:32:52 +00:00 (Migrated from github.com)

2 additional verified findings in the Review report.

🟠 Minor · Saved dismissals survive a warning clearing across restart

A previously dismissed warning remains suppressed when it returns after a warning-free restart, because setWarnings never reconciles saved dismissals that were absent from this process's warning list.

Location: qml/models/nodemodel.cpp:684 (head).

🟠 Minor · The oldest retained block has no dial segment

The layered renderer draws only intervals between retained timestamps, while the model discards their predecessor, so a single block in the twelve-hour window produces no block arc.

Location: qml/components/blockclockdial.cpp:732 (head).

🟠 Minor · Closing Node details can freeze the visible traffic page

Using the native desktop menu to open Network Traffic while Node details remains open lets closing the popup disable updates to the newly visible page.

Location: qml/components/NodeDetailsPopup.qml:60 (head).

🟠 Minor · Node details speed inherits the traffic chart's averaging window

The speed rows use receivedRateList[0], whose averaging window depends on the last traffic-chart range and can cover up to 2.4 hours after selecting one day.

Location: qml/components/NodeDetailsPopup.qml:88 (head).

🟠 Minor · Host offline status hides Resume while Core is paused

When Core is paused and Qt reports the host as disconnected, the new controls offer Network settings instead of Resume, preventing users from enabling reconnection before connectivity returns.

Location: qml/components/NodeStatus.qml:87 (head).

🟠 Minor · Short block intervals can lose the newest segment colour

Equal timestamps are skipped, and intervals below about 7.5 seconds produce a zero arc span, so the newest block's confirmationColors[0] can be absent from the layered dial.

Location: qml/components/blockclockdial.cpp:739 (head).

Review coverage was incomplete.


Reviewed: bc34774d4b94 · Review report

<!-- ralph-major:bitcoin-core/gui-qml --> [2 additional verified findings in the Review report](<https://review.fish.foo/report/gui/994-bc34774d4b94074a9374137994bbed0d3201a51e-3165-6.html>). **🟠 Minor · Saved dismissals survive a warning clearing across restart** A previously dismissed warning remains suppressed when it returns after a warning-free restart, because `setWarnings` never reconciles saved dismissals that were absent from this process's warning list. Location: [qml/models/nodemodel.cpp:684](<https://github.com/bitcoin-core/gui-qml/blob/bc34774d4b94074a9374137994bbed0d3201a51e/qml/models/nodemodel.cpp#L684>) (head). **🟠 Minor · The oldest retained block has no dial segment** The layered renderer draws only intervals between retained timestamps, while the model discards their predecessor, so a single block in the twelve-hour window produces no block arc. Location: [qml/components/blockclockdial.cpp:732](<https://github.com/bitcoin-core/gui-qml/blob/bc34774d4b94074a9374137994bbed0d3201a51e/qml/components/blockclockdial.cpp#L732>) (head). **🟠 Minor · Closing Node details can freeze the visible traffic page** Using the native desktop menu to open Network Traffic while Node details remains open lets closing the popup disable updates to the newly visible page. Location: [qml/components/NodeDetailsPopup.qml:60](<https://github.com/bitcoin-core/gui-qml/blob/bc34774d4b94074a9374137994bbed0d3201a51e/qml/components/NodeDetailsPopup.qml#L60>) (head). **🟠 Minor · Node details speed inherits the traffic chart's averaging window** The speed rows use `receivedRateList[0]`, whose averaging window depends on the last traffic-chart range and can cover up to 2.4 hours after selecting one day. Location: [qml/components/NodeDetailsPopup.qml:88](<https://github.com/bitcoin-core/gui-qml/blob/bc34774d4b94074a9374137994bbed0d3201a51e/qml/components/NodeDetailsPopup.qml#L88>) (head). **🟠 Minor · Host offline status hides Resume while Core is paused** When Core is paused and Qt reports the host as disconnected, the new controls offer Network settings instead of Resume, preventing users from enabling reconnection before connectivity returns. Location: [qml/components/NodeStatus.qml:87](<https://github.com/bitcoin-core/gui-qml/blob/bc34774d4b94074a9374137994bbed0d3201a51e/qml/components/NodeStatus.qml#L87>) (head). **🟠 Minor · Short block intervals can lose the newest segment colour** Equal timestamps are skipped, and intervals below about 7.5 seconds produce a zero arc span, so the newest block's `confirmationColors[0]` can be absent from the layered dial. Location: [qml/components/blockclockdial.cpp:739](<https://github.com/bitcoin-core/gui-qml/blob/bc34774d4b94074a9374137994bbed0d3201a51e/qml/components/blockclockdial.cpp#L739>) (head). Review coverage was incomplete. <!-- Review tier: sensitive --> --- Reviewed: [`bc34774d4b94`](<https://github.com/bitcoin-core/gui-qml/commit/bc34774d4b94074a9374137994bbed0d3201a51e>) · [Review report](<https://review.fish.foo/report/gui/994-bc34774d4b94074a9374137994bbed0d3201a51e-3165-6.html>)
Sign in to join this conversation.
No description provided.