feat: quick actions on email rows (read/unread, star, trash)

- EmailRow shared component with hover action buttons: mark read/unread, star/unstar, trash
- Optimistic UI — local state patches immediately on click; row fades and becomes non-interactive during the API call
- Trashed rows disappear from the current folder view via onRemove callback
- Backend: EmailController single-email endpoints (POST /email/{id}/read|unread|star|unstar|trash|untrash)
- Star/Unstar added to CleanupActionType enum and CleanupService (maps to STARRED Gmail label via BatchModifyAsync)
- UserId scope enforced in ResolveTargetsAsync — a user can only act on their own emails
- action buttons use stopPropagation so clicking them does not open Gmail

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
cesnimda
2026-06-30 20:18:44 +02:00
parent 498536451e
commit 2f6d6abdd3
8 changed files with 181 additions and 75 deletions
+3 -1
View File
@@ -38,7 +38,9 @@ public enum CleanupActionType
AddLabel = 3,
RemoveLabel = 4,
MarkRead = 5,
MarkUnread = 6
MarkUnread = 6,
Star = 7,
Unstar = 8
}
public enum UnsubscribeMethod