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:
@@ -38,7 +38,9 @@ public enum CleanupActionType
|
||||
AddLabel = 3,
|
||||
RemoveLabel = 4,
|
||||
MarkRead = 5,
|
||||
MarkUnread = 6
|
||||
MarkUnread = 6,
|
||||
Star = 7,
|
||||
Unstar = 8
|
||||
}
|
||||
|
||||
public enum UnsubscribeMethod
|
||||
|
||||
Reference in New Issue
Block a user