Skip to content

[Awaiting bugzero checklist and c+ newdot payment][$2000] Empty screen shows for a brief moment in change task assignee modal #23563

Closed

Description

@kavimuru

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. Go to any task report
  2. Click Assignee field
  3. Observe contacts list

Expected Result:

Contacts list shows immediately after skeleton

Actual Result:

Empty list shows for a brief moment before contacts list shows
Note: this doesn't happen in new task flow

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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: 1.3.45-2
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

bug2.mov
YFCI4302.1.MP4

Expensify/Expensify Issue URL:
Issue reported by: @situchan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690261404929219

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0163bd3cb559f30da0
  • Upwork Job ID: 1684109952842158080
  • Last Price Increase: 2023-08-11
  • Automatic offers:
    • tienifr | Contributor | 26196168
    • situchan | Reporter | 26196170

Activity

  1. added
    Daily
    Bug
    on Jul 25, 2023
  2. melvin-bot commented on Jul 25, 2023

    @melvin-bot

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

  3. melvin-bot commented on Jul 25, 2023

    @melvin-bot

    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
  4. samh-nl commented on Jul 25, 2023

    @samh-nl
    Contributor

    Proposal

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

    Empty screen shows for a brief moment in change task assignee modal

    What is the root cause of that problem?

    This problem is due to a combination of two factors:

    1. A 200ms delay is added for loading the contacts list due to the search input debouncer:

    useEffect(() => {
    const debouncedSearch = _.debounce(updateOptions, 200);
    debouncedSearch();
    return () => {
    debouncedSearch.cancel();
    };
    }, [updateOptions]);

    1. The contacts list is only loaded after the animation transition has ended, adding a delay:

    shouldShowOptions={didScreenTransitionEnd}

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

    We should perform two changes:

    1. updateOptions() should be called on mount.
    2. Remove shouldShowOptions={didScreenTransitionEnd} so that it has its default value of true. Optionally replace with an isUpdatingOptions state that indicates completion of updateOptions().

    The same problem seems to be present in TaskShareDestinationSelectorModal, SearchPage and the 2nd cause also in WorkspaceInvitePage.

    Fixed result

    chrome_LBiMPNYSaq.mp4

    What alternative solutions did you explore? (Optional)

    N/A

  5. kadiealexander commented on Jul 26, 2023

    @kadiealexander
    Contributor

    Reproduced:

    RPReplay_Final1690358026.MP4
  6. added
    External
    on Jul 26, 2023
  7. changed the title [-]Empty screen shows for a brief moment in change task assignee modal[/-] [+][$1000] Empty screen shows for a brief moment in change task assignee modal[/+] on Jul 26, 2023
  8. melvin-bot commented on Jul 26, 2023

    @melvin-bot
  9. added
    Help Wanted
    on Jul 26, 2023
  10. melvin-bot commented on Jul 26, 2023

    @melvin-bot

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

  11. melvin-bot commented on Jul 26, 2023

    @melvin-bot

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

  12. tienifr commented on Jul 26, 2023

    @tienifr
    Contributor

    Proposal

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

    Empty screen shows for a brief moment in change task assignee modal

    What is the root cause of that problem?

    When the transition ends we render the options but we have to wait some times (~200ms) to get data, that why we can see the empty page for a brief moment

    shouldShowOptions={didScreenTransitionEnd}

    useEffect(() => {
    const debouncedSearch = _.debounce(updateOptions, 200);
    debouncedSearch();
    return () => {
    debouncedSearch.cancel();
    };
    }, [updateOptions]);

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

    When we're getting data we should show the skeleton

    In order to do that I introduce the new variable const [isLoading, setIsLoading] = React.useState(true); and update it in updateOptions function

            if(isLoading){
                setIsLoading(false)
            }
    

    and here

    shouldShowOptions={didScreenTransitionEnd && !isLoading}
    

    Note There're other places (TaskShareDestinationSelectorModal, SearchPage, ...) face this problem so we should to apply the above logic too

    Result

    Screen.Recording.2023-07-26.at.15.54.27.mov
  13. 76 remaining items

  14. tienifr commented on Sep 12, 2023

    @tienifr
    Contributor

    As we mentioned above #23563 (comment) and #23563 (comment). I also believe we should give the bounty for @pradeepmdk because he found the correct RCA cc @kadiealexander @sobitneupane

  15. sobitneupane commented on Sep 12, 2023

    @sobitneupane
    Contributor

    Yup. We have agreed on awarding bounty to @pradeepmdk . I am not sure what is the right amount but I vaguely remember paying 25% in such cases.

    cc: @kadiealexander

  16. pradeepmdk commented on Sep 12, 2023

    @pradeepmdk
    Contributor

    Where i am missing in selecting my proposal here? #23563 (comment)

    Let me know what I am missing in selecting my proposal here

    still confusing here
    @sobitneupane @Beamanator

    #23563 (comment) As per this Root cause is unclear so we are getting more proposals and increasing the bountry.

    As per this, I should be treated equally(including bouns) right?

  17. pradeepmdk commented on Sep 18, 2023

    @pradeepmdk
    Contributor

    any update

  18. kadiealexander commented on Sep 19, 2023

    @kadiealexander
    Contributor

    We are discussing this internally @pradeepmdk, thanks for your patience.

  19. pradeepmdk commented on Sep 19, 2023

    @pradeepmdk
    Contributor

    @kadiealexander thanks for the update.

  20. kadiealexander commented on Sep 19, 2023

    @kadiealexander
    Contributor

    @pradeepmdk our team has reviewed the situation and we feel it's fair to award you 25% of the contributor bounty for your assistance in determining the root cause of this bug. As you were not materially involved in proposing or implementing the chosen solution, we do not agree that the full 100% would be fair here.

    Thanks again for your patience while we discussed this. Please apply here and we will get this paid out to you.

  21. kadiealexander commented on Sep 19, 2023

    @kadiealexander
    Contributor

    @sobitneupane please don't forget about the first three points in the checklist here. Thanks!

  22. kadiealexander commented on Sep 19, 2023

    @kadiealexander
    Contributor

    Resurfacing this and updating it since it got buried.

    Payouts due:

    Eligible for 50% #urgency bonus? Yes

    Upwork job is here.

  23. pradeepmdk commented on Sep 20, 2023

    @pradeepmdk
    Contributor

    @kadiealexander Thank you

    As you were not materially involved in proposing or implementing the chosen solution,

    I proposed the solution here #23563 (comment) for chosen one.
    I have both RCA and Solution.

  24. kadiealexander commented on Sep 20, 2023

    @kadiealexander
    Contributor

    @pradeepmdk thank you for your additional information, however our decision here is final. I have sent you a contract in Upwork for the payment, please accept and I will ensure you are paid quickly. 😊

  25. pradeepmdk commented on Sep 20, 2023

    @pradeepmdk
    Contributor

    @kadiealexander I agree your decision is final. but it is still weird here because for no reason my RCA and solution were ignored. but no one has given me a solution as to why the proposal was not selected here.

  26. kadiealexander commented on Sep 20, 2023

    @kadiealexander
    Contributor

    For clarity, @sobitneupane explained here why we preferred @tienifr's solution, even though your RCA was valuable here. I appreciate this was a competitive issue with lots of similar proposals, but ultimately our team reserves the right to choose the solution we believe is best.

  27. JmillsExpensify commented on Sep 21, 2023

    @JmillsExpensify
    Contributor

    $3,000 payment for @sobitneupane approved based on BZ summary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugExternalReviewingWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions