Issue/13328 13329 backup restore UI cycle 2#13919
Conversation
|
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. |
malinajirka
left a comment
There was a problem hiding this comment.
Thanks @zwarm! I've tested the flows using Charles Proxy (I haven't made any code changes). The screens look great ;).
There is just one thing which confuses me a bit. It's a minor thing, I'm just curious why it behaves this way.
- Open Activity Log
- Click on "Download backup" action
- Confirm the action
- Turn on airplane mode
- Notice Generic error is shown - I'd expect to see the RemoteRequestFailure, since we didn't receive any response from the server. Wdyt?
🤔 Aah, the network error turns is handled as a Generic Error when it gets past the details view. It makes more sense to always show the Status error view when we are past the details view. I changed this in 03c513b. I'll changed restore to behave the same way in b79e73e |
Have you used ones from this link you gave me in the other PR? I actually didn't know where we would have colors defined. But the success, error, warning colours there should be what we need. Type sizes Similar to an earlier PR, they look a little small. I've used h6 20dp and body 16dp again. Icons I've just bumped them up to 32dp, I think it works better with the keyline. They looked too far from the text otherwise when I used the keyline. Layout All other layout details below. Note the 2dp in pink. I aligned the icon vertically with the first line of text. But I found that the text was creeping over the top of the icon visually a little bit. So I pushed the text down by 2dp to account for it. It might not play out exactly the same in code as it did in Sketch though. |
I was already using error and success, I updated the yellow to warning
I did use H6 for the header and textAppearanceBody1 (16dp) for the text, so those are all good.
I updated them to 32dp.
With the icon adjustment, it looks much better without the 2 dp down. The sentence will wrap as the screen gets smaller. Thanks. |

Parents #13328, #13329 and copy improvements #13916
This PR is part two of UI updates and includes
BACKUP_RESTORE_BULLETand associated supporting classesBulletState, andJetpackBackupRestoreBulletViewHolder. Updated builders and adapterRestoreStepMerge Instructions
cc: @osullivanchris
There weren't any details for backup download status (in #13916), so I winged it - same for the icon colors in status and generic error. Please provide any updates. Thanks. :)
To test:
fun buildDetails()transitionToError(BackupDownloadErrorTypes.RemoteRequestFailure) returntransitionToError(BackupDownloadErrorTypes.GenericFailure) returnfun buildDetails()transitionToError(RestoreErrorTypes.RemoteRequestFailure) returntransitionToError(RestoreErrorTypes.GenericFailure) returnPR submission checklist:
RELEASE-NOTES.txtif necessary.