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
[$250] 91518 - Distance rates - Wrong date format and blank display with no date selected #92277
Version Number: v9.3.90-3 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:#91518 Email or phone of affected tester (no customers): N/A Issue reported by: Applause Internal Team Bug source: Pull Request QA execution Device used: Windows 11 / Chrome, Android 16 / Samsung Galaxy A06 App Component: Workspace Settings
Action Performed:
Precondition:
Use Expensifail account
Have a workspace with distance rates enabled and at least one rate created
Steps:
Go to staging.new.expensify.com
Navigate to a workspace > Distance rates > click on a rate to open the details page
On the rate details page, click on the "Start date" field (or "End date")
Select a date and click "Save"
Open the start date edit page again
Clear the date field and click "Save"
Expected Result:
Step 4, user is navigated back to the details page and the start date now shows the selected date, formatted as yyyy-MM-dd
Step 6, the details page now shows "None" for the start date
Actual Result:
Step 4, the start date now shows the selected date, formatted as MMMM-DD-YYYY
Step 6, the details page is blank for the start date
👋 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.
Wrong format (Step 4): Dates are stored as yyyy-MM-dd, but DateUtils.formatToReadableString reformats them to MMMM d, yyyy (e.g. June 1, 2026). The expected display is the raw yyyy-MM-dd.
Blank instead of "None" (Step 6): When the date is empty/cleared, the title falls back to '' (an empty string) instead of the "None" placeholder. The clearing itself works (startDate is correctly set to null on save) — only the empty-state display is wrong.
What changes do you think we should make in order to solve the problem?
Replace both title expressions so they show the stored ISO date directly and fall back to the "None" label when empty:
common.none already exists ('None'), and rate.startDate/rate.endDate are already in yyyy-MM-dd, so this fixes both symptoms in one change. The now-unused DateUtils import in this file can be removed.
Save/clear logic in PolicyDistanceRateDateEditPage.tsx:59-81 correctly converts an empty input to null, so the underlying data is right — only the read-side rendering is buggy.
Format decision: The PR's own test steps and the QA report both specify yyyy-MM-dd, so displaying the raw stored value is the spec-aligned fix. If the team instead prefers a human-readable format (June 1, 2026), the fix would be to keep formatToReadableString but only update the empty fallback to translate('common.none'). The first option matches the documented expectation.
Next Steps for Contributor+ team: To accept:@MelvinBot implement [this](https://github.com/Expensify/App/issues/92277) to create a draft PR. To refine:@MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.
@neil-marcellini@Krishna2323 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
Activity
applause-bot commentedon Jun 1, 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/83b6571886b565e99b3cb9d41916551512b66a68ba8d37c3b253667a5837ad25
melvin-bot commentedon Jun 1, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #91518
melvin-bot commentedon Jun 1, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Jun 1, 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 Jun 1, 2026
Proposal
Both symptoms come from the same two lines in
PolicyDistanceRateDetailsPage.tsx(added in\#91518).What is the root cause of that problem?
The Start/End date
MenuItemWithTopDescriptiontitles are computed as:yyyy-MM-dd, butDateUtils.formatToReadableStringreformats them toMMMM d, yyyy(e.g.June 1, 2026). The expected display is the rawyyyy-MM-dd.''(an empty string) instead of the "None" placeholder. The clearing itself works (startDateis correctly set tonullon save) — only the empty-state display is wrong.What changes do you think we should make in order to solve the problem?
Replace both title expressions so they show the stored ISO date directly and fall back to the "None" label when empty:
common.nonealready exists ('None'), andrate.startDate/rate.endDateare already inyyyy-MM-dd, so this fixes both symptoms in one change. The now-unusedDateUtilsimport in this file can be removed.Investigation details & alternatives considered
PolicyDistanceRateDetailsPage.tsx:240and:256.PolicyDistanceRateDateEditPage.tsx:59-81correctly converts an empty input tonull, so the underlying data is right — only the read-side rendering is buggy.yyyy-MM-dd, so displaying the raw stored value is the spec-aligned fix. If the team instead prefers a human-readable format (June 1, 2026), the fix would be to keepformatToReadableStringbut only update the empty fallback totranslate('common.none'). The first option matches the documented expectation.Next Steps for Contributor+ team:
To accept:
@MelvinBot implement [this](https://github.com/Expensify/App/issues/92277)to create a draft PR.To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin's proposal.
thelullabyy commentedon Jun 1, 2026
I think we can go with Melvin proposal to fix it @neil-marcellini
neil-marcellini commentedon Jun 1, 2026
Not a blocker, the feature is under a beta
15 remaining items
melvin-bot commentedon Jun 11, 2026
@Krishna2323 Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!
melvin-bot commentedon Jun 15, 2026
@neil-marcellini @Krishna2323 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
melvin-bot commentedon Jun 15, 2026
@Krishna2323 12 days overdue. Walking. Toward. The. Light...
melvin-bot commentedon Jun 18, 2026
This issue has not been updated in over 14 days. @neil-marcellini, @Krishna2323 eroding to Weekly issue.
Krishna2323 commentedon Jun 18, 2026
We can close this issue, fixed in #92186.
melvin-bot commentedon Jun 29, 2026
@neil-marcellini @Krishna2323 this issue is now 4 weeks old, please consider:
Thanks!
Krishna2323 commentedon Jun 30, 2026
@neil-marcellini @rlinoz, could you please close this issue when you get a chance?