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

fix: 4301 - "other lists" button always visible #4302

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

monsieurtanuki
Copy link
Contributor

What

  • In the "product list" page, there is one "more ..." button that is not always visible (e.g. not much you can do with an empty list)
  • But recently we added an "other lists" button, that must always be visible.
  • The bug was that we used the same condition to display both buttons, making the "other lists" button invisible when the list was empty.
  • The fix was just about moving the test.

Screenshot

Screenshot_2023-07-14-08-55-28

Part of

Impacted file

  • product_list_page.dart: the "other lists" button is now always visible

Impacted file:
* `product_list_page.dart`: the "other lists" button is now always visible
@codecov-commenter
Copy link

Codecov Report

Merging #4302 (750ea82) into develop (296a0d2) will decrease coverage by 0.01%.
The diff coverage is 1.26%.

@@             Coverage Diff             @@
##           develop    #4302      +/-   ##
===========================================
- Coverage    10.82%   10.82%   -0.01%     
===========================================
  Files          288      289       +1     
  Lines        14264    14274      +10     
===========================================
+ Hits          1544     1545       +1     
- Misses       12720    12729       +9     
Impacted Files Coverage Δ
...ages/smooth_app/lib/database/dao_product_list.dart 4.61% <0.00%> (-0.23%) ⬇️
...ooth_app/lib/pages/all_user_product_list_page.dart 1.85% <0.00%> (+0.26%) ⬆️
...pp/lib/pages/product/common/product_list_page.dart 0.00% <0.00%> (ø)
...pages/product/common/product_list_popup_items.dart 0.00% <0.00%> (ø)
...smooth_app/lib/pages/product/new_product_page.dart 0.00% <0.00%> (ø)
...app/lib/pages/product_list_user_dialog_helper.dart 0.00% <0.00%> (ø)
...es/smooth_app/lib/pages/all_product_list_page.dart 2.77% <2.77%> (ø)

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

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.

That was quick, thanks @monsieurtanuki

@monsieurtanuki monsieurtanuki merged commit bd38e61 into openfoodfacts:develop Jul 14, 2023
@monsieurtanuki
Copy link
Contributor Author

Thank you @M123-dev for your quick review!

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.

3 participants