Skip to content

Conversation

@kylecarbs
Copy link
Member

The Shimmer component uses infinite animations (repeat: Number.POSITIVE_INFINITY) which cause visual regression test failures in Chromatic. Each snapshot shows the animation at a different point, causing spurious diffs.

Changes:

  • Disabled Chromatic snapshots for ReasoningMessage.stories.tsx (all stories use Shimmer)
  • Disabled Chromatic snapshots for ActiveWorkspaceWithChat story (includes streaming reasoning messages with Shimmer)

Why disableSnapshot instead of other approaches:

  • Can't mock animations - Shimmer is an intentional UI feature we want in Storybook
  • Can't use pauseAnimationAtEnd - animation loops infinitely
  • Stories remain useful for manual testing and Storybook documentation

Generated with mux

@kylecarbs kylecarbs force-pushed the disable-shimmer-storybook branch from 1692558 to 674a39a Compare November 15, 2025 16:46
The Shimmer component uses infinite animations which cause visual regression
issues in Chromatic. Adding data-chromatic="ignore" to the component itself
tells Chromatic to ignore this element in all stories.

This approach:
- Keeps all stories enabled for visual testing
- Only ignores the animated Shimmer element pixels
- Works automatically in any story that uses Shimmer
@kylecarbs kylecarbs force-pushed the disable-shimmer-storybook branch from 674a39a to 4964a14 Compare November 15, 2025 16:47
@kylecarbs kylecarbs merged commit 7da1b59 into main Nov 15, 2025
13 checks passed
@kylecarbs kylecarbs deleted the disable-shimmer-storybook branch November 15, 2025 16:53
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