Skip to content

[$500] IOU - The selected category moves to the top of the list when <8 categories active #36912

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!


Version Number: 1.4.43-0
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4327825
Issue reported by: Applause - Internal Team

Action Performed:

Preconditions:
In OldDot under admin, create a Collect group policy, enable categories and add 3 categories, add an employee to the policy. Setup OldDot Collect Policy:
https://sites.google.com/applausemail.com/applause-expensifyproject/wiki-guides/newdot-categories?authuser=0

  1. Open https://staging.new.expensify.com/
  2. Log in to the employee's account
  3. Tap on the green plus button (FAB)
  4. Select Request money
  5. Select any currency and amount
  6. Click next
  7. Choose a group policy room
  8. Click on "Show more"
  9. In the category section, select the category at the bottom of the list
  10. Navigate to the categories section again

Expected Result:

The selected category should remain in its place in alphabetical order if <8 categories are active

Actual Result:

The selected category moves to the top of the list when <8 categories active

Workaround:

Unknown

Platforms:

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

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

Screenshots/Videos

Add any screenshot/video evidence

Bug6385731_1708436028448.Recording__1359.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014ddec0e527151c87
  • Upwork Job ID: 1759967177619148800
  • Last Price Increase: 2024-02-20

Activity

  1. added
    DeployBlockerCash
    External
    on Feb 20, 2024
  2. changed the title [-] IOU - The selected category moves to the top of the list when <8 categories active[/-] [+][$500] IOU - The selected category moves to the top of the list when <8 categories active[/+] on Feb 20, 2024
  3. melvin-bot commented on Feb 20, 2024

    @melvin-bot
  4. added
    Help Wanted
    on Feb 20, 2024
  5. melvin-bot commented on Feb 20, 2024

    @melvin-bot

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

  6. github-actions commented on Feb 20, 2024

    @github-actions
    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.
  7. melvin-bot commented on Feb 20, 2024

    @melvin-bot

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

  8. kbecciv commented on Feb 20, 2024

    @kbecciv
    Author

    We think that this bug might be related to #wave6-collect-submitters
    CC @greg-schroeder

  9. 21 remaining items

  10. DylanDylann commented on Feb 23, 2024

    @DylanDylann
    Contributor

    @Julesssss While implementing PR to fix this issue, we faced a new bug as mentioned here. It is caused by the position of the selected option change when we increase the number of categories from 7 to 8.
    Note that, if we always keep the selected option at the first of the list, this bug won't happen.

    cc @trjExpensify

  11. DylanDylann commented on Feb 23, 2024

    @DylanDylann
    Contributor

    Currently, I see 2 options:

    1. We will always display the selected option at the first of the list. Then we don't need to do anymore and this bug also doesn't happen
    2. We still keep the current design and will create a new bug to fix new above bug
  12. Julesssss commented on Feb 23, 2024

    @Julesssss
    Contributor

    Note that, if we always keep the selected option at the first of the list, this bug won't happen

    Choosing behavior to avoid bugs isn't a good reason. but I'm also a bit unsure where we aligned based on the above comments. @Expensify/design & @trjExpensify, did we align on this?

  13. trjExpensify commented on Feb 23, 2024

    @trjExpensify
    Contributor

    The behaviour came from the categories doc in wave6. Latest ref here.

  14. Julesssss commented on Feb 23, 2024

    @Julesssss
    Contributor

    Thanks. So keeping the option in place aligns with 2 here:

    1. We will always display the selected option at the first of the list. Then we don't need to do anymore and this bug also doesn't happen
    2. We still keep the current design and will create a new bug to fix new above bug
  15. DylanDylann commented on Feb 23, 2024

    @DylanDylann
    Contributor

    Yes, I am reviewing this PR

  16. tgolen commented on Feb 23, 2024

    @tgolen
    Contributor

    FWIW I like always displaying the selected option at the first of the list (option 1).

    • It's a consistent UX in all cases
    • It makes the code less complex (which helps with technical debt, maintenance, and yes, preventing bugs)

    I feel that having the UX change based on the number of items in the list just feels like we are getting more clever than we need to. Let's go with the most simple solution first, and if we get significant customer feedback that this isn't ideal, we can change it later.

  17. DylanDylann commented on Feb 23, 2024

    @DylanDylann
    Contributor

    @Expensify/design Could you help to check this comment and help to give your viewpoint? (should go with 1 or 2 in here)

  18. dannymcclain commented on Feb 23, 2024

    @dannymcclain
    Contributor

    Personally I tend to agree with Tim. But I think this behavior is something that has been talked about widely and decided upon by the larger team. I'm hesitant to let my opinion override a widely agreed upon and documented behavior. 🤷‍♂️

  19. shawnborton commented on Feb 23, 2024

    @shawnborton
    Contributor

    I don't feel too strongly. I think the idea behind not changing the order on the smaller amounts of list items (less than 9) was that you can see all of the items in your viewport, and thus it might feel weird if you have the list jumping when you can see the entire screen at once?

    That being said, definitely down to go with consistency here.

  20. DylanDylann commented on Feb 26, 2024

    @DylanDylann
    Contributor

    @tgolen @Julesssss What is the final confirmation?

  21. Julesssss commented on Feb 26, 2024

    @Julesssss
    Contributor

    Alright, thanks everyone. So we all agree on the consistent component behaviour for now... which is this option:

    We will always display the selected option at the first of the list. Then we don't need to do anymore and #36912 (comment) also doesn't happen

    @DylanDylann you may want hold for a few hours just in case of any final objections

  22. DylanDylann commented on Feb 27, 2024

    @DylanDylann
    Contributor

    @Julesssss If there aren't any objections, let's close this issue. @tienifr Also close this PR

  23. Julesssss commented on Feb 27, 2024

    @Julesssss
    Contributor

    Closing based on this comment

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

Metadata

Metadata

Labels

EngineeringExternalHelp WantedReviewingWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions