-
Notifications
You must be signed in to change notification settings - Fork 746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
applayout release experience #7003
Conversation
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.
A few first remarks, I will test it when the PR will be updated.
vector/src/main/java/im/vector/app/features/home/HomeActivityViewModel.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/home/room/list/home/release/ReleaseNotesFragment.kt
Show resolved
Hide resolved
context.dataStore.edit { settings -> | ||
settings[isAppLayoutOnboardingShown] = isShown | ||
} | ||
} |
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.
Are you sure the Activity will not be show for user launching Element for the first time? This is a requirement of the issue. I do not see the logic here.
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.
You can (maybe) test the nullability of HomeActivityViewState.authenticationDescription
https://github.com/vector-im/element-android/blob/main/vector/src/main/java/im/vector/app/features/home/HomeActivityViewState.kt#L25 to have the info.
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.
also fixed problem when this value was null after login - https://github.com/vector-im/element-android/pull/7003/files#diff-31d1cb8d12c34d852a52405908bc8f1a427a1f08485a662527a6ff5c11e7053eR630
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.
also fixed problem when this value was null after login - https://github.com/vector-im/element-android/pull/7003/files#diff-31d1cb8d12c34d852a52405908bc8f1a427a1f08485a662527a6ff5c11e7053eR630
I think this fixes the issue, but I am wondering if this is the best place to set the state.selectedAuthenticationState
. Not blocking this PR, but maybe @ouchadam can have a quick look later on this change.
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.
for context, the reason why this was null
previously is because the value was only being used to track signup events in the HomeActivityViewModel
for the change, I think it's fine, we could eventually remove the selectedAuthenticationState
parameter and instead rely on updating the state before calling onSessionCreated
...or/src/main/java/im/vector/app/features/home/room/list/home/release/ReleaseNotesViewModel.kt
Outdated
Show resolved
Hide resolved
...or/src/main/java/im/vector/app/features/home/room/list/home/release/ReleaseNotesViewModel.kt
Show resolved
Hide resolved
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.
A few more remarks on the layout
vector/src/main/java/im/vector/app/features/home/HomeActivityViewModel.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/home/HomeActivityViewModel.kt
Show resolved
Hide resolved
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.
Benoit has said most already. The only thing I can add is maybe you can change the status bar color in this new activity to match the background to look a bit nicer. Consider it optional
vector/src/main/java/im/vector/app/features/home/room/list/home/release/ReleaseCarouselItem.kt
Show resolved
Hide resolved
...or/src/main/java/im/vector/app/features/home/room/list/home/release/ReleaseNotesViewModel.kt
Outdated
Show resolved
Hide resolved
...main/java/im/vector/app/features/home/room/list/home/release/ReleaseNotesPreferencesStore.kt
Show resolved
Hide resolved
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.
Thanks for the update. Some last remarks.
vector/src/main/java/im/vector/app/features/home/HomeActivityViewModel.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/home/room/list/home/release/ReleaseNotesFragment.kt
Show resolved
Hide resolved
Co-authored-by: Benoit Marty <[email protected]>
…iewModel.kt Co-authored-by: Benoit Marty <[email protected]>
|
SonarCloud Quality Gate failed. |
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.
LGTM, thanks!
Type of change
Content
we want to onboard users to new app layout
Motivation and context
closes #6909
Screenshots / GIFs
there are different margins for tall and short screens