[Frontend] Support Escape key and click-outside backdrop dismissal for BatchClaimDrawer
Overview
The recently added BatchClaimDrawer does not listen for the Escape keyboard key or dismiss cleanly when clicking outside the drawer overlay on desktop viewports.
Problem
- Keyboard-only power users cannot close the drawer using standard modal accessibility conventions (
Escapekey). - Clicking the darkened backdrop behind the drawer does not trigger close.
Proposed Changes
- Attach
keydownevent listener fore.key === "Escape"insidefrontend/src/components/dashboard/BatchClaimDrawer.tsx. - Add click handler to the backdrop overlay to invoke
onClose().
Acceptance Criteria
- [ ] Pressing
Escapecloses the drawer. - [ ] Clicking outside the drawer closes it without executing any claims.
- [ ] Test added in
frontend/src/__tests__/batch-claim-drawer.test.tsx.
@emmzydagreat has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Hi Maintainer, I’ve reviewed the issue from the available details and understand the goal. I’d like to take this on and contribute a thoughtful implementation.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @emmzydagreat to this issue.
@samjay8 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
I can fix this
ℹ️ Repo Maintainers: To accept this application, review their application or assign @samjay8 to this issue.
Congratulations, @Heazzy500! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.
🧑💻 @Heazzy500: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
This issue has been removed from the Stellar Wave Program by the repository maintainers.
@Heazzy500, you have been unassigned from this issue. If you have any questions, please reach out to the repo maintainers.