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

[Feature request] Page groups #8

Open
1 task done
myMartek opened this issue Dec 12, 2023 · 0 comments
Open
1 task done

[Feature request] Page groups #8

myMartek opened this issue Dec 12, 2023 · 0 comments

Comments

@myMartek
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Description

I would like to start with my first contribution but since it falls in the "substantial" category I would like to discuss the feature before implementing anything.

My plan is to add page groups to the interface editor:
Bildschirmfoto 2023-12-12 um 20 57 19

Users can add multiple groups which all can have their own pages. When adding a new group the user can give a name and set a checkbox whether it should be possible to scroll though the pages (with the scroll indicator dots on the bottom) or if a page when opened can't be switched.

Also I would like to add a new section in commands: "Go to page":
Bildschirmfoto 2023-12-12 um 19 01 25 Kopie

The user can either select a specific page to open or choose "Go to previous page".
The Previous page option will go to the last visited page. When pressed on the first page nothing happens but when pressed on a page that was opened through the "Show page" command the parent page is added to a stack.

The go to page option can be combined with a regular "command" and thus allows for switching pages and issuing a command at the same time.

Expected behavior

This change will help with multiple use cases:

Modal with a confirm question:
Bildschirmfoto 2023-12-12 um 19 04 26
The X button will use the "Previous page" command. And the checkbox will issue a command to turn off the TV and in parallel it should open the previous page. If the dialog is a multi step dialog (eg. Are you really really sure) you could also add a second page to the group with the same design, slightly different text but on the first page the checkbox would simply switch to page 2. In this scenario the option to allow manual page changes in this group could be disabled.

Another option would be a completely separate section with eg. light options or smart home actions. You can add a button to your start page for opening the smart home section which then could have several sub pages or even sub groups.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant