-
Notifications
You must be signed in to change notification settings - Fork 984
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
[#13517] UI Component - Message Input #13620
Conversation
Jenkins BuildsClick to see older builds (60)
|
8584306
to
ffc4798
Compare
6465278
to
c442cea
Compare
a377ad5
to
3197167
Compare
3197167
to
a0d3f0d
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.
Hi @flexsurfer, Great Work. PR looks good to me.
Leaving a few small questions and comments.
@@ -19,7 +20,12 @@ | |||
[quo.components.list.item :as list-item] | |||
[status-im.ui.screens.chat.photos :as photos] | |||
[reagent.core :as reagent] | |||
[clojure.string :as string])) | |||
[clojure.string :as string] | |||
[quo2.components.button :as quo2] |
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.
if we import another quo2
component then we have to use it as quo2.text
etc. So, should we use quo2.button
here, for naming consistency?
(defn show-send [{:keys [actions-ref send-ref sticker-ref]}] | ||
(quo.react/set-native-props actions-ref #js {:width 0 :left -88}) | ||
(quo.react/set-native-props send-ref #js {:width nil :right nil}) | ||
(quo.react/set-native-props sticker-ref #js {:width 0 :right -100})) | ||
;(quo.react/set-native-props actions-ref #js {:width 0 :left -88}) | ||
(quo.react/set-native-props send-ref #js {:width nil :right nil})) | ||
;(quo.react/set-native-props sticker-ref #js {:width 0 :right -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.
wouldn't these changes will affect old ui? or these are just temporary only for testing
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.
good catch, thanks
:state :min ;:min, :custom-chat-available, :custom-chat-unavailable, :max | ||
:clear false}) | ||
keyboard-was-shown (atom false)] | ||
(fn [] |
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.
redundant fn?
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.
hm good question, i would say no, but I'm not sure :)
(merge quo2.typography/font-regular | ||
quo2.typography/paragraph-1 | ||
{:flex 1 |
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.
should we use quo2.text
instead? It will create same results now, but quo2.text
will evolve to fix letter-spacing
and line-height
issue, which might not be covered by just using these params.
:chat.ui/clear-inputs | ||
(fn [] | ||
(reset! input-texts {}) | ||
(reset! mentions-enabled {}) | ||
(reset! chat-input-key 1))) |
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.
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.
wow, now as I approved the PR, it also giving me option to merge.
Maybe @jakubgs , can give it a look
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.
Good point. That's because we pipe output into tee
, but we don't use pipefail
option. I'll fix it tomorrow.
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.
There you go:
a0d3f0d
to
efc8548
Compare
100% of end-end tests have passed
Passed tests (87)Click to expandClass TestWalletManagementDeviceMerged:
Class TestPublicChatBrowserOneDeviceMerged:
Class TestPublicChatMultipleDeviceMerged:
Class TestContactBlockMigrateKeycardMultipleSharedDevices:
Class TestSendTxDeviceMerged:
Class TestOnboardingOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevices:
Class TestRestoreOneDeviceMerged:
Class TestCommandsMultipleDevicesMerged:
Class TestEnsStickersMultipleDevicesMerged:
Class TestGroupChatMultipleDeviceMerged:
Class TestKeycardTxOneDeviceMerged:
Class TestPairingSyncMultipleDevicesMerged:
|
@flexsurfer thanx for the PR. No regression found related to message input field. All e2e have passed. Ready for merge. |
efc8548
to
c7049dd
Compare
fixes #13517
QA: check if old message input works fine