Rule 7.9, Flows

Warn before discarding entered work

HardAdapts

Rule. Ask before closing a screen that holds unsaved input, and name what the person will lose.

Wide screen. On a wide screen, also warn when the window or tab closes with unsaved input. (Triggers: Fine pointer, Keyboard)

Why. A stray press on close or back can destroy minutes of work.

When not. Do not ask when the screen is empty or the app saves a draft on its own.

Do. The dialog names the loss and offers Keep editing.

Don't. Pressing close dropped the note with no question.

Size pair. The phone asks on close. The window also asks on window close.