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

fix: 3782 - more relevant check and matomo message #3787

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

monsieurtanuki
Copy link
Contributor

Impacted files:

  • add_basic_details_page.dart: unrelated typo fix
  • analytics_helper.dart: added 2 events for matomo; unrelated typo fix
  • edit_product_page.dart: unrelated typo fix
  • smooth_barcode_scanner_mlkit.dart: added an isStarting check; now sends matomo instead of red snackbar; simplified

What

  • The red snackbars that we displayed are now replaced by matomo messages.
  • In addition to that, we're now more careful about when to send an alert. More specifically, we use an additional controller check before trying to restart the camera/scanner

Fixes bug(s)

Part of

Impacted files:
* `add_basic_details_page.dart`: unrelated typo fix
* `analytics_helper.dart`: added 2 events for matomo; unrelated typo fix
* `edit_product_page.dart`: unrelated typo fix
* `smooth_barcode_scanner_mlkit.dart`: added an `isStarting` check; now sends matomo instead of red snackbar; simplified
@monsieurtanuki monsieurtanuki requested a review from a team as a code owner March 19, 2023 14:02
@github-actions github-actions bot added 📈 Analytics We use Sentry and Matomo, with an opt-in system 🥫 Product page 🤳🥫 Scan We need to be able to scan on low-end, old devices, even with a bad camera, connexion… labels Mar 19, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #3787 (eacc67e) into develop (805ca0d) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##           develop    #3787   +/-   ##
========================================
  Coverage    10.78%   10.78%           
========================================
  Files          269      269           
  Lines        13403    13396    -7     
========================================
  Hits          1445     1445           
+ Misses       11958    11951    -7     
Impacted Files Coverage Δ
...kages/smooth_app/lib/helpers/analytics_helper.dart 0.00% <ø> (ø)
..._app/lib/pages/product/add_basic_details_page.dart 0.00% <ø> (ø)
...mooth_app/lib/pages/product/edit_product_page.dart 0.45% <0.00%> (ø)
...p/lib/pages/scan/smooth_barcode_scanner_mlkit.dart 0.00% <0.00%> (ø)

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

Copy link
Member

@teolemon teolemon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sound good

@monsieurtanuki monsieurtanuki merged commit 0bf2794 into openfoodfacts:develop Mar 20, 2023
@monsieurtanuki
Copy link
Contributor Author

Thank you @teolemon for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📈 Analytics We use Sentry and Matomo, with an opt-in system 🥫 Product page 🤳🥫 Scan We need to be able to scan on low-end, old devices, even with a bad camera, connexion…
Development

Successfully merging this pull request may close these issues.

Error after leaving product page and upload page
3 participants