Repository navigation
(feat) update-assets now generates all recommended variants and light/dark them variants - #355
Conversation
Build Metrics ReportBinary Sizes
Test Results✅ 407 passed out of 407 tests in 425.6s (+3 tests, +59.0s vs. baseline) Test Coverage❌ 42.3% line coverage, 46.1% branch coverage · ✅ +0.2% vs. baseline CLI Startup Time41ms median (x64, Updated 2026-03-14 00:20:11 UTC · commit |
There was a problem hiding this comment.
Pull request overview
Expands winapp manifest update-assets to generate a fuller MRT-recommended asset set (more scales + targetsize variants), adds app.ico generation, supports light-theme variants via --light-image, and updates new-project manifest templates/docs to the recommended asset filenames.
Changes:
- Add
--light-imageoption and generate light-theme asset variants. - Rework asset generation pipeline (SVG renders at target size via Skia; expanded scales/targets; generate
app.ico). - Update manifest templates, default embedded assets, tests, and documentation to align with recommended asset names (AppList/MedTile/WideTile/StoreLogo).
Reviewed changes
Copilot reviewed 17 out of 24 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/winapp-npm/src/winapp-commands.ts | Adds lightImage option and forwards --light-image to the CLI. |
| src/winapp-CLI/WinApp.Cli/Templates/appxmanifest.sparse.xml | Updates template asset filenames to AppList/MedTile. |
| src/winapp-CLI/WinApp.Cli/Templates/appxmanifest.packaged.xml | Updates template asset filenames and WideTile reference. |
| src/winapp-CLI/WinApp.Cli/Services/ManifestService.cs | Wires light-image through, generates app.ico, and recognizes new asset naming in dimension lookup. |
| src/winapp-CLI/WinApp.Cli/Services/ImageAssetService.cs | Introduces ImageSource, expands variants, adds light-theme generation, and writes multi-frame ICO. |
| src/winapp-CLI/WinApp.Cli/Services/IManifestService.cs | Extends API to accept optional lightImagePath. |
| src/winapp-CLI/WinApp.Cli/Services/IImageAssetService.cs | Extends API for light-theme generation + adds GenerateIcoAsync. |
| src/winapp-CLI/WinApp.Cli/Commands/ManifestUpdateAssetsCommand.cs | Adds --light-image CLI option and passes it to the service layer. |
| src/winapp-CLI/WinApp.Cli/Assets/msix_default_assets/WideTile.scale-200.png | Updates/introduces embedded default assets for new naming. |
| src/winapp-CLI/WinApp.Cli/Assets/msix_default_assets/WideTile.png | Updates/introduces embedded default assets for new naming. |
| src/winapp-CLI/WinApp.Cli/Assets/msix_default_assets/MedTile.scale-200.png | Updates/introduces embedded default assets for new naming. |
| src/winapp-CLI/WinApp.Cli/Assets/msix_default_assets/MedTile.png | Updates/introduces embedded default assets for new naming. |
| src/winapp-CLI/WinApp.Cli/Assets/msix_default_assets/AppList.targetsize-24_altform-unplated.png | Updates/introduces embedded default assets for new naming. |
| src/winapp-CLI/WinApp.Cli/Assets/msix_default_assets/AppList.scale-200.png | Updates/introduces embedded default assets for new naming. |
| src/winapp-CLI/WinApp.Cli/Assets/msix_default_assets/AppList.png | Updates/introduces embedded default assets for new naming. |
| src/winapp-CLI/WinApp.Cli.Tests/ManifestUpdateAssetsCommandTests.cs | Expands tests for new variants, light assets, and ICO header expectations. |
| src/winapp-CLI/WinApp.Cli.Tests/ManifestCommandTests.cs | Updates expected generated asset filenames for new-project naming. |
| scripts/generate-llm-docs.ps1 | Updates skill description text for manifest skill. |
| docs/usage.md | Updates CLI usage docs for new asset set + --light-image. |
| docs/npm-usage.md | Updates npm wrapper docs to include lightImage. |
| docs/fragments/skills/winapp-cli/manifest.md | Updates skill fragment for SVG + light image + new asset outputs. |
| docs/cli-schema.json | Adds --light-image to schema and updates argument description. |
| .github/plugin/skills/winapp-cli/manifest/SKILL.md | Regenerated skill output reflecting updated fragment/schema. |
| .github/plugin/agents/winapp.agent.md | Updates agent docs to mention --light-image and ICO generation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Chiara Mooney (chiaramooney)
left a comment
There was a problem hiding this comment.
looks good!
Expand manifest update-assets — full MRT asset coverage, ICO output, SVG direct rendering, light theme support
Closes #321, closes #327
Summary
Building on the SVG input support added in #326, this PR makes winapp manifest update-assets generate the complete set of assets that Windows (MRT) expects, adds ICO output, and introduces --light-image for light theme variants.
What changed
Expanded asset generation
--light-image option
SVG direct rendering
New naming convention for new projects
Type of Change
Checklist
docs/fragments/skills/(if CLI commands/workflows changed)