You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Patterns → ErrorBoundary (new page): catch-and-retry, a static fallback, and the unguarded case showing the built-in fallback that a RenderErrorHandler replaces (Let apps replace the built-in render-error fallback #1311). Each demo is its own component, so one card's clicks never recover another card's boundary.
Also: regenerated reactor-search-index.json with editorial entries for the new pages, linked the pickers page from GAPS.md, a CHANGELOG entry, and a new GalleryDeepLinkTests gate that every control's category is listed in ControlRegistry.Categories (a missing entry silently drops a page from the nav).
Linked issue / spec
Follows up #1106, #1145, #1153, #1311, #1372, #1394. Search-index conventions per docs/specs/064-search-index-framework-concepts.md.
Test plan
dotnet test tests/Reactor.Tests --no-build -p:Platform=x64 --filter-class "*Gallery*" --filter-class "*SearchIndex*" — 337 passed, 0 failed (includes the new EveryControlCategory_IsListedInCategories, mutation-checked: removing "System" from Categories makes it fail).
dotnet run --project tools/Reactor.SearchIndex -- --check — up to date (106 controls, 0 skipped).
Manual check of the running gallery over UIA (winapp ui):
All five pickers open their native dialog owned by the gallery window, and Cancel reports "Cancelled.".
ErrorBoundary: crashing → fallback → Retry works, and crashing cards 1 and 2 then retrying card 1 leaves card 2 in its fallback.
The unguarded card shows the built-in in-slot fallback, and Reset recovers it.
Grid tracks clamp at 650px (the max 100 column is capped).
Shell and sample title bars show the inherited window icon.
Risk / breaking changes
Sample-only; no framework or public API changes. The search index stays schemaVersion: 1 and only adds entries and fields. It is consumed externally (winui-search), so the new System category value and the file-pickers / error-boundary ids are additive.
…n inheritance
- New System -> File pickers page (PickFileAsync, PickMultipleFilesAsync with
FileTypeChoices, PickFolderAsync/PickMultipleFoldersAsync, PickSaveFileAsync).
- New Patterns -> ErrorBoundary page: catch-and-retry via WithKey, static
fallback, and the built-in fallback a RenderErrorHandler replaces.
- Grid page: GridSize.MinSize/MaxSize card driven by a width slider.
- TitleBar page: inherited / custom / NoIcon() variants.
- Gallery declares its window icon once via ReactorApp.Run(icon:); the shell
TitleBar now inherits it instead of hand-building the path.
- Regenerate reactor-search-index.json; editorial entries for the new pages.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f1845cfe-c63e-4596-ad7d-ce1007ea9f93
- ErrorBoundary page: each demo is its own component so a click in one card no
longer re-mounts every other card's crashed boundary; correct the comments
about what bumping a key does.
- Make System a non-control category (top-level nav, 'topics' label).
- Snippets: declare gridWidth; wrap the save write in try/catch; TitleBar icon
scope wording; use WindowIcon.FromPath like the guide and other samples.
- Program.cs: WindowIcon.FromPath("Assets/GalleryIcon.ico").
- Gate: every ControlRegistry category is listed in Categories.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f1845cfe-c63e-4596-ad7d-ce1007ea9f93
Artifact sizes for 954d35e vs the base branch (4f0bf1c).
Packages (compressed .nupkg)
Artifact
base
PR
Δ
Microsoft.UI.Reactor.nupkg
1.90 MB
1.90 MB
-57 B (0.00%)
≈
Microsoft.UI.Reactor.Advanced.nupkg
493.3 KB
493.3 KB
-12 B (0.00%)
≈
Microsoft.UI.Reactor.Devtools.nupkg
287.9 KB
287.8 KB
-7 B (0.00%)
≈
Assemblies in Microsoft.UI.Reactor
Artifact
base
PR
Δ
Reactor.Analyzers.dll
410.5 KB
410.5 KB
+0 B (0.00%)
≈
Reactor.dll
2.65 MB
2.65 MB
+0 B (0.00%)
≈
Reactor.Localization.Generator.dll
16.0 KB
16.0 KB
+0 B (0.00%)
≈
Reactor.Wrappers.Abstractions.dll
10.5 KB
10.5 KB
+0 B (0.00%)
≈
Reactor.Wrappers.Generator.dll
99.5 KB
99.5 KB
+0 B (0.00%)
≈
Assemblies in Microsoft.UI.Reactor.Advanced
Artifact
base
PR
Δ
Reactor.Advanced.dll
1.00 MB
1.00 MB
+0 B (0.00%)
≈
Assemblies in Microsoft.UI.Reactor.Devtools
Artifact
base
PR
Δ
Microsoft.UI.Reactor.Devtools.dll
787.5 KB
787.5 KB
+0 B (0.00%)
≈
No size change beyond the noise floor. ✅
✅ smaller / ⚠️ larger / ≈ within noise. Sizes come from a Release dotnet pack on the CI runner: packages are the compressed .nupkg download size, assemblies the uncompressed DLL inside it. workflow run.
Coverage for 954d35e vs the base branch (4f0bf1c) — unit + selftest merged.
Metric
base
PR
Δ
Line
87.24%
87.25%
+0.01 pp
≈
Branch
76.69% (977/1274)
76.77% (978/1274)
+0.08 pp
≈
No coverage change beyond the noise floor. ✅
✅ higher / ⚠️ lower / ≈ within noise. Δ is in percentage points; coverage is unit + selftest merged (Debug x64) on the CI runner. Cobertura reports attached to the workflow run as artifacts.
- Grid min/max card: darken the green and blue track backgrounds so white
labels meet 4.5:1 contrast (5.39:1 and 5.30:1).
- Give the width slider an accessible name ("Grid width") in the live card
and the displayed snippet; regenerate the search index.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f1845cfe-c63e-4596-ad7d-ce1007ea9f93
- Save-file snippet: also catch UnauthorizedAccessException (a read-only or
non-writable target), which is not an IOException and would otherwise escape
the async void handler; regenerate the search index.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f1845cfe-c63e-4596-ad7d-ce1007ea9f93
The copyable open-file handler omits the live card's Guard. If the selected file disappears or becomes inaccessible before FileInfo.Length runs, the read can throw IOException or UnauthorizedAccessException. Button accepts an Action, so this lambda is async void: the exception escapes instead of updating the status and can terminate an app using the snippet. Catch these file-access failures as the save snippet does, then regenerate samples/ReactorGallery/reactor-search-index.json so the exported "Pick a file" scenario receives the same protection.
- Open-file snippet: catch IOException / UnauthorizedAccessException around
the FileInfo read, matching the save snippet, so a file that vanished or is
inaccessible cannot escape the async void handler; regenerate the index.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: f1845cfe-c63e-4596-ad7d-ce1007ea9f93
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
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
Several user-facing features merged since the ReactorGallery was last updated had no gallery coverage. This adds it:
PickFileAsync,PickMultipleFilesAsyncwith labelledFileTypeChoices,PickFolderAsync/PickMultipleFoldersAsync, andPickSaveFileAsync(Complete picker helpers for multiple-file selection and saving #1372, Migrate picker helpers to Microsoft.Windows.Storage.Pickers #1394).RenderErrorHandlerreplaces (Let apps replace the built-in render-error fallback #1311). Each demo is its own component, so one card's clicks never recover another card's boundary.GridSize.MinSize/MaxSizecard driven by a width slider (Add min/max constraints to grid track sizes #1106)..NoIcon()icon variants (Add first-class window icon to ReactorApp.Run (taskbar / alt-tab) #1145, TitleBar defaults its icon from the window icon #1153). The gallery now declares its window icon once viaReactorApp.Run(icon: WindowIcon.FromPath(...)), and the shellTitleBarinherits it instead of hand-building the path.Also: regenerated
reactor-search-index.jsonwith editorial entries for the new pages, linked the pickers page fromGAPS.md, a CHANGELOG entry, and a newGalleryDeepLinkTestsgate that every control's category is listed inControlRegistry.Categories(a missing entry silently drops a page from the nav).Linked issue / spec
Follows up #1106, #1145, #1153, #1311, #1372, #1394. Search-index conventions per docs/specs/064-search-index-framework-concepts.md.
Test plan
dotnet test tests/Reactor.Tests --no-build -p:Platform=x64 --filter-class "*Gallery*" --filter-class "*SearchIndex*"— 337 passed, 0 failed (includes the newEveryControlCategory_IsListedInCategories, mutation-checked: removing"System"fromCategoriesmakes it fail).dotnet run --project tools/Reactor.SearchIndex -- --check— up to date (106 controls, 0 skipped).dotnet restore samples/ReactorGallery/ReactorGallery.csprojthendotnet build samples/ReactorGallery/ReactorGallery.csproj -c Release -p:Platform=x64 --no-restore— succeeded, 0 warnings.winapp ui):max 100column is capped).Risk / breaking changes
Sample-only; no framework or public API changes. The search index stays
schemaVersion: 1and only adds entries and fields. It is consumed externally (winui-search), so the newSystemcategory value and thefile-pickers/error-boundaryids are additive.