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-09-09] [$250] Android & iOS Expense - Main chat becomes blank after returning from transaction thread #48369

Closed
2 of 6 tasks
IuliiaHerets opened this issue Aug 30, 2024 · 38 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Aug 30, 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: v9.0.27-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Launch New Expensify app.
  2. Go to workspace chat.
  3. Submit two expenses.
  4. Tap on the expense preview to go to expense report.
  5. Tap on the expense preview again to go to transaction thread.
  6. Tap back button twice to return to main chat.

Expected Result:

The main chat will not be blank after returning from transaction thread.

Actual Result:

The main chat becomes blank after returning from transaction thread.
The same issue also happens for 1:1 DM expense and when leaving thread.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug6588134_1725047314877.ScreenRecording_08-31-2024_03-46-23_1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0173629ca2a87d3e9d
  • Upwork Job ID: 1829627147990471781
  • Last Price Increase: 2024-08-30
  • Automatic offers:
    • ishpaul777 | Contributor | 103785367
Issue OwnerCurrent Issue Owner: @OfstadC
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Aug 30, 2024
Copy link

melvin-bot bot commented Aug 30, 2024

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

Copy link

melvin-bot bot commented Aug 30, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Aug 30, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Aug 30, 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.

@luacmartins luacmartins added the External Added to denote the issue can be worked on by a contributor label Aug 30, 2024
@melvin-bot melvin-bot bot changed the title Android & iOS Expense - Main chat becomes blank after returning from transaction thread [$250] Android & iOS Expense - Main chat becomes blank after returning from transaction thread Aug 30, 2024
Copy link

melvin-bot bot commented Aug 30, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 30, 2024
Copy link

melvin-bot bot commented Aug 30, 2024

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

@luacmartins
Copy link
Contributor

luacmartins commented Aug 30, 2024

I'm having issue building the iOS app at the moment. Adding external label to get contributors help

@struc
Copy link
Contributor

struc commented Sep 1, 2024

Proposal

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

Workspace chat content is hidden after navigating away two or more levels deep then going back to the chat page, like viewing expenses report and clicking one of the expenses.
It also happens when adding a banking account, then immediately going back to the chat page.

What is the root cause of that problem?

The chat view has fade-in animation, and is initially hidden because of

const opacity = useSharedValue(0);

However the animation will not run the second time since it does not have isFocused as a dependency.

const animatedStyles = useAnimatedStyle(() => ({
opacity: opacity.value,
}));
useEffect(() => {
// eslint-disable-next-line react-compiler/react-compiler
opacity.value = withTiming(1, {duration: 100});
}, [opacity]);

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

Add isFocused as a dependency to force a re-render when the page is focused again, and reset the opacity to 0 before running the animation.

    useEffect(() => {
      opacity.value = 0;
      // eslint-disable-next-line react-compiler/react-compiler
      opacity.value = withTiming(1, {duration: 100});
    }, [opacity, isFocused]);

What alternative solutions did you explore? (Optional)

Remove the animation, I think 100ms is hardly noticeable to the user.

const animatedStyles = useAnimatedStyle(() => ({
opacity: opacity.value,
}));

ios.mp4

@luacmartins
Copy link
Contributor

@hungvu193 could you please take a look at the proposal above?

@melvin-bot melvin-bot bot added the Overdue label Sep 2, 2024
@hungvu193
Copy link
Contributor

@hungvu193 could you please take a look at the proposal above?

I'm still trying to run native code, I tried to clean everything, upgrade xcode, mac version, but still no luck :(. If this is urgent please re-assign.

@melvin-bot melvin-bot bot removed the Overdue label Sep 2, 2024
@struc
Copy link
Contributor

struc commented Sep 2, 2024

@hungvu193 if it helps this is my current setup
It worked out of the box, though I did not have much luck with Xcode 14 and/or MacOS older than 14.

@hungvu193
Copy link
Contributor

@hungvu193 if it helps this is my current setup It worked out of the box, though I did not have much luck with Xcode 14 and/or MacOS older than 14.

Thanks. I'll give that a try.

@roryabraham roryabraham assigned ishpaul777 and unassigned hungvu193 Sep 2, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 2, 2024
Copy link

melvin-bot bot commented Sep 2, 2024

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

Copy link

melvin-bot bot commented Sep 2, 2024

📣 @struc You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖

@roryabraham
Copy link
Contributor

@struc this is a pretty urgent issue because it's the last one we need to fix before I can deploy. Let's try to get a PR up ASAP

@struc
Copy link
Contributor

struc commented Sep 2, 2024

@roryabraham Please give 5 minutes or so, I am creating the PR now.

@roryabraham
Copy link
Contributor

Verified that this is fixed on staging ✅

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Sep 2, 2024
@melvin-bot melvin-bot bot changed the title [$250] Android & iOS Expense - Main chat becomes blank after returning from transaction thread [HOLD for payment 2024-09-09] [$250] Android & iOS Expense - Main chat becomes blank after returning from transaction thread Sep 2, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Sep 2, 2024
Copy link

melvin-bot bot commented Sep 2, 2024

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

Copy link

melvin-bot bot commented Sep 2, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.27-1 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-09-09. 🎊

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

Copy link

melvin-bot bot commented Sep 2, 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:

  • [@ishpaul777] The PR that introduced the bug has been identified. Link to the PR:
  • [@ishpaul777] 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:
  • [@ishpaul777] 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:
  • [@ishpaul777] Determine if we should create a regression test for this bug.
  • [@ishpaul777] 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.
  • [@OfstadC] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@ishpaul777
Copy link
Contributor

not a deployblocker anymore, i guess fix was deployed yesterday

@OfstadC
Copy link
Contributor

OfstadC commented Sep 3, 2024

@ishpaul777 Could you please complete the BZ checklist? Thank you!

@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Sep 3, 2024
@ishpaul777
Copy link
Contributor

@OfstadC
Copy link
Contributor

OfstadC commented Sep 9, 2024

https://www.upwork.com/ab/applicants/1833130608126333165/job-details

@struc Could you you please link me your Upwork profile as I wasn't able to find it? Thank you!

@struc
Copy link
Contributor

struc commented Sep 9, 2024

@OfstadC
Copy link
Contributor

OfstadC commented Sep 9, 2024

Thanks @struc! Could you accept this offer ? Then I can issue payment😃

@OfstadC
Copy link
Contributor

OfstadC commented Sep 9, 2024

Payment Summary

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 9, 2024
@OfstadC OfstadC closed this as completed Sep 9, 2024
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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

7 participants