291 Commits

Author SHA1 Message Date
4aae8f94a8 Bump project dependencies (#6726) 2025-07-10 11:38:43 +02:00
e74f94abc3 fix: Visual glitches (#6724)
* SmoothScaffold everywhere

* DateFormat from MaterialLocalizations

* Packagings: fix InkWell
2025-07-08 17:27:21 +02:00
692610cf6f Bump to flutter_lints 6.0.0 (#6713) 2025-07-06 12:01:44 +02:00
e3bc40fdf3 chore: Migration to Dart 3.8 (#6668)
* Migration to Dart 3.8

* New GA

* Fix dartdoc
2025-06-23 18:14:17 +02:00
dda75e283e feat: Flutter 3.32 (#6665)
* Migration to Flutter 3.32

* Temporary ignore dart formatter issues
2025-06-23 09:56:00 +02:00
281d803942 feat: 6523 - upgrade to l10n_countries (#6653) 2025-06-20 10:00:23 +02:00
a8e39472b9 fix: Search Results Not Updating After Changing Country Without App Restart (#6602)
* Update country_selector_provider.dart

* fix dart format test
2025-05-31 18:55:07 +02:00
db036a4c4f fix: New UI for the food preferences (#6466)
Co-authored-by: chetanr25 <1ds22ai010@dsce.edu.com>
Co-authored-by: Edouard Marquez <g123k@users.noreply.github.com>
Co-authored-by: Edouard Marquez <animatrix30@gmail.com>
2025-05-16 10:46:29 +02:00
2b558dc03f UI improvements (#6581) 2025-05-06 10:22:30 +02:00
f0340fc449 fix: UI padding for better layout (#6509)
Co-authored-by: Edouard Marquez <moi@edouard-marquez.me>
2025-05-04 23:45:44 +02:00
11bf06d232 fix: Move Hunger Games to a real view instead of overlay (#4681) (#6555)
* Fix #4681: Move Hunger Games to a real view instead of overlay

Committer: Lorenzo Mascia <lorenzo.mascia@ericsson.com>

Changes :
	modified:   packages/smooth_app/lib/pages/hunger_games/question_card.dart
	modified:   packages/smooth_app/lib/pages/hunger_games/question_page.dart
	modified:   packages/smooth_app/lib/pages/preferences/user_preferences_contribute.dart
	modified:   packages/smooth_app/lib/pages/product/product_questions_widget.dart

* Fixes after code review

Committer: Lorenzo Mascia <lorenzo.mascia@ericsson.com>

Changes:
	modified:   packages/smooth_app/lib/pages/hunger_games/question_card.dart
	modified:   packages/smooth_app/lib/pages/hunger_games/question_image_thumbnail.dart
	modified:   packages/smooth_app/lib/pages/hunger_games/question_page.dart
	modified:   packages/smooth_app/lib/pages/preferences/user_preferences_contribute.dart
	modified:   packages/smooth_app/lib/pages/product/product_questions_widget.dart

* Fixes after second review

Committer: Lorenzo Mascia <lorenzo.mascia@ericsson.com>

Changes:
	modified:   packages/smooth_app/lib/pages/hunger_games/question_image_thumbnail.dart
	modified:   packages/smooth_app/lib/pages/hunger_games/question_page.dart
	modified:   packages/smooth_app/lib/pages/preferences/user_preferences_contribute.dart
	modified:   packages/smooth_app/lib/pages/product/product_questions_widget.dart

* Update packages/smooth_app/lib/pages/hunger_games/question_card.dart

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>

* Fixes after third review

Committer: Lorenzo Mascia <lorenzo.mascia@ericsson.com>

Changes:
	modified:   lib/pages/hunger_games/question_image_thumbnail.dart
	modified:   lib/pages/hunger_games/question_page.dart

---------

Co-authored-by: Lorenzo Mascia <lorenzo.mascia@ericsson.com>
Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2025-04-30 16:10:24 +02:00
4e8b6f344f feat: Added stats view to the prices (#6553)
* add: Stats view to the prices

* add: Stats view to the prices

* feat: Add stats view to prices with refactored structure and full localization support

* feat: Add stats view to prices with refactored structure and full localization support

* feat: Add stats view to prices with simplified structure

* feat: Add stats view to prices with simplified structure

* feat: resolve code comment issue

* feat: resolve code comment issue
2025-04-20 11:27:07 +02:00
bc306ae141 feat : add shortcut to GDPR requests Wikipage in Prices screen (#6558) 2025-04-20 11:20:04 +02:00
6935ed85f7 fix: language filter to include English names (#6498) 2025-03-31 15:27:31 +02:00
d9648b14c6 feat: added shortcut link for community calendar (closes #5536) (#6472)
* Initial changes

* Links added successfully

* Final changes

* Reverted files

* Reverted files

* Final revert

* added description in translation files

* subscription to community calendar

---------

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2025-03-26 08:43:55 +01:00
9850ebe8c6 feat: added some shortcut links in prices section (#6408)
* Initial changes

* Links added successfully

* Final changes

* Reverted files

* Reverted files

* Final revert

* added description in translation files

---------

Co-authored-by: Edouard Marquez <g123k@users.noreply.github.com>
2025-03-24 19:14:57 +01:00
96d54b9002 feat: 6289 - bulk proof upload page (#6437)
* feat: 6289 - bulk proof upload page

New files:
* `proof_bulk_add_page.dart`: Single page that displays all the elements of bulk proof adding.
* `proof_type_extensions.dart`: Extensions on ProofType.

Impacted files
* `app_en.arb`: added a label for "bulk proof upload" and "send proof"
* `price_model.dart`: new method `clearProof`
* `price_proof_card.dart`: refactoring about the flexibility needed for new fields `ProofType? forcedProofType` and `bool includeMyProofs`
* `proof_crop_helper.dart`: minor refactoring
* `user_preferences_dev_mode.dart`: added a "bulk proof upload" feature flag (false/hidden by default)
* `user_preferences_prices.dart`: optionally display a button to the new "bulk proof upload" page

* refactored around price/proof add pages

New file:
* `price_add_helper.dart`: Helper around price/proof adding pages.

Impacted files
* `product_price_add_page.dart`: refactored with new class `PriceAddHelper`
* `proof_bulk_add_page.dart`: refactored with new class `PriceAddHelper`
2025-03-13 10:35:14 +01:00
44c43ba179 feat: 5455 - new "data quality" link in "contribute" page (#6401)
* 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
2025-03-10 15:17:35 +01:00
b9d83a45ce fix: 6413 - hiding "install OxF" links (#6435) 2025-03-10 15:16:32 +01:00
8ed5e02103 fix: Display readable scanner type in debug info instead of object instance (#6439)
Co-authored-by: chetanr25 <1ds22ai010@dsce.edu.com>
2025-03-10 09:53:05 +01:00
abdbffbc56 Upgrade to off-dart 3.20 (#6424) 2025-03-09 09:04:21 +01:00
0ac763d98a feat: Added ability to export and import user product lists (#6304)
* Add ability to export and import product lists

* feat: Add export and import options to product list modal

* Implemented review comments

* Added product download when importing list

* Update app_en.arb

* Update app_en.arb

* Moved logic to helper class, import behind dev mode & review comments

* refactor: enhance ProductListHelper for better barcode export and import handling

* refactor: simplify barcode validation and streamline product fetching logic

---------

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2025-02-26 16:47:12 +01:00
8ab14838a5 feat: 6010 - shortcut to the price contribution assistant (#6394)
Impacted files:
* `app_en.arb`: added one label
* `user_preferences_prices.dart`: added one entry in the price screen
2025-02-25 22:18:21 +01:00
63eef889bb feat: Contribute to your country link (#5874)
* 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>
2025-02-14 09:33:18 +01:00
8681098bd6 App review is back (#6367) 2025-02-11 11:36:53 +01:00
4adbd94580 fix types of countries selector (#6365) 2025-02-10 13:36:36 +01:00
dff1c58a27 feat: Add Mastodon, TikTok, and BlueSky social media accounts to links and update assets (#6343)
* Add translations for new social media links

- Updated .arb files to include translations for Mastodon, TikTok, and Bluesky

* Add assets for Mastodon, TikTok, and Bluesky logos

- Added logo assets for Mastodon, TikTok, and Bluesky to the project

* Update 'Contact Us' page with new social media contacts

- Added Mastodon, TikTok, and Bluesky links to the 'Contact Us' page

* Revert "Add translations for new social media links"

This reverts commit a8c5dfe3e26ff99c1a722c961cf7411c9c216460.

* Add translations for new social media links

* Fix code formatting and indentation issues
2025-02-09 10:09:52 +01:00
67539c17f3 Suggestions for countries (#6344) 2025-02-05 16:05:29 +01:00
097dc91b85 Revert "feat: Product page redesign" (#6332) 2025-02-04 11:17:34 +01:00
90fb5d4c43 Merge branch 'develop' into develop 2025-02-04 08:41:07 +01:00
0c9eadfcf0 feat: 5988 - new "top price products" page (#6310)
* feat: 5988 - new "top price products" page

New file:
* `prices_products_page.dart`: Page that displays the top prices products.

Impacted files:
* `app_en.arb`: added 1 label for top product counts
* `price_product_widget.dart`: minor refactoring
* `product_prices_list.dart`: minor refactoring
* `pubspec.lock`: wtf
* `pubspec.yaml`: upgraded `openfoodfacts` to `3.19.0`
* `user_preferences_prices.dart`: link to new page `PricesProductsPage`

* Add new localization strings for product prices

---------

Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2025-01-30 18:23:47 +01:00
47421d1b38 Hide the custom URL field if we use the PROD (#6307) 2025-01-30 10:27:27 +01:00
368a44ca33 Implemented review comments + Dev mode 2025-01-27 10:23:39 +01:00
4cef8f04e7 fix: 6281 LateError: LateInitializationError (#6287)
* Multi-lingual input for product name

* Fix LateError: LateInitializationError
2025-01-26 12:35:24 +01:00
72a98a4df3 fix: Correct Finnish language translation (#6215) 2025-01-24 12:52:42 +01:00
0c6cf073d4 feat: Use a WebView for OFF links (#6211)
* Use a WebView for KP links

* FAQ links
2025-01-19 12:17:13 +01:00
e45c39ae1b Fix OPF link (#6237) 2025-01-19 12:16:31 +01:00
4e8209d4e7 feat: Same layout between country/language pickers (settings) (#6231)
* Use the same layout between the country and language picker (in the settings)

* Add missing type
2025-01-19 12:14:19 +01:00
a3f44f4c3b KP enhancements (#6184) 2025-01-12 12:14:47 +01:00
54b9f4010e Use a SmoothFloatingSnackbar on all screens (#6169) 2025-01-10 09:58:27 +01:00
1f8ad04833 feat: UI improvements for the edit mode (bis) (#6147)
* Improvements for Edit mode (once again)

* Basic details improvements

* Basic details hints

* Force the new layout on subpages
2025-01-07 14:14:46 +01:00
eb0a8bf2b1 fix: FAQ: Open the correct variant of the website (#6134)
* Open the correct variant of the website

* Update packages/smooth_app/lib/pages/preferences/user_preferences_faq.dart

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>

* Fix style

---------

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
2025-01-06 20:20:29 +01:00
61f9af21f2 Give access to the NutriScore v2 guide in France (#6117) 2025-01-04 10:35:39 +01:00
baea968433 Eco-Score -> Green Score (#6072) 2024-12-27 22:24:37 +01:00
fdf1d03f10 feat: 5594 - multi product scan mode as a dev mode option for price receipt input (#6008)
Impacted files:
* `price_add_product_card.dart`: now calling the scan card with the bool multi product scan mode parameter, and manages a _list_ of scanned barcodes
* `price_scan_page.dart`: now manages a multi product scan mode, with floating action button and snackbar
* `user_preferences_dev_mode.dart`: new flag for "multi product scan in price receipt"
2024-12-20 16:24:27 +01:00
70395f3c8a feat: 5986 - "top price locations" page (#5998)
New files:
* `price_location_widget.dart`: Price Location display (no price data here).
* `prices_locations_page.dart`: Page that displays the top prices locations.

Impacted files:
* `app_en.arb`: added labels for locations pages; added tooltips for tiny prices count buttons (proofs, prices, products, users)
* `get_prices_model.dart`: minor refactoring
* `labeler.yml`: wtf
* `price_button.dart`: minor refactoring
* `price_count_widget.dart`: refactored with "onPressed" as this button is now used somewhere else
* `price_data_widget.dart`: now links to new page "PricesLocationsPage"; refactored because of new class "PriceLocationWidget"
* `price_location_card.dart`: minor refactoring
* `price_product_widget.dart`: refactored according to "PriceCountWidget" evolutions
* `price_user_button.dart`: minor refactoring
* `prices_users_page.dart`: minor refactoring
* `product_prices_list.dart`: now displays the location once and on top, if relevant (e.g. "prices in that location")
* `user_preferences_prices.dart`: now links to new page "PricesLocationsPage"; minor refactoring
2024-12-19 10:15:49 +01:00
736f08c8ac feat: 6025 - settings for the folksonomy server (#6027)
Impacted files:
* `folksonomy_provider.dart`: used a specific folksonomy server instead of systematically the prod server
* `product_query.dart`: specific folksonomy server
* `user_preferences_dev_mode.dart`: settings for the specific folksonomy server
2024-12-12 18:04:59 +01:00
ee168fdf1c Country selector button invisible in dark mode (#5979) 2024-12-01 11:54:12 +01:00
538e14b04b The access to Robotoff from the Product page is only via the banner (= the button is removed) (#5940) 2024-11-27 18:50:03 +01:00
6c6eae01b6 feat: Min/max version for the tagline (#5917)
* fix: Tagline not refreshing

* Tagline: support min/max version

* Fix: missing items in the `copyWith` method
2024-11-26 19:09:41 +01:00