Skip to content

#900 Messages forwarding#1066

Merged
tomholub merged 14 commits intomasterfrom
feature/issue-900-forwarding
Nov 24, 2021
Merged

#900 Messages forwarding#1066
tomholub merged 14 commits intomasterfrom
feature/issue-900-forwarding

Conversation

@sosnovsky
Copy link
Collaborator

@sosnovsky sosnovsky commented Nov 23, 2021

This PR adds forwarding functionality

close #900
close #952


Tests (delete all except exactly one):

  • Tests added or updated - added ui test for forward functionality

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities
  • is documented clearly and usefully, or doesn't need documentation

Copy link
Collaborator

@tomholub tomholub left a comment

Choose a reason for hiding this comment

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

code looks good 👍 see comment below. Not required but will come handy.

@sosnovsky sosnovsky marked this pull request as ready for review November 23, 2021 20:57
@tomholub
Copy link
Collaborator

Functionality works well but I find the arrows confusing (didn't think about that before). Could you please, instead of the forward button, add three dots that pulls up a menu - where forward is one of the options (like Gmail app does it).

@sosnovsky
Copy link
Collaborator Author

Then may be we should show 3 dots instead of expand/collapse arrow and menu will include forward and collapse actions?

Copy link
Collaborator

@tomholub tomholub left a comment

Choose a reason for hiding this comment

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

Code and test looks great, except the UX concern above.

layout.minimumLineSpacing = Constants.minimumLineSpacing
layout.sectionInset = Constants.sectionInset
let collectionNode = ASCollectionNode(collectionViewLayout: layout)
collectionNode.accessibilityIdentifier = "recipientsList"
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

@tomholub
Copy link
Collaborator

tomholub commented Nov 23, 2021

Then may be we should show 3 dots instead of expand/collapse arrow and menu will include forward and collapse actions?

I'd like to follow Gmail in functionality since users will be migrating from Gmail app to here. Gmail doesn't have a chevron, true. But it does allow to expand/collapse by tapping the message header. Here's a related issue: #952

I guess, what you proposed brings us closer there. I just don't know if it's unnecessary work, just for the newly added "collapse" menu option to be removed again in #952 ?

@tomholub
Copy link
Collaborator

tomholub commented Nov 23, 2021

It seems like we already support opening message by tapping anywhere. So it's just about collapsing.

Just by adding the collapse functionality when tapping expanded message header, and then adding a horizontal line between messages in thread, you would have also fixed #952 at the same time. Does it make sense in one PR? Or should I merge this PR and assign that one to you?

@sosnovsky
Copy link
Collaborator Author

Let's do it in 1 PR, so forwarding functionality will have final UX before merging.
You can assign #952 to me and I'll include it here

@sosnovsky sosnovsky marked this pull request as draft November 23, 2021 21:14
@tomholub
Copy link
Collaborator

This also becomes quite a duplicate of #723 which I'll close now.

@sosnovsky sosnovsky marked this pull request as ready for review November 24, 2021 13:55
Copy link
Collaborator

@tomholub tomholub left a comment

Choose a reason for hiding this comment

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

code looks good

Comment on lines -403 to +418
let count = input[section-1].processedMessage?.attachments.count ?? 0
return Parts.allCases.count + count
let attachmentsCount = input[section-1].processedMessage?.attachments.count ?? 0
return Parts.allCases.count + attachmentsCount
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

Copy link
Collaborator

@tomholub tomholub left a comment

Choose a reason for hiding this comment

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

Functionality works well. One improvement: when forwarding (unlike reply) the recipients field should be in automatic focus when the compose view renders. When replying, the focus should be on message body as it does now.

@tomholub tomholub merged commit 7ad506d into master Nov 24, 2021
@tomholub tomholub deleted the feature/issue-900-forwarding branch November 24, 2021 17:38
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.

remove expand icon when message expanded forwarding email functionality

2 participants