Commit 49b8a59
Patroller Tasks (feature branch) (#4124)
* Beginnings of Patroller task.
* Patroller Tasks: main "List of edits" screen (#4153)
* Initial commit
* Update viewModel and some preferences
* Add activity and waiting for the strings to be merged and updated
* Fix lint
* Update viewmodel with pagingsource
* Fix errors
* Set launchers
* Fix error
* Add suppress
* Add menu item clicks
* Add tags in list item
* Fix references
* Enchanced search functions
* Update filter group
* Fix error
* Add comment for filter implementation
* Use materialToolbar and use a proper icon
* Fix lint
* Replace the flag resource content
* Show user popup menu in the patroller tasks recent edits (#4160)
* Show user popup menu in the patroller tasks recent edits
* Set up dialog layout
* Set up dialog fragment and build viewModel for the dialog
* Add DateDiff function for the user information
* Update string format
* Update button visibility
* Update dialog wording and simplified the display
* Remove unused strings
* Update padding and text
* Patroller Tasks: Filters screen for List of Edits (#4176)
* Initial commit
* Update viewModel and some preferences
* Add activity and waiting for the strings to be merged and updated
* Fix lint
* Update viewmodel with pagingsource
* Fix errors
* Set launchers
* Fix error
* Add suppress
* Add menu item clicks
* Add tags in list item
* Fix references
* Enchanced search functions
* Update filter group
* Fix error
* Add comment for filter implementation
* Use materialToolbar and use a proper icon
* Fix lint
* Replace the flag resource content
* Initial commit
* Update item view and fix error
* Rename resource name
* Update filter layout
* Update filter type
* Adjust item layout padding and add checkbox logic back
* Update filter
* Update menu reset button visibility logic
* Update reset button code
* Add oresscore parameter to API call
* Fix lint
* Initial logic of filtering oresscores
* Fix launcher issue
* Fix lint
* Remove cache logic
* Filtering empty oresscore
* Initial spike of userinfo
* Add user experiences filter
* Update user information API
* Solified user experiences with user registration filter
* Remove comment
* Reduce redundant value
* Add cached logic for user info
* Simplified code
* Use updated method
* Fix lint
* Diff screen for Patroller Tasks. (#4209)
* Right.
Change-Id: I8577053379ec5844f179501ea85fd6b711315a95
* Update for current fragment structure.
Change-Id: Ia75b14b58123052cb6ac4bd101e887bca5ffdadf
* Update to latest state.
Change-Id: Idcea886de2bb869fe56916b521fbaf579ec2fe5f
* Switch to using plain recentedits API.
Change-Id: I41703258c375d1e48e2dd327f881cff5d24a7f2e
* Remove feature flag.
Change-Id: I3875a7f6f3352e20babd4abf57c9aa843d6f4bb6
* Finish proper merge.
Change-Id: I04e0d4bf7e50c2e16e91fb0911924da2ad3a623d
* Update.
Change-Id: I50c720d06fbff0196135e36e183d05d984980460
* Tighten up design.
Change-Id: I5461c0d55a307cffb39a7462d731e111dfed8e48
* Adapt to latest.
* Actually do it.
* Improve consistency of results.
* Reset cache if language has changed.
* Add service calls.
* Refactor with ViewModel.
* Refactor diff logic.
* Use refactored diff logic.
* Dial in a few more parameters.
* Add overflow options.
* Adapt.
* Adapt.
* Tweak.
* Use proper icons and text for suggested edits task.
* Begin adapting to current requirements.
* Introduce bottom bar.
* Transition undo button.
* Integrate ores scores from revisions.
* Begin re-molding the diff screen.
* Break out bespoke activity that holds a default diff fragment.
* Further adapt.
* Scroll correctly.
* Tweak.
* Fix diffs.
* Rearrange logic a bit.
* Tighten up.
* Init on resume.
* More in line with designs.
* Wire it up!
* Add reporting.
* Adapt.
* Correctly show user popup.
* Update style of Undo dialog.
* Fix qq error
* Design comments
* Use correct language code
* switch the thank visibility
---------
Co-authored-by: cooltey <[email protected]>
* Patroller tasks: build the screen for managing the warn templates (#4126)
* Adding required strings for the feature
* Add database and dao
* Add required stuffs, update db version and rename strings
* Fix lint
* Update AndroidManifest
* Fix error
* Add empty state illustration
* Add menu item
* Update item icon color
* Add new warn template xml and update resource name
* Rename ids
* Adding "add" activity for warn template
* Update resource and package names
* Remove license disclaimer
* Remove unused class
* Update TextInputDialog
* Complete add template logic
* Add request launcher to menu item
* Update list view of talk templates
* Update swappable class
* Update visibility settings
* Fix lint
* Update manifest, update db creation, and add temp access to templates
* Update illustration for empty state
* Update insert issue
* Complete drag behaviors
* Add an additional input field for editing template message
* Update edit dialog
* Update the update process
* Add a Input dialog for talk templates only
* Revert changes to basic text input dialog
* Rename function names
* Fix error
* Rename resource and add deletion process
* Update theme dialog button styles
* Tweaks to dialog text styles
* Update loading behavior to prevent reloading on device rotation
* Update list item
* A proper way of saving states of saving/deleting item
* Optimize views
* Add a new uistate for save and delete
* Update colors
* Design review update
* Fix lint
* Update with new wikitext keyboard
* Update dialog launcher
* Do not support wikitext keyboard in dialog
This reverts commit 1a8773d.
* Update invokeSource
* Update edittext string
* Update on correct position of list
* Add dismiss listener and add proper cancel action on AddTemplateActivity
* Update dialog text
* Add more logic of checking input field
* Fix lint
* Replace Quality with Damage and remove the inverted percentage (#4236)
* Create Onboarding for Patroller Tasks (#4208)
* Create Onboarding for Patroller Tasks
* Fix lint
* Fix issues and show the onboarding correctly
* Update preference and main screen tag
* Add sequential tooltips
* Add strings
* Add numbers for tooltips
* Add comment of possible issue
* Fix multiple tags issue
* Add data preference screen
* Add send data onboarding
* Fix lint
* Add feedback dialog layouts
* Add feedback dialog views
* Add comment for next step
* Quality to damage
* Update the timing of showing feedback form
* Add tooltips and feedback form
* Refine display logic
* Show feedback form after snackbar dismissed
* Set as non-cancelable
* Remove extra logic
* Update historyEntry constants
* Add Patroller Tasks related Rollback and Undo edit tags (#4242)
* Some code optimization
* Fix: empty message should only show if the filter count > 0 (#4244)
* Update snackbar messages and make the Undo button enabled by default (#4243)
* Patroller Tasks: update TalkReply activity to handle saved templates (#4239)
* Patroller Tasks: update TalkReply activity to handle saved templates
* Connect talk replay activity with diff screen
* Add checkbox and radio
* Add radio and checkbox logic
* Add percentage suffix for damage and intent
* Adding mutiple livedata
* Add the logic of handling template dialog
* Update message
* Update warn button listener
* Add spinner to reply interface
* Add onclick event
* integrate with dialog
* Solify logic of managing dialogs
* Remove comment
* Optimize stuff
* Update logic of managing template
* Remove testing button
* Minor design update
* Minor layout visibility update
* lint
* Make the dialog scrollable
* Replace radios to checkbox and optimze logic
* design comment
* Update input text error stauts
* Update the error text
* Patroller Tasks: show the bottom navigation bar after fully loaded
* Fix dialog checkbox end margin
* Fix: incorrect behavior after changing device orientation in Patrol edit (#4247)
* Fix: only inflate menu once in the ArticleeditDetailsFramgent
* Change .add to .replace to avoid adding multiple fragment
* Only commit fragment if there has no instance
* Adding Indonesian translations for Patroller tasks feature (#4250)
* Adding Indonesian translations for Patroller tasks feature
* Complete translations
---------
Co-authored-by: Sharvani Haran <[email protected]>
* Fix: Patroller Tasks user experience update (#4252)
* Fix: Patroller Tasks user experience update
* Wording
* Fix: Patroller Tasks input field error message (#4253)
* Fix: get correct feedback input source for Patroller Tasks (#4254)
* Data wiring: Patroller tasks (#4245)
* Data wiring: Patroller tasks
* Final wiring
* Fix: Multiple streams usage (#4248)
Co-authored-by: Sharvani Haran <[email protected]>
* More event updates
* Improvements to logging logic
* Simplify wikiId by using preferences
* Detect source for data events
* CR comments addressed
* Minor change
* Lint fix and minor update
* Minor change
* Swipe event added
---------
Co-authored-by: Sharvani Haran <[email protected]>
* Follow-up: Patroller Tasks data wiring (#4256)
* Data wiring for filter selection (#4255)
* Data wiring: Patroller tasks
* Final wiring
* Fix: Multiple streams usage (#4248)
Co-authored-by: Sharvani Haran <[email protected]>
* More event updates
* Improvements to logging logic
* Simplify wikiId by using preferences
* Detect source for data events
* CR comments addressed
* Minor change
* Lint fix and minor update
* Minor change
* Swipe event added
* Add data wiring to filter selection
* Minor change
---------
Co-authored-by: Sharvani Haran <[email protected]>
* Re-used some `in` translations (#4257)
Co-authored-by: Sharvani Haran <[email protected]>
* Minor code change
* Fix: set to default language code after updated in Patroller Tasks (#4258)
filter
---------
Co-authored-by: Cooltey Feng <[email protected]>
Co-authored-by: cooltey <[email protected]>
Co-authored-by: Sharvani Haran <[email protected]>
Co-authored-by: Sharvani Haran <[email protected]>1 parent 5b8d876 commit 49b8a59
File tree
103 files changed
+5559
-346
lines changed- app/src/main
- java/org/wikipedia
- analytics/eventplatform
- database
- dataclient
- mwapi
- descriptions
- diff
- feed/suggestededits
- history
- main
- onboarding
- settings
- suggestededits
- provider
- talk
- db
- template
- usercontrib
- util
- res
- drawable
- layout
- values-in
- values-qq
- values
- xml
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
103 files changed
+5559
-346
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
266 | 268 | | |
267 | 269 | | |
268 | 270 | | |
| |||
277 | 279 | | |
278 | 280 | | |
279 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
280 | 290 | | |
281 | 291 | | |
282 | 292 | | |
| |||
329 | 339 | | |
330 | 340 | | |
331 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
332 | 350 | | |
333 | 351 | | |
334 | 352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
Lines changed: 20 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 | + | |
Lines changed: 3 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 5 | + | |
18 | 6 | | |
19 | 7 | | |
20 | 8 | | |
| |||
47 | 35 | | |
48 | 36 | | |
49 | 37 | | |
| 38 | + | |
50 | 39 | | |
51 | | - | |
| 40 | + | |
52 | 41 | | |
53 | 42 | | |
54 | 43 | | |
| |||
Lines changed: 60 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| 69 | + | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
| |||
170 | 174 | | |
171 | 175 | | |
172 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
173 | 182 | | |
174 | 183 | | |
175 | 184 | | |
176 | | - | |
| 185 | + | |
177 | 186 | | |
178 | 187 | | |
179 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
| |||
506 | 508 | | |
507 | 509 | | |
508 | 510 | | |
509 | | - | |
| 511 | + | |
510 | 512 | | |
511 | 513 | | |
512 | 514 | | |
513 | 515 | | |
514 | 516 | | |
515 | 517 | | |
516 | 518 | | |
517 | | - | |
| 519 | + | |
518 | 520 | | |
519 | 521 | | |
520 | 522 | | |
521 | 523 | | |
522 | 524 | | |
523 | 525 | | |
524 | 526 | | |
525 | | - | |
| 527 | + | |
526 | 528 | | |
527 | 529 | | |
528 | 530 | | |
529 | 531 | | |
530 | 532 | | |
531 | 533 | | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
532 | 541 | | |
533 | 542 | | |
534 | 543 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
101 | 108 | | |
102 | 109 | | |
103 | 110 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
| 207 | + | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
| |||
231 | 234 | | |
232 | 235 | | |
233 | 236 | | |
| 237 | + | |
| 238 | + | |
234 | 239 | | |
235 | 240 | | |
236 | 241 | | |
| |||
0 commit comments