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 new dashboard dialog #18657

Merged
merged 2 commits into from
Nov 16, 2023
Merged

Add new dashboard dialog #18657

merged 2 commits into from
Nov 16, 2023

Conversation

piitaya
Copy link
Member

@piitaya piitaya commented Nov 14, 2023

Proposed change

Add new dashboard dialog with similar UX than automation and script. The user can now directly start with an empty dashboard.

CleanShot 2023-11-14 at 17 51 10@2x

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

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request:

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:

"header": "Add dashboard",
"create_empty": "New dashboard from scratch",
"create_empty_description": "Start with an empty dashboard from scratch",
"default": "Overview dashboard",
Copy link
Member

Choose a reason for hiding this comment

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

I would either go more generic or more specific:

  • Call it "default dashboard" and we can upgrade it in the future to new defaults
  • Call it "Masonry Dashboard" because it's tied to the layout engine that's used

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's go for default.

src/translations/en.json Outdated Show resolved Hide resolved
<ha-icon-next slot="meta"></ha-icon-next>
</ha-list-item>
<li divider role="separator"></li>
<ha-list-item
Copy link
Member

Choose a reason for hiding this comment

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

Next step would be for strategies to register like custom cards do and loop over that here right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep exactly 🙂

@piitaya piitaya force-pushed the new_dashboard_dialog branch from 234d1d6 to 1cac1c0 Compare November 16, 2023 11:21
@piitaya piitaya merged commit 842df98 into dev Nov 16, 2023
13 checks passed
@piitaya piitaya deleted the new_dashboard_dialog branch November 16, 2023 12:43
@github-actions github-actions bot locked and limited conversation to collaborators Nov 15, 2024
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.

3 participants