Skip to content

Add a success animation before the booking plane morph - #6

Merged
aurorascharff merged 1 commit into
mainfrom
codex/booking-success-sequence
Sep 28, 2026
Merged

aurorascharff merged 1 commit into
mainfrom
codex/booking-success-sequence

Conversation

@aurorascharff

Copy link
Copy Markdown
Owner

A fast booking previously redirected before confirmation had a moment to register. After the booking succeeds, show a brief animated green ring and check around the plane, then navigate using the existing shared-element plane morph.

The destination prefetches during the success beat. The underlying page stays inert while confirming, validation failures return to the form, and reduced motion disables the success animation and shortens the pause. Next.js and its matching tooling are updated to canary.51 per repository instructions.

Validation: TypeScript, formatting, and Next.js compilation/runtime checks pass. ESLint has one existing import-order warning in components/ui/error-state.tsx. Verified successful booking, the plane morph, validation-error recovery, and reduced-motion completion in the local browser. Added Playwright regression assertions; the Playwright suite was not run.

Copilot AI balanced review requested due to automatic review settings September 28, 2026 23:50
@vercel

vercel Bot commented Sep 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
next16-airline Building Building Preview Sep 28, 2026 11:50pm UTC

@aurorascharff
aurorascharff merged commit 813ae25 into main Sep 28, 2026
3 of 5 checks passed
@aurorascharff
aurorascharff deleted the codex/booking-success-sequence branch September 28, 2026 23:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The reduced-motion completion path lacks automated regression coverage.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Adds a booking-success animation before navigating via the existing plane morph.

Changes:

  • Adds pending/success overlay states, inert content, and reduced-motion handling.
  • Prefetches and navigates client-side after confirmation.
  • Updates Next.js tooling and Playwright coverage.
File Description
features/​booking/​booking-actions.ts Returns successful booking details.
features/​booking/​components/​booking-step-form.tsx Coordinates success state, prefetch, and navigation.
features/​booking/​components/​confirm-overlay.tsx Implements the confirmation overlay.
features/​booking/​components/​confirm-overlay.module.css Defines success animations.
tests/​booking-flow.spec.ts Tests success and validation flows.
package.json Updates Next.js packages.
pnpm-lock.yaml Locks updated dependencies.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +44 to +45
const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
const timer = window.setTimeout(onComplete, reducedMotion ? 150 : 850);

This branch was successfully deployed

1 active deployment
Preview — bae32aa5 Deployed Sep 28, 2026 by vercel[bot]
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