DashHtml.Design
2.5.1
Design / round-trip companion tools for DashHtml: convert a DashHtml report object to a declarative YAML layout spec, generate a runnable PowerShell build script from YAML/JSON, and derive a best-effort YAML layout from an existing DashHtml .ps1 script. Self-contained (no YAML dependency); makes no changes to the core DashHtml module.
Minimum PowerShell version
7.0
Installation Options
Owners
Copyright
(c) 2026 Nicola Viganò. MIT License.
Package Details
Author(s)
- Nicola Viganò
Tags
DashHtml YAML Dashboard CodeGen Design Layout
Functions
ConvertTo-DhYaml ConvertFrom-DhYaml ConvertFrom-DhScript Update-DhScript
Dependencies
-
- DashHtml (>= 2.5.1)
Release Notes
2.5.1 - ConvertTo-DhYaml writes the 2.5.0 menu options (navLayout, navMaxDepth, navAllLabel, navTree, strictNav, navOverflow) that were dropped before, and generated scripts keep ordered hashtables. Requires DashHtml 2.5.1. 2.5.0 - Knows the DashHtml 2.5.0 additions: Add-DhTreeTable round-trips through YAML (ConvertFrom-DhScript and Update-DhScript recognise it); New-DhDashboard -NavAllLabel, -NavTree, -StrictNav, -NavOverflow, Add-DhTable -RememberColumns and column Hidden carry through ConvertTo-DhYaml / ConvertFrom-DhYaml. Requires DashHtml 2.5.0. 2.4.1 - Version aligned with DashHtml 2.4.1 (menu fixes); no change to the YAML round trip. 2.4.0 — Knows the DashHtml 2.4.0 blocks: Add-DhNetworkMap and Add-DhTreeFilter round-trip through YAML, ConvertFrom-DhScript recognises them, Update-DhScript audits them; New-DhDashboard -Search and -NavBadge and Add-DhTable -ColumnFit, -ColumnMaxWidth and column MinWidth carry through ConvertTo-DhYaml / ConvertFrom-DhYaml. Requires DashHtml 2.4.0. 2.3.0 — Knows the DashHtml 2.3.0 blocks: Add-DhKeyValue and Add-DhRecordList round-trip through YAML, ConvertFrom-DhScript recognises them, Update-DhScript audits them; table drawers, grid details, score / maturity tiles and split findings carry through ConvertTo-DhYaml / ConvertFrom-DhYaml. Requires DashHtml 2.3.0. 2.2.0 — Knows the DashHtml 2.2.0 findings block: ConvertTo-DhYaml / ConvertFrom-DhYaml round-trip Add-DhFindings, ConvertFrom-DhScript recognises it, and Update-DhScript audits it like every other block. Requires DashHtml 2.2.0. 2.1.1 — Update-DhScript now recognises Add-DhRangeBar as a block cmdlet (missed when it shipped in DashHtml 2.1.0), so a range bar declared with -NavSubGroup is reported like every other block. 2.0.0 — Adds Update-DhScript, an AST-based audit and rewriter for the DashHtml 2.0.0 upgrade (classifies findings ACTION/advisory/info, backs up before editing, idempotent, never rewrites non-literal content). Version and RequiredModules floor aligned to DashHtml 2.0.0, whose -NavPath/-NavScope parameters the codegen picks up automatically from live cmdlet metadata. Previously 1.0.0 — Initial release. ConvertTo-DhYaml (report -> YAML, lossless), ConvertFrom-DhYaml (YAML/JSON -> runnable .ps1 build script, driven by live cmdlet metadata), ConvertFrom-DhScript (best-effort static .ps1 -> YAML). Self-contained YAML reader/writer, no external dependency. Companion to DashHtml; no core changes.
FileList
- DashHtml.Design.nuspec
- Private\DhSchema.ps1
- Private\DhYamlWriter.ps1
- Public\ConvertFrom-DhYaml.ps1
- Public\ConvertTo-DhYaml.ps1
- Public\Update-DhScript.ps1
- DashHtml.Design.psm1
- README.md
- Private\DhYamlReader.ps1
- Public\ConvertFrom-DhScript.ps1
- DashHtml.Design.psd1
- LICENSE
- THIRD-PARTY-NOTICES.md