-
-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AB tests followup #16243
AB tests followup #16243
Conversation
🚀 Expo preview is ready!
|
I was thinking about merging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the excellent fine-tuning and extended functionality on mobile. I had missed messageSystemMiddleware
, so thank you for including it.
/rebase |
Start rebasing: https://github.com/trezor/trezor-suite/actions/runs/12693630510 |
d51287a
to
bced006
Compare
bced006
to
bb29e8c
Compare
/rebase |
Start rebasing: https://github.com/trezor/trezor-suite/actions/runs/12707203513 |
bb29e8c
to
e987a97
Compare
config: MessageSystem | null, | ||
options: Options, | ||
): ExperimentsItem[] => { | ||
export const getValidExperiments = (config: MessageSystem | null, options: Options): string[] => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I understand correctly that this functions returns experiment IDs? 🤔
If yes, then I'd suggest different naming:
export const getValidExperiments = (config: MessageSystem | null, options: Options): string[] => { | |
export const getValidExperimentIds = (config: MessageSystem | null, options: Options): string[] => { |
It'd also be great to make the return type more strict if possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4568889 Renamed. The config type is auto-generated so I would not use branded type here. It can be used, but I see much more important candidates for more strict types everywhere around.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and clean!
4568889
to
364a9db
Compare
Description
Related Issue
Followup #15067
Screenshots
Redux state:
Example use of useExperiment on mobile:
Result: