Skip to content

Interrupt stale homepage AppHost animations - #1950

Merged
David Pine (IEvangelist) merged 2 commits into
mainfrom
ievangelist-fix-homepage-animation-race
Oct 26, 2026
Merged

David Pine (IEvangelist) merged 2 commits into
mainfrom
ievangelist-fix-homepage-animation-race

Conversation

@IEvangelist

Copy link
Copy Markdown
Member

Summary

  • interrupt in-progress AppHost editor animations when a newer selector change arrives
  • immediately render the latest requested language and resource variant
  • add a regression test for clicking API and then C# before the TypeScript animation completes

Validation

  • Passed: pnpm --dir src/frontend exec eslint src/components/AppHostBuilder.client.ts tests/e2e/homepage.spec.ts --max-warnings 0
  • Passed: pnpm --dir src/frontend exec prettier --check src/components/AppHostBuilder.client.ts
  • Passed: pnpm --dir src/frontend exec playwright test tests/e2e/homepage.spec.ts --grep "interrupts a stale AppHost edit" --project=desktop-chromium
  • Passed: pnpm --dir src/frontend exec playwright test tests/e2e/custom-components.spec.ts --grep "[Aa]pp[Hh]ost builder" --project=desktop-chromium

Copilot AI balanced review requested due to automatic review settings October 26, 2026 14:17

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 regression test must wait for an actual edit state so it cannot pass without exercising animation interruption.

1 open issue
What changed in this PR

This PR updates the homepage AppHost editor to stop stale animations and render the latest selector choices.

Changes:

  • Track request revisions and interrupt outdated animation steps.
  • Render the latest language and resource variant when an edit is interrupted.
  • Add a regression test for switching to C# during a TypeScript edit.
File Description
src/​frontend/​tests/​e2e/​homepage.spec.ts Adds a stale-edit interruption regression test.
src/​frontend/​src/​components/​AppHostBuilder.client.ts Adds revision checks and renders the latest state after interruption.

Review effort: Balanced

Comment thread src/frontend/tests/e2e/homepage.spec.ts Resolved
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1950. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1950 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

@IEvangelist
David Pine (IEvangelist) enabled auto-merge (squash) October 26, 2026 16:03

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I checked the AppHost animations manually, ran the tests listed in the description, and asked Claude to examine the changes. All results were positive. Ready to merge.

@IEvangelist
David Pine (IEvangelist) merged commit 4303038 into main Oct 26, 2026
19 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the ievangelist-fix-homepage-animation-race branch October 26, 2026 16:16
Sébastien Ros (sebastienros) added a commit that referenced this pull request Nov 11, 2026
- TypeScript API parameter descriptions (#2009)
- No locale prefix or hreflang alternates for English-only pages: the footer
  language picker (#1988), hreflang (#1987) and the sidebar Glossary link (#1989)
- Footer link to the Aspire MIT license
- Homepage: environment fade (#1993), stale AppHost animations (#1950), the
  dashboard carousel keeps the selected slide on activation
- Search: first-result highlight with out-of-order renders (#2007), hover cursor
  flicker (#1977)
- Live status over WebSocket (#1942) and twoslash hover, merged into the copies
  of the frontend scripts
- Icon data 5.40.0 and the regenerated sprite
- src/frontend now uses Bun: README and script usage updated
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