Skip to content

Distance - Rate change tooltip reappears after dismissing it and reset app #93512

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.4.7-0
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: #93103
Email or phone of affected tester (no customers): applausetester+ssndjois2jd1@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.5 / Chrome
App Component: Money Requests

Action Performed:

Precondition:

  • Log in with Expensifail account.
  • Enable Distance rates.
  • Create the following distance rates:
    Rate A: $0.67/mi, valid Jan 1 2025 - Dec 31 2025
    Rate B: $0.70/mi, valid Jan 1 2026 - Dec 31 2026
  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Click + > Track distance > Manual.
  4. Enter amount > Next.
  5. Click Date and change date to 2025.
  6. Dismiss the tooltip.
  7. Close the RHP.
  8. Go to Account > Troubleshoot > Clear cache and restart > Reset and refresh.
  9. Repeat Step 2 to 5.

Expected Result:

Rate change tooltip will not reappear after dismissing it and reset app.

Actual Result:

Rate change tooltip reappears after dismissing it and reset app.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7179437_1781304715735.20.mp4

View all open jobs on GitHub

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

Activity

  1. added
    DeployBlockerCash
    on Jun 13, 2026
  2. applause-bot commented on Jun 13, 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/538461efd20d4c1502a0216cd060850556bf7595add659c7fee8976d2f5640ce

  3. added
    Bug
    on Jun 13, 2026
  4. melvin-bot commented on Jun 13, 2026

    @melvin-bot

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

  5. melvin-bot commented on Jun 13, 2026

    @melvin-bot

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

  6. github-actions commented on Jun 13, 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 Jun 13, 2026

    @MelvinBot
    Contributor

    Issue Analysis

    Root Cause: The "We updated the rate based on your travel date" tooltip (mileageRateAutoUpdated) is dismissed correctly on the App side, but the dismissal is not being persisted server-side, so it comes back after Clear cache and reset/refresh.

    The App stores tooltip dismissals in the dismissedProductTraining NVP. When the user dismisses this tooltip, the App optimistically writes the dismissal and fires the DismissProductTraining write command (Welcome/index.ts:191-207). The gating logic also correctly honors that NVP for this new tooltip (ProductTrainingContext/index.tsx:126-130).

    Clear cache and reset/refresh wipes the optimistic local value and re-fetches the NVP from the server. Since the tooltip reappears after that refetch, the server did not store the dismissal for the new name mileageRateAutoUpdated — i.e. the App-side flow is correct, and the persistence gap is on the backend.

    This is a backend issue, outside the Expensify/App repo. The newly added product-training name mileageRateAutoUpdated (introduced in #93103) needs to be recognized/allowlisted server-side so the DismissProductTraining write actually persists it. This requires an internal engineer with access to the backend that handles that write command — it cannot be fixed in App.

    Investigation details & evidence chain

    Repro mechanism:

    1. Change date to 2025 → rate auto-updates → rateAutoUpdated is set on the transaction → tooltip shows.
    2. User dismisses → App writes dismissal optimistically + API.write(DISMISS_PRODUCT_TRAINING, {name: 'mileageRateAutoUpdated', ...}).
    3. Clear cache and reset/refresh → local Onyx (including the optimistic dismissal) is wiped and the NVP is re-fetched from the server.
    4. Repeat → rateAutoUpdated becomes true again, and because the server returned no dismissal for mileageRateAutoUpdated, the gating no longer blocks it → tooltip reappears.

    Why the App side is ruled out:

    • Dismissal is wired on the rate field (X button → hideTooltip(true), tap → hideProductTrainingTooltip), both of which call dismissProductTraining (RateField.tsx).
    • The new name is registered in the NVP type (DismissedProductTraining.ts) and the gate reads it via isProductTrainingElementDismissed (TooltipUtils.ts).
    • If the server had persisted the dismissal, the refetched NVP would contain mileageRateAutoUpdated and the tooltip would stay hidden. It does not stay hidden → the server did not persist it.

    Alternative considered: the reset clearing the pending request queue before the write flushes. Unlikely here — the repro dismisses, closes the RHP, then navigates to Settings → Troubleshoot before resetting, giving the online write ample time to reach the server.

    Confidence: Medium. The deduction from App source is strong, but I could not pull staging/production logs to directly confirm the backend dropped the DismissProductTraining write for the new name (no log access in this run). To confirm, an engineer with log access can check the DismissProductTraining command on staging for name=mileageRateAutoUpdated and verify whether the name is allowlisted in the backend handler.


    Next Steps: This requires a backend change outside Expensify/App, so please escalate to an internal engineer to register/allowlist the mileageRateAutoUpdated product-training name server-side. Reply with @MelvinBot <your feedback> to refine this analysis.

  8. melvin-bot commented on Jun 13, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  9. melvin-bot commented on Jun 13, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  10. Krishna2323 commented on Jun 15, 2026

    @Krishna2323
    Contributor

    The newly added product-training name mileageRateAutoUpdated (introduced in #93103) needs to be recognized/allowlisted server-side so the DismissProductTraining write actually persists it. This requires an internal engineer with access to the backend that handles that write command — it cannot be fixed in App.

    @rlinoz this would require backend changes if we decide to fix it.

  11. added
    Daily
    and removed
    Hourly
    on Jun 15, 2026
  12. removed
    DeployBlockerCash
    on Jun 15, 2026
  13. rlinoz commented on Jun 15, 2026

    @rlinoz
    Contributor

    Demoting, minor UI issue, and I think it should fix the way it is working.

  14. rlinoz commented on Jun 15, 2026

    @rlinoz
    Contributor

    Expected behavior.

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

Metadata

Metadata

Assignees

Labels

BugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions