Commit 59a2664
authored
Message Composer structural redesign (#6088)
* Support content alignment of Paparazzi snapshots
* Change MessageInput to render the trailing content which contain the composer send action
* Support composer floating style
* Fix margins of ScrollToBottomButton
* Fix docs
* Renamed the `integrations` parameter in `MessageComposer` to `leadingContent` and remove the commands button from the default leading content.
* Move `MessageComposer`'s default composables to the `internal` package.
This change makes the following composables `internal`:
- `DefaultMessageComposerHeaderContent`
- `DefaultMessageComposerFooterInThreadMode`
- `DefaultMessageComposerLeadingContent`
- `DefaultComposerLabel`
- `DefaultMessageComposerInput`
- `DefaultMessageComposerInputTrailingContent`
- `AttachmentsButton`
- `CommandsButton`
- `SendButton`
* Update composer input max lines
* Initial update of message composer actions
* Update composer send and mic icons
* Update DefaultMessageComposerInputTrailingContent content logic
* Decouple MessageInput from InputField
* - Update message input padding/margins
- Introduce shadow in the message input on floating style mode on
* Add composer with attachment previews
* Update layout of composer message input
* Update add icon
* Support canceling link previews
* Fix detekt
* Fixes after merging from base branch
* Support canceling link previews
* Fix e2e tests
* Fix message input animation
* Update ScrollToBottomButton UI
* Use StreamTokens
* Fix detekt
* Fix colors
* Update screenshot golden files
* Fix scroll to bottom button paddings
* coderabbit review
* Fix snapshots
* apiDump
* code review
* Bump androidxUiAutomator from 2.4.0-alpha01 to 2.4.0-alpha05
* update snapshots
* Fix e2e tests
* Refactor message list page objects to use getters, to avoid getting stale reference errors
* - Fix flaky quoted reply test. The `deleteMessage` test action was not reliable as it sometimes targeted the quoted message.
- assert message with a text selector to prevent flakiness
* merge from base branch1 parent 0022337 commit 59a2664
File tree
76 files changed
+1634
-863
lines changed- gradle
- stream-chat-android-compose-sample/src
- androidTestE2eDebug/kotlin/io/getstream/chat/android/compose
- pages
- robots
- tests
- main/java/io/getstream/chat/android/compose/sample
- feature/channel/add
- ui
- stream-chat-android-compose
- api
- src
- main
- java/io/getstream/chat/android/compose
- ui
- attachments/content
- components
- avatar
- composer
- messages
- messages
- composer
- internal
- list
- theme
- messages/composer
- viewmodel/messages
- res
- drawable
- values
- test
- kotlin/io/getstream/chat/android/compose/ui
- messages
- snapshots/images
- stream-chat-android-docs/src/main/kotlin/io/getstream/chat/docs/kotlin
- compose
- guides
- messages
- cookbook/ui
- stream-chat-android-e2e-test/src/main/kotlin/io/getstream/chat/android/e2e/test/uiautomator
- stream-chat-android-previewdata/src/main/kotlin/io/getstream/chat/android/previewdata
- stream-chat-android-ui-common/src/main/kotlin/io/getstream/chat/android/ui/common/feature/messages/composer
- stream-chat-android-ui-guides/src/main/java/io/getstream/chat/android/guides/catalog/compose/customattachments
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
76 files changed
+1634
-863
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
Lines changed: 92 additions & 93 deletions
Large diffs are not rendered by default.
Lines changed: 27 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
86 | 103 | | |
87 | 104 | | |
88 | 105 | | |
| |||
99 | 116 | | |
100 | 117 | | |
101 | 118 | | |
102 | | - | |
| 119 | + | |
103 | 120 | | |
104 | 121 | | |
105 | 122 | | |
106 | | - | |
107 | | - | |
| 123 | + | |
| 124 | + | |
108 | 125 | | |
109 | 126 | | |
110 | 127 | | |
| |||
121 | 138 | | |
122 | 139 | | |
123 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
124 | 148 | | |
125 | 149 | | |
126 | 150 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
143 | 144 | | |
144 | | - | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
Lines changed: 9 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
| |||
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
68 | | - | |
| 66 | + | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
76 | | - | |
| 74 | + | |
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
| |||
103 | 101 | | |
104 | 102 | | |
105 | 103 | | |
106 | | - | |
107 | 104 | | |
108 | 105 | | |
109 | 106 | | |
| |||
113 | 110 | | |
114 | 111 | | |
115 | 112 | | |
116 | | - | |
| 113 | + | |
117 | 114 | | |
118 | 115 | | |
119 | 116 | | |
120 | 117 | | |
121 | 118 | | |
122 | 119 | | |
123 | 120 | | |
124 | | - | |
| 121 | + | |
125 | 122 | | |
126 | 123 | | |
127 | 124 | | |
| |||
151 | 148 | | |
152 | 149 | | |
153 | 150 | | |
154 | | - | |
155 | 151 | | |
156 | 152 | | |
157 | 153 | | |
| |||
161 | 157 | | |
162 | 158 | | |
163 | 159 | | |
164 | | - | |
| 160 | + | |
165 | 161 | | |
166 | 162 | | |
167 | 163 | | |
168 | 164 | | |
169 | 165 | | |
170 | 166 | | |
171 | 167 | | |
172 | | - | |
| 168 | + | |
173 | 169 | | |
174 | 170 | | |
175 | 171 | | |
| |||
183 | 179 | | |
184 | 180 | | |
185 | 181 | | |
186 | | - | |
| 182 | + | |
187 | 183 | | |
188 | 184 | | |
189 | 185 | | |
| |||
199 | 195 | | |
200 | 196 | | |
201 | 197 | | |
202 | | - | |
| 198 | + | |
203 | 199 | | |
204 | 200 | | |
205 | 201 | | |
| |||
215 | 211 | | |
216 | 212 | | |
217 | 213 | | |
218 | | - | |
| 214 | + | |
219 | 215 | | |
220 | 216 | | |
221 | 217 | | |
| |||
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
277 | 281 | | |
278 | 282 | | |
279 | 283 | | |
280 | 284 | | |
281 | 285 | | |
282 | 286 | | |
283 | | - | |
| 287 | + | |
284 | 288 | | |
285 | 289 | | |
286 | 290 | | |
| |||
647 | 651 | | |
648 | 652 | | |
649 | 653 | | |
650 | | - | |
| 654 | + | |
651 | 655 | | |
652 | 656 | | |
653 | 657 | | |
| |||
670 | 674 | | |
671 | 675 | | |
672 | 676 | | |
673 | | - | |
| 677 | + | |
674 | 678 | | |
675 | 679 | | |
676 | 680 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments