From 76a7f2ec2785eb68c08bae03ce8a4aa671b77f4b Mon Sep 17 00:00:00 2001 From: TJ Durnford Date: Wed, 18 Dec 2019 10:29:01 -0800 Subject: [PATCH] fix: Updated release version on about page (#1788) * Added COMPOSER_VERSION to env variables * Updated SDK_PACKAGE_VERSION * Updated about page styles --- Composer/packages/client/config/env.js | 3 ++- Composer/packages/client/src/pages/about/index.tsx | 6 +++--- Composer/packages/client/src/pages/about/styles.js | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Composer/packages/client/config/env.js b/Composer/packages/client/config/env.js index 6b8a48c3ad..e2a23fd6c5 100644 --- a/Composer/packages/client/config/env.js +++ b/Composer/packages/client/config/env.js @@ -89,7 +89,8 @@ function getClientEnvironment(publicUrl) { GIT_SHA: getGitSha() .toString() .replace('\n', ''), - SDK_PACKAGE_VERSON: '4.6.0-preview2', // TODO: change this when Composer supports custom schema/custom runtime + SDK_PACKAGE_VERSION: '4.7.0-preview-191208-1', // TODO: change this when Composer supports custom schema/custom runtime + COMPOSER_VERSION: 'Preview 2.0', } ); // Stringify all values so we can feed into Webpack DefinePlugin diff --git a/Composer/packages/client/src/pages/about/index.tsx b/Composer/packages/client/src/pages/about/index.tsx index be5a9be001..9904cd8b05 100644 --- a/Composer/packages/client/src/pages/about/index.tsx +++ b/Composer/packages/client/src/pages/about/index.tsx @@ -16,7 +16,7 @@ export const About: React.FC = () => {
{formatMessage(`About`)}
-
{formatMessage(`Release: Preview 1.0`)}
+
{formatMessage(`Release: `) + (process.env.COMPOSER_VERSION || 'Unknown')}

{formatMessage(`Bot Framework Composer is an integrated development environment (IDE) for building @@ -54,12 +54,12 @@ export const About: React.FC = () => {

{formatMessage(`SDK runtime packages`)}
- {process.env.SDK_PACKAGE_VERSON || 'Unknown'} + {process.env.SDK_PACKAGE_VERSION || 'Unknown'}
diff --git a/Composer/packages/client/src/pages/about/styles.js b/Composer/packages/client/src/pages/about/styles.js index 64ebcfdcd2..48880fd5e5 100644 --- a/Composer/packages/client/src/pages/about/styles.js +++ b/Composer/packages/client/src/pages/about/styles.js @@ -55,7 +55,7 @@ export const smallText = css` export const DiagnosticsInfoText = css` display: flex; justify-content: space-between; - width: 460px; + width: 550px; font-size: 24px; `;