Skip to content

Conversation

@ChrisPulman
Copy link
Member

What kind of change does this PR introduce?

Xml Docs update

What is the new behavior?

Enhanced XML documentation for key ReactiveUI interfaces and classes, including remarks and code examples.
Improves discoverability and developer experience by clarifying usage patterns for activation, routing, interaction, suspension, and view binding APIs.

What might this PR break?

N/A

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:

Enhanced XML documentation for key ReactiveUI interfaces and classes, including remarks and code examples. Improves discoverability and developer experience by clarifying usage patterns for activation, routing, interaction, suspension, and view binding APIs.
@codecov
Copy link

codecov bot commented Dec 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 40.33%. Comparing base (170db84) to head (c7206de).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4233      +/-   ##
==========================================
+ Coverage   32.07%   40.33%   +8.25%     
==========================================
  Files         146      146              
  Lines        6653     6655       +2     
  Branches     1024     1025       +1     
==========================================
+ Hits         2134     2684     +550     
+ Misses       4347     3779     -568     
- Partials      172      192      +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request enhances XML documentation across ReactiveUI's core interfaces and classes by adding comprehensive remarks sections and practical code examples. The changes improve developer experience by clarifying usage patterns for activation, routing, interactions, suspension, and view binding APIs without modifying any functional code.

Key changes:

  • Added detailed remarks sections explaining when and how to use key ReactiveUI interfaces
  • Included practical code examples wrapped in CDATA sections demonstrating typical usage patterns
  • Improved existing XML summaries for better clarity and consistency

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
SuspensionHost.cs Added remarks explaining the suspension host's role and usage example
RoutingState.cs Enhanced documentation with navigation example and improved command descriptions
RoutedViewHost.cs Added detailed remarks about UIKit integration and example setup code
AutoSuspendHelper.cs Replaced outdated AppDelegate instructions with complete usage example
ViewModelViewHost.cs Added remarks about runtime view resolution and example configuration
ObservableAsPropertyHelper.cs Added example demonstrating derived property pattern
IViewFor.cs Enhanced interface documentation with view activation example
ISuspensionHost.cs Added comprehensive suspension lifecycle example
IScreen.cs Improved documentation with navigation coordinator example
IRoutableViewModel.cs Added example showing proper implementation pattern
IActivatableViewModel.cs Added activation pattern example with WhenActivated usage
InteractionContext.cs Enhanced documentation with handler example
Interaction.cs Added complete view model and view interaction example, fixed grammar
IInteraction.cs Added comprehensive example demonstrating interaction registration
IReactiveUIBuilder.cs Added fluent builder configuration example
IReactiveBinding.cs Added example showing binding lifecycle and Changed observable
PropertyBindingMixins.cs Added common binding patterns example
InteractionBindingMixins.cs Added interaction binding example within activation
IActivationForViewFetcher.cs Added custom platform fetcher implementation example


/// <summary>
/// Gets a interaction context which is used to provide information about the interaction.
/// Gets an interaction context which is used to provide information about the interaction.
Copy link

Copilot AI Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The article should be "an" instead of "a" before "interaction" since "interaction" starts with a vowel sound.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Dec 17, 2025

@glennawatson I've opened a new pull request, #4234, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI commented Dec 17, 2025

@glennawatson I've opened a new pull request, #4235, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits December 17, 2025 13:22
…error message (#4234)

Addresses grammar feedback from #4233 regarding incorrect article usage
before words starting with vowel sounds.

## Changes

- **UnhandledInteractionException.cs line 28**: Changed "a input
handler" → "an input handler" in XML documentation
- **UnhandledInteractionException.cs line 31**: Changed "a Interaction"
→ "an Interaction" in exception message string
…4235)

Corrects grammar in error message from "a Interaction" to "an
Interaction" since "Interaction" begins with a vowel sound.

## Changes
- Updated `UnhandledInteractionException.cs` constructor error message
to use correct article

```csharp
// Before
: this("Failed to find a registration for a Interaction.")

// After
: this("Failed to find a registration for an Interaction.")
```

Addresses feedback from parent PR #4233.

<!-- START COPILOT CODING AGENT TIPS -->
---

✨ Let Copilot coding agent [set things up for
you](https://github.com/reactiveui/ReactiveUI/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: glennawatson <5834289+glennawatson@users.noreply.github.com>
@glennawatson glennawatson merged commit fe2a8c7 into main Dec 17, 2025
9 of 10 checks passed
@glennawatson glennawatson deleted the UpdateXmlDocs branch December 17, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants