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

UI Template - Add "Page-Scoped" and "UI-Scoped" options for widget placement #472

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

joepavitt
Copy link
Collaborator

Description

  • Adds a loop on each page layout to render page-scoped widgets
  • Adds 2 x additional options to the ui-template "scope" property, which allow for a template to render at the page and group level.
  • Adds skeleton styling for the #app-bar-actions such that if multiple template\s define content, they position and layout nicely.
  • Also ensures that page, ui and/or group are cleared appropriately when not required by the ui-template (Fixes ui-template can end up with conflicting group dashboard and page entries #445)

Related Issue(s)

Checklist

@joepavitt joepavitt changed the title Add "Page-Scoped" and "UI-Scoped" options for widget placement UI Template - Add "Page-Scoped" and "UI-Scoped" options for widget placement Jan 4, 2024
@joepavitt joepavitt merged commit 9703846 into main Jan 4, 2024
1 check passed
@joepavitt joepavitt deleted the 440-template-at-ui-page branch January 4, 2024 17:31
@gemini86
Copy link

gemini86 commented Jan 8, 2024

After updating to 0.11.3, I'm seeing that there is not documentation on what the widget scoping does or how to configure it, which is problematic. This is considered a breaking change that does not default to previously expected behaviour. One of my pages is showing widgets from other pages also included now. The only way to correct this is to change the scope setting and then select the group scope option again and redeploy. The biggest issue though is lack of documentation on what the different scopes do (in a node-red fashion)

@joepavitt
Copy link
Collaborator Author

Hi @gemini86 - thanks for raising this. Odd behaviour as I didn't actually change the value at all for the default option, only the label shown in the dropdown, so it shouldn't make a difference.

I will investigate when I'm at my desk tomorrow.

@joepavitt
Copy link
Collaborator Author

Documentation has been updated, and a fix for others to avoid this problem should go live today.

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