Fix WinOneShot ComboItems compatibility - #4957
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe multiplane overlay configuration now stores ChangesMultiplane overlay combo items
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pester/configs.Tests.ps1`:
- Around line 442-446: Update the ComboItems normalization in the validator
around $comboItems to match the renderer: split string values on "|" when the
delimiter is present, while preserving the existing handling for non-string
values and space-delimited strings. Prefer the renderer’s shared normalizer if
one is available.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: dc140671-8fc2-42a1-bad8-121ec330879d
📒 Files selected for processing (4)
config/tweaks.jsonfunctions/public/Invoke-WPFUIElements.ps1pester/configs.Tests.ps1pester/multiplane-overlay.Tests.ps1
Summary
ComboItemsas a stringRoot cause
PR #4897 changed
WPFMultiplaneOverlay.ComboItemsfrom a string to a JSON array. WinOneShot's catalog model expects this field to remain a string, so the compatibility guard correctly failed and WinOneShot would be unable to deserializetweaks.json.Impact
The MPO control continues to show
Enabled,Disabled (Compatibility), andFully Disabled, while the published catalog remains compatible with WinOneShot.Validation
Compile.ps1