App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-12-27] [$500] Message preview in focus mode is not aligned with user name

Open isagoico opened this issue 5 years ago β€’ 28 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel! https://www.upwork.com/jobs/~0144453341751f5873


Action Performed:

  1. Log in to e.cash and enable focus mode
  2. Check the message previews in LHN

Expected Result:

Message preview should be aligned with user name.

Actual Result:

Message preview is not aligned with user name. It's more visible if the user has an unread message.

Workaround:

No need, visual issue.

Platform:

Where is this issue occurring?

  • iOS

Version Number: 1.1.10-1

Reproducible in staging?: yes Reproducible in production?: yes

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation image

Expensify/Expensify Issue URL:

Issue reported by: @tgolen Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1635424338200200

View all open jobs on GitHub

isagoico avatar Oct 28 '21 14:10 isagoico

Triggered auto assignment to @alex-mechler (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Oct 28 '21 14:10 MelvinBot

Looks like a good External issue!

alex-mechler avatar Oct 28 '21 21:10 alex-mechler

Triggered auto assignment to @laurenreidexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Oct 28 '21 21:10 MelvinBot

Sorry I was OOO unwell, hence delay. Posting this on Upwork now.

laurenreidexpensify avatar Nov 01 '21 16:11 laurenreidexpensify

https://www.upwork.com/jobs/~0144453341751f5873

laurenreidexpensify avatar Nov 01 '21 16:11 laurenreidexpensify

Triggered auto assignment to @tgolen (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar Nov 01 '21 16:11 MelvinBot

lol it's like melvin knew you reported it @tgolen !

laurenreidexpensify avatar Nov 01 '21 17:11 laurenreidexpensify

Proposal

After investigation, it was noticed that if the message in the preview had an emoji (for example the default message for Concierge), the message would have problems with alignment.

The easiest solution I could find is adding to optionAlternateTextCompact (a style used only in focus mode only on that component) the following snippet:

...Platform.select({
    ios: {
        height: 20,
        lineHeight: 20,
    },
}),

This change would make the text having the same height and lineHeight as the name, ensuring the alignment.

Before After
ALIGNMENT_FOCUS_BEFORE ALIGNMENT_FOCUS_AFTER

Important to mention that this issue also happens on non focus mode, it's just harder to notice (check the distance of the end of the letter p to the bottom of the cyan area)

ALIGNMENT_NOT_FOCUS

My proposal will affect ONLY the focus mode

sidferreira avatar Nov 01 '21 23:11 sidferreira

I'm not sure if we want to make any changes to non-focus mode though - we want the combined height of the sender + message preview to be 40px so it matches the avatar to the left. We get that by having the sender at 20px, plus a 4px margin, plus a message preview at 16px.

shawnborton avatar Nov 01 '21 23:11 shawnborton

@shawnborton that change will affect only the focus mode on ios, I mentioned the non focus just as a curiosity. Sorry the confusion

sidferreira avatar Nov 01 '21 23:11 sidferreira

We are placing all non-critical issues on hold while we're on a company offsite. The hold is expected to be lifted on 11/19 (but could go longer). For any PRs that are submitted before or during the hold, we will add a $250 bonus payment.

mallenexpensify avatar Nov 08 '21 17:11 mallenexpensify

Increasing this job to $500 on behalf of the team here!

kadiealexander avatar Nov 09 '21 23:11 kadiealexander

Still looking for a proposal, price now $500 - thanks Kadie

laurenreidexpensify avatar Nov 10 '21 11:11 laurenreidexpensify

@laurenreidexpensify https://github.com/Expensify/App/issues/6096#issuecomment-956826027 isn't good?

sidferreira avatar Nov 10 '21 13:11 sidferreira

@sidferreira , @tgolen is the Contributor Manager Engineer (CME) and is the one who should review your proposal above.

mallenexpensify avatar Nov 12 '21 16:11 mallenexpensify

The base of the proposal looks fine to me, yep! 🟒 to move forward with it. I will chalk this up to just being psuedo code from your example, but please sure to follow our cross-platform patterns for platform specific styles (/styles/bold/index.android.js for example)

tgolen avatar Nov 12 '21 20:11 tgolen

Sending proposal

sidferreira avatar Nov 12 '21 22:11 sidferreira

Hired @sidferreira in Upwork!

mallenexpensify avatar Nov 15 '21 20:11 mallenexpensify

πŸ“£ @sidferreira You have been assigned to this job by @laurenreidexpensify! Please apply to this job in Upwork and let us know when we can expect a PR to be ready for review πŸ§‘β€πŸ’» Keep in mind: Code of Conduct | Contributing πŸ“–

MelvinBot avatar Nov 18 '21 13:11 MelvinBot

@mallenexpensify I noticed the following issue:

If you look close, you will see that the top part of the emoji is cut off.

I believe the solution is the same as the one for this issue: tweak lineHeight and height a bit.

Should I create an issue for this? If so, can I propose the fix as well?

Or maybe I just fix it in this PR and add a little extra (as it is out of scope πŸ˜‰ )?

This screenshot is from v1.1.8-0

Screen Shot 2021-11-18 at 9 22 12 PM

sidferreira avatar Nov 19 '21 05:11 sidferreira