-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VPN-4687: Add DNS settings help sheet #8864
Conversation
92a553a
to
c5d1805
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not blocking on English, but I think the title should be updated.
value: What is custom DNS? | ||
comment: Header label for the custom dns help sheet | ||
dnsBody1: | ||
value: Whenever you connect to a website, a DNS (domain name system) first turns the domain name (e.g. www.mozilla.org) into an IP address that allows your internet traffic to reach that destination. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checking if this content has been approved by UX? The help text doesn't seem to explain what 'resolve websites' means in the screen UI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 @vinocher . We don't seem to be answering the question from dnsHeader 'What is a custom DNS?').
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MattLichtenstein I agree that updating the title makes sense (per Flod's suggestion).
I didn't work on this content (and don't know much about the subject matter), so I checked in with Chris, but he didn't have any additional updates. Chris is returning to content lead on VPN, so I guess we can leave the body content as-is.
onClicked: helpSheetLoader.active = true | ||
|
||
accessibleName: MZI18n.GlobalHelp | ||
Accessible.ignored: !visible |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MZButtonBase has Accessible.ignored: !visible
, so this should not be needed.
nebula/ui/components/MZMenu.qml
Outdated
@@ -103,10 +103,11 @@ Item { | |||
|
|||
sourceComponent: menuBar.rightButtonComponent | |||
onItemChanged: { | |||
if (item instanceof Text) { | |||
//item.item is for right button components that might be inside a loder itself |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
nebula/ui/components/MZMenu.qml
Outdated
@@ -103,10 +103,11 @@ Item { | |||
|
|||
sourceComponent: menuBar.rightButtonComponent | |||
onItemChanged: { | |||
if (item instanceof Text) { | |||
//item.item is for right button components that might be inside a loder itself | |||
if (item instanceof Text || item.item instanceof Text) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the item.item condition, should the first item be checked if it is an instance of Loader? Also, are any null checks required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, null checks for what? item
? If item
is null, item instanceof Text
will evaluate to false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ignore the null check in the comment.
@@ -82,7 +81,8 @@ MZBottomSheet { | |||
id: icon | |||
anchors.centerIn: parent | |||
|
|||
sourceSize.width: MZTheme.theme.iconSize | |||
source: "qrc:/nebula/resources/tip-filled.svg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was the iconSource property alias removed because MZHelpSheet is expected to always use tip-filled.svg?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, exactly.
Layout.rightMargin: MZTheme.theme.windowMargin / 2 | ||
|
||
Layout.preferredHeight: MZTheme.theme.rowHeight | ||
Layout.preferredWidth: MZTheme.theme.rowHeight | ||
|
||
//Hacky workaround because for some reason, when opening a sheet via | ||
//the right menu button in MZMenu, this close button is in a | ||
//"Hovered" state, even though it wasn't hovered |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be because the mouseup event that ends the hovered state is sent to the help sheet, so the right menu button's screen doesn't receive it and assumes that it is still hovered?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the "X" button on the help sheet that is in the hovered state when the right menu button on the source screen is clicked.
Am I misunderstanding your comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vinocher are you asking if the help sheet is "stealing" the mouseup event? Seems plausible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I was wondering it the mouse down and up are going to two different targets, causing this issue. I don't think anything needs to be addressed in this comment.
src/mozillavpn.cpp
Outdated
return "https://support.mozilla.org/en-US/kb/" | ||
"how-do-i-change-my-dns-settings"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these strings be moved into Constants, like the other UrlLabels?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And we just need to drop the "en-US" so that moz.org can route to whichever locale is appropriate.
Co-authored-by: Francesco Lodolo <[email protected]>
Layout.rightMargin: MZTheme.theme.windowMargin / 2 | ||
|
||
Layout.preferredHeight: MZTheme.theme.rowHeight | ||
Layout.preferredWidth: MZTheme.theme.rowHeight | ||
|
||
//Hacky workaround because for some reason, when opening a sheet via | ||
//the right menu button in MZMenu, this close button is in a | ||
//"Hovered" state, even though it wasn't hovered |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vinocher are you asking if the help sheet is "stealing" the mouseup event? Seems plausible.
src/mozillavpn.cpp
Outdated
return "https://support.mozilla.org/en-US/kb/" | ||
"how-do-i-change-my-dns-settings"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And we just need to drop the "en-US" so that moz.org can route to whichever locale is appropriate.
value: What is custom DNS? | ||
comment: Header label for the custom dns help sheet | ||
dnsBody1: | ||
value: Whenever you connect to a website, a DNS (domain name system) first turns the domain name (e.g. www.mozilla.org) into an IP address that allows your internet traffic to reach that destination. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 @vinocher . We don't seem to be answering the question from dnsHeader 'What is a custom DNS?').
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Description
Screen.Recording.2023-12-22.at.3.43.15.PM.mov
Reference
VPN-4687: Implement the 'Custom DNS Settings' in-product help sheet