We’re releasing beta2 of v3 a little ahead of schedule. The original roadmap suggested that we would be focused primarily on charts of this release. Instead, we’re releasing this beta to address issues found in beta 1 and add a host of new features that have been implemented so far. We’ll probably end up with more than 3 beta releases as we continue to roll out fixes and features.
You can download PowerShell Universal Dashboard v3-beta2 from the PowerShell Gallery.
We’ve made a series of improvements to UDForms. There are new controls as well as validation.
The autocomplete control allows you to specify a list of items or a scriptblock that returns a list of items. The user will be able to enter text and the list will be filtered.
The slider control allows for specifying a number based on a range of values. There are numerous options for configuring the slider.
You can now validate forms using the OnValidating parameter of UDForm. You’ll have access to all the component and their values. You can use the New-UDValidationResult cmdlet to return a message to the user as to why the form data isn’t valid.
The stepper control provides a wizard-like experience. The user will be able to enter data on each page of the stepper. This data be available to each subsequent page and also the scriptblock that is called when finished. You can use any control the works with UDForm. The next step is to provide additional validation mechanisms to prevent users from stepping through the stepper without completing a page.
All pages within UD are now dynamic. The PS scriptblock for the page will execute whenever the page is loaded. This simplifies the UD execution environment because everything is running in the same type of runspace.
A new caching mechanism has been added to improve the performance of pages loaded dynamically. A CachePolicy has been added to the New-UDPage cmdlet for enterprise users. Currently, there is a global cache setting for UDPages that will cache the page after it has been rendered once. Subsequent calls will not require the execution of PowerShell.
If you wish to cache a page, specify the -CachePolicy ‘Global’ parameter of New-UDPage.
In future releases, we will be extending the cache policy to include session-based caching as well.
We’ve brought back Nivo charts as part of the UniversalDashboard module. You can use all the charts you could within UDv2. The demo dashboard provides examples of how to use each chart. We’ve also resolved some issues regarding the Nivo charts as well as upgraded to the latest version of the library.
You can now execute any endpoint from another endpoint. This was an ask by community members primarily for executing scheduled endpoints on demand.
You can now remove endpoints. This is mostly handy for managing schedules dynamically. You can also remove any other type of endpoint but you should be careful to not remove endpoints in use.
Schedule endpoints can now be created within your dashboards. You can use New-UDEndpoint just as you would before but calling it from within an active dashboard will result in a new schedule being created when you specify an endpoint schedule. You can pair this with Remove-UDEndpoint recreate exiting schedules.
For a full changelog of features and bug fixes, visit our GitHub page.