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 2024-07-22] [$250] Web - Chat - Notification preferences RHP does not animate smoothly #44421

Open
2 of 6 tasks
m-natarajan opened this issue Jun 26, 2024 · 33 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Jun 26, 2024

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.2-0
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail: n/a
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to any chat.
  3. Tap on the chat header.
  4. Tap Notification preferences.
  5. Tap back button.
  6. Repeat Step 4 and 5 a few times.

Expected Result:

Notification preferences RHP will animate smoothly.

Actual Result:

Notification preferences RHP does not animate smoothly.

Workaround:

unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6524534_1719349596350.np.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010b485abb3cf759ae
  • Upwork Job ID: 1805831211824781554
  • Last Price Increase: 2024-07-03
  • Automatic offers:
    • Krishna2323 | Contributor | 102995239
Issue OwnerCurrent Issue Owner: @mallenexpensify
@m-natarajan m-natarajan added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Jun 26, 2024
Copy link

melvin-bot bot commented Jun 26, 2024

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

Copy link

melvin-bot bot commented Jun 26, 2024

Triggered auto assignment to @robertjchen (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jun 26, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@m-natarajan
Copy link
Author

@robertjchen 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

@m-natarajan
Copy link
Author

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

@mallenexpensify
Copy link
Contributor

@robertjchen confirming this is happening on Staging and not on production
Logs -

logs-2024-06-26 01_30_31.960.txt

Vid -

2024-06-25_18-29-16.mp4

Unsure where to check to find the offending PR

@robertjchen robertjchen removed DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API Hourly KSv2 labels Jun 26, 2024
@robertjchen
Copy link
Contributor

Thanks! Yeah- it definitely seems to be stemming for a recent change 🤔 Going to tag External to see if someone can spot the issue here 👍

@robertjchen robertjchen added External Added to denote the issue can be worked on by a contributor Daily KSv2 labels Jun 26, 2024
Copy link

melvin-bot bot commented Jun 26, 2024

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

@melvin-bot melvin-bot bot changed the title Web - Chat - Notification preferences RHP does not animate smoothly [$250] Web - Chat - Notification preferences RHP does not animate smoothly Jun 26, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 26, 2024
Copy link

melvin-bot bot commented Jun 26, 2024

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

@Krishna2323
Copy link
Contributor

Krishna2323 commented Jun 26, 2024

Proposal

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

Web - Chat - Notification preferences RHP does not animate smoothly

What is the root cause of that problem?

SCREENS.REPORT_SETTINGS.NOTIFICATION_PREFERENCES isn't added SCREENS_WITH_AUTOFOCUS. The animation is interrupted because of the autofocus.

const SCREENS_WITH_AUTOFOCUS: string[] = [
...Object.keys(CENTRAL_PANE_WORKSPACE_SCREENS),
SCREENS.REPORT,
SCREENS.REPORT_DESCRIPTION_ROOT,
SCREENS.PRIVATE_NOTES.EDIT,
SCREENS.SETTINGS.PROFILE.STATUS,
SCREENS.SETTINGS.PROFILE.PRONOUNS,
SCREENS.NEW_TASK.DETAILS,
SCREENS.MONEY_REQUEST.CREATE,
];

// We don't want to ovverride autofocus on these screens.
initialFocus: () => {
if (SCREENS_WITH_AUTOFOCUS.includes(activeRouteName)) {
return false;
}
return undefined;
},
setReturnFocus: (element) => {
if (SCREENS_WITH_AUTOFOCUS.includes(activeRouteName)) {
return false;
}
return element;
},
}}

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

Add SCREENS.REPORT_SETTINGS.NOTIFICATION_PREFERENCES in SCREENS_WITH_AUTOFOCUS. We should also check for other similar pages, I found that this bug also appears on hold reasons page.

What alternative solutions did you explore? (Optional)

Result

Monosnap.screencast.2024-06-26.12-15-04.mp4

@allgandalf

This comment was marked as outdated.

@Krishna2323
Copy link
Contributor

Proposal Updated

  • Minor edits

Copy link

melvin-bot bot commented Jun 28, 2024

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

@mallenexpensify
Copy link
Contributor

@mananjadhav if you're unassigning, can you please provide reasoning? thx.

@Ollyws 👀 above please.

@Ollyws
Copy link
Contributor

Ollyws commented Jun 28, 2024

Seems to be caused by #42592

@mananjadhav
Copy link
Collaborator

@parasharrajat @huzaifa-99 another issue that might be related to #44360

I assumed this is a regression. Looks like it's not.

Copy link

melvin-bot bot commented Jul 1, 2024

@robertjchen, @Ollyws, @mallenexpensify Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Jul 1, 2024
@Ollyws
Copy link
Contributor

Ollyws commented Jul 2, 2024

As far as I can see this was caused by #42592 but given that PR was an agency PR I think we can fix this here.
@Krishna2323 Your solution seems to work but I don't really understand how #42592 broke it or why your solution fixes it, could you expand a bit on the RCA please?

@melvin-bot melvin-bot bot removed the Overdue label Jul 2, 2024
Copy link

melvin-bot bot commented Jul 3, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@Ollyws
Copy link
Contributor

Ollyws commented Jul 4, 2024

It seems what's happened here is that the initial culprit was the focus-trap PR (#39520), but this issue only became visibly apparent after enabling concurrent mode (#42592).

So @Krishna2323's proposal looks like the right way to go.

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Jul 4, 2024

Current assignee @robertjchen is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@robertjchen
Copy link
Contributor

Great find! Let's go with @Krishna2323 's proposal 👍

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 5, 2024
Copy link

melvin-bot bot commented Jul 5, 2024

📣 @Krishna2323 🎉 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 📖

@Krishna2323
Copy link
Contributor

@Ollyws PR ready for review ^

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 15, 2024
@melvin-bot melvin-bot bot changed the title [$250] Web - Chat - Notification preferences RHP does not animate smoothly [HOLD for payment 2024-07-22] [$250] Web - Chat - Notification preferences RHP does not animate smoothly Jul 15, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 15, 2024
Copy link

melvin-bot bot commented Jul 15, 2024

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

Copy link

melvin-bot bot commented Jul 15, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-8 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 2024-07-22. 🎊

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

Copy link

melvin-bot bot commented Jul 15, 2024

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:

  • [@Ollyws] The PR that introduced the bug has been identified. Link to the PR:
  • [@Ollyws] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@Ollyws] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@Ollyws] Determine if we should create a regression test for this bug.
  • [@Ollyws] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@mallenexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

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. Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants