Skip to content

Center tag group counts over the state dot column - #21996

Closed
Maddy Montaquila (maddymontaquila) wants to merge 1 commit into
maddymontaquila/dashboard-simplifyfrom
maddymontaquila/dashboard-tag-count-align
Closed

Maddy Montaquila (maddymontaquila) wants to merge 1 commit into
maddymontaquila/dashboard-simplifyfrom
maddymontaquila/dashboard-tag-count-align

Conversation

@maddymontaquila

Copy link
Copy Markdown
Collaborator

When the sidebar groups resources by tag, each group's count badge sat 9px to the right of the state dots of the rows below it, so the two didn't read as one column.

The header and its rows end differently:

  • A row's dot center is 49px from the row's edge: a 12px action rail margin, the 20px rail, a 4px gap, 8px link padding, and half the dot.
  • The header's badge center is 40px from the edge: a 2px chevron margin, the 20px chevron, 8px link padding, and half the badge.

Compact sidebar rows now give the badge a 9px end margin, so single-digit badges are centered on the dot column. The fix only applies where rows can be hovered. On touch screens the action rail is always showing, and the full canvas lays its rows out as a table.

This is stacked on #21943 and targets its branch.

Validation

  • Checked live in TestShop, grouped by tag: every group's badge and dot centers measure the same (356px) with a 420px and a 316px sidebar, including at 316px where the type column is hidden.
  • Aspire.Dashboard.Components.Tests pass: 1400 of 1400.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@IEvangelist

Copy link
Copy Markdown
Member

Maddy Montaquila (@maddymontaquila) and Sébastien Ros (@sebastienros) looks like this one was missed?

@adamint Adam Ratzman (adamint) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. I verified the compact split-pane alignment at both target widths, and the full-canvas and touch exclusions behave as intended.

Maddy Montaquila (maddymontaquila) pushed a commit that referenced this pull request Nov 13, 2026
In the compact sidebar at rest, the rows' state dots form a column at the end of
the list. The group header's chevron sat 13px past it, so center it over that
column. Replaces #21996.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@maddymontaquila

Copy link
Copy Markdown
Collaborator Author

Replaced by #22232. With the new home page layout, the gap is between the group header's chevron and the rows' state dots, not the count badge, so that PR centers the chevron over the dot column (commit e527359) instead of moving the count.

Maddy Montaquila (maddymontaquila) added a commit that referenced this pull request Nov 13, 2026
…s, trace log previews, test flakes (#22232)

The remaining dashboard work for `release/17.0`, as one squashable PR:
one commit per change, in this order.

**Backported from `main` (cherry-picked with `-x`):**

1. #21500: Fix flaky terminal
WebSocket close handshake abort (test only)
2. #21503: Fix bUnit JS timeout
flakes in StructuredLogs/Traces/TraceDetails tests (test only)
3. #21471: Fix flaky
TerminalWebSocketTests final-output drain (test only)
4. #21924: Read resource row
state at every density in dashboard browser tests (test only)
5. #22142: Fix inconsistent
dashboard action icon colors. It conflicted with #22188 in
`ResourcesLayout.razor`: the resolution keeps the row menu on every row,
parameters included, with #22142's icon color.

**From open PRs against `main`, applied as they stand:**

6. #22228: Fix resource sidebar
hover state after selection
7. #22229: Keep resource picker
popup width consistent

**New:**

8. Render the trace log preview only for the marker that's hovered or
focused. Each log marker rendered its own hidden preview for the
tooltip, so a span with many logs built over a million hidden elements.
The page now renders one preview, filled on hover or focus. This
addresses Copilot's review on #22230.

9. Center tag group chevrons over the state dot column. In the compact
sidebar at rest, the rows' state dots form a column at the end of the
list, and the group header's chevron sat 13px past it. This replaces
#21996.
10. Fix two resource pane Playwright tests:
- `Rows_KeepDensity` expected parameter rows in the expanded list to
have no overflow menu, but every row has one now.
- `FilterAndGrouping` could hover before the feedback prompt pushed the
page down 40px, leaving the pointer on the brand. It now waits for the
prompt.

When `release/17.0` merges back into `main`, the `Rows_KeepDensity`
change has to come along with it, because #22228's version of that test
expects no menu on parameter rows.

Once this is in `release/17.0`, `release/17.0` merges back into `main`.
#22228 and #22229 can then close on `main`.

## Customer Impact

Fixes and polish to the 17.0 dashboard: icon colors, the resource
sidebar and picker, and trace pages with many logs.

## Testing

- `Aspire.Dashboard.Components.Tests`: 1,447 passed, 0 failed.
- `ResourcePaneResponsiveTests.FilterAndGrouping_*` and
`Rows_KeepDensity*`: 11 passed. `FilterAndGrouping` passed 5 runs in a
row after the fix; before it, the 2000px cases failed in about half the
runs.
- The chevron alignment was checked in the browser at 1440px: the
chevron and the dots are both centered 25px from the list's end.

## Risk

Low. Dashboard-only, and the backports are unchanged apart from the one
conflict described above.

## Regression?

No.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: David Fowler <davidfowl@gmail.com>
Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Maddy Montaquila <maddy@MadBook-Pro-20.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: James Newton-King <james@newtonking.com>
Co-authored-by: Sébastien Ros <1165805+sebastienros@users.noreply.github.com>
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