Undocumented apps: per-device filter and wider device column; presence for Skip USMT

- Source Devices in the undocumented-apps list filters by device name, like
  the software columns; Devices and the action column take less room.
- Drop the one-click documented pick (Documented + Only ticked does it).
- Stage legend underline spans label and number.
- Device details title stays on one line; the name truncates instead.
- Presence sweep also pings devices under Skip USMT tags.
This commit is contained in:
Johan Sandoval committed 2026-10-06 20:49:58 +00:00
1 parent f72e39892c
commit 9c21567f6d
7 files changed
+31 -35

No files matched your search

+8 -7
View File
@@ -735,27 +735,28 @@ while ($true) {
$sweepSeconds = $phaseWatch.Elapsed.TotalSeconds
$phaseWatch.Restart()
# --- PRESENCE SWEEP: completed pairs ---
# Every other device is pinged by the sweep itself on every cycle. Completed pairs skip
# their network checks, so they're pinged here: hourly during business hours (cycles only
# run then) and on the midnight pitstop.
# --- PRESENCE SWEEP: completed pairs and Skip USMT devices ---
# Every other device is pinged by the sweep itself on every cycle. Completed pairs and
# devices under a Skip USMT tag skip network checks, so they're pinged here: hourly during
# business hours (cycles only run then) and on the midnight pitstop.
$presenceCount = 0
$presenceDue = ((Get-Date) - $global:LastPresenceSweep).TotalMinutes -ge ($presenceMinutes - 0.5) -or $runFullSoftwareSweep
if ($presenceDue) {
$completedDevs = [System.Collections.Generic.HashSet[string]]::new([StringComparer]::OrdinalIgnoreCase)
foreach ($r in $deviceTable) {
if ($r.Pairing -ne "Cached") { continue }
if ($r.Pairing -ne "Cached" -and $r.Pairing -ne "Skipped") { continue }
foreach ($n in @($r."Source Device", $r."Destination Device")) { if ($n -and $n -ne "N/A") { $null = $completedDevs.Add($n) } }
}
$toPing = @($completedDevs | Where-Object { -not $global:PingedThisCycle.Contains($_) } | Sort-Object)
Write-Host "`n[Presence Sweep: pinging $($toPing.Count) device(s) from completed migrations]" -ForegroundColor Cyan
Write-Host "`n[Presence Sweep: pinging $($toPing.Count) completed / Skip USMT device(s)]" -ForegroundColor Cyan
$i = 0
foreach ($n in $toPing) {
$i++
Update-WorkerState "Presence Sweep..." $i $toPing.Count $globalLastDuration "Calculating..."
$null = Test-Device $n -Session $session
}
# Cached / skipped rows pick up the fresh result
# Completed rows pick up the fresh result (Skip USMT rows keep "Skipped" in the ping
# column; their presence shows in the device details and Custom View)
foreach ($r in $deviceTable) {
if ($r.Pairing -eq "Cached") { Set-RowPresence $r -Source -Destination }
}