Release notes for 7.0

This commit is contained in:
Fedor Indutny 2024-02-20 09:18:38 -08:00 committed by Fedor Indutny
parent 93c019dc30
commit c4d16a950f
2 changed files with 26 additions and 14 deletions

View File

@ -7259,16 +7259,22 @@
"messageformat": "Small tweaks, bug fixes, and performance enhancements. Thanks for using Signal!", "messageformat": "Small tweaks, bug fixes, and performance enhancements. Thanks for using Signal!",
"description": "Release notes for releases that only include bug fixes" "description": "Release notes for releases that only include bug fixes"
}, },
"icu:WhatsNew__v6.47--0": {
"messageformat": "If you spend a lot of time trying to pick out the perfect emoji reaction for every situation, you'll be <emojify>🎉</emojify> to know that we fixed a bug with typing indicators that sometimes caused the emoji selection box to disappear while you were in the middle of pondering your choices."
},
"icu:WhatsNew__v6.47--1": {
"messageformat": "Signal will now match your selected title bar color on Microsoft Windows. When all of your windows in Windows look the same, that's a common theme."
},
"icu:WhatsNew__v6.48--0": { "icu:WhatsNew__v6.48--0": {
"messageformat": "Video and audio playback will now pause whenever the Signal window is closed and minimized in the system tray. If youre looking for silence, X marks the spot." "messageformat": "Video and audio playback will now pause whenever the Signal window is closed and minimized in the system tray. If youre looking for silence, X marks the spot."
}, },
"icu:WhatsNew__v6.48--1": { "icu:WhatsNew__v6.48--1": {
"messageformat": "By popular demand, emoticons like “:-)” now automatically become emoji like “<emojify>🙂</emojify>” — but if this makes you “:-(“ you can disable this feature in the “Chats” section of your Signal Desktop settings." "messageformat": "By popular demand, emoticons like “:-)” now automatically become emoji like “<emojify>🙂</emojify>” — but if this makes you “:-(“ you can disable this feature in the “Chats” section of your Signal Desktop settings."
},
"icu:WhatsNew__v7.0--header": {
"messageformat": "We're introducing new ways to keep your phone number private on Signal."
},
"icu:WhatsNew__v7.0--0": {
"messageformat": "Your phone number will no longer be visible to anyone on the latest version of Signal unless they have it saved in their phones contacts. You can change this in Settings."
},
"icu:WhatsNew__v7.0--1": {
"messageformat": "You can now set and share an optional username to let people chat with you without giving them your phone number."
},
"icu:WhatsNew__v7.0--2": {
"messageformat": "A new privacy setting lets you control who can find you by your phone number on Signal."
} }
} }

View File

@ -17,6 +17,7 @@ export type PropsType = {
type ReleaseNotesType = { type ReleaseNotesType = {
date: Date; date: Date;
version: string; version: string;
header?: JSX.Element;
features: Array<JSX.Element>; features: Array<JSX.Element>;
}; };
@ -41,21 +42,26 @@ export function WhatsNewModal({
const releaseNotes: ReleaseNotesType = { const releaseNotes: ReleaseNotesType = {
date: new Date(window.getBuildCreation?.() || Date.now()), date: new Date(window.getBuildCreation?.() || Date.now()),
version: window.getVersion?.(), version: window.getVersion?.(),
header: <Intl i18n={i18n} id="icu:WhatsNew__v7.0--header" />,
features: [ features: [
<Intl i18n={i18n} id="icu:WhatsNew__v6.48--0" />, <Intl i18n={i18n} id="icu:WhatsNew__v7.0--0" />,
<Intl i18n={i18n} id="icu:WhatsNew__v6.48--1" />, <Intl i18n={i18n} id="icu:WhatsNew__v7.0--1" />,
<Intl i18n={i18n} id="icu:WhatsNew__v7.0--2" />,
], ],
}; };
if (releaseNotes.features.length === 1) { if (releaseNotes.features.length === 1 && !releaseNotes.header) {
contentNode = <p>{releaseNotes.features[0]}</p>; contentNode = <p>{releaseNotes.features[0]}</p>;
} else { } else {
contentNode = ( contentNode = (
<ul> <>
{releaseNotes.features.map(element => { {releaseNotes.header ? <p>{releaseNotes.header}</p> : null}
return <li key={element.props.id}>{element}</li>; <ul>
})} {releaseNotes.features.map(element => {
</ul> return <li key={element.props.id}>{element}</li>;
})}
</ul>
</>
); );
} }