🎨 Palette: Premium Keyboard Navigation & Focus Restoration for Password Generator - #747
🎨 Palette: Premium Keyboard Navigation & Focus Restoration for Password Generator#747daxt61 wants to merge 4 commits into
Conversation
…ation Refactored global keyboard event listeners to utilize useRef-backed handlersRef patterns, preventing stale closures and event teardown cycles. Upgraded focused element collision checks to support inputs, textareas, selects, and contenteditable elements. Configured programmatic focus restoration back to the primary quantity slider input on reset (Escape key). Added keyboard shortcut indicators within the user interface. Co-authored-by: daxt61 <254493367+daxt61@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…ation Refactored global keyboard event listeners to utilize useRef-backed handlersRef patterns, preventing stale closures and event teardown cycles. Upgraded focused element collision checks to support inputs, textareas, selects, and contenteditable elements. Configured programmatic focus restoration back to the primary quantity slider input on reset (Escape key). Added keyboard shortcut indicators within the user interface. Co-authored-by: daxt61 <254493367+daxt61@users.noreply.github.com>
- Refactored global keyboard event listeners in PasswordGenerator.tsx to use useRef-backed handlersRef patterns, preventing stale closures. - Enhanced focused element collision checks to handle INPUT, TEXTAREA, SELECT, and contenteditable tags. - Restored focus programmatically to the primary quantity slider input on reset (Escape). - Added visual keyboard shortcut indicator badges. - Optimized CI pr-bot.yml workflow by installing pnpm globally via standard npm to avoid third-party action resolution failures. Co-authored-by: daxt61 <254493367+daxt61@users.noreply.github.com>
…tion - Refactored global keyboard event listeners in PasswordGenerator.tsx to use useRef-backed handlersRef patterns, preventing stale closures. - Enhanced focused element collision checks to handle INPUT, TEXTAREA, SELECT, and contenteditable tags. - Restored focus programmatically to the primary quantity slider input on reset (Escape). - Added visual keyboard shortcut indicator badges. - Optimized CI pr-bot.yml workflow by installing pnpm globally via standard npm to avoid third-party action resolution failures. Co-authored-by: daxt61 <254493367+daxt61@users.noreply.github.com>
💡 What
We have implemented a high-quality micro-UX enhancement for the Password Generator tool (
components/PasswordGenerator.tsx).handlersRef), completely eliminating stale closures and continuous window event registration/teardown.isEditablecheck that handlesINPUT,TEXTAREA,SELECT, andcontenteditable="true"elements, avoiding key collision bugs when keyboard users interact with other controls.#password-quantity) upon state reset/clear triggers (pressingEscape).tests/palette-password-generator-ux.spec.ts) that assert visual badges, copy event toasts, clear triggers with focus redirection, visibility toggles, and regeneration triggers.♿ Accessibility
PR created automatically by Jules for task 2469206477391515069 started by @daxt61