-
Notifications
You must be signed in to change notification settings - Fork 104
Conversation
69cff93
to
c0f132f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ioana-farcas this looks great! There is a shadow on the snackbar, though it's difficult to select the layer in Zeplin, so I attached an image below showing the values. Just a couple other things I noticed while testing:
- Can we update the screen background to: #EDEDF0
The first time I sign in after downloading the build (making sure to delete any old versions first), it seems to get hung up during syncing and never displays my entries. I can navigate to Settings or Account and back and it still just continues to sync. If I force quit out of Lockbox, re-open, then sign in again - it syncs and then loads my entries as expected.
Note: I don't have this issue on the simulator, only on my Pixel device
Sounds like this is an issue with Sync and not tied to this PR 👍Question: Are we syncing the entry list every time the user navigates back to the Entry List? I noticed that after my entries do show, and I navigate to either Settings, Account, or an Entry Detail, and then navigate back to the Entry List, it shows that it is syncing again. I was thinking that we only sync on signing in, and then on a time interval after that, but perhaps I'm mistaken on this.Sounds like this is being addressed in another issue 👍
6daa617
to
0398a82
Compare
Some refactor required per @ioana-farcas and @jhugman... |
df17439
to
a253d84
Compare
a253d84
to
bd5dd6d
Compare
b5a9bda
to
1d8901e
Compare
6350107
to
3181c68
Compare
3181c68
to
292d3c7
Compare
ee98fc3
to
116ed86
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm encountering some strange behavior on this release build 1679...
When I sign in with my personal account on a newly installed build, it works, but displays a 404 webpage for a brief moment between a successful authentication (via FxA) and the sync toaster loading up my entries. I have a random hunch that this might be the FxA "Account Confirmed" dialog that isn't being able to be fetched prior to transitioning to the entry list, though that's just a shot in the dark.
When I sign in with test data, I am unable to trigger the sync toaster... but when I disconnect from the test account and try to then log in with my personal account instead, I'm actually presented with the test account entries instead of my personal entries. (@sashei didn't we experience something similar on iOS at some point?)
FWIW, the sync indicator looks good, as does this background of the empty state... it's just now these two, potentially larger, external issues I'm experiencing.
@changecourse a few things:
|
@sashei thanks for the clarifications! As long as we're tracking both of those, we're good then :) UI-wise, we're good. |
UI changes reviewed by @changecourse
Ah interesting, I haven't seen that myself but since I was here already, went ahead and filed that issue as a P2: #277 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks so much for your hard work on this PR @ioana-farcas :)) ♻️ 🎉 💯
@@ -48,7 +48,7 @@ open class DataStore( | |||
private val listSubject: BehaviorRelay<List<ServerPassword>> = BehaviorRelay.createDefault(emptyList()) | |||
|
|||
val state: Observable<State> get() = stateSubject | |||
val syncState: Observable<SyncState> = PublishSubject.create() | |||
open val syncState: Observable<SyncState> = ReplaySubject.create() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
showAndRemove(view!!.entriesView, view!!.loadingView) | ||
} | ||
view!!.filterButton.isClickable = !isLoading |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be a follow-up improvement, but it would be nice for these isClickable
and isEnabled
settings to each be their own Consumer
s on the View
rather than side effects of showing / hiding the loading spinner. IIRC from iOS, we have other situations (no saved entries comes to mind) where we want to disable the filter / sort buttons. However, I'm happy to let this PR merge as-is and do that work in later tickets :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sashei You're right. I will merge this and add the modifications in another PR. Thanks for the review!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed a follow-up issue here: #279
Fixes #48
Testing and Review Notes
@mozilla-lockbox/ux
I can not tell if the bottom bar with the spinner has a shadow in zeplin...so I did not add one. Please let me know if it is needed.
Screenshots or Videos
To Do