Repository navigation
fix(kds): show item add-ons on kanban cards - #1517
Conversation
Render each item add-on name and multi-quantity suffix inline as a pill on KdsKanbanBoard order cards and voided cards alongside special_instructions instead of only displaying a +count badge. Fixes #1513
|
ⓘ Your Qodo trial ends soon. Ask your workspace admin to set up billing to keep reviews running after the trial. Manage billing |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
PR Summary by QodoShow add-ons and notes inline on KDS Kanban cards
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1. Add-on pill markup is copied three times
|
Intent
Check the KDS display (
frontend/src/components/kds/KdsKanbanBoard.tsx) and fix it so item add-ons are shown directly on the KDS screen alongside item notes, instead of only showing notes (item.special_instructions) and a+{item.addons.length}count badge that requires the chef to click on the item to see what add-ons were added.Fixes #1513
What Changed
+{item.addons.length}count badge onKdsKanbanBoardorder cards with inline add-on pills (+ {addon.name}and×{addon.quantity}when quantity exceeds 1) rendered alongsideitem.special_instructions.item.special_instructionson cards in theKdsKanbanBoardvoided column as well.tests/kds-frontend-conflict.test.tsandfrontend/e2e/kds-kanban-skip-confirm.spec.tsto assert inline add-on and special instruction rendering on active and voided KDS Kanban cards.Risk Assessment
✅ Low: The change cleanly replaces the +count add-on badge in KdsKanbanBoard with inline add-on pills matching KdsTabsView and covers the behavior in both SSR component and Playwright E2E tests.
Testing
Ran targeted KDS regression and RTL checks (
npm run test:kds-frontend-conflict,npm run test:rtl-kds-server-whatsapp,npm run test:script-coverage), built the backend and static frontend (npm run build && npm run build:frontend), ran the Playwright E2E test (e2e/kds-kanban-skip-confirm.spec.ts), and drove three live scenarios against the standalone KDS server (tests/e2e-server.cjs) in Chromium—capturing screenshots of inline add-on pills and item notes in the Waiting, Preparing, and Voided Kanban columns as well as boundary rendering for items without add-ons. All checks and live scenarios passed.Pipeline
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.
npm run test:kds-frontend-conflictnpm run test:rtl-kds-server-whatsappnpm run test:script-coveragecd frontend && E2E_BASE_URL=http://127.0.0.1:4301 E2E_KDS_BASE_URL=http://127.0.0.1:4302 E2E_SERVER_APP_BASE_URL=http://127.0.0.1:4303 npx playwright test e2e/kds-kanban-skip-confirm.spec.ts --config=playwright.config.ts --project=chromiumLive Playwright Chromium verification against tests/e2e-server.cjs on :4401/:4402/:4403 capturing kds-kanban-active-addons.png, kds-kanban-voided-addons.png, and kds-kanban-stage-transition-and-no-addons.png✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.