Skip to content

[HOLD for payment 2023-10-13] [$500] Web - Pronouns value not displayed on login #27675

Closed

Description

@kbecciv

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 the app
  2. Open settings->profile->pronouns
  3. Copy the URL
  4. Logout and paste the URL
  5. Login and observe that currently selected pronouns value is not displayed

Expected Result:

App should display pronouns value if present on login

Actual Result:

App does not display pronouns value if present on login on login with pronouns 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: 1.3.71.4
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

No.pronouns.value.on.login.mp4
Recording.4559.mp4

Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694889012343609

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014246fda785f9f058
  • Upwork Job ID: 1703768490032054272
  • Last Price Increase: 2023-09-25
  • Automatic offers:
    • dukenv0307 | Contributor | 26916802

Activity

  1. dukenv0307 commented on Sep 18, 2023

    @dukenv0307
    Contributor

    Proposal

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

    Pronouns value not displayed on login

    What is the root cause of that problem?

    We only set searchValue for the first render.

    const [searchValue, setSearchValue] = useState(() => {

    When we open the page via deep link on login, currentUserPersonalDetails is empty until the openApp API is complete. So the searchValue is empty.

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

    We should subscribe isLoadingReportData to know when the openApp is complete.

    Then we can create a useEffect to set searchValue state if the API is complete

    useEffect(() => {
        if (isLoadingReportData && _.isEmpty(currentPronouns)) {
            return;
        }
        const currentPronounsText = _.chain(CONST.PRONOUNS_LIST)
            .find((_value) => _value === currentPronounsKey)
            .value();
    
        setSearchValue(currentPronounsText ? translate(`pronouns.${currentPronounsText}`) : '');
    }, [currentPronouns, isLoadingReportData])
    

    OPTIONAL: To make the best UI, we can display the loading page before the API is complete or hide the text input until the API is complete

    What alternative solutions did you explore? (Optional)

    NA

    Result

    Screencast.from.18-09-2023.17.46.10.webm
  2. added
    External
    Daily
    Bug
    on Sep 18, 2023
  3. changed the title [-]Web - Pronouns value not displayed on login[/-] [+][$500] Web - Pronouns value not displayed on login[/+] on Sep 18, 2023
  4. melvin-bot commented on Sep 18, 2023

    @melvin-bot

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

  5. melvin-bot commented on Sep 18, 2023

    @melvin-bot
  6. added
    Help Wanted
    on Sep 18, 2023
  7. melvin-bot commented on Sep 18, 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
  8. melvin-bot commented on Sep 18, 2023

    @melvin-bot

    Triggered auto assignment to @CortneyOfstad (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  9. melvin-bot commented on Sep 18, 2023

    @melvin-bot

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

  10. c3024 commented on Sep 18, 2023

    @c3024
    Contributor

    Proposal

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

    Pronouns list is not shown initially when accessed from deep link and then logging in

    What is the root cause of that problem?

    We are setting the initial searchValue here

    const [searchValue, setSearchValue] = useState(() => {
    const currentPronounsText = _.chain(CONST.PRONOUNS_LIST)
    .find((_value) => _value === currentPronounsKey)
    .value();
    return currentPronounsText ? translate(`pronouns.${currentPronounsText}`) : '';
    });

    When we access this page from deep link, initially currentPronounsKey is empty because currentUserPersonalDetails has not been loaded yet.

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

    We should show a loading indicator when the page is loading and the pronouns field in currentUserPersonalDetails does not exist by adding this.

        if (!_.has(currentUserPersonalDetails, 'pronouns')) {
            return <FullScreenLoadingIndicator />;
        }

    What alternative solutions did you explore? (Optional)

  11. 69 remaining items

  12. dukenv0307 commented on Oct 24, 2023

    @dukenv0307
    Contributor

    @joekaufmanexpensify I agree with this .

  13. JmillsExpensify commented on Oct 24, 2023

    @JmillsExpensify
    Contributor

    $750 payment approved for @allroundexperts based on summary above.

  14. joekaufmanexpensify commented on Oct 24, 2023

    @joekaufmanexpensify
    Contributor

    Great, thanks for confirming. That means we still need to issue the following payments:

    • @dukenv0307 - $375 ($250 for half of PR bounty, and $125 for 50% speed bonus for bounty paid). Paid vua Upwork.
    • @suneox - $250 for providing elements used in the solution. No speed bonus here since they did not contribute to the timed work to get this merged. Paid via upwork.
    • @dhanashree-sawant - $50 for reporting the bug. Paid via Upwork.
  15. joekaufmanexpensify commented on Oct 24, 2023

    @joekaufmanexpensify
    Contributor

    @suneox offer sent for $250!

  16. joekaufmanexpensify commented on Oct 24, 2023

    @joekaufmanexpensify
    Contributor

    @dhanashree-sawant offer sent for $50!

  17. dukenv0307 commented on Oct 25, 2023

    @dukenv0307
    Contributor

    @joekaufmanexpensify I think the bonus should be $250 and we only split $500 between me and @suneox. Correct me if I missed something.

  18. joekaufmanexpensify commented on Oct 25, 2023

    @joekaufmanexpensify
    Contributor

    @dukenv0307 the urgency bonus is 50% of the bounty earned by the contributor who raised the PR, rather than a static bonus. Since you raised the PR, and are earning a $250 bounty for this issue, your 50% bonus for the PR is $125. A $250 bonus on your $250 bounty would be a 100% bonus.

    @suneox isn't earning a bonus since they were not involved in the collaborative process of raising the PR quickly.

    LMK if you have any other questions!

  19. joekaufmanexpensify commented on Oct 25, 2023

    @joekaufmanexpensify
    Contributor

    @dukenv0307 $375 sent and contract ended!

  20. joekaufmanexpensify commented on Oct 25, 2023

    @joekaufmanexpensify
    Contributor

    @suneox $250 sent and contract ended!

  21. joekaufmanexpensify commented on Oct 25, 2023

    @joekaufmanexpensify
    Contributor

    @dhanashree-sawant $50 sent and contract ended!

  22. joekaufmanexpensify commented on Oct 25, 2023

    @joekaufmanexpensify
    Contributor

    Upwork job closed

  23. joekaufmanexpensify commented on Oct 25, 2023

    @joekaufmanexpensify
    Contributor

    Bug is fixed, BZ checklist complete, and all payment issued. Closing as this is all set. Thanks everyone!

  24. dukenv0307 commented on Nov 15, 2023

    @dukenv0307
    Contributor

    @dukenv0307 the urgency bonus is 50% of the bounty earned by the contributor who raised the PR, rather than a static bonus. Since you raised the PR, and are earning a $250 bounty for this issue, your 50% bonus for the PR is $125. A $250 bonus on your $250 bounty would be a 100% bonus.

    @joekaufmanexpensify my take is that as we're splitting original bounty, we also share responsibility of getting a PR up and merged and will jointly be eligible for the $250 bonus if within 3 days. But 1 of us does not participate in the PR, only I handle the PR from start to end and strive to get it merged asap, I bear the whole responsibility (which by right should be split similar to the reward).

    So it makes sense that I'll be eligible for the full bonus of the "PR responsibility" which is $250. I have seen that in other issues like this one. Could you kindly give this a second look, thanks!

  25. joekaufmanexpensify commented on Nov 15, 2023

    @joekaufmanexpensify
    Contributor

    @dukenv0307 I definitely understand where you're coming from. However, the previous guidance on the urgency bonus is fairly clear. It is a 50% bonus applied to the bounty earned to incentivize the individual writing the PR to get it done quickly. It scaled down with the various compensation changes we've made to the contributor program as well.

    I think we handled the urgency bonus in that other issue incorrectly, so I don't think we'd issue a 100% urgency bonus here based on that.

    We appreciate your understanding. Let me know if you have any other questions!

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions