Skip to content

Animate terminal dock on first open - #20414

Merged
David Pine (IEvangelist) merged 1 commit into
mainfrom
fix/terminal-dock-first-open-animation
Sep 24, 2026
Merged

David Pine (IEvangelist) merged 1 commit into
mainfrom
fix/terminal-dock-first-open-animation

Conversation

@JamesNK

@JamesNK James Newton-King (JamesNK) commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Description

After refreshing the dashboard, the terminal dock currently appears immediately on its first open instead of sliding up. Opening it from the header button or keyboard shortcut now slides it into view on the first open, while subsequent open and close transitions remain unchanged.

User-facing usage

Refresh the dashboard, then open the terminal dock with the terminal button or the backtick shortcut. The dock slides up from the bottom of the viewport on its first appearance.

The dock is mounted only when first opened, already in its visible state. A CSS @starting-style supplies the off-screen transform needed for the existing transition to run on insertion.

Validation: dotnet build src\Aspire.Dashboard\Aspire.Dashboard.csproj --no-restore passed; the generated scoped CSS includes the starting style.

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
  • 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

@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 -- 20414

Or

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

@github-actions

Copy link
Copy Markdown
Contributor

Tests selector

13 / 99 PR test projects · 2 PR jobs, from 1 changed file.

Selected PR test projects (13 / 99)

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

Selected PR jobs (2)

extension-e2e, native-dashboard-validation


How these were chosen — grouped by what changed

⚠️ 12 of the 13 selected test projects come from a single change — src/Aspire.Dashboard/Components/Layout/TerminalDock.razor.css.

🔧 src/Aspire.Dashboard/Components/Layout/TerminalDock.razor.css (changed source)
→ 12 via the project graph: Aspire.Dashboard.Components.Tests, Aspire.Dashboard.Tests, 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)

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

Job reasons

Job Triggered by
extension-e2e • src/Aspire.Dashboard/Components/Layout/TerminalDock.razor.css
• affected project Aspire.Dashboard
native-dashboard-validation affected project Aspire.Dashboard

Selection computed for commit aec14c3.

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.

Copilot review overview

🟢 Approval recommended

The focused visual-only change correctly handles initial insertion and preserves existing transitions.

Review effort: Balanced
Findings: None

What changed in this PR

Adds the terminal dock’s missing first-open slide-up animation using CSS @starting-style.

Changes:

  • Starts the newly mounted visible dock off-screen.
  • Reuses the existing transform transition without changing later toggles.
File Description
src/​Aspire.Dashboard/​Components/​Layout/​TerminalDock.razor.css Adds the initial transform for first-open animation.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@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.

@IEvangelist
David Pine (IEvangelist) merged commit 910357c into main Sep 24, 2026
447 of 454 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 14.0 milestone Sep 24, 2026
@JamesNK

Copy link
Copy Markdown
Member Author

/backport to release/13.6

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/13.6 (link to workflow run)

Jose Perez Rodriguez (joperezr) pushed a commit that referenced this pull request Sep 24, 2026
Backport of #20414 to release/13.6

/cc @JamesNK

## Customer Impact

The terminal dock appears immediately instead of sliding into view the
first time it is opened after a dashboard refresh.

## Testing

`dotnet build src\Aspire.Dashboard\Aspire.Dashboard.csproj --no-restore`
passed, and the generated scoped CSS was verified to include the
starting style.

## Risk

Very low. This is a terminal-dock-only CSS starting style that uses the
existing transition.

## Regression?

No

Co-authored-by: James Newton-King <[email protected]>
Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 25, 2026
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.

4 participants