Skip to content
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

feat: Robotoff question as a banner or a button #4280

Merged
merged 2 commits into from
Jul 29, 2023

Conversation

g123k
Copy link
Collaborator

@g123k g123k commented Jul 8, 2023

Hi everyone,

We don't have an A/B testing solution yet, but I have tried to implement a very naive solution, where each user has now a random int between 0 and 10. In this case, it allows telling that half of the user will see a button and the other half a banner.

  • Button layout (the animation is fixed with no emoji anymore)
    Screenshot_1688814482

  • Banner layout (padding is added at the bottom, don't worry)
    Screenshot_1688814549

I have also improved the CongratsWidget with more margins, animations… and obviously some improvements for the accessibility.

Videos:
Banner: Banner.webm

Button: Button.webm

Accessibility: Accessibility.webm

@g123k g123k requested a review from a team as a code owner July 8, 2023 11:11
@g123k g123k self-assigned this Jul 8, 2023
@github-actions github-actions bot added 🥫 Product page Product addition The easier it is to add a product and get Nutri-Score, Eco-Score, the happier the users. 📈 Analytics We use Sentry and Matomo, with an opt-in system dependencies 🌐 l10n summary card labels Jul 8, 2023
@g123k g123k added ♿️ accessibility 🤖 Robotoff and removed 🥫 Product page Product addition The easier it is to add a product and get Nutri-Score, Eco-Score, the happier the users. 📈 Analytics We use Sentry and Matomo, with an opt-in system dependencies 🌐 l10n summary card labels Jul 8, 2023
@github-actions github-actions bot added 🥫 Product page Product addition The easier it is to add a product and get Nutri-Score, Eco-Score, the happier the users. 📈 Analytics We use Sentry and Matomo, with an opt-in system dependencies 🌐 l10n summary card PR: needs rebase and removed 🤖 Robotoff labels Jul 11, 2023
@g123k
Copy link
Collaborator Author

g123k commented Jul 17, 2023

I will change the animation with the sun from the onboarding

@codecov-commenter
Copy link

codecov-commenter commented Jul 17, 2023

Codecov Report

Merging #4280 (56695e3) into develop (ef15cab) will decrease coverage by 0.04%.
The diff coverage is 4.87%.

@@             Coverage Diff             @@
##           develop    #4280      +/-   ##
===========================================
- Coverage    10.34%   10.31%   -0.04%     
===========================================
  Files          293      294       +1     
  Lines        14636    14760     +124     
===========================================
+ Hits          1514     1522       +8     
- Misses       13122    13238     +116     
Impacted Files Coverage Δ
...kages/smooth_app/lib/helpers/analytics_helper.dart 6.45% <ø> (ø)
...s/preferences/user_preferences_dev_debug_info.dart 2.22% <0.00%> (-0.11%) ⬇️
...ges/smooth_app/lib/pages/product/summary_card.dart 0.00% <0.00%> (ø)
packages/smooth_app/lib/widgets/widget_height.dart 0.00% <0.00%> (ø)
...pp/lib/pages/product/product_questions_widget.dart 2.63% <0.96%> (-0.82%) ⬇️
...smooth_app/lib/pages/product/new_product_page.dart 0.46% <1.69%> (+0.46%) ⬆️
...es/smooth_app/lib/pages/hunger_games/congrats.dart 1.47% <2.00%> (+1.47%) ⬆️
...mooth_app/lib/generic_lib/widgets/smooth_card.dart 77.77% <71.42%> (-8.89%) ⬇️
...s/smooth_app/lib/data_models/user_preferences.dart 22.14% <80.00%> (+2.14%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions
Copy link
Contributor

@g123k g123k marked this pull request as draft July 17, 2023 07:15
@github-actions github-actions bot added the MacOS label Jul 17, 2023
@g123k
Copy link
Collaborator Author

g123k commented Jul 17, 2023

We have a better animation now: https://rive.app/s/Ti-xrBGssE6gpLxAmwL2vQ/
Animation

… the screen) or in a button (current implementation)

We split the users into two cohorts and we will have some Analytics to understand if one is better than the other.
The CongratsWidget is also improved by some animations and accessibility
@teolemon teolemon merged commit a699773 into openfoodfacts:develop Jul 29, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
♿️ accessibility 📈 Analytics We use Sentry and Matomo, with an opt-in system dependencies 🌐 l10n MacOS Product addition The easier it is to add a product and get Nutri-Score, Eco-Score, the happier the users. 🥫 Product page summary card
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants