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: Added nutrition input to product addition flow #1626

Closed
wants to merge 3 commits into from
Closed

feat: Added nutrition input to product addition flow #1626

wants to merge 3 commits into from

Conversation

PrimaelQuemerais
Copy link
Member

What

  • Added direct link to the nutrition_page_loaded from the add_new_product_page to allow manual input of nutritional values

Screenshot

Fixes bug(s)

Part of

@PrimaelQuemerais PrimaelQuemerais requested a review from a team as a code owner April 22, 2022 23:51
@PrimaelQuemerais PrimaelQuemerais changed the title Added nutrition input to product addition flow feat: Added nutrition input to product addition flow Apr 22, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #1626 (ea3acef) into develop (2ea0da3) will decrease coverage by 0.17%.
The diff coverage is 1.65%.

@@            Coverage Diff             @@
##           develop   #1626      +/-   ##
==========================================
- Coverage     8.86%   8.68%   -0.18%     
==========================================
  Files          161     164       +3     
  Lines         6623    6813     +190     
==========================================
+ Hits           587     592       +5     
- Misses        6036    6221     +185     
Impacted Files Coverage Δ
...rds/knowledge_panels/knowledge_panels_builder.dart 2.17% <0.00%> (ø)
...s/product_cards/smooth_product_card_not_found.dart 0.00% <0.00%> (ø)
.../smooth_app/lib/data_models/onboarding_loader.dart 0.00% <ø> (ø)
...mooth_app/lib/data_models/product_query_model.dart 1.38% <ø> (ø)
...s/smooth_app/lib/data_models/user_preferences.dart 34.42% <ø> (+2.11%) ⬆️
...s/smooth_app/lib/database/dao_string_list_map.dart 0.00% <0.00%> (ø)
...ckages/smooth_app/lib/database/local_database.dart 0.00% <0.00%> (ø)
...s/smooth_app/lib/database/paged_product_query.dart 0.00% <0.00%> (ø)
...oth_app/lib/database/robotoff_questions_query.dart 0.00% <0.00%> (ø)
...ric_lib/buttons/smooth_large_button_with_icon.dart 0.00% <0.00%> (ø)
... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e51691d...ea3acef. Read the comment docs.

@teolemon teolemon added the Product addition The easier it is to add a product and get Nutri-Score, Eco-Score, the happier the users. label Apr 23, 2022
@teolemon teolemon added this to the V1 milestone Apr 23, 2022
@teolemon teolemon linked an issue Apr 23, 2022 that may be closed by this pull request
@teolemon
Copy link
Member

should work again

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.

Looks good to me @PrimaelQuemerais

import 'package:openfoodfacts/model/ProductImage.dart';
import 'package:smooth_app/generic_lib/buttons/smooth_action_button.dart';
import 'package:smooth_app/generic_lib/buttons/smooth_large_button_with_icon.dart';
import 'package:smooth_app/generic_lib/design_constants.dart';
import 'package:smooth_app/pages/image_crop_page.dart';
import 'package:smooth_app/pages/product/confirm_and_upload_picture.dart';

import 'nutrition_page_loaded.dart';
import 'ordered_nutrients_cache.dart';
Copy link
Member

Choose a reason for hiding this comment

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

Please use package import's here

Comment on lines +252 to +254
if (cache == null) {
return;
}
Copy link
Member

Choose a reason for hiding this comment

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

Is this a somewhat likely case, if so a Snackbar or a todo comment would be good

@teolemon
Copy link
Member

teolemon commented May 5, 2022

@PrimaelQuemerais can you do the 2 little adjustments proposed by @M123-dev , and Let'sJustMerge™

@teolemon teolemon reopened this May 5, 2022
@PrimaelQuemerais
Copy link
Member Author

Closing and reopening with the fixes since I rebased my fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product addition The easier it is to add a product and get Nutri-Score, Eco-Score, the happier the users.
4 participants