From 79a861a8705c28ea6160e36bc298c84004c87a14 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Wed, 14 Nov 2018 11:10:32 -0800 Subject: [PATCH] Typing Indicators --- _locales/en/messages.json | 4 + background.html | 4 + js/background.js | 34 ++- js/models/conversations.js | 155 +++++++++++++ js/modules/signal.js | 4 + js/modules/web_api.js | 15 +- js/views/conversation_view.js | 71 +++++- js/views/message_list_view.js | 35 ++- libtextsecure/message_receiver.js | 39 ++++ libtextsecure/outgoing_message.js | 7 +- libtextsecure/sendmessage.js | 75 ++++++- protos/SignalService.proto | 13 ++ stylesheets/_conversation.scss | 16 +- stylesheets/_modules.scss | 98 ++++++++- stylesheets/_theme_dark.scss | 10 + ts/components/ConversationListItem.md | 34 +++ ts/components/ConversationListItem.tsx | 25 ++- ts/components/conversation/TypingAnimation.md | 22 ++ .../conversation/TypingAnimation.tsx | 43 ++++ ts/components/conversation/TypingBubble.md | 38 ++++ ts/components/conversation/TypingBubble.tsx | 71 ++++++ ts/styleguide/StyleGuideUtil.ts | 7 + ts/util/lint/exceptions.json | 207 +++++++++++------- 23 files changed, 906 insertions(+), 121 deletions(-) create mode 100644 ts/components/conversation/TypingAnimation.md create mode 100644 ts/components/conversation/TypingAnimation.tsx create mode 100644 ts/components/conversation/TypingBubble.md create mode 100644 ts/components/conversation/TypingBubble.tsx diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 8dc25e9ef..bbc988fc1 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -653,6 +653,10 @@ "selectAContact": { "message": "Select a contact or group to start chatting." }, + "typingAlt": { + "message": "Typing animation for this conversation", + "description": "Used as the 'title' attibute for the typing animation" + }, "contactAvatarAlt": { "message": "Avatar for contact $name$", "description": "Used in the alt tag for the image avatar of a contact", diff --git a/background.html b/background.html index 4df989a3d..dad6103eb 100644 --- a/background.html +++ b/background.html @@ -140,6 +140,10 @@ +