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

Convert onboarding to Lit #2894

Merged
merged 3 commits into from
Mar 8, 2019
Merged

Convert onboarding to Lit #2894

merged 3 commits into from
Mar 8, 2019

Conversation

balloob
Copy link
Member

@balloob balloob commented Mar 8, 2019

  • Convert onboarding to Lit
  • Onboarding will now return an auth code, so we can redirect to the main page directly.

onboarding-improv

Requires home-assistant/core#21777

@awarecan
Copy link
Contributor

awarecan commented Mar 8, 2019

We should allow password show clear text here (even set it as default). Because we don't have password_confirm field, if user either forget or have a typo in the password, he/she will have to redo on-boarding again.

Of course, it is better than current situation, if user clicked save login he/she may not need that password anymore 😄

@balloob
Copy link
Member Author

balloob commented Mar 8, 2019

That's a good point. We should do that for a future PR . Now that it's Lit, things will be easier.

class HaOnboarding extends litLocalizeLiteMixin(LitElement) {
public translationFragment = "page-onboarding";

@property() private _name = "";
Copy link
Member

Choose a reason for hiding this comment

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

are these not initialized if you set the type to string?

Copy link
Member Author

Choose a reason for hiding this comment

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

nope, it's undefined

"ui.panel.page-onboarding.user.required_field"
)}"
></paper-input>

Copy link
Member

Choose a reason for hiding this comment

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

Add a password confirmation input and require the two fields to match

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

iantrich and others added 2 commits March 8, 2019 09:04
Co-Authored-By: balloob <paulus@home-assistant.io>
@balloob
Copy link
Member Author

balloob commented Mar 8, 2019

I've added a password confirm.

@balloob balloob merged commit ee94830 into dev Mar 8, 2019
@delete-merged-branch delete-merged-branch bot deleted the onboarding-lit branch March 8, 2019 21:51
@ghost ghost removed the in progress label Mar 8, 2019
@balloob balloob mentioned this pull request Mar 12, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants