Jetpack Mobile: Scan UiStates part(ii)#13605
Merged
Conversation
…nd introduce scan styles
… if threats available
Generated by 🚫 dangerJS |
|
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. |
This was referenced Dec 15, 2020
Closed
…scan-ui-states-partii # Conflicts: # WordPress/src/main/java/org/wordpress/android/ui/jetpack/scan/ScanFragment.kt # WordPress/src/main/java/org/wordpress/android/ui/jetpack/scan/adapters/ScanAdapter.kt # WordPress/src/main/java/org/wordpress/android/ui/jetpack/scan/adapters/viewholders/ScanStateViewHolder.kt # WordPress/src/test/java/org/wordpress/android/ui/jetpack/scan/ScanStatusServiceTest.kt # libs/utils/WordPressUtils/src/main/java/org/wordpress/android/util/AppLog.java
malinajirka
approved these changes
Dec 16, 2020
Contributor
malinajirka
left a comment
There was a problem hiding this comment.
Thanks @ashiagr! Really great job :). I left to very nitpicky comments, the code looks great. Feel free to merge this PR.
WordPress/src/main/java/org/wordpress/android/ui/jetpack/scan/ScanStateListItemBuilder.kt
Outdated
Show resolved
Hide resolved
.../main/java/org/wordpress/android/ui/jetpack/scan/adapters/viewholders/ScanStateViewHolder.kt
Outdated
Show resolved
Hide resolved
Reverted last one due to latest WPAndroidUtils merge conflict
Contributor
Author
|
Thanks for the review @malinajirka ! I've addressed your comments. Ready for another look 🙏. PS: Don't merge this PR yet. I have to integrate FluxC threats updates and remove temporary FluxC commit hash from this PR. |
malinajirka
approved these changes
Dec 17, 2020
Contributor
malinajirka
left a comment
There was a problem hiding this comment.
Thanks for the changes ;)! LGTM
Base automatically changed from
issue/13326-scan-introduce-ui-states
to
develop
December 17, 2020 10:27
# Conflicts: # build.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parent #13326
PS: Size of the PR has increased because of new xml layouts, extracting of styles to a new class. I can split tests (last commit) into a separate PR if it helps in reviewing this PR.
Description
This PR is a step forward in refining
UiStatesfor theScanscreen. It mainly includes changes to below classes:ScanListItemStateupdated to includeScanState-ButtonAction(FixAll, Scan) - (only display logic) do not perform any action yet.ThreatItemState(correspondingThreatViewHolder, layout etc added)ScanStateListItemBuilderScanStateextracted in the newScanStateListItemBuilderclass, dynamic texts addedScanViewModelContentUiStateupdated to includeScanStatebuttons and threatsThere will be more states (e.g. after fix action) later, this PR covers only below states, dynamic texts, buttons (displayed when screen is shown) and corresponding tests.
To Test
Prerequisite: Make sure both Scan feature flag and MySiteImprovements flag are set to on in the App settings.
Notes
ScanStatusServiceusesFluxC.ThreatStoreto access threats (only basic details) temporarily just to start displaying the threats, threats count. It needs to be updated later on and so haven't included tests forScanStatusService.ThreatsFoundstate is not highlighted as a link.Merge Instructions
PR submission checklist:
RELEASE-NOTES.txtif necessary.