mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:12:38 +00:00
Redesign peers list #889
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml!889
Loading…
Reference in a new issue
No description provided.
Delete branch "peers-redesign"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The existing Peers interface was designed around a narrow layout and separate list, detail, and banned-peer pages. This redesign presents peer information more consistently, makes better use of wider windows, and adapts the same interaction model to compact layouts. Additionally, add support to search, filter, sort peers.
Implementation details
SizeClassto centralize compact and regular layout breakpoints. Originally proposed in https://github.com/bitcoin-core/gui-qml/pull/690 but felt worthwhile to port it in to this redesign.NavigationSplitViewa reusable primary-detail container. At regular widths, th list and detail view are displayed side by side with the first peer selected automatically. At compact widths, they are stacked in a navigation view.NavigationSplitViewScreenshots
https://github.com/user-attachments/assets/6cf4c31a-3781-44c1-ae13-1f336c492a9e
That's impressive works. I like the new design but there are few suggestions
I see it's similar to Alertpopup. cannot make a shared component between them or reuse AlertPopup?
PeerDetailsModel::mappedAS()andpermission()returntr("N/A"), which istranslated. Under a German or Spanish locale the comparison never matches, so
those rows show the translated "N/A" instead of the em dash the rest of the page
uses.
Fix it in the model. Let C++ report "no value" and let QML decide how to render
it:
Then drop
|| value === "N/A"fromunavailable().startingHeight()returnstr("N/A")too and has the same problem.nit: There are a lot of emdashes. honestly I dont like it and I don't think people like it after the AI. cannot replace them?
Cannot reuse the network charts in settings page here?
it would be really cool (I love charts =D)
Fix broken CIs please
Em-dashes is probably the right thing to do here.
We do have precedent in using em-dash for empty values. See bullet 2 in https://github.com/bitcoin-core/gui-qml/issues/807.
(AI ruined em-dashes for everyone)
This is to show the list of banned peers in a modal view so that we show them without pushing a new view. Hence the
popupsuffix. It's not related to Alertpopup :)Good idea. We can, but will probably stick to this table for this PR
Reviewed
87a7b72c1. The four findings from my earlier summary are attached inline here.Five existing QML suites passed, and focused probes reproduced these issues. Full backend, sanitizer, and platform validation remain untested locally; lint and clang-tidy were blocked by missing scripts in this checkout.
Under Spanish, the direction/type becomes
Outbound · Saliente Retransmisión completa:details.directionis English whiledetails.typealready contains the translated direction. Displaydetails.typedirectly, or expose separately translated direction and connection-type values.If peer A disconnects while its ban confirmation is open, the regular layout selects B and confirming bans B instead. Disconnect confirmation has the same problem. Capture the target when opening each confirmation and use it for both the message and action, or cancel when that peer disappears.
Updating a traffic statistic rebuilds the table delegates, clearing text selection and keyboard focus even in an unchanged field. Keep the delegates stable and update their values in place. Cover selecting the ping value while refreshing a byte counter.
Leaving the desktop Peers tab still executes the cleanup referencing
peersStack, but this replacement removes that ID. Every transition raisesReferenceError: peersStack is not defined. Remove the obsolete cleanup or replace it with the intendedPeersViewreset.Resolved in
359556a581Resolved in
359556a581Resolved in
359556a581Resolved in
359556a581ACK
28a4cc2522