Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Scheduled sending #1619

Open
wants to merge 83 commits into
base: master
Choose a base branch
from
Open

feat: Scheduled sending #1619

wants to merge 83 commits into from

Conversation

lebojo
Copy link
Contributor

@lebojo lebojo commented Nov 19, 2024

This PR introduces the Scheduled Send feature to the infomaniak Mail iOS app, allowing users to schedule emails to be sent at a later time.

Key Changes

  • Added UI components for scheduling email (date and time picker).
  • Integrated scheduling logic with the existing email sending flow.
  • Updated backend API calls to handle scheduled send data.
  • Added validation for scheduling times (e.g., no past dates).
  • Enhanced error handling and user feedback for scheduling failures.
  • Reschedule header for scheduled email not sent yet
  • Localized strings
Capture d’écran 2024-11-19 à 16 40 33

Copy link

github-actions bot commented Nov 19, 2024

Found 1 unused code occurences

Expand
Mail/Views/Alerts/CustomScheduleAlertView.swift:33:9: warning: Property 'startingDate' is assigned, but never used

@lebojo lebojo force-pushed the feat-Scheduled-sending branch 7 times, most recently from 3e2cb04 to 3b6959a Compare November 25, 2024 12:35
@PhilippeWeidmann PhilippeWeidmann self-requested a review November 25, 2024 13:26
@lebojo lebojo force-pushed the feat-Scheduled-sending branch 2 times, most recently from 4af1490 to 821485e Compare December 3, 2024 09:12
Comment on lines +33 to +34

DraftUtils.editDraft(from: message, mailboxManager: mailboxManager, composeMessageIntent: composeMessageIntent)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert

Copy link
Contributor Author

@lebojo lebojo Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Context: We had seen together (IRL) that there was a bug: When we modify a draft, it appeared twice (the modified version and the old one) (duplicate bug)
And when we reverted that part of the code it seemed to work again.

Update: I tried to reproduce the bug but I can't do it, it would be necessary to investigate a little more

Copy link
Member

@PhilippeWeidmann PhilippeWeidmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scheduled messages folder should be treated like the drafts folder:

  • No threads
  • Remove some actions in the bottom bar in the message details
  • Remove some actions in the floating panel for the message "3 dots menu" (maybe even hide it ?)
  • Remove the swipe actions

Maybe more ?

We should show a Progress indicator when moving the message back to drafts

@lebojo lebojo force-pushed the feat-Scheduled-sending branch from 67441ca to f0396c7 Compare January 14, 2025 08:50
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants