Skip to content

Add Avalonia UI GUI launcher for System Resources As Built Report#14

Draft
Copilot wants to merge 3 commits intodevfrom
copilot/design-gui-for-report-generation
Draft

Add Avalonia UI GUI launcher for System Resources As Built Report#14
Copilot wants to merge 3 commits intodevfrom
copilot/design-gui-for-report-generation

Conversation

Copy link
Contributor

Copilot AI commented Mar 11, 2026

Adds a cross-platform desktop GUI (via AvaloniaUIShell) so users can configure and generate reports without touching the command line.

New files

  • Src/GUI/Invoke-AsBuiltReportGui.ps1 — standalone Avalonia UI window (PowerShell 7.4+). Builds a temporary JSON config from the UI state, calls New-AsBuiltReport, and streams output to a scrollable log pane. Report generation runs on a RunspacePoolAsyncUI background thread so the window stays responsive.

    Section Controls
    Report Configuration Target, Output Folder (with folder browser), Report Name, Language (all 28 locales)
    Output Formats HTML · Word · Text · Excel
    Options Timestamp, HealthCheck, Diagrams, Export Diagrams, Diagram Theme (White/Black/Neon)
    Info Level Per-section dropdowns (0/1/2) for Date, TimeZone, Uptime, PSHost, ProcessInfo
  • Src/Public/Start-AsBuiltReportGui.ps1 — exported wrapper that guards against PS < 7.4 and invokes the GUI script.

    Import-Module AsBuiltReport.System.Resources
    Start-AsBuiltReportGui

Modified files

  • AsBuiltReport.System.Resources.psd1 — adds Start-AsBuiltReportGui to FunctionsToExport.
  • README.md — new GUI section: requirements, install steps for AvaloniaUIShell, launch options, and feature table.
  • Todo.md — GUI item marked complete.

Requirements

Install-PSResource -Name AvaloniaUIShell
# macOS / Linux only:
Enable-AUIExecution
Original prompt

This section details on the original issue you should resolve

<issue_title>Design a Gui that can be use to generate the report</issue_title>
<issue_description>### Description

Design a Gui that can be use to generate the report:

  1. Design a Gui in Avalonia UI xaml
  2. Implement the powershell code to integrate with AvaloniaUIShell: https://github.com/mdgrs-mei/AvaloniaUIShell

Additional Context

No response

Before submitting

  • I have read the documentation, and referred to the known issues before submitting this change request.
  • I have checked for previously opened & closed issues before submitting this change request.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: rebelinux <1002783+rebelinux@users.noreply.github.com>
Copilot AI changed the title [WIP] Design GUI to generate reports with Avalonia UI Add Avalonia UI GUI launcher for System Resources As Built Report Mar 11, 2026
@github-actions
Copy link

PSScriptAnalyzer results:

Errors: [0], Warnings: [26], Information: [2]


RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSUseBOMForUnicodeEncodedFile
Severity   : Warning
ScriptName : SystemResources.psd1
Line       : 
Message    : Missing BOM encoding for non-ASCII encoded file 
             'SystemResources.psd1'

RuleName   : PSAvoidUsingPositionalParameters
Severity   : Information
ScriptName : Start-AsBuiltReportGui.ps1
Line       : 48
Message    : Cmdlet 'Join-Path' has positional parameter. Please use named 
             parameters instead of positional parameters when calling a command.

RuleName   : PSAvoidTrailingWhitespace
Severity   : Information
ScriptName : SystemResources.psd1
Line       : 35
Message    : Line has trailing whitespace

@rebelinux
Copy link
Collaborator

rebelinux commented Mar 11, 2026

Fucking awesome!

Screenshot_2026-03-10_21-10-31

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.

Design a Gui that can be use to generate the report

2 participants