-
-
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
feat: 4058 - new UI for "add product" #4060
feat: 4058 - new UI for "add product" #4060
Conversation
TODO: * dark mode * localization * facultative ecoscore fields Impacted files: * `add_new_product_page.dart`: score titles and subtitles; no more blue background; score on one line; leading (1) and (2) icons; deactivated button * `add_simple_input_button.dart`: minor refactoring * `edit_product_page.dart`: minor refactoring * `simple_input_page_helpers.dart`: new method `showEditPage` from previous code * `smooth_large_button_with_icon.dart`: refactored with `backgroundColor`, `foregroundColor` and `trailing` parameters
info • Use Flutter TODO format: // TODO(username): message, https://URL-to-issue • packages/smooth_app/lib/pages/product/add_new_product_page.dart:338:32 • flutter_style_todos |
@teolemon Indeed. That's a typical case - dark mode to be implemented, or localizations. |
was just pasting the build failure.
|
packages/smooth_app/lib/pages/product/add_new_product_page.dart
Outdated
Show resolved
Hide resolved
packages/smooth_app/lib/pages/product/add_new_product_page.dart
Outdated
Show resolved
Hide resolved
Impacted files: * `add_new_product_page.dart`: dark mode; images first; titles and subtitles for nutriscore and ecoscore * `app_en.arb`: titles and subtitles for nutriscore and ecoscore * `app_fr.arb`: titles and subtitles for nutriscore and ecoscore
Codecov Report
@@ Coverage Diff @@
## develop #4060 +/- ##
===========================================
- Coverage 10.96% 10.94% -0.02%
===========================================
Files 270 270
Lines 13415 13434 +19
===========================================
Hits 1471 1471
- Misses 11944 11963 +19
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Latest commit:
New product:
Regarding the "unknown" / "not applicable" score icons, for the moment I kept the so called ugly icons, for consistency reasons.
Following are screenshots with the "not applicable" icons:
New product page, nutriscore "not applicable":
New product page, ecoscore "not applicable":
@teolemon Waiting for your instructions about the "unknown" / "not applicable" icons for the "new product". |
This will break consistency with server, so let's keep as is, I guess |
@teolemon Feel free to approve then. The "additional ecoscore" edits will be in another PR. |
Thank you @teolemon for your review! |
What
Screenshot
Part of
Impacted files
add_new_product_page.dart
: score titles and subtitles; no more blue background; score on one line; leading (1) and (2) icons; deactivated buttonadd_simple_input_button.dart
: minor refactoringedit_product_page.dart
: minor refactoringsimple_input_page_helpers.dart
: new methodshowEditPage
from previous codesmooth_large_button_with_icon.dart
: refactored withbackgroundColor
,foregroundColor
andtrailing
parameters