Skip to content

fix(mark): restrict sine wave animation to run-type actions only#352

Merged
matt2e merged 2 commits intomainfrom
non-run-actions-getting-sine-animation
Mar 5, 2026
Merged

fix(mark): restrict sine wave animation to run-type actions only#352
matt2e merged 2 commits intomainfrom
non-run-actions-getting-sine-animation

Conversation

@matt2e
Copy link
Contributor

@matt2e matt2e commented Mar 5, 2026

Summary

  • Adds actionType to RunningAction, ActionStatusEvent, and related structs so the frontend knows the action type without re-querying
  • Restricts the sine wave animation and default "running" phase fallback to only apply to run-type actions, preventing non-run actions (e.g. build, lint) from incorrectly showing the sine wave

🤖 Generated with Claude Code

matt2e and others added 2 commits March 5, 2026 16:24
Pre-run actions (e.g. npm install) incorrectly displayed the sine wave
animation meant for run actions. This adds actionType to RunningActionInfo
so the frontend can distinguish action types, guards the default RunPhase
fallback on reload to only apply to run actions, and adds an action type
check to the secondary actions sine wave rendering.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Address code review feedback from the previous commit:

- Add action_type to Rust ActionStatusEvent so the frontend receives it
  with status change events
- Change RunningActionInfo.actionType from string to ActionType for type
  safety
- Add actionType field to the RunningAction type in BranchCard and
  populate it at both push sites (status event handler and
  loadRunningActions)
- Replace the actions.find() lookup in the template with
  execution.actionType, eliminating the race condition where the actions
  array may not be loaded yet

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@matt2e matt2e requested review from baxen and wesbillman as code owners March 5, 2026 06:19
@matt2e matt2e merged commit e126595 into main Mar 5, 2026
4 checks passed
@matt2e matt2e deleted the non-run-actions-getting-sine-animation branch March 5, 2026 06:23
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.

1 participant