Skip to content

[Simplified Collect][Distance rates] Subcategory is displayed as indented instead of Parent: Child format #38662

Closed

Description

@izarutskaya

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Found when validating PR : #38060

Version Number: 1.4.55-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

Precondition:

  • User is admin of Collect workspace.
  • The Collect workspace has subcategories.
  1. Go to staging.new.expensify.com.
  2. Go to Profile > Workspaces > Collect workspace.
  3. Go to Distance rates.
  4. Click Settings.
  5. Select a subcategory.

Expected Result:

The selected subcategory in Default category row will be displayed in Parent: Child format.

Actual Result:

The selected subcategory in Default category row is displayed as indented subcategory.

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

Bug6420279_1710929188630.subcat.mp4

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Mar 20, 2024
  2. melvin-bot commented on Mar 20, 2024

    @melvin-bot

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

  3. github-actions commented on Mar 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.
  4. melvin-bot commented on Mar 20, 2024

    @melvin-bot

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

  5. izarutskaya commented on Mar 20, 2024

    @izarutskaya
    Author

    @garrettmknight I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

    We think this issue might be related to the #wave-control.

  6. parasharrajat commented on Mar 20, 2024

    @parasharrajat
    Member

    @izarutskaya How do we create subcategories?

  7. Krishna2323 commented on Mar 20, 2024

    @Krishna2323
    Contributor

    @parasharrajat, just by adding a colon, eg: category: subcategory

  8. tienifr commented on Mar 20, 2024

    @tienifr
    Contributor

    @parasharrajat I think we should use category.searchText here instead of category.text:

    Policy.setPolicyDistanceRatesDefaultCategory(policyID, customUnit, {...customUnit, defaultCategory: category.text});

    That's consistent with how we select sub-categories in IOU request:

    const updateCategory = (category) => {
    const isSelectedCategory = category.searchText === transactionCategory;
    const updatedCategory = isSelectedCategory ? '' : category.searchText;

    text is for displaying indented space prefix for sub-categories.

    I can raise PR immediately if assigned.

  9. 5 remaining items

  10. changed the title [-]Distance rates - Subcategory is displayed as indented instead of Parent: Child format[/-] [+][Distance rates] Subcategory is displayed as indented instead of Parent: Child format[/+] on Mar 20, 2024
  11. MrMuzyk commented on Mar 20, 2024

    @MrMuzyk
    Contributor

    I will fix this in the next PR that adds another screen to distance rates feature. Currently its in draft state #38237

  12. trjExpensify commented on Mar 20, 2024

    @trjExpensify
    Contributor

    Discussed in the thread. The issue is that we aren't showing the parent category in the push row preview, only the indented child category. Here's the comparison with a category on an expense:

    image image
  13. changed the title [-][Distance rates] Subcategory is displayed as indented instead of Parent: Child format[/-] [+][Simplified Collect][Distance rates] Subcategory is displayed as indented instead of Parent: Child format[/+] on Mar 20, 2024
  14. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed
    Awaiting PaymentAuto-added when associated PR is deployed to production
    on Mar 27, 2024
  15. garrettmknight commented on Mar 27, 2024

    @garrettmknight
    Contributor

    Made it to prod today, will test tomo.

  16. melvin-bot commented on Apr 8, 2024

    @melvin-bot

    @garrettmknight, @lakchote, @MrMuzyk 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  17. garrettmknight commented on Apr 10, 2024

    @garrettmknight
    Contributor

    This is fixed, closing.

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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringReviewingHas a PR in review

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions