Skip to content

Add save-to-profile prompt on movement finish pages#705

Merged
rzueger merged 1 commit intodevelopfrom
feature/save-profile-prompt
Apr 17, 2026
Merged

Add save-to-profile prompt on movement finish pages#705
rzueger merged 1 commit intodevelopfrom
feature/save-profile-prompt

Conversation

@rzueger
Copy link
Copy Markdown
Member

@rzueger rzueger commented Apr 16, 2026

Summary

  • Inline prompt on departure/arrival finish pages offering to save pilot info and aircraft to the profile
  • Three modes: empty profile (saves pilot data + aircraft), aircraft not in profile (saves aircraft), aircraft changed (updates aircraft)
  • Warm amber banner with star icon, "Speichern" action link + dismiss ×
  • Green success confirmation pill on save
  • Placed after payment completion on arrivals to avoid confusion with payment context
  • Respects profileEnabled flag, skips guest/kiosk/ipauth users
  • Checks confirmed state early to prevent Redux re-render from hiding the success message

Test plan

  • npm test — 1775 tests pass
  • npm run typecheck — clean
  • New user: first departure → "Save pilot info and aircraft" prompt → click Save → green confirmation
  • Existing user, new aircraft: departure → "Save HBXYZ to your profile?" prompt
  • Existing user, changed MTOW: arrival → "Update HBXYZ in your profile?" prompt
  • Same aircraft, no changes: no prompt
  • Arrival with payment: prompt shows after payment, not during
  • Click × to dismiss: prompt disappears
  • profileEnabled: false (lspv): no prompt
  • Guest/kiosk user: no prompt

After completing a departure or arrival, show an inline
prompt offering to save pilot info and aircraft to the
profile for prefilling future movements.

Three modes based on profile state:
- Empty profile: "Save pilot info and aircraft so they're
  prefilled next time?"
- Aircraft not in profile: "Save HBXYZ to your profile?"
- Aircraft in profile with changed data: "Update HBXYZ
  in your profile?"

Styled as a warm amber banner with star icon. Confirm
action shows green success pill. Respects profileEnabled
flag and skips guest/kiosk/ipauth users. Placed after
payment completion on arrivals to avoid confusion with
payment context.
@rzueger rzueger merged commit 7d7c308 into develop Apr 17, 2026
2 checks passed
@rzueger rzueger deleted the feature/save-profile-prompt branch April 17, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant