-
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
FXVPN-32 add message (and fix bug involving lists and shared strings) #10045
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d685da0
FXVPN-32 add message (and fix bug involving lists and shared strings)
mcleinman c7e3adb
Merge branch 'main' into fxvpn-32-in-app-message
mcleinman 3bf28f4
add to addons parser
mcleinman 22d3fec
PR feedback
mcleinman 3f34248
Merge branch 'main' into fxvpn-32-in-app-message
mcleinman fb3db79
Merge branch 'main' into fxvpn-32-in-app-message
mcleinman 825f697
make sure we don't accidentally show this to users
mcleinman 24e9643
update the conditions
mcleinman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
((api) => { | ||
api.urlOpener.openUrlLabel('downloadFirefox'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
((api) => { | ||
api.urlOpener.openUrlLabel('downloadExtension'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comment as for |
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"api_version": "0.1", | ||
"id": "message_try_firefox_extension", | ||
"name": "Try the Firefox extension", | ||
"type": "message", | ||
"conditions": { | ||
"min_client_version": "2.25.0", | ||
"trigger_time": 1209600, | ||
"env": "staging", | ||
"platforms": ["windows"] | ||
}, | ||
"message": { | ||
"date": 1733157651, | ||
"usesSharedStrings": true, | ||
"shortVersion": "", | ||
"id": "message_try_firefox_extension.24", | ||
"title": "vpn.tryFirefoxExtension.title", | ||
"subtitle": "vpn.tryFirefoxExtension.subtitle", | ||
"badge": "new_update", | ||
"blocks": [ | ||
{ | ||
"id": "c_1", | ||
"type": "ulist", | ||
"content": [ | ||
{ | ||
"id": "l_1", | ||
"content": "vpn.tryFirefoxExtension.bullet1" | ||
}, | ||
{ | ||
"id": "l_2", | ||
"content": "vpn.tryFirefoxExtension.bullet2" | ||
}, | ||
{ | ||
"id": "l_3", | ||
"content": "vpn.tryFirefoxExtension.bullet3" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "c_2", | ||
"type": "text", | ||
"content": "vpn.tryFirefoxExtension.finalLine" | ||
}, | ||
{ | ||
"id": "c_3", | ||
"type": "button", | ||
"style": "primary", | ||
"content": "vpn.tryFirefoxExtension.getExtension", | ||
"javascript": "getExtension.js" | ||
}, | ||
{ | ||
"id": "c_4", | ||
"type": "button", | ||
"style": "link", | ||
"content": "vpn.tryFirefoxExtension.downloadFirefox", | ||
"javascript": "downloadFirefox.js" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
As a minor nitpick requiring the URL to be defined by label in the client binary is probably unnecessary, we could just put it into this file as
api.urlOpener.openUrl('https://foo.bar/baz/...')
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.
I don't like that to change the URL we would have to change the client, which kind of makes the addon system unnecessarily brittle.
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.
I was following convention here, though I don't love it either.
That said, nearly all addon changes take client work (for non-English languages), as we need to release new client versions to get updated translations - a brand new addon without a client update wouldn't be translated.
Since it's a nit, I'm going to leave this for now. If we want to change the convention, let's do it for all addons at once.