Skip to content

Unify dashboard splitter styling - #22718

Open
James Newton-King (JamesNK) wants to merge 4 commits into
mainfrom
jamesnk/dashboard-splitter-styles
Open

James Newton-King (JamesNK) wants to merge 4 commits into
mainfrom
jamesnk/dashboard-splitter-styles

Conversation

@JamesNK

@JamesNK James Newton-King (JamesNK) commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Description

Dashboard dividers had different grab widths, hover feedback, and resize cursors depending on the page. The resource selector, Metrics, details panes, GenAI visualizer, and terminal dock now share the same styling without replacing their resize logic.

User-facing usage

Select a resource in TestShop, then hover over the divider between the resource list and the workspace. The thin idle line stays visible; after 400 ms, a centered 3 px purple line fades in over 200 ms. Drag anywhere within the transparent 9 px grab area to resize the pane. The highlight appears immediately when dragging and the resize cursor stays visible even if the pointer moves past the divider.

Screenshots / Recordings

These TestShop comparisons show the original and PR styles at rest, after the hover transition finishes, and during a drag. The resource selector uses the same fully settled hover color before and after; the highlight grows from 2 px to 3 px.

Resource selector

Resource selector divider in light mode: before and after at rest, after hover settles, and during drag

Resource selector divider in dark mode: before and after at rest, after hover settles, and during drag

Metrics

Metrics divider in light mode: before and after at rest, after hover settles, and during drag

Metrics divider in dark mode: before and after at rest, after hover settles, and during drag

Structured Logs details

Structured Logs details divider in light mode: before and after at rest, after hover settles, and during drag

Structured Logs details divider in dark mode: before and after at rest, after hover settles, and during drag

Validation

  • Four targeted dashboard Playwright tests passed for resource pane persistence, delayed render handling, legacy details resizing, and terminal dock resizing.
  • Live Playwright checks in TestShop verified that the grab area stays transparent, the highlight is centered, the keyboard-focus outline is gone, and the hover delay and fade have the expected timing.
  • Sampled the recaptured resource selector hover pixels: both versions display #512BD4 in light mode and #B9AAEE in dark mode at the end of the transition.

Fixes # (issue)

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 (existing scenario tests run; no new tests added)
  • 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 docs?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, does it need security review?
        • Yes
        • No
    • No

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 22718

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 22718"

@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the shared dashboard splitter styling changes.

No open issues 🎉

What changed in this PR

Unifies dashboard splitter styling across the resource selector, Metrics, details panes, GenAI visualizer, and terminal dock while retaining their existing resize logic.

Changes:

  • Introduces shared 9 px grab areas, thin idle dividers, and delayed purple hover highlights.
  • Replaces page-specific splitter styling with shared rules.
  • Uses drag-state styling to show immediate highlights and preserve resize cursors beyond divider bounds.
File Description
src/​Aspire.Dashboard/​wwwroot/​css/​design.css Defines the shared splitter grab-size token.
src/​Aspire.Dashboard/​wwwroot/​css/​controls.css Centralizes divider geometry, highlights, focus styling, and cursors.
src/​Aspire.Dashboard/​Components/​Pages/​Metrics.razor Removes local bar sizing and clarifies mobile collapse behavior.
src/​Aspire.Dashboard/​Components/​Legacy/​Pages/​Metrics.razor Adopts shared sizing and clarifies mobile collapse behavior.
src/​Aspire.Dashboard/​Components/​Layout/​TerminalDock.razor.js Tracks drag state for shared styling and cleanup.
src/​Aspire.Dashboard/​Components/​Layout/​TerminalDock.razor.css Aligns handle geometry and header spacing with shared visuals.
src/​Aspire.Dashboard/​Components/​Layout/​TerminalDock.razor Replaces Fluent styling classes with the shared handle class.
src/​Aspire.Dashboard/​Components/​Layout/​ResourcesLayout.razor.js Delegates resize cursors to CSS and clears drag styling on disposal.
src/​Aspire.Dashboard/​Components/​Layout/​ResourcesLayout.razor.css Adopts shared handle geometry and avoids duplicate divider lines.
src/​Aspire.Dashboard/​Components/​Layout/​ResourcesLayout.razor Adds the shared splitter handle class.
src/​Aspire.Dashboard/​Components/​Dialogs/​GenAIVisualizerDialog.razor.css Removes dialog-specific splitter overrides.
src/​Aspire.Dashboard/​Components/​Dialogs/​GenAIVisualizerDialog.razor Removes explicit bar sizing.
src/​Aspire.Dashboard/​Components/​Controls/​SummaryDetailsView.razor Uses shared sizing for details splitters.

Review effort: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

Copy link
Copy Markdown
Contributor

Retrying the failed CI jobs for this pull request from the CI run attempt. The rerun is being tracked in the rerun attempt.

@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block the update that unifies splitter styling across the Aspire Dashboard.

No open issues 🎉

Review effort: Balanced

@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot November 26, 2026 07:32
@github-actions

This comment has been minimized.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The new 250px sidebar minimum leaves at most 61px for messages on a 320px mobile screen, requiring responsive sizing and resize bounds.

1 open issue

Review effort: Balanced

<FluentMultiSplitter Style="height:100%" BarSize="5px">
<FluentMultiSplitterPane Size="30%">
<FluentMultiSplitter Style="height:100%">
<FluentMultiSplitterPane Size="30%" Min="250px" Max="500px" Style="min-width: 250px; max-width: 500px">
@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

14 / 101 PR test projects · 2 PR jobs, from 16 changed files.

Selected PR test projects (14 / 101)

Aspire.Dashboard.Components.Tests, Aspire.Dashboard.Tests, Aspire.Hosting.Azure.Kubernetes.Tests, Aspire.Hosting.Azure.Tests, Aspire.Hosting.Blazor.Tests, Aspire.Hosting.Dotnet.Tests, Aspire.Hosting.DotnetTool.Tests, Aspire.Hosting.JavaScript.Tests, Aspire.Hosting.Radius.Tests, Aspire.Hosting.Testing.Tests, Aspire.Hosting.Tests, Aspire.Playground.Tests, Aspire.Templates.Tests, Infrastructure.Tests

Selected PR jobs (2)

extension-e2e, native-dashboard-validation


How these were chosen — grouped by what changed

⚠️ 10 of the 14 selected test projects come from a single change — src/Aspire.Dashboard/Components/Controls/SummaryDetailsView.razor.

🔧 src/Aspire.Dashboard/Components/Controls/SummaryDetailsView.razor (changed source)
→ 10 via the project graph: Aspire.Hosting.Azure.Kubernetes.Tests (3 hops), Aspire.Hosting.Azure.Tests (2 hops), Aspire.Hosting.Blazor.Tests (2 hops), Aspire.Hosting.Dotnet.Tests (2 hops), Aspire.Hosting.DotnetTool.Tests (2 hops), Aspire.Hosting.JavaScript.Tests, Aspire.Hosting.Radius.Tests (2 hops), Aspire.Hosting.Testing.Tests, Aspire.Hosting.Tests, Aspire.Playground.Tests (2 hops)

🧪 tests/Aspire.Dashboard.Components.Tests/JavaScript/TerminalDock.test.mjs (changed test)
→ 2 directly: Aspire.Dashboard.Components.Tests, Infrastructure.Tests

📦 affected project Aspire.Dashboard
→ 1 test: Aspire.Templates.Tests

🔧 src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor.js (changed source)
→ 1 directly: Infrastructure.Tests

🔧 src/Aspire.Dashboard/Components/Layout/TerminalDock.razor.js (changed source)
→ 1 directly: Infrastructure.Tests

🔧 src/Aspire.Dashboard/wwwroot/css/controls.css (changed source)
→ 1 via the project graph: Aspire.Dashboard.Tests

Job reasons

Job Triggered by
extension-e2e • src/Aspire.Dashboard/Components/Controls/SummaryDetailsView.razor, src/Aspire.Dashboard/Components/Dialogs/GenAIVisualizerDialog.razor, src/Aspire.Dashboard/Components/Dialogs/GenAIVisualizerDialog.razor.css, src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor, src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor.css, src/Aspire.Dashboard/Components/Layout/ResourcesLayout.razor.js, src/Aspire.Dashboard/Components/Layout/TerminalDock.razor, src/Aspire.Dashboard/Components/Layout/TerminalDock.razor.css, src/Aspire.Dashboard/Components/Layout/TerminalDock.razor.js, src/Aspire.Dashboard/Components/Legacy/Pages/Metrics.razor, src/Aspire.Dashboard/Components/Pages/Metrics.razor, src/Aspire.Dashboard/Components/Pages/Metrics.razor.cs, src/Aspire.Dashboard/Components/Pages/Metrics.razor.js, src/Aspire.Dashboard/wwwroot/css/controls.css, src/Aspire.Dashboard/wwwroot/css/design.css
• affected project Aspire.Dashboard
native-dashboard-validation affected project Aspire.Dashboard

Selection computed for commit 3f54814.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The fixed 250px sidebar minimum leaves the message pane unusably narrow on mobile and prevents users from reclaiming space by dragging.

2 open issues

Review effort: Balanced


body :is(.fluent-multi-splitter > .fluent-multi-splitter-bar[status="resizable"], .aspire-splitter-handle):hover::after {
opacity: 1;
transition: opacity 200ms ease 400ms;

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants