Skip to content

test(stories): add confirm-exit story for KillModal - #200

Merged
nedtwigg merged 1 commit into
mainfrom
test/kill-modal-confirm-story
Jul 2, 2026
Merged

test(stories): add confirm-exit story for KillModal#200
nedtwigg merged 1 commit into
mainfrom
test/kill-modal-confirm-story

Conversation

@dormouse-bot

Copy link
Copy Markdown
Collaborator

Surfaced by the nightly code-quality survey of lib/src/stories/KillModal.stories.tsx.

KillConfirmModal has two distinct exit-animation states driven by the exit prop (KillExit = 'shake' | 'confirm'): 'shake' adds motion-safe:animate-shake-x, while 'confirm' applies kill-overlay-confirm to the overlay and kill-letter-flash to the confirm letter — a separate visual path. Only the shake variant had a story (Shaking); the confirm animation had no isolated story and so no Chromatic visual-regression coverage.

This adds a Confirming story, symmetric with the existing Shaking story, so the confirm-exit visuals are captured by Storybook/Chromatic.

Docs-adjacent, no runtime behavior change — no code path is modified, so a functional regression test doesn't apply; the story itself is the coverage.

The confirm exit animation (kill-overlay-confirm + kill-letter-flash) had
no isolated story, so it lacked Chromatic visual-regression coverage.
Mirrors the existing Shaking story for the shake exit.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 83219e3
Status: ✅  Deploy successful!
Preview URL: https://96b57973.mouseterm.pages.dev
Branch Preview URL: https://test-kill-modal-confirm-stor.mouseterm.pages.dev

View logs

@dormouse-bot

Copy link
Copy Markdown
Collaborator Author

CI is green on all functional checks (Build & Test, Standalone Smoketest, Visual Regression Tests, review, Storybook Publish — 153 stories including the new Confirming one).

The one non-passing check, UI Tests (Chromatic), is pending on "1 change must be accepted as baseline" — that's the expected outcome here: the new story introduces a fresh snapshot (the confirm-exit visual state), so it needs a maintainer to accept it as the baseline. Nothing is broken; that acceptance is the point of the PR.

@nedtwigg
nedtwigg merged commit 1f6d453 into main Jul 2, 2026
7 checks passed
@nedtwigg
nedtwigg deleted the test/kill-modal-confirm-story branch July 2, 2026 15:22
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.

2 participants