Repository navigation
feat(pos): compact 2-tier cart panel layout - #1438
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
PR Summary by QodoCompact POS cart into a two-tier layout
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Cashiers get undersized cart action targets
|
Redesign the POS CartPanel to a compact 2-tier item layout with inline de-boxed Pax stepper, unit-price caption, inline dot-separated addons and special instructions, compact action cluster, single-line order notes input, and merged items/subtotal footer row so 5-6+ items fit on desktop viewports. Fixes #1436
661bbbe to
2a73555
Compare
Intent
Redesign the POS CartPanel (
frontend/src/components/pos/CartPanel.tsx) to the compact 2-tier layout (Redesign 2 from~/Downloads/imagerd2.png, paired with the two refinements from Redesign 1~/Downloads/Cart panel – dense [email protected]) so that 5-6+ cart items are visible at once on a standard desktop viewport instead of ~2 items, while keeping touch-friendly POS controls, full feature parity, and passing all layout-integrity and RTL checks (tracked in #1436).Follow the full Obra Superpowers engineering workflow (research, spec/plan in
~/tools/firstmate/data/flocafe-pos-cart-redesign-r1/spec.md, implementation, comprehensive Playwright visual screenshot verification across viewports/order types/addons/notes/RTL, andno-mistakesvalidation pipeline).Keep PR title
<= 50chars, single-line PR body paragraphs, and includeFixes #1436.What Changed
CartPanelitems into a compact 2-tier row layout displaying the item name, line total, and multi-quantity unit price on the top row, with inline dot-separated add-ons/instructions, price-override indicator, icon action buttons, and a bordered quantity pill on the second row.pax) pill, tightened list spacing, and expanded icon button hit areas viaafter:-inset-2pseudo-elements for touch ergonomics.Fixes #1436
Risk Assessment
✅ Low: The change is a well-bounded UI layout redesign in CartPanel.tsx that preserves all data-testids, accessibility labels, action handlers, logical RTL CSS properties, and pricing calculations.
Testing
Ran RTL and cart unit suites (
test:rtl-dashboard-pos-common,test:cart-price-override,test:cart-variant-identity), built the backend and static desktop frontend, and drove 33 live Playwright E2E scenarios acrosslayout-integrity.spec.ts,pos-keyboard-shortcuts.spec.ts,multi-counter-ordering.spec.ts,server-app-ordering.spec.ts, and a targeted visual verification run capturing 8 screenshots in the evidence directory; all checks and scenarios passed.cd frontend && npx playwright test e2e/pos-keyboard-shortcuts.spec.ts e2e/multi-counter-ordering.spec.ts --project=chromiumand ~/.no-mistakes/evidence/01M6HDZAWSMZXDD6HSRCKCFZWM…cd frontend && npx playwright test e2e/server-app-ordering.spec.ts --project=chromiumcd frontend && npx playwright test e2e/layout-integrity.spec.ts -g "POS " --project=chromiumand ~/.no-mistakes/evidence/01M6HDZAWSMZXDD6HSRCKCFZWM/cart-redesign-1024x600.png and…npm run test:rtl-dashboard-pos-commonand ~/.no-mistakes/evidence/01M6HDZAWSMZXDD6HSRCKCFZWM/cart-redesign-rtl-fa-1440x900.pngPipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
cd frontend && npx playwright test e2e/pos-keyboard-shortcuts.spec.ts e2e/multi-counter-ordering.spec.ts --project=chromiumand ~/.no-mistakes/evidence/01M6HDZAWSMZXDD6HSRCKCFZWM…cd frontend && npx playwright test e2e/server-app-ordering.spec.ts --project=chromiumcd frontend && npx playwright test e2e/layout-integrity.spec.ts -g "POS " --project=chromiumand ~/.no-mistakes/evidence/01M6HDZAWSMZXDD6HSRCKCFZWM/cart-redesign-1024x600.png and…npm run test:rtl-dashboard-pos-commonand ~/.no-mistakes/evidence/01M6HDZAWSMZXDD6HSRCKCFZWM/cart-redesign-rtl-fa-1440x900.pngnpm run test:rtl-dashboard-pos-commonnpm run test:cart-price-overridenpm run test:cart-variant-identitynpm run build && npm run build:frontendcd frontend && npx playwright test e2e/layout-integrity.spec.ts -g "POS " --project=chromiumcd frontend && npx playwright test e2e/pos-keyboard-shortcuts.spec.ts e2e/multi-counter-ordering.spec.ts --project=chromiumcd frontend && npx playwright test e2e/server-app-ordering.spec.ts --project=chromiumcd frontend && npx playwright test e2e/cart-redesign-verification.spec.ts --project=chromium✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.