Repository navigation
fix(views): widen the Policy column of the health and drift tables - #36
Merged
Merged
Conversation
The Policy column of the IntuneScriptLab.HealthReport and DriftResult table views was 26 characters wide, so a policy name longer than that wrapped onto a second line and pushed the row apart; a run against the lab tenant wrapped ISL-POST-FEEDBACK-RECURRED-SILENT and broke ISL-W32-FILE-NOTEXIST-FALSE after FALS. Both columns are 40 wide now; Notes and Detail take the rest of the line as before.
fadwen
commented
Oct 12, 2026
fadwen
left a comment
Owner
Author
There was a problem hiding this comment.
Notes on the lines whose reason the diff does not show.
| <TableColumnHeader> | ||
| <Label>Policy</Label> | ||
| <Width>26</Width> | ||
| <Width>40</Width> |
Owner
Author
There was a problem hiding this comment.
40 rather than no width: a fixed width keeps the column aligned across rows when names vary, and 40 holds every policy name in the lab tenant and names like "Remediation - Reset Teams cache (pilot)" on one line, while leaving Detail enough room at the 120 columns the help blocks assume.
| <TableColumnHeader> | ||
| <Label>Policy</Label> | ||
| <Width>26</Width> | ||
| <Width>40</Width> |
Owner
Author
There was a problem hiding this comment.
Changed together with the drift view's column so both tables line up when they are read one after the other, which is how the health report and the drift results are usually compared.
Merged
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.
Summary
The
Policycolumn in the health report and drift table views was 26 characters wide. A policy name longer than that wrapped onto a second line and pushed the row apart: in a run against the lab tenant,ISL-POST-FEEDBACK-RECURRED-SILENT(33 characters) printed as two lines andISL-W32-FILE-NOTEXIST-FALSE(27) broke afterFALS. Production tenants name policies longer than 26 characters as a matter of course.Changes
IntuneScriptLab.Format.ps1xml: thePolicycolumn of theIntuneScriptLab.HealthReportandIntuneScriptLab.DriftResulttable views is 40 characters wide. Nothing else in either view moves;NotesandDetailhave no fixed width and take the rest.CHANGELOG.md: Fixed entry under Unreleased.Verification
Module.Contract(which checks that every output type has a format view),Get-IntuneScriptHealthandCompare-IntuneDeployedScriptsuites: 44 passed on PowerShell 7.6.6.