Repository navigation
Fix metric filter tag overflow - #20220
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 20220Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 20220" |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🟢 Approval recommended
The focused changes match the described behavior and introduce no unresolved correctness issues.
Pull request overview
Fixes metric filter tag overflow so visible tags remain readable and only a lone constrained tag is ellipsized.
Changes:
- Uses a zero overflow threshold.
- Applies ellipsis styling only when the first tag is the sole visible value.
- Verifies the threshold in component tests.
File summaries
| File | Description |
|---|---|
ChartFilterTags.razor |
Sets the overflow threshold to zero. |
ChartFilterTags.razor.css |
Refines tag sizing and ellipsis behavior. |
ChartFiltersTests.cs |
Verifies the configured overflow threshold. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
9123f92 to
af65c0b
Compare
Tests selector10 / 99 PR test projects · 3 PR jobs, from 3 changed files. Selected PR test projects (10 / 99)
Selected PR jobs (3)
How these were chosen — grouped by what changed
🔧 📦 affected project 📦 affected project 🧪 Job reasons
Selection computed for commit |
|
Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt. |
Documents the fix in microsoft/aspire#20220 where dimension filter tag values keep their natural width while multiple tags are displayed, and are only ellipsized when a single tag is the sole displayed value and too narrow to fit. Co-authored-by: Copilot <[email protected]>
|
Pull request created: #1696
|
|
📝 Documentation has been drafted in microsoft/aspire.dev#1696 targeting Drafted a documentation clarification for #20220 (metric filter tag overflow fix).
Note This draft PR needs human review before merging. |
|
The CI build failed due to test failure(s) that appear unrelated to the PR changes. These may be flaky tests. Suspected flaky test(s):
Suggested actions:
You can re-run the failed jobs from the workflow run page. |
Description
Metric filter tags could truncate the first value while several other values were still visible. This change keeps each tag at its natural width while multiple tags are displayed, moves values that do not fit into the overflow count, and only ellipsizes the first tag when it is the sole displayed value and still cannot fit.
The filter overflow now uses the same zero threshold as resource URL overflow. Its button-specific styling keys off FluentOverflow's
hiddenmarkers because text overflow on the wrapper does not truncate a nested button label.User-facing behavior
Metric dimension values remain fully readable whenever multiple tag buttons are displayed. A tag receives an ellipsis only when it is the only displayed value and the available width is too narrow for its full text.
Screenshots / Recordings
TODO: Add before/after screenshots. The integrated browser rendered the comparison correctly, but locally saved captures were blank. To verify manually, open a metric with several dimension values at a width where some values overflow. Multiple visible tags should remain complete; constrain the tag area until one value remains to verify that only the final visible tag is ellipsized.
Validation
dotnet test --project tests/Aspire.Dashboard.Components.Tests/Aspire.Dashboard.Components.Tests.csproj --no-launch-profile -- --filter-class "*.ChartFiltersTests" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true"peer.idtags with four values overflowed at 962 px viewport width.Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?