Issue/13326 fetch fix threats status#13798
Conversation
…eatsStatus result
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
You can test the changes on this Pull Request by downloading the APK here. |
…e/13326-handle-fetch-fix-threats-status-result
|
Thanks @ashiagr, the code looks great. One thing I'd personally consider is not showing the snackbar. It feels unnecessary, since we show the progress bar. One possible enhancement would be updating texts on the screen when the action is in progress. It feels a bit weird that we show "The scan found 1 potential threat ...." with a progress bar, wdyt? |
I'll add a label while threat is fixing and remove snackbar for fix started, complete. We'll still need snackbars for the failure states, right? |
Looking at this again, perhaps we could remove just the "We are hard at work ..." snackbar. Showing snackbars for complete and failed states feels ok. Or we can ask Chris what he thinks about it. Feel free to merge this PR and make changes in an upcoming PR. |
I'll address it in a separate PR. Need approval for merging this one. |
Parent #13326
This PR fetches fix threats status after fix threats action is started and handles result from
FetchFixThreatsStatusUseCase.Child PR for
FetchFixThreatsStatusUseCase: #13797Threat Fixing Flow
fix.threats.web.success.mov
fix.threats.mobile.success.mp4
To test
Prerequisite:
(Tests covered in
ScanViewModelTest)Notes:
pcdRpT-8X) displays an incremental progress bar, an indeterminate progress bar is shown as we do not get threat fixing progress updates from the API.Merge Instructions
PR submission checklist:
RELEASE-NOTES.txtif necessary.