Skip to content

feat(dashboard): add Locksmith 2 version number to dashboard header - #96

Merged
jakehildreth merged 2 commits into
mainfrom
feat/version-number-in-dashboard
Aug 3, 2026
Merged

feat(dashboard): add Locksmith 2 version number to dashboard header#96
jakehildreth merged 2 commits into
mainfrom
feat/version-number-in-dashboard

Conversation

@jakehildreth

Copy link
Copy Markdown
Owner

Summary

Adds the running Locksmith 2 module version to the dashboard header, positioned between Computer and Generated.

Changes

  • Public/New-LS2Dashboard.ps1
    • Resolves the module version (and optional prerelease tag) at runtime via Get-Module.
    • Handles the case where multiple module versions are loaded by taking the first version from the array.
    • Builds the header metadata dynamically so the Version: segment is inserted in the correct order.
    • Omits the version segment entirely if the module cannot be resolved.
  • Tests/Public/New-LS2Dashboard.Tests.ps1
    • Adds tests verifying the version appears in the header.
    • Adds tests verifying the version is omitted when the module is not found.
  • .scratch/version-number-in-dashboard/
    • Wayfinder map, decision tickets, and research notes for the feature.

Screenshot

Header now renders as:

Forest: adcs.goat | User: adcs\Administrator | Computer: adcs\ADCSGOAT-DC | Version: 2026.8.30507 | Generated: 2026-08-03 05:57:46

Testing

  • Generated a live dashboard and confirmed the version displays correctly.
  • Pester tests added for the new behavior.

Related

  • Closes wayfinder map: .scratch/version-number-in-dashboard/spec.md

- update ModuleVersion in Locksmith2.psd1 to current CalVer timestamp
- resolve module version (and optional prerelease tag) at runtime via Get-Module
- insert Version metadata between Computer and Generated in the header
- omit version display entirely if module resolution fails
- add Pester tests for header version presence and fallback behavior
@jakehildreth
jakehildreth merged commit 552baea into main Aug 3, 2026
1 check passed
@jakehildreth
jakehildreth deleted the feat/version-number-in-dashboard branch August 3, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant