Repository navigation
feat(reactive): add Uno.HotTesting.Reactive handwritten feed mocks (#3149) - #3154
Merged
Merged
Conversation
|
Devid Worker seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
dr1rrb
marked this pull request as ready for review
August 24, 2026 18:45
dr1rrb
force-pushed
the
dev/devid/issue-3149-feed-mocks
branch
from
August 24, 2026 21:31
33e002f to
9def5c4
Compare
dr1rrb
enabled auto-merge
August 24, 2026 21:32
kazo0
approved these changes
Aug 24, 2026
Contributor
|
|
dr1rrb
force-pushed
the
dev/devid/issue-3149-feed-mocks
branch
from
August 25, 2026 01:30
9def5c4 to
58191e5
Compare
1 of 4 tasks
agneszitte
pushed a commit
that referenced
this pull request
Nov 3, 2026
- The docs validation only runs for PRs that touch a .md file. This PR does (HowTo-DefineRoutes.md, from #3254), so it fails on 7.3 files it didn't change - Same fix as main's ec84019 (from #3153): MD040 in specs/004 and specs/006, "nuspecs" and "unmaterialized" in the dictionary, "recognize" in specs/lessons.md, MD059/MD060 off - Also adds "rehook" (specs/009), which main got with #3154 (cherry picked from commit ec84019) Co-Authored-By: Claude Opus 5.5 <[email protected]>
4 of 6 tasks
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.
GitHub Issue (If applicable): closes #3149
PR Type
What is the current behavior?
Uno.Extensions has no runtime helper for hand-writing MVUX view-model mocks in tests or
design-time scenarios. Developers have to assemble MVUX feed states manually and there is
no documented, reusable vocabulary for pinned feed states.
What is the new behavior?
Adds a deliberately small runtime assembly
Uno.HotTesting.Reactive(assembly, packageand namespace identical) exposing
FeedMockandListFeedMockfactories that buildcold, finite feeds pinned to a chosen MVUX state:
work, so Loading/Refreshing stay visually pinned and replay on re-subscription.
Empty=Option.None; listEmpty=Some(empty)preserved through aforwarding list adapter;
Nonefor a list is expressed explicitly viaListFeedMock.Message.Undefinedreplays aNonedata message thenUndefinedso the final undefinedvalue stays an observable data-axis change through state replay.
Refreshingsets data plus transient progress; it does not touch the internalrefresh axis.
Usage is handwritten: the developer writes a record/class shaped like the page view
model, exposes
IFeed<T>/IListFeed<T>properties matching the XAML bindings,initialises them with these factories, and assigns the instance to
Page.DataContext.Property naming, feed-shape compatibility and DataContext injection remain explicit user
responsibilities; there is no generator and no generated code.
Docs: the MVUX testing reference page
doc/Reference/Reactive/testing.mddocuments thehandwritten workflow with scalar and list examples. Design/scope is captured in
specs/009-hot-testing-reactive-feed-mocks/spec.md.PR Checklist
Focused tests: 22 passed, 0 failed (Release). The uno-dev image ships only the .NET 10
runtime, so the net9.0 test host was executed with DOTNET_ROLL_FORWARD=Major. Release
package creation for Uno.HotTesting.Reactive succeeded (net9.0 assembly, XML docs,
symbols, Uno.Extensions.Reactive dependency).
Other information
Opened as a draft. This is the reusable runtime foundation for the broader Hot Testing
direction (spec 013). Intentionally out of scope: source generators / generated
view-model factories, generated records or automatic property-name matching,
MockCommand, timed scripts or selection helpers, and gallery/marketing docs.
Internal Issue (If applicable): n/a