Skip to content
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

Merged
merged 14 commits into from
Sep 6, 2022

Conversation

fedrunov
Copy link
Contributor

@fedrunov fedrunov commented Sep 5, 2022

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

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

Tall Short
tall short
Light Dark Black
short dark black

Copy link
Member

@bmarty bmarty left a 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.

library/ui-strings/src/main/res/values/strings.xml Outdated Show resolved Hide resolved
context.dataStore.edit { settings ->
settings[isAppLayoutOnboardingShown] = isShown
}
}
Copy link
Member

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.

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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.

Copy link
Contributor

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

vector/src/main/res/layout/bottom_sheet_release_notes.xml Outdated Show resolved Hide resolved
Copy link
Member

@bmarty bmarty left a 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/res/layout/item_release_carousel.xml Outdated Show resolved Hide resolved
vector/src/main/res/layout/item_release_carousel.xml Outdated Show resolved Hide resolved
vector/src/main/res/layout/item_release_carousel.xml Outdated Show resolved Hide resolved
Copy link
Contributor

@ericdecanini ericdecanini left a 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

@bmarty bmarty mentioned this pull request Sep 5, 2022
4 tasks
@fedrunov fedrunov requested a review from bmarty September 5, 2022 14:38
Copy link
Member

@bmarty bmarty left a 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.

@ElementBot
Copy link

Warnings
⚠️

vector/src/main/AndroidManifest.xml#L220 - Consider splitting data tag into multiple tags with individual attributes to avoid confusion

⚠️

vector/src/main/AndroidManifest.xml#L220 - Consider splitting data tag into multiple tags with individual attributes to avoid confusion

⚠️

vector/src/main/AndroidManifest.xml#L223 - Consider splitting data tag into multiple tags with individual attributes to avoid confusion

⚠️

vector/src/main/AndroidManifest.xml#L223 - Consider splitting data tag into multiple tags with individual attributes to avoid confusion

⚠️

vector/src/main/AndroidManifest.xml#L277 - Expecting android:screenOrientation="unspecified" or "fullSensor" for this activity so the user can use the application in any orientation and provide a great experience on Chrome OS devices

⚠️

vector/src/main/AndroidManifest.xml#L277 - Expecting android:screenOrientation="unspecified" or "fullSensor" for this activity so the user can use the application in any orientation and provide a great experience on Chrome OS devices

⚠️

vector/src/main/AndroidManifest.xml#L286 - Attribute supportsPictureInPicture is only used in API level 24 and higher (current min is 21)

⚠️

vector/src/main/AndroidManifest.xml#L286 - Attribute supportsPictureInPicture is only used in API level 24 and higher (current min is 21)

⚠️

vector/src/main/AndroidManifest.xml#L293 - Attribute supportsPictureInPicture is only used in API level 24 and higher (current min is 21)

⚠️

vector/src/main/AndroidManifest.xml#L293 - Attribute supportsPictureInPicture is only used in API level 24 and higher (current min is 21)

⚠️

vector/src/main/AndroidManifest.xml#L299 - Attribute supportsPictureInPicture is only used in API level 24 and higher (current min is 21)

⚠️

vector/src/main/AndroidManifest.xml#L299 - Attribute supportsPictureInPicture is only used in API level 24 and higher (current min is 21)

⚠️

vector/src/main/AndroidManifest.xml#L414 - Exported receiver does not require permission

⚠️

vector/src/main/AndroidManifest.xml#L414 - Exported receiver does not require permission

⚠️

vector/src/main/res/layout/bottom_sheet_release_notes.xml#L8 - Possible overdraw: Root element paints background ?colorSurface with a theme that also paints a background (inferred theme is @android:style/Theme.Holo)

⚠️

vector/src/main/res/layout/bottom_sheet_release_notes.xml#L8 - Possible overdraw: Root element paints background ?colorSurface with a theme that also paints a background (inferred theme is @android:style/Theme.Holo)

Generated by 🚫 dangerJS against eac9371

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 6, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@fedrunov fedrunov added the Z-NextRelease For issues and PRs which should be included in the NextRelease. label Sep 6, 2022
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@fedrunov fedrunov merged commit 7cc7444 into develop Sep 6, 2022
@fedrunov fedrunov deleted the feature/nfe/app_layout_release_experience branch September 6, 2022 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-NextRelease For issues and PRs which should be included in the NextRelease.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

App Layout: Release Experience
5 participants