Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOLD for payment 2025-02-06] [$250] Console error on new chat confirmation screen #55323

Closed
1 of 8 tasks
m-natarajan opened this issue Jan 15, 2025 · 18 comments
Closed
1 of 8 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented Jan 15, 2025

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number:
Reproducible in staging?: Needs Reproduction
Reproducible in production?: Needs Reproduction
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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
Expensify/Expensify Issue URL:
Issue reported by: @allroundexperts
Slack conversation (hyperlinked to channel name): expensify_bugs

Action Performed:

  1. Click on + and select new chat.
  2. Enter a couple of emails, and add them to the group.
  3. Click Next.
  4. Remove one of the member.

Expected Result:

Member removed and No console error

Actual Result:

Console error stating that function components can not be passed refs

Workaround:

Unknown

Platforms:

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

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021881459118214724252
  • Upwork Job ID: 1881459118214724252
  • Last Price Increase: 2025-01-20
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @slafortune
@m-natarajan m-natarajan added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Needs Reproduction Reproducible steps needed labels Jan 15, 2025
Copy link

melvin-bot bot commented Jan 15, 2025

Triggered auto assignment to @slafortune (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.

@MelvinBot
Copy link

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

@bernhardoj
Copy link
Contributor

Proposal

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

Console error on the new group confirm page.

What is the root cause of that problem?

The error comes from AvatarWithImagePicker component. The component is wrapped with withNavigationFocus HOC. The HOC pass a ref to the wrapped component

return (
<WrappedComponent
// eslint-disable-next-line react/jsx-props-no-spreading
{...(props as TProps)}
ref={ref}

but the AvatarWithImagePicker doesn't forward it using forwardRef.

export default withNavigationFocus(AvatarWithImagePicker);

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

withNavigationFocus only have usages left on 2 files. Instead of using the HOC, we can just use the useIsFocused hook. So, I'm suggesting to delete the HOC and replace it with useIsFocused hook on AvatarWithImagePicker and AppleSignIn/index.tsx.

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

N/A

@shubham1206agra
Copy link
Contributor

Image

Can repro. Please assign me C+ as per https://expensify.slack.com/archives/C02NK2DQWUX/p1736978752708209

@allroundexperts
Copy link
Contributor

@shubham1206agra But I posted this bug, and was able to reproduce.

@shubham1206agra
Copy link
Contributor

I am not sure, but I followed the rules. So, I should be C+ here

@melvin-bot melvin-bot bot added the Overdue label Jan 20, 2025
@melvin-bot melvin-bot bot removed the Overdue label Jan 20, 2025
@slafortune slafortune added External Added to denote the issue can be worked on by a contributor Overdue and removed Needs Reproduction Reproducible steps needed labels Jan 20, 2025
Copy link

melvin-bot bot commented Jan 20, 2025

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

@melvin-bot melvin-bot bot changed the title Console error on new chat confirmation screen [$250] Console error on new chat confirmation screen Jan 20, 2025
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 20, 2025
Copy link

melvin-bot bot commented Jan 20, 2025

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

@slafortune
Copy link
Contributor

@shubham1206agra It seems that the tag "Needs Reproductions" was added incorrectly.

@melvin-bot melvin-bot bot removed the Overdue label Jan 20, 2025
@garrettmknight garrettmknight moved this to Bugs and Follow Up Issues in [#whatsnext] #expense Jan 21, 2025
@allroundexperts
Copy link
Contributor

@bernhardoj's proposal is spot on. Let's go with them.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Jan 21, 2025

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

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 22, 2025
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jan 23, 2025
@bernhardoj
Copy link
Contributor

PR is ready

cc: @allroundexperts

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jan 30, 2025
@melvin-bot melvin-bot bot changed the title [$250] Console error on new chat confirmation screen [HOLD for payment 2025-02-06] [$250] Console error on new chat confirmation screen Jan 30, 2025
Copy link

melvin-bot bot commented Jan 30, 2025

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 30, 2025
Copy link

melvin-bot bot commented Jan 30, 2025

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

If no regressions arise, payment will be issued on 2025-02-06. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Jan 30, 2025

@allroundexperts @slafortune @allroundexperts The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@dylanexpensify dylanexpensify moved this from Bugs and Follow Up Issues to Hold for Payment in [#whatsnext] #expense Feb 4, 2025
@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 5, 2025
Copy link

melvin-bot bot commented Feb 6, 2025

Payment Summary

Upwork Job

BugZero Checklist (@slafortune)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1881459118214724252/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@slafortune
Copy link
Contributor

Role C+ @allroundexperts owed $250 via NewDot
Role Contributor - @bernhardoj owed $250 via NewDot

@github-project-automation github-project-automation bot moved this from Hold for Payment to Done in [#whatsnext] #expense Feb 6, 2025
@bernhardoj
Copy link
Contributor

Requested in ND.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
Status: Done
Development

No branches or pull requests

7 participants