Files
Zero/apps/server
Ahmet Kilinc 6a632086e3 feat: optimistic delete draft (#1981)
# Add ability to delete drafts

This PR adds the ability to delete drafts directly from the mail list interface. It implements:

1. A delete button that appears when hovering over draft items
2. Backend support for draft deletion in both Google and Microsoft mail providers
3. Optimistic UI updates to immediately remove deleted drafts from the view

The implementation follows the existing optimistic action pattern used for other mail operations, ensuring a consistent user experience.

## Type of Change

-  New feature (non-breaking change which adds functionality)

## Areas Affected

- [x] Email Integration (Gmail, Outlook, etc.)
- [x] User Interface/Experience
- [x] API Endpoints

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

- New Features
  - Delete drafts directly from the mail list via a new trash icon on each draft.
  - Immediate, optimistic removal of deleted drafts from the list for faster feedback.
  - Contextual tooltips on draft actions for clearer guidance.

- Bug Fixes
  - Corrected a visual offset issue in the action bar for consistent positioning.
  - Improved range selection behavior for multi-select actions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-11 17:57:48 +01:00
..
2025-08-11 17:57:48 +01:00
2025-05-23 19:20:17 +05:30