Skip to content

fix: persist birthday cake draft state#648

Open
saurabhhhcodes wants to merge 1 commit into
adithyan-css:mainfrom
saurabhhhcodes:fix/birthday-cake-draft-state-629
Open

fix: persist birthday cake draft state#648
saurabhhhcodes wants to merge 1 commit into
adithyan-css:mainfrom
saurabhhhcodes:fix/birthday-cake-draft-state-629

Conversation

@saurabhhhcodes
Copy link
Copy Markdown

@saurabhhhcodes saurabhhhcodes commented Jun 3, 2026

Summary

  • Persist the birthday cake draft selection in localStorage so flavor, weight, and message survive navigation/refresh
  • Restore the saved birthday draft after the product catalog loads so the image, price, active buttons, and message input stay in sync
  • Add semantic classes to the existing flavor/weight buttons so restored state is reflected visually

Validation

  • node --check public/script.js
  • git diff --check
  • npm ci is blocked by the existing lockfile drift: package-lock.json is missing fsevents@2.3.3
  • npm test was attempted after a local npm install, but the current suite fails before this frontend change because tests destructure { app } from api/index.js while the module exports the Express app directly, so Supertest receives undefined; api/index.js also starts a real server during test import

Closes #629

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

@saurabhhhcodes is attempting to deploy a commit to the adithyansubramani1-1657's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

State Persistence Failure: Cake Configuration Resets on Navigation

1 participant