-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#3014]: Updated chat input #3259
Conversation
4aaf9fa
to
c22b80e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
Please make sure the new colors
ns is used and
no unused require
s are defined.
(ns status-im.chat.styles.input.parameter-box | ||
(:require [status-im.ui.components.styles :as common])) | ||
|
||
(def color-root-border "#e8ebec") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you define this in colors
ns?
(def color-root-border "#e8ebec") | ||
|
||
(def root | ||
{:background-color common/color-white |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the new colors
ns.
@@ -1,7 +1,7 @@ | |||
(ns status-im.chat.styles.input.result-box | |||
(:require [status-im.ui.components.styles :as common])) | |||
|
|||
(def color-root-border "rgba(192, 198, 202, 0.5)") | |||
(def color-root-border "#e8ebec") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the new colors ns.
@@ -0,0 +1,17 @@ | |||
(ns status-im.chat.styles.input.send-button) | |||
|
|||
(def color-send "#4360df") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the new colors ns.
(def color-item-title-text "rgb(147, 155, 161)") | ||
(def color-item-suggestion-name "rgb(98, 143, 227)") | ||
(def color-item-border "#e8eaeb") | ||
(def color-root-border "#e8ebec") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the new colors ns.
[status-im.ui.components.react :as react] | ||
[status-im.ui.components.icons.vector-icons :as vi] | ||
[status-im.utils.utils :as utils] | ||
[taoensso.timbre :as log])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log
not used? Maybe cleanup those requires.
(re-frame/dispatch [:send-seq-argument])) | ||
(utils/set-timeout | ||
(fn [] (re-frame/dispatch [:chat-input-focus :seq-input-ref])) | ||
100)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment detailing the need for timeout?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. It was here before, and I haven't touched it. Simply moved from status-im.chat.views.input.input
ns to a new one.
@jeluard done |
@alwx Thanks! For colors we know favor color name (and comment usage). Goal is to make sure we don't have too many similar colors duplicated. Could you check with design team those colors are supposed to be different from existing grays? (already 4 or 5) |
@@ -0,0 +1,3 @@ | |||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"> | |||
<path fill="#6E777E" fill-rule="nonzero" d="M7 5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7zm0-2h10a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V7a4 4 0 0 1 4-4zm6.618 5H14a.618.618 0 0 1 .553.894l-3.277 6.553a1 1 0 0 1-.894.553H10a.618.618 0 0 1-.553-.894l3.277-6.553A1 1 0 0 1 13.618 8z"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to clean fill, to do not confuse, because this value not used
@@ -0,0 +1,3 @@ | |||
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22"> | |||
<path fill="#FFF" fill-rule="evenodd" d="M11.882 8.686l2.047 2.057a.87.87 0 1 0 1.227-1.233l-3.53-3.547a.865.865 0 0 0-.537-.251.866.866 0 0 0-.718.251L6.841 9.51a.88.88 0 0 0 0 1.234.864.864 0 0 0 1.228-.001l2.049-2.059v6.732a.88.88 0 0 0 .882.878c.49 0 .882-.393.882-.878v-6.73z"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to clean fill, to do not confuse, because this value not used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not true. seems like the opposite thing is true — color property for svgs doesn't work
src/status_im/translations/af.cljs
Outdated
@@ -215,7 +215,6 @@ | |||
|
|||
:sharing-share "Deel..." | |||
:type-a-message "Tik ‘n boodskap..." | |||
:type-a-command "Begin ‘n opdrag tik..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we decided and agreed to do not delete translations,
4cd3f7f
to
6177009
Compare
on PR build 24: Issue 1: No contacts are shown in suggestions for send/request in Group chat. Both iOS and Android
Issue 2 (Android only) |
c2895d8
to
a3c1265
Compare
@annadanchenko can be re-tested again |
Issues 1-2 are fixed. Issue 3: tap on Return key on device keyboard when password is entered in Console shows error. Expected: value is sent to Console (same as if tap on "send" button in the input field". Note: this is the only place where Enter behaves like this, in other places it should add new line in the input field
Issue 4: Second "/send" command is shown in commands list if chat contains 1 or more Request messages sent to this contact. Expected: Only one /send command is shown in the suggestions list
|
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
d65de13
to
2aa6c19
Compare
This PR includes several amazing changes:
react-native-emoji-picker
;This is how it looks:
![2018-02-13 18 56 12](https://user-images.githubusercontent.com/911127/36165749-db899524-10f0-11e8-93fe-c2c0ac88b226.gif)