Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.49k stars 2.84k forks source link

[HOLD for payment 2023-06-13] [$1000] Reply text is not aligned to emoji on edit message (aligned properly without edit) #19398

Closed kavimuru closed 1 year ago

kavimuru commented 1 year ago

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Open the app
  2. Open any report
  3. Hover on any message send by you, click on reply in thread and add new message in it
  4. Revisit the original report and add emoji reaction to it (observe that emoji reaction and '1 Reply' message is aligned vertically)
  5. Edit the parent message used in step 3 and observe that '1 Reply' message is not aligned to composer start as emoji reaction

Expected Result:

App should align '1 Reply' text to start of composer on edit as it does for reaction emoji

Actual Result:

App does not align '1 Reply' text to start of composer on edit of message as it does for reaction emoji

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

Which of our officially supported platforms is this issue occurring on?

Version Number: 1.3.16.6 Reproducible in staging?: y Reproducible in production?: y If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation

https://github.com/Expensify/App/assets/43996225/1f08b2b1-80a0-42df-be82-3cf80fd38e1f

Untitled

Expensify/Expensify Issue URL: Issue reported by: @dhanashree-sawant Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684486648715929

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0145a755aa7c56d944
  • Upwork Job ID: 1661335016989315072
  • Last Price Increase: 2023-05-24
melvin-bot[bot] commented 1 year ago

Triggered auto assignment to @sonialiap (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

melvin-bot[bot] commented 1 year ago

Bug0 Triage Checklist (Main S/O)

dhairyasenjaliya commented 1 year ago

Proposal

Please re-state the problem that we are trying to solve in this issue.

What is the root cause of that problem?

What changes do you think we should make in order to solve the problem?

Screenshot 2023-05-22 at 11 08 23 PM
sonialiap commented 1 year ago

Reproducible πŸ‘

https://github.com/Expensify/App/assets/17131195/28d6c093-0eeb-4ab6-8c12-b08e0932016e

melvin-bot[bot] commented 1 year ago

Job added to Upwork: https://www.upwork.com/jobs/~0145a755aa7c56d944

melvin-bot[bot] commented 1 year ago

Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new.

melvin-bot[bot] commented 1 year ago

Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak (External)

melvin-bot[bot] commented 1 year ago

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

getusha commented 1 year ago

Proposal

Please re-state the problem that we are trying to solve in this issue.

Reply text is not correctly aligned to the reaction emoji

What is the root cause of that problem?

Currently the ReportActionItemThread component has maxWidth of 100% which will fill the entire width, initially when the avatar on the ReportItem is visible it is aligned to the emoji, but when we edit the message the avatar will not be visible then the ReportActionItemThread will take the whole width

What changes do you think we should make in order to solve the problem?

We should wrap the ReportActionItemThread component with <View style={this.props.draftMessage ? styles.chatItemReactionsDraftRight : {}}> to align the component correctly when the user is editing the message.

we are currently using this for ReportActionItemReactions here:

https://github.com/Expensify/App/blob/b10f19d7394738609e69a0a154be7220025972cf/src/pages/home/report/ReportActionItem.js#L283

Additionally instead of repeating the code we can wrap both components with the view and put the conditions inside like this

Screenshot 2023-05-24 at 3 04 32 PM

Result:

https://github.com/Expensify/App/assets/75031127/14ab3f63-013a-413e-87ed-7765a43557f8

What alternative solutions did you explore? (Optional)

MonilBhavsar commented 1 year ago

Couple of proposals are there, @eVoloshchak if you could please take a look

eVoloshchak commented 1 year ago

@dhairyasenjaliya's proposal looks good to me. This is a pretty straight-forward fix, looks like this was just missed during the initial implementation

πŸŽ€πŸ‘€πŸŽ€ C+ reviewed! cc: @MonilBhavsar

MonilBhavsar commented 1 year ago

Thanks! Looks good to me too

melvin-bot[bot] commented 1 year ago

πŸ“£ @dhairyasenjaliya You have been assigned to this job by @MonilBhavsar! Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review πŸ§‘β€πŸ’» Keep in mind: Code of Conduct | Contributing πŸ“–

dhairyasenjaliya commented 1 year ago

@MonilBhavsar @eVoloshchak PR ready for review

melvin-bot[bot] commented 1 year ago

Reviewing label has been removed, please complete the "BugZero Checklist".

melvin-bot[bot] commented 1 year ago

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.3.24-5 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2023-06-13. :confetti_ball:

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

melvin-bot[bot] commented 1 year ago

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

dhairyasenjaliya commented 1 year ago

bump @sonialiap for the Upwork contract

eVoloshchak commented 1 year ago

Will finish up the checklist items tomorrow

sonialiap commented 1 year ago

@dhanashree-sawant offer sent for reporting issue - paid @dhairyasenjaliya offer sent for fix (bonus will be applied for 3 day merge) - paid @eVoloshchak offer ~pending checklist step completion~ sent for review (bonus will be applied for 3 day merge) - paid

dhairyasenjaliya commented 1 year ago

@sonialiap accepted thnx

dhanashree-sawant commented 1 year ago

Thanks @sonialiap, I have accepted the offer.

eVoloshchak commented 1 year ago
eVoloshchak commented 1 year ago

Regression Test Proposal

  1. Open any report
  2. Hover on any message sent by you, click on reply in the thread and add a new message to it
  3. Revisit the original report and add an emoji reaction to the parent message (observe the emoji reaction and '1 Reply' message are aligned vertically)
  4. Edit the parent message used in step 3 and verify the '1 Reply' message is aligned with the composer

Do we agree πŸ‘ or πŸ‘Ž

sonialiap commented 1 year ago

Thanks @eVoloshchak! Offer sent, bonus will be added once offer is accepted

sonialiap commented 1 year ago

Everyone has been paid