Skip to content

Adds stage badge#5685

Merged
bramkragten merged 4 commits intohome-assistant:devfrom
ludeeus:addon-info-stage
May 1, 2020
Merged

Adds stage badge#5685
bramkragten merged 4 commits intohome-assistant:devfrom
ludeeus:addon-info-stage

Conversation

@ludeeus
Copy link
Copy Markdown
Member

@ludeeus ludeeus commented May 1, 2020

Breaking change

Proposed change

Adds a new stage bage to the addon info tab to show what stage the addon is in.

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

Example configuration

Additional information

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 added the Supervisor Related to the supervisor panel label May 1, 2020
`
: ""}
<div class="security">
<ha-label-badge
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.

I still think we should iconize it... 🤷‍♂️
As the text will never fit in the badge itself.

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.

Sure, we can do that, but I think that will be confusing.
I'll throw up some examples in a few mins.

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.

image
image
image
image

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.

If they are added to the dialog as well, that might work:
image

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.

I like that approach by including the mapping in the description!

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.

Maybe we only have to show this if it isn't stable?

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.

I think they always should show, regardless of the stage.

Comment thread hassio/src/addon-view/info/hassio-addon-info.ts
Comment thread src/data/hassio/addon.ts Outdated
Comment thread src/data/hassio/addon.ts Outdated
auto_uart: boolean;
icon: boolean;
logo: boolean;
stage?: string;
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.

Suggested change
stage?: string;
stage: "stable" | "experimental" | "deprecated";

@bramkragten bramkragten merged commit d2a5494 into home-assistant:dev May 1, 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

Development

Successfully merging this pull request may close these issues.

Add-on stage support.

5 participants