coryhouse / coryhouse/react-restaurant-scriptpro

Build cart route (qty +/-, remove, clear, total, empty state)

Open
#24 0 comments 0 reactions 0 assignees View on GitHub
enhancement phase-5-cart
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Goal
Build the `/cart` page listing items with quantity controls, remove button, clear-cart button, running total, and a friendly empty state.

## Acceptance criteria
- [ ] Empty state shows a CTA back to the menu
- [ ] Each row shows image, name, qty +/-, remove button, line total
- [ ] Decrementing quantity to 0 removes the item
- [ ] Total updates live
- [ ] Playwright test covers add, update qty, remove, and persistence across reload

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the `/cart` route and trace how menu items are added and persisted. Build the cart page against the listed acceptance criteria, then add a Playwright test covering add, quantity updates, removal, and persistence across reload; done means all controls, totals, empty state, and CTA work.

Written by the indexing model from the issue text.

Assessment

Tech stack
playwright, react, typescript
Domain
frontend, testing, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.