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 2023-10-02] [$500] Split bill - Here is no smooth animation for Paid by and Split with users on Split bill page #26376

Closed
1 of 6 tasks
izarutskaya opened this issue Aug 31, 2023 · 35 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 External Added to denote the issue can be worked on by a contributor

Comments

@izarutskaya
Copy link

izarutskaya commented Aug 31, 2023

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 website
  2. Click on plus icon > Split bill >Enter sum > Choose user(s) and click on Next btn > Click on Paid by and Split with's user's username

Expected Result:

There should be smooth animation for Paid by and Split with users on Split bill page

Actual Result:

There is no smooth animation for Paid by and Split with users on Split bill page

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: v1.3.60-1

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

Screen-Capture.66.mp4
Recording.1397.mp4

Expensify/Expensify Issue URL:

Issue reported by: @MahmudjonToraqulov

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692713551555059

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0179ce98efccffa8c3
  • Upwork Job ID: 1700175437224157184
  • Last Price Increase: 2023-09-15
  • Automatic offers:
    • b4s36t4 | Contributor | 26739682
    • mahmudjontoraqulov | Reporter | 26739683
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 31, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 31, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@b4s36t4
Copy link
Contributor

b4s36t4 commented Aug 31, 2023

Proposal

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

Split bill - Here is no smooth animation for Paid by and Split with users on Split bill page.

What is the root cause of that problem?

The RCA for this issue lies here in this snippet

useEffect(() => {
if (ValidationUtils.isValidAccountRoute(accountID)) {
PersonalDetails.openPublicProfilePage(accountID);
}
}, [accountID]);
.

We're calling the OpenPublicProfilePage command API without any condition.

But we have multiple conditionals based on the loading start for the component.
This is how the current flow is

Click on Account -> Navigate to ProfilePage -> load variables related to component & Call the API -> props.personalDetails updated -> Again load the variable.

This transition causing the modal to re-render two quickly causing the interruption with the transition.

We already have the loading indicator but it isn't working because of few cases which we're not considering when we're doing the api call.

{!hasMinimumDetails && isLoading && <FullScreenLoadingIndicator style={styles.flex1} />}

Here we're only showing loading state when there is no minimum details and loading state is true.

Although we have the loading state as true but we have minimum details for the particular user which is the reason we're not showing the loading.

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

We should move the useEffect to below lines and add the dependency of hasMinimumDetails and only call the API if we don't have minimum details.

useEffect(() => {
    if (ValidationUtils.isValidAccountRoute(accountID) && !hasMinimumDetails) {
        PersonalDetails.openPublicProfilePage(accountID);
    }
}, [accountID, hasMinimumDetails]);

Doing this so ensures we're not causing the re-render unnecessarily and so the animation works perfectly.

What alternative solutions did you explore? (Optional)

NA

Result

Kapture.2023-08-31.at.17.15.39.mp4

PS: This is the smoothest transition I've encountered and fixed(on demo though) :xD

@melvin-bot melvin-bot bot added the Overdue label Sep 4, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

@kevinksullivan Huh... This is 4 days overdue. Who can take care of this?

@kevinksullivan kevinksullivan added the External Added to denote the issue can be worked on by a contributor label Sep 8, 2023
@melvin-bot melvin-bot bot changed the title Split bill - Here is no smooth animation for Paid by and Split with users on Split bill page [$500] Split bill - Here is no smooth animation for Paid by and Split with users on Split bill page Sep 8, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 8, 2023

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 8, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 8, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 8, 2023

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

@kevinksullivan
Copy link
Contributor

Moving forward 👍

@melvin-bot melvin-bot bot removed the Overdue label Sep 8, 2023
@eVoloshchak
Copy link
Contributor

@b4s36t4's proposal looks good to me, I think we should proceed with it

PS: This is the smoothest transition I've encountered and fixed(on demo though) :xD

does this mean some transitions can be less smooth than others? 🤯

🎀👀🎀 C+ reviewed!

@melvin-bot
Copy link

melvin-bot bot commented Sep 10, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 14, 2023

@eVoloshchak @kevinksullivan @neil-marcellini 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!

@melvin-bot
Copy link

melvin-bot bot commented Sep 14, 2023

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

@eVoloshchak

This comment was marked as duplicate.

@melvin-bot melvin-bot bot removed the Overdue label Sep 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 15, 2023

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

@melvin-bot melvin-bot bot added the Overdue label Sep 18, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 18, 2023

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

@eVoloshchak
Copy link
Contributor

Not overdue, waiting on @neil-marcellini's opinion on this

@melvin-bot melvin-bot bot removed the Overdue label Sep 18, 2023
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 20, 2023
@b4s36t4
Copy link
Contributor

b4s36t4 commented Sep 20, 2023

@eVoloshchak Created PR here #27876

@melvin-bot
Copy link

melvin-bot bot commented Sep 22, 2023

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

  • when @b4s36t4 got assigned: 2023-09-18 20:15:35 Z
  • when the PR got merged: 2023-09-22 03:51:23 UTC
  • days elapsed: 3

On to the next one 🚀

@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 25, 2023
@melvin-bot melvin-bot bot changed the title [$500] Split bill - Here is no smooth animation for Paid by and Split with users on Split bill page [HOLD for payment 2023-10-02] [$500] Split bill - Here is no smooth animation for Paid by and Split with users on Split bill page Sep 25, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Sep 25, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 25, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Sep 25, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.73-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 2023-10-02. 🎊

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

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

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Sep 25, 2023

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:

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

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Oct 1, 2023
@eVoloshchak
Copy link
Contributor

  • The PR that introduced the bug has been identified. Link to the PR: there isn't a PR that caused it (not that I could pinpoint at least), that's the original implementation from Add new Profile page #20144
  • 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: N/A
  • 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: this is a simple visual bug, don't think an additional discussion is needed
  • Determine if we should create a regression test for this bug.
    Is it easy to test for this bug? Yes
    Is the bug related to an important user flow? Yes
    Is it an impactful bug? No
    The bug has near zero impact, just an animation that isn't smooth, I think a regression test isn't needed here

@melvin-bot melvin-bot bot removed the Overdue label Oct 2, 2023
@eVoloshchak
Copy link
Contributor

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

I don't think that's correct, it was merged on a weekend, so it's definitely less than 3 business days

@kevinksullivan
Copy link
Contributor

Weird, the dates are totally off in that post v. the PR, which shows it was opened on Sept 20 and merged on Sept 21. Paying out bonus for this.

@kevinksullivan
Copy link
Contributor

@eVoloshchak offer sent, lmk when you accept! I will plan to pay bonus as well

@kevinksullivan
Copy link
Contributor

Paid @b4s36t4 and @MahmudjonToraqulov

@eVoloshchak
Copy link
Contributor

Weird, the dates are totally off in that post v. the PR, which shows it was opened on Sept 20 and merged on Sept 21

@kevinksullivan, it's calculated from the moment a contributor is assigned to the job to the moment PR is merged. The dates are correct, but the calculation of days elapsed isn't

offer sent, lmk when you accept! I will plan to pay bonus as well

Requested the payment via NewDot, thanks!

@JmillsExpensify
Copy link

Can I get a payment summary on this issue?

@kevinksullivan
Copy link
Contributor

kevinksullivan commented Oct 5, 2023

Payment summary:

@JmillsExpensify
Copy link

$750 payment approved for @eVoloshchak based on BZ summary.

@melvin-bot melvin-bot bot added the Overdue label Oct 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 9, 2023

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

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
None yet
Development

No branches or pull requests

6 participants