feat(chat): rotate the Stop icon slowly while processing

This commit is contained in:
2026-10-24 13:09:53 +01:00
parent 701449b416
commit 7ad1afb09f
6 changed files with 305 additions and 5 deletions
+28
View File
@@ -0,0 +1,28 @@
# Slow continuous Stop rotation
User requested the Stop button rotate slowly and continuously in chat.
- The glyph makes one linear turn every **8 seconds**, repeating for as long as
the processing turn keeps Stop visible. Native button geometry, semantics,
tooltip, hit target and interrupt action stay stationary/unchanged; Send remains
available. No transcript or transport state is driven by animation.
- A local RepaintBoundary confines painting to the icon. TickerMode silences
hidden routes; controller disposal stops animation when Stop disappears.
- System reduced motion makes the icon static and resets its angle; re-enabling
motion resumes rotation.
- Tests cover 8-second cadence/repetition, reduced-motion toggling, hidden mode,
disposal, no ancestor repaint and both native button styles/actions/geometry.
- Functional chat tests use a scoped reduced-motion test configuration so their
asynchronous pumpAndSettle remains meaningful with an intentionally infinite
animation. Dedicated animation tests explicitly enable motion and pump time.
- This exposed an existing zero-duration AnimatedSize layout mutation under
reduced motion; 701449b4 skips that size animator entirely, with two regression
cases for asynchronously arriving rows. Default-motion behavior is unchanged.
- Full gate: clean analysis and **1,860 tests pass**.
- Normal-app browser probe CHECK_STOP_ROTATION=1 passes 20 checks/14 captures per
host in `build/stop-rotation-{material,cupertino}/`. Pixel comparisons prove
motion, identical hit-target geometry and static reduced-motion output.
Both Material motion frames visually inspected.
- No backend changes, service restarts or device operations. The prior stock-Back
APK 29880696 finished and is preserved in `build/candidates/stock-chat-back-29880696/`;
final combined web/APK deployment is pending. Actual device behavior unverified.