You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-06-01] [$250] Distance rates - Save button is not at the bottom of RHP on Add rate page #91372
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
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.
Go to staging.new.expensify.com
Go to workspace settings > Distance rates.
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.
👋 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:
Identify the pull request that introduced this issue and revert it.
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.
@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]
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Activity
applause-bot commentedon May 21, 2026
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
melvin-bot commentedon May 21, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #90153
melvin-bot commentedon May 21, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon May 21, 2026
👋 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:
MelvinBot commentedon May 21, 2026
Proposal
What is the root cause of that problem?
PR #90153 added a date-bound mileage rate creation flow to
CreateDistanceRatePage.tsx. When theisDateBoundMileageRateEnabledbeta is active, the form renders fourView-wrapped inputs (name, rate, startDate, endDate) that only occupy their natural height. Combined withsubmitFlexEnabled={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,
AmountFormrendersNumberWithSymbolFormwhich has an internalflex:1container 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, setsubmitFlexEnabledtotruewhen the date-bound beta is enabled. This gives the submit button containerflex:1viaFormWrapper.tsx, pushing the Save button to the bottom of the RHP. The non-beta path can keepsubmitFlexEnabled={false}sinceAmountFormalready handles spacing internally.Change line 121 from:
submitFlexEnabled={false}tosubmitFlexEnabled={!isDateBoundMileageRateEnabled}What alternative solutions did you explore? (Optional)
Wrapping the date-bound inputs in a
<View style={styles.flexGrow1}>would also work, but togglingsubmitFlexEnabledis simpler and uses the existingFormWrappermechanism designed for exactly this purpose.Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.neil-marcellini commentedon May 21, 2026
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.
neil-marcellini commentedon May 21, 2026
Yep, when the beta is enabled it matches staging exactly so not a blocker.
2026-05-21_16-14-37.mp4
28 remaining items
melvin-bot commentedon May 25, 2026
@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]
melvin-bot commentedon May 29, 2026
@Krishna2323 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon May 31, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon May 31, 2026
Payment Summary
Upwork Job
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Jun 1, 2026
@Krishna2323 are you being paid on a project basis for this?
Krishna2323 commentedon Jun 4, 2026
@mallenexpensify Yes, sorry for not mentioning that earlier.
mallenexpensify commentedon Jun 5, 2026
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