PowerShell Universal v1.1.1

To get it to work in VS Code:

You will need to also import the Universal module: https://www.powershellgallery.com/packages/Universal

Import the framework module: C:\ProgramData\PowerShellUniversal\Dashboard\Frameworks\UniversalDashboard\2.9.1-beta2

With 1.2 of PSU, we’ll start publishing the framework modules to the gallery so it’s easier to get them for VS Code. The UD framework modules will take a dependency on the Universal module so it should all come down when you install the framework module.

For your dashboard, it looks like we have some rough edges here. New-UDFooter is missing, the page doesn’t seem to work when there is a single item in it and the navbar isn’t showing items. Ugh.

I’ve opened issues to track all of this.

I dialed back the dashboard so I could get it to work in my end. You don’t need to call Start-UDDashboard any more. Just return the dashboard from New-UDDashboard.

$page = New-UDPage -Name 'testpage' -Content {
    New-UDParagraph -Text "Stuff"
    New-UDParagraph -Text "Stuff"
    New-UDParagraph -Text "Stuff"
}

$sidenav = New-UDSideNav -Content {
    New-UDSideNavItem -Text "testpage" -PageName "testpage" -icon home
    New-UDSideNavItem -Text "testpage" -PageName "testpage" -icon home
    New-UDSideNavItem -Text "testpage" -PageName "testpage" -icon home
    New-UDSideNavItem -Text "testpage" -PageName "testpage" -icon home
}

New-UDDashboard -Title "Automation Portal" -Pages $page -navigation $sidenav

Here is the example dashboard that we use for the automated tests if you need some examples. It’s funny because the tests have a pretty high pass rate but the simple stuff you tried isn’t working.

Always more work to do.