Repository navigation
Import preview with selection (#24, part 3) - #27
Merged
Merged
Conversation
The import confirmation now lists the packages of the file in a grid, all ticked. With something unticked, winget imports a reduced copy in %TEMP% (wgt_import_*.json, swept at the next start): the kept package objects are written back verbatim, so --custom/--override saved by winget 1.29 survive without the app knowing their names, and sources left empty are dropped. New-AppDialog takes an optional -Content shown under the text. Part of #24. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md # README.md # src/modules/App.Ui.ps1
# Conflicts: # CHANGELOG.md
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.
Third of three PRs for #24. It is built on #26 and retargets to
mainafter #25 and #26.Import preview
winget importruns on the file as it is, unchanged.%TEMP%\wgt_import_<guid>.json, whichClear-WinGetTempFilessweeps at the next start, and runs the samewinget import --ignore-unavailableon it.--customand--overridein the export, so they survive without the app knowing their field names.$schemaare kept.PackageIdentifier,Version,ChannelandScope, the confirmation says that winget will apply its saved installer arguments again.New-AppDialog/Show-AppDialogtake an optional-Content, shown under the text.*columns collapse to zero there. I found this in a render.Tests
Get-ImportPackages:$null.New-ImportSubset:Customproperty and itsVersion;$schema;Start-Importpasses the grid as-Contentand goes through a reducedwgt_import_file. The existing checks still hold: confirmation before import, default No, invalid file refused first.New-AppDialog -Contentplaces the element under the text, which is kept.New-ImportPreviewGridhas a checkbox column.Both suites pass offline. I checked the dialog in renders, light and dark.
🤖 Generated with Claude Code