Skip to content

fix(.storybook): saycheese component ignores pauseat prop, causing fixed 5s wait regardless of configuration#2710

Open
hieuit095 wants to merge 1 commit intopmndrs:masterfrom
hieuit095:contribai/fix/ui/saycheese-component-ignores-pauseat-prop
Open

fix(.storybook): saycheese component ignores pauseat prop, causing fixed 5s wait regardless of configuration#2710
hieuit095 wants to merge 1 commit intopmndrs:masterfrom
hieuit095:contribai/fix/ui/saycheese-component-ignores-pauseat-prop

Conversation

@hieuit095
Copy link
Copy Markdown

@hieuit095 hieuit095 commented Mar 27, 2026

🎨 UI/UX Improvement

Problem

The SayCheese component accepts a pauseAt prop (defaulting to 3000ms) but the setTimeout
always uses a hardcoded 5000ms delay, ignoring the prop entirely. This makes the pauseAt
parameter useless and causes chromatic visual tests to wait a fixed 5 seconds regardless
of what callers configure, potentially slowing down CI pipelines unnecessarily.

Severity: medium
File: .storybook/Setup.tsx

Solution

Change line 57 from:
const timer = setTimeout(() => { ... }, 5000)
To:
const timer = setTimeout(() => { ... }, pauseAt)

Changes

  • .storybook/Setup.tsx (modified)

Why

What

Checklist

  • Documentation updated (example)
  • Storybook entry added (example)
  • Ready to be merged

🤖 About this PR

This pull request was generated by ContribAI, an AI agent
that helps improve open source projects. The change was:

  1. Discovered by automated code analysis
  2. Generated by AI with context-aware code generation
  3. Self-reviewed by AI quality checks

If you have questions or feedback about this PR, please comment below.
We appreciate your time reviewing this contribution!

Closes #2709

…ait regardless of configuration

The `SayCheese` component accepts a `pauseAt` prop (defaulting to 3000ms) but the `setTimeout` 
always uses a hardcoded 5000ms delay, ignoring the prop entirely. This makes the `pauseAt` 
parameter useless and causes chromatic visual tests to wait a fixed 5 seconds regardless 
of what callers configure, potentially slowing down CI pipelines unnecessarily.


Affected files: Setup.tsx

Signed-off-by: hieuit095 <139037144+hieuit095@users.noreply.github.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

@hieuit095 is attempting to deploy a commit to the Poimandres Team on Vercel.

A member of the Team first needs to authorize it.

@codesandbox-ci
Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

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.

fix: saycheese component ignores pauseat prop, causing fixed 5s wait regardless of configuration

1 participant