-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
fix: 3018 - now there's only one place where we upload pictures from #3323
fix: 3018 - now there's only one place where we upload pictures from #3323
Conversation
Deleted file: * `picture_capture_helper.dart`: moved code to `ConfirmAndUploadPicture`, that is now the only place where we upload images Impacted files: * `add_new_product_page.dart`: minor refactoring * `background_task_details.dart`: minor refactoring * `background_task_image.dart`: minor refactoring * `confirm_and_upload_picture.dart`: minor refactoring; moved here code from `picture_capture_helper.dart` * `edit_ingredients_page.dart`: replaced `uploadCapturedPicture` with a call to page `ConfirmAndUploadPicture` * `image_crop_page.dart`: refactored into a single `startImageCropping` method * `image_upload_page.dart`: replaced `uploadCapturedPicture` with a call to page `ConfirmAndUploadPicture` * `new_crop_page.dart`: minor refactoring * `product_image_gallery_view.dart`: replaced `uploadCapturedPicture` with a call to page `ConfirmAndUploadPicture`; refactoring around refresh * `product_image_viewer.dart`: minor refactoring * `up_to_date_product_provider.dart: removed old-fashioned code
Codecov Report
@@ Coverage Diff @@
## develop #3323 +/- ##
===========================================
+ Coverage 10.47% 10.48% +0.01%
===========================================
Files 252 251 -1
Lines 12335 12322 -13
===========================================
Hits 1292 1292
+ Misses 11043 11030 -13
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @monsieurtanuki
@@ -1,9 +1,12 @@ | |||
import 'dart:convert'; | |||
import 'dart:io'; | |||
|
|||
import 'package:flutter/material.dart'; | |||
import 'package:flutter_gen/gen_l10n/app_localizations.dart'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never seen that path before but when CI doesn't complain I'm fine with that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@M123-dev Then you never started a localized page, because it's all over the place (96 occurrences...).
For some reason my Android Studio seems to have problems suggesting that import
; that's how I learned it the hard way and copied/pasted again and again for each new localized page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess then my first assumption was wrong then, I have the same problem with the import. I just thought it was a different path
Thank you @M123-dev for the review! |
Deleted file:
picture_capture_helper.dart
: moved code toConfirmAndUploadPicture
, that is now the only place where we upload imagesImpacted files:
add_new_product_page.dart
: minor refactoringbackground_task_details.dart
: minor refactoringbackground_task_image.dart
: minor refactoringconfirm_and_upload_picture.dart
: minor refactoring; moved here code frompicture_capture_helper.dart
edit_ingredients_page.dart
: replaceduploadCapturedPicture
with a call to pageConfirmAndUploadPicture
image_crop_page.dart
: refactored into a singlestartImageCropping
methodimage_upload_page.dart
: replaceduploadCapturedPicture
with a call to pageConfirmAndUploadPicture
new_crop_page.dart
: minor refactoringproduct_image_gallery_view.dart
: replaceduploadCapturedPicture
with a call to pageConfirmAndUploadPicture
; refactoring around refreshproduct_image_viewer.dart
: minor refactoringup_to_date_product_provider.dart
: removed old-fashioned codeWhat
Part of