Repository navigation
Conversation
onDismissModalOrBlur handled the scheduled orders drawer but not the payment queue drawer, so Escape left it open. Close it after the payment and refund modals that can open above it.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
PR Summary by QodoClose the POS payment queue drawer on Escape
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
Related work
Issue / Discussion: None (audit finding F-19a)
Summary
onDismissModalOrBluron the POS page handled the scheduled orders drawer but not the payment queue drawer. The drawer has no Escape handler of its own, so Escape left it open. It is now closed after thepaymentBillandrefundModalTargetcases, so a payment or refund modal opened above the drawer closes first.Scope
Only the payment queue drawer's Escape behavior.
Verification
Commands run:
npm run lint,npm run build,npm run build:frontendnpx playwright test e2e/pos-keyboard-shortcuts.spec.ts --project=chromiumoxfmt --check,git diff --checkResults: all passed. The new test "Escape closes the payment queue drawer" fails without the fix (checked against a frontend build with the fix removed). The test mocks
multi_counter_enabledso the queue button shows, focuses the drawer search, and checks that the first Escape blurs it and the second closes the drawer.Compatibility & data safety
Cross-cutting surfaces
Developer documentation
Contributor checklist