Skip to content

Commit

Permalink
Update release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebuilds-signal authored and Jamie Kyle committed Dec 14, 2023
1 parent ff0de5e commit 2db6b74
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 26 deletions.
24 changes: 12 additions & 12 deletions _locales/en/messages.json
Expand Up @@ -7019,22 +7019,22 @@
"messageformat": "Small tweaks, bug fixes, and performance enhancements. Thanks for using Signal!",
"description": "Release notes for releases that only include bug fixes"
},
"icu:WhatsNew__v6.39--0": {
"messageformat": "Now you can change your selected language in Signal without changing your system settings (Signal Settings > Appearance > Language)."
},
"icu:WhatsNew__v6.39--1": {
"messageformat": "We fixed a brief delay that sometimes occurred while joining a call lobby on macOS devices, which should get rid of at least one excuse for being a half-second late to the meeting."
},
"icu:WhatsNew__v6.41--0": {
"messageformat": "We fixed the transition animation for video tiles when someone joins or leaves a group call. When you see a friend's face slide into view, that's a social movement."
},
"icu:WhatsNew__v6.41--1": {
"messageformat": "Now you can click on a profile photo or group avatar in the chat header to quickly access chat settings or view any unseen stories from that chat. Thanks, {linkToGithub}!"
},
"icu:WhatsNew__v6.42--0": {
"messageformat": "We fixed a bug that displayed quoted replies to videos as though they were quoted replies to photos, even though every video is really just a sequence of photos if you think about it."
},
"icu:WhatsNew__v6.42--1": {
"messageformat": "Thanks to {linkToGithub1} and {linkToGithub2} for their help with this release."
},
"icu:WhatsNew__v6.43--0": {
"messageformat": "Turn a missed call into something that won't be missed. Now you can right-click on any call event and delete it from a chat."
},
"icu:WhatsNew__v6.43--1": {
"messageformat": "The default font for Persian has been updated to Vazirmatn to improve readability when that language is selected (Signal Settings > Appearance > Language). Thanks, {linkToGithub1}!"
},
"icu:WhatsNew__v6.43--2": {
"messageformat": "The playback speed indicators in voice messages have a slightly new look. X marks the spot. Thanks, {linkToGithub1}!"
},
"icu:WhatsNew__v6.43--3": {
"messageformat": "We would also like to thank {linkToGithub1}, {linkToGithub2}, and {linkToGithub3} for their contributions to this release."
}
}
63 changes: 49 additions & 14 deletions ts/components/WhatsNewModal.tsx
@@ -1,7 +1,7 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only

import type { ReactChild } from 'react';
import type { ReactNode } from 'react';
import React from 'react';
import moment from 'moment';

Expand All @@ -20,34 +20,69 @@ type ReleaseNotesType = {
features: Array<JSX.Element>;
};

// Exported so it doesn't get marked unused
export function ExternalLink(props: {
href: string;
children: ReactNode;
}): JSX.Element {
return (
<a href={props.href} target="_blank" rel="noreferrer">
{props.children}
</a>
);
}

export function WhatsNewModal({
i18n,
hideWhatsNewModal,
}: PropsType): JSX.Element {
let contentNode: ReactChild;
let contentNode: ReactNode;

const releaseNotes: ReleaseNotesType = {
date: new Date(window.getBuildCreation?.() || Date.now()),
version: window.getVersion?.(),
features: [
<Intl i18n={i18n} id="icu:WhatsNew__v6.42--0" />,
<Intl i18n={i18n} id="icu:WhatsNew__v6.43--0" />,
<Intl
i18n={i18n}
id="icu:WhatsNew__v6.42--1"
id="icu:WhatsNew__v6.43--1"
components={{
linkToGithub1: (
<a href="https://github.com/qauff" target="_blank" rel="noreferrer">
@qauff
</a>
<ExternalLink href="https://github.com/MahdiNazemi">
@MahdiNazemi
</ExternalLink>
),
}}
/>,
<Intl
i18n={i18n}
id="icu:WhatsNew__v6.43--2"
components={{
linkToGithub1: (
<ExternalLink href="https://github.com/Shrinks99">
@Shrinks99
</ExternalLink>
),
}}
/>,
<Intl
i18n={i18n}
id="icu:WhatsNew__v6.43--3"
components={{
linkToGithub1: (
<ExternalLink href="https://github.com/NetSysFire">
@NetSysFire
</ExternalLink>
),
linkToGithub2: (
<a
href="https://github.com/wyvurn-h4x3r"
target="_blank"
rel="noreferrer"
>
@wyvurn-h4x3r
</a>
<ExternalLink href="https://github.com/timjamello">
@timjamello
</ExternalLink>
),
linkToGithub3: (
<ExternalLink href="https://github.com/u32i64">
@u32i64
</ExternalLink>
),
}}
/>,
Expand Down

0 comments on commit 2db6b74

Please sign in to comment.