Commit 1495d0d
authored
fix: ui redesign bugs (#3507)
## 🎯 Goal
This PR restores a few message and audio UX behaviours that regressed
from develop. It brings thread-list draft previews back, moves message
timestamps into the footer next to status, stops audio from
auto-resuming after seek in both message attachments and composer
previews, and slightly tightens the voice recording autosend path.
Included changes:
- Restore thread draft previews in `ThreadListItem`
- Move `MessageTimestamp` out of `MessageStatus` and render it in
`MessageFooter`
- Stop autoplay after seeking in `AudioAttachment` and
`AudioRecordingPreview`
- Reduce voice-recording autosend overhead in `useAudioRecorder`
- Add the thread-list draft preview theming/context support and update
the related thread snapshot/test coverage
## 🛠 Implementation details
<!-- Provide a description of the implementation -->
## 🎨 UI Changes
<!-- Add relevant screenshots -->
<details>
<summary>iOS</summary>
<table>
<thead>
<tr>
<td>Before</td>
<td>After</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<!--<img src="" /> -->
</td>
<td>
<!--<img src="" /> -->
</td>
</tr>
</tbody>
</table>
</details>
<details>
<summary>Android</summary>
<table>
<thead>
<tr>
<td>Before</td>
<td>After</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<!--<img src="" /> -->
</td>
<td>
<!--<img src="" /> -->
</td>
</tr>
</tbody>
</table>
</details>
## 🧪 Testing
<!-- Explain how this change can be tested (or why it can't be tested)
-->
## ☑️ Checklist
- [ ] I have signed the [Stream
CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform)
(required)
- [ ] PR targets the `develop` branch
- [ ] Documentation is updated
- [ ] New code is tested in main example apps, including all possible
scenarios
- [ ] SampleApp iOS and Android
- [ ] Expo iOS and Android1 parent 19dcc2f commit 1495d0d
File tree
10 files changed
+149
-70
lines changed- package/src
- components
- Attachment/Audio
- MessageInput
- components/AudioRecorder
- hooks
- Message/MessageItemView
- ThreadList
- Thread/__tests__/__snapshots__
- contexts
- themeContext/utils
- threadsContext
10 files changed
+149
-70
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
| |||
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
81 | 84 | | |
82 | | - | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| |||
201 | 205 | | |
202 | 206 | | |
203 | 207 | | |
| 208 | + | |
204 | 209 | | |
205 | 210 | | |
206 | 211 | | |
207 | 212 | | |
208 | 213 | | |
209 | 214 | | |
210 | 215 | | |
| 216 | + | |
211 | 217 | | |
212 | 218 | | |
213 | 219 | | |
| |||
Lines changed: 4 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 9 | | |
14 | 10 | | |
15 | 11 | | |
| |||
21 | 17 | | |
22 | 18 | | |
23 | 19 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 20 | + | |
29 | 21 | | |
30 | 22 | | |
31 | | - | |
| 23 | + | |
32 | 24 | | |
33 | 25 | | |
34 | 26 | | |
| |||
92 | 84 | | |
93 | 85 | | |
94 | 86 | | |
95 | | - | |
96 | 87 | | |
97 | 88 | | |
98 | 89 | | |
| |||
101 | 92 | | |
102 | 93 | | |
103 | 94 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 95 | + | |
| 96 | + | |
118 | 97 | | |
119 | 98 | | |
120 | 99 | | |
| |||
132 | 111 | | |
133 | 112 | | |
134 | 113 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | 114 | | |
146 | 115 | | |
147 | 116 | | |
| |||
155 | 124 | | |
156 | 125 | | |
157 | 126 | | |
158 | | - | |
159 | 127 | | |
160 | 128 | | |
161 | 129 | | |
| |||
167 | 135 | | |
168 | 136 | | |
169 | 137 | | |
170 | | - | |
171 | 138 | | |
172 | 139 | | |
173 | 140 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
| |||
Lines changed: 4 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | 15 | | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
22 | | - | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
| |||
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 43 | | |
54 | 44 | | |
55 | 45 | | |
| |||
113 | 103 | | |
114 | 104 | | |
115 | 105 | | |
116 | | - | |
117 | | - | |
| 106 | + | |
| 107 | + | |
118 | 108 | | |
119 | 109 | | |
120 | 110 | | |
121 | 111 | | |
122 | 112 | | |
123 | 113 | | |
124 | 114 | | |
125 | | - | |
| 115 | + | |
126 | 116 | | |
127 | 117 | | |
128 | 118 | | |
| |||
Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
| 623 | + | |
623 | 624 | | |
624 | 625 | | |
625 | 626 | | |
626 | 627 | | |
627 | 628 | | |
628 | 629 | | |
629 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
630 | 643 | | |
631 | 644 | | |
632 | 645 | | |
| |||
944 | 957 | | |
945 | 958 | | |
946 | 959 | | |
| 960 | + | |
947 | 961 | | |
948 | 962 | | |
949 | 963 | | |
950 | 964 | | |
951 | 965 | | |
952 | 966 | | |
953 | 967 | | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
954 | 980 | | |
955 | 981 | | |
956 | 982 | | |
| |||
1301 | 1327 | | |
1302 | 1328 | | |
1303 | 1329 | | |
| 1330 | + | |
1304 | 1331 | | |
1305 | 1332 | | |
1306 | 1333 | | |
1307 | 1334 | | |
1308 | 1335 | | |
1309 | 1336 | | |
1310 | 1337 | | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
1311 | 1350 | | |
1312 | 1351 | | |
1313 | 1352 | | |
| |||
1616 | 1655 | | |
1617 | 1656 | | |
1618 | 1657 | | |
| 1658 | + | |
1619 | 1659 | | |
1620 | 1660 | | |
1621 | 1661 | | |
1622 | 1662 | | |
1623 | 1663 | | |
1624 | 1664 | | |
1625 | 1665 | | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
1626 | 1678 | | |
1627 | 1679 | | |
1628 | 1680 | | |
| |||
0 commit comments