Files
Zero/apps/mail/app
Ahmet Kilinc 13bae8fdcb better command palette and new shortcuts (#1165)
### TL;DR

Refactored the command palette to improve the search and filter experience in the mail app.

### What changed?

- Restructured the `CommandPaletteProvider` to wrap the entire mail app layout
- Enhanced the command palette context to expose active filters and a clear filters function
- Replaced the search bar with an improved command palette button that displays active filters
- Added a "Clear" button directly in the search UI to quickly remove all filters
- Added a new keyboard shortcut (Cmd+Shift+F) to clear all filters
- Removed the '/' shortcut for search in favor of using Cmd+K for the command palette

### How to test?

1. Open the mail app and press Cmd+K to open the command palette
2. Apply some filters through the command palette
3. Verify that active filters appear in the search bar
4. Test clearing filters using:
   - The "Clear" button next to the filters
   - The Cmd+Shift+F keyboard shortcut
5. Verify that the command palette opens correctly with Cmd+K

### Why make this change?

This change improves the user experience by:
- Making active filters more visible in the UI
- Providing multiple ways to clear filters
- Streamlining the search and filter workflow
- Creating a more consistent command interface throughout the application

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
	- Added a global keyboard shortcut (Cmd+Shift+F) to clear all active filters in the mail app.
- **Refactor**
	- Streamlined the command palette and its provider for improved context management and simplified state handling.
	- Updated the mail layout to use a button for opening the command palette, displaying active filters and providing quick access to clearing filters.
	- Wrapped the entire mail layout with the command palette context provider for consistent state access.
- **Style**
	- Improved button and filter UI styling for better clarity and usability.
- **Bug Fixes**
	- Removed the single-key '/' search shortcut to prevent accidental activation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-01 03:49:23 +01:00
..
2025-05-30 08:45:23 +00:00
2025-05-22 12:38:36 +05:30
2025-05-30 08:45:23 +00:00
2025-05-27 18:13:22 -07:00