8 Commits

Author SHA1 Message Date
af9f28bf2c feat: 4102 - bigger hunger games batch (10) (#4104)
Impacted files:
* `app_en.arb`: added the "next n questions" label for hunger games
* `app_fr.arb`: added the "next n questions" label for hunger games
* `congrats.dart`: "continue" button label as a String parameter
* `product_questions_query.dart`: added a `count` parameter
* `product_questions_widget.dart`: added the `count` parameter
* `question_page.dart`: different `count` parameters; set the "continue" button label
* `questions_query.dart`: added a `count` parameter
* `random_questions_query.dart`: added a `count` parameter
* `robotoff_insight_helper.dart`: added the `count` parameter
2023-06-09 14:32:15 +02:00
cb815b0cac feat: 4020 - instant answers for hunger games (#4099)
* feat: 4020 - instant answers for hunger games

New files:
* `background_task_hunger_games.dart`: Background task about answering a hunger games question.
* `random_questions_query.dart`: Robotoff questions helper, for random product questions.

Deleted file:
* `product_question_page.dart`

Impacted files:
* `abstract_background_task.dart`: added "hunger games"
* `background_task_crop.dart`: minor refactoring
* `background_task_details.dart`: minor refactoring
* `background_task_image.dart`: minor refactoring
* `background_task_manager.dart`: simplified the code, as we now always work on tasks with different stamps
* `background_task_refresh.dart`: minor refactoring
* `background_task_unselect.dart`: minor refactoring
* `new_product_page.dart`: minor refactoring
* `offline_data_page.dart`: minor refactoring
* `operation_type.dart`: added a type for "hunger games" background task
* `product_list_import_export.dart`: minor refactoring
* `product_list_page.dart`: minor refactoring
* `product_questions_query.dart`: pre-loads the product if relevant
* `product_questions_widget.dart`: minor refactoring
* `product_refresher.dart`: new standard configuration for product lists; new silent download of product lists; minor refactoring
* `question_card.dart`: now downloading the product only if not in the local database
* `question_page.dart`: now saving the answer with background tasks; refactored
* `questions_query.dart`: refactored as abstract, with code moved to new file `random_questions_query.dart`
* `robotoff_insight_helper.dart`: minor refactoring

* feat: 4020 - unrelated package upgrade

* fix: 4098 - new enum value from iOS 12
2023-06-08 18:13:48 +02:00
d8a5fb5fbb chore: ProductQuery.getLanguage() is now not nullable (#3896) 2023-04-24 11:43:38 +02:00
26b456e2c0 chore: upgraded to off-dart 2.5.0 (#3876) 2023-04-21 10:51:37 +02:00
c5871a7583 fix: 3600 - user may be null for robotoff random questions (#3758)
Impacted files:
* `pubspec.lock`: wtf
* `pubspec.yaml`: used new version of off-dart, with optional user for robotoff random questions
* `questions_query.dart`: the user may be null
2023-03-08 21:53:54 +01:00
7e861f569e refactor: upgrade to off-dart 2.0.0 (#3495)
Impacted files:
* `paged_to_be_completed_product_query.dart`: renamed `State` as `ProductState`
* `paged_user_product_query.dart`: created local `UserSearchType` instead of deprecated off-dart `UserProductSearchType`; used `ProductSearchQueryConfiguration` instead of deprecated `UserProductSearchQueryConfiguration`
* `product_query.dart`: now that we use fully v3, we don't need the temporary field list for user-related queries with v2
* `pubspec.lock`: wtf
* `pubspec.yaml`: upgrade to off-dart 2.0.0
* `user_preferences_account.dart`: now using new local class `UserSearchType`
* and reduced all off-dart imports to a single `import 'package:openfoodfacts/openfoodfacts.dart';`
2023-01-02 16:10:52 +01:00
d6dc91d0b7 fix: Language code usage (#3450)
* fix: Language code usage

* Update main.dart

* Fix for local != lc

* Update product_preferences.dart

* Update main.dart

* Fix tagline

* Update tagline.dart
2022-12-23 10:02:14 +01:00
b2885af8fd feat!: hunger games (#3102) 2022-10-17 19:34:18 +02:00