Skip to content

feat: promote PS5.1 to first-class runtime; improve New-LS2Dashboard UX#58

Merged
jakehildreth merged 1 commit into
mainfrom
feature/improve-ps5-first-run-experience
May 9, 2026
Merged

feat: promote PS5.1 to first-class runtime; improve New-LS2Dashboard UX#58
jakehildreth merged 1 commit into
mainfrom
feature/improve-ps5-first-run-experience

Conversation

@jakehildreth
Copy link
Copy Markdown
Owner

Summary

Removes the PS5.1 "degraded experience" warnings and promotes Windows PowerShell 5.1 to a fully supported first-class runtime alongside PS 7.4+. Also improves the out-of-the-box New-LS2Dashboard experience so it works usefully with no arguments.

Changes

PS5.1 first-class (ADR-0002)

  • Test-PowerShellEnvironment: removed IsPowerShellCore, IsWindowsTerminal, and PwshSpectreConsole checks; return object reduced to 6 keys
  • Repair-PowerShellEnvironment: removed Guidance 1 (Windows Terminal warning) and Guidance 2 (headless mode / upgrade-to-7.4 warning); simplified $success calculation
  • Added Docs/ADR/0002-ps51-first-class-remove-spectre-wt-ps74-checks.md

New-LS2Dashboard UX

  • Default $FilePath now resolves to <cwd>\Locksmith2-Dashboard-<yyyy-MM-dd_HHmmss>.html (timestamped, no temp dir)
  • $Show defaults to $true — browser opens automatically when no parameters are given
  • Generation timestamp (yyyy-MM-dd HH:mm:ss) added to HTML <title> and visible header band in the page body

Show-Logo

  • Quick Start block updated to list both Invoke-Locksmith2 and New-LS2Dashboard with one-line descriptions

Tests

All changes are test-driven (RED → GREEN). 10/10 Dashboard tests passing; full suite at 919 passed / 21 failed (pre-existing failures only, no regressions).

ADR

See Docs/ADR/0002-ps51-first-class-remove-spectre-wt-ps74-checks.md for full decision record.

- remove IsPowerShellCore/IsWindowsTerminal/PwshSpectreConsole checks from Test- and Repair-PowerShellEnvironment
- New-LS2Dashboard defaults FilePath to cwd with yyyy-MM-dd_HHmmss timestamp; opens browser by default (Show=\True)
- add generation timestamp (yyyy-MM-dd HH:mm:ss) to dashboard HTML title and header band
- update Show-Logo quick start block to list New-LS2Dashboard with description
- bump ModuleVersion to 2026.5.90829
@jakehildreth jakehildreth merged commit cf00a1d into main May 9, 2026
1 check passed
@jakehildreth jakehildreth deleted the feature/improve-ps5-first-run-experience branch May 9, 2026 12:33
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