Skip to content

[HOLD for payment 2025-01-17] [$250] Add confirmation dialog on unsaved changes #53679

Description

@dubielzyk-expensify

Problem

When users fill in details in the app (e.g. description on an expense) and tap back or the scrim/overlay by mistake, the user loses everything they filled it. This can be particularly annoying if you submit an expense and fill in multiple details only to misclick and have to start over. We saw this multiple times during our usability study.

Solution

To remedy this, let's add a confirmation dialog on these sort of interactions by throwing up a confirmation dialog for unsaved changes. Here's a video to demonstrate:

CleanShot.2024-12-06.at.15.13.09.mp4

Notes:

  • If the value isn't changed, we should show the warning.
  • Clicking Discard continues the action of the user (if back, go back. If scrim/overlay, closer the right-hand-pane) without saving the value.
  • Any movement away from the screen should trigger the confirmation dialog (given the value has changed)

Questions:

  • Can this be applied systematically or do we have to go through all flows? If not, we should probably start with Submit expense to try it out and continue from there.

cc @Expensify/design @JmillsExpensify @trjExpensify

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021864985847950506437
  • Upwork Job ID: 1864985847950506437
  • Last Price Increase: 2024-12-06
  • Automatic offers:
    • ahmedGaber93 | Reviewer | 105308658
Issue OwnerCurrent Issue Owner: @abekkala

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributorNewFeatureSomething to build that is a new item.

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions