mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:12:38 +00:00
Ask before opening external links #343
No reviewers
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!343
Loading…
Reference in a new issue
No description provided.
Delete branch "external-link-warning"
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?
Introduces an external link confirm popup window that prompts the user to acknowledge that they really want to visit the external link. This is based off the design file
This contains a menu bar with a title, but is missing the close button. It is also missing the "Don't ask again" button. These require some more conversation and can be addressed in a follow-up.
This deviates from the design file in providing a mobile layout that positions the buttons in a column layout instead of a rowlayout. cc @GBKS @mouxdesign
Updated from 3a3f8c2 to e9b6d4a
Added a navigation bar with a Title, but without a close button within the navigation bar.
ACK e9b6d4a
Verified on Ryzen 9 Ubuntu 22.04.2 and Note 9 Android 10 on fully synced nodes.
tested ACK on Galaxy A13 5G (armv7a) built on WSL Ubuntu 22.04
PR built w/o issues.
nit, the “External Link” text header seems to be a little off center in portrait mode (in landscape it looks centered) see attachment
The adjustment is a mock up made with image manipulation software, no code was altered.

Good idea with the column layout for mobile. Small thing, the overlay should have a 1px border around it (neutral 6 color).
center: true // Center header text
@jarolrod pointed out that this should probably be an application-wide setting. So the first time a user opens an external link, we ask them. If they check the "Don't ask again" option, we don't ask anymore. But they can change this behavior again in the settings. Here's a mock-up for that.
tested ACK on desktop built on both Ubuntus 20.04 & 22.04.
As pointed out by @D33r-Gee, the title of the popup "External Link" is not properly centered (it didn't look right at first sight and checked it with a screen ruler - KRuler, perhaps there's a better tooling), try adding
center: trueinmiddleDetail: Headerblock and re-compiling didn't make any difference for me (event setting it to false doesn't). What reduced the pixels difference (~6 vs ~10 - but to the right direction instead) is addingLayout.alignment: Qt.AlignHCenterinNavigationBarblock inExternalPopup.qmlbut it's like duplicating what's already specify inNavigationBar.qml(id: middle_detail):I like the "Don't ask again" toggle switch proposed by @jarolrod and mocked-up by @GBKS.
Concept ACK, approach NACK.
I've rebuilt this PR on top of #358 using NavBar2 instead and the title of the popup is now more accurately centered.
Please rebase.
https://discord.com/channels/903125802726596648/903126039084015638/1146922061449666602
rebased over main
tack
726bfa2c1e, works as expectedThis issue has been around for a long time. What is needed to wrap it up?
re ACK
726bfa2c1e