279 Commits

Author SHA1 Message Date
4aae8f94a8 Bump project dependencies (#6726) 2025-07-10 11:38:43 +02:00
7652657de0 3 visual issues: attributes without spacing, empty field editor and Robotoff banner with bottom margin (#6717) 2025-07-07 12:28:30 +02:00
72ec278689 feat: Redesign of the list of prices (#6716)
* Redesign of the list of prices

* Fix

* Revert the iOS config
2025-07-07 12:27:58 +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
12c2569b81 feat: Added Matomo event for producers signups from the app (#6418)
* Added Matomo event for producers signups from the app

* Fixed formatting issues

---------

Co-authored-by: Abhishek Rathore <abhishek2525rathore@gmail.co>
Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
2025-06-12 18:08:04 +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
994f202bf2 Add price: swipe gesture available on iOS without changes (#6590) 2025-05-15 09:51:58 +02:00
6450b6d3cd chore: UI/UX for Robotoff suggestions improved (#6585)
* CW

* Iteration
2025-05-07 17:38:47 +02:00
453ccf558f feat: Improvements for Robotoff questions in Edit mode (#6579)
* Improve robotoff questions in edit mode

* SmoothImage for the proof

* Remove print statement
2025-05-05 19:23:01 +02:00
b3b9ed8ad9 feat: 4679 - added a way to edit traces (#6495)
* feat: 4679 - added a way to edit traces

New file:
* `simple_input_page_trace_helper.dart`: Implementation for "Traces" of an AbstractSimpleInputPageHelper.

Impacted files:
* `analytics_helper.dart`: added an entry for "traces"
* `app_en.arb`: added labels for "traces"
* `background_task_details.dart`: added an entry for "traces"
* `edit_product_page.dart`: added a button for "traces"
* `product_query.dart`: added entries for "traces"
* `pubspec.lock`: wtf
* `pubspec.yaml`: upgraded to off-dart 3.21.0, where we can edit traces
* `simple_input_page_helpers.dart`: added a warning "TODO" about the file being too big
* `up_to_date_changes.dart`: added an entry for "traces"

* stupid formatter error

* my bad, this time
2025-04-13 12:05:45 +02:00
fd3ae027fa feat: Food icons with NOVA groups (#6521)
* Food icons for NOVA

* Level -> group
2025-04-07 13:34:50 +02:00
19aef3b3da feat: Food icons for the product page (#6387)
* Food icons for the product page

* Lint error

* factor-like attributes

* Update packages/smooth_app/lib/pages/product/attribute_icons.dart

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

* Revert "Update packages/smooth_app/lib/pages/product/attribute_icons.dart"

This reverts commit aaa1efce5646d3a2d51c68ed89af552dd3d28d9d.

---------

Co-authored-by: monsieurtanuki <fabrice_fontaine@hotmail.com>
2025-03-12 17:12:39 +01:00
e93f0692c4 feat: Added Robotoff nutrition extraction to nutrition edit page (#6366)
* Add robotoff nutrition extraction to nutrition edit page

* feat: Enhance nutrition extraction UI with loading indicators and improved nutrient handling

* feat: Add localized messages for nutrient extraction actions and results

* feat: Track robotoff nutrition extraction events and update UI components

* Removed duplicated translation entries

* feat: Refactor analytics tracking for Robotoff nutrition events
2025-03-02 14:47:52 +01:00
5846d304ad fix: 6020 - disable automatic report of failed http connections (#6378) 2025-02-18 08:55:01 +01:00
9c5b20bb88 ImageViewer fails with semi-empty product (#6374) 2025-02-12 09:21:29 +01:00
8681098bd6 App review is back (#6367) 2025-02-11 11:36:53 +01:00
67539c17f3 Suggestions for countries (#6344) 2025-02-05 16:05:29 +01:00
cdf637d960 fix: Product edition UI improvements (#6320)
* Edition improvements

* Sketch file

* Nutrition editor: the Next key is working again on Android

* Nutrition editor: tapping the title will force the focus on the TextField
2025-02-03 17:26:56 +01:00
aab292a1f4 feat: Use the photo banner for all photos + OCR pages (#6298)
* Use the photo banner directly for all photos + OCR (ingredients/packaging)

* Remove the long press for "More interesting photos"

* Tooltip for the 3 dots
2025-01-28 09:08:44 +01:00
fab7e0fae6 Prevent unknown product names (#6293) 2025-01-27 18:29: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
8324456818 feat: Improved nutrition input (#6261)
* Improved nutrition input

* Translate all TODOs

* Loading + error states

* Update labeler

* "Add" icon with the same size as "Help"

* Fix light/dark mode switch issue

* Button to a nutrient at the bottom

* Remove warning
2025-01-21 19:20:48 +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
a3f44f4c3b KP enhancements (#6184) 2025-01-12 12:14:47 +01:00
0102ede2d2 Edit product page: clickable barcode + open product on website (#6180) 2025-01-11 12:04:51 +01:00
863aa76e62 fix: Language selector + ingredients (text field + outdated) (#6170)
* Language selector + ingredients text field

* Minor fix

* Outdated explanations

* Remove shadow from edit buttons

* Invert colors for Cancel/Save buttons in dark mode

* Format

* SafeArea for Edit Page
2025-01-10 09:56:44 +01:00
019e319384 feat: New UI for history/search lists (#6161)
* Change the UI of history/search list items

* Update goldens
2025-01-09 16:08:37 +01:00
5ddb5127ec New UI for ingredients (#6156) 2025-01-08 13:38:50 +01:00
70ca39367d Add the upload indicator to the edit page (#6157) 2025-01-08 13:38:10 +01:00
1f8f66cd8a Ignore existing Robotoff questions (#6130) 2025-01-06 20:21:26 +01:00
d1ebb689d9 feat: UI improvements for the edit mode (#6132)
* UI improvements for the edit mode

* Better website input

* Some comments + minor fixes

* Add missing bottom space

* Fix page padding

* Help is better embedded

* Change ingredients instructions
2025-01-06 20:20:01 +01:00
d24ca6ca6f When there's not enough space, make the tagline scrollable (#6093) 2024-12-31 12:45:29 +01:00
f53938c8e9 feat: Improve KP tables layout (#6080)
* Improve KP tables

* Cache horizontalDivider

* Some comments

* Improvements for dropdown

* no message
2024-12-29 22:58:48 +01:00
a929cf337c fix: Robotoff banner on the product page (#6078)
* Improve Robotoff banner

* Add missing statement
2024-12-29 15:18:43 +01:00
baea968433 Eco-Score -> Green Score (#6072) 2024-12-27 22:24:37 +01:00
db6ccda32d feat: New layout when a product is found (#6073)
* New layout when a product is found

* Customizable fields

* Change types
2024-12-27 18:46:53 +01:00
a7a99909a9 feat: 5952 - better image compression for Prices (#6048)
Impacted files:
* `image_compute_container.dart`: added the compression quality parameter
* `background_task_image.dart`: added the compression quality and force quality parameters; same parameters as before for OxF images (quality 100, no forced compression for non cropped images)
* `background_task_add_price.dart`: always compress the proof image, with quality 80
2024-12-20 16:19:31 +01:00
5757e9b4a9 When the compatibility score is 0, display 0 and not 00 (#6032) 2024-12-12 18:04:44 +01:00
e53b0f3c09 feat: An indicator if the photo may be locked by the producer (#5974)
* An indicator if the photo may be locked by the producer

* Implement suggestions
2024-12-01 11:09:19 +01:00
57e13ea164 feat: Product page: notify when there are pending operations (#5947)
* Product page: notify when there are pending operations

* Fix warning
2024-11-27 22:51:51 +01:00
3655c3b300 feat: Scan cards share the same UI (#5866)
* Harmonized UI for scan cards

* Update packages/smooth_app/lib/l10n/app_en.arb

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

* Fix build issue

---------

Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
2024-11-18 15:24:05 +01:00
2bffec147e Photo gallery with tabs (#5872) 2024-11-18 13:24:40 +01:00
9eba6ae3be feat: UI Improvements for the photo gallery (#5852)
* Improve the photo gallery UI

* ClipRrect needed

* Improve the photo gallery UI

* ClipRrect needed

---------

Co-authored-by: Edouard Marquez <edouard@marquez.cool>
2024-11-14 11:16:23 +01:00
3665f05ef6 fix: 5830 - sorted "more photos" by timestamp (#5843)
Impacted file:
* `product_cards_helper.dart`: sorted "more photos" by timestamp
2024-11-12 14:32:56 +01:00
bab4fd879b feat: 5638 - 5 dimensions for matomo (#5837)
* feat: 5638 - 5 dimensions for matomo

Impacted files:
* `add_basic_details_page.dart`: minor refactoring
* `add_new_product_page.dart`: using new method `trackProductEvent`
* `add_other_details_page.dart`: minor refactoring
* `analytics_helper.dart`: new method `trackProductEvent`; added 5 dimensions to matomo event track methods
* `attribute_first_row_helper.dart`: minor refactoring
* `barcode_product_query.dart`: using new method `trackProductEvent`
* `edit_new_packagings.dart`: minor refactoring
* `edit_ocr_page.dart`: minor refactoring
* `edit_product_page.dart`: minor refactoring
* `new_product_footer.dart`: using new method `trackProductEvent`
* `nutrition_page_loaded.dart`: minor refactoring
* `product_field_editor.dart`: minor refactoring
* `product_image_gallery_view.dart`: minor refactoring
* `product_incomplete_card.dart`: using new method `trackProductEvent`
* `product_questions_widget.dart`: using new method `trackProductEvent`
* `simple_input_page.dart`: minor refactoring
* `summary_card.dart`: using new method `trackProductEvent`

* minor refactoring

* minor refactoring
2024-11-12 14:27:27 +01:00
d6446baeb9 feat: Allow to reorder the action bar (#5826)
* Allow to reorder the action bar

* + vibrations

* +1 more

* Improve the haptic error pattern

* And some vibrations to modal actions

* Remove a visual glitch

* Update packages/smooth_app/lib/l10n/app_en.arb

* fix: Update app_en.arb

* Fix build issue

---------

Co-authored-by: Pierre Slamich <pierre@openfoodfacts.org>
Co-authored-by: Pierre Slamich <pierre.slamich@gmail.com>
2024-11-11 19:23:22 +01:00
cc874d23f6 feat: Product page with the status bar from the POC (#5808)
* Product page with the status bar from the POC

* Revert compatibility colors

* Remove 2 warnings

* Oops, the translation…

* Use the correct back button on Android

* Fix
2024-11-07 19:41:32 +01:00
688ddc214f feat: Improvements for the product page (Part 2) (#5764)
* Improvements for the product page

* Fix Android issues

* Remove unused variable
2024-10-28 21:57:31 +01:00
3475631930 fix: Fix external links (#5754)
* Fix: Donate link

* Better handle external links

* Typo
2024-10-27 20:06:01 +01:00