Skip to content

[HOLD for payment 2023-04-14] [$1000] Selected timezone option is not scrolled initially for the timezones list #16905

Description

@mountiny

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:

Break down in numbered steps

  1. Goto profile page
  2. Select Timezone

Expected Result:

Describe what you think should've happened

  1. The selected values should be scrolled to and visible on the list.

Actual Result:

Describe what actually happened

  1. Observe the selected value is not scrolled and visible directly on screen on opening the list

Workaround:

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

User has to scroll to it

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: Staging(v1.2.90-4)
Reproducible in staging?: yes
Reproducible in production?: yes
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
Expensify/Expensify Issue URL:
Issue reported by: @Pujan92
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1679926798768949

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015b1ab2dc02fa1f2c
  • Upwork Job ID: 1643213233754124288
  • Last Price Increase: 2023-04-04

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Apr 4, 2023
  2. self-assigned this
    on Apr 4, 2023
  3. MelvinBot commented on Apr 4, 2023

    @MelvinBot
    Contributor

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

  4. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Apr 4, 2023
  5. MelvinBot commented on Apr 4, 2023

    @MelvinBot
    Contributor

    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
  6. changed the title [-]Selected timezone option is not scrolled initially for the timezones list[/-] [+][$1000] Selected timezone option is not scrolled initially for the timezones list[/+] on Apr 4, 2023
  7. MelvinBot commented on Apr 4, 2023

    @MelvinBot
    Contributor
  8. MelvinBot commented on Apr 4, 2023

    @MelvinBot
    Contributor

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

  9. MelvinBot commented on Apr 4, 2023

    @MelvinBot
    Contributor

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

  10. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Apr 4, 2023
  11. MelvinBot commented on Apr 4, 2023

    @MelvinBot
    Contributor

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

  12. Pujan92 commented on Apr 4, 2023

    @Pujan92
    Contributor

    Proposal

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

    Selected timezone option isn't get scrolled initially

    What is the root cause of that problem?

    We are not setting the initiallyFocusedOptionKey correctly which is causing this issue.

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

    1. initiallyFocusedOptionKey={this.currentSelectedTimezone}

      this.currentSelectedTimezone should be replaced with this.timezone.selected

    2. getKey(text) {
      return `${text}-${(new Date()).getTime()}`;
      }

      We can get rid of the function getKey in TimezoneSelectPage and pass the text for keyForList like the way it was earlier.

    What alternative solutions did you explore? (Optional)

    I am not sure why this(getKey) is required but if it remains then we need to consider text here instead of keyForList

    const indexOfInitiallyFocusedOption = _.findIndex(allOptions, option => option.keyForList === this.props.initiallyFocusedOptionKey);

    Screen.Recording.2023-03-24.at.8.13.09.PM.mov
  13. 50 remaining items

  14. lschurr commented on Apr 11, 2023

    @lschurr
    Contributor

    @mountiny @sobitneupane - Are we still good to continue working through the BZ checklist on this one? Do we need a new regression test?

  15. mountiny commented on Apr 11, 2023

    @mountiny
    ContributorAuthor

    Is there any regression test for this? cc @sobitneupane

  16. sobitneupane commented on Apr 12, 2023

    @sobitneupane
    Contributor

    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:

    #15176

    • [@sobitneupane / @mountiny] 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:

    #15176 (comment)

    • [@sobitneupane / @mountiny] 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:

    https://expensify.slack.com/archives/C049HHMV9SM/p1681279519887149

  17. sobitneupane commented on Apr 12, 2023

    @sobitneupane
    Contributor

    Regression Test Proposal

    • Go to Settings -> Profile -> Timezone
    • Make sure "Automatically determine your location" toggle is turned off and Tap on timezone
    • Verify that currently selected timezone is marked and visible without scrolling

    Do we agree 👍 or 👎

  18. mountiny commented on Apr 12, 2023

    @mountiny
    ContributorAuthor

    Thank you Sobit 🙇

    @lschurr this should be ready

  19. lschurr commented on Apr 12, 2023

    @lschurr
    Contributor
  20. lschurr commented on Apr 13, 2023

    @lschurr
    Contributor
  21. sobitneupane commented on Apr 13, 2023

    @sobitneupane
    Contributor

    Thanks @lschurr. Applied

  22. Pujan92 commented on Apr 13, 2023

    @Pujan92
    Contributor

    @alexxxwork and @sobitneupane - Could you apply for the job: https://www.upwork.com/jobs/~015b1ab2dc02fa1f2c

    Shall I apply for reporting the issue?

  23. alexxxwork commented on Apr 13, 2023

    @alexxxwork
    Contributor

    @lschurr I've applied, thank you.

  24. lschurr commented on Apr 13, 2023

    @lschurr
    Contributor

    Shall I apply for reporting the issue?

    Yes @Pujan92!

  25. lschurr commented on Apr 14, 2023

    @lschurr
    Contributor

    All paid. Closing!

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions