Skip to content

feat: [TBB] extract SpinnerAnimator for loading animations in AgentStatusLabel (Thinking Part1)#146

Merged
ethanyhou merged 2 commits into
mainfrom
ethan/extract-spinner
May 8, 2026
Merged

feat: [TBB] extract SpinnerAnimator for loading animations in AgentStatusLabel (Thinking Part1)#146
ethanyhou merged 2 commits into
mainfrom
ethan/extract-spinner

Conversation

@ethanyhou
Copy link
Copy Markdown
Contributor

This PR is a prerequisite to enable thinking in chat view as the thinking status also needs a spinner. Extract a SpinnerAnimator to reuse.

Copilot AI review requested due to automatic review settings May 7, 2026 12:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extracts the spinner animation logic into a reusable SpinnerAnimator utility, and updates AgentStatusLabel to use it—preparing the chat UI to reuse the same loading spinner for upcoming “thinking” states.

Changes:

  • Added SpinnerAnimator to encapsulate SWT timer-driven frame animation and per-frame Image disposal.
  • Refactored AgentStatusLabel to delegate spinner start/stop to SpinnerAnimator, removing inline animation logic.
  • Tweaked AgentStatusLabel layout margins to reduce default padding.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/swt/SpinnerAnimator.java New reusable spinner animation helper that updates a Label and manages frame image lifecycle.
com.microsoft.copilot.eclipse.ui/src/com/microsoft/copilot/eclipse/ui/chat/AgentStatusLabel.java Replaces local spinner animation implementation with SpinnerAnimator usage.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@ethanyhou ethanyhou changed the title feat: extract SpinnerAnimator for loading animations in AgentStatusLabel feat: [TBB] extract SpinnerAnimator for loading animations in AgentStatusLabel May 7, 2026
@ethanyhou ethanyhou changed the title feat: [TBB] extract SpinnerAnimator for loading animations in AgentStatusLabel feat: [TBB] extract SpinnerAnimator for loading animations in AgentStatusLabel (Thinking Part1) May 8, 2026
@ethanyhou ethanyhou merged commit 0be3112 into main May 8, 2026
4 checks passed
@ethanyhou ethanyhou deleted the ethan/extract-spinner branch May 8, 2026 09:00
@jdneo
Copy link
Copy Markdown
Member

jdneo commented May 15, 2026

#203

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