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

feat: 3880 - added a "get photo" button on the edit packaging component page #3942

Merged
merged 2 commits into from
May 13, 2023

Conversation

monsieurtanuki
Copy link
Contributor

What

  • New "get packaging photo" button on top of the "edit packaging components" page
  • As a side-effect, some refactoring.

Screenshot

before after for the record, nutrition
Screenshot_2023-05-08-09-51-04 Screenshot_2023-05-08-10-47-20 Screenshot_2023-05-08-10-53-48

Fixes bug(s)

Impacted files

  • edit_new_packagings.dart: added a "get photo" button on top; refactored with the up-to-date provider
  • image_field_extension.dart: new getPhotoButton method
  • nutrition_page_loaded.dart: refactored with the up-to-date provider and the new getPhotoButton method

…nt page

Impacted files:
* `edit_new_packagings.dart`: added a "get photo" button on top; refactored with the up-to-date provider
* `image_field_extension.dart`: new `getPhotoButton` method
* `nutrition_page_loaded.dart`: refactored with the up-to-date provider and the new `getPhotoButton` method
@codecov-commenter
Copy link

codecov-commenter commented May 8, 2023

Codecov Report

Merging #3942 (5b1be76) into develop (5267eac) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop    #3942      +/-   ##
===========================================
- Coverage    11.01%   11.00%   -0.01%     
===========================================
  Files          264      264              
  Lines        13033    13044      +11     
===========================================
  Hits          1435     1435              
- Misses       11598    11609      +11     
Impacted Files Coverage Δ
.../smooth_app/lib/helpers/image_field_extension.dart 0.00% <0.00%> (ø)
...oth_app/lib/pages/product/edit_new_packagings.dart 0.00% <0.00%> (ø)
...h_app/lib/pages/product/nutrition_page_loaded.dart 0.00% <0.00%> (ø)

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

@monsieurtanuki monsieurtanuki enabled auto-merge (squash) May 12, 2023 06:26
Copy link
Member

@M123-dev M123-dev left a comment

Choose a reason for hiding this comment

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

Thanks a lot @monsieurtanuki :D

The pages are starting to get full with those large buttons. Maybe we have to switch to smaller ones eventually of we add more 😄

@monsieurtanuki monsieurtanuki merged commit 72e98df into openfoodfacts:develop May 13, 2023
@monsieurtanuki
Copy link
Contributor Author

Thank you @M123-dev for your reviews!

Anyway this page is doomed to be crowded, with the user inserting new packaging components.
Smaller buttons would make sense, but that's not a priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add packaging image upload selection/deselect/crop in the new structured packaging section
3 participants