Skip to content

[MCP] Improve [Parameter] XML doc comments — Group B: Overlays & Notifications#4824

Open
AClerbois wants to merge 10 commits into
microsoft:dev-v5from
AClerbois:users/aclerbois/dev-v5/fix-mcp-docs-group-b
Open

[MCP] Improve [Parameter] XML doc comments — Group B: Overlays & Notifications#4824
AClerbois wants to merge 10 commits into
microsoft:dev-v5from
AClerbois:users/aclerbois/dev-v5/fix-mcp-docs-group-b

Conversation

@AClerbois
Copy link
Copy Markdown
Collaborator

Summary

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

Components

Component Key Fixes
FluentPopover Height copy-paste said "width"
FluentTooltip SpacingVertical/SpacingHorizontal had swapped descriptions
FluentDialog OnStateChange wrong description, ambiguous ActionTemplate
FluentToast Body/BodyContent missing cross-refs, QuickAction1/QuickAction2 vague
FluentMessageBar Title terminology mismatch, Icon override not documented

Part of

Part of #4777

Copilot AI review requested due to automatic review settings May 5, 2026 19:40
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

Note

Copilot was unable to run its full agentic suite in this review.

This PR updates XML documentation on [Parameter] properties across overlay and notification components so MCP-served metadata is more accurate for consumers and AI tools.

Changes:

  • Corrects copied/swapped parameter descriptions in popover and tooltip components.
  • Clarifies toast and message bar parameter docs with examples, cross-references, and behavior notes.
  • Improves dialog-related parameter docs to better distinguish content areas and lifecycle callbacks.

Reviewed changes

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

Show a summary per file
File Description
src/Core/Components/Tooltip/FluentTooltip.razor.cs Refines UseTooltipService docs and fixes spacing parameter descriptions.
src/Core/Components/Toast/FluentToast.razor.cs Expands toast parameter docs for type, body/body content, actions, and dismiss behavior.
src/Core/Components/Popover/FluentPopover.razor.cs Fixes the Height summary text.
src/Core/Components/MessageBar/FluentMessageBar.razor.cs Clarifies icon override, title/content usage, dismiss behavior, and timestamp docs.
src/Core/Components/Dialog/FluentDialogBody.razor.cs Adds cross-references to distinguish title, title action, and footer action templates.
src/Core/Components/Dialog/FluentDialog.razor.cs Clarifies ChildContent usage and corrects OnStateChange documentation.

/// <summary>
/// Use ITooltipService to create the tooltip, if this service was injected.
/// If the <see cref="ChildContent"/> is dynamic, set this to false. Default, true.
/// Gets or sets a value indicating whether the <see cref="ITooltipService"/> is used to render the tooltip.
Comment on lines +52 to +53
/// Gets or sets the child content rendered inside the dialog when not using the <see cref="DialogService"/>.
/// When using the <see cref="DialogService"/>, use <see cref="Instance"/> instead.
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