Skip to content

[MCP] Improve [Parameter] XML doc comments — Group G: Feedback & Display#4828

Open
AClerbois wants to merge 10 commits intomicrosoft:dev-v5from
AClerbois:users/aclerbois/dev-v5/fix-mcp-docs-group-g
Open

[MCP] Improve [Parameter] XML doc comments — Group G: Feedback & Display#4828
AClerbois wants to merge 10 commits intomicrosoft:dev-v5from
AClerbois:users/aclerbois/dev-v5/fix-mcp-docs-group-g

Conversation

@AClerbois
Copy link
Copy Markdown
Collaborator

Summary

Improves XML doc comments on [Parameter] properties in feedback and display components so the MCP server serves accurate descriptions to AI models.

Components

Component Key Fixes
FluentProgressBar / FluentSpinner Thickness name/description mismatch, swapped CSS cross-refs
FluentSkeleton Shimmer ambiguous with Visible, grammar issues
FluentRatingDisplay Critical: class summary was copy-pasted verbatim from FluentProgressBar
FluentSlider Min said "minimal" (not a valid description), ImmediateDelay grammar
FluentDatePicker / FluentTimePicker / FluentCalendar Icon same description as Appearance, empty summaries on several props

Part of

Part of #4777

Copilot AI review requested due to automatic review settings May 5, 2026 19:41
Copy link
Copy Markdown
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 PR updates C# XML doc comments for [Parameter] properties across several Feedback & Display components so the MCP server returns clearer, less ambiguous parameter descriptions to AI tooling.

Changes:

  • Adds inline usage examples (e.g., <c>Min="0"</c>) and cross-references (<see cref="..."/>) to key parameters in Slider and Progress components.
  • Clarifies parameter semantics and reduces ambiguity in Skeleton, RatingDisplay, and Calendar/DatePicker/TimePicker components.
  • Fixes incorrect/copy-pasted summaries (notably FluentRatingDisplay).

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/Core/Components/Slider/FluentSlider.razor.cs Improves Min/Max/ImmediateDelay summaries with examples and cross-references.
src/Core/Components/Skeleton/FluentSkeleton.razor.cs Clarifies Shimmer vs Visible, Circular behavior, and Pattern guidance.
src/Core/Components/RatingDisplay/FluentRatingDisplay.razor.cs Replaces incorrect class summary and strengthens parameter summaries with examples.
src/Core/Components/Progress/FluentSpinner.razor.cs Clarifies AppearanceInverted parameter intent and adds an inline usage example.
src/Core/Components/Progress/FluentProgressBar.razor.cs Improves Min/Max/Value/Color/Thickness summaries and adds examples/cross-links.
src/Core/Components/DateTime/FluentTimePicker.razor.cs Documents RenderStyle, clarifies DisabledTimeFunc, and refines StartHour/EndHour summaries.
src/Core/Components/DateTime/FluentDatePicker.razor.cs Fixes Icon vs Appearance summary mismatch and documents RenderStyle.
src/Core/Components/DateTime/FluentCalendar.razor.cs Fixes typos/wording and clarifies SelectMode and SelectDatesHover behavior.


/// <summary>
/// Gets or sets the shape
/// Gets or sets the icon used for each rating item (e.g., <c>Shape="new MyIcons.Star()"</c>).
Comment on lines +55 to 59
/// Gets or sets the icon displayed in the date picker toggle button (e.g., <c>Icon="new CoreIcons.Regular.Size20.Calendar()"</c>).
/// Defaults to the calendar icon.
/// </summary>
[Parameter]
public Icon Icon { get; set; } = new CoreIcons.Regular.Size20.Calendar().WithColor("currentColor");
/// <summary>
/// Gets or sets the predefined skeleton pattern used to define the structure or layout of the component.
/// You can customize the skeleton's appearance by using <see cref="ChildContent" />
/// Gets or sets the predefined skeleton pattern used to define the structure or layout of the component
/// <summary>
/// Gets or sets a value indicating whether the skeleton in a circular mode.
/// Gets or sets a value indicating whether the skeleton is displayed as a circle.
/// When <see langword="true"/>, both <see cref="Width"/> and <see cref="Height"/> are set to the same value to form a circle.
/// <summary>
/// Gets ot sets if the calendar items are animated during a period change.
/// Gets or sets a value indicating whether calendar items are animated during a period change.
/// By default, the animation is enabled for Months views, but disabled for Days and Years view.
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.

2 participants