Commit Graph

7 Commits

Author SHA1 Message Date
Jeremiah Russell
da8304e02f ♻️ refactor(trash): use GmailClient instead of credential string
- use GmailClient to manage gmail API interactions
- remove credential string
2025-10-14 07:41:39 +01:00
Jeremiah Russell
dbc023d761 ♻️ refactor(trash): separate trash preparation and execution
- split the run function into prepare and batch_trash
- prepare is for fetching the list, batch_trash will execute the move to trash
2025-10-11 09:35:12 +01:00
Jeremiah Russell
8348a88568 ♻️ refactor(trash): encapsulate message list
- remove methods from trash and expose message list directly
2025-10-09 22:45:24 +01:00
Jeremiah Russell
172f0ca1bc ♻️ refactor(trash): simplify error handling and label management
- change Error to Result for consistent error handling
- remove add_labels function and refactor to async function
2025-10-09 17:03:04 +01:00
Jeremiah Russell
7a1a8f6a1a 🐛 fix(ui): correct grammar errors in eol command and trash messages
- fix typo in `Delete` variant description from "immediatly" to "immediately"
- correct grammar in trash log message from "move to trash" to "moved to trash"
2025-10-07 17:34:19 +01:00
Jeremiah Russell
f42718328e ♻️ refactor(trash): improve trash operation logging
- change debug log level to trace for batch request
- remove debug log for response
- log message subject instead of id after trashing
2025-10-06 17:09:47 +01:00
Jeremiah Russell
041646809c feat(trash): implement trash functionality
- add trash struct and methods for moving messages to trash
- implement batch move to trash functionality
2025-10-06 10:38:30 +01:00