Conversation
…nd update exports. Enhance examples and tests for new functionality.
…cmdlet and corresponding pester test
|
PSScriptAnalyzer results: Errors: [0], Warnings: [37], Information: [0]
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR prepares the AsBuiltReport.Chart module for the v0.3.2 public release by introducing a new chart cmdlet (Single Stacked Bar), adding usage examples and tests, and bumping version metadata across the module.
Changes:
- Added New-SingleStackedBarChart implementation (C# chart + PowerShell cmdlet) and exported it from the module manifest.
- Added Pester tests and example scripts covering the new cmdlet.
- Updated versioning/changelog to
0.3.2and adjusted the release workflow script.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| Tests/AsBuiltReport.Chart.Functions.Tests.ps1 | Adds export + behavioral tests for New-SingleStackedBarChart. |
| Sources/SingleStackedBarChart.cs | Implements rendering/saving for a single stacked bar chart (with legend/watermark support). |
| Sources/PowerShell/SingleStackedBarChartPwsh.cs | Adds the New-SingleStackedBarChart cmdlet and wires parameters into Chart static settings. |
| Sources/Chart.cs | Introduces a shared ValueSuffix setting (reset on Chart.Reset()). |
| Sources/BarChart.cs | Adjusts single-bar axis limits behavior. |
| Sources/StackedBarChart.cs | Adjusts single-bar axis limits behavior for stacked bars. |
| Sources/AsBuiltReportChart.csproj | Bumps library version to 0.3.2. |
| Examples/Example10.ps1 | Adds a basic example for the new single stacked bar chart. |
| Examples/Example11.ps1 | Adds an advanced example for the new single stacked bar chart. |
| CHANGELOG.md | Adds the 0.3.2 release entry. |
| AsBuiltReport.Chart/AsBuiltReport.Chart.psd1 | Bumps module version to 0.3.2 and adds new export. |
| .github/workflows/Release.yml | Updates release trigger formatting and modifies copy steps / disables social posting jobs. |
| .github/copilot-instructions.md | Adds repo-specific Copilot guidance (architecture/build/test notes). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
20
to
+22
| - name: Copy the library for MacOS X64 | ||
| run: copy ./Sources/bin/Release/netstandard2.0/osx-x64/publish/*.* ./AsBuiltReport.Chart/Src/Assemblies/Core/mac-osx/osx-x64 | ||
| run: copy ./Sources/bin/Release/netstandard2.0/osx-x64/publish/*.* | ||
| ./AsBuiltReport.Chart/Src/Assemblies/Core/mac-osx/osx-x64 |
Comment on lines
25
to
+27
| - name: Copy the library for MacOS Arm64 | ||
| run: copy ./Sources/bin/Release/netstandard2.0/osx-arm64/publish/*.* ./AsBuiltReport.Chart/Src/Assemblies/Core/mac-osx/osx-arm64 | ||
| run: copy ./Sources/bin/Release/netstandard2.0/osx-arm64/publish/*.* | ||
| ./AsBuiltReport.Chart/Src/Assemblies/Core/mac-osx/osx-arm64 |
Comment on lines
30
to
+32
| - name: Copy the library for Linux | ||
| run: copy ./Sources/bin/Release/netstandard2.0/linux-x64/publish/*.* ./AsBuiltReport.Chart/Src/Assemblies/Core/linux-x64 | ||
| run: copy ./Sources/bin/Release/netstandard2.0/linux-x64/publish/*.* | ||
| ./AsBuiltReport.Chart/Src/Assemblies/Core/linux-x64 |
Comment on lines
35
to
+37
| - name: Copy the library for Windows | ||
| run: copy ./Sources/bin/Release/netstandard2.0/win-x64/publish/*.* ./AsBuiltReport.Chart/Src/Assemblies/Core/windows-x64 | ||
| run: copy ./Sources/bin/Release/netstandard2.0/win-x64/publish/*.* | ||
| ./AsBuiltReport.Chart/Src/Assemblies/Core/windows-x64 |
Comment on lines
40
to
+42
| - name: Copy the library for Windows PowerShell | ||
| run: copy ./Sources/bin/Release/netstandard2.0/win-x64/publish/*.* ./AsBuiltReport.Chart/Src/Assemblies/Desktop/windows-x64 | ||
| run: copy ./Sources/bin/Release/netstandard2.0/win-x64/publish/*.* | ||
| ./AsBuiltReport.Chart/Src/Assemblies/Desktop/windows-x64 |
| } | ||
|
|
||
| // Set margins | ||
| // myPlot.Axes.Margins(left: AxesMarginsLeft, right: AxesMarginsRight, bottom: AxesMarginsDown, top: AxesMarginsTop); |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
PSScriptAnalyzer results: Errors: [0], Warnings: [37], Information: [0]
|
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
PSScriptAnalyzer results: Errors: [0], Warnings: [37], Information: [0]
|
|
PSScriptAnalyzer results: Errors: [0], Warnings: [37], Information: [0]
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[0.3.2] - 2026-05-05
Added
Changed