Skip to content

[HOLD for payment 2024-12-20] [HOLD for payment 2024-12-19] Search - Pay button for held expenses is gray in wide layout, and green in narrow layout #53905

Closed

Description

@IuliiaHerets

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: 9.0.74-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): applausetester+kh1311020@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Submit two expenses.
  4. Hold one of the expenses.
  5. Note that the pay button is gray in main chat and expense report.
  6. Go to Search > Outstanding.
  7. Note that the pay button is also gray.
  8. Switch the layout to narrow layout.

Expected Result:

The pay button for held expenses should be gray in narrow layout.

Actual Result:

The pay button for held expenses is gray in wide layout, and green in narrow layout.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6690711_1733906920735.20241211_164502.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @zanyrenney

Activity

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

    @melvin-bot

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

  3. melvin-bot commented on Dec 11, 2024

    @melvin-bot

    Triggered auto assignment to @zanyrenney (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  4. melvin-bot commented on Dec 11, 2024

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on Dec 11, 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.
  6. bernhardoj commented on Dec 11, 2024

    @bernhardoj
    Contributor

    Proposal

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

    Pay button becomes green back when screen is resized to small.

    What is the root cause of that problem?

    When the screen is large, we pass the shouldUseSuccessStyle correctly.

    {isLargeScreenWidth && (
    <View style={StyleUtils.getSearchTableColumnStyles(CONST.SEARCH.TABLE_COLUMNS.ACTION)}>
    <ActionCell
    action={reportItem.action}
    shouldUseSuccessStyle={!hasHeldExpenses}
    goToItem={handleOnButtonPress}
    isSelected={item.isSelected}
    isLoading={reportItem.isActionLoading}
    />
    </View>
    )}

    For for small screen, we forgot to pass shouldUseSuccessStyle.

    {!isLargeScreenWidth && (
    <ExpenseItemHeaderNarrow
    participantFrom={participantFrom}
    participantFromDisplayName={participantFromDisplayName}
    participantTo={participantTo}
    participantToDisplayName={participantToDisplayName}
    action={reportItem.action}
    onButtonPress={handleOnButtonPress}
    containerStyle={[styles.ph3, styles.pt1half, styles.mb1half]}
    isLoading={reportItem.isActionLoading}
    />
    )}

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

    Pass shouldUseSuccessStyle to ExpenseItemHeaderNarrow.

    shouldUseSuccessStyle={!hasHeldExpenses}
    

    What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

    N/A

  7. cristipaval commented on Dec 11, 2024

    @cristipaval
    Contributor

    This seems to be the offending PR. Checking to see if the author is available for a fix in the next few hours

  8. 9 remaining items

  9. changed the title [-]Search - Pay button for held expenses is gray in wide layout, and green in narrow layout[/-] [+][HOLD for payment 2024-12-19] Search - Pay button for held expenses is gray in wide layout, and green in narrow layout[/+] on Dec 12, 2024
  10. melvin-bot commented on Dec 12, 2024

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  11. melvin-bot commented on Dec 12, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.74-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2024-12-19. 🎊

    For reference, here are some details about the assignees on this issue:

    • @mananjadhav requires payment through NewDot Manual Requests
  12. melvin-bot commented on Dec 12, 2024

    @melvin-bot

    @mananjadhav @zanyrenney @mananjadhav The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  13. changed the title [-][HOLD for payment 2024-12-19] Search - Pay button for held expenses is gray in wide layout, and green in narrow layout[/-] [+][HOLD for payment 2024-12-20] [HOLD for payment 2024-12-19] Search - Pay button for held expenses is gray in wide layout, and green in narrow layout[/+] on Dec 13, 2024
  14. melvin-bot commented on Dec 13, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.75-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2024-12-20. 🎊

    For reference, here are some details about the assignees on this issue:

    • @mananjadhav requires payment through NewDot Manual Requests
  15. melvin-bot commented on Dec 13, 2024

    @melvin-bot

    @mananjadhav @zanyrenney @mananjadhav The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

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.EngineeringReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions