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.33k stars 2.76k forks source link

[$250] Chat - Room - Rooms mention list does not appear in message edit mode #46889

Open lanitochka17 opened 1 month ago

lanitochka17 commented 1 month 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!


Version Number: 9.0.17-0 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4826336 Email or phone of affected tester (no customers): fischer9966@gmail.com Issue reported by: Applause - Internal Team

Action Performed:

  1. Open App or go to staging.new.expensify.com
  2. Login with any account
  3. Go to any room or create new one
  4. Send a message with a room mention
  5. Edit this message by adding or editing room mentions selecting it from suggestion list

Expected Result:

User can select room mention from suggestion list in edit mode

Actual Result:

Rooms mention list does not appear in message edit mode

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Add any screenshot/video evidence

https://github.com/user-attachments/assets/65c1c3d9-b836-44a2-ab94-75f02228605f

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01dedb57180f356839
  • Upwork Job ID: 1822051289639048019
  • Last Price Increase: 2024-08-16
  • Automatic offers:
    • FitseTLT | Contributor | 103627253
Issue OwnerCurrent Issue Owner: @eVoloshchak
melvin-bot[bot] commented 1 month ago

Triggered auto assignment to @kevinksullivan (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

lanitochka17 commented 1 month ago

@kevinksullivan FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

lanitochka17 commented 1 month ago

We think that this bug might be related to #vip-vsp

FitseTLT commented 1 month ago

Edited by proposal-police: This proposal was edited at 2024-08-06 14:29:58 UTC.

Proposal

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

Rooms mention list does not appear in message edit mode

What is the root cause of that problem?

Because we passed isGroupPolicyReport as false here https://github.com/Expensify/App/blob/0e46257f3295243e5ef306b723288cb1673ed6f1/src/pages/home/report/ReportActionItemMessageEdit.tsx#L535-L536 We also didn't pass the policyID to Suggestions

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

We need to pass isGroupPolicyReport and policyID in here https://github.com/Expensify/App/blob/0e46257f3295243e5ef306b723288cb1673ed6f1/src/pages/home/report/ReportActionItemMessageEdit.tsx#L535 by getting the value as we did here

 const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportID ?? '-1'}`);
isGroupPolicyReport={isGroupPolicyReport}
                        policyID={report?.policyID}

What alternative solutions did you explore? (Optional)

melvin-bot[bot] commented 1 month ago

@kevinksullivan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

melvin-bot[bot] commented 1 month ago

Job added to Upwork: https://www.upwork.com/jobs/~01dedb57180f356839

melvin-bot[bot] commented 1 month ago

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

melvin-bot[bot] commented 1 month ago

@eVoloshchak, @kevinksullivan Whoops! This issue is 2 days overdue. Let's get this updated quick!

melvin-bot[bot] commented 1 month ago

@eVoloshchak, @kevinksullivan Eep! 4 days overdue now. Issues have feelings too...

melvin-bot[bot] commented 1 month ago

πŸ“£ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? πŸ’Έ

melvin-bot[bot] commented 3 weeks ago

@eVoloshchak, @kevinksullivan Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

melvin-bot[bot] commented 3 weeks ago

@eVoloshchak @kevinksullivan this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

kevinksullivan commented 3 weeks ago

@eVoloshchak can you review the proposal please?

AlfredoAlc commented 3 weeks ago

Proposal

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

Rooms mention list does not appear in message edit mode

What is the root cause of that problem?

The SuggestionMention component requires to have isGroupPolicyReport and policyID to render room mention list. We are passing isGroupPolicyReport as false and we are not passing policyID

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

The ReportActionItemMessageEdit component is already receiving isGroupPolicyReport we just need to propagate the prop. And from that same component we already have access to the report policyID, so it'll only need to pass that prop to ReportActionItemMessageEdit and propagate the prop.

https://github.com/Expensify/App/blob/72a75930d7b3a0a0bb7a5e6e76f8c7bfcbee2205/src/pages/home/report/ReportActionItem.tsx#L718-L729

eVoloshchak commented 3 weeks ago

@FitseTLT's proposal looks good to me

πŸŽ€πŸ‘€πŸŽ€ C+ reviewed!

melvin-bot[bot] commented 3 weeks ago

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

melvin-bot[bot] commented 3 weeks ago

πŸ“£ @FitseTLT πŸŽ‰ An offer has been automatically sent to your Upwork account for the Contributor role πŸŽ‰ Thanks for contributing to the Expensify app!

Offer link Upwork job Please accept the offer 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 πŸ“–

kevinksullivan commented 3 days ago

Looping in a BZ member to handle payment as I'm going OOO

melvin-bot[bot] commented 3 days ago

Triggered auto assignment to @puneetlath (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

puneetlath commented 2 days ago

@eVoloshchak when will this need paying?

eVoloshchak commented 14 hours ago

@puneetlath, not clear yet, as this wasn't deployed to staging/prod yet Latest update:

This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.