android icon indicating copy to clipboard operation
android copied to clipboard

Three UI/UX improvements from a customer

Open The-Hidden-Hand opened this issue 5 years ago • 8 comments

Expected behavior

  • [ ] After deleting any message or saving them in the drafts, when I click on the 3 line bar that shows all the folders, there is no numbering besides the folders (Drafts, Trash etc.) to show how many messages are in it. This should be fixed.

  • [ ] After tapping on the send icon, the "Sending" appears on the middle of the screen. It should be on the bottom of the screen, and the user can do other things on the email app, even if the user exists the app, the "Mail Sent" notification should appear after the mail is sent.

  • [ ] In the All Mails or in the Inbox, the subject lines should be in large and bold fonts and the mail's body in normal fonts.

The-Hidden-Hand avatar Mar 22 '21 09:03 The-Hidden-Hand

@The-Hidden-Hand hi

  1. On the screenshot you can see, that number of unread drafts is displayed correctly. I made preparatory procedures for more flexible work with custom folders and unread counters. So I can add unread counters for all folders, but you need to implement this on the backend also.
  2. This is a standard Android toast message. Usually, it is displayed at the very bottom of the screen. But it may variate related to device vendor. I think I can make a custom alert or display info as a notification. I'll think about what's better.
  3. The message layout title is already bold. But it is bold only when a message is unread. When the user has read the message font changes to the regular one. Do I need to always use a bold font on the message item subject?

alexdwork2018 avatar Feb 12 '22 16:02 alexdwork2018

@The-Hidden-Hand I checked point 2 again. Probably the customer means the progress bar with the message, not the toast pop-up message. This progress bar displays until the app gets the public keys for the email recipients (the step before sending a message). I can move the logic of getting the public keys of the recipients to the Sending Service (which does main processing for mail sending after closing the compose screen) and remove the progress bar. This will allow closing the compose email screen immediately after click on the send mail button. But if the user faces any issue with receiving recipients' public keys (for example connection issues..), mail will not be sent and will be lost. I can save it as a draft before sending it to prevent it. Web Client also displays a 'processing' message on the sending button. But I don't know what it exactly doing in the background. What do you think would be the best option?

alexdwork2018 avatar Feb 14 '22 19:02 alexdwork2018

So I can add unread counters for all folders, but you need to implement this on the backend also.

Can you see if that's working on the webclient? I think backend sends that data using websockets.

The message layout title is already bold. But it is bold only when a message is unread. When the user has read the message font changes to the regular one. Do I need to always use a bold font on the message item subject?

I know it goes against the original design. On the webclient it was like that but I asked to change from gray background for read messages to the opposite, so the state of all white background means everything is read. Would that help?


I can move the logic of getting the public keys of the recipients to the Sending Service (which does main processing for mail sending after closing the compose screen) and remove the progress bar. This will allow closing the compose email screen immediately after click on the send mail button.

That may improve performance feeling.

But if the user faces any issue with receiving recipients' public keys (for example connection issues..), mail will not be sent and will be lost. I can save it as a draft before sending it to prevent it.

Consider saving it only in case it fails, if can still preventing data loss and it gives performance feeling.

@alexdwork2018

The-Hidden-Hand avatar Feb 22 '22 19:02 The-Hidden-Hand

Can you see if that's working on the webclient? I think backend sends that data using websockets.

OK. Now Web Sockets are implemented only in the F-Droid versions of the app. It used in a separate Notification Service. But a separate foreground service has a bad effect on the battery and is not needed in Google Play version which uses Firebase Notifications. Because of this for the Google Play version I will implement Web Sockets only for real-time unread counters update. FYI. Except real-time update, unread counter display works the same way as on the Web Client. Now the Android client displays the number of unread folders for: Inbox, Draft, Outbox, Starred, Spam, Unread and for all custom folders.

I know it goes against the original design. On the webclient it was like that but I asked to change from gray background for read messages to the opposite, so the state of all white background means everything is read. Would that help?

In the Android app, unread messages have a bold font (subject) and a gray background. Read messages have a regular font and an almost white background. Thus, the Android design already complies with the Web Client version. What do i need to change? (screenshots attached)

alexdwork2018 avatar Feb 25 '22 20:02 alexdwork2018

@alexdwork2018 Ok, got it. Nothing to change for the unread unless you want to invert the color (gray <> white).

The-Hidden-Hand avatar Mar 02 '22 15:03 The-Hidden-Hand

@The-Hidden-Hand Okay, no problem, I'll swap the colors of read and unread messages. Then everything will be exactly as it is now on the WebClient.

You closed this ticket, but I currently finalizing the real-time unread folder counters (subtask 1)... Next, I planned to work on improving sending messages flow (subtask 2). Should I continue with subtask 2?

alexdwork2018 avatar Mar 04 '22 10:03 alexdwork2018

@The-Hidden-Hand Also about subtask 1. Real-time update unread folder counters already works. Old code for work with custom folders and its counters was also optimized. But for now, counters update only on receiving a new email. The backend doesn't send socket messages about unread folders on delete/create draft actions. So, described by the user scenario still not working.

alexdwork2018 avatar Mar 04 '22 10:03 alexdwork2018

Right, the webclient manages some states such as the read / unread status of messages on memory.

The-Hidden-Hand avatar Mar 06 '22 10:03 The-Hidden-Hand