Skip to content

Supervisor dialogs#5740

Merged
bramkragten merged 7 commits intohome-assistant:devfrom
ludeeus:supervisor-dialog
May 4, 2020
Merged

Supervisor dialogs#5740
bramkragten merged 7 commits intohome-assistant:devfrom
ludeeus:supervisor-dialog

Conversation

@ludeeus
Copy link
Copy Markdown
Member

@ludeeus ludeeus commented May 3, 2020

Proposed change

  • Implements our custom pretty dialog instead of the default browser provided.
    • dialogs in the snapshot dialog are not changed, I will address that another way.
  • Added new dialogs (host rboot, host shutdown, os upgrade)
  • Refreshes host info after host name change
  • Reorder buttons on addon info card, I think they got misplaced with the TS convertion

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

image
image
image
image

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

@ludeeus ludeeus marked this pull request as ready for review May 3, 2020 13:53
@TheZoker
Copy link
Copy Markdown
Contributor

TheZoker commented May 3, 2020

This PR also fixes #4981

@ludeeus ludeeus changed the title WIP: Supervisor dialogs Supervisor dialogs May 3, 2020
@ludeeus
Copy link
Copy Markdown
Member Author

ludeeus commented May 3, 2020

Yes, that is a duplicate of #4915

@TheZoker
Copy link
Copy Markdown
Contributor

TheZoker commented May 3, 2020

I know it's not within the supervisor, but since you replace the only other occurence of prompt() that's left within the frontend in this PR, maybe you could also have a look at this issue (and maybe fix it within this PR): #5741

@ludeeus
Copy link
Copy Markdown
Member Author

ludeeus commented May 3, 2020

Eventually, maybe, but that is out of the scope here.

Comment thread hassio/src/system/hassio-host-info.ts Outdated
.hass=${this.hass}
.path="hassio/addons/${this.addon.slug}/rebuild"
>
Rebuild
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You are a hero for moving this! 🥇

Comment thread hassio/src/system/hassio-supervisor-info.ts Outdated
@ludeeus ludeeus added the Supervisor Related to the supervisor panel label May 3, 2020
ludeeus and others added 2 commits May 3, 2020 18:07
Copy link
Copy Markdown
Member

@bramkragten bramkragten left a comment

Choose a reason for hiding this comment

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

Nice!

if (hostname && hostname !== curHostname) {
this.hass.callApi("POST", "hassio/host/options", { hostname });
try {
await changeHostOptions(this.hass, { hostname });
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Doesn't this return the new info?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not sure, I'll do some testing later today

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It only returns {result: "ok", data: {…}} where data is empty.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok

@bramkragten bramkragten merged commit 0bdcfcc into home-assistant:dev May 4, 2020
@bramkragten bramkragten mentioned this pull request May 5, 2020
@lock lock Bot locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed Supervisor Related to the supervisor panel

Projects

None yet

6 participants