Commit e29bad7
authored
CMM-927 support attachments limit (#22338)
* 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
* Converting the UI to more AndroidMaterial style
* Bots screen renaming
* Bots screens renaming
* Make NewTicket screen more Android Material theme as well
* Adding preview for EmptyConversationsView
* Button fix
* detekt
* Ticket selection change
* Supporting markdown text
* detekt
* Improving MarkdownUtils
* Formatting text in the repository layer instead the ui
* Renaming
* Fixing tests
* Support pagination
* Triggering in the 4th element
* detekt
* TODO for debug purposes
* Claude PR suggestions
Mutex and constant
* Put ConversationListView in common between bots and HE
* Empty and error state
* Skip site capitalization
* Adding a11c labels
* Adding headings labels
* adding accessible labels to chat bubbles
* detekt
* Fixing tests
* PR suggestion about bot chat bubble
* Fixing tests
* Updating rust
* Adding attachments UI
* Parsing markdown more exhaustively
* New links support
* Detekt
* Supporting in conversation as well
* Keeping the screen when select images
* Add attachments to the message data class
* Showing attachments in the UI
* Downloading attachments
* detekt
* Support pagination
* Triggering in the 4th element
* detekt
* TODO for debug purposes
* Claude PR suggestions
Mutex and constant
* Detekt
* Removing testing code
* Updating RS library version
* Opening images in fullscreen
* Improving full screen image UX
* Improving semantics
* Extracting strings
* Using rs PR fix
* Showing attachment preview
* Clearing attachments on new ticket screen close
* Removing selected images limit
* Unifying attachments handling inside the VM
* Using a launcher instead of startActivityForResult
* Remove unused parameter
* Handling temp files inside the VM
* Removing files
* detekt
* Throwing copy file error
* Extracting some individual composables from HEConversation screen file
* Reducing arguments
* Catch file creation error
* Using proper file extension
* General improvements
* Update RS version and some fixes
* Extracting temp attachment utils
* Adding new tests
* Some refactoring
* Removing attachments preview to open a dedicated PR
* Useless changes
* Useless changes
* Minor refactor
* Showing attachments previews
* Typo
* String fix
* Fixing pan issue
* Passing attachments directly instead of searching for then when tapped for full screen
* Compile fix
* Fixing the send state message
* Checking network availability
* Saving message state when error
* Tests
* Reverting non-related commits done by mistake
* Checking attachments size
* Showing skipped files more intuitively
* Detekt
* Fixing and adding tests
* detekt
* PR suggestions
* Fixing the incongruence between tests and rejection reason priority
* Some refactor
* Using a progressbar and retry adding skipped files
* Fixing tests1 parent e95f1e1 commit e29bad7
File tree
10 files changed
+606
-50
lines changed- WordPress/src
- main
- java/org/wordpress/android/support/he
- model
- ui
- res/values
- test/java/org/wordpress/android/support/he/ui
10 files changed
+606
-50
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | | - | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
84 | | - | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
181 | | - | |
| 183 | + | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
| |||
211 | 213 | | |
212 | 214 | | |
213 | 215 | | |
214 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
215 | 223 | | |
216 | 224 | | |
217 | 225 | | |
| |||
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | | - | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
50 | 73 | | |
51 | 74 | | |
52 | 75 | | |
| |||
107 | 130 | | |
108 | 131 | | |
109 | 132 | | |
110 | | - | |
| 133 | + | |
111 | 134 | | |
112 | 135 | | |
113 | 136 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
78 | | - | |
| 78 | + | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
200 | | - | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
Lines changed: 106 additions & 15 deletions
| 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 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
69 | | - | |
| 72 | + | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
| |||
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
82 | | - | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
129 | | - | |
| 132 | + | |
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
| |||
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
140 | | - | |
| 143 | + | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
| |||
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
173 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
174 | 238 | | |
175 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
176 | 261 | | |
177 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
178 | 269 | | |
179 | 270 | | |
180 | 271 | | |
181 | | - | |
| 272 | + | |
182 | 273 | | |
183 | 274 | | |
184 | 275 | | |
| |||
0 commit comments