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

Add logged out state to Wear tiles #3440

Merged

Conversation

jpelgrom
Copy link
Member

Summary

This PR adds a generic tile design to be used when the Wear app isn't logged in based on the Dialog design as recommended: "In some cases, the user needs to (...) sign in (...) to see content on a Tile. Use dialogs to prompt users to take an action.".

Implements #3383

Screenshots

Assist Shortcuts Template
A tile titled 'Assist', 'Log in to Home Assistant to start using Assist', with a button 'Login' A tile titled 'Shortcuts', 'Log in to Home Assistant to add your first shortcut', with a button 'Login' A tile titled 'Template', 'Log in to Home Assistant to set up a template', with a button 'Login'

Link to pull request in Documentation repository

n/a

Any other notes

I'm using the Material Tiles layouts which fit in with Google's tile designs. It might be nice to update the empty states with the same text/button styles for consistency but that's out of scope for this PR.

 - Adds a generic tile to be used when the Wear app isn't logged in
 - Simplify tile root layout building using Timeline.fromLayoutElement
@JBassett JBassett merged commit cc20ffe into home-assistant:master Apr 1, 2023
4 checks passed
@jpelgrom jpelgrom deleted the wear-tiles-logged-out-state branch April 1, 2023 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Play Store Policy Update: Wear OS Tiles should prompt user to sign in if they are not yet
2 participants