From 364f00f37ac9e12ef18b8214dad74513db212d42 Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Thu, 16 Dec 2021 09:02:22 -0600 Subject: [PATCH] Redesign device link screens --- .storybook/preview-head.html | 1 + _locales/en/messages.json | 81 +++++- background.html | 99 ------- images/full-screen-flow/android.svg | 1 - images/full-screen-flow/apple.svg | 1 - preload.js | 1 - stylesheets/_global.scss | 58 ---- stylesheets/_mixins.scss | 73 +++++ stylesheets/components/GroupInput.scss | 42 +-- .../InstallScreenChoosingDeviceNameStep.scss | 22 ++ .../components/InstallScreenErrorStep.scss | 21 ++ .../InstallScreenLinkInProgressStep.scss | 26 ++ .../InstallScreenQrCodeNotScannedStep.scss | 136 +++++++++ .../components/InstallScreenSignalLogo.scss | 21 ++ stylesheets/manifest.scss | 5 + test/index.html | 96 ------- ts/components/App.tsx | 4 +- ts/components/Install.tsx | 14 - ts/components/InstallScreen.tsx | 64 +++++ ts/components/TitlebarDragArea.tsx | 9 + ...llScreenChoosingDeviceNameStep.stories.tsx | 36 +++ .../InstallScreenChoosingDeviceNameStep.tsx | 85 ++++++ .../InstallScreenErrorStep.stories.tsx | 51 ++++ .../installScreen/InstallScreenErrorStep.tsx | 77 +++++ .../InstallScreenLinkInProgress.stories.tsx | 20 ++ .../InstallScreenLinkInProgressStep.tsx | 25 ++ ...tallScreenQrCodeNotScannedStep.stories.tsx | 91 ++++++ .../InstallScreenQrCodeNotScannedStep.tsx | 152 ++++++++++ .../installScreen/InstallScreenSignalLogo.tsx | 10 + ts/state/smart/InstallScreen.tsx | 267 ++++++++++++++++++ ts/test-both/util/normalizeDeviceName_test.ts | 22 ++ ts/util/lint/exceptions.json | 262 ++--------------- ts/util/loadable.ts | 15 + ts/util/normalizeDeviceName.ts | 7 + ts/views/install_view.ts | 236 ---------------- ts/window.d.ts | 30 +- 36 files changed, 1358 insertions(+), 803 deletions(-) delete mode 100644 images/full-screen-flow/android.svg delete mode 100644 images/full-screen-flow/apple.svg create mode 100644 stylesheets/components/InstallScreenChoosingDeviceNameStep.scss create mode 100644 stylesheets/components/InstallScreenErrorStep.scss create mode 100644 stylesheets/components/InstallScreenLinkInProgressStep.scss create mode 100644 stylesheets/components/InstallScreenQrCodeNotScannedStep.scss create mode 100644 stylesheets/components/InstallScreenSignalLogo.scss delete mode 100644 ts/components/Install.tsx create mode 100644 ts/components/InstallScreen.tsx create mode 100644 ts/components/TitlebarDragArea.tsx create mode 100644 ts/components/installScreen/InstallScreenChoosingDeviceNameStep.stories.tsx create mode 100644 ts/components/installScreen/InstallScreenChoosingDeviceNameStep.tsx create mode 100644 ts/components/installScreen/InstallScreenErrorStep.stories.tsx create mode 100644 ts/components/installScreen/InstallScreenErrorStep.tsx create mode 100644 ts/components/installScreen/InstallScreenLinkInProgress.stories.tsx create mode 100644 ts/components/installScreen/InstallScreenLinkInProgressStep.tsx create mode 100644 ts/components/installScreen/InstallScreenQrCodeNotScannedStep.stories.tsx create mode 100644 ts/components/installScreen/InstallScreenQrCodeNotScannedStep.tsx create mode 100644 ts/components/installScreen/InstallScreenSignalLogo.tsx create mode 100644 ts/state/smart/InstallScreen.tsx create mode 100644 ts/test-both/util/normalizeDeviceName_test.ts create mode 100644 ts/util/loadable.ts create mode 100644 ts/util/normalizeDeviceName.ts delete mode 100644 ts/views/install_view.ts diff --git a/.storybook/preview-head.html b/.storybook/preview-head.html index cdc90bdde..7a79340e4 100644 --- a/.storybook/preview-head.html +++ b/.storybook/preview-head.html @@ -3,6 +3,7 @@ + - - - -