I’ve been bouncing all over Unviersal Dashboard versions trying to find one that doesn’t have a breaking bug that prevents me from completing my project.
v2 - lacked the input validation I needed
v3 beta2 - had broken buttons I believe, I can’t find the note from Adam about this release and what it fixed but that is what I recall from memory: GitHub Link
v3 beta2 nightly from April 23rd - What I am currently using appears to have broken “AutoRefresh” when I enable AutoRefresh like so:
v3 beta3 - switched to powershell universal and didn’t have themes or custom css, broken toasts
v3 beta5 - is unusable in that it resets every 60 seconds, still no custom CSS
I guess I’m hoping Adam or someone can confirm this version is indeed bugged and I can quit wasting my time trying to make it work.
I’m looking for a nightly that has this fixed but before the huge changes that came with the switch to Universal so I can still use original themes + custom css.
It seems the versions after April 15th are no longer compiled.
Unfortunately, there were no Universal Dashboard builds after the v3 beta2 and I wouldn’t be surprised if there were issues with it like you’re experiencing with the auto-refresh.
You’re right that there isn’t custom CSS yet. Are you hosting a custom CSS file? Just wondering how you are doing the custom CSS with v3. I wonder if wrapping the dashboard in UDStyle would allow you to use your custom CSS in the most recent version.
I certainly appreciate the idea but I think I’m too dependent on v3 components already to go back now. This auto refresh was literally the last thing I needed to complete my project - major bummer. Kudos on all that work you’ve done.
I’m also hesitant to write a bunch of code dependent on a deprecated version that is likely to be obsolete in a few months. Maybe I misunderstand the interoperability between v2 and v3 components though.
You could effectively wrap your dashboard in UDStyle and apply the styles you want. This way you won’t have to put the style around each button. For example, this would style all the buttons with the same style.
New-UDDashboard -Title "Hello, World!" -Content {
New-UDStyle -Style "button { padding: 0px !important; font-size: 1.3rem !important; }" -Content {
New-UDButton -Text "Learn more about Universal Dashboard" -OnClick {
Invoke-UDRedirect https://docs.ironmansoftware.com
}
New-UDButton -Text "Learn more about Universal Dashboard" -OnClick {
Invoke-UDRedirect https://docs.ironmansoftware.com
}
New-UDButton -Text "Learn more about Universal Dashboard" -OnClick {
Invoke-UDRedirect https://docs.ironmansoftware.com
}
New-UDButton -Text "Learn more about Universal Dashboard" -OnClick {
Invoke-UDRedirect https://docs.ironmansoftware.com
}
}
}
I was also able to get this to work with a class name selector. For some reason selecting MuiButtonBase-root didn’t work for me but selecting ud-mu-button did.
That’s pretty much what I was looking for. I know you had suggested this on another thread but I didn’t see any examples of applying the style to the entire dashboard, only individual elements, so this is nice to have.