Skip to content

Commit 849f7c2

Browse files
authored
VPN-7324: 2.33 addon messages (#10856)
* VPN-7324 2.33 addon messages * linting * improve tense
1 parent 7712a5b commit 849f7c2

File tree

11 files changed

+232
-57
lines changed

11 files changed

+232
-57
lines changed

addons/message_update_v2.32/manifest.json

Lines changed: 0 additions & 55 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (('updateTime' in api.settings)) {
1010
// Macos v2.16.0 requires a web-based update.
1111
if (api.env.platform === 'macos' && api.env.versionString === '2.16.0') {
1212
api.addon.setTitle(
13-
'message.message_update_v2.32.block.extra_1',
13+
'message.message_update_v2.33.block.extra_1',
1414
'Download the new Mozilla VPN');
1515
api.addon.composer.remove('c_3');
1616
return;
@@ -51,6 +51,6 @@ if (versionCompare([2, 13, 0], version) >= 0 ||
5151
api.addon.composer.remove('c_3');
5252

5353
api.addon.setTitle(
54-
'message.message_update_v2.32.block.extra_1',
54+
'message.message_update_v2.33.block.extra_1',
5555
'Download the new Mozilla VPN');
5656
})
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"api_version": "0.1",
3+
"id": "message_update_v2.33",
4+
"name": "Update to Mozilla VPN 2.33",
5+
"type": "message",
6+
"conditions": {
7+
"max_client_version": "2.32.9",
8+
"javascript": "osCheck.js"
9+
},
10+
"javascript": {
11+
"enable": "enable.js"
12+
},
13+
"message": {
14+
"date": 1763575587,
15+
"usesSharedStrings": true,
16+
"shortVersion": "2.33",
17+
"id": "message_update_v2.33",
18+
"title": "vpn.commonStrings.updateTitle",
19+
"subtitle": "vpn.commonStrings.subtitle",
20+
"badge": "new_update",
21+
"blocks": [
22+
{
23+
"id": "c_1",
24+
"type": "text",
25+
"content": "vpn.commonStrings.generalUpdateBulletIntro"
26+
},
27+
{
28+
"id": "c_2",
29+
"type": "ulist",
30+
"content": [
31+
{
32+
"id": "l_1",
33+
"content": "vpn.233updateMessage.bullet1"
34+
},
35+
{
36+
"id": "l_2",
37+
"content": "vpn.233updateMessage.bullet2"
38+
},
39+
{
40+
"id": "l_3",
41+
"content": "vpn.233updateMessage.bullet3"
42+
},
43+
{
44+
"id": "l_4",
45+
"content": "vpn.233updateMessage.bullet4"
46+
},
47+
{
48+
"id": "l_5",
49+
"content": "vpn.233updateMessage.bullet5"
50+
},
51+
{
52+
"id": "l_6",
53+
"content": "vpn.233updateMessage.bullet6"
54+
},
55+
{
56+
"id": "l_7",
57+
"content": "vpn.233updateMessage.bullet7"
58+
},
59+
{
60+
"id": "l_8",
61+
"content": "vpn.233updateMessage.bullet8"
62+
},
63+
{
64+
"id": "l_9",
65+
"content": "vpn.233updateMessage.bullet9"
66+
},
67+
{
68+
"id": "l_10",
69+
"content": "vpn.233updateMessage.bullet10"
70+
},
71+
{
72+
"id": "l_11",
73+
"content": "vpn.233updateMessage.bullet11"
74+
}
75+
]
76+
},
77+
{
78+
"id": "c_3",
79+
"type": "button",
80+
"style": "primary",
81+
"content": "vpn.commonStrings.updateButton",
82+
"javascript": "update.js"
83+
},
84+
{
85+
"id": "c_4",
86+
"type": "button",
87+
"style": "primary",
88+
"content": "vpn.commonStrings.downloadButton",
89+
"javascript": "updateWeb.js"
90+
},
91+
{
92+
"id": "c_5",
93+
"type": "button",
94+
"style": "link",
95+
"content": "vpn.commonStrings.getHelpButton",
96+
"javascript": "getHelp.js"
97+
},
98+
{
99+
"id": "extra_1",
100+
"type": "text",
101+
"content": "vpn.commonStrings.downloadTitle"
102+
}
103+
]
104+
}
105+
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"api_version": "0.1",
3+
"id": "message_whats_new_v2.33",
4+
"name": "What's new message",
5+
"type": "message",
6+
"conditions": {
7+
"min_client_version": "2.33.0",
8+
"max_client_version": "2.33.9"
9+
},
10+
"javascript": {
11+
"enable": "setDate.js"
12+
},
13+
"message": {
14+
"date": 1763575587,
15+
"usesSharedStrings": true,
16+
"shortVersion": "2.33",
17+
"id": "message_whats_new_v2.33",
18+
"title": "vpn.commonStrings.whatsNewTitle",
19+
"subtitle": "vpn.commonStrings.latestVersionSubtitle",
20+
"badge": "whats_new",
21+
"notify": false,
22+
"blocks": [
23+
{
24+
"id": "c_1",
25+
"type": "text",
26+
"content": "vpn.commonStrings.generalUpdateBulletIntro"
27+
},
28+
{
29+
"id": "c_2",
30+
"type": "ulist",
31+
"content": [
32+
{
33+
"id": "l_1",
34+
"content": "vpn.233updateMessage.bullet1"
35+
},
36+
{
37+
"id": "l_2",
38+
"content": "vpn.233updateMessage.bullet2"
39+
},
40+
{
41+
"id": "l_3",
42+
"content": "vpn.233updateMessage.bullet3"
43+
},
44+
{
45+
"id": "l_4",
46+
"content": "vpn.233updateMessage.bullet4"
47+
},
48+
{
49+
"id": "l_5",
50+
"content": "vpn.233updateMessage.bullet5"
51+
},
52+
{
53+
"id": "l_6",
54+
"content": "vpn.233updateMessage.bullet6"
55+
},
56+
{
57+
"id": "l_7",
58+
"content": "vpn.233updateMessage.bullet7"
59+
},
60+
{
61+
"id": "l_8",
62+
"content": "vpn.233updateMessage.bullet8"
63+
},
64+
{
65+
"id": "l_9",
66+
"content": "vpn.233updateMessage.bullet9"
67+
},
68+
{
69+
"id": "l_10",
70+
"content": "vpn.233updateMessage.bullet10"
71+
},
72+
{
73+
"id": "l_11",
74+
"content": "vpn.233updateMessage.bullet11"
75+
}
76+
]
77+
},
78+
{
79+
"id": "c_3",
80+
"type": "text",
81+
"content": "vpn.commonStrings.whatsNewClosing"
82+
}
83+
]
84+
}
85+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(function(api) {
2+
api.addon.date = (api.settings.updateTime.getTime() / 1000);
3+
})

addons/strings.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,41 @@ commonStrings:
9292
value: An option, under “Preferences”, to enable support for RCS/MMS messaging, Apple features like CarPlay and AirDrop, as well as connections to local devices.
9393
comment: First bullet point with a specific update in 2.31 - shown only on iOS
9494

95+
233updateMessage:
96+
bullet1:
97+
value: "[all] Subscription management has fully transitioned to the Mozilla accounts website."
98+
comment: Bullet point with a specific update in 2.33. Should have tag that indicates it applies to all platforms.
99+
bullet2:
100+
value: "[all] Regular key rotation, improving security in the event of extreme, unexpected situations."
101+
comment: Bullet point with a specific update in 2.33. Should have tag that indicates it applies to all platforms.
102+
bullet3:
103+
value: "[iOS] If you are using that beautiful new iPhone Air, Mozilla VPN should now look even better on it."
104+
comment: Bullet point with a specific update in 2.33. Should have tag that indicates it applies to iOS platform.
105+
bullet4:
106+
value: "[iOS] Improvements on when notification permissions are requested when the app launches for the first time."
107+
comment: Bullet point with a specific update in 2.33. Should have tag that indicates it applies to iOS platform.
108+
bullet5:
109+
value: "[Windows, macOS, Linux] In a rare situation, the status icon wasn’t updating. We dug in deep, and it should again work for everyone."
110+
comment: Bullet point with a specific update in 2.33. Should have tag that indicates it applies to the 3 desktop platforms.
111+
bullet6:
112+
value: "[Linux] If your distro ships with that latest Qt 6.10, builds from scratch may have had issues. They no longer should."
113+
comment: Bullet point with a specific update in 2.33. Should have tag that indicates it applies to Linux platform.
114+
bullet7:
115+
value: "[iOS] Some exciting under-the-hood work to support a future feature."
116+
comment: Bullet point with a specific update in 2.33. Should have tag that indicates it applies to iOS platform.
117+
bullet8:
118+
value: "[Android] Invisible work that will allow the app to run smoother on the latest devices."
119+
comment: Bullet point with a specific update in 2.33. Should have tag that indicates it applies to Android platform.
120+
bullet9:
121+
value: "[macOS] Over the past few releases we’ve improved how the VPN operates under the hood. This release completes that work."
122+
comment: Bullet point with a specific update in 2.33. Should have tag that indicates it applies to macOS platform.
123+
bullet10:
124+
value: "[Linux] Some behind-the-scenes changes that help us get new versions out to you more easily."
125+
comment: Bullet point with a specific update in 2.33. Should have tag that indicates it applies to Linux platform.
126+
bullet11:
127+
value: "[all] You can use Mozilla VPN in dozens of languages, and we’ve included the latest translations in this release."
128+
comment: Bullet point with a specific update in 2.33. Should have tag that indicates it applies to all platforms.
129+
95130
tryFirefoxExtension:
96131
title:
97132
value: Try the Firefox extension

0 commit comments

Comments
 (0)