From 35a54cdc021399137049f152e51becdd77c6a322 Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Tue, 12 Oct 2021 18:59:08 -0500 Subject: [PATCH] Introduce a new design for the left pane --- background.html | 29 +- images/icons/v2/warning-outline-24.svg | 1 + stylesheets/_conversation.scss | 6 - stylesheets/_global.scss | 4 + stylesheets/_index.scss | 46 +-- stylesheets/_modules.scss | 386 +++++++++--------- stylesheets/_variables.scss | 5 +- stylesheets/components/Inbox.scss | 8 + stylesheets/components/LeftPaneDialog.scss | 55 ++- .../SearchResultsLoadingFakeHeader.scss | 2 +- .../SearchResultsLoadingFakeRow.scss | 27 +- stylesheets/manifest.scss | 1 + test/index.html | 28 +- ts/components/Avatar.tsx | 1 + ts/components/ConversationList.stories.tsx | 5 + ts/components/ConversationList.tsx | 9 +- ts/components/DialogExpiredBuild.stories.tsx | 23 +- ts/components/DialogExpiredBuild.tsx | 23 +- ts/components/DialogNetworkStatus.stories.tsx | 79 +++- ts/components/DialogNetworkStatus.tsx | 5 + ts/components/DialogRelink.stories.tsx | 21 +- ts/components/DialogRelink.tsx | 4 + ts/components/DialogUpdate.stories.tsx | 90 +++- ts/components/DialogUpdate.tsx | 18 +- ts/components/Inbox.tsx | 2 +- ts/components/LeftPane.stories.tsx | 23 ++ ts/components/LeftPane.tsx | 142 ++++++- ts/components/LeftPaneDialog.tsx | 58 ++- ts/components/MainHeader.tsx | 8 + ts/components/Tooltip.tsx | 8 +- ts/components/_util.ts | 11 + .../conversation/Message.stories.tsx | 2 + ts/components/conversation/Message.tsx | 20 +- ts/components/conversation/MessageDetail.tsx | 2 + ts/components/conversation/Quote.stories.tsx | 2 + .../conversation/Timeline.stories.tsx | 4 + ts/components/conversation/Timeline.tsx | 77 +++- .../conversation/TimelineItem.stories.tsx | 2 + ts/components/conversation/TimelineItem.tsx | 5 +- ts/components/conversation/Timestamp.tsx | 7 +- .../BaseConversationListItem.tsx | 76 ++-- .../conversationList/ConversationListItem.tsx | 3 +- .../SearchResultsLoadingFakeRow.tsx | 5 +- ts/components/leftPane/LeftPaneHelper.tsx | 4 + .../leftPane/LeftPaneInboxHelper.tsx | 22 + .../leftPane/LeftPaneSearchHelper.tsx | 2 +- ts/state/ducks/items.ts | 11 + ts/state/selectors/items.ts | 11 + ts/state/selectors/search.ts | 5 + ts/state/smart/ExpiredBuildDialog.tsx | 8 +- ts/state/smart/LeftPane.tsx | 39 +- ts/state/smart/NetworkStatus.tsx | 8 +- ts/state/smart/RelinkDialog.tsx | 8 +- ts/state/smart/Timeline.tsx | 4 + ts/state/smart/UpdateDialog.tsx | 8 +- .../helpers/FakeLeftPaneContainer.tsx | 29 ++ ts/test-both/state/selectors/items_test.ts | 27 ++ ts/test-both/state/selectors/search_test.ts | 22 + .../leftPane/LeftPaneInboxHelper_test.tsx | 128 ++++-- ts/types/Storage.d.ts | 1 + ts/types/StorageUIKeys.ts | 1 + ts/util/lint/exceptions.json | 38 +- ts/views/inbox_view.ts | 72 ++-- 63 files changed, 1205 insertions(+), 576 deletions(-) create mode 100644 images/icons/v2/warning-outline-24.svg create mode 100644 stylesheets/components/Inbox.scss create mode 100644 ts/test-both/helpers/FakeLeftPaneContainer.tsx diff --git a/background.html b/background.html index dec14ed2b..4a6316484 100644 --- a/background.html +++ b/background.html @@ -60,26 +60,19 @@