Skip to content

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

Open
corentinbect wants to merge 1 commit into
mozilla-firefox:autolandfrom
corentinbect:bug2087170
Open

corentinbect wants to merge 1 commit into
mozilla-firefox:autolandfrom
corentinbect:bug2087170

Conversation

@corentinbect

@corentinbect corentinbect commented Nov 18, 2026 •

Copy link
Copy Markdown

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.


Lando: link
Bugzilla: bug 2087170

⚠️ This pull request has 3 warnings.
🚫 This pull request has 1 blocker.

@lando-web
lando-web Bot requested a review from a team November 18, 2026 12:48
@corentinbect

Copy link
Copy Markdown
Author

Try run

@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

1 similar comment
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

1 similar comment
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

…a single OnboardingAction

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.
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

1 similar comment
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

This branch has not been deployed

No deployments
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