Skip to content

Conversation

@JamesNK
Copy link
Member

@JamesNK JamesNK commented May 21, 2025

Description

  • Fix trace detail resource count to include peer resources
  • Improve trace detail header to overflow details instead of wrapping

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

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 PR improves the trace detail view by updating the header layout to better handle overflow and by correcting the resource counting logic to include peer resources.

  • Updated CSS to support a grid layout for the trace header with overflow behavior.
  • Adjusted the C# logic to compute the resource count from trace spans.
  • Refactored the Razor view to incorporate the new header layout with enhanced display of trace information.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/Aspire.Dashboard/Components/Pages/TraceDetail.razor.css Added grid styling and overflow support for trace header elements.
src/Aspire.Dashboard/Components/Pages/TraceDetail.razor.cs Introduced _resourceCount and updated resource counting logic.
src/Aspire.Dashboard/Components/Pages/TraceDetail.razor Refactored header layout to use FluentOverflow and display updated trace details.

<ToolbarSection>
<div class="toolbar-left">
@Loc[nameof(Dashboard.Resources.TraceDetail.TraceDetailTraceStartHeader)] <strong title="@FormatHelpers.FormatDateTime(TimeProvider, _trace.FirstSpan.StartTime, MillisecondsDisplay.Full)">@FormatHelpers.FormatDateTime(TimeProvider, _trace.FirstSpan.StartTime, MillisecondsDisplay.Truncated)</strong>
<div slot class="trace-header">
Copy link

Copilot AI May 21, 2025

Choose a reason for hiding this comment

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

The 'slot' attribute is used without an explicit value. Please confirm whether a default slot is intended or if a specific slot name should be provided.

Copilot uses AI. Check for mistakes.
@davidfowl
Copy link
Member

dashboard changes should include screenshots 😄

@JamesNK
Copy link
Member Author

JamesNK commented May 21, 2025

trace-detail-overflow

The copilot button (not present here) adds more horizontal space. Overflowing the values is better than wrapping toolbar across two lines.

@JamesNK JamesNK merged commit b244630 into main May 21, 2025
254 checks passed
@JamesNK JamesNK deleted the jamesnk/tracedetail-improvements branch May 21, 2025 23:48
@github-actions github-actions bot locked and limited conversation to collaborators Jun 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants