Bug 2087170 - Pass onboarding card callbacks to OnboardingContent as a single OnboardingAction #456 (firefox-autoland@autoland)

Warnings
  • Checking...
Blockers
  • Checking...
Branches bug2087170 -> autoland
Repo firefox-autoland@autoland (git) (git://github.com/corentinbect/firefox.git)
Author corentinbect
State open
Commit Title

Bug 2087170 - Pass onboarding card callbacks to OnboardingContent as a single OnboardingAction

Commit Body

Each card type used to add its own callbacks to `OnboardingScreen`, `OnboardingContent` and `mapToOnboardingPageState`. Card interactions are now modeled using a sealed `OnboardingAction` dispatched via a single `onAction` callback. `OnboardingFragment` handles these actions with exhaustive when. Adding a card implies adding actions and the compiler will flag every place that needs to handle them.

Landings

Not yet Landed
There has been no attempt to land revisions in this stack.