Commit 9f23ed4
CMM-872 support he conversations and tickets logic (#22309)
* Adding basic UI
* Renaming
* Some styling
* Renaming and dummy data
* Using proper "new conversation icon"
* Conversation details screen
* Creating the reply bottomsheet
* Linking to the support screen
* bottomsheet fix
* Mov navigation form activity to viewmodel
* Adding create ticket screen
* More screen adjustments
* Extracting common code
* Margin fix
* detekt
* Style
* New ticket check
* Creating tests
* Creating repository and load conversations function
* Adding createConversation function
* Creating loadConversation func
* Loading conversations form the viewmodel
* Adding loading spinner
* Pull to refresh
* Proper ionitialization
* Adding empty screen
* Handling send new conversation
* Show loading when sending
* New ticket creation fix
* Using snackbar for errors
* Error handling
* Answering conversation
* Adding some test to the repository
* More tests!
* Compile fixes
* Similarities improvements
* Using snackbar in bots activity
* Extracting EmptyConversationsView
* Renaming
* Extracting VM and UI common code
* Extracting navigation common code
* Renaming VMs for clarification
* More refactor
* Capitalise text fields
* Updating rs library
* Loading conversation UX
* Style fix
* Fixing scaffolds paddings
* userID fix
* Fixing the padding problem in bot chat when the keyboard is opened
* Apply padding to create ticket screen when the keyboard is opened
* Fixing scroll state in reply bottomsheet
* Adding tests for the new common viewmodel
* Fixing AIBotSupportViewModel tests
* detekt
* Improvements int he conversation interaction
* Adding tests for HE VM
* Saving draft state
* Properly navigating when a ticket is selected
* Error parsing improvement
* accessToken suggestion improvements
* General suggestions
* Send message error UX improvement
* Fixing tests
* Bots screen renaming
* Update WordPress/src/main/res/values/strings.xml
Co-authored-by: David Calhoun <github@davidcalhoun.me>
---------
Co-authored-by: David Calhoun <github@davidcalhoun.me>1 parent 2189e63 commit 9f23ed4
File tree
29 files changed
+2335
-786
lines changed- WordPress/src
- main
- java/org/wordpress/android/support
- aibot
- model
- repository
- ui
- common
- model
- ui
- he
- model
- repository
- ui
- main/ui
- model
- res/values
- test/java/org/wordpress/android/support
- aibot/ui
- common/ui
- he
- repository
- ui
- main/ui
- gradle
29 files changed
+2335
-786
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
| 441 | + | |
| 442 | + | |
442 | 443 | | |
443 | 444 | | |
444 | 445 | | |
| |||
450 | 451 | | |
451 | 452 | | |
452 | 453 | | |
453 | | - | |
| 454 | + | |
| 455 | + | |
454 | 456 | | |
455 | 457 | | |
456 | 458 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
28 | 40 | | |
29 | 41 | | |
30 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
| 48 | + | |
47 | 49 | | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
59 | | - | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| |||
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| 91 | + | |
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
| |||
118 | 124 | | |
119 | 125 | | |
120 | 126 | | |
121 | | - | |
122 | 127 | | |
123 | 128 | | |
124 | 129 | | |
| |||
208 | 213 | | |
209 | 214 | | |
210 | 215 | | |
| 216 | + | |
211 | 217 | | |
212 | 218 | | |
213 | 219 | | |
| |||
218 | 224 | | |
219 | 225 | | |
220 | 226 | | |
| 227 | + | |
221 | 228 | | |
222 | 229 | | |
223 | 230 | | |
| |||
352 | 359 | | |
353 | 360 | | |
354 | 361 | | |
| 362 | + | |
355 | 363 | | |
356 | 364 | | |
357 | | - | |
| 365 | + | |
| 366 | + | |
358 | 367 | | |
359 | 368 | | |
360 | 369 | | |
| |||
370 | 379 | | |
371 | 380 | | |
372 | 381 | | |
| 382 | + | |
373 | 383 | | |
374 | 384 | | |
375 | | - | |
| 385 | + | |
| 386 | + | |
376 | 387 | | |
377 | 388 | | |
378 | 389 | | |
| |||
388 | 399 | | |
389 | 400 | | |
390 | 401 | | |
| 402 | + | |
391 | 403 | | |
392 | 404 | | |
393 | | - | |
| 405 | + | |
| 406 | + | |
394 | 407 | | |
395 | 408 | | |
396 | 409 | | |
| |||
406 | 419 | | |
407 | 420 | | |
408 | 421 | | |
| 422 | + | |
409 | 423 | | |
410 | 424 | | |
411 | | - | |
| 425 | + | |
| 426 | + | |
412 | 427 | | |
413 | 428 | | |
414 | 429 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
24 | 22 | | |
25 | 23 | | |
26 | 24 | | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
| |||
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| 47 | + | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
| 52 | + | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| |||
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | 113 | | |
156 | 114 | | |
157 | 115 | | |
| |||
233 | 191 | | |
234 | 192 | | |
235 | 193 | | |
| 194 | + | |
236 | 195 | | |
237 | 196 | | |
238 | | - | |
| 197 | + | |
| 198 | + | |
239 | 199 | | |
240 | 200 | | |
241 | 201 | | |
| |||
250 | 210 | | |
251 | 211 | | |
252 | 212 | | |
| 213 | + | |
253 | 214 | | |
254 | 215 | | |
255 | | - | |
| 216 | + | |
| 217 | + | |
256 | 218 | | |
257 | 219 | | |
258 | 220 | | |
| |||
267 | 229 | | |
268 | 230 | | |
269 | 231 | | |
| 232 | + | |
270 | 233 | | |
271 | 234 | | |
272 | | - | |
| 235 | + | |
| 236 | + | |
273 | 237 | | |
274 | 238 | | |
275 | 239 | | |
| |||
284 | 248 | | |
285 | 249 | | |
286 | 250 | | |
| 251 | + | |
287 | 252 | | |
288 | 253 | | |
289 | | - | |
| 254 | + | |
| 255 | + | |
290 | 256 | | |
291 | 257 | | |
292 | 258 | | |
| |||
301 | 267 | | |
302 | 268 | | |
303 | 269 | | |
| 270 | + | |
304 | 271 | | |
305 | 272 | | |
306 | | - | |
| 273 | + | |
| 274 | + | |
307 | 275 | | |
308 | 276 | | |
309 | 277 | | |
| |||
318 | 286 | | |
319 | 287 | | |
320 | 288 | | |
| 289 | + | |
321 | 290 | | |
322 | 291 | | |
323 | | - | |
| 292 | + | |
| 293 | + | |
324 | 294 | | |
325 | 295 | | |
326 | 296 | | |
| |||
0 commit comments