From 4701aeb79eb919e069e6b1e679882ceaebd19071 Mon Sep 17 00:00:00 2001 From: Josh Perez <60019601+josh-signal@users.noreply.github.com> Date: Thu, 2 Dec 2021 11:51:04 -0500 Subject: [PATCH] Release notes for v5.26 --- _locales/en/messages.json | 8 ++++++++ ts/components/WhatsNewModal.stories.tsx | 22 ++++++++++++++++++++++ ts/components/WhatsNewModal.tsx | 6 +++--- 3 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 ts/components/WhatsNewModal.stories.tsx diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 0a9cc428e5..dce783906f 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -6673,5 +6673,13 @@ "WhatsNew__bugfixes": { "message": "This version contains a number of small tweaks and bug fixes to keep Signal running smoothly.", "description": "Release notes for releases that only include bug fixes" + }, + "WhatsNew__v5.26--1": { + "message": "Tired: Sending plain un-edited images on Signal. Wired: Adding cat stickers, neon text, and drawing happy trees on your images before sending them on Signal.", + "description": "Release notes for v5.26" + }, + "WhatsNew__v5.26--2": { + "message": "Ever feel like you need more pixels on the right pane in your life? Are you a fan of avatars, but only avatars and nothing else? Do you have a \"Save the screen real estate\" bumper sticker on your car? If you answered yes or no to any of those questions, then this update has got some collapsible left pane for you.", + "description": "Release notes for v5.26" } } diff --git a/ts/components/WhatsNewModal.stories.tsx b/ts/components/WhatsNewModal.stories.tsx new file mode 100644 index 0000000000..77d2cc53d7 --- /dev/null +++ b/ts/components/WhatsNewModal.stories.tsx @@ -0,0 +1,22 @@ +// Copyright 2021 Signal Messenger, LLC +// SPDX-License-Identifier: AGPL-3.0-only + +import React from 'react'; +import { storiesOf } from '@storybook/react'; +import { action } from '@storybook/addon-actions'; + +import type { PropsType } from './WhatsNewModal'; +import { WhatsNewModal } from './WhatsNewModal'; +import enMessages from '../../_locales/en/messages.json'; +import { setupI18n } from '../util/setupI18n'; + +const i18n = setupI18n('en', enMessages); + +const story = storiesOf('Components/WhatsNewModal', module); + +const getDefaultProps = (): PropsType => ({ + hideWhatsNewModal: action('hideWhatsNewModal'), + i18n, +}); + +story.add('Modal', () => ); diff --git a/ts/components/WhatsNewModal.tsx b/ts/components/WhatsNewModal.tsx index 383f96d113..c35fa2b82e 100644 --- a/ts/components/WhatsNewModal.tsx +++ b/ts/components/WhatsNewModal.tsx @@ -28,9 +28,9 @@ const renderText: RenderTextCallbackType = ({ key, text }) => ( const releaseNotes: ReleaseNotesType = { date: new Date(window.getBuildCreation?.() || Date.now()), - version: window.getVersion(), - features: [1].map(n => ({ - key: `WhatsNew__v5.25--${n}`, + version: window.getVersion?.(), + features: [1, 2].map(n => ({ + key: `WhatsNew__v5.26--${n}`, components: undefined, })), };