Repository navigation
Add keyboard shortcuts for navigation and thread actions ⌨️ - #61
Merged
Merged
Conversation
- Introduced a new HotKeys component to handle keyboard shortcuts. - Implemented shortcuts for navigating to login, inbox, profile, and compose pages. - Utilized startTransition for smoother navigation transitions.
maneesha-xyz
self-requested a review
November 11, 2026 03:57
Member
|
@sanjaiyan-dev can you resolve the conflicts. This PR can be merged. |
- Updated ProfileForm to utilize react-hook-form with zod for schema validation, improving form handling and error management. - Refactored RegistrationForm to implement react-hook-form and zod, enhancing validation and state management. - Adjusted LoginPage and RegisterPage to handle form submissions with typed data. - Improved MessageBubble error handling for better readability. - Enhanced MessageGroup key generation for unique identification of messages. - Optimized ComposePage recipient parsing logic for better performance. - Updated MailPage to integrate mini-search for improved email thread searching. - Fixed sidebar resizing logic and added keyboard accessibility. - Updated Vite configuration to enable React compiler options.
Contributor
Author
|
@maneesha-xyz Thanks for the approval! The merge conflicts are now resolved—ready to merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Introduces keyboard shortcuts across the application powered by
@tanstack/react-hotkeys.Power users and high-volume email handlers often rely on keyboard navigation for speed and efficiency. To provide a familiar and seamless experience, these shortcuts adopt industry-standard keybindings used in modern email clients like Gmail (e.g., C to compose, G then I to navigate, R/A/F for thread actions).
Key Shortcuts Added
🌐 Global Navigation (
App.tsx)/compose/inbox/profile/loginNote: Route updates are wrapped in
startTransitionto keep transitions non-blocking and smooth.✉️ Thread Actions (
ThreadPage.tsx)Implementation Details
@tanstack/react-hotkeysfor lightweight, reliable sequence and combo listening.options: { enabled: !isModalOpen }on thread actions so keystrokes do not trigger background actions while drafting a message.How to Test
/compose./inbox./profile.ThreadPage.