-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 views dropdown and footer actions to the "move to view" dialog #10172
Conversation
Hi @MartinTuroci, It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
Hi @MartinTuroci, It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
src/panels/lovelace/editor/select-view/hui-dialog-select-view.ts
Outdated
Show resolved
Hide resolved
src/panels/lovelace/editor/select-view/hui-dialog-select-view.ts
Outdated
Show resolved
Hide resolved
I'm not a big fan of this UX personally, the old UI could definitely use some clarification, but I feel like having to open another dropdown doesn't really help... I think the buttons are a good idea, but lets keep a list, and add a selection indicator. Let's wait for the verdict of @matthiasdebaat on this :-) |
Will do @matthiasdebaat |
Let's only do that if there is more than 1 view btw :-) |
@bramkragten What should be the fallback for a single view then? Non-clickable non-radio list item? |
Or just don't render the view list at all? If there is 1 view you basically just move it to that dashboard? @matthiasdebaat ? |
src/panels/lovelace/editor/select-view/hui-dialog-select-view.ts
Outdated
Show resolved
Hide resolved
Yeah, I agree |
@matthiasdebaat so if there is only 1 view I should display a dialog with dashboard dropdown only? |
I think we should keep the UI consistent even if there is only one... Just make it checked. Not really a need to code around this case |
I agree with @zsarnett. Having implicit option checked is probably better so that user knows what's going on. |
When there's only one view, there aren't tabs on the lovelace dashboard am I right? In that case it would be easier and more coherent to display a dialog with only a dashboard dropdown. When a users select a dashboard with multiple views it shows the different views. |
There still is a view. It's just hidden from the header when there is only one. |
Yes, but I don't see value in showing that to the user? Just like we dont show to the tabs when there is just 1 view? |
Changed to show views only for > 1. |
src/panels/lovelace/editor/select-view/hui-dialog-select-view.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 1 small remark
Breaking change
Proposed change
Before:
After:
Closes #10083
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: