* feat: 5455 - new "data quality" link in "contribute" page
* minor label fix - and I noticed the problem even before Gemini whined about it ;)
* minor icon change
* feat: added the help improve OFF in your country tile on the contribute page
* Update packages/smooth_app/lib/l10n/app_en.arb
* fix: fixing comma
* feat: added country wiki class and a check to show the listtile
* Update packages/smooth_app/lib/pages/preferences/user_preferences_contribute.dart
Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
* feat: satisfying pr requests
* feat: refactored userPreferences.countyCode to be a part of UserPreferenceContribute
* feat: adding map to country wiki links
* feat: adding country wiki link to user prefs
* feat: quick fix of adding the icon to the help improve country tile
* feat: format
* fix: organizing imports
* feat: make the help country links conditional
* fix: formatted code
* fix: deleting unused ports
* chore: formatted and added golden test
* chore: added setCountry to dialogs_test.dart
* chore: formatted code
---------
Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
* feat: 5428 - page dedicated to prices
New file:
* `prices_home_page.dart`: Home page of Prices
Impacted file:
* `user_preferences_account.dart`: replaced the whole prices items with a single item linking to new page `PricesHomePage`
* minor fix
* Moved to top page Prices and Donation
New files:
* `user_preferences_donation.dart`: Display of "Donation" for the preferences page.
* `user_preferences_prices.dart`: Display of "Prices" for the preferences page.
Deleted file:
* `prices_home_page.dart`
Impacted files:
* `app_en.arb`: added a short label for "donation"
* `user_preferences_account.dart`: removed link to `PricesHomePage`
* `user_preferences_contribute.dart`: removed the "donation" item
* `user_preferences_page.dart`: added "donation" and "prices" as preferences
Impacted files:
* `category_product_query.dart`: refactored with new `productType` parameter
* `keywords_product_query.dart`: refactored with new `productType` parameter
* `paged_product_query.dart`: refactored with new `productType` parameter
* `paged_search_product_query.dart`: refactored with new `productType` parameter
* `paged_to_be_completed_product_query.dart`: refactored with new `productType` parameter
* `paged_user_product_query.dart`: refactored with new `productType` parameter
* `product_list.dart`: refactored with new `productType` parameter
* `product_query.dart`: added a "get label" method for `ProductType`
* `search_field.dart`: displayed the new optional "additional filter" (e.g. OxF)
* `search_helper.dart`: added a new optional "additional filter"
* `search_product_helper.dart`: new "product type filter" widget
* `summary_card.dart`: minor "productType" fix
* `user_preferences_account.dart`: added "productType.food" to user page counts
* `user_preferences_contribute.dart`: added "productType.food" to "to be completed" products
* feat: 4510 - new "enroll in the beta" contribute item
Impacted files:
* `app_en.arb`: added an "enroll in the beta" label.
* `app_store.dart`: new `getEnrollInBetaURL` method
* `apple_app_store.dart`: implements new `getEnrollInBetaURL` method
* `google_play.dart`: implements new `getEnrollInBetaURL` method
* `user_preferences_contribute.dart`: added an "enroll in the beta" button
* Fixes after tests failing
* feat: 4510 - new labels + dialog
* Update packages/smooth_app/lib/l10n/app_en.arb
Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
* Update packages/smooth_app/lib/pages/preferences/user_preferences_contribute.dart
---------
Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
* feat: 4513 - new "preferences search page" from dev mode
Deleted files:
* `user_preferences_camera_sound.dart`
* `user_preferences_crash_reporting.dart`
* `user_preferences_haptic_feedback.dart`
* `user_preferences_send_anonymous.dart`
New files:
* `user_preferences_item.dart`: Item for preferences, with labels for pre-filtering and widget builder.
* `user_preferences_search_page.dart`: Search page for preferences, with TextField filter.
Impacted files:
* `abstract_user_preferences.dart`: new `getLabels` method for filtering; children are now `UserPreferencesItem` for filtering; minor refactoring.
* `user_preferences_account.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_advanced_settings.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_attribute_group.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_choose_accent_color.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_choose_app_theme.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_choose_text_color_contrast.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_connect.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_contribute.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_country_selector.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_dev_mode.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_faq.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_food.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_image_source.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_language_selector.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_page.dart`: moved `getUserPreferences` to `PreferencePageType`; minor refactoring
* `user_preferences_rate_us.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_settings.dart`: children are now `UserPreferencesItem`; minor refactoring
* `user_preferences_share_with_friends.dart`: added a static `UserPreferencesItem` getter
* `user_preferences_widgets.dart`: new classes `UserPreferencesItemSwitch` and `UserPreferencesItemTile`
* Update packages/smooth_app/lib/pages/preferences/user_preferences_page.dart
New files:
* `user_preferences_advanced_settings.dart`: used to be `_AdvancedSettings` in `user_preferences_settings.dart`
* `user_preferences_camera_sound.dart`: used to be `_CameraPlayScanSoundSetting` in `user_preferences_settings.dart`
* `user_preferences_choose_accent_color.dart`: used to be `_ChooseAccentColor` in `user_preferences_settings.dart`
* `user_preferences_choose_app_theme.dart`: used to be more or less `_ChooseAppTheme` in `user_preferences_settings.dart`
* `user_preferences_choose_text_color_contrast.dart`: used to be `_ChooseTextColorContrast` in `user_preferences_settings.dart`
* `user_preferences_country_selector.dart`: used to be coded in `user_preferences_settings.dart`
* `user_preferences_crash_reporting.dart`: used to be `_CrashReportingSetting` in `user_preferences_settings.dart`
* `user_preferences_haptic_feedback.dart`: used to be `_HapticFeedbackSetting` in `user_preferences_settings.dart`
* `user_preferences_image_source.dart`: used to be coded in `user_preferences_settings.dart`
* `user_preferences_language_selector.dart`: used to be coded in `user_preferences_settings.dart`
* `user_preferences_rate_us.dart`: used to be `_RateUs` in `user_preferences_settings.dart`
* `user_preferences_send_anonymous.dart`: used to be `_SendAnonymousDataSetting` in `user_preferences_settings.dart`
* `user_preferences_share_with_friends.dart`: used to be `_ShareWithFriends` in `user_preferences_settings.dart`
Impacted files:
* `abstract_user_preferences.dart`: minor refactoring
* `preferences_page.dart`: minor refactoring
* `user_preferences.dart`: minor refactoring
* `user_preferences_account.dart`: removed `UserPreferencesSection` and `_UserPreferencesAccountSubTitleSignOut` for simplification
* `user_preferences_attribute_group.dart`: refactored as not `AbstractUserPreferences`
* `user_preferences_connect.dart`: minor refactoring
* `user_preferences_contribute.dart`: minor refactoring
* `user_preferences_dev_mode.dart`: minor refactoring
* `user_preferences_faq.dart`: minor refactoring
* `user_preferences_food.dart`: minor refactoring
* `user_preferences_page.dart`: minor refactoring
* `user_preferences_settings.dart`: file was too big - moved code to new files+classes
* App review in the "scan card"
* Add a keep alive to prevent many requests
* Add a missing call to super (for the KeepAlive mixin)
* Don't really understand what happened with this file 🤨
Impacted files:
* `user_preferences_contribute.dart`: always displays hunger games; minor refactoring
* `user_preferences_dev_mode.dart`: removed the hunger games flag and setter
* Added a Flag to decide whether to display Continue button in [CongratsWidget]
* Code refactor for fix: 3291 Question "Continue" button doesn't work
* Merge branch 'remove_continue_button_for_normal_questions_page' of https://github.com/omkarChend1kar/smooth-app into remove_continue_button_for_normal_questions_page
* Resolved formatting issue for fix: 3291 Question "Continue" button doesn't work
Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
* fix: secondary button now differentiable
* fix: changes to secondary button issue
* changes
* fix: In accordance with theme now
* fix: improved secondary button as required
* fix: updates on secondarybutton
* Revert "Revert "feat: Smooth Dialog with an axis for buttons (#2587)" (#2608)"
This reverts commit 6b52473394b921126d71be3291902ad27aa03e62.
* Many fixes
* Small doc + Title & Cross in separated widgets
* Increase a little bit the line height to improve readability
Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
Deleted files:
* `scan_page_helper.dart`: refactored as there was only a single small method there, with a lousy "ignore" management.
* `smooth_main_button.dart`: old redundant button that did not fit the latest UI
New files:
* `personalized_ranking_model.dart`: Model that computes the scores and sorts the barcodes accordingly.
* `product_model.dart`: Model for product database get and refresh.
* `scan_product_card_loader.dart`: Display of product for the scan page, after async load from local database.
* `tmp_matched_product_v2.dart`: to be merged into off-dart
Impacted files:
* `app_en.arb`: added a label for "refresh_with_new_preferences"
* `app_fr.arb`: added a label for "refresh_with_new_preferences"
* `continuous_scan_model.dart`: now we don't store Product and we let the product cards get the product from the local db if and only if needed
* `dao_product.dart`: minor refactoring
* `dao_product_list.dart`: now we don't deal with products anymore, just barcodes.
* `group_query_filter_view.dart`: removed deprecated `SmoothMainButton`
* `partial_product_list.dart`: now we don't deal with products anymore, just barcodes.
* `personalized_ranking_page.dart`: now uses new class `PersonalizedRankingModel` for better refresh and async product load; now using appropriate button with localized label; fixed dismiss action
* `product_list.dart`: now we don't deal with products anymore, just barcodes.
* `product_list_import_export.dart`: refactored
* `product_list_item_simple.dart`: now we `async`ly load the product from the local database, and keep it refreshed for every change; now based on new class `ProductModel`; added sentry error calls; typo fix
* `product_list_page.dart`: now we don't store Product and we let the product cards get the product from the local db if and only if needed
* `product_preferences.dart`: new method `getCompactView` used to know if something changed.
* `product_query_model.dart`: now we include the "category" process in the model, and we don't store products.
* `product_query_page.dart`: removed useless and inactive sliver effect and `Hero`; refactored
* `product_query_page_helper.dart`: removed bug generating `Hero`
* `scan_header.dart`: refactored from `scan_page_helper.dart` being removed and slightly modified
* `search_page.dart`: removed bug generating `Hero`
* `smooth_product_carousel.dart`: now we async'ly load product from local database, and don't store them in memory.
* `summary_card.dart`: removed bug generating `Hero`
* `up_to_date_product_provider.dart`: added timestamps for new method `needsRefresh`
* `user_preferences_account.dart`: removed bug generating `Hero`
Impacted files:
* `abstract_user_preferences.dart`: added optional header asset and color methods
* `user_preferences_connect.dart`: implemented header asset and color
* `user_preferences_contribute.dart`: implemented header asset and color
* `user_preferences_faq.dart`: implemented header asset and color
* `user_preferences_page.dart`: fine-tuned the display of header with color
* `welcome_page.dart`: unrelated overflow fix
* 6 golden files refreshed