Skip to content

[Due for payment 2026-06-01] [$250] Distance rates - Save button is not at the bottom of RHP on Add rate page #91372

Closed

Description

@applause-bot

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.3.79-1
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #90153
Email or phone of affected tester (no customers): applausetester+khcategory19@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.2 / Chrome
App Component: Money Requests

Action Performed:

Precondition:

  • Log in with Expensifail account.
  • Enable Distance rates in workspace settings.
  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Distance rates.
  3. Click Add rate.

Expected Result:

Save button will be at the bottom of RHP.

Actual Result:

Save button is not at the bottom of RHP on Add rate page.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7160123_1779402030115.6.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Mita Rachim
Bug ID: 7160123

Issue OwnerCurrent Issue Owner: @mallenexpensify
Upwork Automation - Do Not Edit

Activity

  1. added
    DeployBlockerCash
    on May 21, 2026
  2. applause-bot commented on May 21, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/8e7ee7a478f35cb4b83b87043fc6be475f5458443a8c6451a28799d0d6c48bb7

  3. added
    Bug
    on May 21, 2026
  4. melvin-bot commented on May 21, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #90153

  5. melvin-bot commented on May 21, 2026

    @melvin-bot

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

  6. github-actions commented on May 21, 2026

    @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. MelvinBot commented on May 21, 2026

    @MelvinBot
    Contributor

    Proposal

    What is the root cause of that problem?

    PR #90153 added a date-bound mileage rate creation flow to CreateDistanceRatePage.tsx. When the isDateBoundMileageRateEnabled beta is active, the form renders four View-wrapped inputs (name, rate, startDate, endDate) that only occupy their natural height. Combined with submitFlexEnabled={false}, nothing fills the remaining vertical space, so the Save button sits directly below the last input instead of at the bottom of the RHP.

    In the non-beta path, AmountForm renders NumberWithSymbolForm which has an internal flex:1 container that naturally fills available space and pushes the button down.

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

    In CreateDistanceRatePage.tsx, set submitFlexEnabled to true when the date-bound beta is enabled. This gives the submit button container flex:1 via FormWrapper.tsx, pushing the Save button to the bottom of the RHP. The non-beta path can keep submitFlexEnabled={false} since AmountForm already handles spacing internally.

    Change line 121 from:
    submitFlexEnabled={false} to submitFlexEnabled={!isDateBoundMileageRateEnabled}

    What alternative solutions did you explore? (Optional)

    Wrapping the date-bound inputs in a <View style={styles.flexGrow1}> would also work, but toggling submitFlexEnabled is simpler and uses the existing FormWrapper mechanism designed for exactly this purpose.


    Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.

  8. neil-marcellini commented on May 21, 2026

    @neil-marcellini
    Contributor

    I think this is not a deploy blocker because it's only happening under the beta. I'll test and verify on dev.

    @Krishna2323 pls work on the fix, you can use Melvin if you want.

  9. neil-marcellini commented on May 21, 2026

    @neil-marcellini
    Contributor

    Yep, when the beta is enabled it matches staging exactly so not a blocker.

    2026-05-21_16-14-37.mp4
  10. removed
    DeployBlockerCash
    on May 21, 2026
  11. 28 remaining items

  12. melvin-bot commented on May 25, 2026

    @melvin-bot

    @Krishna2323 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. melvin-bot commented on May 29, 2026

    @melvin-bot

    @Krishna2323 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  14. added
    Awaiting Payment
    on May 31, 2026
  15. melvin-bot commented on May 31, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  16. melvin-bot commented on May 31, 2026

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@mallenexpensify)

    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/2057601350114653554/hired)
    • I have verified the PR was not reverted
    • I have applied any discounts due to bugs/regressions introduced by this PR
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  17. mallenexpensify commented on Jun 1, 2026

    @mallenexpensify
    Contributor

    @Krishna2323 are you being paid on a project basis for this?

  18. Krishna2323 commented on Jun 4, 2026

    @Krishna2323
    Contributor

    are you being paid on a project basis for this?

    @mallenexpensify Yes, sorry for not mentioning that earlier.

  19. mallenexpensify commented on Jun 5, 2026

    @mallenexpensify
    Contributor

    No worries, we're implementing a new label to help with project payment tracking that'll be a huge time saver once it's live

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineeringExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions