Commit 7b13497
authored
CMM-885 support HE attachments (#22323)
* 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
* String fix
* CMM-885 support HE attachments i2 (#22333)
* Showing attachments previews
* Typo
* 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 mistake1 parent 7f795cb commit 7b13497
File tree
17 files changed
+1430
-258
lines changed- WordPress/src
- main
- java/org/wordpress/android
- support/he
- model
- repository
- ui
- util
- ui/reader
- res/values
- test/java/org/wordpress/android/support/he
- repository
- ui
17 files changed
+1430
-258
lines changedLines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
Lines changed: 32 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
204 | 206 | | |
205 | | - | |
| 207 | + | |
| 208 | + | |
206 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
207 | 226 | | |
Lines changed: 200 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 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 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 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 | + | |
0 commit comments